query stringlengths 7 33.1k | document stringlengths 7 335k | metadata dict | negatives listlengths 3 101 | negative_scores listlengths 3 101 | document_score stringlengths 3 10 | document_rank stringclasses 102 values |
|---|---|---|---|---|---|---|
METHODS Add a targeted entity | void addEntity(IViewEntity entity); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void add(E entity);",
"public void addEntity(Entity e)\r\n\t{\r\n\t\tentities.add(e);\r\n\t}",
"@Override\n\tpublic void addEntity( final Entity _entity )\n\t{\n\t\tif( _entity == null )\n\t\t{\n\t\t\tLogger.println( \"Attempting to add null entity.\", Logger.Verbosity.MAJOR ) ;\n\t\t\treturn ;\n\t\t}\n\n\t\tentitiesToAdd.add( _entity ) ;\n\t}",
"public void addEntity(AnnexDetail entity) throws Exception {\n\t\t\n\t}",
"@Transactional void add(E entity);",
"@Override\n\tpublic void entityAdded(Entity entity)\n\t{\n\t\t\n\t}",
"void add(E entity) throws ValidationException, RepositoryException;",
"public void addEntity(Entity entity) {\n\t\tthis.entities.add(entity);\n\t}",
"Builder addMainEntity(String value);",
"public void add(E e) {\n\t\tentities.add(e);\n\t}",
"public void add(IApsEntity entity) throws ApsSystemException;",
"Builder addMainEntity(Thing value);",
"void create(E entity);",
"public void addEntity(T entity) {\n\t\t// Remove from needed\n\t\tidTracker.unset(entity.getId());\n\n\t\t// Add to entities\n\t\tentityMap.add(entity);\n\t}",
"public int addAsEntity(Entity e, int x, int y) {\n e.setMapRelation(new MapEntity_Relation(this, e, x, y));\n System.out.println(e.name_);\n int error_code = this.map_grid_[y][x].addEntity(e);\n System.out.println(e.name_ + \"2\");\n if (error_code == 0) {\n this.entity_list_.put(e.name_, e);\n } else {\n e.setMapRelation(null);\n System.err.println(\"Error in entity list\");\n }\n return error_code;\n }",
"protected void onAdd( E entity, int index )\r\n\t{\r\n\t\t\r\n\t}",
"@Override\n\tpublic void add(Entity entity) throws Exception {\n\t\tsuper.add(entity);\n\t\tProduct prod = (Product) entity;\n\n\t\tSQLiteStatement st = db\n\t\t\t\t.prepare(\"INSERT INTO products(sessionID, name, priceMin, priceMax, quantity, category)\"\n\t\t\t\t\t\t+\"VALUES (?, ?, ?, ?, ?, ?)\");\n\t\tst.bind(1, sessionId).bind(2, prod.getName()).bind(3, prod.getPriceMin())\n\t\t\t\t.bind(4, prod.getPriceMin()).bind(5, prod.getQuantity())\n\t\t\t\t.bind(6, prod.getCategory());\n\t\tst.step();\n\t\ttotalQuantity += prod.quantity;\n\t\tif (!categoryList.containsKey(prod.getCategory())) {\n\t\t\tcategoryList.put(prod.getCategory(), new ArrayList<Product>());\n\t\t}\n\t\tcategoryList.get(prod.getCategory()).add(prod);\n\t\tif (availableProducts.get(entity.getName())==null) {\n\t\t\tavailableProducts.put(entity.getName(), \" \");\n\t\t}\n\t}",
"@Override\r\n public void createNewEntity(String entityName) {\n\r\n }",
"E create(E entity);",
"E create(E entity);",
"@Override\n\tpublic Post add(Post entity) {\n\t\treturn null;\n\t}",
"private void attachEntity(Usuario entity) {\n }",
"@Override\n public void add(T obj) {\n generateObjIdIfRequired(obj);\n \n //Try to copy when adding so we can prevent unwanted changes\n obj = getCopyOfT(obj);\n \n if (objects.contains(obj)) throw new DBEntityAlreadyExistsException(obj.toString());\n\n objects.add(obj);\n }",
"public void addEntity(Entity entity)\n\t{\n\t\t\n\t\tif (entity.getClass() == PlayerMP.class)\n\t\t{\n\t\t\t//System.out.println(\"ADDING PLAYER TO PLAYER LIST\");\n\t\t\tplayers.add((PlayerMP)entity);\n\t\t\t//System.out.println(\"World Player Count: \" + players.size());\n\t\t}\n\t\telse\n\t\t{\n\t\t\tentities.add(entity);\n\t\t}\n\t}",
"Entity createEntity();",
"public void addNewLegalEntity(String string) {\n\t\t\r\n\t}",
"public void addEntity(Entity entity)\n {\n if (this.withinBounds(entity.getPosition()))\n {\n this.setOccupancyCell(entity.getPosition(), entity);\n this.entities.add(entity);\n }\n }",
"void create(T entity);",
"void addNode(Entity entity) {\n\t\tProcessing.nodeSet.add(entity);\n\t\tSystem.out.println(\"the entity was successfully added to the network.\");\n\t}",
"private void addEntity(Entity entity, ImageView view) {\n trackPosition(entity, view);\n entityImages.add(view);\n }",
"public void add(IMobile mEntity) {\r\n\t\tthis.mEntity.add(mEntity);\r\n\t}",
"public void addNewEntity() {\n Random random = new Random();\n int bound = Aquarium.WIDTH / 10;\n int randX = bound + random.nextInt(Aquarium.WIDTH - (2 * bound));\n int randY = bound + random.nextInt(Aquarium.HEIGHT - (2 * bound));\n Piranha newPiranha = new Piranha(randX, randY);\n piranhas.add(newPiranha);\n }",
"public void add(E entity)\r\n\t{\r\n\t\tpad( 1 );\r\n\r\n\t\tentities[size] = entity;\r\n\t\t\r\n\t\tonAdd( entity, size );\r\n\t\t\r\n\t\tsize++;\r\n\t}",
"public void addEntity(Entity entity)\n {\n if (withinBounds(entity.getPosition()))\n {\n setOccupancyCell(entity.getPosition(), entity);\n this.entities.add(entity);\n }\n }",
"@POST\n\t@Consumes(\"application/json\")\n\t@Produces(\"application/json\")\n\tpublic Response addNode(Entity entity) {\n\t\tif(currentGraph != null) {\n\t\t\tcurrentGraph.agregarNodo(entity);\n\t\t\treturn Response.status(200)\n\t\t\t\t\t.entity(currentGraph)\n\t\t\t\t\t.build();\n\t\t}else {\n\t\t\treturn Response.status(400)\n\t\t\t\t\t.build();\n\t\t}\n\n\t}",
"@Override\r\n\tpublic Employee add(Employee entity) {\n\t\treturn entity;\r\n\t}",
"public void addEntity(final Entity aEntity)\r\n\t{\r\n\t\tif ( !aEntity.isParticle() && mEntities.containsKey(aEntity.getId()))\r\n\t\t{\r\n\t\t\taEntity.init(this, aEntity.getId());\r\n\t\t\treturn;\r\n\t\t}\r\n\t\taEntity.init(this, generateId());\r\n\t\tmAddEntities.put(aEntity.getId(), aEntity);\r\n\t}",
"public void add(FavoriteEntity obj)\n {\n super.add(obj);\n }",
"public CandidateEntity addCandidate(CandidateEntity entity){\n\t\tPartyEntity party =new PartyEntity(\"BJP\", \"PM\", \"Lotus\");\n\t\tentity.setParty(party);\n\t\tentityManager.getTransaction().begin();\n\t\tentityManager.merge(entity);\n\t\tentityManager.getTransaction().commit();\n\t\tlogger.info(\"Candidate with Id\" + entity.getCandidate_id()+ \"is added\");\n\t\treturn entity;\n\t}",
"public void add() {\n preAdd();\n EntitySelect<T> entitySelect = getEntitySelect();\n entitySelect.setMultiSelect(true);\n getEntitySelect().open();\n }",
"public static void addEntity(org.bukkit.entity.Entity entity) {\n\t\tEntity nmsentity = CommonNMS.getNative(entity);\n\t\tnmsentity.world.getChunkAt(MathUtil.toChunk(nmsentity.locX), MathUtil.toChunk(nmsentity.locZ));\n\t\tnmsentity.dead = false;\n\t\t// Remove an entity tracker for this entity if it was present\n\t\tWorldUtil.getTracker(entity.getWorld()).stopTracking(entity);\n\t\t// Add the entity to the world\n\t\tnmsentity.world.addEntity(nmsentity);\n\t}",
"public G insertar(G entity, HttpServletRequest httpRequest) throws AppException;",
"@Override\n public E insert(E entity) {\n LOG.info(\"[insert] Start: entity = \" + entity.getClass().getSimpleName());\n entityManager.persist(entity);\n LOG.info(\"[insert] End\");\n return entity;\n }",
"void addConstraintEntity(IViewEntity entity);",
"void add( ModelObject modelObject, Long id );",
"public Event createEventAndAddToPet(int petId, Event newEvent) { \n EntityManager em = emf.createEntityManager();\n Pet pet = em.find(Pet.class, petId);\n PetDTO petDTO = new PetDTO(pet);\n Pet newPet = new Pet(petDTO.getId(), petDTO.getName(), petDTO.getSpecies());\n Date date = new Date();\n newPet.setBirth(pet.getBirth());\n newEvent.setPetId(newPet);\n newEvent.setDate(date);\n \n try {\n em.getTransaction().begin();\n em.persist(newEvent);\n em.getTransaction().commit();\n return newEvent;\n } finally {\n em.close();\n }\n \n }",
"void create(T entity) throws Exception;",
"public void addEntity(final Entity aEntity, final int aX, final int aY)\r\n\t{\r\n\t\tif ( !aEntity.isParticle() && mEntities.containsKey(aEntity.getId()))\r\n\t\t{\r\n\t\t\taEntity.init(this, aEntity.getId());\r\n\t\t\treturn;\r\n\t\t}\r\n\t\taEntity.init(this, generateId());\r\n\t\taEntity.setX(aX);\r\n\t\taEntity.setY(aY);\r\n\t\tmAddEntities.put(aEntity.getId(), aEntity);\r\n\t}",
"public void doAddEntity(TreePath path) {\n \t\tif(world == null) return;\n \t\tNode node = (Node) path.getLastPathComponent();\n \t\tString[] names = new String[EEntity.values().length];\n \t\tfor (int i = 0; i < names.length; i++) {\n \t\t\tnames[i] = EEntity.values()[i].name();\n \t\t}\n \t\tString selected = (String) JOptionPane.showInputDialog(\n \t\t\t\tWorldEditor.this, \"What kind of entity\", \"Create Entity\",\n \t\t\t\tJOptionPane.PLAIN_MESSAGE, null, names, names[0]);\n \t\tEEntity selectedEntity = EEntity.valueOf(selected);\n \t\tif (selectedEntity == null)\treturn;\n \t\tEditableEntity entity = (EditableEntity) EntityManager.getInstance().createEntity(selectedEntity);\n \t\tif (selectedEntity == EEntity.Terrain) {\n \t\t\tTerrainDialog dialog = new TerrainDialog(this);\n \t\t\tif (dialog.wasCanceled()) {\n \t\t\t\treturn;\n \t\t\t}\n \t\t\tDimension d = dialog.getTerrainSize();\n \t\t\tint tris = dialog.getTrisPerMesh();\n \t\t\t((TerrainEntity) entity).setWidth((int) d.getWidth());\n \t\t\t((TerrainEntity) entity).setDepth((int) d.getHeight());\n \t\t\t((TerrainEntity) entity).setTrianglesPerMesh(tris);\n \t\t}\n \t\tEditableView view = (EditableView) ViewManager.getInstance().createView(entity);\n \t\tif (selectedEntity == EEntity.Terrain) {\n \t\t\tthis.terrainView = (TerrainView)view;\n \t\t\tthis.terrainView.getTerrainCluster().setDetailTexture(1, 1);\n \t\t}\n \t\tthis.world.attachView(view);\n \t\ttreeModel.addChild(node, view);\n \t\trepaint();\n \t}",
"public void spawnEntity(Entity entity)\n\t{\n\t\tif(!entity.isLoadedResources() && !entity.loadResources())\n\t\t{\n\t\t\t//Don't add entity if an error occurs\n\t\t\treturn;\n\t\t}\n\t\tthis.newEntityBuffer.add(entity);\n\t\tLoggingHandler.logger.log(Level.FINE, \"Added entity to spawn queue: \" + entity);\n\t}",
"public void addEntity(Player player) {\n\t\tentities.add(player);\n\t}",
"@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }",
"@Override\n\tpublic void addItem(User entity) {\n\t\tuserRepository.save(entity);\n\t\t\n\t}",
"@Override\n\tpublic void Insert(PersonelContract entity) {\n\n\t}",
"public abstract boolean create(T entity) throws ServiceException;",
"T createEntity();",
"RecipeObject addRecipe(RecipeObject recipe);",
"E create(E entity, RequestContext context)\n throws TechnicalException, ConflictException;",
"@Override\n public EntityResponse createEntity(String entitySetName, OEntity entity) {\n return super.createEntity(entitySetName, entity);\n }",
"WriteRequest insert(PiEntity entity);",
"void SaveBudgetKeyAdditional(BudgetKeyAdditionalEntity budgetKeyAdditionalEntity);",
"public void addEntity(T... entities) {\r\n\t\tfor (T entity : entities) {\r\n\t\t\t// if entity name is not specified, set the fully qualified class name as the entity name\r\n\t\t\tentity.setEntityName(StringUtils.hasLength(entity.getEntityName()) ? entity.getEntityName() : entity.getClass().getName());\r\n\t\t\tthis.entitiesList.add(entity);\r\n\t\t}\t\t\r\n\t}",
"public AddEntityCommand(SceneBase scene, Entity entity) {\n\t\tthis(scene, entity, null);\n\t}",
"public void addEntityToTeam(LivingEntity livingEntity, String teamName) {\n getTeam(teamName).addEntry(livingEntity.getUniqueId().toString());\n }",
"void create(Student entity);",
"Builder addMainEntity(Thing.Builder value);",
"ID create(T entity);",
"void save(E entity);",
"T insert(T entity) throws Exception;",
"public synchronized void addGeneralEntity(GeneralEntity generalEntity) {\r\n\r\n String name = generalEntity.getName();\r\n\r\n if (!generalEntities.containsKey(name))\r\n generalEntities.put(name,generalEntity);\r\n\r\n }",
"Entity save(Entity entity);",
"x0401.oecdStandardAuditFileTaxPT1.ProductDocument.Product addNewProduct();",
"E save(E entity);",
"public void addProduct(Product product) {\n entityManager.persist(product);\n }",
"int insert(T entity);",
"public void addProduct(Product product);",
"public void createNewObject(Representation entity) throws ResourceException {\r\n\t\tT entry = createObjectFromHeaders(null, entity);\r\n\t\texecuteUpdate(entity, entry, createUpdateObject(entry));\r\n\r\n\t}",
"@Override\n\tpublic ImageEntity insert(Object entity) {\n\t\tDatabaseContext.insertRecord(entity);\n\t\treturn (ImageEntity) entity;\n\t}",
"public void addEntityName(String name) {\n if (name != null) {\n this.entityNameSet.add(name);\n }\n }",
"@Override\n\t@Transactional\n\tpublic void addHello(HelloEntity helloEntity) {\n\t\tSystem.out.println(helloEntity.getName());\n\t\t// entityManager.getTransaction().begin();\n\t\tentityManager.persist(helloEntity);\n\t\tentityManager.flush();\n\t\t// entityManager.getTransaction().commit();\n\t\tSystem.out.println(\"add hello\");\n\t}",
"void save(Object entity);",
"@Override\n\tpublic int addBookshelfinfo(BookshelfinfoEntity bookshelfinfoEntity) {\n\t\treturn this.sqlSessionTemplate.insert(\"bookshelfinfo.add\", bookshelfinfoEntity);\n\t}",
"public Resource addEntity(String uri, String label, String remoteHostAddress, String username,\n String protocol, boolean replace) {\n String updatedUri = uri.replaceAll(\"\\\\\\\\\", \"/\");\n String fullUri;\n if (protocol != null && !protocol.isEmpty()) {\n// fullUri = remote ? getFullRemoteURI(updatedUri) : getFullLocalURI(updatedUri);\n if (remoteHostAddress != null && !remoteHostAddress.isEmpty()) {\n if (username != null && !username.isEmpty()) {\n fullUri = protocol + \"://\" + username + \"@\" + remoteHostAddress + \"/\"\n + updatedUri;\n } else {\n fullUri = protocol + \"://\" + remoteHostAddress + \"/\" + updatedUri;\n }\n } else {\n fullUri = protocol + \"://\" + updatedUri;\n }\n } else {\n fullUri = getFullLocalURI(updatedUri);\n }\n\n if (replace) {\n removeResource(fullUri);\n }\n // make parts necessary for defining this particular entity in the model\n Resource entityToAdd = createStatement(fullUri, ProvOntology.getRDFTypeFullURI(),\n ProvOntology.getEntityStartingPointClassFullURI());\n\n // add the label\n if (label != null) {\n labelResource(entityToAdd, label);\n }\n // provide the resource to the caller for method-chaining\n return entityToAdd;\n }",
"public void addToTile(GameEntity e) {\n\t\t\n\t\tGridTile tile = getTile(e.pos());\n\t\ttile.add(e);\n\t}",
"public double addExpenseTransaction(ExpenseEntity expenseEntity);",
"public <T extends E> void add(EntityList<T> entityList)\r\n\t{\r\n\t\tadd( entityList.entities, 0, entityList.size );\r\n\t}",
"@Override\n public void add(Curso entity) {\n Connection c = null;\n PreparedStatement pstmt = null;\n\n try {\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"INSERT INTO curso (nombrecurso, idprofesor, claveprofesor, clavealumno) values (?, ?, ?, ?)\");\n\n pstmt.setString(1, entity.getNombre());\n pstmt.setInt(2, (entity.getIdProfesor() == 0)?4:entity.getIdProfesor() ); //creo que es sin profesor confirmado o algo por el estilo\n pstmt.setString(3, entity.getClaveProfesor());\n pstmt.setString(4, entity.getClaveAlumno());\n \n pstmt.execute();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (pstmt != null) {\n pstmt.close();\n }\n DBUtils.closeConnection(c);\n } catch (SQLException ex) {\n Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }",
"public void insert(EmployeeEntity entity){\n EmployeeDB.getInstance().insertOrUpdate(entity);\n }",
"public void add(Object obj) {\r\n\t\tSession session = null;\r\n\t\tTransaction tx = null;\r\n\r\n\t\ttry {\r\n\t\t\tsession = factory.openSession();\r\n\t\t\ttx = session.beginTransaction();\r\n\r\n\t\t\tsession.save(obj);\r\n\t\t\ttx.commit();\r\n\t\t} catch (HibernateException ex) {\r\n\t\t\tif (tx != null)\r\n\t\t\t\ttx.rollback();\r\n\t\t\tSystem.out.println(ex.getMessage());\r\n\t\t} finally {\r\n\t\t\tif (session != null)\r\n\t\t\t\tsession.close();\r\n\t\t}\r\n\t}",
"@Override\n public final void makeAddPrepareForCopy(final Map<String, Object> pAddParam,\n final GoodsLoss pEntity) throws Exception {\n //nothing\n }",
"public static void addEntityToCurrentScene(Entity entity) {\n AbstractScene currentScene = instance().currentScene;\n if (currentScene != null) {\n currentScene.addEntity(entity);\n } else {\n logger.error(\"Couldn't add entity to the current scene, because there is no scene loaded!\", Thread.currentThread().getStackTrace());\n System.exit(-1);\n }\n }",
"@Observable\n public AbstractBatchAction<T> addToSaveEntities(final T entity) {\n this.saveEntities.add(entity);\n return this;\n }",
"@Override\n\tpublic <T> void insertOne(T entityClass) throws Exception {\n\t\t\n\t}",
"protected abstract ENTITY createEntity();",
"@Override\n\tpublic void addchild(EndpointEntity entity) {\n\t\t\n\t}",
"@RequestMapping(value=\"/add\", method = RequestMethod.POST, produces=MediaType.APPLICATION_JSON_VALUE)\n\t@ResponseBody\n\tpublic ArticleEntity add(@RequestBody ArticleEntity detail) {\n\t\tArticleEntity newEntity = convertVo2Entity(serviceFactory.getArticleService().create(convertEntity2Vo(detail)));\n\t\treturn newEntity;\n\t}",
"public void attach(final E entity) {\n if (entity.getId() != null) return;\n entity.setId(this.getNextId());\n this.entities.add(entity);\n this.id2entity.put(entity.getId(), entity);\n }",
"public EspecieEntity inserta(EspecieEntity entity){\r\n em.persist(entity);\r\n return entity;\r\n }",
"Product addNewProductInStore(Product newProduct);",
"com.soa.SolicitarServicioDocument.SolicitarServicio addNewSolicitarServicio();"
] | [
"0.7742894",
"0.7351899",
"0.7333879",
"0.73241466",
"0.7059058",
"0.69421846",
"0.6940553",
"0.68791425",
"0.6791859",
"0.6779802",
"0.67779744",
"0.6748623",
"0.6704525",
"0.66692734",
"0.6651178",
"0.6623806",
"0.6602298",
"0.659482",
"0.6562411",
"0.6562411",
"0.650361",
"0.64961535",
"0.644548",
"0.6433078",
"0.64098614",
"0.6392086",
"0.63577384",
"0.63531",
"0.6337993",
"0.6306852",
"0.6280025",
"0.62790644",
"0.62699187",
"0.62599224",
"0.62464994",
"0.6233193",
"0.62295115",
"0.6207131",
"0.6185253",
"0.6162003",
"0.61390066",
"0.61369795",
"0.613306",
"0.6122767",
"0.61128134",
"0.6111633",
"0.6101892",
"0.60987175",
"0.60949653",
"0.6091459",
"0.60802054",
"0.6076289",
"0.6073707",
"0.60618675",
"0.60576504",
"0.6054347",
"0.60335726",
"0.6031625",
"0.60260457",
"0.60132444",
"0.6012147",
"0.6008982",
"0.6007072",
"0.6005587",
"0.6000093",
"0.59957343",
"0.59794164",
"0.59747165",
"0.59711283",
"0.5967359",
"0.5960787",
"0.59583837",
"0.5957999",
"0.59492654",
"0.59296876",
"0.5928694",
"0.5908901",
"0.59053546",
"0.59000295",
"0.5897684",
"0.58921635",
"0.5885341",
"0.588388",
"0.5878016",
"0.58763087",
"0.5874876",
"0.58641016",
"0.5862596",
"0.5846262",
"0.5842814",
"0.58384895",
"0.58379984",
"0.5835089",
"0.5830894",
"0.5826212",
"0.5804891",
"0.58015054",
"0.5799288",
"0.57964593",
"0.57925636"
] | 0.7159194 | 4 |
Add a targeted entity as constraint | void addConstraintEntity(IViewEntity entity); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void addConstraint(String constraint) {\n\n\t}",
"Constraint createConstraint();",
"Constraint createConstraint();",
"public Constraint addConstraint() {\n\t\tConstraint newType = new Constraint();\n\t\tgetConstraint().add(newType);\n\t\treturn newType; \n\t}",
"public void addConstraint(final PgConstraint constraint) {\n constraints.add(constraint);\n }",
"com.microsoft.schemas.crm._2011.contracts.ArrayOfConstraintRelation addNewConstraints();",
"void addConstraintRelation(IViewRelation relation);",
"public void addConstraint(ContextConstraint node) {\n List<ContextConstraint> list = getConstraintList();\n list.addChild(node);\n }",
"protected Constraint add(Constraint c) throws IllegalArgumentException {\r\n\t\tif (!constraints.contains(c)) {\r\n\t\t\tif (c.getIndex() >= 0) {\r\n\t\t\t\tthrow new IllegalArgumentException();\r\n\t\t\t}\r\n\t\t\tc.setIndex(constraints.size());\r\n\t\t\tconstraints.add(c);\r\n\t\t}\r\n\t\treturn c;\r\n\t}",
"public void createConstraint(ConstraintConfig constraintConfig) throws ConfigurationException;",
"void add(E entity) throws ValidationException, RepositoryException;",
"private void addConstraint(String tok) throws SyntaxError {\n assert(tok.startsWith(PREFIX_OP_STR));\n \n if (!tok.endsWith(\")\")) {\n throw new SyntaxError(String.format(\"Wrong format for the constraint '%s', expected format: %s\",\n tok, CONSTR_FMT));\n }\n int pos = tok.indexOf('(');\n if (pos == -1) {\n throw new SyntaxError(String.format(\"Missing '(' in the constraint '%s', expected format: %s\",\n tok, CONSTR_FMT)); \n }\n String op = tok.substring(1, pos);\n ConstraintType type = ConstraintType.CONSTRAINT_PARENT;\n if (op.equalsIgnoreCase(CONSTR_CONTAINS)) {\n type = ConstraintType.CONSTRAINT_CONTAINS;\n } else if (!op.equalsIgnoreCase(CONSTR_PARENT)) {\n throw new SyntaxError(String.format(\"Wrong constraint name '%s' in the element '%s'\", op, tok));\n }\n // Labels cannot contain commas\n String parts[] = tok.substring(pos + 1, tok.length() - 1).split(\",\");\n if (parts.length < 2) {\n throw new SyntaxError(String.format(\n \"There should be at least 2 elements between '(' and ')'\" + \n \" in the constraint '%s', expected format %s\",\n tok, CONSTR_FMT));\n }\n String headLabel = parts[0].trim();\n Integer headId = mLabel2Id.get(headLabel);\n if (null == headId) {\n throw new SyntaxError(String.format(\"Cannot find a lexical entry \" +\n \" for the label '%s', constraint '%s'\", headLabel, tok)); \n }\n\n ArrayList<ConstraintType> constr = mConstrType.get(headId);\n ArrayList<Integer> dependIds = mDependId.get(headId);\n \n if (ConstraintType.CONSTRAINT_PARENT == type) {\n if (mTypes.get(headId) != FieldType.FIELD_ANNOTATION) {\n throw new SyntaxError(String.format(\n \"The parent in the constraint '%s' should be an annotation\", tok));\n }\n }\n \n for (int i = 1; i < parts.length; ++i) {\n String depLabel = parts[i].trim();\n Integer depId = mLabel2Id.get(depLabel);\n if (null == depId) {\n throw new SyntaxError(String.format(\"Cannot find a lexical entry \" +\n \" for the label '%s', constraint '%s'\", depLabel, tok)); \n }\n \n if (ConstraintType.CONSTRAINT_PARENT == type) {\n if (mTypes.get(depId) != FieldType.FIELD_ANNOTATION) {\n throw new SyntaxError(String.format(\n \"A child (label '%s') in the constraint '%s' should be an annotation\", \n depLabel, tok));\n }\n } \n \n constr.add(type);\n dependIds.add(depId);\n\n /*\n * This is a potentially horrible linear-time complexity search\n * in an array. However, for a reasonable-size user query \n * these arrays are going to be tiny and, in practice, \n * such a linear search be as fast as or likely even faster than \n * a hash/tree map lookup.\n */\n if (!mEdges.get(depId).contains(headId))\n mEdges.get(depId).add(headId);\n if (!mEdges.get(headId).contains(depId))\n mEdges.get(headId).add(depId);\n\n }\n }",
"public void add(E entity);",
"protected abstract void defineConstraints();",
"public static DatasourceConstraint createEntity(EntityManager em, UserService userService) {\n DatasourceConstraint datasourceConstraint = new DatasourceConstraint();\n // Add required entity\n User user = UserResourceIntTest.createEntity(userService);\n em.persist(user);\n em.flush();\n datasourceConstraint.setUser(user);\n\n datasourceConstraint.setConstraintDefinition(DEFAULT_CONSTRAINT_DEFINITION);\n\n // Add required entity\n Datasource datasource = DatasourceResourceIntTest.createEntity(em);\n em.persist(datasource);\n em.flush();\n datasourceConstraint.setDatasource(datasource);\n return datasourceConstraint;\n }",
"@Override\r\n\tpublic void validateIntegrityConstraint() {\n\t\tvalidatorEngine.validate(entity);\r\n\t}",
"private static void addReservationConstraint()\n {\n ReservationConstraints constraint = new ReservationConstraints(new Date(), new Date(), \"bogusCarType\");\n System.out.println(\"press any key to try to register quote : \" + constraint);\n Main.readLine();\n \n if(session.createQuote(constraint) != null)\n System.out.println(\"Quote registered\");\n }",
"@Transactional void add(E entity);",
"public Builder addConstraint(ClusterConstraints constraint) {\n ClusterConstraints existConstraints = getConstraintsInstance(constraint.getType());\n for (ConstraintId constraintId : constraint.getConstraintItems().keySet()) {\n existConstraints\n .addConstraintItem(constraintId, constraint.getConstraintItem(constraintId));\n }\n return this;\n }",
"void addEntity(IViewEntity entity);",
"public void addEntity(Entity entity)\n {\n if (this.withinBounds(entity.getPosition()))\n {\n this.setOccupancyCell(entity.getPosition(), entity);\n this.entities.add(entity);\n }\n }",
"public void addEntity(AnnexDetail entity) throws Exception {\n\t\t\n\t}",
"public int addAsEntity(Entity e, int x, int y) {\n e.setMapRelation(new MapEntity_Relation(this, e, x, y));\n System.out.println(e.name_);\n int error_code = this.map_grid_[y][x].addEntity(e);\n System.out.println(e.name_ + \"2\");\n if (error_code == 0) {\n this.entity_list_.put(e.name_, e);\n } else {\n e.setMapRelation(null);\n System.err.println(\"Error in entity list\");\n }\n return error_code;\n }",
"Builder addMainEntity(Thing value);",
"public void addEntity(Entity entity)\n {\n if (withinBounds(entity.getPosition()))\n {\n setOccupancyCell(entity.getPosition(), entity);\n this.entities.add(entity);\n }\n }",
"public void addObject(ObjectNode on) throws MismatchException, ChangeNotAllowedException {\r\n FactType ft = getFactType(on.getTypeName());\r\n if (ft == null) {\r\n throw new RuntimeException(\"objecttype \" + on.getTypeName() + \" is unknown at objectmodel\");\r\n }\r\n if (!ft.isObjectType()) {\r\n throw new RuntimeException(\"adding object at facttype \"\r\n + ft.getName() + \" which isn't an objecttype\");\r\n }\r\n ft.addFact(on);\r\n\r\n }",
"Builder addAccountablePerson(Person value);",
"public Builder addConstraint(ConstraintType type, ConstraintId constraintId, ConstraintItem item) {\n ClusterConstraints existConstraints = getConstraintsInstance(type);\n existConstraints.addConstraintItem(constraintId, item);\n return this;\n }",
"private void attachEntity(Usuario entity) {\n }",
"void removeConstraintEntity(IViewEntity entity);",
"@PrePersist @Restrict\n public void prePersist() {}",
"public Delta addConstraintItem(ConstraintType type, ConstraintId constraintId,\n ConstraintItem item) {\n _builder.addConstraint(type, constraintId, item);\n return this;\n }",
"void addHasRestraintType(Integer newHasRestraintType);",
"com.microsoft.schemas.crm._2011.contracts.ArrayOfObjectiveRelation addNewObjectives();",
"Entity determinePriorityTarget();",
"@Override\n public void addRelationshipBetweenCentralAndPhysical(PhysicalObject physicalObject,\n double weight) {\n assert false : \"shouldn't call this method\";\n }",
"void validateCreate(T entity);",
"protected void addConstraint(RecognizerConstraint c) {\n constraints.put(c.getName(), c);\n\n // 2. Retain a list of all the slots used in this constraint, so we can\n // easily get the related constraints to each slot.\n for (String slotName : c.getSlotNames()) {\n String primary = RecognizerConstraint.primary(slotName);\n // ensure there's a place to record the pairing\n if (!slotsToConstraints.containsKey(primary)) {\n slotsToConstraints.put(primary, new HashSet<String>());\n }\n slotsToConstraints.get(primary).add(c.getName());\n }\n }",
"@Override\r\n\tpublic void addToCost() {\n\t\t\r\n\t}",
"E create(E entity);",
"E create(E entity);",
"private void addVertexPositionConstraint(){\n for (int vertex=0; vertex < vertexCount; vertex++){\n addExactlyOne(variables[vertex]);\n }\n }",
"public <T> void addConstraintSet(LogicOperation logicalOp, int columnIndex,\n\t\t\tList<ColumnConstraint<T>> constraints) {\n\t\tconstraintSets.add(new ColumnConstraintSet<>(model, columnIndex, constraints, logicalOp));\n\t\torList = null; // the current orList is now invalid, this will cause it to be rebuilt when needed.\n\t}",
"public void addToIntegrityChecks(entity.LoadIntegrityCheck element);",
"@Override\n\tpublic void Insert(PersonelContract entity) {\n\n\t}",
"public interface EntityOrAssetRule extends Rule {\n /**\n * Return the component id of the Entity or Asset that this rule should\n * belong to.\n * @return The component id.\n */\n public String getComponentId();\n \n /**\n * Given a mission objective and a system, find the corresponding component\n * to this rule, and add this rule to that component.\n * @param objective The mission objective.\n * @param system The system containing the component for this rule.\n */\n public void addToComponent(String objective, OpSystem system);\n}",
"@Override\n public final void makeAddPrepareForCopy(final Map<String, Object> pAddParam,\n final GoodsLoss pEntity) throws Exception {\n //nothing\n }",
"public void add(IApsEntity entity) throws ApsSystemException;",
"@Override\n\tpublic void addEntity( final Entity _entity )\n\t{\n\t\tif( _entity == null )\n\t\t{\n\t\t\tLogger.println( \"Attempting to add null entity.\", Logger.Verbosity.MAJOR ) ;\n\t\t\treturn ;\n\t\t}\n\n\t\tentitiesToAdd.add( _entity ) ;\n\t}",
"public void addNewLegalEntity(String string) {\n\t\t\r\n\t}",
"Cascade createCascade();",
"public LinearConstraint() {\n\n }",
"Relationship createRelationship();",
"@Override\n public void addRelationshipBetweenPhysicalAndPhysical(PhysicalObject physicalObjectA,\n PhysicalObject physicalObjectB, double weight) {\n assert false : \"shouldn't call this method\";\n }",
"@PostMapping(\"/add/{projectId}\")\r\n\tpublic Constraints createConstraint(@RequestBody ConstraintsDto constraintDto, @PathVariable long projectId) {\n\t\tConstraints constraint = new Constraints();\r\n\t\t// check if constraint description is null\r\n\t\tif (constraintDto.getDescription() == null || constraintDto.getDescription().equals(\"\")) {\r\n\t\t\tthrow new BaseException(ExceptionCode.ER0030);\r\n\t\t}\r\n\t\t// save constraint description to entity\r\n\t\tconstraint.setDescription(constraintDto.getDescription());\r\n\r\n\t\t// check if project id is existing\r\n\t\tif (projectService.findByID(projectId) == null) {\r\n\t\t\tthrow new BaseException(ExceptionCode.ER0012);\r\n\t\t}\r\n\t\treturn service.createConstraint(constraint, projectId);\r\n\t}",
"void create(E entity);",
"public void addToLinesOfBusiness(entity.AppCritLineOfBusiness element);",
"@Override\n\tpublic void entityAdded(Entity entity)\n\t{\n\t\t\n\t}",
"@Override\n public void add(T obj) {\n generateObjIdIfRequired(obj);\n \n //Try to copy when adding so we can prevent unwanted changes\n obj = getCopyOfT(obj);\n \n if (objects.contains(obj)) throw new DBEntityAlreadyExistsException(obj.toString());\n\n objects.add(obj);\n }",
"public interface IHardConstraint {\n\t\n\tpublic boolean isConstraintViolated(List<Job> jobs, List<Resource> resources, Plan plan);\n\t\t\n}",
"public CandidateEntity addCandidate(CandidateEntity entity){\n\t\tPartyEntity party =new PartyEntity(\"BJP\", \"PM\", \"Lotus\");\n\t\tentity.setParty(party);\n\t\tentityManager.getTransaction().begin();\n\t\tentityManager.merge(entity);\n\t\tentityManager.getTransaction().commit();\n\t\tlogger.info(\"Candidate with Id\" + entity.getCandidate_id()+ \"is added\");\n\t\treturn entity;\n\t}",
"public void addEntity(Entity e)\r\n\t{\r\n\t\tentities.add(e);\r\n\t}",
"@Override\r\n\tprotected boolean isRefactoringSupportedForDialect(HibernateDialect dialect)\r\n\t{\r\n\t\treturn dialect.supportsAddUniqueConstraint();\r\n\t}",
"protected void onAdd( E entity, int index )\r\n\t{\r\n\t\t\r\n\t}",
"protected abstract void addJointImpl( Joint joint );",
"Builder addMainEntity(Thing.Builder value);",
"private void addVertexVisitConstraint(){\n\n for (int vertex=0; vertex < vertexCount; vertex++){\n Integer[] pos = new Integer[variables.length];\n for (int position =0; position < positionCount; position++){\n pos[position] = variables[position][vertex];\n }\n addExactlyOne(pos);\n }\n }",
"public void addRule(SkeletonJoint from, int relation, int dist, SkeletonJoint to)\n\t{\n\t\tBodyPoseRule rule = new BodyPoseRule(from, relation, dist, to);\n\t\trules.add(rule);\n\t}",
"int insertSelective(MyUserRoleRelation record);",
"Builder addMainEntity(String value);",
"public G insertar(G entity, HttpServletRequest httpRequest) throws AppException;",
"public boolean supportsUniqueConstraintInCreateAlterTable() {\n \t return true;\n \t}",
"protected void addConstraints() throws IloException {\n// Constrain (2)\n for (int i = 0; i < m; i++) {\n IloLinearNumExpr expr_2 = model.linearNumExpr();\n for (int j = 0; j < n; j++) {\n expr_2.addTerm(x[i][j], 1);\n }\n model.addLe(expr_2, supply[i]);\n }\n\n // Constrain (3)\n for (int j = 0; j < n; j++) {\n IloLinearNumExpr expr_3 = model.linearNumExpr();\n for (int i = 0; i < m; i++) {\n expr_3.addTerm(x[i][j], 1);\n }\n model.addEq(expr_3, demands[j]);\n }\n }",
"public abstract void collideWith(Entity entity);",
"public boolean addTarget(Entity target) {\r\n boolean result = IServer.associationHasTarget().add(this, target);\r\n IServer.fireLinkUpdated(new LinkEvent(this));\r\n return result;\r\n }",
"public void addConstraint(final int startOfSpan, final int spanLength) {\n constraints.add(new int[] {startOfSpan, spanLength});\n }",
"int insertSelective(CompanyExtend record);",
"int insertSelective(AttributeExtend record);",
"public void setConstraint(ContextConstraint node, int i) {\n List<ContextConstraint> list = getConstraintList();\n list.setChild(node, i);\n }",
"@Override\n\tpublic Result add(CurriculumVitae entity) {\n\t\treturn null;\n\t}",
"public interface LookupConstraint {\n}",
"@Override\r\n protected SimpleBody addObject(Entity e) {\n PhysicsShape ps = e.get(PhysicsShape.class);\r\n PhysicsMassType pmt = e.get(PhysicsMassType.class);\r\n Position pos = e.get(Position.class);\r\n\r\n // Right now only works for CoG-centered shapes \r\n SimpleBody newBody = createStatic(e.getId(), pmt.getTypeName(ed), ps.getFixture(), true);\r\n\r\n newBody.setPosition(pos); //ES position: Not used anymore, since Dyn4j controls movement\r\n\r\n newBody.getTransform().setTranslation(pos.getLocation().x, pos.getLocation().y); //Dyn4j position\r\n newBody.getTransform().setRotation(pos.getRotation());\r\n\r\n newBody.setUserData(e.getId());\r\n\r\n newBody.setLinearDamping(0.3);\r\n\r\n return newBody;\r\n }",
"public void applyEntityCollision(Entity entityIn) {\n }",
"private void setPropertyConstraints(final OProperty op, final @Nullable EntityProperty entityProperty) {\n if (entityProperty != null) {\n if (!isEmpty(entityProperty.min())) {\n op.setMin(entityProperty.min());\n }\n if (!isEmpty(entityProperty.max())) {\n op.setMax(entityProperty.max());\n }\n if (!isEmpty(entityProperty.regexp())) {\n op.setRegexp(entityProperty.regexp());\n }\n if (entityProperty.unique()) {\n op.createIndex(UNIQUE);\n }\n op.setNotNull(entityProperty.notNull());\n op.setMandatory(entityProperty.mandatory());\n op.setReadonly(entityProperty.readonly());\n }\n }",
"com.microsoft.schemas.crm._2011.contracts.ArrayOfRequiredResource addNewRequiredResources();",
"@Override\r\n protected SimpleBody addObject(Entity e) {\n PhysicsShape ps = e.get(PhysicsShape.class);\r\n PhysicsMassType pmt = e.get(PhysicsMassType.class);\r\n Position pos = e.get(Position.class);\r\n\r\n // Right now only works for CoG-centered shapes \r\n SimpleBody newBody = createBody(e.getId(), pmt.getTypeName(ed), ps.getFixture(), true);\r\n\r\n newBody.setPosition(pos); //ES position: Not used anymore, since Dyn4j controls movement\r\n\r\n newBody.getTransform().setTranslation(pos.getLocation().x, pos.getLocation().y); //Dyn4j position\r\n newBody.getTransform().setRotation(pos.getRotation());\r\n\r\n newBody.setUserData(e.getId());\r\n\r\n newBody.setLinearDamping(0.3);\r\n\r\n return newBody;\r\n }",
"protected abstract Object validateParameter(Object constraintParameter);",
"IRequirement or(IRequirement constraint);",
"Criteria add(Criteria add);",
"Criteria add(Criteria add);",
"Criteria add(Criteria add);",
"Criteria add(Criteria add);",
"Criteria add(Criteria add);",
"Criteria add(Criteria add);",
"Criteria add(Criteria add);",
"protected void addObject(Obstacle obj) {\n\t\tassert inBounds(obj) : \"Object is not in bounds\";\n\t\tobjects.add(obj);\n\t\tobj.activatePhysics(world);\n\t}",
"void addIsPerformOf(Role newIsPerformOf);",
"public double addExpenseTransaction(ExpenseEntity expenseEntity);",
"boolean addObject(E object) throws DatabaseNotAccessibleException, DatabaseLogicException;",
"public boolean attach(Point point, float spring_constant) {\n return point == null ? false : this.constraints.add(new Constraint(this, point, spring_constant, physics));\n }"
] | [
"0.6335638",
"0.6303737",
"0.6303737",
"0.6075967",
"0.60424775",
"0.5939207",
"0.5904072",
"0.58979434",
"0.5760978",
"0.5746646",
"0.56584984",
"0.5637769",
"0.5624358",
"0.5607157",
"0.5568153",
"0.5565783",
"0.55273294",
"0.5482911",
"0.54207695",
"0.5417874",
"0.54076034",
"0.53423053",
"0.526894",
"0.52674687",
"0.52636343",
"0.5196243",
"0.5187639",
"0.51834095",
"0.5145537",
"0.51119965",
"0.51096195",
"0.5108158",
"0.509897",
"0.5071723",
"0.50702304",
"0.50684994",
"0.5067388",
"0.504597",
"0.50376177",
"0.5006002",
"0.5006002",
"0.49994954",
"0.49967867",
"0.49910885",
"0.49875903",
"0.49781248",
"0.4976888",
"0.49755177",
"0.4974007",
"0.49677345",
"0.49662527",
"0.49477857",
"0.49355444",
"0.49281108",
"0.49234986",
"0.49212757",
"0.49182117",
"0.49130222",
"0.49074",
"0.49005076",
"0.48993558",
"0.48790985",
"0.48459446",
"0.48438272",
"0.48432994",
"0.48417988",
"0.48414913",
"0.48334923",
"0.48306108",
"0.48296013",
"0.48239407",
"0.48203984",
"0.48133808",
"0.48116228",
"0.48033592",
"0.48023534",
"0.47987503",
"0.47985187",
"0.4797682",
"0.47948545",
"0.47819853",
"0.4778383",
"0.4776112",
"0.4773471",
"0.47722113",
"0.47684687",
"0.47562194",
"0.47530925",
"0.47304204",
"0.47304204",
"0.47304204",
"0.47304204",
"0.47304204",
"0.47304204",
"0.47304204",
"0.47245118",
"0.47182444",
"0.47105387",
"0.47019738",
"0.46977055"
] | 0.7596246 | 0 |
Remove a linked entity | void removeEntity(IViewEntity entity); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void remove(Object entity) {\n\t\t\n\t}",
"abstract protected void removeEntity(Entity entity);",
"public void remove(E e) {\n\t\tentities.remove(e);\n\t}",
"@Override\n\tpublic void remove(Post entity) {\n\t\t\n\t}",
"public void removeEntity(Entity entity){\n entityList.remove(entity);\n }",
"void removeRelationship(DbRelationship rel) {\n objectList.remove(rel);\n fireTableDataChanged();\n }",
"public final void delete() {\n\t\tOllie.delete(this);\n\t\tOllie.removeEntity(this);\n\t\tnotifyChange();\n\t\tid = null;\n\t}",
"public void entityRemoved() {}",
"public abstract void remove(Class<?> entity, Object paramObject);",
"void delete(E entity);",
"void delete(E entity);",
"void removeNode(Entity entity) {\n\t\tProcessing.nodeSet.remove(entity);\n\t\tProcessing.friendMap.remove(entity);\n\n\t\tSystem.out.println(\"the person was successfully removed from the network.\");\n\t}",
"public final void remove(final E entity) {\n getJpaTemplate().remove(entity);\n }",
"@Test\n\tpublic void testRemoval() {\n\t\tLong id = RedisQuery.nextUniqueId();\n\t\tEntityTest et = new EntityTest(id, \"EntityTestToRemove\");\n\t\tif (RedisQuery.save(et, id)) {\n\t\t\t// Remove the entity\n\t\t\tRedisQuery.remove(et, id);\n\t\t} else {\n\t\t\tthrow new AssertionError(\"Unable to create entity to remove\");\n\t\t}\n\t}",
"E remove(Id id);",
"void remove(Student entity);",
"@Override\n\tpublic void removeEntity(T t) {\n\t\tgetSession().delete(t);\n\t}",
"@Override\n\tpublic void remove(EmpType entity) {\n\t\t\n\t}",
"@Override\n public void remove() {\n deleteFromModel();\n deleteEdgeEndpoints();\n\n setDeleted(true);\n if (!isCached()) {\n HBaseEdge cachedEdge = (HBaseEdge) graph.findEdge(id, false);\n if (cachedEdge != null) cachedEdge.setDeleted(true);\n }\n }",
"@Transactional\n public void remove(ExtensionLinkEntity link) {\n EntityManager entityManager = entityManagerProvider.get();\n link = findById(link.getLinkId());\n if (null != link) {\n entityManager.remove(link);\n }\n }",
"protected void delete(Object entity) {\r\n try {\r\n entityManager.getTransaction().begin();\r\n entityManager.remove(entity);\r\n entityManager.getTransaction().commit();\r\n } catch (Exception e) {\r\n System.err.println(\"Erro ao remover Entidade \" + e.getMessage());\r\n }\r\n }",
"@Override\n public E delete(final E entity) {\n LOG.info(\"[delete] Start: entity = \" + entity.getClass().getSimpleName());\n entityManager.remove(entity);\n LOG.info(\"[delete] End\");\n return entity;\n }",
"public void remove()\n\n throws ManageException, DoesNotExistException;",
"public void remove() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.delete(this);\n\t\tsession.getTransaction().commit();\n\t}",
"public void elimina(Long id) {\n\n final EntityManager em = getEntityManager();\n\n try {\n\n final EntityTransaction tx = em.getTransaction();\n\n tx.begin();\n\n // Busca un conocido usando su llave primaria.\n\n final Conocido modelo = em.find(Conocido.class, id);\n\n if (modelo != null) {\n\n /* Si la referencia no es nula, significa que el modelo se encontró la\n\n * referencia no es nula y se elimina. */\n\n em.remove(modelo);\n\n }\n\n tx.commit();\n\n } finally {\n\n em.close();\n\n }\n\n }",
"void delete(Object entity);",
"@Override\n\tpublic void removechild(EndpointEntity entity) {\n\t\t\n\t}",
"public <T extends IDBEntities> void delete(T element) {\n\t\tif (element == null)\n\t\t\treturn;\n\t\tEntityManager em = getEM();\n\t\ttry {\n\t\t\tem.getTransaction().begin();\n\t\t\t// Entity must be attached\n\t\t\tif (!em.contains(element))\n\t\t\t\telement = em.merge(element);\n\t\t\tem.remove(element);\n\t\t\tem.getTransaction().commit();\n\t\t} catch (Exception ex) {\n\t\t\tem.getTransaction().rollback();\n\t\t} finally {\n\t\t\tem.close();\n\t\t}\n\t}",
"public void remove() {\r\n\t\theadNode.link = headNode.link.link;\r\n\t\tsize--;\r\n\t}",
"void delete(Entity entity);",
"private void remove() {\n disableButtons();\n clientgui.getClient().sendDeleteEntity(cen);\n cen = Entity.NONE;\n }",
"@Override\n\tpublic void delete(Translator entity) {\n\t\t\n\t}",
"public int removeEntity(Entity e) {\n Entity removed = this.entity_list_.remove(e.name_);\n if (removed != null) {\n System.out.println(removed.name_ + \" has been removed from the map\");\n } else {\n System.err.println(\"The entity to be removed does not exist in the list of entities\");\n }\n if (this.map_grid_[e.getMapRelation().getMyYCoordinate()][e.getMapRelation().getMyXCoordinate()].getEntity() == e) {\n this.map_grid_[e.getMapRelation().getMyYCoordinate()][e.getMapRelation().getMyXCoordinate()].removeEntity();\n //e.setMapRelation(null);\n //System.gc();\n return 0;\n } else {\n System.err.println(\"The avatar to be removed cannot be found on the map.\");\n System.exit(-88);\n return -1;\n }\n }",
"public void delete(HrJBorrowcontract entity);",
"void remove(DirectoryEntityKey key);",
"public void delete(Book entity) {\n\t\tentityManager.remove(entityManager.contains(entity) ? entity : entityManager.merge(entity));\n\t}",
"public E remove();",
"public E remove();",
"void delete(int entityId);",
"public void remove(Order entity) {\n\t\tsuper.internalRemove(entity);\n\t}",
"public void remove();",
"public void remove();",
"public void remove();",
"public void remove();",
"public void remove();",
"public void delete(T entity) throws Exception{\n\t\tem.remove(entity);\n\t}",
"@Override\n public void removeFromDb() {\n }",
"void remove(Long id);",
"void remove(Long id);",
"@Override\n\tpublic void remover(Parcela entidade) {\n\n\t}",
"public void delete(Address entity);",
"public static void delete(Nodelink node){\n\n Nodelink temp = node.next;\n node = null;\n\n node = temp;\n\n }",
"public void delete(ShoppingCartLine entity) {\n \t\t\t\tLogUtil.log(\"deleting ShoppingCartLine instance\", Level.INFO, null);\n\t try {\n \tentity = entityManager.getReference(ShoppingCartLine.class, entity.getId());\n entityManager.remove(entity);\n \t\t\tLogUtil.log(\"delete successful\", Level.INFO, null);\n\t } catch (RuntimeException re) {\n \t\t\t\tLogUtil.log(\"delete failed\", Level.SEVERE, re);\n\t throw re;\n }\n }",
"public <T extends DbObject> void remove(T elm, EntityManager em, boolean closeConnection) throws Exception\n\t{\n\t\tEntityTransaction et = em.getTransaction();\n\t\t\n\t\ttry \n\t\t{\n\t\t\tet.begin();\n\t\t\t\n\t\t\tif(elm.getId()!=0)\n\t\t\t\tem.remove(elm);\n\t\t\t\n\t\t\tet.commit();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t\n\t\t\tet.rollback();\n\t\t\tthrow e;\n\t\t\t\n\t\t} finally {\n\t\t\tif(closeConnection)\n\t\t\t\tem.close();\n\t\t}\n\t}",
"LinkedService deleteById(String id);",
"public void eliminar(Long Id){\r\n EspecieEntity productoEliminar=em.find(EspecieEntity.class, Id);\r\n em.remove(productoEliminar);\r\n }",
"void deleteEntityById(Long id);",
"@Test\n public void testRemove() {\n System.out.println(\"remove\");\n Repositorio repo = new RepositorioImpl();\n Persona persona = new Persona();\n persona.setNombre(\"Ismael\");\n persona.setApellido(\"González\");\n persona.setNumeroDocumento(\"4475199\");\n repo.crear(persona);\n \n Persona personaAEliminar = (Persona) repo.buscar(persona.getId());\n assertNotNull(personaAEliminar);\n \n //eliminacion\n repo.eliminar(personaAEliminar);\n Persona personaEliminada = (Persona) repo.buscar(persona.getId());\n assertNull(personaEliminada);\n }",
"public void remove() {\n\n\t\t\tsuprimirNodo(anterior);\n\n\t\t}",
"public void removeCarritoDeCompras (Long compradorId) {\r\n\r\n CompradorEntity compradorEntity = compradorPersistence.find(compradorId); \r\n CarritoDeComprasEntity carroEntity = carroPersistence.find(compradorEntity.getCarritoDeCompras().getId());\r\n carroPersistence.delete(compradorEntity.getListaDeDeseos().getId());\r\n compradorEntity.setListaDeDeseos(null);\r\n carroEntity.setComprador(null);\r\n \r\n}",
"@Override\n\tpublic void eliminar(Seccion seccion) {\n\t\tentity.getTransaction().begin();\n\t\tentity.remove(seccion);\n\t\tentity.getTransaction().commit();\n\t}",
"boolean removeLink(Link link);",
"public void delete(E entity){\n Object idEntity = HibernateUtil.getIdEntity(entity);\n EntityTransaction entityTransaction = entityManager.getTransaction();\n entityTransaction.begin();\n entityManager.createNativeQuery(\"delete from \" + entity.getClass().getSimpleName().toLowerCase() +\n \" where id = \" + idEntity).executeUpdate();\n entityTransaction.commit();\n }",
"void delete(T entity);",
"void delete(T entity);",
"@Override\r\n\tpublic void deleteAdress(Adress adress) {\n\t\tem.remove(em.merge(adress));;\r\n\t}",
"@Transactional\n void remove(DataRistorante risto);",
"@Override\n public void delete(SideDishEntity entity) {\n\n }",
"public Node removeFromChain();",
"void remove(PK id);",
"@Override\n\tprotected void removeImpl(Connection conn, VtbObject domainObject)\n\t\t\tthrows SQLException, MappingException {\n\n\t}",
"public void removeEdge(Entity entityFirst, Entity entitySecond) {\n\t\tif(Processing.friendMap.containsKey(entityFirst.getEmail())) {\n\t\t\tif(Processing.friendMap.get(entityFirst.getEmail()).contains(entitySecond.getEmail())) {\n\t\t\t\tProcessing.friendMap.get(entityFirst.getEmail()).remove(entitySecond.getEmail());\n\t\t\t\tSystem.out.println(entitySecond.getEmail()+\" is removed from your Friend list\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(entitySecond.getEmail()+\" is not friend of you\");\n\t\t\t}\n\t\t\t\n\t\t}else {\n\t\t\tSystem.out.println(entityFirst.getEmail()+\" does not exist\");\n\t\t}\n\t}",
"public synchronized void remove(E object) {\n Node<E> temp = first;\n while (temp.next != null) {\n if (first.object.equals(object)) {\n first = first.next;\n } else if (temp.object.equals(object)) {\n Node<E> forChangeLinks = temp;\n temp.next.prev = temp.prev;\n temp.prev.next = temp.next;\n }\n temp = temp.next;\n }\n }",
"public void remove () {}",
"public void delete(SecRole entity);",
"public void unidirectionalOneToManyDeleteTest() throws Exception {\n EntityManager em = createEntityManager();\n \n em.getTransaction().begin();\n \n EntityC c1 = new EntityC();\n c1.setName(\"EntityC1\");\n EntityD d1 = new EntityD();\n d1.setName(\"EntityD1\");\n\n c1.getDs().add(d1);\n\n em.persist(c1);\n\n em.getTransaction().commit();\n\n Integer idC1 = c1.getId();\n Integer idD1 = d1.getId();\n \n em.getTransaction().begin();\n \n // remove the owning side\n em.remove(c1);\n try {\n em.getTransaction().commit();\n } catch (RuntimeException ex) {\n if (em.getTransaction().isActive()) {\n em.getTransaction().rollback();\n }\n em.close();\n \n throw ex;\n }\n \n clearCache();\n \n assertTrue(\"EntityC c1 should have been removed!\", \n em.createQuery(\"SELECT c FROM EntityC c WHERE c.id = ?1\").setParameter(1, idC1).getResultList().size() == 0);\n assertTrue(\"EntityD d1 should have been removed!\", \n em.createQuery(\"SELECT d FROM EntityD d WHERE d.id = ?1\").setParameter(1, idD1).getResultList().size() == 0);\n\n em.close();\n }",
"public void delRelations();",
"public void removeNodeAfterThis() {\r\n\t\tif ( link != null ) {\r\n\t\t\tlink = link.link;\r\n\t\t} // end precondition\r\n\t}",
"public void delete() throws EntityPersistenceException {\n\n }",
"void relRemoveProperty( long relId, int propertyKey );",
"@Override\r\n public void deleteEntity(String entityName) {\n\r\n }",
"public void delete() {\n\t\t// pre: length>0\n\t\t// post: delete one node from the end; reduce length\n\t\tif (this.length > 0) {\n\t\t\tCLL_LinkNode temp_node = this.headNode ;\n\t\t\tfor (int i = 1; i < this.length-1; i++) {\n\t\t\t\ttemp_node = temp_node.getNext();\n\t\t\t}\n\t\t\ttemp_node.getNext().setNext(null);\n\t\t\ttemp_node.setNext(this.headNode);\n\t\t\tthis.length--;\n\t\t}\n\t}",
"@Override\r\n\tpublic void delete(FollowUp followup) {\n\t\t\r\n\t}",
"@Override\n public void delete(LineEntity entity) {\n\n }",
"public void remove(T entity) throws DataAccessException;",
"@Override\n\tpublic void delete(Recipe entity) {\n\t\t\n\t}",
"@Override\n\tpublic PersonelContract Delete(PersonelContract entity) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void removeEntityById(String id) {\n\t\tClassMetadata classMetadata = sessionFactory.getClassMetadata(entityType);\n\t\tString idName = classMetadata.getIdentifierPropertyName();\n\t\tString simpleName = entityType.getSimpleName();\n\t\tString hql = \"delete from\" +simpleName+\"e where e.\"+idName+\"=?\";\n\t\tgetQuery(hql, id).executeUpdate();\n\t}",
"public void removePerson(Person p);",
"@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}",
"public void remove(Element e) {\n\t\tlistLiving.remove(e);\n\t\tmapContains.put(e.getPosition(), null);\n\t}",
"@Override\r\n\tpublic void excluir(Evento evento) {\n\t\trepository.delete(evento);\r\n\t}",
"@Override\n\tpublic int deleteObject(Evaluate entity) {\n\t\treturn evaluateMapper.deleteObject(entity);\n\t}",
"public void manyToManyDeleteOwningSideTest() throws Exception {\n EntityManager em = createEntityManager();\n \n em.getTransaction().begin();\n \n EntityA a1 = new EntityA();\n a1.setName(\"EntityA1\");\n EntityB b1 = new EntityB();\n b1.setName(\"EntityB1\");\n\n a1.getBs().add(b1);\n b1.getAs().add(a1);\n\n em.persist(a1);\n\n em.getTransaction().commit();\n\n Integer idA1 = a1.getId();\n Integer idB1 = b1.getId();\n \n em.getTransaction().begin();\n \n // remove the relationship\n a1.getBs().remove(b1);\n b1.getAs().remove(a1);\n\n // remove the non-owning side\n em.remove(a1);\n try {\n em.getTransaction().commit();\n } catch (RuntimeException ex) {\n if (em.getTransaction().isActive()) {\n em.getTransaction().rollback();\n }\n em.close();\n \n throw ex;\n }\n \n clearCache();\n \n assertTrue(\"EntityA a1 should have been removed!\", \n em.createQuery(\"SELECT a FROM EntityA a WHERE a.id = ?1\").setParameter(1, idA1).getResultList().size() == 0);\n assertTrue(\"EntityB b1 should not have been removed!\", \n em.createQuery(\"SELECT b FROM EntityB b WHERE b.id = ?1\").setParameter(1, idB1).getResultList().size() != 0);\n\n em.close();\n }",
"Object remove();",
"public void delIncomingRelations();",
"public void remove() {\n this.getNext().setPrev(this.getPrev());\n this.getPrev().setNext(this.getNext());\n }",
"@Override\n \tpublic void removeAuthor(Author author) {\n \t\tList<Author> authorList = getAuthorList();\n \t\t// check for existing relationship\n \t\tif (author == null || !authorList.contains(author))\n \t\t\treturn;\n \t\t// add both sides of relationship\n \t\tauthor.getAuthorReferences().remove(this);\n \t\tauthorList.remove(author);\n \t}",
"@Override\n\tpublic int delete(Tags tag) {\n\t\tentityMgr.remove(tag);\n\t\treturn 0;\n\t}"
] | [
"0.71009094",
"0.7086035",
"0.70263416",
"0.69305295",
"0.6911162",
"0.69069254",
"0.6896306",
"0.6887363",
"0.67870927",
"0.6725754",
"0.6725754",
"0.6693719",
"0.66347533",
"0.6633869",
"0.6628104",
"0.6595461",
"0.65693384",
"0.65212905",
"0.64920837",
"0.64844024",
"0.64679915",
"0.64548117",
"0.6433789",
"0.64214134",
"0.64168304",
"0.63956213",
"0.6382676",
"0.6380506",
"0.6368226",
"0.6358683",
"0.63487333",
"0.63343126",
"0.6331277",
"0.6301165",
"0.63009775",
"0.62827164",
"0.6280175",
"0.6280175",
"0.6279765",
"0.6274034",
"0.62738913",
"0.62738913",
"0.62738913",
"0.62738913",
"0.62738913",
"0.6267481",
"0.6262905",
"0.6244262",
"0.6244262",
"0.6243401",
"0.6238358",
"0.62292016",
"0.6214081",
"0.62019306",
"0.6192396",
"0.6137423",
"0.6129008",
"0.61205417",
"0.6116463",
"0.6110314",
"0.61008763",
"0.6097248",
"0.6093565",
"0.6089562",
"0.6089562",
"0.608672",
"0.60819876",
"0.60787755",
"0.6072764",
"0.60696024",
"0.60664105",
"0.60648483",
"0.6062863",
"0.60567635",
"0.6055492",
"0.6054947",
"0.60389835",
"0.60330147",
"0.60254216",
"0.6025133",
"0.6023621",
"0.60203445",
"0.6020126",
"0.6019453",
"0.6017228",
"0.60154366",
"0.6011633",
"0.600334",
"0.59980375",
"0.5994225",
"0.5994225",
"0.59913886",
"0.59886795",
"0.5983382",
"0.5976633",
"0.5973428",
"0.5964664",
"0.59579986",
"0.595344",
"0.5951421"
] | 0.6544873 | 17 |
Remove a linked entity as constraint | void removeConstraintEntity(IViewEntity entity); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void removeConstraintRelation(IViewRelation relation);",
"abstract protected void removeEntity(Entity entity);",
"@Override\n\tpublic void remove(Object entity) {\n\t\t\n\t}",
"void removeRelationship(DbRelationship rel) {\n objectList.remove(rel);\n fireTableDataChanged();\n }",
"public abstract void remove(Class<?> entity, Object paramObject);",
"void removeRelation(IViewRelation relation);",
"public void removeFromIntegrityChecks(entity.LoadIntegrityCheck element);",
"@Override\n\tprotected void removeImpl(Connection conn, VtbObject domainObject)\n\t\t\tthrows SQLException, MappingException {\n\n\t}",
"void remove(Student entity);",
"public void delIncomingRelations();",
"public void delRelations();",
"void removeEntity(IViewEntity entity);",
"public void delete(HrJBorrowcontract entity);",
"protected abstract void removeJointImpl( Joint joint );",
"void remove(PK id);",
"void unsetFurtherRelations();",
"E remove(Id id);",
"@Override\n\tpublic void remove(Post entity) {\n\t\t\n\t}",
"void delete(E entity);",
"void delete(E entity);",
"@Transactional void removeById(long id) throws IllegalArgumentException;",
"public void removePerson(Person p);",
"public void removeEntity(Entity entity){\n entityList.remove(entity);\n }",
"public void delete(SecRole entity);",
"@Transactional\n public void remove(ExtensionLinkEntity link) {\n EntityManager entityManager = entityManagerProvider.get();\n link = findById(link.getLinkId());\n if (null != link) {\n entityManager.remove(link);\n }\n }",
"@Override\n public void removeFromDb() {\n }",
"ISlot remove(IStrongSlot target);",
"public void entityRemoved() {}",
"public final void delete() {\n\t\tOllie.delete(this);\n\t\tOllie.removeEntity(this);\n\t\tnotifyChange();\n\t\tid = null;\n\t}",
"@Override\n\tpublic void removechild(EndpointEntity entity) {\n\t\t\n\t}",
"@Override\n\tpublic void remove(EmpType entity) {\n\t\t\n\t}",
"@Override\n\tpublic void remover(Parcela entidade) {\n\n\t}",
"public void removeCarritoDeCompras (Long compradorId) {\r\n\r\n CompradorEntity compradorEntity = compradorPersistence.find(compradorId); \r\n CarritoDeComprasEntity carroEntity = carroPersistence.find(compradorEntity.getCarritoDeCompras().getId());\r\n carroPersistence.delete(compradorEntity.getListaDeDeseos().getId());\r\n compradorEntity.setListaDeDeseos(null);\r\n carroEntity.setComprador(null);\r\n \r\n}",
"public void remove(E e) {\n\t\tentities.remove(e);\n\t}",
"@Transactional\n void remove(DataRistorante risto);",
"@Override\n public void remove() {\n deleteFromModel();\n deleteEdgeEndpoints();\n\n setDeleted(true);\n if (!isCached()) {\n HBaseEdge cachedEdge = (HBaseEdge) graph.findEdge(id, false);\n if (cachedEdge != null) cachedEdge.setDeleted(true);\n }\n }",
"public void removeFromLinesOfBusiness(entity.AppCritLineOfBusiness element);",
"@Override\n public void deleteRelationshipBetweenPhysicalAndPhysical(PhysicalObject physicalObjectA,\n PhysicalObject physicalObjectB) {\n assert false : \"shouldn't call this method\";\n }",
"void eliminar(PK id);",
"public void delete(Address entity);",
"@Override\r\n\tpublic void deleteAdress(Adress adress) {\n\t\tem.remove(em.merge(adress));;\r\n\t}",
"public void elimina(Long id) {\n\n final EntityManager em = getEntityManager();\n\n try {\n\n final EntityTransaction tx = em.getTransaction();\n\n tx.begin();\n\n // Busca un conocido usando su llave primaria.\n\n final Conocido modelo = em.find(Conocido.class, id);\n\n if (modelo != null) {\n\n /* Si la referencia no es nula, significa que el modelo se encontró la\n\n * referencia no es nula y se elimina. */\n\n em.remove(modelo);\n\n }\n\n tx.commit();\n\n } finally {\n\n em.close();\n\n }\n\n }",
"void removeRelated(int i);",
"@Override\r\n\tpublic boolean unlink(E src, E dst) {\r\n\t\tVertex<E> s = vertices.get(src);\r\n\t\tVertex<E> d = vertices.get(dst);\r\n\t\tif(s != null && d != null) {\r\n\t\t\tadjacencyLists.get(src).remove(new Edge<E>(s.getElement(), d.getElement(), 1)); //remove edge (s,d)\r\n\t\t\tif(!isDirected) { //Remove the other edge if this graph is undirected\r\n\t\t\t\tadjacencyLists.get(dst).remove(new Edge<E>(d.getElement(), s.getElement(), 1));\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public void preRemove(T entity) {\n }",
"public Delta removeConstraintItem(ConstraintType type, ConstraintId constraintId) {\n _removedConstraints.get(type).add(constraintId);\n return this;\n }",
"public void delete() {\n mapping.getFieldOrFieldExclude().remove(field);\n }",
"public final void remove(final E entity) {\n getJpaTemplate().remove(entity);\n }",
"public void _unlinkClient(ModelElement client1);",
"protected void delete(Object entity) {\r\n try {\r\n entityManager.getTransaction().begin();\r\n entityManager.remove(entity);\r\n entityManager.getTransaction().commit();\r\n } catch (Exception e) {\r\n System.err.println(\"Erro ao remover Entidade \" + e.getMessage());\r\n }\r\n }",
"@Override\n \tpublic void removeIsCitedBy(Reference reference) {\n \t\tList<Reference> isCitedBy = getIsCitedBy();\n \t\t// check for no existing relationship\n \t\tif (reference == null || !isCitedBy.contains(reference))\n \t\t\treturn;\n \t\t// remove both sides of relationship\n \t\treference.getCitationList().remove(this);\n \t\tisCitedBy.remove(reference);\n \n \t}",
"@Override\n\tpublic PersonelContract Delete(PersonelContract entity) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Result delete(CurriculumVitae entity) {\n\t\treturn null;\n\t}",
"public E remove();",
"public E remove();",
"public <T extends IDBEntities> void delete(T element) {\n\t\tif (element == null)\n\t\t\treturn;\n\t\tEntityManager em = getEM();\n\t\ttry {\n\t\t\tem.getTransaction().begin();\n\t\t\t// Entity must be attached\n\t\t\tif (!em.contains(element))\n\t\t\t\telement = em.merge(element);\n\t\t\tem.remove(element);\n\t\t\tem.getTransaction().commit();\n\t\t} catch (Exception ex) {\n\t\t\tem.getTransaction().rollback();\n\t\t} finally {\n\t\t\tem.close();\n\t\t}\n\t}",
"public void removeByCompanyId(long companyId);",
"void removeNode(Entity entity) {\n\t\tProcessing.nodeSet.remove(entity);\n\t\tProcessing.friendMap.remove(entity);\n\n\t\tSystem.out.println(\"the person was successfully removed from the network.\");\n\t}",
"void delete(Object entity);",
"void removeHasRestraintType(Integer oldHasRestraintType);",
"public void remove(Order entity) {\n\t\tsuper.internalRemove(entity);\n\t}",
"public void remove();",
"public void remove();",
"public void remove();",
"public void remove();",
"public void remove();",
"public void _unlinkSupplier(ModelElement supplier1);",
"public Node removeFromChain();",
"@Override\n\tpublic void eliminar(Seccion seccion) {\n\t\tentity.getTransaction().begin();\n\t\tentity.remove(seccion);\n\t\tentity.getTransaction().commit();\n\t}",
"void delete(Entity entity);",
"void remove( ModelObject object );",
"@Override\n public void delete(SideDishEntity entity) {\n\n }",
"public void delete(Contract entity) {\n\r\n\t}",
"@Override\n public void cascadeRemove(RDFPersistent rootRDFEntity, RDFEntityManager rdfEntityManager) {\n //Preconditions\n assert rdfEntityManager != null : \"rdfEntityManager must not be null\";\n assert roles != null : \"roles must not be null\";\n assert !roles.isEmpty() : \"roles must not be empty for node \" + name;\n\n stateValueBindings.stream().forEach((stateValueBinding) -> {\n stateValueBinding.cascadeRemove(\n rootRDFEntity,\n rdfEntityManager);\n });\n roles.stream().forEach((role) -> {\n role.cascadeRemove(\n rootRDFEntity,\n rdfEntityManager);\n });\n rdfEntityManager.remove(this);\n }",
"public void removeFromParent();",
"@Test\n\tpublic void testRemoval() {\n\t\tLong id = RedisQuery.nextUniqueId();\n\t\tEntityTest et = new EntityTest(id, \"EntityTestToRemove\");\n\t\tif (RedisQuery.save(et, id)) {\n\t\t\t// Remove the entity\n\t\t\tRedisQuery.remove(et, id);\n\t\t} else {\n\t\t\tthrow new AssertionError(\"Unable to create entity to remove\");\n\t\t}\n\t}",
"public void manyToManyDeleteOwningSideTest() throws Exception {\n EntityManager em = createEntityManager();\n \n em.getTransaction().begin();\n \n EntityA a1 = new EntityA();\n a1.setName(\"EntityA1\");\n EntityB b1 = new EntityB();\n b1.setName(\"EntityB1\");\n\n a1.getBs().add(b1);\n b1.getAs().add(a1);\n\n em.persist(a1);\n\n em.getTransaction().commit();\n\n Integer idA1 = a1.getId();\n Integer idB1 = b1.getId();\n \n em.getTransaction().begin();\n \n // remove the relationship\n a1.getBs().remove(b1);\n b1.getAs().remove(a1);\n\n // remove the non-owning side\n em.remove(a1);\n try {\n em.getTransaction().commit();\n } catch (RuntimeException ex) {\n if (em.getTransaction().isActive()) {\n em.getTransaction().rollback();\n }\n em.close();\n \n throw ex;\n }\n \n clearCache();\n \n assertTrue(\"EntityA a1 should have been removed!\", \n em.createQuery(\"SELECT a FROM EntityA a WHERE a.id = ?1\").setParameter(1, idA1).getResultList().size() == 0);\n assertTrue(\"EntityB b1 should not have been removed!\", \n em.createQuery(\"SELECT b FROM EntityB b WHERE b.id = ?1\").setParameter(1, idB1).getResultList().size() != 0);\n\n em.close();\n }",
"public boolean removeConstraint(VParticle constraint) {\n\t\treturn constraints.remove(constraint);\n\t}",
"boolean removeAssociation(AssociationEnd association);",
"public void removetable(Connection connection) throws SQLException\n {\n\tStringBuffer sbremove = new StringBuffer();\n\tsbremove.append(\" DROP TABLE Credit CASCADE CONSTRAINTS \");\n\tStatement statement =null;\n\ttry {\n\t statement = connection.createStatement();\n\t statement.executeUpdate (sbremove.toString());\n\t}catch (SQLException e) {\n\t throw e;\n\t}finally{\n\t statement.close();\n\t}\n }",
"public void removeAccount(Person p, Account a);",
"void relRemoveProperty( long relId, int propertyKey );",
"void remove(Edge edge);",
"public static void removeEleveOnSchema(Eleve e, Bdd d) {\n Session session = HibernateUtils.getSessionFactory().openSession();\r\n String SQLRequest = \"REVOKE all PRIVILEGES ON \" + d.getNom() + \".* from '\" + e.getAbreviation() + \"'@'%';\";\r\n session.beginTransaction();\r\n session.createSQLQuery(SQLRequest).executeUpdate();\r\n session.getTransaction().commit();\r\n session.close();\r\n\r\n }",
"@Override\n\tpublic void delete(Translator entity) {\n\t\t\n\t}",
"public void remove() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.delete(this);\n\t\tsession.getTransaction().commit();\n\t}",
"@Override\n public E delete(final E entity) {\n LOG.info(\"[delete] Start: entity = \" + entity.getClass().getSimpleName());\n entityManager.remove(entity);\n LOG.info(\"[delete] End\");\n return entity;\n }",
"public <T extends DbObject> void remove(T elm, EntityManager em, boolean closeConnection) throws Exception\n\t{\n\t\tEntityTransaction et = em.getTransaction();\n\t\t\n\t\ttry \n\t\t{\n\t\t\tet.begin();\n\t\t\t\n\t\t\tif(elm.getId()!=0)\n\t\t\t\tem.remove(elm);\n\t\t\t\n\t\t\tet.commit();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t\n\t\t\tet.rollback();\n\t\t\tthrow e;\n\t\t\t\n\t\t} finally {\n\t\t\tif(closeConnection)\n\t\t\t\tem.close();\n\t\t}\n\t}",
"Object remove();",
"@Override\r\n\tpublic void delete(Plate entity) {\n\t\t\r\n\t}",
"@Override\n public boolean isOrphanRemoval(ManagedType<?> ownerType, String elementCollectionPath, String attributeName) {\n return false;\n }",
"public void removed()\n {\n if (prev == null) {\n IBSPColChecker.setNodeForShape(shape, next);\n }\n else {\n prev.next = next;\n }\n\n if (next != null) {\n next.prev = prev;\n }\n }",
"void removeSameAs(Object oldSameAs);",
"public void deletePhysical(final T entity)\n\t{\n\t\tem.remove(entity);\n\t}",
"@Override\n\tpublic int deleteObject(Evaluate entity) {\n\t\treturn evaluateMapper.deleteObject(entity);\n\t}",
"@Override\n\tpublic void removeEntity(T t) {\n\t\tgetSession().delete(t);\n\t}",
"@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}",
"@Override\n\tpublic void remove(Long id) throws IllegalArgumentException {\n\n\t}",
"@Override\n\tpublic void delete(Field entity) {\n\t\t\n\t}"
] | [
"0.68250406",
"0.64729",
"0.6301068",
"0.6270966",
"0.62577724",
"0.62357646",
"0.62185365",
"0.6217872",
"0.6162544",
"0.61623454",
"0.61346895",
"0.6113839",
"0.6093101",
"0.6069902",
"0.603069",
"0.60153615",
"0.5975753",
"0.59620786",
"0.5942109",
"0.5942109",
"0.5941673",
"0.5935433",
"0.59116876",
"0.5901422",
"0.5884604",
"0.5881422",
"0.5878583",
"0.58780324",
"0.58599156",
"0.5856287",
"0.58534575",
"0.5851903",
"0.5844878",
"0.58394426",
"0.58230084",
"0.58207506",
"0.5817487",
"0.58130646",
"0.5812552",
"0.5797053",
"0.5780074",
"0.57741207",
"0.57734907",
"0.5767551",
"0.5763029",
"0.5762151",
"0.57582414",
"0.5749162",
"0.57487893",
"0.57446975",
"0.5742952",
"0.57360715",
"0.5735555",
"0.57282376",
"0.57282376",
"0.57253003",
"0.5722615",
"0.5715646",
"0.571282",
"0.56965464",
"0.5691646",
"0.5691606",
"0.5691606",
"0.5691606",
"0.5691606",
"0.5691606",
"0.5687311",
"0.5682347",
"0.5680163",
"0.5662214",
"0.56600493",
"0.5645198",
"0.5644431",
"0.5638427",
"0.56377727",
"0.56364876",
"0.5630067",
"0.56240815",
"0.56223345",
"0.5620845",
"0.5617518",
"0.5617471",
"0.560411",
"0.5603379",
"0.5601125",
"0.55972403",
"0.55969983",
"0.5584968",
"0.5578061",
"0.55776095",
"0.55728793",
"0.55662805",
"0.5564994",
"0.5563416",
"0.55623823",
"0.5541428",
"0.55406946",
"0.55406946",
"0.5540632",
"0.5538619"
] | 0.7487949 | 0 |
Add a targeted relation | void addRelation(IViewRelation relation); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Relationship createRelationship();",
"public void createRelation(Agent source, Agent target, double relation) {\n this.gamygdala.createRelation(source, target, relation);\n }",
"org.hl7.fhir.ObservationRelated addNewRelated();",
"void addConstraintRelation(IViewRelation relation);",
"public void addRelations(T model);",
"Relation createRelation();",
"private void addRelationShipIsBuy() {\n ParseObject story = ParseObject.createWithoutData(\"Story\", objectId);\n\n // Get current User\n ParseUser user = ParseUser.getCurrentUser();\n\n // Create relationship collumn UserLove\n ParseRelation relation = user.getRelation(\"StoryPaid\");\n\n // Add story to Relation\n relation.add(story);\n\n // user save relation\n user.saveInBackground(new SaveCallback() {\n\n @Override\n public void done(ParseException e) {\n if (e == null) {\n //Toast.makeText(StoryDetails.this, \"User Buy this story, go to Your Book to see!!\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(getApplicationContext(),\n \"Error saving: \" + e.getMessage(),\n Toast.LENGTH_SHORT)\n .show();\n }\n }\n\n });\n\n }",
"public void addRelation(String value) {\n/* 262 */ addStringToBag(\"relation\", value);\n/* */ }",
"LinkRelation createLinkRelation();",
"@Override\n\tpublic void add() {\n\t\tperson.addRelationship(\"Friend\", friend);\n\t}",
"private void addRelationship(String node1, String node2, String relation)\n {\n try (Session session = driver.session())\n {\n // Wrapping Cypher in an explicit transaction provides atomicity\n // and makes handling errors much easier.\n try (Transaction tx = session.beginTransaction())\n {\n tx.run(\"MATCH (j:Node {value: {x}})\\n\" +\n \"MATCH (k:Node {value: {y}})\\n\" +\n \"MERGE (j)-[r:\" + relation + \"]->(k)\", parameters(\"x\", node1, \"y\", node2));\n tx.success(); // Mark this write as successful.\n }\n }\n }",
"public void addInheritanceRelation(InheritanceRelation relation);",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.FurtherRelations addNewFurtherRelations();",
"private void addRelationShip() {\n ParseObject story = ParseObject.createWithoutData(\"Story\", objectId);\n\n // Get current User\n ParseUser user = ParseUser.getCurrentUser();\n\n // Create relationship collumn UserLove\n ParseRelation relation = user.getRelation(\"StoryLove\");\n\n // Add story to Relation\n relation.add(story);\n\n // user save relation\n user.saveInBackground(new SaveCallback() {\n\n @Override\n public void done(ParseException e) {\n if (e == null) {\n Toast.makeText(StoryDetails.this, \"User like this story, go to YourFavorite to see!!\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(getApplicationContext(),\n \"Error saving: \" + e.getMessage(),\n Toast.LENGTH_SHORT)\n .show();\n }\n }\n\n });\n\n\n ParseObject post = new ParseObject(\"UserStory\");\n // Create an LoveStory relationship with the current user\n\n ParseRelation<ParseUser> relation1 = post.getRelation(\"UserLove\");\n ParseRelation<ParseObject> relation2 = post.getRelation(\"StoryLove\");\n relation1.add(user);\n relation2.add(story);\n // Save the post and return\n post.saveInBackground(new SaveCallback() {\n\n @Override\n public void done(ParseException e) {\n if (e == null) {\n Toast.makeText(StoryDetails.this, \"You like this story, go to YourFavorite to see!!\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(getApplicationContext(),\n \"Error saving: \" + e.getMessage(),\n Toast.LENGTH_SHORT)\n .show();\n }\n }\n\n });\n\n }",
"Relationship(final String id, final String type, final String target) {\r\n this.id = id;\r\n this.type = type;\r\n this.target = target;\r\n }",
"public void addRelation(final IWiktionaryRelation relation) {\n\t\tif (relations == null)\n\t\t\trelations = new ArrayList<>();\n\t\trelations.add(relation);\n\t}",
"DefinedProperty relAddProperty( long relId, int propertyKey, Object value );",
"public void addRelationAttribute(String key, String value) {\n this.relationAttributes.put(key, value);\n }",
"public void addRelation(int from, int to){\n this.setAdjacencyMatrixEntry(from, to, 1);\n }",
"void relationshipCreate( long id, int typeId, long startNodeId,\n long endNodeId );",
"public void addRelationship(String fm_field, String fm_symbol_str, boolean fm_typed,\n String to_field, String to_symbol_str, boolean to_typed, \n String style_str, boolean ignore_ns, boolean built_in) {\n addRelationship(fm_field, fm_symbol_str, fm_typed, to_field, to_symbol_str, to_typed, style_str, ignore_ns, built_in, null); }",
"public boolean addTarget(Entity target) {\r\n boolean result = IServer.associationHasTarget().add(this, target);\r\n IServer.fireLinkUpdated(new LinkEvent(this));\r\n return result;\r\n }",
"public void relate(HNode id, Object o);",
"public Relation setRelation(XDI3Segment arcXri, ContextNode targetContextNode);",
"public void addRelatesTo(MappingType mapping, RelatesToType relatesTo) {\n\t\tmapping.getRelatesTo().add(relatesTo);\n\t}",
"RelatedPerson<Person, Person> relatePerson(String person1, String person2, String relation);",
"public void addRelationship(String fm_field, String fm_symbol_str, boolean fm_typed,\n String to_field, String to_symbol_str, boolean to_typed, \n String style_str, boolean ignore_ns, boolean built_in, Bundles to_add) {\n String fm_pre = \"\", to_pre = \"\";\n\n // DEBUG\n // System.err.println(\"fm_field =\\\"\" + fm_field + \"\\\"\"); System.err.println(\"fm_symbol=\\\"\" + fm_symbol_str + \"\\\"\"); System.err.println(\"fm_typed =\\\"\" + fm_typed + \"\\\"\");\n // System.err.println(\"to_field =\\\"\" + to_field + \"\\\"\"); System.err.println(\"to_symbol=\\\"\" + to_symbol_str + \"\\\"\"); System.err.println(\"to_typed =\\\"\" + to_typed + \"\\\"\");\n\n if (fm_typed) fm_pre = fm_field + BundlesDT.DELIM;\n if (to_typed) to_pre = to_field + BundlesDT.DELIM;\n\n Utils.Symbol fm_symbol = Utils.parseSymbol(fm_symbol_str),\n to_symbol = Utils.parseSymbol(to_symbol_str);\n\n // Keep track of existing relationships, update the longer term ones\n String encoded_relationship_str = Utils.encToURL(fm_field) + BundlesDT.DELIM + Utils.encToURL(fm_symbol_str) + BundlesDT.DELIM + Utils.encToURL(\"\" + fm_typed) + BundlesDT.DELIM +\n\t\t\t\t Utils.encToURL(to_field) + BundlesDT.DELIM + Utils.encToURL(to_symbol_str) + BundlesDT.DELIM + Utils.encToURL(\"\" + to_typed) + BundlesDT.DELIM +\n\t\t\t\t Utils.encToURL(style_str) + BundlesDT.DELIM + Utils.encToURL(\"\" + ignore_ns);\n if (active_relationships.contains(encoded_relationship_str) == false) active_relationships.add(encoded_relationship_str);\n if (built_in == false) updateRecentRelationships(encoded_relationship_str);\n // Is this an addition or from scratch?\n Bundles bundles; if (to_add == null) bundles = getRTParent().getRootBundles(); else bundles = to_add;\n BundlesG globals = bundles.getGlobals();\n // Go through the tablets\n Iterator<Tablet> it_tablet = bundles.tabletIterator();\n while (it_tablet.hasNext()) {\n Tablet tablet = it_tablet.next();\n\t// Check to see if this table will complete both blanks, if so, go through the bundles adding the edges to the graphs\n\tif (KeyMaker.tabletCompletesBlank(tablet,fm_field) && KeyMaker.tabletCompletesBlank(tablet,to_field)) {\n\t // Create the key makers\n\t KeyMaker fm_km = new KeyMaker(tablet,fm_field), to_km = new KeyMaker(tablet,to_field);\n\t // Go through the bundles\n\t Iterator<Bundle> it_bundle = tablet.bundleIterator();\n\t while (it_bundle.hasNext()) {\n\t Bundle bundle = it_bundle.next();\n\t // Create the combinator for the from and to keys\n\t String fm_keys[], to_keys[];\n // Transform the bundle to keys\n\t fm_keys = fm_km.stringKeys(bundle);\n\t to_keys = to_km.stringKeys(bundle);\n\t // Make the relationships\n if (fm_keys != null && fm_keys.length > 0 && to_keys != null && to_keys.length > 0) {\n for (int i=0;i<fm_keys.length;i++) for (int j=0;j<to_keys.length;j++) {\n\t // Check for not sets if the flag is specified\n if (ignore_ns && (fm_keys[i].equals(BundlesDT.NOTSET) || to_keys[j].equals(BundlesDT.NOTSET))) continue;\n\t\t// The key will be a combination of the header and the entity\n String fm_fin = fm_pre + fm_keys[i], to_fin = to_pre + to_keys[j];\n\t\t// If we're in retain mode only, make sure both nodes exist in the set\n\t\tif (retained_nodes != null && retained_nodes.size() > 0 && (retained_nodes.contains(fm_fin) == false || retained_nodes.contains(to_fin) == false)) continue;\n // Set the shape\n if (entity_to_shape.containsKey(fm_fin) == false) entity_to_shape.put(fm_fin, fm_symbol);\n\t\tif (entity_to_shape.containsKey(to_fin) == false) entity_to_shape.put(to_fin, to_symbol);\n // Create the initial world coordinate and transform as appropriate \n\t\tif (entity_to_wxy.containsKey(fm_fin) == false) { \n\t\t entity_to_wxy.put(fm_fin, new Point2D.Double(Math.random()*2 - 1, Math.random()*2 - 1));\n transform(fm_fin); }\n\t\tif (entity_to_wxy.containsKey(to_fin) == false) { \n\t\t entity_to_wxy.put(to_fin, new Point2D.Double(Math.random()*2 - 1, Math.random()*2 - 1));\n\t\t transform(to_fin); }\n // Add the reference back to this object\n graph.addNode(fm_fin); graph.addNode(to_fin);\n digraph.addNode(fm_fin); digraph.addNode(to_fin);\n // Set the weights equal to the number of bundles on the edge\n double previous_weight = graph.getConnectionWeight( graph.getEntityIndex(fm_fin), graph.getEntityIndex(to_fin)),\n di_previous_weight = digraph.getConnectionWeight(digraph.getEntityIndex(fm_fin), digraph.getEntityIndex(to_fin));\n // Check for infinite because the graph class returns infinite if two nodes are not connected\n if (Double.isInfinite( previous_weight)) previous_weight = 0.0;\n if (Double.isInfinite(di_previous_weight)) di_previous_weight = 0.0;\n // Finally, add them to both forms of the graphs\n\t \t graph.addNeighbor(fm_fin, to_fin, previous_weight + 1.0);\n graph.addNeighbor(to_fin, fm_fin, previous_weight + 1.0);\n\t\tdigraph.addNeighbor(fm_fin, to_fin, di_previous_weight + 1.0);\n // System.err.println(\"RTGraphPanel.addRelationship() : \\\"\" + fm_fin + \"\\\" => \\\"\" + to_fin + \"\\\": w=\" + (previous_weight+1.0) + \" | di_w=\" + (di_previous_weight+1.0));\n\t\t graph.addLinkReference( graph.getEntityIndex(fm_fin), graph.getEntityIndex(to_fin), bundle);\n\t\t graph.addLinkReference( graph.getEntityIndex(to_fin), graph.getEntityIndex(fm_fin), bundle);\n\t\tdigraph.addLinkReference(digraph.getEntityIndex(fm_fin), digraph.getEntityIndex(to_fin), bundle);\n // Keep track of the link style\n digraph.addLinkStyle(digraph.getEntityIndex(fm_fin), digraph.getEntityIndex(to_fin), style_str);\n\t }\n\t }\n }\n\t}\n }\n // Nullify the biconnected components\n graph_bcc = null;\n graph2p_bcc = null;\n cluster_cos = null;\n conductance = null;\n // Re-render\n getRTComponent().render();\n }",
"com.microsoft.schemas.crm._2011.contracts.ArrayOfObjectiveRelation addNewObjectives();",
"void addAssociation(Association association);",
"public Relation setRelation(XDI3Segment arcXri, XDI3Segment targetContextNodeXri);",
"@Override\n public void addRelationshipBetweenPhysicalAndPhysical(PhysicalObject physicalObjectA,\n PhysicalObject physicalObjectB, double weight) {\n assert false : \"shouldn't call this method\";\n }",
"@Query(\"MATCH(sp:ServiceProvider),(s:Skills) WHERE sp.email={email} and s.skillName={skillName} CREATE (sp)-[hs:has_skills]->(s) RETURN sp\")\n public ServiceProvider setHasSkillsRelation(@Param(\"email\") String email, @Param(\"skillName\") String skillName);",
"@Override\n public void addRelationshipBetweenCentralAndPhysical(PhysicalObject physicalObject,\n double weight) {\n assert false : \"shouldn't call this method\";\n }",
"GroupQueryBuilder addRelatedUser(User user);",
"private GraphTraversal appendRelationAndPropertyGroup(\n GraphTraversal traversal,\n Rel rel,\n RelPropGroup relPropGroup,\n Ontology.Accessor ont) {\n\n String relationTypeName = ont.$relation$(rel.getrType()).getName();\n\n List<Traversal> relPropGroupTraversals = Collections.emptyList();\n if (!relPropGroup.getProps().isEmpty() || !relPropGroup.getGroups().isEmpty()) {\n relPropGroupTraversals = Collections.singletonList(convertRelPropGroupToTraversal(relPropGroup, ont));\n }\n\n\n List<Traversal> traversals = Stream.<Traversal>of(__.start().has(T.label, P.eq(relationTypeName)))\n .appendAll(relPropGroupTraversals).toJavaList();\n\n return traversals.size() == 1 ?\n traversal.has(CONSTRAINT, Constraint.by(traversals.get(0))) :\n traversal.has(CONSTRAINT, Constraint.by(__.start().and(Stream.ofAll(traversals).toJavaArray(Traversal.class))));\n }",
"public void setRelation(Relation<L, Tr, T> r) {\n this.relation = r;\n }",
"GroupQueryBuilder addRelatedUser(String id);",
"RelationalDependency createRelationalDependency();",
"public void CreateRelationship(Node node1, Node node2, myRelationships relation) {\r\n\t\tTransaction tx = _db.beginTx(); \r\n\t\ttry {\r\n\t\t\tnode1.createRelationshipTo(node2, relation);\r\n\t\t\ttx.success();\r\n\t\t} catch (Exception ex) {\r\n\t\t\ttx.failure();\r\n\t\t\tthrow ex;\r\n\t\t} finally {\r\n\t\t\ttx.finish();\r\n\t\t}\r\n\t\t\t\t\r\n\t}",
"@Override\n \tpublic void addIsCitedBy(Reference reference) {\n \t\tList<Reference> isCitedBy = getIsCitedBy();\n \t\t// check for existing relationship\n \t\tif (reference == null || isCitedBy.contains(reference))\n \t\t\treturn;\n \t\t// add both sides of relationship\n \t\treference.getCitationList().add(this);\n \t\tisCitedBy.add(reference);\n \t}",
"public void setupRelation(String userJID, PersistentRelation relation) throws InvalidRelationException {\n\t\t// Validate the relation request\n\t\t// TODO More should be validated here\n\t\tif (!relation.hasFrom() || !relation.hasTo() || !relation.hasNature()) {\n\t\t\tthrow new InvalidRelationException(\"Relation is missing required elements\");\n\t\t}\n\n\t\t// Verify that the from or to is the user making the request\n\t\tif (!(relation.getFrom().equals(userJID) || relation.getTo().equals(userJID))) {\n\t\t\tthrow new InvalidRelationException(\"Must be part of the relation to create it\");\n\t\t}\n\n\t\t// Assign a unique ID to this new relation\n\t\trelation.setId(DefaultAtomHelper.generateId());\n\n\t\t// Set the request status\n\t\trelation.setStatus(Relation.Status.REQUEST);\n\n\t\t// We store the relation for requestor\n\t\trelation.setOwner(userJID);\n\n\t\t// Persist the relation\n\t\tfinal EntityManager em = OswPlugin.getEmFactory().createEntityManager();\n\t\tem.getTransaction().begin();\n\t\tem.persist(relation);\n\t\tem.getTransaction().commit();\n\t\tem.close();\n\n\t\t// We cleanup and notifiy the relation for the recipient\n\t\trelation.setAclRules(null);\n\t\trelation.setComment(null);\n\t\tnotify(userJID, relation);\n\t}",
"protected abstract void addJointImpl( Joint joint );",
"public void addReferenceToOther(final Publication p) {\n if (referenceToOther.containsKey(p))\n throw Utilities.invalidRelation(this.getClass(), p.getClass());\n referenceToOther.put(p, p);\n }",
"public void addToModel(Map<String, Set<List<String>>> fom) {\n if (! fom.containsKey(relationString)) {\n fom.put(relationString, new HashSet<>());\n }\n List<String> args = new ArrayList<>();\n args.add(obj.toString());\n for (MinecraftObject o: otherobj) {\n args.add(o.toString());\n }\n fom.get(relationString).add(args);\n }",
"public void addRelationship(String primaryNickName, String primaryAttribute, String secondaryNickName, String secondaryAttribute)\n {\n AttributeType att1;\n AttributeType att2;\n\n if (primaryAttribute.equals(\"horizontal\"))\n {\n att1=AttributeType.HORIZONTAL_CENTER;\n }\n else if (primaryAttribute.equals(\"vertical\"))\n {\n att1=AttributeType.VERTICAL_CENTER;\n }\n else\n {\n att1=AttributeType.HORIZONTAL_CENTER;\n }\n\n if (secondaryAttribute.equals(\"horizontal\"))\n {\n att2=AttributeType.HORIZONTAL_CENTER;\n }\n else if (secondaryAttribute.equals(\"vertical\"))\n {\n att2=AttributeType.VERTICAL_CENTER;\n }\n else\n {\n att2=AttributeType.HORIZONTAL_CENTER;\n }\n\n if (secondaryNickName.equals(\"container\"))\n {\n secondaryNickName=DependencyManager.ROOT_NAME;\n }\n\n addConstraint(primaryNickName, att1, new AttributeConstraint(secondaryNickName, att2));\n }",
"@Override\n \tpublic void addAuthor(Author author) {\n \t\tList<Author> authorList = getAuthorList();\n \t\t// check for existing relationship\n \t\tif (author == null || authorList.contains(author))\n \t\t\treturn;\n \t\t// add both sides of relationship\n \t\tauthor.getAuthorReferences().add(this);\n \t\tauthorList.add(author);\n \t}",
"public void set_relation(String relation){\n\t\tthis.relation = relation;\n\t}",
"public void setRelatedTo(java.lang.String value);",
"RecipeObject addRecipe(RecipeObject recipe);",
"public void addAssociation(String mPackage, Class type, RefObject a, RefObject b) throws CreationException {\n\t\t\n\t\ttrace.addTrace(TraceType.CREATION, \"Create Association of type \" + type.getSimpleName() + \" in target model.\");\n\t\t\n\t\tRefPackage pkg = loadBasePackage(mPackage);\n\t\tCollection<RefAssociation> assos = pkg.refAllAssociations();\n\t\tfor(RefAssociation ass:assos) {\n\t\t\t/* \n\t\t\t * The return type of java.lang.Class.getInterfaces()\n\t\t\t * has changed in Java 1.6.\n\t\t\t * To compile this file using Java 1.6 or later, change the\n\t\t\t * generic of the List 'interfaces' from List<Class> to\n\t\t\t * List<Class<?>>. \n\t\t\t */\n\t\t\tList<Class> interfaces = Arrays.asList(ass.getClass().getInterfaces());\n\t\t\tif(interfaces.contains(type)) {\n\t\t\t\tMethod add = null;\n\t\t\t\tMethod[] methods = ass.getClass().getMethods();\n\t\t\t\tfor(Method m : methods) {\n\t\t\t\t\tif (m.getName().equals(\"add\")) {\n\t\t\t\t\t\tadd = m;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (add == null) {\n\t\t\t\t\tthrow new CreationException(ADD_METHOD_NOT_FOUND + type.getSimpleName());\n\t\t\t\t}\n\t\t\t\n\t\t\t\tObject[] parameters = {a,b};\n\t\t\t\ttry {\n\t\t\t\t\tadd.invoke(ass, parameters);\n\t\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\t\tthrow new CreationException(ERROR_ADD_ASS + type.getSimpleName());\n\t\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\t\tthrow new CreationException(ERROR_ADD_ASS + type.getSimpleName());\n\t\t\t\t} catch (InvocationTargetException e) {\n\t\t\t\t\tthrow new CreationException(ERROR_ADD_ASS + type.getSimpleName());\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\t\n\t\n\t\t\n\t\t}",
"public void addImpliedRelationship(String parentTableName, String childTableName, String fkColumnName) {\n if (parentTableName.equalsIgnoreCase(childTableName)) {\n return;\n }\n \n // Don't create a relationship if one already exists in the config\n Iterator i = config.getRelationship().iterator();\n while (i.hasNext()) {\n Relationship r = (Relationship) i.next();\n if (r.getPrimaryKeyTable().equals(parentTableName) && r.getForeignKeyTable().equals(childTableName)) {\n return;\n }\n }\n \n Relationship r = FACTORY.createRelationship();\n r.setName(childTableName);\n r.setPrimaryKeyTable(parentTableName);\n r.setForeignKeyTable(childTableName);\n \n KeyPair pair = FACTORY.createKeyPair();\n pair.setPrimaryKeyColumn(\"ID\");\n pair.setForeignKeyColumn(fkColumnName);\n \n r.getKeyPair().add(pair);\n r.setMany(true);\n \n config.getRelationship().add(r);\n }",
"public void addRule(SkeletonJoint from, int relation, SkeletonJoint to)\n\t{\n\t\tBodyPoseRule rule = new BodyPoseRule(from, relation, to);\n\t\trules.add(rule);\n\t}",
"void addAssociation(AssociationEnd association);",
"public void addRelationship(String classNameFrom, String classNameTo, String type) \n\t{\n\t\tstoreViewState();\n\t\tproject.addRelationship(classNameFrom, classNameTo, type);\n\t\tcheckStatus();\n\t}",
"public void addRelationship(String primaryNickName, String primaryAttribute, String secondaryNickName, String secondaryAttribute, String direction,int pixels)\n {\n AttributeType att1;\n AttributeType att2;\n\n if (primaryAttribute.equals(\"top\"))\n {\n att1=AttributeType.TOP;\n }\n else if (primaryAttribute.equals(\"bottom\"))\n {\n att1=AttributeType.BOTTOM;\n }\n else if (primaryAttribute.equals(\"left\"))\n {\n att1=AttributeType.LEFT;\n }\n else if (primaryAttribute.equals(\"right\"))\n {\n att1=AttributeType.RIGHT;\n }\n else\n {\n att1=AttributeType.TOP;\n }\n\n if (secondaryAttribute.equals(\"top\"))\n {\n att2=AttributeType.TOP;\n }\n else if (secondaryAttribute.equals(\"bottom\"))\n {\n att2=AttributeType.BOTTOM;\n }\n else if (secondaryAttribute.equals(\"left\"))\n {\n att2=AttributeType.LEFT;\n }\n else if (secondaryAttribute.equals(\"right\"))\n {\n att2=AttributeType.RIGHT;\n }\n else\n {\n att2=AttributeType.TOP;\n }\n\n if (secondaryNickName.equals(\"container\"))\n {\n secondaryNickName=DependencyManager.ROOT_NAME;\n }\n\n if (direction.equals(\"up\"))\n {\n pixels=-1*pixels;\n }\n else if (direction.equals(\"left\"))\n {\n pixels=-1*pixels;\n }\n\n addConstraint(primaryNickName, att1, new AttributeConstraint(secondaryNickName, att2, pixels));\n }",
"public void addRelation(AS otherAS, int myRelationToThem) {\n if (myRelationToThem == AS.PROVIDER_CODE) {\n this.customers.add(otherAS);\n otherAS.providers.add(this);\n } else if (myRelationToThem == AS.PEER_CODE) {\n this.peers.add(otherAS);\n otherAS.peers.add(this);\n } else if (myRelationToThem == AS.CUSTOMER_CODE) {\n this.providers.add(otherAS);\n otherAS.customers.add(this);\n } else if (myRelationToThem == 3) {\n // ignore\n } else {\n System.err.println(\"WTF bad relation: \" + myRelationToThem);\n System.exit(-1);\n }\n this.trafficOverNeighbors.put(otherAS.asn, 0.0);\n otherAS.trafficOverNeighbors.put(this.asn, 0.0);\n this.volatileTraffic.put(otherAS.asn, 0.0);\n otherAS.volatileTraffic.put(this.asn, 0.0);\n this.botTraffic.put(otherAS.asn, 0.0);\n otherAS.botTraffic.put(this.asn, 0.0);\n this.currentVolatileTraffic.put(otherAS.asn, 0.0);\n otherAS.currentVolatileTraffic.put(this.asn, 0.0);\n this.linkCapacities.put(otherAS.asn, new HashMap<Double, Double>());\n otherAS.linkCapacities.put(this.asn, new HashMap<Double, Double>());\n }",
"public Future<Person> createRelationship( String personId, String friendId );",
"@Override\n\tpublic void savePersonRelation(PersonRelation personRelation) {\n\t\t\n\t}",
"public void addRpiUserRelation(String rpiId, String user) throws SQLException;",
"public void addInjection(RelationInjectionManager injection);",
"public T caseRelationAdded(RelationAdded object) {\n\t\treturn null;\n\t}",
"public void addRelationship(String encoded_str, boolean built_in, Bundles to_add) {\n StringTokenizer st = new StringTokenizer(encoded_str, BundlesDT.DELIM);\n String fm_hdr = Utils.decFmURL(st.nextToken()),\n fm_ico = Utils.decFmURL(st.nextToken());\n boolean fm_typed = st.nextToken().toLowerCase().equals(\"true\");\n String to_hdr = Utils.decFmURL(st.nextToken()),\n to_ico = Utils.decFmURL(st.nextToken());\n boolean to_typed = st.nextToken().toLowerCase().equals(\"true\");\n String style = Utils.decFmURL(st.nextToken());\n boolean ignore_ns = st.nextToken().toLowerCase().equals(\"true\");\n // Determine if relationship is possible with the current data set... if not return\n String blanks[] = KeyMaker.blanks(getRTParent().getRootBundles().getGlobals());\n boolean to_found = false, fm_found = false;\n for (int i=0;i<blanks.length;i++) {\n if (blanks[i].equals(fm_hdr)) fm_found = true;\n if (blanks[i].equals(to_hdr)) to_found = true;\n }\n if (fm_found && to_found) addRelationship(fm_hdr, fm_ico, fm_typed, to_hdr, to_ico, to_typed, style, ignore_ns, false, to_add);\n }",
"public void addRule(SkeletonJoint from, int relation, int dist, SkeletonJoint to)\n\t{\n\t\tBodyPoseRule rule = new BodyPoseRule(from, relation, dist, to);\n\t\trules.add(rule);\n\t}",
"public Relation setDeepRelation(XDI3Segment contextNodeXri, XDI3Segment arcXri, ContextNode targetContextNode);",
"public Relation setDeepRelation(XDI3Segment contextNodeXri, XDI3Segment arcXri, XDI3Segment targetContextNodeXri);",
"public void addRelationAttrProp(String propName, String attrName, String value) {\n if (relationAttrProps.get(propName) == null) {\n relationAttrProps.put(propName, new HashMap<String, String>());\n }\n if (attrName != null && value != null) {\n relationAttrProps.get(propName).put(attrName, value);\n }\n }",
"public void setRelationship(Relationship r) {\n\t\trelationship = r;\n\t}",
"public RelationshipView add(@Nonnull Relationship relationship) {\n return addRelationship(relationship);\n }",
"public void addRelationship(String pid, String subject, String predicate, String object) throws FedoraException, IOException {\r\n if (this.readOnly) {\r\n throw new FedoraIllegalAccessException(\"This FedoraClient is READ ONLY!\");\r\n }\r\n PostMethod post = new PostMethod(this.fedoraBaseUrl + \"/objects/\" + pid + \"/relationships/new\"\r\n + \"?subject=\" + URLEncoder.encode(subject, \"UTF-8\")\r\n + \"&predicate=\" + URLEncoder.encode(predicate, \"UTF-8\")\r\n + \"&object=\" + URLEncoder.encode(object, \"UTF-8\")\r\n + \"&isLiteral=\" + URLEncoder.encode(String.valueOf(false), \"UTF-8\"));\r\n try {\r\n client.executeMethod(post);\r\n if (post.getStatusCode() != 200) {\r\n throw new FedoraException(\"Invalid HTTP Status code: \" + post.getStatusLine());\r\n }\r\n } finally {\r\n post.releaseConnection();\r\n }\r\n }",
"@Override\n\tpublic PersonRelation createRelationshipBetween(Person person,\n\t\t\tPerson relatedPerson, int relationship) {\n\t\treturn null;\n\t}",
"public Relationship createRelationship(RelationshipType rt, String parentId, String childId, String familyId) throws Exception;",
"public void addRelation(String R, int arity) {\n if (R.equals(\"E\")) return;\n this.relations.put(R, new BitSet());\n this.arity.put(R, arity);\n }",
"void associate(SNode outputNode, SReferenceLink role, String targetModelRef, String targetNodeId);",
"public Relation(String relationString, MinecraftObject obj,\n ImmutableList<MinecraftObject> otherob) {\n this(relationString, EnumSet.noneOf(Aspects.class), obj, otherob);\n }",
"public static void add(String target)\n\t{\n\t\tif (!targets.isEmpty())\n\t\t{\t\t\n\t\t\t// if target does not exist in database\n\t\t\tif (getTargetIndex(target) == -1)\n\t\t\t{\n\t\t\t\ttargets.add(new LinkedList<String>());\n\t\t\t\ttargets.get(targets.size() - 1).add(target);\n\t\t\t}\n\t\t}\n\n\t\telse\n\t\t{\n\t\t\ttargets.add(new LinkedList<String>());\n\t\t\ttargets.get(targets.size() - 1).add(target);\n\t\t}\n\t}",
"public Link add(Link link);",
"public void addReferenceToThis(final Publication p) {\n if (referenceToThis.containsKey(p))\n throw Utilities.invalidRelation(this.getClass(), p.getClass());\n referenceToThis.put(p, p);\n }",
"com.microsoft.schemas.crm._2011.contracts.ArrayOfConstraintRelation addNewConstraints();",
"public Relationship createRelationshipTo( Node otherNode, \n \t\tRelationshipType type );",
"public void addEdge(int source, int target, Cost w) {\n\t\tedges[source][target] = w;\n\t}",
"void addTerm(final String fieldname, final FieldBoost boost, final DisjunctionMaxQueryFactory target,\n final Term sourceTerm) throws IOException {\n final TermSubQueryFactory queryFactory = termSubQueryBuilder.termToFactory(fieldname, sourceTerm, boost);//termToFactory(fieldname, sourceTerm, boost);\n if (queryFactory != null) {\n target.add(queryFactory);\n boost.registerTermSubQuery(fieldname, queryFactory, sourceTerm);\n }\n }",
"public void addTarget(Target target)\n {\n if (!targets.contains(target))\n {\n targets.add(target);\n }\n }",
"public void addReference() {\r\n mReferenced = true;\r\n }",
"public abstract void addTarget(Component target);",
"void create_relationship(EntityIdentifier id1, EntityIdentifier id2, String description) {\n //a relationship is defined as two entities (table, id) and a description\n\n //description is empty\n if (description.isEmpty()) {\n throw new RuntimeException(\"Description can not be empty.\");\n }\n\n LinkedList<String> attributes = new LinkedList<>();\n attributes.add(id1.toString());\n attributes.add(id2.toString());\n attributes.add(description);\n this.create_entity(\"relationship\", attributes);\n\n }",
"public void addTarget(Target target) {\n // XXX check out for name, if null, reject!\n targets.put(target.getName(), target);\n }",
"public static void createAggregatedRelationship (AbstractStructureElement from, AbstractStructureElement to, ArrayList<KDMRelationship> relations) {\n\t\tif (from.getAggregated().size() > 0) {\r\n\t\t\t//System.out.println(\"MAIOR QUE 1, TODO\");\r\n\r\n\t\t\t//Andre - pega os aggragated que ja estão no from\r\n\t\t\tEList<AggregatedRelationship> aggregatedFROM = from.getAggregated();\t\t\r\n\r\n\t\t\t//Andre - começa um for nesses aggregated\r\n\t\t\tfor (int i = 0; i < aggregatedFROM.size(); i++) {\r\n\r\n\t\t\t\t//Andre - verifica se o aggregated que ja existe tem o mesmo destino que o que esta pra ser criado \r\n\t\t\t\tif (to.getName().equalsIgnoreCase(aggregatedFROM.get(i).getTo().getName())) {\r\n\r\n\t\t\t\t\t//Andre - se tiver o mesmo destino ele adiciona as relacoes novas e atualiza a densidade, depois disso ele pega e sai do for\r\n\t\t\t\t\t//ADICIONAR\r\n\r\n\t\t\t\t\taggregatedFROM.get(i).setDensity(aggregatedFROM.get(i).getDensity()+relations.size());\r\n\t\t\t\t\taggregatedFROM.get(i).getRelation().addAll(relations);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//Andre - se for o ultimo aggregated do for e mesmo assim não encontrou o com o mesmo destino que esta pra ser criado \r\n\t\t\t\t//Andre - entao cria um novo aggregated para ser adicionado\r\n\t\t\t\t//se chegar no ultimo e nao encontrar\r\n\t\t\t\tif (i == (aggregatedFROM.size()-1)) {\r\n\r\n\t\t\t\t\tAggregatedRelationship newRelationship = CoreFactory.eINSTANCE.createAggregatedRelationship();\r\n\t\t\t\t\tnewRelationship.setDensity(relations.size());\r\n\t\t\t\t\tnewRelationship.setFrom(from);\r\n\t\t\t\t\tnewRelationship.setTo(to);\r\n\t\t\t\t\tnewRelationship.getRelation().addAll(relations);\r\n\t\t\t\t\tfrom.getAggregated().add(newRelationship);\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\t//Andre - se não tiver um agrregated na layer from adiciona um com as relacoes que podem entre duas layers\r\n\t\t\tAggregatedRelationship newRelationship = CoreFactory.eINSTANCE.createAggregatedRelationship();\r\n\t\t\tnewRelationship.setDensity(relations.size());\r\n\t\t\tnewRelationship.setFrom(from);\r\n\t\t\tnewRelationship.setTo(to);\r\n\t\t\tnewRelationship.getRelation().addAll(relations);\r\n\t\t\tfrom.getAggregated().add(newRelationship);\r\n\t\t}\r\n\r\n\t\t//Fernando - Limpando lista \r\n\t\trelations.clear();\r\n\t\tfrom = null;\r\n\t\tto = null;\r\n\r\n\r\n\t}",
"public Relation(String relationString, EnumSet<Aspects> fixes,\n MinecraftObject obj, ImmutableList<MinecraftObject> otherob) {\n this.fixes = fixes;\n this.relationString = relationString;\n this.obj = obj;\n this.otherobj = otherob;\n }",
"public RelationObject(String relation, EVAnnotation relatum) {\n\t\tthis.relation = relation;\n\t\tthis.relatum = relatum;\n\t}",
"boolean hasRelation();",
"@Override\n\t\tpublic boolean hasRelationship() {\n\t\t\treturn false;\n\t\t}",
"@Override\n public void upsertRelationship(LineageRelationship lineageRelationship) {\n GraphTraversalSource g = graphFactory.getGraphTraversalSource();\n LineageEntity firstEnd = lineageRelationship.getSourceEntity();\n LineageEntity secondEnd = lineageRelationship.getTargetEntity();\n\n upsertToGraph(firstEnd, secondEnd, lineageRelationship.getTypeDefName(), lineageRelationship.getGuid());\n\n BiConsumer<GraphTraversalSource, LineageRelationship> addOrUpdatePropertiesEdge = this::addOrUpdatePropertiesEdge;\n commit(graphFactory, g, addOrUpdatePropertiesEdge, g, lineageRelationship,\n UNABLE_TO_ADD_PROPERTIES_ON_EDGE_FROM_RELATIONSHIP_WITH_TYPE +\n lineageRelationship.getTypeDefName() + AND_GUID + lineageRelationship.getGuid());\n }",
"org.landxml.schema.landXML11.RoadsideDocument.Roadside addNewRoadside();",
"private void addArbitraryDataToDatabase() {\n\n try (Transaction tx = graphDatabaseService.beginTx()) {\n Node arbitraryNode = graphDatabaseService.createNode(DynamicLabel.label(\"NotAClass\"));\n arbitraryNode.setProperty(\"name\", \"Colin\");\n Node otherNode = graphDatabaseService.createNode(DynamicLabel.label(\"NotAClass\"));\n otherNode.setProperty(\"age\", 39);\n arbitraryNode.createRelationshipTo(otherNode, DynamicRelationshipType.withName(\"TEST\"));\n\n tx.success();\n }\n }",
"public org.hl7.fhir.ResourceReference addNewMedication()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.ResourceReference target = null;\n target = (org.hl7.fhir.ResourceReference)get_store().add_element_user(MEDICATION$10);\n return target;\n }\n }",
"public void createRelation(IssueManager issueManager, int issueID, int relatedIssueID) {\n\n\t\ttry {\n\n\t\t\tissueManager.createRelation(issueID, relatedIssueID, RELATION_TYPE);\n\n\t\t} catch (RedmineException e) {\n\n\t\t\te.printStackTrace();\n\n\t\t}\n\t}",
"GroupQueryBuilder addAssociatedUser(User user);",
"int insertSelective(MyUserRoleRelation record);",
"@Override\n\tvoid addOneToManyJoin(QueryBuilder sb, Relation relation, EFieldAccessType fieldReferenceType, SourceReference from, SourceReference to) {\n\t\t\n\t\t\n\t\tfinal String entityAliasName = from.getVarName();\n\t\tfinal String collectionAttrName = relation.getFrom().getAttribute().getName();\n\n\t\t// final String joinVarName = \"join\" + joinParamIdx++;\n\n\t\tfinal String joinVarName = to.getVarName();\n\t\t\n\t\taddOneToManyJoin(sb, entityAliasName, collectionAttrName, joinVarName);\n\t}",
"public Association associate(Node targetNode, QName associationTypeQName);"
] | [
"0.67634684",
"0.63898003",
"0.63855594",
"0.63533413",
"0.63390106",
"0.6332996",
"0.6296762",
"0.6267737",
"0.62621003",
"0.6200261",
"0.6158574",
"0.607225",
"0.60711664",
"0.60185575",
"0.5909867",
"0.5887614",
"0.5845752",
"0.58261585",
"0.5824706",
"0.5795749",
"0.57863426",
"0.57506096",
"0.57094866",
"0.56945497",
"0.5679781",
"0.56583166",
"0.5649326",
"0.56396985",
"0.559849",
"0.55693257",
"0.5547517",
"0.5538711",
"0.5531136",
"0.55237645",
"0.55235493",
"0.5516171",
"0.5500516",
"0.5483486",
"0.5482497",
"0.5453293",
"0.5442424",
"0.54340065",
"0.54258466",
"0.54169226",
"0.5408551",
"0.54071766",
"0.53899586",
"0.53714216",
"0.53707725",
"0.5367803",
"0.53655803",
"0.5362164",
"0.5359323",
"0.5354289",
"0.53479785",
"0.534066",
"0.53356236",
"0.53316456",
"0.5326878",
"0.5318118",
"0.53166693",
"0.53163767",
"0.53126204",
"0.53027874",
"0.5289764",
"0.52792263",
"0.527558",
"0.52441293",
"0.5227692",
"0.52226293",
"0.52179754",
"0.5205492",
"0.5204529",
"0.51945096",
"0.5153036",
"0.5142228",
"0.5123197",
"0.510079",
"0.5099544",
"0.5093285",
"0.5093179",
"0.5089025",
"0.5088734",
"0.5088501",
"0.50784695",
"0.5076629",
"0.5062589",
"0.5054436",
"0.50530326",
"0.5050804",
"0.5048963",
"0.5043954",
"0.5043362",
"0.50361973",
"0.50361556",
"0.5030433",
"0.5029972",
"0.5007574",
"0.5004959",
"0.49923164"
] | 0.6975648 | 0 |
Add a targeted relation as constraint | void addConstraintRelation(IViewRelation relation); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.microsoft.schemas.crm._2011.contracts.ArrayOfConstraintRelation addNewConstraints();",
"public void addConstraint(final PgConstraint constraint) {\n constraints.add(constraint);\n }",
"@Override\n\tpublic void addConstraint(String constraint) {\n\n\t}",
"public Constraint addConstraint() {\n\t\tConstraint newType = new Constraint();\n\t\tgetConstraint().add(newType);\n\t\treturn newType; \n\t}",
"void addRelation(IViewRelation relation);",
"Constraint createConstraint();",
"Constraint createConstraint();",
"private void addConstraint(String tok) throws SyntaxError {\n assert(tok.startsWith(PREFIX_OP_STR));\n \n if (!tok.endsWith(\")\")) {\n throw new SyntaxError(String.format(\"Wrong format for the constraint '%s', expected format: %s\",\n tok, CONSTR_FMT));\n }\n int pos = tok.indexOf('(');\n if (pos == -1) {\n throw new SyntaxError(String.format(\"Missing '(' in the constraint '%s', expected format: %s\",\n tok, CONSTR_FMT)); \n }\n String op = tok.substring(1, pos);\n ConstraintType type = ConstraintType.CONSTRAINT_PARENT;\n if (op.equalsIgnoreCase(CONSTR_CONTAINS)) {\n type = ConstraintType.CONSTRAINT_CONTAINS;\n } else if (!op.equalsIgnoreCase(CONSTR_PARENT)) {\n throw new SyntaxError(String.format(\"Wrong constraint name '%s' in the element '%s'\", op, tok));\n }\n // Labels cannot contain commas\n String parts[] = tok.substring(pos + 1, tok.length() - 1).split(\",\");\n if (parts.length < 2) {\n throw new SyntaxError(String.format(\n \"There should be at least 2 elements between '(' and ')'\" + \n \" in the constraint '%s', expected format %s\",\n tok, CONSTR_FMT));\n }\n String headLabel = parts[0].trim();\n Integer headId = mLabel2Id.get(headLabel);\n if (null == headId) {\n throw new SyntaxError(String.format(\"Cannot find a lexical entry \" +\n \" for the label '%s', constraint '%s'\", headLabel, tok)); \n }\n\n ArrayList<ConstraintType> constr = mConstrType.get(headId);\n ArrayList<Integer> dependIds = mDependId.get(headId);\n \n if (ConstraintType.CONSTRAINT_PARENT == type) {\n if (mTypes.get(headId) != FieldType.FIELD_ANNOTATION) {\n throw new SyntaxError(String.format(\n \"The parent in the constraint '%s' should be an annotation\", tok));\n }\n }\n \n for (int i = 1; i < parts.length; ++i) {\n String depLabel = parts[i].trim();\n Integer depId = mLabel2Id.get(depLabel);\n if (null == depId) {\n throw new SyntaxError(String.format(\"Cannot find a lexical entry \" +\n \" for the label '%s', constraint '%s'\", depLabel, tok)); \n }\n \n if (ConstraintType.CONSTRAINT_PARENT == type) {\n if (mTypes.get(depId) != FieldType.FIELD_ANNOTATION) {\n throw new SyntaxError(String.format(\n \"A child (label '%s') in the constraint '%s' should be an annotation\", \n depLabel, tok));\n }\n } \n \n constr.add(type);\n dependIds.add(depId);\n\n /*\n * This is a potentially horrible linear-time complexity search\n * in an array. However, for a reasonable-size user query \n * these arrays are going to be tiny and, in practice, \n * such a linear search be as fast as or likely even faster than \n * a hash/tree map lookup.\n */\n if (!mEdges.get(depId).contains(headId))\n mEdges.get(depId).add(headId);\n if (!mEdges.get(headId).contains(depId))\n mEdges.get(headId).add(depId);\n\n }\n }",
"void addConstraintEntity(IViewEntity entity);",
"public void addConstraint(ContextConstraint node) {\n List<ContextConstraint> list = getConstraintList();\n list.addChild(node);\n }",
"Relation createRelation();",
"public void addInheritanceRelation(InheritanceRelation relation);",
"RelationalDependency createRelationalDependency();",
"protected abstract void defineConstraints();",
"Relationship createRelationship();",
"public void addRule(SkeletonJoint from, int relation, SkeletonJoint to)\n\t{\n\t\tBodyPoseRule rule = new BodyPoseRule(from, relation, to);\n\t\trules.add(rule);\n\t}",
"protected void addConstraint(RecognizerConstraint c) {\n constraints.put(c.getName(), c);\n\n // 2. Retain a list of all the slots used in this constraint, so we can\n // easily get the related constraints to each slot.\n for (String slotName : c.getSlotNames()) {\n String primary = RecognizerConstraint.primary(slotName);\n // ensure there's a place to record the pairing\n if (!slotsToConstraints.containsKey(primary)) {\n slotsToConstraints.put(primary, new HashSet<String>());\n }\n slotsToConstraints.get(primary).add(c.getName());\n }\n }",
"public void createRelation(Agent source, Agent target, double relation) {\n this.gamygdala.createRelation(source, target, relation);\n }",
"public void addRule(SkeletonJoint from, int relation, int dist, SkeletonJoint to)\n\t{\n\t\tBodyPoseRule rule = new BodyPoseRule(from, relation, dist, to);\n\t\trules.add(rule);\n\t}",
"protected Constraint add(Constraint c) throws IllegalArgumentException {\r\n\t\tif (!constraints.contains(c)) {\r\n\t\t\tif (c.getIndex() >= 0) {\r\n\t\t\t\tthrow new IllegalArgumentException();\r\n\t\t\t}\r\n\t\t\tc.setIndex(constraints.size());\r\n\t\t\tconstraints.add(c);\r\n\t\t}\r\n\t\treturn c;\r\n\t}",
"@Override\n public void addRelationshipBetweenCentralAndPhysical(PhysicalObject physicalObject,\n double weight) {\n assert false : \"shouldn't call this method\";\n }",
"public void addRelations(T model);",
"public void addRelation(String value) {\n/* 262 */ addStringToBag(\"relation\", value);\n/* */ }",
"public void setupRelation(String userJID, PersistentRelation relation) throws InvalidRelationException {\n\t\t// Validate the relation request\n\t\t// TODO More should be validated here\n\t\tif (!relation.hasFrom() || !relation.hasTo() || !relation.hasNature()) {\n\t\t\tthrow new InvalidRelationException(\"Relation is missing required elements\");\n\t\t}\n\n\t\t// Verify that the from or to is the user making the request\n\t\tif (!(relation.getFrom().equals(userJID) || relation.getTo().equals(userJID))) {\n\t\t\tthrow new InvalidRelationException(\"Must be part of the relation to create it\");\n\t\t}\n\n\t\t// Assign a unique ID to this new relation\n\t\trelation.setId(DefaultAtomHelper.generateId());\n\n\t\t// Set the request status\n\t\trelation.setStatus(Relation.Status.REQUEST);\n\n\t\t// We store the relation for requestor\n\t\trelation.setOwner(userJID);\n\n\t\t// Persist the relation\n\t\tfinal EntityManager em = OswPlugin.getEmFactory().createEntityManager();\n\t\tem.getTransaction().begin();\n\t\tem.persist(relation);\n\t\tem.getTransaction().commit();\n\t\tem.close();\n\n\t\t// We cleanup and notifiy the relation for the recipient\n\t\trelation.setAclRules(null);\n\t\trelation.setComment(null);\n\t\tnotify(userJID, relation);\n\t}",
"public Relation setRelation(XDI3Segment arcXri, ContextNode targetContextNode);",
"void addHasRestraintType(Integer newHasRestraintType);",
"@Override\n public void addRelationshipBetweenPhysicalAndPhysical(PhysicalObject physicalObjectA,\n PhysicalObject physicalObjectB, double weight) {\n assert false : \"shouldn't call this method\";\n }",
"public Relation setRelation(XDI3Segment arcXri, XDI3Segment targetContextNodeXri);",
"RelatedPerson<Person, Person> relatePerson(String person1, String person2, String relation);",
"public void createConstraint(ConstraintConfig constraintConfig) throws ConfigurationException;",
"LinkRelation createLinkRelation();",
"private void checkForAssociationConstraint()\n {\n try\n {\n String methodName = String.format(\"%sOptions\", name());\n _associationConstraint = _parent.getJavaClass().getMethod(methodName);\n }\n catch (NoSuchMethodException e)\n {\n // ignore\n }\n }",
"public Builder addConstraint(ClusterConstraints constraint) {\n ClusterConstraints existConstraints = getConstraintsInstance(constraint.getType());\n for (ConstraintId constraintId : constraint.getConstraintItems().keySet()) {\n existConstraints\n .addConstraintItem(constraintId, constraint.getConstraintItem(constraintId));\n }\n return this;\n }",
"public void setRelation(Relation<L, Tr, T> r) {\n this.relation = r;\n }",
"com.microsoft.schemas.crm._2011.contracts.ArrayOfObjectiveRelation addNewObjectives();",
"void removeConstraintRelation(IViewRelation relation);",
"private void addRelationship(String node1, String node2, String relation)\n {\n try (Session session = driver.session())\n {\n // Wrapping Cypher in an explicit transaction provides atomicity\n // and makes handling errors much easier.\n try (Transaction tx = session.beginTransaction())\n {\n tx.run(\"MATCH (j:Node {value: {x}})\\n\" +\n \"MATCH (k:Node {value: {y}})\\n\" +\n \"MERGE (j)-[r:\" + relation + \"]->(k)\", parameters(\"x\", node1, \"y\", node2));\n tx.success(); // Mark this write as successful.\n }\n }\n }",
"public void addRelation(int from, int to){\n this.setAdjacencyMatrixEntry(from, to, 1);\n }",
"org.hl7.fhir.ObservationRelated addNewRelated();",
"public final void mT__161() throws RecognitionException {\n try {\n int _type = T__161;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:161:8: ( 'relationshipConstraint' )\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:161:10: 'relationshipConstraint'\n {\n match(\"relationshipConstraint\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"void onDependencyRelation( DependencyRelation relation );",
"protected abstract void addJointImpl( Joint joint );",
"void setConstraints(com.microsoft.schemas.crm._2011.contracts.ArrayOfConstraintRelation constraints);",
"private static void addReservationConstraint()\n {\n ReservationConstraints constraint = new ReservationConstraints(new Date(), new Date(), \"bogusCarType\");\n System.out.println(\"press any key to try to register quote : \" + constraint);\n Main.readLine();\n \n if(session.createQuote(constraint) != null)\n System.out.println(\"Quote registered\");\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.FurtherRelations addNewFurtherRelations();",
"public Builder addConstraint(ConstraintType type, ConstraintId constraintId, ConstraintItem item) {\n ClusterConstraints existConstraints = getConstraintsInstance(type);\n existConstraints.addConstraintItem(constraintId, item);\n return this;\n }",
"private GraphTraversal appendRelationAndPropertyGroup(\n GraphTraversal traversal,\n Rel rel,\n RelPropGroup relPropGroup,\n Ontology.Accessor ont) {\n\n String relationTypeName = ont.$relation$(rel.getrType()).getName();\n\n List<Traversal> relPropGroupTraversals = Collections.emptyList();\n if (!relPropGroup.getProps().isEmpty() || !relPropGroup.getGroups().isEmpty()) {\n relPropGroupTraversals = Collections.singletonList(convertRelPropGroupToTraversal(relPropGroup, ont));\n }\n\n\n List<Traversal> traversals = Stream.<Traversal>of(__.start().has(T.label, P.eq(relationTypeName)))\n .appendAll(relPropGroupTraversals).toJavaList();\n\n return traversals.size() == 1 ?\n traversal.has(CONSTRAINT, Constraint.by(traversals.get(0))) :\n traversal.has(CONSTRAINT, Constraint.by(__.start().and(Stream.ofAll(traversals).toJavaArray(Traversal.class))));\n }",
"int insertSelective(MyUserRoleRelation record);",
"private void addVertexVisitConstraint(){\n\n for (int vertex=0; vertex < vertexCount; vertex++){\n Integer[] pos = new Integer[variables.length];\n for (int position =0; position < positionCount; position++){\n pos[position] = variables[position][vertex];\n }\n addExactlyOne(pos);\n }\n }",
"private void addRelationshipConstraintConflicts(\n RelationshipConstraint constraint,\n org.hisp.dhis.dxf2.deprecated.tracker.trackedentity.RelationshipItem relationshipItem,\n String relationshipUid,\n ImportConflicts importConflicts) {\n RelationshipEntity entity = constraint.getRelationshipEntity();\n String itemUid = getUidOfRelationshipItem(relationshipItem);\n\n if (TRACKED_ENTITY_INSTANCE.equals(entity)) {\n TrackedEntity tei = trackedEntityInstanceCache.get(itemUid);\n\n if (tei == null) {\n importConflicts.addConflict(relationshipUid, \"TrackedEntity '\" + itemUid + \"' not found.\");\n } else if (!tei.getTrackedEntityType().equals(constraint.getTrackedEntityType())) {\n importConflicts.addConflict(\n relationshipUid, \"TrackedEntity '\" + itemUid + \"' has invalid TrackedEntityType.\");\n }\n } else if (PROGRAM_INSTANCE.equals(entity)) {\n Enrollment pi = programInstanceCache.get(itemUid);\n\n if (pi == null) {\n importConflicts.addConflict(relationshipUid, \"Enrollment '\" + itemUid + \"' not found.\");\n } else if (!pi.getProgram().equals(constraint.getProgram())) {\n importConflicts.addConflict(\n relationshipUid, \"Enrollment '\" + itemUid + \"' has invalid Program.\");\n }\n } else if (PROGRAM_STAGE_INSTANCE.equals(entity)) {\n Event psi = programStageInstanceCache.get(itemUid);\n\n if (psi == null) {\n importConflicts.addConflict(relationshipUid, \"Event '\" + itemUid + \"' not found.\");\n } else {\n if (constraint.getProgram() != null\n && !psi.getProgramStage().getProgram().equals(constraint.getProgram())) {\n importConflicts.addConflict(\n relationshipUid, \"Event '\" + itemUid + \"' has invalid Program.\");\n } else if (constraint.getProgramStage() != null\n && !psi.getProgramStage().equals(constraint.getProgramStage())) {\n importConflicts.addConflict(\n relationshipUid, \"Event '\" + itemUid + \"' has invalid ProgramStage.\");\n }\n }\n }\n }",
"private void addVertexPositionConstraint(){\n for (int vertex=0; vertex < vertexCount; vertex++){\n addExactlyOne(variables[vertex]);\n }\n }",
"void addHas_consequence(Consequence newHas_consequence);",
"public <T> void addConstraintSet(LogicOperation logicalOp, int columnIndex,\n\t\t\tList<ColumnConstraint<T>> constraints) {\n\t\tconstraintSets.add(new ColumnConstraintSet<>(model, columnIndex, constraints, logicalOp));\n\t\torList = null; // the current orList is now invalid, this will cause it to be rebuilt when needed.\n\t}",
"private boolean createForeignKeyRelation(String server, String database,\n\t\t\tRelationship relationship)\n\t\t\tthrows ClassNotFoundException, SQLException {\n\t\tString fromColumn = relationship.getFromColumns().get(0).getName();\n\t\tString toColumn = relationship.getToColumns().get(0).getName();\n\t\tString fromTable = getNormalisedTableName(relationship.getFromTable()\n\t\t\t\t.getName());\n\t\tString toTable = getNormalisedTableName(relationship.getToTable()\n\t\t\t\t.getName());\n\t\tString command = (\"ALTER TABLE \\\"\" + toTable + \"\\\" ADD CONSTRAINT \"\n\t\t\t\t+ relationship.getName() + \" FOREIGN KEY (\\\"\" + toColumn\n\t\t\t\t+ \"\\\") REFERENCES \\\"\" + fromTable + \"\\\" (\\\"\" + fromColumn + \"\\\") ON UPDATE NO ACTION ON DELETE NO ACTION DEFERRABLE INITIALLY DEFERRED; \\n\");\n\t\treturn new QueryRunner(server, database)\n\t\t\t\t.runDBQuery(command);\n\t}",
"protected void addConstraints() throws IloException {\n// Constrain (2)\n for (int i = 0; i < m; i++) {\n IloLinearNumExpr expr_2 = model.linearNumExpr();\n for (int j = 0; j < n; j++) {\n expr_2.addTerm(x[i][j], 1);\n }\n model.addLe(expr_2, supply[i]);\n }\n\n // Constrain (3)\n for (int j = 0; j < n; j++) {\n IloLinearNumExpr expr_3 = model.linearNumExpr();\n for (int i = 0; i < m; i++) {\n expr_3.addTerm(x[i][j], 1);\n }\n model.addEq(expr_3, demands[j]);\n }\n }",
"public void addRelation(final IWiktionaryRelation relation) {\n\t\tif (relations == null)\n\t\t\trelations = new ArrayList<>();\n\t\trelations.add(relation);\n\t}",
"IRequirement or(IRequirement constraint);",
"@Query(\"MATCH(sp:ServiceProvider),(s:Skills) WHERE sp.email={email} and s.skillName={skillName} CREATE (sp)-[hs:has_skills]->(s) RETURN sp\")\n public ServiceProvider setHasSkillsRelation(@Param(\"email\") String email, @Param(\"skillName\") String skillName);",
"public Delta addConstraintItem(ConstraintType type, ConstraintId constraintId,\n ConstraintItem item) {\n _builder.addConstraint(type, constraintId, item);\n return this;\n }",
"public void addConstraint(final int startOfSpan, final int spanLength) {\n constraints.add(new int[] {startOfSpan, spanLength});\n }",
"@Override\n \tpublic void addIsCitedBy(Reference reference) {\n \t\tList<Reference> isCitedBy = getIsCitedBy();\n \t\t// check for existing relationship\n \t\tif (reference == null || isCitedBy.contains(reference))\n \t\t\treturn;\n \t\t// add both sides of relationship\n \t\treference.getCitationList().add(this);\n \t\tisCitedBy.add(reference);\n \t}",
"DefinedProperty relAddProperty( long relId, int propertyKey, Object value );",
"public void addEdge(int source, int target, Cost w) {\n\t\tedges[source][target] = w;\n\t}",
"@PreAuthorize(\"hasRole('ROLE_USER') and hasPermission(#idDesignOption, 'at.decisionexpert.neo4jentity.node.DesignOption', 'OWNER')\")\n <T extends DOAttributeRelationship<A>, A extends CoreData> DesignOptionRelationDto createRelation(\n @NotNull Long idDesignOption, DesignOptionRelationDto attributeInfo, Class<T> relationClass, Class<A> toNodeType);",
"Cascade createCascade();",
"public void merge(ConstraintVertex constraintVertex) {\n ConstraintVertex other = constraintVertex;\n if (other.isOnConstraint) {\n this.isOnConstraint = true;\n this.constraint = other.constraint;\n }\n }",
"public abstract RelationDeclaration getRelation();",
"public void addRelationship(String primaryNickName, String primaryAttribute, String secondaryNickName, String secondaryAttribute)\n {\n AttributeType att1;\n AttributeType att2;\n\n if (primaryAttribute.equals(\"horizontal\"))\n {\n att1=AttributeType.HORIZONTAL_CENTER;\n }\n else if (primaryAttribute.equals(\"vertical\"))\n {\n att1=AttributeType.VERTICAL_CENTER;\n }\n else\n {\n att1=AttributeType.HORIZONTAL_CENTER;\n }\n\n if (secondaryAttribute.equals(\"horizontal\"))\n {\n att2=AttributeType.HORIZONTAL_CENTER;\n }\n else if (secondaryAttribute.equals(\"vertical\"))\n {\n att2=AttributeType.VERTICAL_CENTER;\n }\n else\n {\n att2=AttributeType.HORIZONTAL_CENTER;\n }\n\n if (secondaryNickName.equals(\"container\"))\n {\n secondaryNickName=DependencyManager.ROOT_NAME;\n }\n\n addConstraint(primaryNickName, att1, new AttributeConstraint(secondaryNickName, att2));\n }",
"public void addImpliedRelationship(String parentTableName, String childTableName, String fkColumnName) {\n if (parentTableName.equalsIgnoreCase(childTableName)) {\n return;\n }\n \n // Don't create a relationship if one already exists in the config\n Iterator i = config.getRelationship().iterator();\n while (i.hasNext()) {\n Relationship r = (Relationship) i.next();\n if (r.getPrimaryKeyTable().equals(parentTableName) && r.getForeignKeyTable().equals(childTableName)) {\n return;\n }\n }\n \n Relationship r = FACTORY.createRelationship();\n r.setName(childTableName);\n r.setPrimaryKeyTable(parentTableName);\n r.setForeignKeyTable(childTableName);\n \n KeyPair pair = FACTORY.createKeyPair();\n pair.setPrimaryKeyColumn(\"ID\");\n pair.setForeignKeyColumn(fkColumnName);\n \n r.getKeyPair().add(pair);\n r.setMany(true);\n \n config.getRelationship().add(r);\n }",
"public void addInjection(RelationInjectionManager injection);",
"public void setConstraint(ContextConstraint node, int i) {\n List<ContextConstraint> list = getConstraintList();\n list.setChild(node, i);\n }",
"@Override\n\tpublic void savePersonRelation(PersonRelation personRelation) {\n\t\t\n\t}",
"public boolean supportsUniqueConstraintInCreateAlterTable() {\n \t return true;\n \t}",
"Column referencedColumn();",
"public void addConstraint(\n\t\t\tDurationCapability source, int sourceSign, \n\t\t\tDurationCapability target, int targetSign,\n\t\t\tboolean pulls, boolean expands) {\n\t\taddDurationCapability(source);\n\t\tconstraints.get(source).add(\n\t\t\t\tnew DurationConstraint(\n\t\t\t\t\t\tgetEdge(source, sourceSign),\n\t\t\t\t\t\tgetEdge(target, targetSign),\n\t\t\t\t\t\tpulls, expands));\n\t}",
"public interface ConstraintContext {\n Optional<TraversalConstraint> getConstraint();\n}",
"boolean hasRelation();",
"public LinearConstraint() {\n\n }",
"@Override\n\tpublic PersonRelation createRelationshipBetween(Person person,\n\t\t\tPerson relatedPerson, int relationship) {\n\t\treturn null;\n\t}",
"public T caseRelationAdded(RelationAdded object) {\n\t\treturn null;\n\t}",
"public ConstraintVertex(Coordinate p) {\n super(p);\n }",
"public interface LookupConstraint {\n}",
"private void createReferentialIntegrityConstraints() {\n jdbcTemplate.update(\"ALTER TABLE \" + IDaoBooks.BOOKS_AUTHOR_TABLE + \" ADD FOREIGN KEY (THE_BOOK_FK) REFERENCES \" + IDaoBooks.TABLE + \" (ID) ON UPDATE SET NULL\");\n jdbcTemplate.update(\"ALTER TABLE \" + IDaoBooks.BOOKS_AUTHOR_TABLE + \" ADD FOREIGN KEY (THE_AUTHOR_FK) REFERENCES \" + IDaoPersons.TABLE + \" (ID) ON UPDATE SET NULL\");\n\n jdbcTemplate.update(\"ALTER TABLE \" + IDaoBooks.TABLE + \" ADD FOREIGN KEY (THE_KIND_FK) REFERENCES \" + SimpleData.DataType.KIND.getTable() + \" (ID) ON UPDATE SET NULL\");\n jdbcTemplate.update(\"ALTER TABLE \" + IDaoBooks.TABLE + \" ADD FOREIGN KEY (THE_LANGUAGE_FK) REFERENCES \" + SimpleData.DataType.LANGUAGE.getTable() + \" (ID) ON UPDATE SET NULL\");\n jdbcTemplate.update(\"ALTER TABLE \" + IDaoBooks.TABLE + \" ADD FOREIGN KEY (THE_LENDING_FK) REFERENCES \" + IDaoLendings.TABLE + \" (ID) ON UPDATE SET NULL\");\n jdbcTemplate.update(\"ALTER TABLE \" + IDaoBooks.TABLE + \" ADD FOREIGN KEY (THE_SAGA_FK) REFERENCES \" + SimpleData.DataType.SAGA.getTable() + \" (ID) ON UPDATE SET NULL\");\n jdbcTemplate.update(\"ALTER TABLE \" + IDaoBooks.TABLE + \" ADD FOREIGN KEY (THE_TYPE_FK) REFERENCES \" + SimpleData.DataType.TYPE.getTable() + \" (ID) ON UPDATE SET NULL\");\n jdbcTemplate.update(\"ALTER TABLE \" + IDaoBooks.TABLE + \" ADD FOREIGN KEY (THE_EDITOR_FK) REFERENCES \" + IDaoEditors.TABLE + \" (ID) ON UPDATE SET NULL\");\n }",
"public void set_relation(String relation){\n\t\tthis.relation = relation;\n\t}",
"List<IViewRelation> getConstraintRelations();",
"public Relation(String relationString, MinecraftObject obj,\n ImmutableList<MinecraftObject> otherob) {\n this(relationString, EnumSet.noneOf(Aspects.class), obj, otherob);\n }",
"ContextRelation getContextRelation();",
"@Override\r\n\tprotected boolean isRefactoringSupportedForDialect(HibernateDialect dialect)\r\n\t{\r\n\t\treturn dialect.supportsAddUniqueConstraint();\r\n\t}",
"private PushProjectIntoMultiJoinRule()\n {\n super(\n new RelOptRuleOperand(\n ProjectRel.class,\n new RelOptRuleOperand(MultiJoinRel.class, ANY)));\n }",
"public interface HasRelation {\r\n\r\n\tpublic boolean addRelation(Relation relation);\r\n\tpublic boolean removeRelation(Relation relation);\r\n\tpublic List<Relation> getRelations();\r\n}",
"com.microsoft.schemas.crm._2011.contracts.ArrayOfRequiredResource addNewRequiredResources();",
"protected PrecedenceConstraint(CriticalSet cs, Decision reference, Decision target, double cost) {\n\t\tsuper(cs, cost);\n\t\tthis.reference = reference;\n\t\tthis.target = target;\n\t}",
"Builder addAccountablePerson(Person value);",
"@Override\n\tpublic boolean insertOneEdge(NodeRelation nodeRelation) {\n\t\treturn false;\n\t}",
"EReference getRelationReference();",
"public Relation setDeepRelation(XDI3Segment contextNodeXri, XDI3Segment arcXri, XDI3Segment targetContextNodeXri);",
"public boolean addTarget(Entity target) {\r\n boolean result = IServer.associationHasTarget().add(this, target);\r\n IServer.fireLinkUpdated(new LinkEvent(this));\r\n return result;\r\n }",
"@Override\n\tpublic void add() {\n\t\tperson.addRelationship(\"Friend\", friend);\n\t}",
"void relationshipCreate( long id, int typeId, long startNodeId,\n long endNodeId );",
"GroupQueryBuilder addRelatedUser(User user);"
] | [
"0.65684265",
"0.6316446",
"0.63009304",
"0.62736297",
"0.6160528",
"0.5985171",
"0.5985171",
"0.59213424",
"0.58704424",
"0.57692266",
"0.5740027",
"0.5730259",
"0.56724405",
"0.5653139",
"0.5639398",
"0.55996156",
"0.558997",
"0.5571763",
"0.55305564",
"0.5517115",
"0.54962593",
"0.5474835",
"0.5451205",
"0.5431017",
"0.54020154",
"0.5352742",
"0.5342572",
"0.5318335",
"0.53085226",
"0.5304693",
"0.52721786",
"0.5227087",
"0.51945335",
"0.51712936",
"0.51516706",
"0.515037",
"0.5142128",
"0.51188856",
"0.5118466",
"0.5107163",
"0.51019686",
"0.509709",
"0.50936836",
"0.5090182",
"0.50749576",
"0.5061382",
"0.5040889",
"0.5027704",
"0.50209856",
"0.50183094",
"0.5016255",
"0.5012784",
"0.5009558",
"0.50018245",
"0.49986136",
"0.49507388",
"0.4949702",
"0.49455762",
"0.4928368",
"0.49239904",
"0.49222237",
"0.49192202",
"0.49107653",
"0.49068052",
"0.49031252",
"0.48927495",
"0.48639512",
"0.4863786",
"0.48508134",
"0.48444948",
"0.48421806",
"0.48269525",
"0.48200804",
"0.4819915",
"0.48185864",
"0.4817331",
"0.48047233",
"0.4796904",
"0.47930712",
"0.4789632",
"0.47890788",
"0.47855327",
"0.4784794",
"0.4782631",
"0.47676826",
"0.47605118",
"0.4759261",
"0.4757433",
"0.47532314",
"0.47531912",
"0.47401822",
"0.4737382",
"0.4728921",
"0.47278643",
"0.47248375",
"0.4724367",
"0.47181204",
"0.471805",
"0.4712751",
"0.47118318"
] | 0.7590596 | 0 |
Remove a linked relation | void removeRelation(IViewRelation relation); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void delRelations();",
"public void delIncomingRelations();",
"void removeRelationship(DbRelationship rel) {\n objectList.remove(rel);\n fireTableDataChanged();\n }",
"void unsetFurtherRelations();",
"public void removeRelation(Relation relation) {\n \tif (relation.getSection() == this)\n \t\trelations.remove(relation.getName());\n }",
"void removeConstraintRelation(IViewRelation relation);",
"public void remove() {\r\n\t\theadNode.link = headNode.link.link;\r\n\t\tsize--;\r\n\t}",
"boolean removeLink(Link link);",
"private void linkRemoved(Link link) {\n\n\t}",
"void removeRelated(int i);",
"public void delRelation(XDI3Segment arcXri, XDI3Segment targetContextNodeXri);",
"public void remove() {\n this.getNext().setPrev(this.getPrev());\n this.getPrev().setNext(this.getNext());\n }",
"void relRemoveProperty( long relId, int propertyKey );",
"@Override\n \tpublic void removeIsCitedBy(Reference reference) {\n \t\tList<Reference> isCitedBy = getIsCitedBy();\n \t\t// check for no existing relationship\n \t\tif (reference == null || !isCitedBy.contains(reference))\n \t\t\treturn;\n \t\t// remove both sides of relationship\n \t\treference.getCitationList().remove(this);\n \t\tisCitedBy.remove(reference);\n \n \t}",
"public void removeNodeAfterThis() {\r\n\t\tif ( link != null ) {\r\n\t\t\tlink = link.link;\r\n\t\t} // end precondition\r\n\t}",
"public void remove()\n {\n this.prev.next = this.next;\n this.next.prev = this.prev;\n this.next = null;\n this.prev = null;\n }",
"public void deleteMediaRelation(MediaRelation mediarelation);",
"public void removeNonMemberInheritanceRelation(InheritanceRelation relation) throws ChameleonProgrammerException;",
"@Override\n \tpublic void removeAuthor(Author author) {\n \t\tList<Author> authorList = getAuthorList();\n \t\t// check for existing relationship\n \t\tif (author == null || !authorList.contains(author))\n \t\t\treturn;\n \t\t// add both sides of relationship\n \t\tauthor.getAuthorReferences().remove(this);\n \t\tauthorList.remove(author);\n \t}",
"public void remove() {\n\t\tif(this._prev != null)\n\t\t\tthis._prev._next = this._next;\n\t\tif(this._next != null)\n\t\t\tthis._next._prev = this._prev;\n\n\t\tthis._next = null;\n\t\tthis._prev = null;\n\t}",
"public void removed()\n {\n if (prev == null) {\n IBSPColChecker.setNodeForShape(shape, next);\n }\n else {\n prev.next = next;\n }\n\n if (next != null) {\n next.prev = prev;\n }\n }",
"public void remove() {\n\t\tif (prev != null && next != null) {\n\t\t\tprev.next = next;\n\t\t\tnext.prev = prev;\n\t\t\tnext = prev = null;\t\n\t\t}\n\t}",
"public void deletelink(Integer linkId);",
"@Override\n public void remove() {\n deleteFromModel();\n deleteEdgeEndpoints();\n\n setDeleted(true);\n if (!isCached()) {\n HBaseEdge cachedEdge = (HBaseEdge) graph.findEdge(id, false);\n if (cachedEdge != null) cachedEdge.setDeleted(true);\n }\n }",
"private void remove() {\n if (prev != null) {\n prev.next = next;\n }\n if (next != null) {\n next.prev = prev;\n }\n }",
"public void delete() {\n\t\t// pre: length>0\n\t\t// post: delete one node from the end; reduce length\n\t\tif (this.length > 0) {\n\t\t\tCLL_LinkNode temp_node = this.headNode ;\n\t\t\tfor (int i = 1; i < this.length-1; i++) {\n\t\t\t\ttemp_node = temp_node.getNext();\n\t\t\t}\n\t\t\ttemp_node.getNext().setNext(null);\n\t\t\ttemp_node.setNext(this.headNode);\n\t\t\tthis.length--;\n\t\t}\n\t}",
"public void delHsExtendedRef(SomeRelation value){\n ((ExtendedRefHSDMO) core).delHsExtendedRef(value);\n }",
"public static void delete(Nodelink node){\n\n Nodelink temp = node.next;\n node = null;\n\n node = temp;\n\n }",
"public final void delete() {\n\t\tOllie.delete(this);\n\t\tOllie.removeEntity(this);\n\t\tnotifyChange();\n\t\tid = null;\n\t}",
"@Transactional\n public void remove(ExtensionLinkEntity link) {\n EntityManager entityManager = entityManagerProvider.get();\n link = findById(link.getLinkId());\n if (null != link) {\n entityManager.remove(link);\n }\n }",
"@Override\n\tpublic int delLink(Link link) {\n\t\treturn 0;\n\t}",
"private void removeCrossReference ()\n\t{\n\t\tif (crossReference != null)\n\t\t{\n\t\t\tcrossReferences.remove (crossReference);\n\t\t}\n\t}",
"public void remove () { this.setAsDown(); n.remove(); }",
"protected void removeReference()\n {\n }",
"public void unlinkUD()\n {\n this.U.D = this.D;\n this.D.U = this.U;\n }",
"public Node removeFromChain();",
"public void unlinkLR()\n {\n this.L.R = this.R;\n this.R.L = this.L;\n }",
"public void removeSemanticLink(IBusinessObject dest, LinkKind type)\n throws OculusException;",
"public void deleteByRelation(int id) throws DAOException;",
"protected abstract void removeJointImpl( Joint joint );",
"public void remove( Object x )\n {\n LinkedListItr p = findPrevious( x );\n\n if( p.current.next != null )\n p.current.next = p.current.next.next; // Bypass deleted node\n }",
"public Node2 delete() {\n \tNode2 temp = first;\n\t first = first.nextLink;\n\t first.nextLink.prevLink = null;\n\t return temp;\n }",
"public void _unlinkSupplier(ModelElement supplier1);",
"@Override\r\n\tpublic boolean unlink(E src, E dst) {\r\n\t\tVertex<E> s = vertices.get(src);\r\n\t\tVertex<E> d = vertices.get(dst);\r\n\t\tif(s != null && d != null) {\r\n\t\t\tadjacencyLists.get(src).remove(new Edge<E>(s.getElement(), d.getElement(), 1)); //remove edge (s,d)\r\n\t\t\tif(!isDirected) { //Remove the other edge if this graph is undirected\r\n\t\t\t\tadjacencyLists.get(dst).remove(new Edge<E>(d.getElement(), s.getElement(), 1));\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public void remove() {\n\t\tif (current == head) {\n\t\t\thead = current.getNext();\n\t\t\tcurrent = head;\n\t\t}\n\t\tif (current.getNext() == null) {\n\t\t\tcurrent.getPrevious().setNext(null);\n\t\t\tcurrent = current.getPrevious();\n\t\t}\n\t\telse {\n\t\t\tcurrent.getPrevious().setNext(current.getNext());\n\t\t\tcurrent.getNext().setPrevious(current.getPrevious());\n\t\t\tcurrent = current.getPrevious();\n\t\t}\n\t}",
"@Override\r\n public void remove() {\r\n if (nextCalled) {\r\n node.previous().setNext(node.next());\r\n node.next().setPrevious(node.previous());\r\n size--;\r\n nextCalled = false;\r\n }\r\n else {\r\n throw new IllegalStateException(\"Illegal call to remove(); \"\r\n + \"next() was not called.\");\r\n }\r\n\r\n }",
"Object unlink(Node x) {\n final Object element = x.item;\n final Node next = x.next;\n final Node prev = x.pre;\n\n //当前节点为first节点\n if (prev == null) {\n //删除这个节点时,要将next节点赋值为first节点\n first = next;\n } else {\n prev.next = next;\n x.pre = null;\n }\n\n //最后一个节点\n if (next == null) {\n last = prev;\n } else {\n next.pre = prev;\n x.next = null;\n }\n\n x.item = null;\n size--;\n return element;\n }",
"public void manyToManyDeleteOwningSideTest() throws Exception {\n EntityManager em = createEntityManager();\n \n em.getTransaction().begin();\n \n EntityA a1 = new EntityA();\n a1.setName(\"EntityA1\");\n EntityB b1 = new EntityB();\n b1.setName(\"EntityB1\");\n\n a1.getBs().add(b1);\n b1.getAs().add(a1);\n\n em.persist(a1);\n\n em.getTransaction().commit();\n\n Integer idA1 = a1.getId();\n Integer idB1 = b1.getId();\n \n em.getTransaction().begin();\n \n // remove the relationship\n a1.getBs().remove(b1);\n b1.getAs().remove(a1);\n\n // remove the non-owning side\n em.remove(a1);\n try {\n em.getTransaction().commit();\n } catch (RuntimeException ex) {\n if (em.getTransaction().isActive()) {\n em.getTransaction().rollback();\n }\n em.close();\n \n throw ex;\n }\n \n clearCache();\n \n assertTrue(\"EntityA a1 should have been removed!\", \n em.createQuery(\"SELECT a FROM EntityA a WHERE a.id = ?1\").setParameter(1, idA1).getResultList().size() == 0);\n assertTrue(\"EntityB b1 should not have been removed!\", \n em.createQuery(\"SELECT b FROM EntityB b WHERE b.id = ?1\").setParameter(1, idB1).getResultList().size() != 0);\n\n em.close();\n }",
"@Test\n\tpublic void testRemoveLinkComponentDeleteOrphanedFromDoc() {\n\t\tAddressBook adrbook = new AddressBook();\n\t\tDocument doc = new Document(adrbook);\n\t\tAssert.assertSame(doc.findBeansByType(\"org.rapidbeans.test.codegen.AddressBook\").get(0), doc.getRoot());\n\t\tPerson martin = new Person(new String[] { \"Bl�mel\", \"Martin\", \"19641014\" });\n\t\tadrbook.addPerson(martin);\n\t\tAssert.assertSame(martin, ((ReadonlyListCollection<?>) adrbook.getPersons()).get(0));\n\t\tAssert.assertSame(martin, doc.findBeansByType(\"org.rapidbeans.test.codegen.Person\").get(0));\n\t\tAddress fasanstreet = new Address();\n\t\tfasanstreet.setStreet(\"Fasanenstra�e\");\n\t\tadrbook.addAddress(fasanstreet);\n\t\tAssert.assertNull(fasanstreet.getInhabitants());\n\t\tfasanstreet.addInhabitant(martin);\n\t\tAssert.assertEquals(1, fasanstreet.getInhabitants().size());\n\t\tAssert.assertSame(fasanstreet, martin.getAddress());\n\t\tadrbook.removeAddress(fasanstreet);\n\t\tAssert.assertEquals(0, fasanstreet.getInhabitants().size());\n\t}",
"public void delRelations(XDI3Segment arcXri);",
"public void _unlinkClient(ModelElement client1);",
"public void removePerson(Person p);",
"public void removeSelf(){\n\t\tif(prev != null){\n\t\t\tprev.next = next;\n\t\t\tnext.prev = prev;\n\t\t\tprev = null;\n\t\t\tnext = null;\n\t\t}\n\t}",
"public void remove();",
"public void remove();",
"public void remove();",
"public void remove();",
"public void remove();",
"public void removeRuleRef(org.semanticwb.model.RuleRef value);",
"@Override\n\tpublic void deleteLinkmanById(long id) {\n\t\tmapper.deleteByPrimaryKey(id);\n\t}",
"public void remove() {\n\n\t\tif (size() > 1) {\n\n\t\t\tNode node = head;\n\n\t\t\tfor (int i = 0; i < size() - 1; i++) {\n\n\t\t\t\tnode = node.getNextNode();\n\n\t\t\t}\n\n\t\t\tif (node != null) {\n\n\t\t\t\tnode.setNextNode(null);\n\t\t\t\tsize--;\n\n\t\t\t}\n\n\t\t} else if (size() == 1) {\n\n\t\t\thead = null;\n\t\t\tsize--;\n\n\t\t}\n\n\t}",
"public void removeFromParent();",
"int deleteByPrimaryKey(String relationId);",
"public void deleteLink(IHyperLink link)\n throws OculusException;",
"public void removeThing(){\n thing = null;\n }",
"private void removeNode(DNode node) {\n node.prev.next = node.next;\n node.next.prev = node.prev;\n }",
"public void remove() {\n\n\t\t\tsuprimirNodo(anterior);\n\n\t\t}",
"public void remove() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.delete(this);\n\t\tsession.getTransaction().commit();\n\t}",
"private void removeNode(DLinkedNode node){\n\t\tDLinkedNode prev = node.prev;\n\t\tDLinkedNode next = node.next;\n\n\t\tprev.next = next;\n\t\tnext.prev = prev;\n\t}",
"void removeLine(PNode c){\n\t\tLinkSet ls = null;\n\t\tLink l = null;\n\t\tLinkSet ls1 = new LinkSet();\n\t\tfor(int i=0;i<linksets.size();i++){\n\t\t\tfor(int j=0;j<linksets.get(i).getLinks().size();j++){\n\t\t\t\tif(c==linksets.get(i).getLinks().get(j).getNode1()||c==linksets.get(i).getLinks().get(j).getNode2()){\n\t\t\t\t\tls = linksets.get(i);\n\t\t\t\t\tl = ls.getLinks().get(j);\n\t\t\t\t\tls.removeLink(l);\n\t\t\t\t\tif(ls.getLinks().size()==0){\n\t\t\t\t\t\tlinksets.remove(ls);//remove linkset if it is empty\n\t\t\t\t\t\tls = null;\n\t\t\t\t\t\tl = null;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(ls!=null){\n\t\t\tLink tlink = null;\n\t\t\tfor(Link lnk: ls.getLinks()){\n\t\t\t\tif(lnk.getNode1().getOwner()==l.getNode1().getOwner() && lnk.getNode1().getSignal()==l.getNode1().getSignal()\n\t\t\t\t\t\t|| lnk.getNode2().getOwner()==l.getNode1().getOwner() && lnk.getNode2().getSignal()==l.getNode1().getSignal()){\n\t\t\t\t\ttlink = lnk;\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t\tif(tlink!=null){\n\t\t\t\tls1.addLink(tlink);\n\t\t\t\tls.removeLink(tlink);\n\t\t\t\tcheckForNextLink(ls1, ls, tlink);\n\t\t\t}\n\t\t\tif(ls.getLinks().size()==0){\n\t\t\t\tlinksets.remove(ls);\n\t\t\t}\n\t\t\tlinksets.add(ls1);\n\t\t}\n\t\tfor(int i=0; i<links.size();i++){\n\t\t\tLink lnk = links.get(i);\n\t\t\tif (c == lnk.getNode1() || c == lnk.getNode2()){\n\t\t\t\tlayer.removeChild(links.get(i).getPPath());\n\t\t\t\tlinks.remove(i);\n\t\t\t\tremoveLine(c);\n\t\t\t}\n\t\t}\n\t}",
"private void remove(Node node) {\n Node next = node.next;\n Node previous = node.previous;\n previous.next = next;\n next.previous = previous;\n }",
"ISlot remove(IStrongSlot target);",
"public void remove(AnyType x) {\n LinkedListIterator<AnyType> p = findPrevious(x);\n\n if (p.current.next != null) {\n p.current.next = p.current.next.next; // Bypass deleted node\n }\n }",
"public void removeDeviceServiceLink();",
"public boolean removeLink(L link) {\n if(links.remove(link)){\n //Se link existe, retira o seu parentesco\n if(link != null)\n link.setParent(null);\n\n notifyRemoved(NCLElementSets.LINKS, link);\n return true;\n }\n return false;\n }",
"public void removeHead() {\n\t\t\tif (length != 0)\n\t\t\t{ \n\t\t ElementDPtr save = head.getNext();\n\t\t head = head.getNext();\n\t\t\thead.setPrev(null);\n\t\t\thead.setNext(save.getNext());\n\t\t\tlength -= 1;\n\t\t\tSystem.out.println(tail.getPrev().getValue() + \" removeB \" + length);\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}",
"private void deleteNode(Node n) {\n n.next.pre = n.pre;\n n.pre.next = n.next;\n }",
"public void remove () {}",
"@Test\n\tpublic void deletingAReferencedResourceRemovesReference() {\n\t\tfinal PhysicalElement pe = resMan.createResource(newResourceName(), PhysicalElement.class);\n\t\tfinal PhysicalElement pe2 = resMan.createResource(newResourceName(), PhysicalElement.class);\n\n\t\tpe2.location().create();\n\t\tpe.location().setAsReference(pe2.location());\n\n\t\tassertExists(pe2.location());\n\t\tassertFalse(pe2.location().isReference(false));\n\t\tassertExists(pe.location());\n\t\tassertTrue(pe.location().isReference(false));\n\n\t\tpe2.location().delete();\n\t\tassertDeleted(pe2.location());\n\t\tassertDeleted(pe.location());\n\t\tassertFalse(pe.location().isReference(false));\n\t}",
"boolean removeAssociation(AssociationEnd association);",
"public void elimina(Long id) {\n\n final EntityManager em = getEntityManager();\n\n try {\n\n final EntityTransaction tx = em.getTransaction();\n\n tx.begin();\n\n // Busca un conocido usando su llave primaria.\n\n final Conocido modelo = em.find(Conocido.class, id);\n\n if (modelo != null) {\n\n /* Si la referencia no es nula, significa que el modelo se encontró la\n\n * referencia no es nula y se elimina. */\n\n em.remove(modelo);\n\n }\n\n tx.commit();\n\n } finally {\n\n em.close();\n\n }\n\n }",
"protected void _removeLinks() throws java.rmi.RemoteException, javax.ejb.RemoveException {\n\tjava.util.Enumeration links = _getLinks().elements();\n\twhile (links.hasMoreElements()) {\n\t\ttry {\n\t\t\t((com.ibm.ivj.ejb.associations.interfaces.Link) (links.nextElement())).remove();\n\t\t}\n\t\tcatch (javax.ejb.FinderException e) {} //Consume Finder error since I am going away\n\t}\n}",
"LinkedService deleteById(String id);",
"public synchronized void remove(E object) {\n Node<E> temp = first;\n while (temp.next != null) {\n if (first.object.equals(object)) {\n first = first.next;\n } else if (temp.object.equals(object)) {\n Node<E> forChangeLinks = temp;\n temp.next.prev = temp.prev;\n temp.prev.next = temp.next;\n }\n temp = temp.next;\n }\n }",
"public void removeDups(Instance instance) {\n ArrayList<Instance> toRemove = backRelation.get(instance);\n if(toRemove == null)\n return;\n for (Instance remove : toRemove) {\n relatedInstances.get(remove).remove(instance);\n toLink.remove(remove.getId());\n }\n backRelation.remove(instance);\n\n }",
"public void unlinkAfterLast() {\r\n\t\tif (last != null) {\r\n\t\t\tlast.next = null;\r\n\t\t}\r\n\t}",
"public void removeID(String id)\n { \n idReferences.remove(id); \n }",
"public void remove(){\n if(!isAfterNext)//flag false so next has not been called\n {\n throw new IllegalStateException();\n \n }\n if(position == first){\n removeFirst();//calls LL method because we re an inner class\n \n }\n else{\n previous.next = position.next;// move ref of previou to node after me \n }\n position = previous; \n isAfterNext= false;\n //first call to remove the current position reverts to the predecessor \n //of remove element thus predecessor is no longer known \n }",
"@Override\r\n public void remove() {\n Node current = exp.head;\r\n if( current.next == null ){\r\n exp.head = null;\r\n }\r\n\r\n while( current.next.next != null ){\r\n current = current.next;\r\n }\r\n current.next = null; // current.next son elemani gosterir.\r\n\r\n }",
"private void removeNode(DLinkedNode node){\n DLinkedNode pre = node.pre;\n DLinkedNode post = node.post;\n\n pre.post = post;\n post.pre = pre;\n }",
"public void remove()\n\t\t{\n\t\t\tif(this.removeCalled || previous == null)\n\t\t\t{\n\t\t\t\tthrow new IllegalStateException();\n\t\t\t}\n\t\t\t\n\t\t\t//the data that must be removed is referenced by the node that is before the current since\n\t\t\t//the Next() method removes the pointer over after it returns what was pointed to by current\n\t\t\telse\n\t\t\t{\n\t\t\t\t//remove the data that is referenced by the first node\n\t\t\t\tif(previous == head)\n\t\t\t\t{\n\t\t\t\t\thead = previous.getNext();\n\t\t\t\t\tprevious = null; //there is no node in front of the new head of the list\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tprevious = beforePrevious;\n\t\t\t\t\tbeforePrevious.setNext(current);\n\t\t\t\t}\n\t\t\t\tthis.removeCalled = true;\n\t\t\t}\n\t\t}",
"public void removeVertex();",
"@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}",
"T remove() {\n this.prev.next = this.next;\n this.next.prev = this.prev;\n return this.getData();\n }",
"@Override\n\tpublic void del() {\n\t\ttarget.del();\n\t}",
"private void removeNode(Node<E> node) {\n node.prev.next = node.next;\n node.next.prev = node.prev;\n }",
"public void deleteUlIdPerson()\r\n {\r\n this._has_ulIdPerson= false;\r\n }",
"public void unsetRoadwayRef()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(ROADWAYREF$16);\r\n }\r\n }",
"void graphRemoveProperty( int propertyKey );"
] | [
"0.7354114",
"0.7304763",
"0.7194674",
"0.71843517",
"0.6985766",
"0.69655514",
"0.6625176",
"0.6611362",
"0.65687203",
"0.64791924",
"0.6458249",
"0.6398844",
"0.6376286",
"0.6363749",
"0.6362715",
"0.6354196",
"0.63116914",
"0.62609476",
"0.6251236",
"0.62210923",
"0.6218697",
"0.62151533",
"0.6208184",
"0.61696535",
"0.61690414",
"0.61007375",
"0.60987544",
"0.6082017",
"0.6075458",
"0.6069316",
"0.60686934",
"0.6058507",
"0.6042538",
"0.6019865",
"0.6003208",
"0.59849226",
"0.59848696",
"0.5979509",
"0.59790343",
"0.5958163",
"0.5951632",
"0.5946613",
"0.59272254",
"0.59146297",
"0.59116036",
"0.59105587",
"0.58812624",
"0.5878755",
"0.5877609",
"0.5867907",
"0.5859018",
"0.58542657",
"0.58494127",
"0.58491915",
"0.58491915",
"0.58491915",
"0.58491915",
"0.58491915",
"0.58433187",
"0.58317477",
"0.582055",
"0.5816357",
"0.5815803",
"0.58090645",
"0.5801128",
"0.5783966",
"0.5783097",
"0.5782932",
"0.5775963",
"0.5775877",
"0.5769323",
"0.57693213",
"0.57674307",
"0.57515925",
"0.57456577",
"0.57350457",
"0.5729684",
"0.57189375",
"0.57177",
"0.5714682",
"0.57108676",
"0.5686612",
"0.56842494",
"0.5671606",
"0.56693155",
"0.56684226",
"0.5654001",
"0.56516916",
"0.5639541",
"0.5636736",
"0.56327415",
"0.56269825",
"0.5622997",
"0.5622997",
"0.5620637",
"0.5610372",
"0.5609184",
"0.5608511",
"0.5607367",
"0.5606302"
] | 0.7582743 | 0 |
Remove a linked relation as constraint | void removeConstraintRelation(IViewRelation relation); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void removeRelation(IViewRelation relation);",
"public void delIncomingRelations();",
"void unsetFurtherRelations();",
"public void delRelations();",
"void removeRelationship(DbRelationship rel) {\n objectList.remove(rel);\n fireTableDataChanged();\n }",
"public void removeNonMemberInheritanceRelation(InheritanceRelation relation) throws ChameleonProgrammerException;",
"public void removeRelation(Relation relation) {\n \tif (relation.getSection() == this)\n \t\trelations.remove(relation.getName());\n }",
"void removeConstraintEntity(IViewEntity entity);",
"protected abstract void removeJointImpl( Joint joint );",
"@Override\n \tpublic void removeIsCitedBy(Reference reference) {\n \t\tList<Reference> isCitedBy = getIsCitedBy();\n \t\t// check for no existing relationship\n \t\tif (reference == null || !isCitedBy.contains(reference))\n \t\t\treturn;\n \t\t// remove both sides of relationship\n \t\treference.getCitationList().remove(this);\n \t\tisCitedBy.remove(reference);\n \n \t}",
"void removeRelated(int i);",
"public void delRelation(XDI3Segment arcXri, XDI3Segment targetContextNodeXri);",
"void removeHasRestraintType(Integer oldHasRestraintType);",
"void removeHas_consequence(Consequence oldHas_consequence);",
"public void removeRuleRef(org.semanticwb.model.RuleRef value);",
"ISlot remove(IStrongSlot target);",
"public void delHsExtendedRef(SomeRelation value){\n ((ExtendedRefHSDMO) core).delHsExtendedRef(value);\n }",
"public void removetable(Connection connection) throws SQLException\n {\n\tStringBuffer sbremove = new StringBuffer();\n\tsbremove.append(\" DROP TABLE Credit CASCADE CONSTRAINTS \");\n\tStatement statement =null;\n\ttry {\n\t statement = connection.createStatement();\n\t statement.executeUpdate (sbremove.toString());\n\t}catch (SQLException e) {\n\t throw e;\n\t}finally{\n\t statement.close();\n\t}\n }",
"public void removed()\n {\n if (prev == null) {\n IBSPColChecker.setNodeForShape(shape, next);\n }\n else {\n prev.next = next;\n }\n\n if (next != null) {\n next.prev = prev;\n }\n }",
"void relRemoveProperty( long relId, int propertyKey );",
"@Override\r\n\tpublic boolean unlink(E src, E dst) {\r\n\t\tVertex<E> s = vertices.get(src);\r\n\t\tVertex<E> d = vertices.get(dst);\r\n\t\tif(s != null && d != null) {\r\n\t\t\tadjacencyLists.get(src).remove(new Edge<E>(s.getElement(), d.getElement(), 1)); //remove edge (s,d)\r\n\t\t\tif(!isDirected) { //Remove the other edge if this graph is undirected\r\n\t\t\t\tadjacencyLists.get(dst).remove(new Edge<E>(d.getElement(), s.getElement(), 1));\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public Delta removeConstraintItem(ConstraintType type, ConstraintId constraintId) {\n _removedConstraints.get(type).add(constraintId);\n return this;\n }",
"public boolean removeConstraint(VParticle constraint) {\n\t\treturn constraints.remove(constraint);\n\t}",
"void unsetConstraints();",
"@Override\n public void deleteRelationshipBetweenPhysicalAndPhysical(PhysicalObject physicalObjectA,\n PhysicalObject physicalObjectB) {\n assert false : \"shouldn't call this method\";\n }",
"private void linkRemoved(Link link) {\n\n\t}",
"private void removeCrossReference ()\n\t{\n\t\tif (crossReference != null)\n\t\t{\n\t\t\tcrossReferences.remove (crossReference);\n\t\t}\n\t}",
"public void delRelations(XDI3Segment arcXri);",
"boolean removeLink(Link link);",
"@Override\n\tprotected void removeImpl(Connection conn, VtbObject domainObject)\n\t\t\tthrows SQLException, MappingException {\n\n\t}",
"public void _unlinkClient(ModelElement client1);",
"public void remove() {\r\n\t\theadNode.link = headNode.link.link;\r\n\t\tsize--;\r\n\t}",
"public void removePerson(Person p);",
"public void removeFromIntegrityChecks(entity.LoadIntegrityCheck element);",
"public void _unlinkSupplier(ModelElement supplier1);",
"@Override\n \tpublic void removeAuthor(Author author) {\n \t\tList<Author> authorList = getAuthorList();\n \t\t// check for existing relationship\n \t\tif (author == null || !authorList.contains(author))\n \t\t\treturn;\n \t\t// add both sides of relationship\n \t\tauthor.getAuthorReferences().remove(this);\n \t\tauthorList.remove(author);\n \t}",
"public void unlinkUD()\n {\n this.U.D = this.D;\n this.D.U = this.U;\n }",
"public Node removeFromChain();",
"public void deleteByRelation(int id) throws DAOException;",
"public void removeForeignkey(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(FOREIGNKEY$4, i);\r\n }\r\n }",
"@Transactional\n public void remove(ExtensionLinkEntity link) {\n EntityManager entityManager = entityManagerProvider.get();\n link = findById(link.getLinkId());\n if (null != link) {\n entityManager.remove(link);\n }\n }",
"public void removeFromParent();",
"public boolean unresolve(RelationInjectionManager injection);",
"int deleteByPrimaryKey(String relationId);",
"public void remove () { this.setAsDown(); n.remove(); }",
"public void delete(Transaction tx,Tuple old) throws RelationException;",
"public void unlinkLR()\n {\n this.L.R = this.R;\n this.R.L = this.L;\n }",
"boolean removeAssociation(AssociationEnd association);",
"public void removeSemanticLink(IBusinessObject dest, LinkKind type)\n throws OculusException;",
"public void manyToManyDeleteOwningSideTest() throws Exception {\n EntityManager em = createEntityManager();\n \n em.getTransaction().begin();\n \n EntityA a1 = new EntityA();\n a1.setName(\"EntityA1\");\n EntityB b1 = new EntityB();\n b1.setName(\"EntityB1\");\n\n a1.getBs().add(b1);\n b1.getAs().add(a1);\n\n em.persist(a1);\n\n em.getTransaction().commit();\n\n Integer idA1 = a1.getId();\n Integer idB1 = b1.getId();\n \n em.getTransaction().begin();\n \n // remove the relationship\n a1.getBs().remove(b1);\n b1.getAs().remove(a1);\n\n // remove the non-owning side\n em.remove(a1);\n try {\n em.getTransaction().commit();\n } catch (RuntimeException ex) {\n if (em.getTransaction().isActive()) {\n em.getTransaction().rollback();\n }\n em.close();\n \n throw ex;\n }\n \n clearCache();\n \n assertTrue(\"EntityA a1 should have been removed!\", \n em.createQuery(\"SELECT a FROM EntityA a WHERE a.id = ?1\").setParameter(1, idA1).getResultList().size() == 0);\n assertTrue(\"EntityB b1 should not have been removed!\", \n em.createQuery(\"SELECT b FROM EntityB b WHERE b.id = ?1\").setParameter(1, idB1).getResultList().size() != 0);\n\n em.close();\n }",
"public void deleteMediaRelation(MediaRelation mediarelation);",
"public void removeNodeAfterThis() {\r\n\t\tif ( link != null ) {\r\n\t\t\tlink = link.link;\r\n\t\t} // end precondition\r\n\t}",
"@Override public boolean remove(L vertex) {\r\n if(!vertices.contains(vertex)) return false;\r\n vertices.remove(vertex);\r\n Iterator<Edge<L>> iter=edges.iterator();\r\n while(iter.hasNext()) {\r\n \t Edge<L> tmp=iter.next();\r\n \t //改了\r\n \t if(tmp.getSource().equals(vertex) || tmp.getTarget().equals(vertex))\r\n \t // if(tmp.getSource()==vertex|| tmp.getTarget()==vertex) \r\n \t\t iter.remove();\r\n \t}\r\n checkRep();\r\n return true;\r\n \r\n \r\n }",
"@PreAuthorize(\"hasRole('ROLE_USER') and hasPermission(#idDesignOption, 'at.decisionexpert.neo4jentity.node.DesignOption', 'OWNER')\")\n <T extends DOAttributeRelationship<? extends CoreData>> void deleteRelationAttribute(\n @NotNull Long idDesignOption, @NotNull Long idDesignOptionRelation, Class<T> relationClass);",
"void removeListener(GraphListener listener);",
"public void delete() {\n mapping.getFieldOrFieldExclude().remove(field);\n }",
"@Override\n public void remove() {\n deleteFromModel();\n deleteEdgeEndpoints();\n\n setDeleted(true);\n if (!isCached()) {\n HBaseEdge cachedEdge = (HBaseEdge) graph.findEdge(id, false);\n if (cachedEdge != null) cachedEdge.setDeleted(true);\n }\n }",
"public void removeVertex();",
"void removeDependency(Integer baseOptionId, Integer dependentOptionId);",
"public void filter11Relations() {\n this.relations.removeIf(relationship -> !relationship.isOneToOne());\n }",
"public void removeAllRuleRef();",
"public void filter1NRelations() {\n this.relations.removeIf(Relationship::isOneToOne);\n }",
"public void remove(AnyType x) {\n LinkedListIterator<AnyType> p = findPrevious(x);\n\n if (p.current.next != null) {\n p.current.next = p.current.next.next; // Bypass deleted node\n }\n }",
"protected void removeReference()\n {\n }",
"public void remove() {\n this.getNext().setPrev(this.getPrev());\n this.getPrev().setNext(this.getNext());\n }",
"public void removeThing(){\n thing = null;\n }",
"void remove(Edge edge);",
"public void deletelink(Integer linkId);",
"public void remove()\n {\n this.prev.next = this.next;\n this.next.prev = this.prev;\n this.next = null;\n this.prev = null;\n }",
"void remove(PK id);",
"void eliminar(PK id);",
"void graphRemoveProperty( int propertyKey );",
"public static void delete(Nodelink node){\n\n Nodelink temp = node.next;\n node = null;\n\n node = temp;\n\n }",
"@Override\n public boolean dropConstraints() {\n return false;\n }",
"private void processAlterTableDropConstraint(Table t,\n String cname) throws HsqlException {\n\n session.commit();\n\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.dropConstraint(cname);\n\n return;\n }",
"public void removeContract() {\n this.contract = null;\n }",
"public void remove( Object x )\n {\n LinkedListItr p = findPrevious( x );\n\n if( p.current.next != null )\n p.current.next = p.current.next.next; // Bypass deleted node\n }",
"@Test\n\tpublic void deletingAReferencedResourceRemovesReference() {\n\t\tfinal PhysicalElement pe = resMan.createResource(newResourceName(), PhysicalElement.class);\n\t\tfinal PhysicalElement pe2 = resMan.createResource(newResourceName(), PhysicalElement.class);\n\n\t\tpe2.location().create();\n\t\tpe.location().setAsReference(pe2.location());\n\n\t\tassertExists(pe2.location());\n\t\tassertFalse(pe2.location().isReference(false));\n\t\tassertExists(pe.location());\n\t\tassertTrue(pe.location().isReference(false));\n\n\t\tpe2.location().delete();\n\t\tassertDeleted(pe2.location());\n\t\tassertDeleted(pe.location());\n\t\tassertFalse(pe.location().isReference(false));\n\t}",
"@Override\n public boolean isOrphanRemoval(ManagedType<?> ownerType, String elementCollectionPath, String attributeName) {\n return false;\n }",
"@Test\n\tpublic void testRemoveLinkComponentDeleteOrphanedFromDoc() {\n\t\tAddressBook adrbook = new AddressBook();\n\t\tDocument doc = new Document(adrbook);\n\t\tAssert.assertSame(doc.findBeansByType(\"org.rapidbeans.test.codegen.AddressBook\").get(0), doc.getRoot());\n\t\tPerson martin = new Person(new String[] { \"Bl�mel\", \"Martin\", \"19641014\" });\n\t\tadrbook.addPerson(martin);\n\t\tAssert.assertSame(martin, ((ReadonlyListCollection<?>) adrbook.getPersons()).get(0));\n\t\tAssert.assertSame(martin, doc.findBeansByType(\"org.rapidbeans.test.codegen.Person\").get(0));\n\t\tAddress fasanstreet = new Address();\n\t\tfasanstreet.setStreet(\"Fasanenstra�e\");\n\t\tadrbook.addAddress(fasanstreet);\n\t\tAssert.assertNull(fasanstreet.getInhabitants());\n\t\tfasanstreet.addInhabitant(martin);\n\t\tAssert.assertEquals(1, fasanstreet.getInhabitants().size());\n\t\tAssert.assertSame(fasanstreet, martin.getAddress());\n\t\tadrbook.removeAddress(fasanstreet);\n\t\tAssert.assertEquals(0, fasanstreet.getInhabitants().size());\n\t}",
"public void removeAccount(Person p, Account a);",
"public void unsetRequires()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(REQUIRES$28);\r\n }\r\n }",
"private void processAlterTableDropConstraint(Table t)\n throws HsqlException {\n processAlterTableDropConstraint(t, tokenizer.getName());\n }",
"public void unassociate(Node otherNode, QName associationTypeQName, Directionality directionality);",
"@Transactional\n void remove(DataRistorante risto);",
"void removeVertex(Vertex v) throws GraphException;",
"@Override\r\n\tpublic void removeNodeRule(int step) {\n\t}",
"public T caseRelationRemoved(RelationRemoved object) {\n\t\treturn null;\n\t}",
"public void removeLayoutComponent(Component comp) {\n if (constraints != null) {\n // remove the constraint record\n constraints.remove(comp);\n }\n }",
"@Override\n public void deleteRuleAR() {\n }",
"public void unsetRoadwayRef()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(ROADWAYREF$16);\r\n }\r\n }",
"public boolean dropConstraints() {\n \t\treturn true;\n \t}",
"@Override\n\tpublic int delLink(Link link) {\n\t\treturn 0;\n\t}",
"void removeSameAs(Object oldSameAs);",
"void removeLine(PNode c){\n\t\tLinkSet ls = null;\n\t\tLink l = null;\n\t\tLinkSet ls1 = new LinkSet();\n\t\tfor(int i=0;i<linksets.size();i++){\n\t\t\tfor(int j=0;j<linksets.get(i).getLinks().size();j++){\n\t\t\t\tif(c==linksets.get(i).getLinks().get(j).getNode1()||c==linksets.get(i).getLinks().get(j).getNode2()){\n\t\t\t\t\tls = linksets.get(i);\n\t\t\t\t\tl = ls.getLinks().get(j);\n\t\t\t\t\tls.removeLink(l);\n\t\t\t\t\tif(ls.getLinks().size()==0){\n\t\t\t\t\t\tlinksets.remove(ls);//remove linkset if it is empty\n\t\t\t\t\t\tls = null;\n\t\t\t\t\t\tl = null;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(ls!=null){\n\t\t\tLink tlink = null;\n\t\t\tfor(Link lnk: ls.getLinks()){\n\t\t\t\tif(lnk.getNode1().getOwner()==l.getNode1().getOwner() && lnk.getNode1().getSignal()==l.getNode1().getSignal()\n\t\t\t\t\t\t|| lnk.getNode2().getOwner()==l.getNode1().getOwner() && lnk.getNode2().getSignal()==l.getNode1().getSignal()){\n\t\t\t\t\ttlink = lnk;\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t\tif(tlink!=null){\n\t\t\t\tls1.addLink(tlink);\n\t\t\t\tls.removeLink(tlink);\n\t\t\t\tcheckForNextLink(ls1, ls, tlink);\n\t\t\t}\n\t\t\tif(ls.getLinks().size()==0){\n\t\t\t\tlinksets.remove(ls);\n\t\t\t}\n\t\t\tlinksets.add(ls1);\n\t\t}\n\t\tfor(int i=0; i<links.size();i++){\n\t\t\tLink lnk = links.get(i);\n\t\t\tif (c == lnk.getNode1() || c == lnk.getNode2()){\n\t\t\t\tlayer.removeChild(links.get(i).getPPath());\n\t\t\t\tlinks.remove(i);\n\t\t\t\tremoveLine(c);\n\t\t\t}\n\t\t}\n\t}",
"public void delete() {\n\t\t// pre: length>0\n\t\t// post: delete one node from the end; reduce length\n\t\tif (this.length > 0) {\n\t\t\tCLL_LinkNode temp_node = this.headNode ;\n\t\t\tfor (int i = 1; i < this.length-1; i++) {\n\t\t\t\ttemp_node = temp_node.getNext();\n\t\t\t}\n\t\t\ttemp_node.getNext().setNext(null);\n\t\t\ttemp_node.setNext(this.headNode);\n\t\t\tthis.length--;\n\t\t}\n\t}",
"@Override\n\tpublic synchronized void removeLayoutComponent(Component comp) {\n\t\tint index = constrains.indexOf(comp);\n\t\tif (index == -1)\n\t\t\treturn;\n\t\tcomponents.remove(index);\n\t\tconstrains.remove(index);\n\t}",
"public void remove();",
"public void remove();",
"public void remove();"
] | [
"0.7277848",
"0.69893354",
"0.6917811",
"0.6890697",
"0.6402915",
"0.635245",
"0.63500476",
"0.60995",
"0.6028782",
"0.5991161",
"0.59662044",
"0.591622",
"0.5901813",
"0.58199394",
"0.5819748",
"0.57932824",
"0.57867074",
"0.5762112",
"0.5755868",
"0.5754429",
"0.57479966",
"0.5734048",
"0.57031584",
"0.56953686",
"0.5691289",
"0.5649621",
"0.5647387",
"0.563929",
"0.5632108",
"0.56222576",
"0.5621243",
"0.56107485",
"0.5610386",
"0.5601235",
"0.55997187",
"0.5563529",
"0.55476916",
"0.55430895",
"0.55342406",
"0.55149543",
"0.5513679",
"0.55029446",
"0.5492338",
"0.5491549",
"0.54764235",
"0.54734397",
"0.54715854",
"0.546466",
"0.5458691",
"0.54486096",
"0.54457843",
"0.5437991",
"0.5413061",
"0.5410538",
"0.5399323",
"0.53972614",
"0.53844935",
"0.53841627",
"0.53785133",
"0.53758365",
"0.5372531",
"0.5360044",
"0.5353522",
"0.5352828",
"0.5347208",
"0.53461117",
"0.533998",
"0.53383523",
"0.5327192",
"0.5323313",
"0.53084445",
"0.5301831",
"0.5298822",
"0.5298789",
"0.5281541",
"0.52799743",
"0.52779585",
"0.5272611",
"0.52588975",
"0.52508783",
"0.52371037",
"0.52367103",
"0.52326506",
"0.5216258",
"0.52081734",
"0.52071816",
"0.52062833",
"0.5201825",
"0.52004266",
"0.5199654",
"0.51942784",
"0.51917577",
"0.5189478",
"0.51832515",
"0.518294",
"0.51821125",
"0.5181175",
"0.51798683",
"0.51798683",
"0.51798683"
] | 0.79159164 | 0 |
this method creates asks the user for the info while also checks that the diameter is correct. | public Wheel() throws Exception {
String brandInput = JOptionPane.showInputDialog(null, "Enter wheel's brand");
this.brand = brandInput;
String diameterInput = JOptionPane.showInputDialog(null, "Enter wheel's diameter.");
this.diameter = Double.parseDouble(diameterInput);
double proveDiameter= this.diameter;
if(proveDiameter <0.4 || proveDiameter>4.0)
throw new Exception();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void inputInformation() throws IOException {\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n System.out.println(\"Please enter shape: \");\n shape = input.readLine();\n\n System.out.println(\"Please enter color\");\n color = input.readLine();\n\n System.out.println(\"Please enter name: \");\n name = input.readLine();\n\n System.out.println(\"Please enter weight: \");\n weight = Double.parseDouble(input.readLine());\n } catch (NumberFormatException e) {\n System.out.println(\"Error: \" + e.toString());\n }\n }",
"public void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t/*\r\n\t\t\t * If CREATE button is pressed.\r\n\t\t\t */\r\n\t\t\tif (e.getSource() == btnCreate) {\r\n\t\t\t\tString nrStr = txtNrOfBox.getText().trim();\r\n\r\n\t\t\t\t// if there is nothing typed in...\r\n\t\t\t\tif (nrStr.length() == 0) {\r\n\r\n\t\t\t\t\t// ... error message appears.\r\n\t\t\t\t\tErrorDialog errorDialog = new ErrorDialog(\"Error!\");\r\n\t\t\t\t\t// Text of the error message:\r\n\t\t\t\t\terrorDialog.showMessage(\"Please enter ammount\");\r\n\r\n\t\t\t\t\t// Waiting for error dialog to close\r\n\r\n\t\t\t\t\t// release MS Windows resources\r\n\t\t\t\t\terrorDialog.dispose();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Initiate object for amount of boxes\r\n\t\t\t\tint nr = -1;\r\n\r\n\t\t\t\t// Check if it is a number typed in\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// If it's a number, value of \"nr\" is changed successfully\r\n\t\t\t\t\tnr = Integer.parseInt(nrStr);\r\n\t\t\t\t} catch (NumberFormatException ex) {\r\n\t\t\t\t\t// If it's not a number, error message appears.\r\n\t\t\t\t\tErrorDialog errorDialog = new ErrorDialog(\"Error!\");\r\n\t\t\t\t\t// Text of the error message:\r\n\t\t\t\t\terrorDialog.setLblText(\"You must use numbers.\");\r\n\t\t\t\t\terrorDialog.setVisible(true);\r\n\r\n\t\t\t\t\t// Waiting for error dialog to close\r\n\r\n\t\t\t\t\t// release MS Windows resources\r\n\t\t\t\t\terrorDialog.dispose();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (nr < 0) {\r\n\t\t\t\t\t// If number entered is negative, error message appears.\r\n\t\t\t\t\tErrorDialog errorDialog = new ErrorDialog(\"Error!\");\r\n\t\t\t\t\t// Text of the error message:\r\n\t\t\t\t\terrorDialog.setLblText(\"The ammount must bigger than 0.\");\r\n\t\t\t\t\terrorDialog.setVisible(true);\r\n\r\n\t\t\t\t\t// Waiting for error dialog to close\r\n\r\n\t\t\t\t\t// release MS Windows resources\r\n\t\t\t\t\terrorDialog.dispose();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// New number of a drawer is the last number +1.\r\n\t\t\t\tint drawerNumber = service.getDrawers().get(\r\n\t\t\t\t\t\tservice.getDrawers().size() - 1).getId() + 1;\r\n\t\t\t\tif (drawer == null) {\r\n\t\t\t\t\tservice.addDrawer(new Drawer(drawerNumber, nr));\r\n\t\t\t\t}\r\n\t\t\t\t// new drawer is created.\r\n\r\n\t\t\t\tclosedByCreate = true;\r\n\t\t\t\tCreateDrawer_Dialog.this.setVisible(false);\r\n\t\t\t}\r\n\r\n\t\t\t/*\r\n\t\t\t * If CANCEL button is pressed.\r\n\t\t\t */\r\n\t\t\tif (e.getSource() == btnCancel) {\r\n\t\t\t\tclosedByCreate = false;\r\n\t\t\t\tCreateDrawer_Dialog.this.setVisible(false);\r\n\t\t\t}\r\n\t\t}",
"private void createDog() {\n String weight = this.weight.getText();\n try {\n int intWeight = Integer.parseInt(weight);\n backToGui();\n } catch (NumberFormatException ex) {\n createFrame(\"Weight Input Not Valid\");\n } catch (WeightException w) {\n createFrame(\"Weight must be between 0 and 200\");\n }\n revalidate();\n repaint();\n }",
"private void attemptCreation() {\n newFlat.setAddressLine1(\"\");\n newFlat.setPostcode(\"\");\n newFlat.setNotes(\"\");\n newFlat.setFlatNum(\"\");\n newFlat.setTenant(\"\");\n\n // Reset errors\n actvProperty.setError(null);\n etFlatNum.setError(null);\n etFlatNotes.setError(null);\n flatTenant.setError(null);\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for valid address, if the user entered one\n if (TextUtils.isEmpty(actvProperty.getText().toString())) {\n actvProperty.setError(\"This field is required\");\n cancel = true;\n focusView = actvProperty;\n } else if (!isAddressValid(actvProperty.getText().toString())) {\n actvProperty.setError(\"This address is invalid\");\n cancel = true;\n focusView = actvProperty;\n }\n\n // Check for a valid flat number, if the user entered one\n if (TextUtils.isEmpty(etFlatNum.getText().toString())) {\n etFlatNum.setError(\"This field is required\");\n cancel = true;\n if (focusView == null) {\n focusView = etFlatNum;\n }\n } else if (!isFlatNumValid(\"Flat \" + etFlatNum.getText().toString())) {\n etFlatNum.setError(\"This flat number is in use\");\n cancel = true;\n if (focusView == null) {\n focusView = etFlatNum;\n }\n\n Collections.sort(flatNums);\n\n new AlertDialog.Builder(this)\n .setIcon(android.R.drawable.ic_dialog_alert)\n .setTitle(\"Warning\")\n .setMessage(\"These flats already exist in \" + actvProperty.getText().toString()\n + \":\\n\\n\" + flatNums.toString() + \"\\n\\nPlease enter a unique number.\")\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n })\n .show();\n }\n\n // Check for valid tenant, if the user entered one\n if (TextUtils.isEmpty(flatTenant.getText().toString())) {\n // No need to add a tenant\n } else if (!isTenantValid(flatTenant.getText().toString())) {\n flatTenant.setError(\"This tenant does not exist in the system\");\n cancel = true;\n if (focusView == null) {\n focusView = flatTenant;\n }\n } else if (!isTenantFree(flatTenant.getText().toString())) {\n flatTenant.setError(\"This tenant number is in use\");\n cancel = true;\n if (focusView == null) {\n focusView = flatTenant;\n }\n }\n\n // Check for notes and add default notes if null\n if (TextUtils.isEmpty(etFlatNotes.getText().toString())) {\n etFlatNotes.setText(\"No notes yet. That's okay, you can add some later..\");\n }\n\n if (cancel) {\n // There was an error; don't attempt creation and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n inputMethodManager.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0);\n saveNewFlat();\n }\n }",
"public void create() {\n io.writeLine(\"Enter correct answer(T/F)\");\n String answer = io.readLine();\n while (!answer.equals(\"T\") && !answer.equals(\"F\")) {\n io.writeLine(\"Please put in T or F\");\n answer = io.readLine();\n }\n rightAnswers.add(answer);\n }",
"public void startInfo() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Enter your name:\");\n\t\tString name = this.getInputString();\n\t\tSystem.out.println(\"Enter your mobile number:\");\n\t\tint number = this.getInputInteger();\n\t\tSystem.out.println(\"Enter your email:\");\n\t\tString email = this.getInputString();\n\t}",
"private static void createShape(){\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Choose shape to create:\");\r\n\t\tSystem.out.println(\"1- Square\");\r\n\t\tSystem.out.println(\"2- Rectangle\");\r\n\t\tSystem.out.println(\"3- Triangle\");\r\n\t\tSystem.out.println();\r\n\t\tint answer = getNumberAnswer();\r\n\t\tswitch (answer) {\r\n\t\tcase 1:\r\n\t\t\tSystem.out.println(\"Provide side measuremnt:\");\r\n\t\t\tshapes[0] = new Square(getNumberAnswer());\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tSystem.out.println(\"Provide height and width measuremnts separately:\");\r\n\t\t\tshapes[0] = new Rectangle(getNumberAnswer(), getNumberAnswer());\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tSystem.out.println(\"Provide base, side 1, side 2 and height measuremnts separately:\");\r\n\t\t\tshapes[0] = new Triangle(getNumberAnswer(), getNumberAnswer(), getNumberAnswer(), getNumberAnswer());\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"That's not actually an option.\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}",
"private void createGame() {\n String[] options = { \"2\", \"3\", \"4\" };\n String result = (String) JOptionPane.showInputDialog(frame, \"Please enter the max player amount (must be between 2-4\", \"Create game\", JOptionPane.QUESTION_MESSAGE, null, options, options[2]);\n if (result == null) {\n System.out.println(\"[Client] Cancelled game creation\");\n } else {\n connectedServer.writeMessage(client.create(Integer.parseInt(result)));\n gameWindow();\n }\n }",
"private void doCreateNewPartner() {\n Scanner sc = new Scanner(System.in);\n System.out.println(\"***Hors Management System:: System Administration:: Create new partner\");\n Partner partner = new Partner();\n System.out.print(\"Enter partner username:\");\n partner.setName(sc.nextLine().trim());\n System.out.print(\"Enter partner password;\");\n partner.setPassword(sc.nextLine().trim());\n\n Set<ConstraintViolation<Partner>> constraintViolations = validator.validate(partner);\n\n if (constraintViolations.isEmpty()) {\n partner = partnerControllerRemote.createNewPartner(partner);\n System.out.println(\"New partner created successfully\");\n } else {\n showInputDataValidationErrorsForPartner(constraintViolations);\n }\n\n }",
"public static void main(String[] args)\n {\n double radius;\n double side1, side2, side3;\n double length, width;\n double perimeter;\n Scanner keyboard = new Scanner(System.in);\n\n int option;\n\n //Display the following menu\n\n System.out.println(\"Welcome to the Geometry Calculator!\\n\"\n + \"In this program we will use a menu to decide what kind of shape we will create.\\n\"\n + \"\\n1.Create and Calculate Perimeter of a Circle\"\n + \"\\n2. Create and Calculate Perimeter of a Rectangle\"\n + \"\\n3. Create and Calculate Perimeter of a Triangle\");\n\n\n //Use a switch statement to determine the option that the user selected.\n //Depending on the option that the user selected, ask the user for the appropriate information needed to create the\n //a specific geometric object. Then, call the getPerimeter() method to calculate the perimeter for the geometric object created.\n //Print the object created and its perimeter.\n\n\n option = keyboard.nextInt();\n //The code below is a default shape, so only 1 sout statement\n //is needed at the end of the switch statement.\n GeometricShape aShape = new GeometricShape(-1, -1);\n switch (option)\n {\n case 1:\n //ask user for the radius\n //re-create a OldStuff.GeometricShape with the radius\n //put logic here to call the perimeter method\n System.out.println(\"What is the radius of the circle?\");\n radius = keyboard.nextDouble();\n geometricObject = new GeometricShape(radius);\n geometricObject.getPerimeter();\n\n break;\n case 2:\n //ask user for the length and width\n //re-create a OldStuff.GeometricShape with the length and width\n //put logic here to call the perimeter method\n System.out.println(\"What is the length of the rectangle?\");\n length = keyboard.nextDouble();\n System.out.println(\"What is the width of the rectangle?\");\n width = keyboard.nextDouble();\n geometricObject = new GeometricShape(length, width);\n break;\n case 3:\n //ask user for side1, side2, and side3\n //re-create a OldStuff.GeometricShape with the the 3 sides\n //put logic here to call the perimeter method\n System.out.println(\"What is the length of side1?\");\n side1 = keyboard.nextDouble();\n System.out.println(\"What is the length of side2?\");\n side2 = keyboard.nextDouble();\n System.out.println(\"What is the length of side3?\");\n side3 = keyboard.nextDouble();\n geometricObject = new GeometricShape(side1, side2, side3);\n break;\n default:\n //Give message to user that option is not valid.\n System.out.println(\"That option is not valid\");\n }\n //Print the geometric shape and its perimeter\n\n System.out.println(geometricObject.getPerimeter());\n }",
"public void SaveInfo() {\n if (NameSurname_enter.getText() != null && validateString(NameSurname_enter.getText())) {\n patient.setName(NameSurname_enter.getText());\n } else {\n JOptionPane.showMessageDialog(null, \"Please, enter a valid name and surname. It should only contain characters and spaces. \", \"Warning\", JOptionPane.INFORMATION_MESSAGE);\n }\n if (Age_enter.getText() != null && validateInt(Age_enter.getText())) {\n patient.setAge(Integer.parseInt(Age_enter.getText()));\n } else {\n JOptionPane.showMessageDialog(null, \"Please, enter a valid age. It should be a number. \", \"Warning\", JOptionPane.INFORMATION_MESSAGE);\n }\n if (Sex_box.getSelectedItem().equals(\"Male\")) {\n patient.setSex(\"MALE\");\n } else {\n patient.setSex(\"FEMALE\");\n }\n\n }",
"public static void main(String[] args) {\n \n Scanner taskScanner = new Scanner(System.in);\n \n System.out.println(\"Please enter your username\");\n String firstName = taskScanner.nextLine(); \n \n \n System.out.println(\"Please enter your DOB\");\n String dateOfBirth = taskScanner.nextLine(); \n \n System.out.println(\"What is your address\");\n String aaddress = taskScanner.nextLine(); \n \n System.out.println(\"Please enter your Phone Number\");\n long phoneNumber = taskScanner.nextLong();\n \n System.out.println(\"How tall are you in feets?\");\n double yourHeight = taskScanner.nextDouble();\n \n \n \t\n System.out.println(\"Form information\");\n \n System.out.println(\"First Name : \"+ firstName);\n \n //System.out.println(\"Last Name : \"+ lastName);\n \n System.out.println(\"dateOfBirth: \"+ dateOfBirth);\n \n System.out.println(\"PhoneNumber: \"+ phoneNumber);\n \n// System.out.println(\"YourHeight: \"+ yourHeight);\n \n System.out.println(\"address: \"+ aaddress);\n \t \n taskScanner.close();\n \t \n String = make\n \t\t \n \n \t\t\n \n \n \n \n \n \n \t\t\n \n\n}",
"static void gatherInfo() {\n Scanner keyboard = new Scanner(System.in);\n System.out.print(\"Enter the type of measurement (inches, feet, etc.). >> \");\n measurementType = keyboard.nextLine();\n System.out.print(\"Enter the rectangle width. >> \");\n height = keyboard.nextDouble();\n System.out.print(\"Enter the rectangle height. >> \");\n width = keyboard.nextDouble();\n }",
"private void createDeckFromInput() {\n\n if(titleField.getText().isBlank()) {\n MainGUI.confirmDialog(\"Deckname cannot be blank\");\n return;\n }\n String deckName = titleField.getText();\n Deck deck = new Deck(deckName, 0,0,0,0,0);\n int deckID = DatabaseAPI.storeDeck(deck);\n DatabaseAPI.createUserDeckBridge(user.getId(), deckID);\n\n String[] tags = FormatData.formatHashtags(tagField.getText());\n for(String tag : tags) {\n if(!FormatData.isBlankString(tag)) {\n int tagID = DatabaseAPI.checkTag(tag);\n if(tagID != 0) {\n DatabaseAPI.createDeckTagBridge(deckID, tagID);\n } else {\n int newTagID = DatabaseAPI.storeTag(tag);\n DatabaseAPI.createDeckTagBridge(deckID, newTagID);\n }\n }\n }\n\n\n }",
"public void crearDisco( ){\r\n boolean parameter = true;\r\n String artista = panelDatos.darArtista( );\r\n String titulo = panelDatos.darTitulo( );\r\n String genero = panelDatos.darGenero( );\r\n String imagen = panelDatos.darImagen( );\r\n\r\n if( ( artista.equals( \"\" ) || titulo.equals( \"\" ) ) || ( genero.equals( \"\" ) || imagen.equals( \"\" ) ) ) {\r\n parameter = false;\r\n JOptionPane.showMessageDialog( this, \"Todos los campos deben ser llenados para crear el disco\" );\r\n }\r\n if( parameter){\r\n boolean ok = principal.crearDisco( titulo, artista, genero, imagen );\r\n if( ok )\r\n dispose( );\r\n }\r\n }",
"private static Coord getInput() throws IOException\n {\n \n //Information to be passed to the constructor\n Scanner typeOfCoord = new Scanner(System.in);\n System.out.print(\"Enter the type of Coordinates you \"\n + \"are inputting ((C)artesian / (P)olar): \");\n char type = typeOfCoord.next().charAt(0);\n type = Character.toUpperCase(type); \n \n if (type == 'C'){\n Scanner first = new Scanner(System.in);\n System.out.print(\"Enter the X Coordinate using a decimal point(.):\");\n double x = first.nextDouble();\n \n Scanner second = new Scanner(System.in);\n System.out.print(\"Enter the Y Coordinate using a decimal point(.):\");\n double y = second.nextDouble();\n \n \n return new Cartesian(x,y);\n }\n else if (type == 'P');{\n \n Scanner first = new Scanner(System.in);\n System.out.print(\"Enter the Rho Coordinate using a decimal point(.):\");\n double rho = first.nextDouble();\n \n Scanner second = new Scanner(System.in);\n System.out.print(\"Enter the Theta Coordinate using a decimal point(.):\");\n double theta = second.nextDouble();\n \n return new Polar(rho,theta);\n }\n \n \n \n \n \n}",
"@FXML\n\tpublic void buttonCreateSize(ActionEvent event) {\n\t\tString name = txtCreateSizeName.getText();\n\t\tif (!txtCreateSizeName.getText().equals(\"\")) {\n\t\t\tString size = restaurant.returnSize(name);\n\t\t\tif (size == null) {\n\n\t\t\t\ttry {\n\t\t\t\t\trestaurant.getSizes().add(name);\n\t\t\t\t\trestaurant.saveSizesData();\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"Tamaño creado satisfactoriamente\");\n\t\t\t\t\tdialog.setTitle(\"Tamaño creado\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"No se pudo guardar el nuevo tamaño\");\n\t\t\t\t\tdialog.setTitle(\"Error guardar datos\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"Este tamaño ya existe\");\n\t\t\t\tdialog.setTitle(\"Error, tamaño existente\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Los campos deben ser llenados\");\n\t\t\tdialog.setTitle(\"Error, Campo sin datos\");\n\t\t\tdialog.show();\n\t\t}\n\t\ttxtCreateSizeName.setText(\"\");\n\t}",
"public void createPromo() {\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Whats the new promo's name?\");\r\n\t\tthis.name = sc.nextLine();\r\n\t\tSystem.out.println(\"Whats the new promo's description?\");\r\n\t\tthis.description = sc.nextLine();\r\n\t\tSystem.out.println(\"Whats the new promo's price?\");\r\n\t\tthis.price = sc.nextDouble();\r\n\t\tint createChoice = 0;\r\n\t\twhile (createChoice < 2){\r\n\t\t\tSystem.out.println(\"What would you like to do?\");\r\n\t\t\tSystem.out.println(\"1. add items 2. quit\");\r\n\t\t\tcreateChoice = sc.nextInt();\r\n\t\t\tsc.nextLine();\r\n\t\t\tif (createChoice == 1){\r\n\t\t\t\tthis.addPromoItem();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void createProgram() {\n String name = createNameEt.getText().toString().trim();\n String description = createDescriptionEt.getText().toString().trim();\n int radioId = createTypeRGrp.getCheckedRadioButtonId();\n createTypeRBtn = findViewById(radioId);\n String type = createTypeRBtn.getText().toString();\n// String type = createTypeSp.getSelectedItem().toString().trim();\n String dateTime = createDateTimeEt.getText().toString().trim();\n String link = createLinkEt.getText().toString().trim();\n String filename = createFilenameTv.getText().toString().trim();\n\n if(name.isEmpty()) {\n createNameEt.setError(\"Program name is required!\");\n createNameEt.requestFocus();\n return;\n }\n\n else if(description.isEmpty()) {\n createDescriptionEt.setError(\"Description is required!\");\n createDescriptionEt.requestFocus();\n return;\n }\n\n else if(dateTime.isEmpty()) {\n createDateTimeEt.setError(\"Date and time of program is required!\");\n createDateTimeEt.requestFocus();\n\n Toast t = Toast.makeText(\n getApplicationContext(),\n \"Date and time of program is required!\",\n Toast.LENGTH_SHORT\n );\n t.show();\n\n return;\n }\n\n else if(!validProgramDate) {\n createDateTimeEt.setError(\"Invalid date and time of program!\");\n createDateTimeEt.requestFocus();\n\n Toast t = Toast.makeText(\n getApplicationContext(),\n \"Invalid date and time of program!\",\n Toast.LENGTH_SHORT\n );\n t.show();\n\n return;\n }\n\n else if(!Patterns.WEB_URL.matcher(link).matches()) {\n createLinkEt.setError(\"Please provide a valid link!\");\n createLinkEt.requestFocus();\n return;\n }\n\n else if(photoURL == null) {\n Toast t = Toast.makeText(\n getApplicationContext(),\n \"Uploading a photo is required!\",\n Toast.LENGTH_SHORT\n );\n t.show();\n\n return;\n }\n\n else {\n storeProgram();\n }\n\n }",
"public void Prompt(){\n System.out.println(\"Enter information about the topping: \\n\\n\");\n super.Prompt();\n System.out.println(\"Enter any topping: \");\n this.Topping = new String(this.read.next());\n this.read.nextLine();\n System.out.println(\"Density:\\n 1. Heavy\\n 2. Standard\\n 3. Light\\n(Enter corresponding number): \");\n this.Density = this.read.nextInt();\n System.out.println(\"Is it vegetarian? (true or false): \");\n this.Vegetarian = this.read.nextBoolean();\n System.out.println(\"\\n\");\n }",
"private static Person createPerson(String type, Scanner input) {\n System.out.println(\"\\nPlease enter the details of the \" + type + \": \");\n System.out.println(\"\\nName: \");\n String name = input.nextLine();\n\n System.out.println(\"\\nContact number: \");\n String contactNo = input.nextLine();\n\n System.out.println(\"\\nEmail address : \");\n String email = input.nextLine();\n\n System.out.println(\"\\nAddress: \");\n String address = input.nextLine();\n\n return new Person(type, name, contactNo, email, address);\n\n }",
"public void createAccount() {\n\t\t// Assigns variables based on user input\n\t\tString username = usernameField.getText();\n\t\tString firstName = firstNameField.getText();\n\t\tString lastName = lastNameField.getText();\n\t\tString address = addressField.getText();\n\t\tString postCode = postcodeField.getText();\n\t\tString phoneNumber = phoneNumberField.getText();\n\t\tlong phoneNumberLong;\n\t\tif (username.isEmpty() || firstName.isEmpty() || lastName.isEmpty() || address.isEmpty() || postCode.isEmpty()\n\t\t\t\t|| phoneNumber.isEmpty()) { // Checks if number is correct format\n\n\t\t\tAlert alert = new Alert(AlertType.ERROR); // Error message\n\t\t\talert.setTitle(\"Error\");\n\n\t\t\talert.setHeaderText(\"Could not create an user\");\n\t\t\talert.setContentText(\"Make sure you fill all fields and press button again\");\n\t\t\talert.showAndWait();\n\n\t\t\treturn;\n\t\t}\n\n\t\telse {\n\t\t\ttry {\n\t\t\t\tphoneNumberLong = Long.parseLong(phoneNumber);\n\t\t\t} catch (Exception e) {\n\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\t\talert.setTitle(\"Error\");\n\n\t\t\t\talert.setHeaderText(\"Wrong format of phone number\");\n\t\t\t\talert.setContentText(\"Please enter correct phone number\");\n\t\t\t\talert.showAndWait();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tif(FileReader.exists(username)) {\n\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\t\talert.setTitle(\"Error\");\n\n\t\t\t\talert.setHeaderText(\"User with the username \"+ username +\" already exists. \");\n\t\t\t\talert.setContentText(\"Please choose another username\");\n\t\t\t\talert.showAndWait();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tString userdata = \"\";\n\t\t\tuserdata += \"\\n Username: \" + username;\n\t\t\tuserdata += \"\\n First name: \" + firstName;\n\t\t\tuserdata += \"\\n Last name: \" + lastName;\n\t\t\tuserdata += \"\\n Address: \" + address;\n\t\t\tuserdata += \"\\n Post code: \" + postCode;\n\t\t\tuserdata += \"\\n Phone number: \" + phoneNumberLong;\n\t\t\t\n\n\t\t\tif(custom) {\n\t\t\t\tavatarIndex = 101;\n\t\t\t\t// Gives users the custom avatar\n\t\t\t\tFile file1 = new File(\"artworkImages/\" + username);\n\t\t\t\tfile1.mkdir();\n\t\t\t\tPath path = Paths.get(\"customAvatars/\" + username + \".png\");\n\t\t\t\tString path1 = \"tmpImg.png\";\n\t\t\t\tFile file = new File(path1);\n\n\t\t\t\ttry {\n\t\t\t\t\tFiles.copy(file.toPath(), path, StandardCopyOption.REPLACE_EXISTING);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tUser user = new User(username, firstName, lastName, address, postCode, phoneNumberLong, avatarIndex);\n\t\t\tFileReader.addUser(user); // Creates user\n\n\t\t\ttry {\n\t\t\t\tWriter.writeUserFile(user); // Adds user to memory\n\t\t\t} catch (IOException e) {\n\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\n\t\t\tAlert alert = new Alert(AlertType.INFORMATION); // Success message\n\t\t\talert.setTitle(\"Success\");\n\n\t\t\talert.setHeaderText(\"The user has been created\");\n\t\t\talert.setContentText(\"Close this window to return to login screen\");\n\t\t\talert.showAndWait();\n\n\t\t\tcreateAccountButton.getScene().getWindow().hide();\n\t\t}\n\n\t}",
"private void newDialog() {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setTitle(getString(R.string.addmark));\n\t\tfinal EditText input = new EditText(this);\n\t\tinput.setHint(getString(R.string.pleasemark));\n\t\tbuilder.setView(input);\n\t\tbuilder.setPositiveButton(getString(R.string.yes),\n\t\t\t\tnew OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tif (input.getText().toString().trim().length() > 0) {\n\t\t\t\t\t\t\taddTag(input.getText().toString());\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\t\t\t\t\tgetString(R.string.successaddmark),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\t\t\t\t\tgetString(R.string.pleasemark),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\tnewDialog();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.setNegativeButton(getString(R.string.no),\n\t\t\t\tnew OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.show();\n\t}",
"private void createList() {\n /**\n * New design, split input in array list so we can directly call the shape factory and create the shape in there\n * The current design from assignment 1 will be too complicated to extend because it is optimised\n * for a polygon, I attempted to keep the same design, but had a check for the instance type, which worked\n * but if we added more shapes that required different reading in implementation then there will be a lot of if\n * statements which would be difficult to maintain.\n */\n\n /**\n * was using input.hasNextLine() but that only works if the data is following a point by line structure. What if a point\n * starts on the same line? This will break\n */\n\n String data = \"\";\n\n //Check if there is an input\n while(input.hasNext()) {\n System.out.print(\"Reading character by character: \");\n\n\n data = data.concat(input.next() + \" \");\n\n System.out.print(data + \"\\n\");\n\n //This if checks if there is a polygon, circle or semi-circle to be added\n //The last check ensures that the final shape to be added is not ignored\n if(input.hasNext(\"P\") || input.hasNext(\"C\") || input.hasNext(\"S\") || !input.hasNext()) {\n System.out.println(\"Next is a new shape\");\n unorderedList.append(shapeFactory(data));\n System.out.println(\"\\n\");\n data = \"\";\n }\n }\n\n\n\n\n\n// while(input.hasNext()) {\n// String value = input.next(); //set the value to the input.next so it can be reused later\n//\n// //Ignore space characters\n// if(value.equals(\" \")) {\n// continue;\n// }\n//\n// //Switch through the steps in the create process\n// //Each step will go onto the next process. e.g POLYGON -> SIZE\n// switch (inputType) {\n// case SHAPE:\n// System.out.println(\"CREATING A SHAPE: \" + value);\n// //Creates a new shape\n// shape = shapeFactory(value);\n//\n// //To keep the same flow, this checks if the type requires the size or not.\n// if(requireSize(shape)) {\n// System.out.println(\"\\t Shape is a polygon\");\n// inputType = InputType.SIZE;\n// } else {\n// System.out.println(\"\\t Shape is not a polygon\");\n// inputType = InputType.XCOORDINATE;\n// }\n//\n// break;\n// case SIZE:\n// //Sets the size of the array in polygon\n// shape.setSize(Integer.parseInt(value));\n// inputType = InputType.XCOORDINATE;\n// break;\n// case XCOORDINATE:\n// //Sets the x-coordinate of a point\n// System.out.println(\"\\t Adding x value: \" + value);\n// point.setXCoordinate(Float.parseFloat(value));\n// inputType = InputType.YCOORDINATE;\n// break;\n// case YCOORDINATE:\n// //Sets the y-coordinate of a point\n// System.out.println(\"\\t Adding y value: \" + value);\n// point.setYCoordinate(Float.parseFloat(value));\n//\n// System.out.println(\"\\t Adding point to the shape: \" + point.toString() + \", Pos: \"+ position);\n// //shapes.Point now has two values, so add to shape\n// shape.addPoint(point, position);\n//\n// //Reset point so we don't get any reference issues\n// point = new Point();\n// position++;\n//\n// if(!requireRadius(shape)) {\n// //Check if all points have been added or not\n// if (position == shape.getSize() - 1) {\n// //All points have been added, hence:\n//\n// shape.addFirstPoint(); //add the first point to the array\n// unorderedList.append(shape); //append polygon to the list\n//\n// //Set the input type back to polygon to add a new polygon\n// inputType = InputType.SHAPE;\n// position = 0; //reset position to add items to the start of the array\n// } else {\n// //More points to be added\n// inputType = InputType.XCOORDINATE;\n//\n// }\n// } else {\n// inputType = InputType.RADIUS;\n// }\n// break;\n// case RADIUS:\n// System.out.println(\"Adding radius: \" + value);\n// ((Circle)shape).addRadius(Float.parseFloat(value));\n//\n// unorderedList.append(shape);\n// inputType = InputType.SHAPE;\n// position = 0;\n// break;\n// }\n// }\n input.close();\n }",
"private void createForm() throws IOException {\n\t\t\t\n\t\t\t \n\t\t\tweatherData tmp = new weatherData();\n\t\t\ttry {\n\t\t\t\tapp.grab(app.getVisibleLocation().getCityID(), app.getUnits());\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IOException(\"error\");\n\t\t\t}\n\t\t\t\n\t\t\ttmp = app.getCurrent();\n\t\t\t\n\t\t\tJLabel lblcity = new JLabel(tmp.getName() + \", \" + tmp.getCount() + \", \" + tmp.getLon() + \", \" + tmp.getLat()); //displays location info\n\t\t\tlblcity.setForeground(Color.WHITE);\n\t\t\tlblcity.setFont(new Font(\"Lucida Console\", Font.PLAIN, 40));\n\t\t\tJLabel lbldescrip = new JLabel(\"Weather Condition: \");\n\t\t\tlbldescrip.setForeground(Color.WHITE);\n\t\t\tlbldescrip.setFont(new Font(\"Courier New\", Font.BOLD, 18));\n\t\t\tJLabel lbldescrip2 = new JLabel(\"\" +tmp.getCondit());\n\t\t\t\n\t\t\tlbldescrip2.setForeground(Color.WHITE);\n\t\t\tlbldescrip2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lbltemp = new JLabel(\"Temp: \"); //label for temp\n\t\t\tlbltemp.setForeground(Color.WHITE);\n\t\t\tlbltemp.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lbltemp2 = new JLabel(\"\" + tmp.getTemp()); //actual temp\n\t\t\tlbltemp2.setForeground(Color.WHITE);\n\t\t\tlbltemp2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblmin = new JLabel(\"Min Temp: \"); //label for min\n\t\t\tlblmin.setForeground(Color.WHITE);\n\t\t\tlblmin.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblmin2 = new JLabel(\"\" + tmp.getMin()); //actual min\n\t\t\tlblmin2.setForeground(Color.WHITE);\n\t\t\tlblmin2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblmax = new JLabel(\"Max Temp: \" ); //label for max\n\t\t\tlblmax.setForeground(Color.WHITE);\n\t\t\tlblmax.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblmax2 = new JLabel(\"\" + tmp.getMax()); //actual max\n\t\t\tlblmax2.setForeground(Color.WHITE);\n\t\t\tlblmax2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblspeed = new JLabel(\"Wind Speed: \"); //label for speed\n\t\t\tlblspeed.setForeground(Color.WHITE);\n\t\t\tlblspeed.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblspeed2 = new JLabel(\"\" + tmp.getSpeed()); //actual speed\n\t\t\tlblspeed2.setForeground(Color.WHITE);\n\t\t\tlblspeed2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lbldir = new JLabel(\"Wind Direction: \"); //label for dir \n\t\t\tlbldir.setForeground(Color.WHITE);\n\t\t\tlbldir.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lbldir2 = new JLabel(\"\" + tmp.getDir()); //actual dir\n\t\t\tlbldir2.setForeground(Color.WHITE);\n\t\t\tlbldir2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblpress = new JLabel(\"Air Pressure: \"); //label for pressure\n\t\t\tlblpress.setForeground(Color.WHITE);\n\t\t\tlblpress.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblpress2 = new JLabel(\"\" + tmp.getPress()); //actual pressure\n\t\t\tlblpress2.setForeground(Color.WHITE);\n\t\t\tlblpress2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblhumid = new JLabel(\"Humidity: \"); //label for humid\n\t\t\tlblhumid.setForeground(Color.WHITE);\n\t\t\tlblhumid.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblhumid2 = new JLabel(\"\" + tmp.getHumid()); //actual humid\n\t\t\tlblhumid2.setForeground(Color.WHITE);\n\t\t\tlblhumid2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblrise = new JLabel(\"Sunrise Time: \"); //label for sunrise\n\t\t\tlblrise.setForeground(Color.WHITE);\n\t\t\tlblrise.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblrise2 = new JLabel(\"\" + tmp.getSunrise()); //actual sunrise\n\t\t\tlblrise2.setForeground(Color.WHITE);\n\t\t\tlblrise2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblset = new JLabel(\"Sunset Time: \"); //label for susnet\n\t\t\tlblset.setForeground(Color.WHITE);\n\t\t\tlblset.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblset2 = new JLabel(\"\" + tmp.getSunset()); //actual sunset\n\t\t\tlblset2.setForeground(Color.WHITE);\n\t\t\tlblset2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\t\n\t\t\t//used to set picture\n\t\t\tBufferedImage pic = tmp.getIcon();\n\t\t\t//pic = Scalr.resize(pic, 80);\n\t\t\tJLabel lblPic = new JLabel(new ImageIcon(pic)); //holds picture\n\t\t\t\n\t\t\t//Set the colours for the background gradient\n\t\t\tsetBgColours(tmp);\n\t\t\t\n\t\t\t//adds control with layout organization\n\t\t\tGroupLayout layout = new GroupLayout(currentPanel);\n\t\t\tcurrentPanel.setLayout(layout);\n\t\t\tlayout.setAutoCreateGaps(true);\n\t\t\tlayout.setAutoCreateContainerGaps(true);\n\t\t\tlayout.setHorizontalGroup( layout.createSequentialGroup() //sets horizontal groups\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(GroupLayout.Alignment.CENTER) //holds all the identifier labels\n\t\t\t\t\t\t\t.addComponent(lblcity)\n\t\t\t\t\t\t\t.addComponent(lblPic)\n\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t.addComponent(lbldescrip)\n\t\t\t\t\t\t\t\t\t.addComponent(lbltemp)\n\t\t\t\t\t\t\t\t\t.addComponent(lblmin)\n\t\t\t\t\t\t\t\t\t.addComponent(lblmax)\n\t\t\t\t\t\t\t\t\t.addComponent(lblspeed)\n\t\t\t\t\t\t\t\t\t.addComponent(lbldir)\n\t\t\t\t\t\t\t\t\t.addComponent(lblpress)\n\t\t\t\t\t\t\t\t\t.addComponent(lblhumid)\n\t\t\t\t\t\t\t\t\t.addComponent(lblrise)\n\t\t\t\t\t\t\t\t\t.addComponent(lblset)\n\t\t\t\t\t\t\t)\n\n\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) //sets weather Data labels\n\t\t\t\t\t\t\t\t\t.addComponent(lbldescrip2)\n\t\t\t\t\t\t\t\t\t.addComponent(lbltemp2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblmin2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblmax2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblspeed2)\n\t\t\t\t\t\t\t\t\t.addComponent(lbldir2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblpress2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblhumid2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblrise2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblset2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t\n\t\t\tlayout.setVerticalGroup( layout.createSequentialGroup() //sets verticsal groups\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE) //city is on its own\n\t\t\t\t\t\t\t.addComponent(lblcity)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE) //pic is on its own\n\t\t\t\t\t\t\t.addComponent(lblPic)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE) //the rest have the identifier, followed by the actual data\n\t\t\t\t\t\t\t.addComponent(lbldescrip)\n\t\t\t\t\t\t\t.addComponent(lbldescrip2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lbltemp)\n\t\t\t\t\t\t\t.addComponent(lbltemp2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblmin)\n\t\t\t\t\t\t\t.addComponent(lblmin2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblmax)\n\t\t\t\t\t\t\t.addComponent(lblmax2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblspeed)\n\t\t\t\t\t\t\t.addComponent(lblspeed2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lbldir)\n\t\t\t\t\t\t\t.addComponent(lbldir2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblpress)\n\t\t\t\t\t\t\t.addComponent(lblpress2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblhumid)\n\t\t\t\t\t\t\t.addComponent(lblhumid2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblrise)\n\t\t\t\t\t\t\t.addComponent(lblrise2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblset)\n\t\t\t\t\t\t\t.addComponent(lblset2)\n\t\t\t\t\t\t\t)\t\t\t\t\t\n\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t//currentPanel.setLayout(layout); //sets the layout\t\t\n\t\t\tcurrentPanel.validate();\n\t\t\tcurrentPanel.repaint();\n\n\t\t\t try {\n\t\t\t\t\tapp.storePref();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tJFrame error = new JFrame();\n\t\t\t\t\tJOptionPane.showMessageDialog(error, \"An error occured\");\n\t\t\t\t}\n\t\t\t}",
"public static void criaEleicao() {\n\t\tScanner sc = new Scanner(System.in);\t\t\n\t\tString tipo, id, titulo, descricao, yesno;\n\t\tString dataI, dataF;\n\t\tString dept = \"\";\n\t\tint check = 0;\n\t\t\n\t\tdo {\n\t\t\tSystem.out.println(\"\\nInsira o tipo de eleicao:\\n(1)Nucleo de Estudantes\\n(2)Conselho Geral\");\n\t\t\ttipo = sc.nextLine();\n\t\t\tif(tipo.equals(\"1\") || tipo.equals(\"2\")) {\n\t\t\t\tcheck = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nA opcao so pode conter digitos de 1 a 2\");\n\t\t\t}\n\t\t}while(check==0);\n\t\t\n\t\tcheck = 0;\n\t\t\n\t\tif (tipo.equals(\"1\")) {\n\t\t\tdo {\n\t\t\t\tSystem.out.println(\"\\nInsira o nome do departamento:\");\n\t\t\t\tdept = sc.nextLine();\n\t\t\t\tif(verificarLetras(dept) && dept.length()>0) {\n\t\t\t\t\tcheck = 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"\\nO departamento apenas pode conter letras\");\n\t\t\t\t}\n\t\t\t}while(check==0);\n\t\t\t\t\n\t\t\tcheck = 0;\n\t\t}\n\n\t\tSystem.out.println(\"\\nInsira o id:\");\n\t\tid = sc.nextLine();\n\n\t\tdo {\n\t\t\tSystem.out.println(\"Insira o titulo da eleicao:\\n\");\n\t\t\ttitulo = sc.nextLine();\n\t\t\tif(verificarLetras(titulo) && titulo.length()>0) {\n\t\t\t\tcheck = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nO titulo apenas pode conter letras\");\n\t\t\t}\n\t\t}while(check==0);\n\t\t\t\n\t\tcheck = 0;\n\t\t\n\t\tdo {\n\t\t\tSystem.out.println(\"\\nInsira a descricao da eleicao:\");\n\t\t\tdescricao = sc.nextLine();\n\t\t\tif(verificarLetras(descricao) && descricao.length()>0) {\n\t\t\t\tcheck = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nA descricao apenas pode conter letras\");\n\t\t\t}\n\t\t}while(check==0);\n\t\t\t\n\t\tcheck = 0;\n\t\t\n\t\tSystem.out.println(\"Insira a data de inicio da eleicao (DD/MM/AAAA HH:MM):\\n\");\n\t\tdataI = sc.nextLine();\n\t\t\n\t\tSystem.out.println(\"Insira a data do fim da eleicao (DD/MM/AAAA HH:MM):\\n\");\n\t\tdataF = sc.nextLine();\n\t\t\n\t\tString msgServer = \"\";\n\t\t\n\t\tcheck = 0;\n\t\tint tries = 0;\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tmsgServer = rmiserver.criaEleicao(Integer.parseInt(tipo), id, titulo, descricao, dataI, dataF, dept);\n\t\t\t\tSystem.out.println(msgServer);\n\t\t\t\tSystem.out.println(\"\\n\");\n\t\t\t\tcheck = 1;\n\t\t\t} catch (RemoteException e1) {\n\t\t\t\t// Tratamento da Excepcao da chamada RMI alteraFac\n\t\t\t\tif(tries == 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(6000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries > 0 && tries < 24) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries >= 24) {\n\t\t\t\t\tSystem.out.println(\"Impossivel realizar a operacao devido a falha tecnica (Servidores RMI desligados).\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}while(check==0);\n\t\tcheck = 0;\n\n\t\tif (msgServer.equals(\"\\nEleicao criada com sucesso\")){\n\t\t\tdo {\n\t\t\t\tSystem.out.println(\"\\nDeseja criar uma lista de candidatos para associar a eleicao?\\n(1) Sim (2) Nao\");\n\t\t\t\tyesno = sc.nextLine();\n\t\t\t\tif(verificarNumeros(yesno)) {\n\t\t\t\t\tif (yesno.equals(\"1\")) {\n\t\t\t\t\t\tcriaListaCandidatos();\n\t\t\t\t\t}\n\t\t\t\t\tcheck = 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"\\nA opcao so pode conter digitos\");\n\t\t\t\t}\n\t\t\t}while(check==0);\n\t\t\t\n\t\t\tcheck = 0;\n\t\t}\n\t}",
"public static void main(String[] args) {\n Calculator newCalc = new Calculator();\n Calculator triangleCalc = new Calculator();\n Calculator newCalc1 = new Calculator();\n\n Scanner newScan = new Scanner(System.in);\n Scanner scanNew = new Scanner(System.in);\n Scanner scanner = new Scanner(System.in);\n\n int tryAgain;\n int whichShape;\n do {\n do {\n System.out.println(\"Press [1] to build a Triangle \\n Press [2] to Build a Square or Rectangle \\n Press [3] for Circle \\n Press [4] for Trapezoid\");\n whichShape = newScan.nextInt();\n if (whichShape < 1 || whichShape > 4) {\n System.out.println(\" Try again Please enter 1-3\");\n } else\n switch (whichShape) {\n case 1:\n System.out.println(\"Please Enter the Base dimensions of your Triangle\");\n double baseNum = scanNew.nextDouble();\n System.out.println(\"Please Enter the Height of your Triangle \");\n double triHeight = scanNew.nextDouble();\n System.out.println(\"The Area of your Triangle is \" + newCalc.calculateTriangle(triHeight, baseNum) + \"\\n\\n\");\n break;\n\n case 2:\n System.out.println(\"Please enter the Shape you want to build \\n Square or Rectangle\");\n String shapeName = scanner.nextLine();\n System.out.println(\"Please enter the Length of your shape\");\n Double shapeLength = newScan.nextDouble();\n System.out.println((\"Please Enter Your shapes Height\"));\n System.out.println(\"\\n The area of your shape is \" + triangleCalc.calculateArea(shapeName, shapeLength, scanNew.nextDouble()) + \"\\n\\n\");\n break;\n\n case 3:\n System.out.println(\"Please Enter the Radius of your Circle\");\n double cirRadius = scanNew.nextDouble();\n newCalc1.calculateCircle(cirRadius);\n break;\n case 4:\n System.out.println(\"Please Enter the Base1 dimensions of your Trapezoid\");\n double trapBase1 = scanNew.nextDouble();\n System.out.println(\"Please Enter the Base2 of your Triangle \");\n double trapBase2 = scanNew.nextDouble();\n System.out.println(\"Please enter the Height of your Trapezoid\");\n double trapHeight = scanNew.nextDouble();\n System.out.println(\"The Area of your Trapezoid is \" + newCalc1.trapazoid(trapBase1, trapBase2, trapHeight) + \"\\n\\n\\n\");\n break;\n\n }\n\n\n } while (whichShape < 1 || whichShape > 4);\n\n System.out.println(\"Do you want to build another Shape \\n [1] For yes \\n [2] For no\");\n tryAgain = newScan.nextInt();\n\n } while (tryAgain == 1);\n }",
"private static void generalDetails()\r\n\t{\r\n\t\tSystem.out.println(\"Enter the name of waiter:\");\r\n\t\tname = scan.nextLine();\r\n\t\tSystem.out.println(\"Enter table number:\");\r\n\t\tboolean check = false;\r\n\t\t//while check is false, keep trying to get a valid table number\r\n\t\twhile(check==false)\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\ttableNo = Integer.parseInt(scan.nextLine());\r\n\t\t\t\tcheck = true;\r\n\t\t\t}\r\n\t\t\tcatch(NumberFormatException e)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Please enter a valid table number!\");\r\n\t\t\t}\t\r\n\t\t}\r\n\t}",
"private HBox createDiagnosisInfo( String cosmoId )\r\n {\r\n HBox mainBox = new HBox();\r\n VBox leftVBox = new VBox();\r\n VBox rightVBox = new VBox();\r\n\r\n HBox familyPhysicianHBox = new HBox();\r\n\r\n HBox participantDiagnosisHBox = new HBox();\r\n HBox physicianPhoneNumberHBox = new HBox();\r\n HBox dateCompletedHBox = new HBox();\r\n HBox checkBoxesHBox = new HBox();\r\n\r\n Label familyPhysicianLbl = new Label(\"Family Physician: \");\r\n Label participantDiagnosisLbl = new Label(\"Participant Diagnosis: \");\r\n Label physicianPhoneLbl = new Label(\"Physician Phone Number: \");\r\n Label dateCompletedLbl = new Label(\"Date Completed: \");\r\n\r\n familyPhysicianTxt = new Label();\r\n participantDiagnosisTxt = new TextField();\r\n physicianPhoneTxt = new Label();\r\n dateCompletedTxt = new Label();\r\n\r\n tylenolGiven = new CheckBox();\r\n tylenolGiven.setText(\"Tylenol Given\");\r\n careGiverPermission = new CheckBox();\r\n careGiverPermission.setText(\"Caregivers Permission given\");\r\n\r\n editableItems.add(careGiverPermission);\r\n editableItems.add(tylenolGiven);\r\n editableItems.add(dateCompletedTxt);\r\n editableItems.add(physicianPhoneTxt);\r\n editableItems.add(participantDiagnosisTxt);\r\n editableItems.add(familyPhysicianTxt);\r\n btnSave.setOnAction(event -> {\r\n lblMessage.setText(\"\");\r\n String[] info = new String[4];\r\n info[0] = participantDiagnosisTxt.getText();\r\n info[1] = tylenolGiven.isSelected() + \"\";\r\n info[2] = careGiverPermission.isSelected() + \"\";\r\n info[3] = otherInfoTxt.getText();\r\n\r\n boolean success = helper.saveHealthStatusInfo(info, cosmoID);\r\n\r\n if ( success )\r\n {\r\n\r\n assignDiagnosisInfo(cosmoId);\r\n lblMessage.setTextFill(Color.BLUE);\r\n lblMessage.setText(\"Save successful\");\r\n\r\n }\r\n else\r\n {\r\n lblMessage.setTextFill(Color.RED);\r\n lblMessage.setText(\"The save was unsuccesful.\");\r\n }\r\n\r\n });\r\n // Following is just adding stuff to their boxes and setting some\r\n // spacing and alignment\r\n familyPhysicianHBox.getChildren().addAll(familyPhysicianLbl,\r\n familyPhysicianTxt);\r\n familyPhysicianHBox.setSpacing(125);\r\n familyPhysicianHBox.setAlignment(Pos.CENTER_RIGHT);\r\n\r\n participantDiagnosisHBox.getChildren().addAll(participantDiagnosisLbl,\r\n participantDiagnosisTxt);\r\n participantDiagnosisHBox.setSpacing(SPACING);\r\n participantDiagnosisHBox.setAlignment(Pos.CENTER_RIGHT);\r\n physicianPhoneNumberHBox.getChildren().addAll(physicianPhoneLbl,\r\n physicianPhoneTxt);\r\n\r\n physicianPhoneNumberHBox.setSpacing(SPACING);\r\n physicianPhoneNumberHBox.setAlignment(Pos.CENTER_RIGHT);\r\n dateCompletedHBox.getChildren().addAll(dateCompletedLbl,\r\n dateCompletedTxt);\r\n dateCompletedHBox.setSpacing(SPACING);\r\n dateCompletedHBox.setAlignment(Pos.CENTER_RIGHT);\r\n checkBoxesHBox.getChildren().addAll(tylenolGiven, careGiverPermission);\r\n checkBoxesHBox.setSpacing(SPACING);\r\n\r\n leftVBox.getChildren().addAll(familyPhysicianHBox,\r\n participantDiagnosisHBox, checkBoxesHBox);\r\n leftVBox.setSpacing(SPACING);\r\n rightVBox.getChildren().addAll(physicianPhoneNumberHBox,\r\n dateCompletedHBox);\r\n rightVBox.setSpacing(SPACING);\r\n mainBox.getChildren().addAll(leftVBox, rightVBox);\r\n mainBox.setSpacing(SPACING * 2);\r\n\r\n return mainBox;\r\n }",
"public void food(){\n\t\tSystem.out.println(\"Name:\");\n\t\tString nameRegistered = reader.nextLine();\n\t\tSystem.out.println(\"Nit:\");\n\t\tString nit = reader.nextLine();\n\t\tSystem.out.println(\"Address:\");\n\t\tString address = reader.nextLine();\n\t\tSystem.out.println(\"Contact number:\");\n\t\tString contactNumber = reader.nextLine();\n\t\tSystem.out.println(\"Number of employees:\");\n\t\tint employees = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Value of the actives:\");\n\t\tdouble value = reader.nextDouble();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Legal representative:\");\n\t\tString legalRepresentative = reader.nextLine();\n\t\tSystem.out.println(\"Constitution date:\");\n\t\tSystem.out.println(\"Day:\");\n\t\tint day = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Month:\");\n\t\tint month = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Year:\");\n\t\tint year = reader.nextInt();\n\t\treader.nextLine();\n\t\tDate constitution = new Date(day, month, year);\n\t\tSystem.out.println(\"floors of the building\");\n\t\tint rows = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Type:\");\n\t\tString type = reader.nextLine();\n\t\tSystem.out.println(\"Group of the food:\");\n\t\tint group = reader.nextInt();\n\t\treader.nextLine();\n\t\tFood toAdd = new Food(nameRegistered, nit, address, contactNumber, employees, value, legalRepresentative, constitution, rows, type, group);\n\t\ttheHolding.addSubordinate(toAdd);\n\t\tSystem.out.println(\"The company were added successfuly\");\n\t}",
"public static void main(String[] args) {\n\t\tScanner input = new Scanner (System.in);\n\t\tOurShape[] shapes = new OurShape[100]; // array of OurShape objects\n\t\tint numberOfShapes = 0;\n\t\tint option = 6; // give the variable a invalid menu number\n\t\t// display welcome message\n\t\tSystem.out.println(\"Welcome to the Shapes Program!\"\n\t\t\t\t\t\t\t+\"\\nThis program allows you to \\\"create\\\" five different shapes.\"\n\t\t\t\t\t\t\t+\"\\nA maximum of 100 shapes can be added before the program will \"\n\t\t\t\t\t\t\t+\"\\nterminate itself. When the program ends, the number of shapes and \"\n\t\t\t\t\t\t\t+\"\\ntheir values will be displayed.\");\n\t\twhile (option != 0 && numberOfShapes <= 99) { // loop menu as long as conditions are valid\n\t\t\ttry {\n\t\t\t\tdo { // keep displaying menu for invalid input\n\t\t\t\t\tSystem.out.println(\"Enter:\"\n\t\t\t\t\t\t\t\t\t\t+\"\\n 1 to add a circle\"\n\t\t\t\t\t\t\t\t\t\t+\"\\n 2 to add a sphere\"\n\t\t\t\t\t\t\t\t\t\t+\"\\n 3 to add a cylinder\"\n\t\t\t\t\t\t\t\t\t\t+\"\\n 4 to add a cube\"\n\t\t\t\t\t\t\t\t\t\t+\"\\n 5 to add a rectangular prism\"\n\t\t\t\t\t\t\t\t\t\t+\"\\n 0 to quit\");\n\t\t\t\t\toption = input.nextInt();\n\t\t\t\t} while (option < 0 || option > 5);\n\t\t\t} catch(InputMismatchException e) {\n\t\t\t\tSystem.out.println(\"Invalid input! Please enter a valid number.\");\n\t\t\t\tinput.nextLine();\n\t\t\t} // end try\n\t\t\t\n\t\t\tswitch(option) {\n\t\t\t\tcase 1:\n\t\t\t\t\tshapes[numberOfShapes] = new Circle();\n\t\t\t\t\tshapes[numberOfShapes].inputFromUser();\n\t\t\t\t\t++numberOfShapes;\n\t\t\t\t\tSystem.out.println(\"The circle has been added.\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tshapes[numberOfShapes] = new Sphere();\n\t\t\t\t\tshapes[numberOfShapes].inputFromUser();\n\t\t\t\t\t++numberOfShapes;\n\t\t\t\t\tSystem.out.println(\"The sphere has been added.\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tshapes[numberOfShapes] = new Cylinder();\n\t\t\t\t\tshapes[numberOfShapes].inputFromUser();\n\t\t\t\t\t++numberOfShapes;\n\t\t\t\t\tSystem.out.println(\"The cylinder has been added.\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tshapes[numberOfShapes] = new Cube();\n\t\t\t\t\tshapes[numberOfShapes].inputFromUser();\n\t\t\t\t\t++numberOfShapes;\n\t\t\t\t\tSystem.out.println(\"The cube has been added.\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tshapes[numberOfShapes] = new RectangularPrism();\n\t\t\t\t\tshapes[numberOfShapes].inputFromUser();\n\t\t\t\t\t++numberOfShapes;\n\t\t\t\t\tSystem.out.println(\"The rectangular prism has been added.\");\n\t\t\t\t\tbreak;\n\t\t\t} // end switch\n\t\t} // end big while loop\n\n\t\tif (numberOfShapes >= 99) {\n\t\t\tSystem.out.println(\"100 shapes were added, ending program...\");\n\t\t}\n\t\t//when stopped, display shapes\n\t\tif (option == 0 && numberOfShapes == 0) {\n\t\t\tSystem.out.print(\"Goodbye. No shapes were added.\");\n\t\t}\n\t\tif ((option == 0 && numberOfShapes > 0) || numberOfShapes >= 99) {\n\t\t\tSystem.out.println(\"Goodbye. The shapes added were: \");\n\t\t\tfor (int i = 0; i < numberOfShapes; i++) {\n\t\t\t\tSystem.out.println (shapes[i].toString() + shapes[i].calc());\n\t\t\t}\n\t\t}\n\t}",
"private void createDialog() {\r\n final AlertDialog dialog = new AlertDialog.Builder(getActivity()).setView(R.layout.dialog_recorder_details)\r\n .setTitle(\"Recorder Info\").setPositiveButton(\"Start\", (dialog1, which) -> {\r\n EditText width = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_width);\r\n EditText height = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_height);\r\n CheckBox audio = (CheckBox) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_audio_checkbox);\r\n EditText fileName = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_filename_name);\r\n mServiceHandle.start(new RecordingInfo(Integer.parseInt(width.getText().toString()), Integer.parseInt(height.getText().toString()),\r\n audio.isChecked(), fileName.getText().toString()));\r\n dialog1.dismiss();\r\n }).setNegativeButton(\"Cancel\", (dialog1, which) -> {\r\n dialog1.dismiss();\r\n }).show();\r\n Point size = new Point();\r\n getActivity().getWindowManager().getDefaultDisplay().getRealSize(size);\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_width)).setText(Integer.toString(size.x));\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_height)).setText(Integer.toString(size.y));\r\n }",
"private boolean checkInputValidity() {\n // if any of the input field is empty, return false directly\n if (name.getText().equals(\"\") || id.getText().equals(\"\") || fiber.getText().equals(\"\")\n || protein.getText().equals(\"\") || fat.getText().equals(\"\") || calories.getText().equals(\"\")\n || carbohydrate.getText().equals(\"\")) {\n String message = \"Make sure enter the value of all nutrient components, please try again!\";\n // display the warning windows with the assigned warning message\n Alert alert = new Alert(AlertType.INFORMATION, message);\n alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\n this.close();// close the add food stage\n alert.showAndWait().filter(response -> response == ButtonType.OK);\n return false;\n }\n // if any nutrition info input is not a number value or is negative, return false directly\n try {\n Double fibervalue = null;\n Double proteinvalue = null;\n Double fatvalue = null;\n Double caloriesvalue = null;\n Double carbohydratevalue = null;\n // trim the input to exact numeric value\n fibervalue = Double.valueOf(fiber.getText().trim());\n proteinvalue = Double.valueOf(protein.getText().trim());\n fatvalue = Double.valueOf(fat.getText().trim());\n caloriesvalue = Double.valueOf(calories.getText().trim());\n carbohydratevalue = Double.valueOf(carbohydrate.getText().trim());\n // nutrition input is suppose to be positive numbers\n // if any of the numbers is negative, return false diretcly\n if (fibervalue < 0.0 || proteinvalue < 0.0 || fatvalue < 0.0 || caloriesvalue < 0.0\n || carbohydratevalue < 0.0) {\n String message = \"The input of the nutrient can not be negative, please try again!\";\n Alert alert = new Alert(AlertType.INFORMATION, message);\n alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\n this.close();\n alert.showAndWait().filter(response -> response == ButtonType.OK);\n return false;\n }\n // if any input of the nutrition info is not a double value, catch the exception and return\n // false\n } catch (Exception e) {\n String message =\n \"At least one nutrition value input is invalid, please type a number in nutrient textbox!\";\n // display the warning windows with the assigned warning message\n Alert alert = new Alert(AlertType.INFORMATION, message);\n alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\n this.close(); // close the addfood stage\n // wait for response from ok button\n alert.showAndWait().filter(response -> response == ButtonType.OK);\n return false;\n }\n return true;\n }",
"public static void criaPessoa() {\n\t\tScanner sc = new Scanner(System.in);\t\t\n\t\tString nome, pwd, dep, ntlf, morada, nCC, data, tipo;\n\t\tint check = 0;\n\t\t\n\t\tdo {\n\t\t\tSystem.out.println(\"\\nInsira o nome:\");\n\t\t\tnome = sc.nextLine();\n\t\t\tif(verificarLetras(nome) && nome.length()>0) {\n\t\t\t\tcheck = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nO nome apenas pode conter letras\");\n\t\t\t}\n\t\t}while(check==0);\n\t\t\n\t\tcheck = 0;\n\t\t\n\t\tdo {\n\t\t\tSystem.out.println(\"\\nInsira a profissao:\\n(1)Estudante\\n(2)Funcionario\\n(3)Docente\");\n\t\t\ttipo = sc.nextLine();\n\t\t\tif(tipo.equals(\"1\") || tipo.equals(\"2\") || tipo.equals(\"3\")) {\n\t\t\t\tcheck = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nA opcao so pode conter digitos de 1 a 3\");\n\t\t\t}\n\t\t}while(check==0);\n\t\t\n\t\tcheck = 0;\n\t\t\n\t\tdo {\n\t\t\tSystem.out.println(\"\\nInsira o nome do departamento:\");\n\t\t\tdep = sc.nextLine();\n\t\t\tif(verificarLetras(dep) && dep.length()>0) {\n\t\t\t\tcheck = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nO nome apenas pode conter letras\");\n\t\t\t}\n\t\t}while(check==0);\n\t\t\n\t\tcheck = 0;\n\t\t\n\t\tdo {\n\t\t\tSystem.out.println(\"Insira o numero de contacto:\\n\");\n\t\t\tntlf = sc.nextLine();\n\t\t\tif(verificarNumeros(ntlf) && ntlf.length()<= 9) {\n\t\t\t\tif (Integer.parseInt(ntlf) > 0) {\n\t\t\t\t\tcheck = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nO numero de contacto apenas pode conter 9 digitos\");\n\t\t\t}\n\t\t}while(check==0);\n\t\t\t\n\t\tcheck = 0;\n\t\t\n\t\tSystem.out.println(\"\\nInsira a morada:\");\n\t\tmorada = sc.nextLine();\n\t\t\n\t\tdo {\n\t\t\tSystem.out.println(\"Insira o numero do cartao de cidadao:\\n\");\n\t\t\tnCC = sc.nextLine();\n\t\t\tif(verificarNumeros(nCC) && nCC.length()<= 9) {\n\t\t\t\tif (Integer.parseInt(nCC) > 0) {\n\t\t\t\t\tcheck = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nO numero do CC apenas pode conter 9 digitos\");\n\t\t\t}\n\t\t}while(check==0);\n\t\t\n\t\tSystem.out.println(\"Insira a validade do cartao de cidadao (DD/MM/AAAA):\\n\");\n\t\tdata = sc.nextLine();\n\n\t\tSystem.out.println(\">>>\\nELEITOR:\\nPor favor insira aqui a sua password:\\n\");\n\t\tpwd = sc.nextLine();\n\t\t\n\t\tString msgServer = \"\";\n\t\t\n\t\tcheck = 0;\n\t\tint tries = 0;\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tmsgServer = rmiserver.registarPessoa(Integer.parseInt(tipo), nome, pwd, dep, ntlf, morada, nCC, data);\n\t\t\t\tSystem.out.println(msgServer);\n\t\t\t\tSystem.out.println(\"\\n\");\n\t\t\t\tcheck = 1;\n\t\t\t} catch (RemoteException e1) {\n\t\t\t\t// Tratamento da Excepcao da chamada RMI devolveEleicoes\n\t\t\t\tif(tries == 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(6000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries > 0 && tries < 24) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries >= 24) {\n\t\t\t\t\tSystem.out.println(\"Impossivel realizar a operacao devido a falha tecnica (Servidores RMI desligados).\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}while(check==0);\n\t}",
"public Dialog createAddPersonDialog(String title, String msg) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getMyAcitivty());\n builder.setTitle(title);\n builder.setMessage(msg);\n\n // Use an EditText view to get user input.\n final EditText input = new EditText(getMyAcitivty());\n input.setText(\"\");\n builder.setView(input);\n\n builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int whichButton) {\n String value = input.getText().toString();\n Log.d(TAG, \"user input: \" + value);\n inputDialogResult = value;\n launchTrainingActivity();\n// AlertDialog dg =\n// SelectServerAlertDialog.createDialog(\n// getContext(),\n// \"Pick a Server\",\n// getAllIps(),\n// launchTrainingActivityAction,\n// cancelAction,\n// true);\n// dg.show();\n }\n });\n builder.setNegativeButton(\"Cancel\", SelectServerAlertDialog.cancelAction);\n return builder.create();\n }",
"private void Screentocharge() {\r\n\r\n\t\t\t\t\r\n\t\tJTextField nombre = new JTextField();\r\n\t\tJTextField edad = new JTextField();\r\n\t\tJTextField raza = new JTextField();\r\n\t\tJTextField cuento = new JTextField();\r\n\t\tChoice tipo = new Choice();\r\n\t\t\t\t\t\t\r\n\t\ttipo.add(\"Perro\");\r\n\t\ttipo.add(\"Gato\");\r\n\t\ttipo.add(\"Conejo\");\r\n\t\t\r\n\t\tedad.addKeyListener(new KeyAdapter()\r\n\t\t{\r\n\t\t public void keyTyped(KeyEvent e)\r\n\t\t {\r\n\t\t char caracter = e.getKeyChar();\r\n\t\t if(((caracter<'0')||(caracter>'9'))&&(caracter!='\\b'))\r\n\t\t {\r\n\t\t e.consume(); \r\n\t\t }\r\n\t\t }\r\n\t\t});\r\n\t\t\r\n\t\tObject[] message = { \"Tipo:\", tipo, \"Nombre:\", nombre, \"Edad\", edad, \"Raza\", raza, \"Causa\", cuento };\r\n\r\n\t\tUIManager.put(\"OptionPane.minimumSize\",new Dimension(500,400));\r\n\t\tint option = JOptionPane.showConfirmDialog(null, message, \"Ingreso de Pasiente\", JOptionPane.OK_CANCEL_OPTION);\r\n\t\tif (option == JOptionPane.OK_OPTION) {\t\r\n\t\t\tif (edad.getText().equals(\"\")) {\r\n\t\t\t\tedad.setText(\"0\");\r\n\t\t\t\treturnAnimal(tipo.getSelectedItem(), nombre.getText(), raza.getText(), \r\n\t\t\t\t\t\tInteger.valueOf(edad.getText()), cuento.getText());\r\n\t\t\t}\r\n\t\t\t returnAnimal(tipo.getSelectedItem(), nombre.getText(), raza.getText(), \r\n\t\t\t\t\t\t\tInteger.valueOf(edad.getText()), cuento.getText());\r\n\t\t}\r\n\t\t\r\n\t\tnombre = null;\r\n\t\tedad =null;\r\n\t\traza = null;\r\n\t\tcuento = null;\r\n\t\ttipo =null;\r\n\t\t\r\n\t}",
"public String[] creationBox(String title, String message, String button1, String button2) {\n //isCancel is used to know if the cancel button was clicked on\n final int[] isCancel = new int[1];\n //Creating the GUI for the box\n Stage window = new Stage();\n //Ensuring that other windows cannot but used while this one is still up\n window.initModality((Modality.APPLICATION_MODAL));\n window.setTitle(title);\n\n\n //Creating and modifying the layout\n GridPane grid = new GridPane();\n grid.setPadding(new Insets(10, 10, 10, 10));\n grid.setVgap(8);\n grid.setHgap(10);\n\n //components and adding them to the layout\n Label messageToDisplay = new Label(message);\n TextField creationNameField = new TextField();\n creationNameField.setPromptText(\"Characters Not allowed:!@#$%^&*()+{}[]\\\\.\");\n Button okButton = new Button(button1);\n Button cancelButton = new Button(button2);\n grid.maxHeight(700);\n grid.maxWidth(300);\n GridPane.setConstraints(messageToDisplay, 5, 5);\n GridPane.setConstraints(creationNameField, 5, 6);\n GridPane.setConstraints(okButton, 6, 6);\n GridPane.setConstraints(cancelButton, 7, 6);\n grid.getChildren().setAll(messageToDisplay, okButton, cancelButton, creationNameField);\n\n Creations creation = new Creations();\n\n //Setting up event handlers\n cancelButton.setOnAction(e -> {\n isCancel[0] = 1;\n window.close();\n\n });\n okButton.setOnAction(e -> {\n isCancel[0] = 0;\n boolean isInvalidCharacters = creation.reggexChecker(creationNameField.getText());\n int fieldLength= creationNameField.getText().length()-1;\n String fieldInput=creationNameField.getText();\n if (creationNameField.getText() == null || creationNameField.getText().equals(\"\") || isInvalidCharacters || creationNameField.getText().length() > 20 || creationNameField.getText().trim().isEmpty() || fieldInput.charAt(fieldLength)==' ' || fieldInput.charAt(0)==' ') {\n AlertBox(\"Invalid Input\", \"Please enter a valid creation name:\\nWithout special characters, non-empty,not just a space,\\nno space at the end of the name and less than 20 characters long\\n\", 580, 100);\n } else {\n window.close();\n }\n\n });\n\n Scene scene = new Scene(grid, 580, 130);\n window.setScene(scene);\n window.setResizable(false);\n window.centerOnScreen();\n window.showAndWait();\n //Setting up the return array, which returns the boolean if the cancel button was placed and the input to the\n //textfield.\n String[] combinedOutput = new String[2];\n combinedOutput[0] = creationNameField.getText();\n combinedOutput[1] = String.valueOf(isCancel[0]);\n return combinedOutput;\n\n }",
"private void buildDialogWindow(Ingredient aIng) {\n\t\t\n \t\tGridBagLayout layout = new GridBagLayout();\n GridBagConstraints lc = new GridBagConstraints();\n getContentPane().setLayout(layout);\n\n \n lc.anchor = GridBagConstraints.EAST;\n lc.insets = new Insets(5, 5, 5, 5);\n\n aLabel = new JLabel(\"Name\");\n lc.gridx = 0; lc.gridy = 0;\n lc.gridwidth = 1; lc.gridheight = 1;\n lc.weightx = 0.0; lc.weighty = 0.0;\n layout.setConstraints(aLabel, lc);\n getContentPane().add(aLabel);\n\n aLabel = new JLabel(\"Food Group\");\n lc.gridx = 0; lc.gridy = 1;\n lc.gridwidth = 1; lc.gridheight = 1;\n lc.weightx = 0.0; lc.weighty = 0.0;\n layout.setConstraints(aLabel, lc);\n getContentPane().add(aLabel);\n \n aLabel = new JLabel(\"Shelf Life\");\n lc.gridx = 0; lc.gridy = 2;\n lc.gridwidth = 1; lc.gridheight = 1;\n lc.weightx = 0.0; lc.weighty = 0.0;\n layout.setConstraints(aLabel, lc);\n getContentPane().add(aLabel);\n\n aLabel = new JLabel(\"Calories\");\n lc.gridx = 0; lc.gridy = 3;\n lc.gridwidth = 1; lc.gridheight = 1;\n lc.weightx = 0.0; lc.weighty = 0.0;\n layout.setConstraints(aLabel, lc);\n getContentPane().add(aLabel);\n\n \t\t// Add the name field\n\t\tnameField = new JTextField(aIng.getName());\n\t\tnameField.setFont(UIFont);\n lc.gridx = 1; lc.gridy = 0;\n lc.gridwidth = 3; lc.gridheight = 1;\n lc.fill = GridBagConstraints.BOTH;\n lc.weightx = 1.0; lc.weighty = 0.0;\n layout.setConstraints(nameField, lc);\n \t\tgetContentPane().add(nameField);\n\n\t\t// Add the address field\n\t\tfoodGroupField = new JTextField(aIng.getFoodGroup());\n\t\tfoodGroupField.setFont(UIFont);\n lc.gridx = 1; lc.gridy = 1;\n lc.gridwidth = 3; lc.gridheight = 1;\n lc.fill = GridBagConstraints.BOTH;\n lc.weightx = 1.0; lc.weighty = 0.0;\n layout.setConstraints(foodGroupField, lc);\n \t\tgetContentPane().add(foodGroupField);\n\n \t\tshelfLifeField = new JTextField(\"\"+aIng.getShelfLife());\n \t\tshelfLifeField.setFont(UIFont);\n lc.gridx = 1; lc.gridy = 2;\n lc.gridwidth = 3; lc.gridheight = 1;\n lc.fill = GridBagConstraints.BOTH;\n lc.weightx = 1.0; lc.weighty = 0.0;\n layout.setConstraints(shelfLifeField, lc);\n \t\tgetContentPane().add(shelfLifeField);\n \t\t\n \t\tcaloriesField = new JTextField(\"\"+aIng.getCalories());\n \t\tcaloriesField.setFont(UIFont);\n lc.gridx = 1; lc.gridy = 3;\n lc.gridwidth = 3; lc.gridheight = 1;\n lc.fill = GridBagConstraints.BOTH;\n lc.weightx = 1.0; lc.weighty = 0.0;\n layout.setConstraints(caloriesField, lc);\n \t\tgetContentPane().add(caloriesField);\n \t\t\n\t\t// Add the Update button\n\t\tupdateButton = new JButton(\"UPDATE\");\n lc.gridx = 1; lc.gridy = 6;\n lc.gridwidth = 1; lc.gridheight = 1;\n lc.weightx = 0.0; lc.weighty = 0.0;\n layout.setConstraints(updateButton, lc);\n \t\tgetContentPane().add(updateButton);\n \n\t\t// Add the Delete button\n\t\tdeleteButton = new JButton(\"DELETE\");\n lc.gridx = 2; lc.gridy = 6;\n lc.gridwidth = 1; lc.gridheight = 1;\n lc.weightx = 0.0; lc.weighty = 0.0;\n layout.setConstraints(deleteButton, lc);\n \t\tgetContentPane().add(deleteButton);\n\n \t\t// Add the Cancel button\n\t\tcancelButton = new JButton(\"CANCEL\");\n \n lc.gridx = 3; lc.gridy = 6;\n lc.gridwidth = 1; lc.gridheight = 1;\n lc.weightx = 0.0; lc.weighty = 0.0;\n layout.setConstraints(cancelButton, lc);\n \t\tgetContentPane().add(cancelButton);\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n //The radius and height of the cylinder.\n double radius;\n double height;\n //The area and volume of the cylinder.\n double area;\n double volume;\n \n DecimalFormat df = new DecimalFormat();\n df.setMaximumFractionDigits(4);\n \n Scanner scan = new Scanner(System.in);\n \n System.out.println(\"Please enter in the radius and height \"\n + \"of a cylinder (radius first): \");\n radius = scan.nextDouble();\n height = scan.nextDouble();\n \n scan.close();\n \n volume = Math.PI * Math.pow(radius, 2) * height;\n \n area = 2 * Math.PI * radius * (radius + height);\n \n System.out.println(\"The surface area of your cylinder is: \"\n + df.format(area));\n System.out.println(\"The volume of your cylinder is: \"\n + df.format(volume));\n \n System.out.println(\"Question two was called and ran sucessfully.\");\n }",
"public static void createAccount()throws IOException{\n\t\ttry{\n\t\t\tFile accountInfo = new File(\"account.txt\");\n\t\t\tFile Information = new File(\"information.txt\");\n\t\t\tArrayList<String> temp = new ArrayList<String>();\n\t\t\tArrayList<String> info = new ArrayList<String>();\n\t\t\tScanner inputFromInformation = new Scanner(Information);\n\t\t\tScanner inputFromAccount = new Scanner(accountInfo);\n\t\t\twhile (inputFromAccount.hasNextLine()){\n\t\t\t\ttemp.add(inputFromAccount.nextLine());\n\t\t\t}\n\t\t\tScanner input = new Scanner(System.in);\n\t\t\t// This is where we will start the new account process\n\t\t\t// first by telling us who you are.\n\t\t\tSystem.out.println(\"Enter your First Name\");\n\t\t\tString firstName = input.next();\n\t\t\t\n\t\t\tSystem.out.println(\"Enter your Last Name\");\n\t\t\tString lastName = input.next();\n\t\t\t// This will give the user recommended\n\t\t\t// user names if they cannot think of one.\n\t\t\tRecommendedUserNames(firstName,lastName);\n\t\t\t// here they will be prompt to enter their preferred user name\n\t\t\tSystem.out.println(\"Enter your preferred username\");\n\t\t\tString UserName = input.next();\n\t\t\t// This will prompt the user for a password\n\t\t\t// The password will have to meet these requirements\n\t\t\tSystem.out.println(\"Your password should meet the following requirements:\");\n\t\t\tSystem.out.println(\"-It must have at least eight characters.\\n-It must consist of only letters and digits.\"\n\t\t\t\t\t\t\t+ \"\\n-It must contain more than two digits and two characters.\");\n\t\t\tSystem.out.println(\"\\nEnter your new Password\");\n\t\t\tString Password = input.next();\n\t\t\t\n\t\t\t// this is what will verify the user password and see if it meets the recommended requirements\n\t\t\t// for security reasons of course.\n\t\t\tString Pass;\n\n\t\t\tboolean check=false;\n\t\t\tif(validigits(Password)&&letter_digit_check(Password))check=true;\n\t\t\twhile(!check){\n\t\t\t\tSystem.out.println(\"Please recheck the password requirement and try again.\");\n\t\t\t\tPassword = input.next();\n\t\t\t\tif(validigits(Password)&&letter_digit_check(Password))check=true;\n\t\t\t}\n\t\t\tdo{\n\t\t\t\tSystem.out.println(\"\\nPlease re-enter the Password\");\n\t\t\t\tPass = input.next();\n\t\t\t\tif(!Pass.equals(Password))System.out.println(\"Passwords do not match!\");\n\t\t\t}while(!Pass.equals(Password));\n\t\t\tboolean CreateAccount = true;\n\t\t\tSystem.out.println(\"You need to fill the information for completion of your account registration\");\n\t\t\teditInfo(UserName,CreateAccount);\n\t\t\tPrintWriter output = new PrintWriter(accountInfo);\n\t\t\ttemp.add(UserName+\" \"+Password);\n\t\t\tfor (int i=0; i<temp.size(); i++){\n\t\t\t\toutput.println(temp.get(i));\n\t\t\t}\n\t\t\toutput.close();\n\t\t\tSystem.out.println(\"Your account has been created and your information has been saved\"\n\t\t\t\t\t+ \"\\nYou have been logged out for this session\\n\");\n\t\t\tstarter();\n\t\t}\n\t\tcatch (java.io.IOException ex){\n\t\t\tSystem.out.println(\"I/O Errors: File is not found\");\n\t\t}\t\n\t}",
"public void createAccount() {\n System.out.println(\"Would you like to create a savings or checking account?\");\n String AccountRequest = input.next().toLowerCase().trim();\n createAccount(AccountRequest);\n\n }",
"public void showUserDefinedInputCreateDialog() {\r\n FXMLLoader loader = fxmlLoaderService.getLoader(getClass().getResource(FXML_USER_DEFINED_INPUT_CREATE_DIALOG));\r\n\r\n Parent page;\r\n\r\n try {\r\n page = loader.load();\r\n } catch (IOException ex) {\r\n logger.warn(\"Failed to load: \" + FXML_USER_DEFINED_INPUT_CREATE_DIALOG, ex);\r\n\r\n return;\r\n }\r\n\r\n // set the stage\r\n Stage stage = new Stage();\r\n stage.setTitle(\"Create Custom Input\");\r\n stage.initModality(Modality.APPLICATION_MODAL);\r\n stage.centerOnScreen();\r\n stage.initOwner(mainStage);\r\n\r\n Scene scene = new Scene(page);\r\n scene.getStylesheets().add(getClass().getResource(STYLESHEET_DEFAULT).toExternalForm());\r\n\r\n stage.setScene(scene);\r\n\r\n // Set the item into the controller.\r\n UserDefinedInputCreateDialogController controller = loader.getController();\r\n controller.setStage(stage);\r\n\r\n stage.showAndWait();\r\n }",
"public void registration() {\n\t\tSystem.out.print(\"Enter Name : \");\r\n\t\tthis.name=scan.nextLine();\r\n\t\tSystem.out.print(\"Enter Age : \");\r\n\t\tthis.age=scan.nextInt();\r\n\t\tSystem.out.print(\"Enter Gender : \");\r\n\t\tthis.gender=scan.next().charAt(0);\r\n\t\tscan.nextLine();\r\n\t\tSystem.out.print(\"Enter Price : \");\r\n\t\tthis.price=scan.nextDouble();\r\n\t\tSystem.out.print(\"Enter Quantity : \");\r\n\t\tthis.quantity=scan.nextInt();\t\r\n\t\tSystem.out.println(\"Register Successfully\");\r\n\t}",
"public static void main(String[] args) {\r\n\t\t\r\n\t//Creo el objeto usuario\r\n\t\tUsuario usuario = new Usuario();\r\n\t\tCuenta cuenta = new Cuenta(usuario);\r\n\t\tScanner S = new Scanner(System.in);\r\n\t\tString description;\r\n\t\tdouble dinero;\r\n\t\t\r\n\t/*Esto para introducir el nombre del usuario\r\n\t----------------------------------------------------------------------------------------------------------------------------------*/\r\n\tSystem.out.println(\"Bienvenido al programa de Sistema de gestion de usuarios Alejandro SL\"\r\n\t\t\t+ \". Por favor, introduce un nombre de usuario para el registro\");\t\r\n\t\tString nombre=S.nextLine();\r\n\t\tusuario.setNombre(nombre);\r\n\t\t\r\n\t\t\r\n\t\t/*Esto para introducir la edad del usuario\r\n\t\t----------------------------------------------------------------------------------------------------------------------------------*/\r\n\t\tSystem.out.println(\"Introduce la edad del usuario: \");\r\n\t\tint edad;\r\n\t\tboolean edad_correcta=false;//Este booleano se usa para que el bucle siga hasta que se introduzca una edad realista.\r\n\t\t\r\n\t\twhile(!edad_correcta)\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tedad = S.nextInt();\r\n\t\t\t\tedad_correcta=true;\r\n\t\t }catch(InputMismatchException e) {\r\n\t\t\t S.nextLine();//Este Scanner se usa para limpiar el búfer\r\n\t\t\t System.out.println(\"Por favor, introduce una edad válida.\");\r\n\t\t}\r\n\t\tS.nextLine();//Este actúa de limpieza para el retorno de carro que se queda en el búfer si se entra en el try\t\t\r\n\t\t\r\n\t\t\r\n\t\t/*Esto para introducir el DNI de usuario\r\n\t\t-----------------------------------------------------------------------------------------------------------------------------------*/\r\n\tSystem.out.println(\"- Introduce un DNI válido. Recuerda que debe tener 8 caracteres numéricos y una letra final. Entre números\"\r\n\t\t\t+ \"y letras puede haber un guión.\\nAquí tienes dos ejemplos: 78844112L / 78844112-L\");\r\n\t\tString DNI;\r\n\t\t\r\n\t\tdo {\r\n\t\t\tDNI =S.nextLine().toUpperCase();//Uso UpperCase para validar el DNI cuando se ponga mayúscula o minúscula en la letra del DNI\r\n\t\t\tusuario.setDNI(DNI);\r\n\t\t\t\r\n\t\t\t//Si el DNI introducido no es válido saltará el siguiente mensaje.\r\n\t\t\tif(usuario.setDNI(DNI)==false)\r\n\t\t\t\tSystem.out.println(\"DNI incorrecto. Por favor, respeta el formato que se pide en la descripcion\\n\");\r\n\t\t\t\r\n\t\t}while(usuario.setDNI(DNI)==false);//Hasta que pongamos un DNI válido, no saldremos del bucle.\r\n\t\t\r\n\tSystem.out.println(\"DNI agregado correctamente.\\n¡USUARIO CREADO!\"\r\n\t\t\t+ \"Creando cuenta, espere unos instantes...\");\r\n\t\r\n\ttry {\r\n\t\t/*Se para el programa durante 3 segundos para recrear el procesamiento de creación de la cuenta.\r\n\t\t Este método obliga a capturar posibles errores.*/\r\n\t\tThread.sleep(3000);\r\n\t} catch (InterruptedException e) {\r\n\t\te.printStackTrace();\r\n\t}\r\n\t/*MENÚ\r\n\t * ------------------------------------------------------------------------------------------------------------------------------------*/\r\n\tint eleccion=0;\r\n\tboolean eleccion_menu=false;\r\n\t/*Este booleano hará que siempre que escojamos un opción o cometamos un error, regresemos al menú principal. La única forma de salir del\r\n\t * bucle, será seleccionar la opcion 0, en la que el booleano eleccion_menu tendrá el valor de true*/\r\n\t\r\n\twhile(!eleccion_menu) {\t\r\n\t\t\r\n\t System.out.println(\"\\nRealiza una nueva acción:\"\r\n\t \t\t+ \"\\n1 Introduce un nuevo gasto\"\r\n\t \t\t+ \"\\n2 Introduce un nuevo ingreso\"\r\n\t \t\t+ \"\\n3 Mostrar gastos\"\r\n\t \t\t+ \"\\n4 Mostrar ingresos\"\r\n\t \t\t+ \"\\n5 Mostrar saldo\"\r\n\t \t\t+ \"\\n0 Salir\");\r\n\t \r\n\t try {\r\n\t /*Si el usuario introduce un número fuera del rango esperado en el menú o una letra, estará caputrado y te hará elegir una opción en\r\n\t\t el menú otra vez*/\r\n\t eleccion = S.nextInt();\r\n\t \r\n\t //Cada case de este switch representa una opción del menú anterior.\r\n\t if(eleccion >=0 && eleccion<6) {\r\n\t\t \r\n\t\t\tswitch(eleccion) {\r\n\t\t\tcase 1://Introduce un nuevo gasto\r\n\t\t\t\tSystem.out.println(\"Introduce la cantidad a pagar\");\r\n\t\t\t\tdinero = S.nextDouble();\r\n\t\t\t\tS.nextLine();\r\n\t\t\t\tSystem.out.println(\"Escribe un concepto de ingreso\");\r\n\t\t\t\tdescription = S.nextLine();\r\n\t\t\t\t\r\n\t\t\t\t/*Esta excepción está obligada a ser lanzada, ya que en el método addGastos() de la clase cuenta se lanza manualmente esta\r\n\t\t\t\t * excepción*/\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcuenta.addGastos(description, dinero);\r\n\t\t\t\t} catch (GastoException e) {\r\n\t\t\t\t\tSystem.err.println(\"No es posible realizar el pago:saldo infuciente\");\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase 2://Realizar ingresos\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\tSystem.out.println(\"Introduce una cantidad a ingresar\");\r\n\t\t\t\tdinero = S.nextDouble();\r\n\t\t\t\tS.nextLine();\r\n\t\t\t\tSystem.out.println(\"Escribe un concepto de ingreso\");\r\n\t\t\t\tdescription = S.nextLine();\r\n\t\t\t\tcuenta.addIngresos(description, dinero);\r\n\t\t\t\tespacio();//Explicado en el mismo método.\r\n\t\t\t\t}catch(RuntimeException e) {\r\n\t\t\t\t\tSystem.err.println(\"Error al realizar el ingreso.\");\r\n\t\t\t\t\tS.nextLine();\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase 3://Mostrar gastos\r\n\t\t\t\t\r\n\t\t\t\tfor(int i=0;i<cuenta.getGastos().size();i++) {\r\n\t\t\t\t\tSystem.out.println(cuenta.getGastos().get(i).toString());//Imprime los elementos del ArrayList gastos de la clase cuenta \r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Presione ENTER para volver al menú principal\");\r\n\t\t\t\tS.nextLine();//Este método limpia el búfer y el siguiente es el que registra la tecla ENTER\r\n\t\t\t\tS.nextLine();\r\n\t\t\t\tespacio();\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase 4://Mostrar ingresos\r\n\t\t\t\t\r\n\t\t\t\tfor(int i=0;i<cuenta.getIngresos().size();i++) {\r\n\t\t\t\t\tSystem.out.println(cuenta.getIngresos().get(i).toString());//Imprime los elementos del ArrayList ingresos de la clase cuenta \r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Presione ENTER para volver al menú principal\");\r\n\t\t\t\tS.nextLine();//Este método limpia el búfer y el siguiente es el que registra la tecla ENTER\r\n\t\t\t\tS.nextLine();\r\n\t\t\t\tespacio();\r\n\t\t\t\t\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase 5://Mostrar saldo\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Su saldo actual es de: \"+cuenta.getSaldo()+\" €\");\r\n\t\t\t\tSystem.out.println(\"Presione ENTER para volver al menú princiapl\");\r\n\t\t\t\tS.nextLine();//Este método limpia el búfer y el siguiente es el que registra la tecla ENTER\r\n\t\t\t\tS.nextLine();\r\n\t\t\t\tespacio();\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase 0://Salir del programa\r\n\t\t\t\tSystem.out.println(\"Fin del programa\\nGracias por utilizar la aplicación\");\r\n\t\t\t\teleccion_menu = true; //El valor true, permite salir del bucle que te hace volver al menú principal\r\n\t\t\t\tbreak;\r\n\t\t\t\t\t \r\n\t\t\t}//Fin de switch\r\n\t }else {\r\n\t\t//Este else actuará si el usuario introduce un valor fuera del rango entre 0 y 5\r\n\t\t System.err.println(\"Introduce una opción válida\");\r\n\t }\r\n\t }catch(InputMismatchException e) {\r\n\t\t S.nextLine();\r\n\t\t System.err.println(\"Introduce una opción válida.\");\r\n\t\t }//Fin de catch\r\n\r\n\t}//Fin de bucle while\t\r\n\t\r\n\t\t\r\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tif (ft.getText().toString().equals(\"\")\n\t\t\t\t\t\t|| in.getText().toString().equals(\"\")\n\t\t\t\t\t\t|| wght.getText().toString().equals(\"\")\n\t\t\t\t\t\t|| age1.getText().toString().equals(\"\")\n\t\t\t\t\t\t|| hr1.getText().toString().equals(\"\")\n\t\t\t\t\t\t|| min1.getText().toString().equals(\"\")) {\n\n\t\t\t\t\tToast.makeText(ProfileActivity.this,\n\t\t\t\t\t\t\t\"Enter all the details\", Toast.LENGTH_SHORT).show();\n\t\t\t\t} else {\n\n\t\t\t\t\tif (height_unit.equals(\"ft\")) {\n\t\t\t\t\t\tuser.setHeight_ft(ft.getText().toString());\n\t\t\t\t\t\tuser.setHeight_in(in.getText().toString());\n\t\t\t\t\t\tcms = (int) (30.48 * Integer.parseInt(ft.getText()\n\t\t\t\t\t\t\t\t.toString()));\n\t\t\t\t\t} else if (height_unit.equals(\"cm\")\n\t\t\t\t\t\t\t&& !ft.getText().equals(null)) {\n\t\t\t\t\t\tuser.setHeight_cm(ft.getText().toString());\n\t\t\t\t\t\tcms = Integer.parseInt(ft.getText().toString());\n\t\t\t\t\t}\n\n\t\t\t\t\tif (weight_unit.equals(\"kgs\")) {\n\t\t\t\t\t\tuser.setWeight_kg(wght.getText().toString());\n\t\t\t\t\t\tkgs = Integer.parseInt(wght.getText().toString());\n\n\t\t\t\t\t} else if (weight_unit.equals(\"lbs\")\n\t\t\t\t\t\t\t&& !ft.getText().toString().equals(\"\")) {\n\t\t\t\t\t\tuser.setWeight_lbs(wght.getText().toString());\n\t\t\t\t\t\tkgs = Integer.parseInt(wght.getText().toString()) / 2;\n\t\t\t\t\t}\n\n\t\t\t\t\tfinal String date = new SimpleDateFormat(\"MM-dd-yyyy\")\n\t\t\t\t\t\t\t.format(new Date());\n\n\t\t\t\t\tuser.setSex(sex);\n\t\t\t\t\tuser.setActive(active);\n\t\t\t\t\tuser.setAge_int(age1.getText().toString());\n\t\t\t\t\tuser.setHr(hr1.getText().toString());\n\t\t\t\t\tuser.setMin(min1.getText().toString());\n\n\t\t\t\t\tif (user.getHeight_ft() == 0) {\n\t\t\t\t\t\tinch = user.getHeight_cm()/2.54;\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tinch = (12 * user.getHeight_ft()) + user.getHeight_in();\n\t\t\t\t\t}\n\n\t\t\t\t\tLog.d(\"inch\", String.valueOf(inch));\n\t\t\t\t\tif (user.getWeight_lbs() == 0) {\n\t\t\t\t\t\tweight = 2 * user.getWeight_kg();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tweight = user.getWeight_lbs();\n\t\t\t\t\t}\n\n\t\t\t\t\tbmi = (int) ((weight / (inch * inch)) * 703);\n\n\t\t\t\t\tif (user.getSex().equals(\"female\")) {\n\t\t\t\t\t\tbmr = 655 + (4.35 * weight) + (4.7 * inch)\n\t\t\t\t\t\t\t\t- (4.7 * user.getAge_int());\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbmr = 66 + (6.23 * weight) + (12.7 * inch)\n\t\t\t\t\t\t\t\t- (6.8 * user.getAge_int());\n\t\t\t\t\t}\n\n\t\t\t\t\tfactor = (0.57 * (kgs *2) ) / 2200;\n\t\t\t\t\ttotalcal = (int)( bmr * user.active);\n\t\t\t\t\tLog.d(\"totalcal\", String.valueOf(totalcal));\n\t\t\t\t\tuser.setBmi(bmi);\n\t\t\t\t\tuser.setTotalcal(totalcal);\n\t\t\t\t\tuser.setFactor(factor);\n\t\t\t\t\t\n\t\t\t\t\tLog.d(\"user\", user.toString());\n\t\t\t\t\tParseQuery<ParseObject> query = ParseQuery\n\t\t\t\t\t\t\t.getQuery(\"UserData\");\n\t\t\t\t\tquery.whereEqualTo(\"user\", ParseUser.getCurrentUser());\n\t\t\t\t\tquery.findInBackground(new FindCallback<ParseObject>() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void done(List<ParseObject> arg0,\n\t\t\t\t\t\t\t\tParseException arg1) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tif (arg1 == null && arg0.size() != 0) {\n\t\t\t\t\t\t\t\tfor (ParseObject p : arg0) {\n\t\t\t\t\t\t\t\t\tp.put(\"user\", ParseUser.getCurrentUser());\n\t\t\t\t\t\t\t\t\tp.put(\"weight\", kgs);\n\t\t\t\t\t\t\t\t\tp.put(\"age\", Integer.parseInt(age1\n\t\t\t\t\t\t\t\t\t\t\t.getText().toString()));\n\t\t\t\t\t\t\t\t\tp.put(\"height\", cms);\n\t\t\t\t\t\t\t\t\tp.put(\"active\", String.valueOf(active));\n\t\t\t\t\t\t\t\t\tp.put(\"sex\", sex);\n\t\t\t\t\t\t\t\t\tp.put(\"bmi\", bmi);\n\t\t\t\t\t\t\t\t\tp.put(\"totalcal\", totalcal);\n\t\t\t\t\t\t\t\t\tp.put(\"factor\", String.valueOf(factor));\n\n\t\t\t\t\t\t\t\t\tp.saveEventually();\n\t\t\t\t\t\t\t\t\tLog.d(\"place\", ParseUser.getCurrentUser().toString());\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if (arg0.size() == 0) {\n\t\t\t\t\t\t\t\tParseObject p = new ParseObject(\"UserData\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tp.put(\"user\", ParseUser.getCurrentUser());\n\t\t\t\t\t\t\t\tp.put(\"weight\", kgs);\n\t\t\t\t\t\t\t\tp.put(\"age\", Integer.parseInt(age1.getText()\n\t\t\t\t\t\t\t\t\t\t.toString()));\n\t\t\t\t\t\t\t\tp.put(\"height\", cms);\n\t\t\t\t\t\t\t\tp.put(\"active\", String.valueOf(active));\n\t\t\t\t\t\t\t\tp.put(\"sex\", sex);\n\t\t\t\t\t\t\t\tp.put(\"bmi\", bmi);\n\t\t\t\t\t\t\t\tp.put(\"totalcal\", totalcal);\n\n\t\t\t\t\t\t\t\tp.put(\"factor\", String.valueOf(factor));\n\t\t\t\t\t\t\t\tLog.d(\"place\", ParseUser.getCurrentUser().toString());\n\t\t\t\t\t\t\t\tp.saveEventually();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tLog.d(\"score\", \"Error: \" + arg1.getMessage());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\tParseObject wgt = new ParseObject(\"Weight\");\n\t\t\t\t\twgt.put(\"user\", ParseUser.getCurrentUser());\n\t\t\t\t\twgt.put(\"weight\", kgs);\n\t\t\t\t\twgt.put(\"date\", date);\n\t\t\t\t\twgt.saveEventually();\n\t\t\t\t}\n\n\t\t\t\tIntent i = new Intent(ProfileActivity.this,\n\t\t\t\t\t\tFitnessActivity.class);\n\t\t\t\tstartActivity(i);\n\t\t\t\tfinish();\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\r\n \t\tint size = 10;\r\n \t\tint mines = -1;\r\n \t\tboolean valid = true;\r\n \t\tboolean defaultValue = false;\r\n \t\tint sizeInput = 10;\r\n \t\tint mineInput = -1;\r\n \t\t\r\n \t\tif (e.getSource() == btnNewGame) {\r\n \t \t\tif (tfSize.getText().equals(\"\") || \r\n\t\t\t\t\t\t!isNumeric(tfSize.getText())) {\r\n \t \t\t\tsize = 10; defaultValue = true;\r\n \t \t\t} else {sizeInput = Integer.parseInt(tfSize.getText());}\r\n \t \t\tif ((sizeInput <= 30) && (sizeInput > 0) && \r\n\t\t\t\t\t (isNumeric(tfSize.getText()) || defaultValue)){\r\n \t \t\t\tsize = sizeInput; } else {valid = false;}\r\n\t\t\t\t\tif (tfMines.getText().equals(\"\") || \r\n\t\t\t\t\t !isNumeric(tfSize.getText())){\r\n \t \t\t\tmines = size; mineInput = size;\r\n \t \t\t} else {mineInput = Integer.parseInt(tfMines.getText()); }\r\n \t \t\tif ((mineInput <= 150) && \r\n\t\t\t\t\t (mineInput < (sizeInput*sizeInput)) && \r\n\t\t\t\t\t (isNumeric(tfSize.getText()) || defaultValue)){\r\n \t \t\t\tmines = mineInput;\r\n \t \t\t} else {valid = false;}\r\n \t \t\tif (valid){new GameContainer(size, mines); dispose();}else{\r\n \t \t\t\tJOptionPane.showMessageDialog(getGameContainer(),\r\n \t\t\t\t\t\"The size must be a number between 1 and 30. \"+\r\n\t\t\t\t\t\t\t\"\\n\\nThe number of mines must be between 0 \\n\"\r\n \t \t\t\t\t+ \"and the size squared and must not exceed 150.\",\r\n \t \t\t\t\t\"Incorrect value(s) entered\",\r\n\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n \t \t\t}\r\n \t \t\ttfSize.setText(\"\"); tfMines.setText(\"\");\r\n } else if (e.getSource() == btnExit) { dispose();}\r\n \t}",
"private void showInput() {\n JPanel p = new JPanel(new BorderLayout(5, 5));\n JPanel labels = new JPanel(new GridLayout(0,1,2,2));\n JPanel labels1 = new JPanel(new FlowLayout());\n labels.add(new JLabel(\"Width\", SwingConstants.RIGHT));\n labels.add(new JLabel(\"Height\", SwingConstants.RIGHT));\n labels1.add(new JLabel(\"(Minimum Width: \" + minWidth + \", Height: \" +\n minHeight + \")\"));\n p.add(labels, BorderLayout.WEST);\n p.add(labels1, BorderLayout.SOUTH);\n\n JPanel controls = new JPanel(new GridLayout(0, 1, 2, 2));\n JTextField widthField = new JTextField();\n controls.add(widthField);\n JTextField heightField = new JTextField();\n controls.add(heightField);\n p.add(controls, BorderLayout.CENTER);\n JOptionPane.showMessageDialog(null, p, \"Enter Canvas Width and Height\",\n JOptionPane.QUESTION_MESSAGE);\n\n\n // TODO: pressing X to quit doesn't work with loop\n // Don't know how to detect if X is pressed?\n while (true) {\n try {\n width = Integer.parseInt(widthField.getText());\n height = Integer.parseInt(heightField.getText());\n if (width < minWidth || height < minHeight) {\n throw new InvalidResolutionException(\"Invalid resolution\");\n } else {\n break;\n }\n } catch (IllegalArgumentException e) {\n System.out.println(\"Exception occurred: \" + e);\n JOptionPane.showMessageDialog(null, p,\n \"Please enter valid number!\", JOptionPane.ERROR_MESSAGE);\n } catch (InvalidResolutionException e) {\n System.out.println(\"Exception occurred: \" + e);\n JOptionPane.showMessageDialog(null, p,\n \"Width/Height Too Small!\", JOptionPane.ERROR_MESSAGE);\n }\n }\n\n openPaint();\n }",
"public static Beverage orderDrink(){\n // Create a Scanner object\n Scanner input = new Scanner(System.in);\n\n String size = \"\";\n String type =\"\";\n int x = 0;\n int y =0;\n //Ask user if what size and type of drink they would like to order.\n do {\n System.out.print(\"\\nWhat size of Drink would you like?\\n\" +\n \"S- Small\\n\" +\n \"M- Medium\\n\" +\n \"L- Large\\n\");\n\n String answer = input.nextLine();\n switch (answer) {\n case \"S\":\n case \"s\":\n case \"Small\":\n case \"small\":\n size=\"Small\";\n x=0;\n break;\n case \"M\":\n case \"m\":\n case \"Medium\":\n case \"medium\":\n size = \"Medium\";\n x=0;\n break;\n case \"L\":\n case \"l\":\n case \"Large\":\n case \"large\":\n size = \"Large\";\n x=0;\n break;\n default:\n System.out.println(\"invalid choice\");\n x++;\n break;\n }\n } while (x>0);\n\n do {\n System.out.print(\"\\nWhat soda do you prefer?\\n\" +\n \"S- Sprite\\n\" +\n \"R- Rootbeer\\n\" +\n \"F- Orange Fanta\\n\");\n\n String answer = input.nextLine();\n switch (answer) {\n case \"S\":\n case \"s\":\n case \"Sprite\":\n case \"sprite\":\n type=\"Sprite\";\n x=0;\n break;\n case \"R\":\n case \"r\":\n case \"Rootbeer\":\n case \"rootbeer\":\n type = \"Rootbeer\";\n x=0;\n break;\n case \"F\":\n case \"f\":\n case \"Fanta\":\n case \"fanta\":\n case \"Orange Fanta\":\n case \"orange fanta\":\n type = \"Orange Fanta\";\n x=0;\n break;\n default:\n System.out.println(\"invalid choice\");\n x++;\n break;\n }\n } while (x>0);\n return new Beverage(\"Drink\", size, type);\n }",
"private void createUserInterface()\r\n {\r\n // get content pane for attaching GUI components\r\n Container contentPane = getContentPane();\r\n\r\n // enable explicit positioning of GUI components\r\n contentPane.setLayout( null );\r\n \r\n // set up side1JLabel\r\n side1JLabel = new JLabel();\r\n side1JLabel.setBounds( 16, 16, 40, 24 );\r\n side1JLabel.setText( \"Side1:\" );\r\n contentPane.add( side1JLabel );\r\n \r\n // set up side1JTextField\r\n side1JTextField = new JTextField();\r\n side1JTextField.setBounds( 72, 16, 90, 24 );\r\n side1JTextField.setHorizontalAlignment( JTextField.RIGHT ); \r\n contentPane.add( side1JTextField );\r\n \r\n // set up side2JLabel\r\n side2JLabel = new JLabel();\r\n side2JLabel.setBounds( 16, 56, 40, 24 );\r\n side2JLabel.setText( \"Side2:\" );\r\n contentPane.add( side2JLabel );\r\n \r\n // set up side2JTextField\r\n side2JTextField = new JTextField();\r\n side2JTextField.setBounds( 72, 56, 90, 24 );\r\n side2JTextField.setHorizontalAlignment( JTextField.RIGHT );\r\n contentPane.add( side2JTextField );\r\n \r\n // set up side3JLabel\r\n side3JLabel = new JLabel();\r\n side3JLabel.setBounds( 16, 96, 40, 24 );\r\n side3JLabel.setText( \"Side3:\" );\r\n contentPane.add( side3JLabel );\r\n \r\n // set up side3JTextField\r\n side3JTextField = new JTextField();\r\n side3JTextField.setBounds( 72, 96, 90, 24 );\r\n side3JTextField.setHorizontalAlignment( JTextField.RIGHT );\r\n contentPane.add( side3JTextField );\r\n \r\n // set up messageJTextField\r\n messageJTextField = new JTextField();\r\n messageJTextField.setBounds( 16, 140, 252, 24 );\r\n messageJTextField.setEditable( false );\r\n contentPane.add( messageJTextField );\r\n \r\n // set up createJButton\r\n createJButton = new JButton();\r\n createJButton.setBounds( 178, 16, 90, 24 );\r\n createJButton.setText( \"Create\" );\r\n contentPane.add( createJButton );\r\n createJButton.addActionListener( \r\n \r\n new ActionListener() // anonymous inner class\r\n {\r\n // event handler called when createJButton is pressed\r\n public void actionPerformed( ActionEvent event )\r\n {\r\n createJButtonActionPerformed( event );\r\n }\r\n \r\n } // end anonymous inner class\r\n \r\n ); // end call to addActionListener\r\n \r\n // set properties of application's window\r\n setTitle( \"Triangle Creator\" ); // set title bar string\r\n setSize( 290, 208 ); // set window size\r\n setVisible( true ); // display window\r\n \r\n }",
"static public Wizard createWizard (){\n System.out.println(\"Enter the name of your wizard : \");\n Scanner sc = new Scanner(System.in);\n String nameCharacter = sc.next();\n\n // enter and get the HP value of the character\n System.out.println(\"Enter the healpoint of your wizard : \");\n Scanner scan = new Scanner(System.in);\n String healPointCharacter = scan.next();\n int hpCharacter = Integer.parseInt(healPointCharacter);\n\n // get the power value\n System.out.println(\"Enter the power of your wizard : \");\n Scanner sca = new Scanner(System.in);\n String powerCharacter = sca.next();\n int pcCharacter = Integer.parseInt(powerCharacter);\n\n\n // get the initiative (turn order)\n System.out.println(\"Enter the initiative of your wizard : \");\n Scanner scann = new Scanner(System.in);\n String initiativeCharacter = scann.next();\n int iniCharacter = Integer.parseInt(initiativeCharacter);\n\n System.out.println(\"Enter the wizard damage value of your wizard : \");\n Scanner scanS = new Scanner(System.in);\n String wizardDamage = scann.next();\n int wiz = Integer.parseInt(wizardDamage);\n\n Wizard createWizard = new Wizard(nameCharacter, pcCharacter, hpCharacter, iniCharacter, wiz);\n System.out.println(\"Your wizard has been created with success!\");\n\n return createWizard;\n }",
"private boolean validCreateInput() throws SQLException {\n // Checks if any of the fields is empty\n if(teamNameCreateField.getText().equals(\"\") || abbrevationCreateField.getText().equals(\"\")\n || chooseCityBoxCreate.getValue() == null || chooseLeagueBoxCreate.getValue() == null\n || chooseAgeGroupCreate.getValue() == null || chooseLeagueTeamBoxCreate.getValue() == null){\n displayMessage(messagePane,\"Please fill all the fields\",true);\n return false;\n }\n // Checks the abbrevation length\n else if(abbrevationCreateField.getText().length() > 3)\n {\n displayMessage(messagePane,\"Abbrevations must be at most 3 characters\",true);\n return false;\n }\n // Checks team name length\n else if (teamNameCreateField.getText().length() > 30){\n displayMessage(messagePane,\"Team Names must be smaller than 30 characters\",true);\n return false;\n }\n return true;\n }",
"private void basicInfoDialogPrompt() {\n if(!prefBool){\n BasicInfoDialog dialog = new BasicInfoDialog();\n dialog.show(getFragmentManager(), \"info_dialog_prompt\");\n }\n }",
"private static void createCanvas(String[] input) throws NumberFormatException, IncorrectParametersException{\n if (input.length == 3){\n try{\n int w = Integer.parseInt(input[1]); \n int h = Integer.parseInt(input[2]);\n // limit size to a reasonable number\n if ((w <=100) && (h <=100)){\n // Check if there is an active Canvas\n if (canvas != null){\n System.out.println(\"The old canvas is being replaced wiht the new one!\");\n }\n canvas = new Canvas(w, h);\n System.out.println(canvas.render());\n } else {\n System.out.println(\"HELP: Let w and h being of reasonable size!\");\n }\n } catch (NumberFormatException ex) {\n System.out.println(\"HELP: to create a canvas enter `C w h`, with w being the width and h being the height\");\n \n }\n } else {\n System.out.println(\"HELP: to create a canvas enter `C w h`, with w being the width and h being the height\");\n throw new IncorrectParametersException(\"\");\n }\n }",
"public void medicine(){\n\t\tSystem.out.println(\"Name:\");\n\t\tString nameRegistered = reader.nextLine();\n\t\tSystem.out.println(\"Nit:\");\n\t\tString nit = reader.nextLine();\n\t\tSystem.out.println(\"Address:\");\n\t\tString address = reader.nextLine();\n\t\tSystem.out.println(\"Contact number:\");\n\t\tString contactNumber = reader.nextLine();\n\t\tSystem.out.println(\"Number of employees:\");\n\t\tint employees = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Value of the actives:\");\n\t\tdouble value = reader.nextDouble();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Legal representative:\");\n\t\tString legalRepresentative = reader.nextLine();\n\t\tSystem.out.println(\"Constitution date:\");\n\t\tSystem.out.println(\"Day:\");\n\t\tint day = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Month:\");\n\t\tint month = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Year:\");\n\t\tint year = reader.nextInt();\n\t\treader.nextLine();\n\t\tDate constitution = new Date(day, month, year);\n\t\tSystem.out.println(\"floors of the building\");\n\t\tint rows = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Type:\");\n\t\tString type = reader.nextLine();\n\t\tSystem.out.println(\"Sanitary registration:\");\n\t\tString sanitaryRegistration = reader.nextLine();\n\t\tSystem.out.println(\"Status:\");\n\t\tSystem.out.println(\"1. valid\");\n\t\tSystem.out.println(\"2. not renewed\");\n\t\tint theStatus = reader.nextInt();\n\t\treader.nextLine();\n\t\tboolean status = false;\n\t\tif(theStatus == 1){\n\t\t\tstatus = true;\n\t\t}\n\t\tSystem.out.println(\"Modality:\");\n\t\tString modality = reader.nextLine();\n\t\tSystem.out.println(\"Expiration date:\");\n\t\tSystem.out.println(\"Day:\");\n\t\tint expirationDay = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Month:\");\n\t\tint expirationMonth = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Year:\");\n\t\tint expirationYear = reader.nextInt();\n\t\treader.nextLine();\n\t\tDate expiration = new Date(expirationDay, expirationMonth, expirationYear);\n\t\tMedicine toAdd = new Medicine(nameRegistered, nit, address, contactNumber, employees, value, legalRepresentative, constitution, rows, type, sanitaryRegistration, status, modality, expiration);\n\t\ttheHolding.addSubordinate(toAdd);\n\t\tSystem.out.println(\"The company were added successfuly\");\n\t}",
"protected void ingredientDialog() {\n\t\tAlertDialog.Builder alert = new AlertDialog.Builder(this);\n\t\talert.setTitle(\"Add New Ingredient\");\n\n\t\tfinal EditText ingredientET = new EditText(this);\n\t\tingredientET.setHint(\"Ingredient\");\n\n\t\tfinal EditText unitET = new EditText(this);\n\t\tunitET.setHint(\"Unit of measurement\");\n\n\t\tfinal EditText quantityET = new EditText(this);\n\t\tquantityET.setHint(\"Quantity\");\n\n\t\tLinearLayout layout = new LinearLayout(this);\n\t\tlayout.setOrientation(1); // 1 is for vertical orientation\n\t\tlayout.addView(ingredientET);\n\t\tlayout.addView(unitET);\n\t\tlayout.addView(quantityET);\n\n\t\talert.setView(layout);\n\n\t\talert.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\n\t\t\t\tif ((!isEmpty(ingredientET)) && (!isEmpty(unitET))\n\t\t\t\t\t\t&& (!isEmpty(quantityET))) {\n\t\t\t\t\tRecipeView.addIngredient(ingredientET, unitET, quantityET,\n\t\t\t\t\t\t\tcurrentRecipe);\n\t\t\t\t\tpopulateIngredientView();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\talert.setNegativeButton(\"Cancel\",\n\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\n\t\t\t\t\t}\n\t\t\t\t});\n\t\talert.show();\n\t}",
"public void input() {\r\n System.out.print(\"Enter your employee ID number: \");\r\n ID = enter.nextDouble();\r\n \r\n System.out.print(\"Enter your Gross Pay: \");\r\n grosspay = enter.nextDouble();\r\n \r\n System.out.print(\"Enter your State Tax: \");\r\n Statetax = enter.nextDouble();\r\n \r\n System.out.print(\"Enter your Federal Tax: \");\r\n Fedtax = enter.nextDouble(); }",
"public static void contractors(){\n NewProject.contract_name = getInput(\"Please enter the NEW name of the contractor:\");\r\n\r\n NewProject.contract_tel = getInput(\"Please enter the NEW telephone number of the contractor:\");\r\n\r\n NewProject.contract_email = getInput(\"Please enter the NEW email of the contractor:\");\r\n\r\n NewProject.contract_address = getInput(\"Please enter the NEW email of the contractor:\");\r\n\r\n UpdateData.updateContractor();\r\n updateMenu();\t//Return back to previous menu.\r\n }",
"@Override\n public void onClick(View v) {\n\n if(radio.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"성별을 선택해 주세요\", Toast.LENGTH_SHORT).show();\n } else if(edit2.getText().toString().length() == 0) {\n Toast.makeText(getApplicationContext(), \"키를 입력해주세요\", Toast.LENGTH_SHORT).show();\n } else if(Integer.parseInt(edit2.getText().toString()) > 400) {\n Toast.makeText(getApplicationContext(), \"키를 올바르게 입력해 주세요\", Toast.LENGTH_SHORT).show();\n } else if(edit3.getText().toString().length() == 0) {\n Toast.makeText(getApplicationContext(), \"나이를 입력해주세요\", Toast.LENGTH_SHORT).show();\n } else if(Integer.parseInt(edit3.getText().toString()) > 150) {\n Toast.makeText(getApplicationContext(), \"나이를 올바르게 입력해 주세요\", Toast.LENGTH_SHORT).show();\n } else {\n height = edit2.getText().toString();\n age = edit3.getText().toString();\n\n //다음 액티비티로 넘어가는 장면\n Intent i = new Intent(getApplicationContext(), DeviceScanActivity.class);\n startActivity(i); //리턴값이 필요없음\n finish();\n }\n\n }",
"private void pInfo_updateExisting() {\r\n\r\n // currentPatient is the one who is searched\r\n // does not search for patient again, in case Last name or SSN are changed\r\n\r\n // values to test if there are no input errors\r\n boolean emptyFields = true, illegalFields = true;\r\n\r\n //UIManager.put(\"OptionPane.minimumSize\",new Dimension(500,300));\r\n String errorMessage = \"Must Enter\";\r\n if (String.valueOf(pInfo_firstNameTextField.getText()).equals(\"\")) {\r\n errorMessage += \" First Name,\";\r\n emptyFields = false;\r\n }\r\n if (String.valueOf(pInfo_lastNameTextField.getText()).equals(\"\")) {\r\n errorMessage += \" Last Name,\";\r\n emptyFields = false;\r\n }\r\n if (String.valueOf(pInfo_ssnTextField.getText()).equals(\"\")) {\r\n errorMessage += \" Social Security #,\";\r\n emptyFields = false;\r\n }\r\n if (String.valueOf(pInfo_dobTextField.getText()).equals(\"\")) {\r\n errorMessage += \" Date of Birth,\";\r\n emptyFields = false;\r\n }\r\n if (String.valueOf(pInfo_phoneNumberTextField.getText()).equals(\"\")) {\r\n errorMessage += \" Phone Number,\";\r\n emptyFields = false;\r\n }\r\n if (String.valueOf(pInfo_addressTextField).equals(\"\")) {\r\n errorMessage += \" Street,\";\r\n emptyFields = false;\r\n }\r\n if (String.valueOf(pInfo_cityTextField).equals(\"\")) {\r\n errorMessage += \" City,\";\r\n emptyFields = false;\r\n }\r\n\r\n if (String.valueOf(pInfo_zipCodeTextField).equals(\"\")) {\r\n errorMessage += \" Zip Code,\";\r\n emptyFields = false;\r\n }\r\n\r\n // if there's no middle name, the text field\r\n // is set to \"N/A\"\r\n String middleName;\r\n if (String.valueOf(pInfo_middleNameTextField.getText()).equals(\"\"))\r\n middleName = \"N/A\";\r\n else middleName = pInfo_middleNameTextField.getText();\r\n\r\n // throws error if last name has characters other than letters\r\n if (pInfo_lastNameTextField.getText().length() > 0) {\r\n for (int i = 0; i < pInfo_lastNameTextField.getText().length(); i++) {\r\n if (!Character.isLetter(pInfo_lastNameTextField.getText().charAt(i))) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Last Name Must Have Only Letters\");\r\n illegalFields = false;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n // throws error if first name has characters other than letters\r\n if (pInfo_firstNameTextField.getText().length() > 0) {\r\n for (int i = 0; i < pInfo_firstNameTextField.getText().length(); i++) {\r\n if (!Character.isLetter(pInfo_firstNameTextField.getText().charAt(i))) {\r\n JOptionPane.showMessageDialog\r\n (null, \"First Name Must Have Only Letters\");\r\n illegalFields = false;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n // throws error if middle name has characters other than letters\r\n if (pInfo_middleNameTextField.getText().length() > 0 &&\r\n !String.valueOf(pInfo_middleNameTextField.getText()).equals(\"N/A\")) {\r\n for (int i = 0; i < middleName.length(); i++) {\r\n if (!Character.isLetter(middleName.charAt(i))) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Middle Name Must Have Only Letters\");\r\n illegalFields = false;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n // throws error if SSN has characters other than numbers, or has less/more than 4 digits\r\n if (pInfo_ssnTextField.getText().length() > 0 && pInfo_ssnTextField.getText().length() != 4) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Social Security # Must Have 4 Characters\");\r\n illegalFields = false;\r\n } else if (pInfo_ssnTextField.getText().length() == 4) {\r\n for (int i = 0; i < 4; i++) {\r\n if (!Character.isDigit(pInfo_ssnTextField.getText().charAt(i))) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Social Security # Must Have Only Numbers\");\r\n illegalFields = false;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n // throws error if DOB isn't formatted correctly - \"MM/DD/YYYY\"\r\n if (pInfo_dobTextField.getText().length() > 0 && pInfo_dobTextField.getText().length() != 10) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Date of Birth must be formatted \\\"MM/DD/YYYY\\\"\");\r\n illegalFields = false;\r\n } else if (pInfo_dobTextField.getText().length() == 10) {\r\n if (!dobParser(pInfo_dobTextField.getText())) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Date of Birth must be formatted \\\"MM/DD/YYYY\\\"\");\r\n illegalFields = false;\r\n }\r\n }\r\n\r\n // throws error if phone number isn't formatted correctly - \"###-###-####\"\r\n if (pInfo_phoneNumberTextField.getText().length() > 0 && pInfo_phoneNumberTextField.getText().length() != 12) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Phone Number Must be formatted \\\"###-###-####\\\"\");\r\n illegalFields = false;\r\n } else if (pInfo_phoneNumberTextField.getText().length() == 12) {\r\n if (!phoneNumberParser(pInfo_phoneNumberTextField.getText())) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Phone Number Must be formatted \\\"###-###-####\\\"\");\r\n illegalFields = false;\r\n }\r\n }\r\n\r\n // throws error if address has characters other than letters and numbers\r\n if (pInfo_addressTextField.getText().length() > 0) {\r\n for (int i = 0; i < pInfo_addressTextField.getText().length(); i++) {\r\n if (!Character.isLetter(pInfo_addressTextField.getText().charAt(i)) &&\r\n !Character.isDigit(pInfo_addressTextField.getText().charAt(i))) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Address Must Have Only Numbers and Letters\");\r\n illegalFields = false;\r\n }\r\n }\r\n }\r\n\r\n // throws error if city has characters other than letters\r\n if (pInfo_cityTextField.getText().length() > 0) {\r\n for (int i = 1; i < pInfo_cityTextField.getText().length(); i++) {\r\n if (!Character.isLetter(pInfo_cityTextField.getText().charAt(i))) {\r\n JOptionPane.showMessageDialog\r\n (null, \"City Must Have Only Letters\");\r\n illegalFields = false;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n // throws error if zip code has characters other than numbers, or has less/more than 4 digits\r\n if (pInfo_zipCodeTextField.getText().length() > 0 && pInfo_zipCodeTextField.getText().length() != 5) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Zip Code Must Have 5 Characters\");\r\n illegalFields = false;\r\n } else if (pInfo_zipCodeTextField.getText().length() == 5) {\r\n for (int i = 0; i < 5; i++) {\r\n if (!Character.isDigit(pInfo_zipCodeTextField.getText().charAt(i))) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Zip Code Must Have Only Numbers\");\r\n illegalFields = false;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n // checks if there are no input errors\r\n if (emptyFields && illegalFields && currentPatient != null) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Information Updated\");\r\n currentPatient.setL_name(pInfo_lastNameTextField.getText());\r\n currentPatient.setF_name(pInfo_firstNameTextField.getText());\r\n currentPatient.setM_name(middleName);\r\n currentPatient.setSSN(Integer.parseInt(pInfo_ssnTextField.getText()));\r\n currentPatient.setDob(pInfo_dobTextField.getText());\r\n currentPatient.setP_number(pInfo_phoneNumberTextField.getText());\r\n currentPatient.setAddress(pInfo_addressTextField.getText());\r\n currentPatient.setCity(pInfo_cityTextField.getText());\r\n currentPatient.setState(String.valueOf(pInfo_stateComboBox.getSelectedItem()));\r\n currentPatient.setZip(Integer.parseInt(pInfo_zipCodeTextField.getText()));\r\n currentPatient.setUser_name(pInfo_userField.getText());\r\n currentPatient.setPassword(pInfo_pwField.getText());\r\n\r\n String policy = (String) pInfo_policyComboBox.getSelectedItem();\r\n\r\n if (policy.equals(\"Yes\"))\r\n currentPatient.setPolicy(true);\r\n else\r\n currentPatient.setPolicy(true);\r\n\r\n\r\n } else if (!String.valueOf(errorMessage).equals(\"Must Enter\"))\r\n JOptionPane.showMessageDialog(null, errorMessage);\r\n\r\n else if (currentPatient == null)\r\n JOptionPane.showMessageDialog(null, \"Error\");\r\n }",
"private void readContactInfo() {\n\t\tScanner console = new Scanner(System.in);\n\t\tPerson tempPerson = new Person();\n\t\tString stringInput;\n\t\t\n\t\tSystem.out.println(\"Please press enter after each input, or \"\n\t\t\t\t\t\t\t+ \"input only 'c' to cancel.\");\n\t\tSystem.out.print(\"Last name: \");\n\t\tstringInput = console.nextLine().trim();\n\t\tif (isCancelled(stringInput)) { //terminates if user enters \"c\"\n\t\t\tSystem.out.println(\"No contact added.\");\n\t\t\treturn;\n\t\t} else if (stringInput.isEmpty()) { //terminates if last name is blank\n\t\t\tSystem.err.println(\"Last name is required. No contact added!\");\n\t\t\treturn;\n\t\t} else {\n\t\t\ttempPerson.setLastName(stringInput);\n\t\t}\n\t\t\n\t\tSystem.out.print(\"First name: \");\n\t\tstringInput = console.nextLine().trim();\n\t\tif (isCancelled(stringInput)) { //terminates if user enters \"c\"\n\t\t\tSystem.out.println(\"No contact added.\");\n\t\t\treturn;\n\t\t} else if (stringInput.isEmpty()) { //terminates if first name is blank\n\t\t\tSystem.err.println(\"First name is required. No contact added!\");\n\t\t\treturn;\n\t\t} else {\n\t\t\ttempPerson.setFirstName(stringInput);\n\t\t}\n\t\t\n\t\t\n\t\tStreetAddress address = new StreetAddress();\n\t\tSystem.out.println(\"Address: \");\n\t\tSystem.out.print(\"\\tHouse/Apartment: \");\n\t\tstringInput = console.nextLine().trim();\n\t\tif (isCancelled(stringInput)) { //terminates if user enters \"c\"\n\t\t\tSystem.out.println(\"No contact added.\");\n\t\t\treturn;\n\t\t} else {\n\t\t\taddress.setHouse(stringInput);\n\t\t}\n\t\t\n\t\tSystem.out.print(\"\\tCity: \");\n\t\tstringInput = console.nextLine().trim();\n\t\tif (isCancelled(stringInput)) { //terminates if user enters \"c\"\n\t\t\tSystem.out.println(\"No contact added.\");\n\t\t\treturn;\n\t\t} else {\n\t\t\taddress.setCity(stringInput);\n\t\t}\n\t\t\n\t\tSystem.out.print(\"\\tState: \");\n\t\tstringInput = console.nextLine().trim();\n\t\tif (isCancelled(stringInput)) { //terminates if user enters \"c\"\n\t\t\tSystem.out.println(\"No contact added.\");\n\t\t\treturn;\n\t\t} else {\n\t\t\taddress.setState(stringInput);\n\t\t}\n\t\t\n\t\tSystem.out.print(\"\\tZip code: \");\n\t\tstringInput = console.nextLine().trim();\n\t\tif (isCancelled(stringInput)) { //terminates if user enters \"c\"\n\t\t\tSystem.out.println(\"No contact added.\");\n\t\t\treturn;\n\t\t} else {\n\t\t\taddress.setZip(stringInput);\n\t\t}\n\t\t\n\t\tSystem.out.print(\"\\tCountry: \");\n\t\tstringInput = console.nextLine().trim();\n\t\tif (isCancelled(stringInput)) { //terminates if user enters \"c\"\n\t\t\tSystem.out.println(\"No contact added.\");\n\t\t\treturn;\n\t\t} else {\n\t\t\taddress.setCountry(stringInput);\n\t\t\ttempPerson.setAddress(address);\n\t\t}\n\t\t\t\n\t\tSystem.out.print(\"Email address: \");\n\t\tstringInput = console.nextLine().trim();\n\t\tif (isCancelled(stringInput)) { //terminates if user enters \"c\"\n\t\t\tSystem.out.println(\"No contact added.\");\n\t\t\treturn;\n\t\t} else {\n\t\t\ttempPerson.setEmail(stringInput);\n\t\t}\n\t\t\n\t\tSystem.out.print(\"Phone number(XXX XXX XXXX): \");\n\t\tstringInput = console.nextLine().trim();\n\t\tif (isCancelled(stringInput)) { //terminates if user enters \"c\"\n\t\t\tSystem.out.println(\"No contact added.\");\n\t\t\treturn;\n\t\t} else {\n\t\t\ttempPerson.setPhone(stringInput);\n\t\t}\n\t\n\t\tSystem.out.print(\"Notes: \");\n\t\tstringInput = console.nextLine().trim();\n\t\tif (isCancelled(stringInput)) { //terminates if user enters \"c\"\n\t\t\tSystem.out.println(\"No contact added.\");\n\t\t\treturn;\n\t\t} else {\n\t\t\ttempPerson.setNotes(stringInput);\n\t\t}\n\t\t\n\t\tcontactList[contactCounter] = tempPerson;\n\t\tSystem.out.println(\"New contact added!\");\n\t\tcontactCounter++;\n\t}",
"private void showAddDetailsDialog() {\n\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(getActivity());\n AlertDialog dialog = alertDialog.create();\n\n if (dialog.getWindow() != null) {\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);\n }\n\n View view = LayoutInflater.from(getActivity()).inflate(R.layout.add_student_details_layout, null);\n dialog.setView(view);\n\n final EditText studentIDText = view.findViewById(R.id.studentIDText);\n final EditText studentNameText = view.findViewById(R.id.studentNameText);\n final EditText fatherNameText = view.findViewById(R.id.fatherNameText);\n final EditText phoneText = view.findViewById(R.id.phoneText);\n final EditText emailText = view.findViewById(R.id.emailText);\n final MaterialSpinner standardDropdown = view.findViewById(R.id.standardDropdown);\n final MaterialSpinner sectionDropdown = view.findViewById(R.id.sectionDropdown);\n\n //just in case,, error is to be generated\n studentIDLayout = view.findViewById(R.id.studentIDInputLayout);\n studentNameLayout = view.findViewById(R.id.studentNameInputLayout);\n fatherNameLayout = view.findViewById(R.id.fatherNameInputLayout);\n phoneLayout = view.findViewById(R.id.phoneInputLayout);\n emailLayout = view.findViewById(R.id.emailInputLayout);\n genderErrorText = view.findViewById(R.id.genderErrorText);\n\n final RadioButton maleRadio = view.findViewById(R.id.maleRadio);\n final RadioButton femaleRadio = view.findViewById(R.id.femaleRadio);\n\n final CardView addDetailsCard = view.findViewById(R.id.addDetailsButton);\n final CardView closeCard = view.findViewById(R.id.closeButton);\n\n final String[] arrStandard = getResources().getStringArray(R.array.standard_array);\n standard = arrStandard[0];\n if (standardDropdown != null) {\n standardDropdown.setItems(arrStandard);\n standardDropdown.setOnItemSelectedListener((MaterialSpinner.OnItemSelectedListener<String>) (view12, position, id, item) -> standard = item);\n }\n\n final String[] arrSection = getResources().getStringArray(R.array.section_array);\n section = arrSection[0];\n if (sectionDropdown != null) {\n sectionDropdown.setItems(arrSection);\n sectionDropdown.setOnItemSelectedListener((MaterialSpinner.OnItemSelectedListener<String>) (view12, position, id, item) -> section = item);\n }\n\n if (addDetailsCard != null) {\n addDetailsCard.setOnClickListener(view1 -> {\n studentID = studentIDText.getText().toString();\n studentName = studentNameText.getText().toString();\n fatherName = fatherNameText.getText().toString();\n phone = phoneText.getText().toString();\n\n List<School> schools = db.schoolDao().getAll();\n int school = -1;\n if (schools.size() > 0)\n school = schools.get(0).getId();\n\n email = emailText.getText().toString();\n\n if (maleRadio != null && femaleRadio != null) {\n if (maleRadio.isChecked()) {\n gender = \"M\";\n } else if (femaleRadio.isChecked()) {\n gender = \"F\";\n }\n }\n\n //input validation\n if (isInputValid()) {\n try {\n SchoolAPI.getInstance(getContext()).addStudentDetails(studentID, studentName, school, email, phone, this.standard, section, gender, fatherName, dialog, db);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n });\n }\n\n if (closeCard != null) {\n Log.d(TAG, \"close card!!\");\n closeCard.setOnClickListener(view1 -> {\n Log.d(TAG, \"card closed\");\n dialog.dismiss();\n });\n }\n\n dialog.setCancelable(false);\n dialog.show();\n }",
"public void createAccount() {\n\t\tSystem.out.print(\"Enter Name: \");\n\t\tString name = nameCheck(sc.next());\n\t\tSystem.out.print(\"Enter Mobile No.: \");\n\t\tlong mobNo = mobCheck(sc.nextLong());\n\t\tlong accNo = mobNo - 1234;\n\t\tSystem.out.print(\"Enter Balance: \"); \n\t\tfloat balance = amountCheck(sc.nextFloat());\n\t\tuserBean BeanObjCreateAccountObj = new userBean(accNo, name, mobNo, balance);\n\t\tSystem.out.println(\"Account created with Account Number: \" +accNo);\n\t\tServiceObj.bankAccountCreate(BeanObjCreateAccountObj);\n\t\t\n\t\n\t}",
"public void createEssay() {\n Question q = new Essay(this.in,this.o);\n this.o.setDisplay(\"Enter the prompt for your Essay question:\\n\");\n this.o.getDisplay();\n\n q.setPrompt(this.in.getUserInput());\n\n int numAns = 0;\n while (numAns == 0) {\n this.o.setDisplay(\"How many answers does this question have?\\n\");\n this.o.getDisplay();\n\n try {\n numAns = Integer.parseInt(this.in.getUserInput());\n if (numAns > numChoices || numAns < 1) {\n numAns = 0;\n } else {\n q.setMaxResponses(numAns);\n }\n } catch (NumberFormatException e) {\n numAns = 0;\n }\n }\n\n if (isTest) {\n RCA ca = new RCA(this.in,this.o);\n Test t = (Test)this.survey;\n String ans;\n\n this.o.setDisplay(\"Enter correct answer(s)\\n\");\n this.o.getDisplay();\n\n for (int j=0; j < q.getMaxResponses(); j++){\n\n ans = this.in.getUserInput();\n\n ca.addResponse(ans);\n }\n t.addAnswer(ca);\n }\n\n this.survey.addQuestion(q);\n }",
"public void actionPerformed(ActionEvent e) {\r\n\t\t\t// The input should have been accepted even if there are extra white spaces at the end\r\n\t\t\t// but it would complicate the codes to get rid of the spaces at the end of the input string\r\n\t\t\t// so if there are more than one white space at the end of the input string,\r\n\t\t\t// which would cause an exception later on when the input string got split by \" \"\r\n\t\t\t// so the program will just ask for another input when the input is in the wrong format\r\n\t\t\t// and detailed instruction is given at the top of the GUI\r\n\t\t\tinstr.setText(\"Input the size of array, and then input the elements of the array, separated by a single white space, and ended with no more than one white space.\");\r\n\t\t\tdefaultVar(canvas);\r\n\t\t\tJFrame frame = new JFrame(\"User's input of the array\");\r\n\t\t\t// Prompt the user to enter the input the size and data of the array \r\n\t\t\tString arrSizeString = JOptionPane.showInputDialog(frame, \"What's the size of this array?\");\r\n\t\t\tif (arrSizeString != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tint arrSize = Integer.parseInt(arrSizeString);\r\n\t\t\t\t\twhile (arrSize > 10) {\r\n\t\t\t\t\t\tToolkit.getDefaultToolkit().beep();\r\n\t\t\t\t\t\tarrSize = Integer.parseInt(JOptionPane.showInputDialog(frame, \r\n\t\t\t\t\t\t\t\t \"For demo purpose, array size can't be bigger than 10. Please input the data again!\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString arrData = JOptionPane.showInputDialog(frame, \"List the elements of array separated by whitespace.\");\r\n\t\t\t\t\tif (arrData != null && !arrData.equals(\"\")) {\r\n\t\t\t\t\t\twhile (!isInRightFormat(arrData)) {\r\n\t\t\t\t\t\t\tarrData = JOptionPane.showInputDialog(frame, \"Elements of array need to be separated by whitespace and be integers. Please re-try.\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (arrData != null) {\r\n\t\t\t\t\t\t\tString[] elements = arrData.split(\" \");\r\n\t\t\t\t\t\t\tif (elements.length != arrSize) {\r\n\t\t\t\t\t\t\t\t// Here when the resulting number of elements doesn't match the size of array that has been assigned\r\n\t\t\t\t\t\t\t\t// The program should have been able to ask the user to re-enter a different input\r\n\t\t\t\t\t\t\t\t// However, it takes a lot of steps to test whether an input actually qualifies the requirements\r\n\t\t\t\t\t\t\t\t// Hence, the program will just output a warning and ask the user to re-click the button to enter another input\r\n\t\t\t\t\t\t\t\t// This will simplify the codes, but I am aware that for the user experience, \r\n\t\t\t\t\t\t\t\t// it would be more effective if the user doesn't have to re-click at this point\r\n\t\t\t\t\t\t\t\tToolkit.getDefaultToolkit().beep();\r\n\t\t\t\t\t\t\t\t// Warning\r\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(frame,\r\n\t\t\t\t\t\t\t\t\t\t\"Wrong size of array. Please re-click the button.\",\r\n\t\t\t\t\t\t\t\t\t\t\"Input Warning\",\r\n\t\t\t\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t\t\t\t} else if (arrData.split(\" \") != null) {\r\n\t\t\t\t\t\t\t\telements = arrData.split(\" \");\r\n\t\t\t\t\t\t\t\tcanvas.arr = new int[arrSize];\r\n\t\t\t\t\t\t\t\tfor (int i = 0; i < elements.length; i++) {\r\n\t\t\t\t\t\t\t\t\tcanvas.arr[i] = Integer.parseInt(elements[i]);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tcanvas.repaint();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch(NumberFormatException error) {\t\r\n\t\t\t\t\tJFrame frame2 = new JFrame(\"\");\r\n\t\t\t\t\t// Warning\r\n\t\t\t\t\tJOptionPane.showMessageDialog(frame2,\r\n\t\t\t\t\t\t\t\"Input size is not a valid number\",\r\n\t\t\t\t\t\t\t\"Input Warning\",\r\n\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t} \r\n\t\t\t}\r\n\t\t}",
"private static BookingCustomer customerDetailsInput()\n\t{\n\t\t//constructor with initial values for the customer's informations\n\t\tBookingCustomer aClient = new BookingCustomer(\"Paludo\", 21, true);\n\t\t\n\t\t//new scanner\n\t\tScanner input = new Scanner(System.in);\n\t\t\n\t\t//asks the user to enter his/her information and uses the set methods to build the object\n\t\tSystem.out.println(\"Please enter your name:\");\n\t\taClient.setName(input.nextLine());\n\t\t\n\t\tSystem.out.println(\"Please enter your age:\");\n\t\taClient.setAge(input.nextInt());\n\t\t\n\t\t//asks if the student is a student\n\t\tSystem.out.println(\"Are you a student? (Y/N)\");\n\t\tchar yesNo = input.next().charAt(0);\n\t\t\n\t\t//if the answer is y\n\t\tif (yesNo == 'Y' || yesNo == 'y')\n\t\t{\n\t\t\t//is a student\n\t\t\taClient.setStudent(true);\n\t\t}\n\t\t//if the answer is n\n\t\telse if (yesNo == 'N' || yesNo == 'n')\n\t\t{\n\t\t\t//is not a student\n\t\t\taClient.setStudent(false);\n\t\t}\n\t\t\n\t\t//returns the client object\n\t\treturn\n\t\t\t\taClient;\n\t}",
"public static void main(String[] args) {\n double cost;\n double diameter;\n double unitCost;\n\n//----Get data\n System.out.print(\"What size pizza : \");\n diameter = keyboard.nextDouble();\n System.out.print(\"What does it cost : \");\n cost = keyboard.nextDouble();\n\n//----Perform computation\n unitCost = computeUnitCost(diameter,cost);\n\n//----Display the diameter, the total cost, and the unit cost\n System.out.println(\"Diameter is \" + diameter);\n System.out.println(\"Total cost is \" + cost);\n System.out.println(\"Unit cost is \" + unitCost);\n\n }",
"public WindDragon(String owner)\n {\n input = new Scanner(System.in);\n \n setType(\"Wind\");\n setOwner(owner);\n decideNature();\n decideGender();\n decideName();\n setLevel(1);\n setExp(0);\n }",
"public static void Display(Bank bank)\n {\n int choice;\n System.out.println(\"********** Bank Menu **********\");\n System.out.println(\"1- Add New Client\");\n System.out.println(\"2- List All Accounts / Clients\");\n System.out.println(\"3- Withdraw / Deposit\");\n System.out.println(\"4- Exit\");\n choice = input.nextInt();\n do {\n\n switch (choice) {\n case 1:\n //create new client\n System.out.println(\"Please select what type of client you'd like (1 for client , 2 for commercial client )\");\n int choice2 = input.nextInt();\n if(choice2 == 1)\n {\n Client client = new Client();\n System.out.println(\"Please enter your name\");\n input.nextLine(); //This is needed to pick up the new line\n String value = input.nextLine();\n client.setName(value);\n System.out.println(\"Please enter your Address\");\n value = input.nextLine();\n client.setAddress(value);\n System.out.println(\"Please enter your nationalID\");\n int number = input.nextInt();\n client.setNationalID(number);\n System.out.println(\"Please enter your phone number\");\n number = input.nextInt();\n client.setPhone(number);\n System.out.println(\"Please select what type of account you'd like (1 for normal, 2 for special)\");\n number = input.nextInt();\n if(number==1){\n Account account = new Account();\n client.setaccount(account);\n account.setbalance(0);\n System.out.println(\"Please enter your account_number\");\n number = input.nextInt();\n account.setaccount_number(number);\n }\n else\n {\n SpecialAccount special = new SpecialAccount();\n client.setaccount(special);\n special.setbalance(0);\n System.out.println(\"Please enter your account_number\");\n number = input.nextInt();\n special.setaccount_number(number);\n }\n\n bank.AddClient(client);\n }\n else\n {\n CommercialClient client = new CommercialClient();\n System.out.println(\"Please enter your name\");\n input.nextLine(); //This is needed to pick up the new line\n String value = input.nextLine();\n client.setName(value);\n System.out.println(\"Please enter your Address\");\n value = input.nextLine();\n client.setAddress(value);\n System.out.println(\"Please enter your nationalID\");\n int number = input.nextInt();\n client.setNationalID(number);\n System.out.println(\"Please enter your phone\");\n number = input.nextInt();\n client.setPhone(number);\n System.out.println(\"Please enter your commercial ID\");\n number = input.nextInt();\n client.setC_ID(number);\n System.out.println(\"Please enter what type of account you'd like (1 for normal, 2 for special)\");\n number = input.nextInt();\n if(number==1){\n Account account = new Account();\n client.setaccount(account);\n account.setbalance(0);\n System.out.println(\"Please enter your account_number\");\n number = input.nextInt();\n account.setaccount_number(number);\n }\n else\n {\n SpecialAccount special = new SpecialAccount();\n client.setaccount(special);\n special.setbalance(0);\n System.out.println(\"Please enter your account_number\");\n number = input.nextInt();\n special.setaccount_number(number);\n }\n bank.AddClient(client);\n }\n\n\n break;\n case 2:\n //list all\n bank.DisplayClient();\n break;\n case 3:\n //withdraw\n System.out.println(\"Please provide us with your phone number\");\n long phone = input.nextLong();\n Client c1 = bank.findClient(phone);\n if(c1==null)\n break;\n int option;\n System.out.println();\n System.out.println(\"1- Withdraw\");\n System.out.println(\"2- Deposit\");\n option = input.nextInt();\n if (option == 1) {\n System.out.println(\"how much would you like to withdraw\");\n double val1 = input.nextDouble();\n c1.getaccount().withdraw(val1);\n } else {\n System.out.println(\"how much would you like to deposit?\");\n double val2 = input.nextDouble();\n c1.getaccount().deposit(val2); }\n break;\n case 4:\n System.exit(0);\n break;\n default:\n System.out.println(\"Please choose from 1 to 4\");\n }\n System.out.println(\"********** Bank Menu **********\");\n System.out.println(\"1- Add New Client\");\n System.out.println(\"2- List All Accounts / Clients\");\n System.out.println(\"3- Withdraw / Deposit\");\n System.out.println(\"4- Exit\");\n choice = input.nextInt();\n }while (choice != 4);\n\n\n }",
"public static void alteraDep() {\n\t\tString nome, novaInfo = \"\";\n\t\tScanner sc = new Scanner(System.in);\n\t\tint check = 0;\n\n\t\tdo {\n\t\t\tSystem.out.println(\"\\nInsira o nome do departamento:\");\n\t\t\tnome = sc.nextLine();\n\t\t\tif(verificarLetras(nome) && nome.length()>0) {\n\t\t\t\tcheck = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nO nome apenas pode conter letras\");\n\t\t\t}\n\t\t}while(check==0);\n\t\t\n\t\tcheck = 0;\n\t\t\n\t\tSystem.out.println(\"\\nQual dos campos pretende alterar?\\n1- Morada\\n2- Numero de contacto\\n3- Email de contacto\\n4- Faculdade em que se insere\");\n\t\tString op = sc.nextLine();\n\t\t\n\t\tswitch(op) {\n\t\t\tcase \"1\":\n\t\t\t\tSystem.out.println(\"\\nInsira a nova morada:\");\n\t\t\t\tnovaInfo = sc.nextLine();\n\t\t\t\tbreak;\n\t\t\tcase \"2\":\n\t\t\t\tdo {\n\t\t\t\t\tSystem.out.println(\"Insira o numero de contacto:\\n\");\n\t\t\t\t\tnovaInfo = sc.nextLine();\n\t\t\t\t\tif(verificarNumeros(novaInfo) && novaInfo.length()<= 9) {\n\t\t\t\t\t\tif (Integer.parseInt(novaInfo) > 0) {\n\t\t\t\t\t\t\tcheck = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"\\nO numero de contacto so pode conter 9 digitos\");\n\t\t\t\t\t}\n\t\t\t\t}while(check==0);\n\t\t\t\tcheck = 0;\n\t\t\t\tbreak;\n\t\t\tcase \"3\":\n\t\t\t\tSystem.out.println(\"Insira o email:\\n\");\n\t\t\t\tnovaInfo = sc.nextLine();\n\t\t\t\tbreak;\n\t\t\tcase \"4\":\n\t\t\t\tdo {\n\t\t\t\t\tSystem.out.println(\"\\nInsira o nome da faculdade:\");\n\t\t\t\t\tnovaInfo = sc.nextLine();\n\t\t\t\t\tif(verificarLetras(novaInfo) && novaInfo.length()>0) {\n\t\t\t\t\t\tcheck = 1;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"\\nO nome apenas pode conter letras\");\n\t\t\t\t\t}\n\t\t\t\t}while(check==0);\n\t\t\t\tcheck = 0;\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\tString msgServer = \"\";\n\t\t\n\t\tcheck = 0;\n\t\tint tries = 0;\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tmsgServer = rmiserver.alterarDep(nome, op, novaInfo);\n\t\t\t\tSystem.out.println(msgServer);\n\t\t\t\tSystem.out.println(\"\\n\");\n\t\t\t\tcheck = 1;\n\t\t\t} catch (RemoteException e1) {\n\t\t\t\t// Tratamento da Excepcao da chamada RMI inserirFac\n\t\t\t\tif(tries == 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(6000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries > 0 && tries < 24) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries >= 24) {\n\t\t\t\t\tSystem.out.println(\"Impossivel realizar a operacao devido a falha tecnica (Servidores RMI desligados).\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}while(check==0);\n\t\tcheck = 0;\n\t}",
"public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n// System.out.println(\"Enter a brief sentence: \");\n//// String userSentence = scanner.next(); // Doesn't work with more than one word\n// String userSentence = scanner.nextLine();\n// System.out.printf(\"Your sentence was: %s\", userSentence);\n//// System.out.format(\"Here is the random variable: %s%n\", random);\n\n\n\n// Scanner scanner = new Scanner(System.in);\n///////////////// Attempt as using strings ////////////\n// System.out.println(\"Please enter length:\");\n// double userLength = new Double(scanner.nextLine());\n// System.out.println(\"Please enter width:\");\n// double userWidth = scanner.nextDouble();\n\n\n// String userLength = scanner.next();\n// String userWidth = scanner.nextLine();\n// int numLength = (int) userLength;\n// int numWidth = (int) userWidth;\n///////////////////////////////////////////////////////\n\n///////////////// Using integers //////////////////////\n// System.out.println(\"Please enter a length: \");\n// int userLength = scanner.nextInt();\n// System.out.println(\"Please enter a width: \");\n// int userWidth = scanner.nextInt();\n///////////////////////////////////////////////////////\n\n///////////////// Using decimals //////////////////////\n System.out.println(\"Please enter the length of the room, in decimal format: \");\n double userLength = scanner.nextDouble();\n System.out.println(\"Please enter the width of the room, in decimal format: \");\n double userWidth = scanner.nextDouble();\n System.out.println(\"Please enter the height of the room, in decimal format:\");\n double userHeight = scanner.nextDouble();\n///////////////////////////////////////////////////////\n\n System.out.format(\"You entered a length of %.2f, a width of %.2f, and a height of %.2f.\\n\", userLength, userWidth, userHeight);\n\n// System.out.println(\"The area is: \" + (userLength*userWidth));\n// System.out.println(\"The perimeter is: \" + (2*userLength + 2*userWidth));\n\n System.out.printf(\"The area of the room is %.2f square feet.%n\", userLength*userWidth);\n System.out.printf(\"The perimeter of the room is %.2f feet.%n\", 2*userLength + 2*userWidth);\n System.out.printf(\"The volume of the room is %.2f cubic feet.%n\", userLength*userWidth*userHeight);\n\n\n\n\n }",
"@FXML\n\tpublic void createClient(ActionEvent event) {\n\t\tString empty = \"\";\n\t\tString names = txtClientNames.getText();\n\t\tString surnames = txtClientSurnames.getText();\n\t\tString id = txtClientId.getText();\n\t\tString adress = txtClientAdress.getText();\n\t\tString phone = txtClientPhone.getText();\n\t\tString observations = txtClientObservations.getText();\n\n\t\tif (!names.equals(empty) && !surnames.equals(empty) && !id.equals(empty) && !adress.equals(empty)\n\t\t\t\t&& !phone.equals(empty) && !observations.equals(empty)) {\n\t\t\tcreateClient(names, surnames, id, adress, phone, observations, 1);\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\tdialog.setContentText(\"Todos los campos de texto deben ser llenados\");\n\t\t\tdialog.show();\n\t\t}\n\t}",
"protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }",
"@Override\n public void onClick(View v) {\n if (Model.isEmpty(rectanglePDiagonalLET)) {\n rectanglePDiagonalLET.setError(Html.fromHtml (\"<font color='red'>Enter value</font>\"));\n } else if (Model.isEmpty(rectanglePDiagonalWET)) {\n rectanglePDiagonalWET.setError(Html.fromHtml (\"<font color='red'>Enter value</font>\"));\n } else {\n double length, width, rectangleDiaognal;\n length = Double.parseDouble(rectanglePDiagonalLET.getText().toString());\n width = Double.parseDouble(rectanglePDiagonalWET.getText().toString());\n if (length <= 0) {\n rectanglePDiagonalAnswerTV.setText(\"The variable l should be positive\");\n } else if (width<= 0) {\n rectanglePDiagonalAnswerTV.setText(\"The variable w should be positive\");\n } else {\n rectangleDiaognal = Math.sqrt((Math.pow(width,2))+(Math.pow(length,2)));\n rectanglePDiagonalAnswerTV.setText(String.format(\"%.02f\", rectangleDiaognal));\n }\n }\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tPerson person = createNewPassenger(textCurrentFloor.getText(), textDestinationFloor.getText());\n\t\t\t\tif(person.getStartFloor() > 0 && person.getDestinationFloor() <= elevatorController.getTotalFloor()) {\n\t\t\t\t\televatorController.addNewPassenger(person);\n\t\t\t\t}else {\n\t\t\t\t\tJOptionPane.showMessageDialog(\n\t\t\t\t\t\t\tnull, \n\t\t\t\t\t\t\t\"Invalid Input\", \n\t\t\t\t\t\t\t\"Information of New Passenger is Invalid! Please Input Again.\", \n\t\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t}\n\t\t\t}",
"@FXML\n private void handleUserInput() {\n String input = userInput.getText();\n String response = duke.getResponse(input);\n dialogContainer.getChildren().addAll(\n DialogBox.getUserDialog(input, userImage),\n DialogBox.getDukeDialog(response, dukeImage)\n );\n userInput.clear();\n }",
"private boolean setVariables() {\r\n\r\n try {\r\n rightSide = Integer.parseInt(rightSideInput.getText()); // in pixels\r\n leftSide = Integer.parseInt(leftSideInput.getText()); // in pixels\r\n topSide = Integer.parseInt(topInput.getText()); // in pixels\r\n bottomSide = Integer.parseInt(bottomInput.getText()); // in pixels\r\n front = Integer.parseInt(frontInput.getText()); // in slices\r\n back = Integer.parseInt(backInput.getText()); // in slices\r\n } catch (NumberFormatException nfe) {\r\n\r\n // an empty text-field. decide which one is empty, then alert the user to correct\r\n JTextField t = determineNull();\r\n MipavUtil.displayError(\"Improper number!\");\r\n t.requestFocus();\r\n t.selectAll();\r\n\r\n return false;\r\n }\r\n\r\n if (rightSide < 0) {\r\n MipavUtil.displayError(\"Cannot have rightSide < 0\");\r\n rightSideInput.requestFocus();\r\n rightSideInput.selectAll();\r\n\r\n return false;\r\n }\r\n\r\n if (rightSide >= image.getExtents()[0]) {\r\n MipavUtil.displayError(\"Cannot have rightSide >= image.getExtents()[0]\");\r\n rightSideInput.requestFocus();\r\n rightSideInput.selectAll();\r\n\r\n return false;\r\n }\r\n\r\n if (leftSide < 0) {\r\n MipavUtil.displayError(\"Cannot have leftSide < 0\");\r\n leftSideInput.requestFocus();\r\n leftSideInput.selectAll();\r\n\r\n return false;\r\n }\r\n\r\n if (leftSide >= image.getExtents()[0]) {\r\n MipavUtil.displayError(\"Cannot have leftSide >= image.getExtents()[0]\");\r\n leftSideInput.requestFocus();\r\n leftSideInput.selectAll();\r\n\r\n return false;\r\n }\r\n\r\n if (topSide < 0) {\r\n MipavUtil.displayError(\"Cannot have topSide < 0\");\r\n topInput.requestFocus();\r\n topInput.selectAll();\r\n\r\n return false;\r\n }\r\n\r\n if (topSide >= image.getExtents()[1]) {\r\n MipavUtil.displayError(\"Cannot have topSide >= image.getExtents()[1]\");\r\n topInput.requestFocus();\r\n topInput.selectAll();\r\n\r\n return false;\r\n }\r\n\r\n if (bottomSide < 0) {\r\n MipavUtil.displayError(\"Cannot have bottomSide < 0\");\r\n bottomInput.requestFocus();\r\n bottomInput.selectAll();\r\n\r\n return false;\r\n }\r\n\r\n if (bottomSide >= image.getExtents()[1]) {\r\n MipavUtil.displayError(\"Cannot have bottomSide >= image.getExtents()[1]\");\r\n bottomInput.requestFocus();\r\n bottomInput.selectAll();\r\n\r\n return false;\r\n }\r\n\r\n\r\n if (image.getNDims() >= 3) {\r\n\r\n if (front < 0) {\r\n MipavUtil.displayError(\"Cannot have front < 0\");\r\n frontInput.requestFocus();\r\n frontInput.selectAll();\r\n\r\n return false;\r\n }\r\n\r\n if (front >= image.getExtents()[2]) {\r\n MipavUtil.displayError(\"Cannot have front >= image.getExtents()[2]\");\r\n frontInput.requestFocus();\r\n frontInput.selectAll();\r\n\r\n return false;\r\n }\r\n\r\n if (back < 0) {\r\n MipavUtil.displayError(\"Cannot have back < 0\");\r\n backInput.requestFocus();\r\n backInput.selectAll();\r\n\r\n return false;\r\n }\r\n\r\n if (back >= image.getExtents()[2]) {\r\n MipavUtil.displayError(\"Cannot have back >= image.getExtents()[2]\");\r\n backInput.requestFocus();\r\n backInput.selectAll();\r\n\r\n return false;\r\n }\r\n\r\n } // if (image.getNDims() >= 3)\r\n\r\n if ((image.getExtents()[0] - rightSide - leftSide) <= 0) {\r\n MipavUtil.displayError(\"Cannot have image.getExtents()[0] - rightSide - leftSide <= 0\");\r\n\r\n return false;\r\n }\r\n\r\n if ((image.getExtents()[1] - topSide - bottomSide) <= 0) {\r\n MipavUtil.displayError(\"Cannot have image.getExtents()[1] - topSide - bottomSide <= 0\");\r\n\r\n return false;\r\n }\r\n\r\n if (image.getNDims() >= 3) {\r\n\r\n if ((image.getExtents()[2] - front - back) <= 0) {\r\n MipavUtil.displayError(\"Cannot have image.getExtents()[2] - front - back <= 0\");\r\n\r\n return false;\r\n }\r\n }\r\n\r\n xBounds[0] = leftSide;\r\n xBounds[1] = rightSide;\r\n yBounds[0] = topSide;\r\n yBounds[1] = bottomSide;\r\n zBounds[0] = front;\r\n zBounds[1] = back;\r\n\r\n if (newImage.isSelected()) {\r\n displayLoc = NEW;\r\n } else {\r\n displayLoc = REPLACE;\r\n }\r\n\r\n return true;\r\n }",
"public void checkCD() {\r\n\t\tif (CDsSelected.titleField.getText().length() != 0) {\r\n\t\t\ttitle = CDsSelected.titleField.getText();\r\n\t\t\tCDsSelected.enterTitleText.setText(\" \");\r\n\t\t} else {\r\n\t\t\tCDsSelected.enterTitleText.setText(\"Please enter a title\");\r\n\t\t\tcheck_add = false;\r\n\t\t}\r\n\t\tif (CDsSelected.artistField.getText().length() != 0) {\r\n\t\t\tartist = CDsSelected.artistField.getText();\r\n\t\t\tCDsSelected.enterArtistText.setText(\" \");\r\n\t\t} else {\r\n\t\t\tCDsSelected.enterArtistText.setText(\"Please enter an artist\");\r\n\t\t\tcheck_add = false;\r\n\t\t}\r\n\t\tif (CDsSelected.genreField.getText().length() != 0) {\r\n\t\t\tgenre = CDsSelected.genreField.getText();\r\n\t\t\tCDsSelected.enterGenreText.setText(\" \");\r\n\t\t} else {\r\n\t\t\tCDsSelected.enterGenreText.setText(\"Please enter a genre\");\r\n\t\t\tcheck_add = false;\r\n\t\t}\r\n\r\n\t\tdescription = CDsSelected.descriptionTextArea.getText();\r\n\r\n\t}",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState)\n {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n //attempt to extract number\n number = ((TelephonyManager)((getActivity()).getSystemService(\n Context.TELEPHONY_SERVICE))).getLine1Number();\n\n //create edit text view\n input = new EditText(getActivity());\n input.setHint(R.string.phone_number_hint);\n input.setInputType(InputType.TYPE_CLASS_PHONE);\n input.addTextChangedListener(\n new PhoneNumberFormattingTextWatcher());\n //show edit text if phone number is unavailable\n input.setVisibility(((number == null) || \"\".equals(number))\n ? View.VISIBLE : View.GONE);\n\n builder.setView(input);\n builder.setTitle(R.string.generate_title);\n builder.setPositiveButton(R.string.generate_button, this);\n\n return builder.create();\n }",
"public Doctor createDoctor(int numOfDoctors) {\n\t\tScanner input = new Scanner(System.in);\n\t\tint newID = numOfDoctors+1;\n\n\t System.out.println(\"Please enter the doctor's name:\");\n \t\tString doctorName = input.nextLine();\n \t\twhile (!doctorName.matches(\"([a-zA-Z.\\\\s]+)\")) {\n \t\t\tSystem.out.println(\"\\n** Incorrect input. Please try again. **\");\n\t \t\tSystem.out.println(\"Please enter new doctor name: \");\n\t \t\tdoctorName = input.nextLine();\n \t\t}\t \n\t \n \tSystem.out.println(\"Please enter birthday: (in the form YYYY-MM-DD)\");\n\t String doctorBirthDate = input.nextLine();\t\n //add error checking for making sure dates are current\n while (!doctorBirthDate.matches(\"(\\\\d{4}-\\\\d{2}-\\\\d{2})\")) {\n \tSystem.out.println(\"\\n** Incorrect input. Please try again. **\");\n \t\tSystem.out.println(\"Please enter birthday: (in the form YYYY-MM-DD)\");\n \t\tdoctorBirthDate = input.nextLine();\n }\n \n \tSystem.out.println(\"Please enter SSN: (in the following format '###-##-####')\");\n\t String doctorSSN = input.nextLine();\t\n\t while (!doctorSSN.matches(\"(\\\\d{3}-\\\\d{2}-\\\\d{4})\")){\n \tSystem.out.println(\"\\n** Incorrect input. Please try again. **\");\n\t \tSystem.out.println(\"Please enter SSN: (in the following format '###-##-####')\");\n\t \tdoctorSSN = input.next();\n\t }\n\n\t\tDoctor newDoctor = new Doctor(newID, doctorName, doctorBirthDate, doctorSSN);\n\t\treturn newDoctor;\n\t}",
"@Override\n public void onClick(View v) {\n if (Model.isEmpty(rectangleLengthWET)) {\n rectangleLengthWET.setError(Html.fromHtml (\"<font color='red'>Enter value</font>\"));\n } else if (Model.isEmpty(rectangleLengthPET)) {\n rectangleLengthPET.setError(Html.fromHtml (\"<font color='red'>Enter value</font>\"));\n } else {\n double width, perimeter, rectangleLength;\n width = Double.parseDouble(rectangleLengthWET.getText().toString());\n perimeter = Double.parseDouble(rectangleLengthPET.getText().toString());\n if (width <= 0) {\n rectangleLengthAnswerTV.setText(\"The variable l should be positive\");\n } else if (perimeter<= 0) {\n rectangleLengthAnswerTV.setText(\"The variable w should be positive\");\n } else if\n (perimeter <=(2*width)) {\n rectangleLengthAnswerTV.setText(\"Invalid input:make sure P>2*W\");\n } else {\n rectangleLength = (perimeter/2)-width;\n rectangleLengthAnswerTV.setText(String.format(\"%.02f\", rectangleLength));\n }\n }\n }",
"public void createTask(){\n final String name = newTaskNameField.getText().toString();\n final String description = newTaskDescriptionField.getText().toString();\n\n if (name.isEmpty()){\n newTaskNameField.setText(\"Please Enter a name\");\n newTaskNameField.requestFocus();\n newTaskNameField.selectAll();\n return;\n }\n\n if (description.isEmpty()){\n newTaskDescriptionField.setText(\"Please Enter a Description\");\n newTaskDescriptionField.requestFocus();\n newTaskDescriptionField.selectAll();\n return;\n }\n\n if(!getValidDate(newtaskDateField.getText().toString())) {\n handleInvalidDate();\n return;\n }\n\n if(newTaskAssignee == null) {\n newTaskAssigneeField.setText(\"Please assign a user\");\n newTaskAssigneeField.selectAll();\n return;\n }\n\n TaskManager.sharedInstance().CreateTask(name, description, newTaskAssignee, DueDate, false);\n newTaskDialog.dismiss();\n }",
"public static void main(String[] args) {\n \tint choice;\n\t\tSystem.out.println(\"1.Circle\" + \"\\n\" +\"2.Triangle\"+\"\\n\"+\"3.Square\"+\"\\n\"+\"4.Rectangle\");\n\t\tScanner obj = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter your choice \");\n\t\tchoice=obj.nextInt();\n\t\t\n\t\tswitch(choice) {\n\t\tcase 1: \n\t\t\t\n\t\t\t{\n\t\t\tSystem.out.println(\"Enter the radius of the circle \");\n\t\t\tdouble dim1=obj.nextDouble();\n\t\t\tAreas cons=new Areas(dim1);\n\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\tcase 2:\n\t\t\t\n\t\t{\n\t\t\tSystem.out.println(\"Enter the height and base of the triangle \");\t\n\t\t\n\t\tdouble height=obj.nextDouble();\n\t\tdouble base=obj.nextDouble();\n\t\tAreas cons=new Areas (height,base);\n\t\t\n\t\tbreak;\n\t\t\n\t\t}\n\t\t\n\t\tcase 3:\n\t\t\t\n\t\t{\n\t\t\tSystem.out.println(\"Enter the side of the square \");\n\t\t\n\t\tint side=obj.nextInt();\n\t\tAreas cons=new Areas(side);\n\t\t\n\t\tbreak ;\n\t\t}\n\t\t\n\t\t\n\t\tcase 4: \n\t\t\t\n\t\t{\n\t\t\tSystem.out.println(\"Enter the length and breadth of the rectangle \");\n\t\t\n\t\tint len=obj.nextInt();\n\t\tint brd=obj.nextInt();\n\t\tAreas cons=new Areas(len,brd);\n\t\t\n\t\tbreak;\n\t\t\n\t\t}\n\t\t\n\t\tcase 5:System.out.println(\"Invalid choice\");\n\t\t}\n\n\t}",
"public void read() {\r\n\t\tJTextField txtCustomerNo = new JTextField();\r\n\t\ttxtCustomerNo.setText(\"\" + this.getCustomerNo());\r\n\t\tJTextField txtTitle = new JTextField();\r\n\t\ttxtTitle.requestFocus();\r\n\t\tJTextField txtFirstName = new JTextField();\r\n\t\tJTextField txtSurname = new JTextField();\r\n\t\tJTextField txtAddress = new JTextField();\r\n\t\tJTextField txtPhoneNo = new JTextField();\r\n\t\tJTextField txtEmail = new JTextField();\r\n\r\n\t\t\r\n\t\tObject[] message = { \"Customer Number:\", txtCustomerNo, \"Title:\", txtTitle, \"First Name:\", txtFirstName,\r\n\t\t\t\t\"Surname:\", txtSurname, \"Address:\", txtAddress, \"Phone Number:\", txtPhoneNo, \"Email:\", txtEmail, };\r\n\t\t\r\n\r\n\t\tint option = JOptionPane.showConfirmDialog(null, message, \"Enter customer details\",\r\n\t\t\t\tJOptionPane.OK_CANCEL_OPTION);\r\n\t\t\r\n\t\tName txtName = new Name(txtTitle.getText(), txtFirstName.getText(), txtSurname.getText());\r\n\r\n\t\tif (option == JOptionPane.OK_OPTION) {\r\n\t\t\tthis.name = txtName;\r\n\t\t\tthis.address = txtAddress.getText();\r\n\t\t\tthis.phoneNo = txtPhoneNo.getText();\r\n\t\t\tthis.emailAddress = txtEmail.getText();\r\n\t\t}\r\n\t}",
"private void create() {\n\t\tGridLayout grid = new GridLayout(3,2);\n\t\tthis.setLayout(grid);\n\t\tthis.setBackground(Color.WHITE);\n\t\t\n\t\tadd(new JLabel(\"Username/Library Card #:\", SwingConstants.LEFT), grid);\n\t\tusername.setPreferredSize(new Dimension(1, 12));\n\t\tadd(username,grid);\n\t\t\n\t\tadd(new JLabel(\"Password:\", SwingConstants.LEFT), grid);\n\t\tadd(password, grid);\n\t\t\n\t\tLoginAction();\n\t\tadd(submit, grid);\n\t}",
"@FXML\n\tpublic void buttonCreateIngredient(ActionEvent event) {\n\t\tString empty = \"\";\n\t\tString ingredientName = txtIngredientName.getText();\n\t\tIngredient ingredient = restaurant.returnIngredient(ingredientName);\n\n\t\tif (ingredient == null) {\n\t\t\tif (!ingredientName.equals(empty)) {\n\t\t\t\tIngredient objIngredient = new Ingredient(ingredientName);\n\t\t\t\ttry {\n\t\t\t\t\tboolean found = restaurant.addIngredient(objIngredient);\n\t\t\t\t\tIngredient ingredientAdded = restaurant.returnIngredient(ingredientName);// returns the ingredient\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// already added\n\t\t\t\t\tif (found == false) {\n\t\t\t\t\t\tingredientsOptions.add(ingredientName);\n\t\t\t\t\t\tingredientAdded.setCreatedByUser(restaurant.returnUser(empleadoUsername));\n\t\t\t\t\t\tingredientAdded.setEditedByUser(restaurant.returnUser(empleadoUsername));\n\t\t\t\t\t\ttxtIngredientName.setText(\"\");\n\n\t\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\t\tdialog.setContentText(\"El ingrediente \" + objIngredient.getName()\n\t\t\t\t\t\t\t\t+ \" ha sido añadido a la lista de ingredientes del restaurante\");\n\t\t\t\t\t\tdialog.setTitle(\"Ingrediente añadido\");\n\t\t\t\t\t\tdialog.show();\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\t/*\n\t\t\t\t * restaurant.getIngredients().add(objIngredient);\n\t\t\t\t * ingredientsOptions.add(ingredientName); txtIngredientName.setText(\"\");\n\t\t\t\t * \n\t\t\t\t * Dialog<String> dialog=createDialog();\n\t\t\t\t * dialog.setContentText(\"El ingrediente \"+objIngredient.getName()\n\t\t\t\t * +\" ha sido añadido a la lista de ingredientes del restaurante\");\n\t\t\t\t * dialog.setTitle(\"Ingrediente añadido\"); dialog.show();\n\t\t\t\t */\n\t\t\t} else {\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"El ingrediente a crear debe tener un nombre \");\n\t\t\t\tdialog.setTitle(\"Error, Campo sin datos\");\n\t\t\t\tdialog.show();\n\n\t\t\t}\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"El ingrediente ya existe\");\n\t\t\tdialog.setTitle(\"Error, Ingrediente existente\");\n\t\t\tdialog.show();\n\t\t\ttxtIngredientName.setText(\"\");\n\t\t}\n\t}",
"@Override\n public void actionPerformed(ActionEvent actionEvent) {\n\n final int MIN_ARRAY_SIZE = 2;\n try{\n int width = Integer.parseInt(widthEntry.getText());\n int height = Integer.parseInt(heightEntry.getText());\n if(width < MIN_ARRAY_SIZE || height < MIN_ARRAY_SIZE){\n throw new NegativeArraySizeException();\n }\n if(imagePath == null){\n throw new NullPointerException();\n }\n BufferedImage inputImage = ImageIO.read(new File(imagePath.getAbsolutePath()));\n SeamCarve.carveSeam(inputImage, width, height);\n }catch(NumberFormatException e){\n JOptionPane.showMessageDialog(getContentPane(),\"Enter Valid Integers.\");\n }catch(NegativeArraySizeException e){\n JOptionPane.showMessageDialog(getContentPane(),\"Enter Integers Larger than 2!\");\n }catch(IOException e){\n JOptionPane.showMessageDialog(getContentPane(),\"Choose a Valid File Path.\");\n }catch(NullPointerException e){\n JOptionPane.showMessageDialog(getContentPane(),\"Choose a Valid File Path.\");\n }catch(ArrayIndexOutOfBoundsException e){\n JOptionPane.showMessageDialog(getContentPane(),\"Enter Dimensions Smaller Than or Equal To The Image.\");\n }\n\n\n }",
"private addStudent(Boolean bookAlreadyExisted) {\n setTitle(\"Student Input\");\n setSize(1920,1080);\n setLayout(new FlowLayout());\n setVisible(true);\n\n addWindowListener(new WindowAdapter() {\n public void windowClosing(WindowEvent windowEvent){\n dispose();\n } \n });\n\n inputPanel = new Panel(new GridLayout(3,2));\n\n studentName = new Label(\"Student Name:\");\n inputPanel.add(studentName);\n \n studentNameField = new TextField(10);\n nameField.setEditable(true);\n inputPanel.add(studentNameField);\n \n \n gradeLevel = new Label(\"Grade Level:\");\n inputPanel.add(gradeLevel);\n \n gradeLevelField = new TextField(10);\n gradeLevelField.setEditable(true);\n inputPanel.add(gradeLevelField);\n \n //Button that adds the owner to an E-Book.\n addOwner = new Button(\"Add Owner\");\n addOwner.addActionListener(new ActionListener(){ \n public void actionPerformed(ActionEvent e){\n Boolean sentinel = false;\n //Checks if all the information inputed is appropiate. \n try{\n if(studentNameField.getText().equals(\"\")){\n new errorWindow(\"Insert a name\");\n sentinel = true;\n }\n if(gradeLevelField.getText().equals(\"\")){\n new errorWindow(\"Insert a grade level\");\n sentinel = true;\n }\n \n \n int gradeLevel = Integer.parseInt(gradeLevelField.getText().trim());\n if(gradeLevel < 1 || gradeLevel > 12){\n new errorWindow(\"Grade Level should be between 1 and 12\");\n sentinel = true;\n }\n\n if(sentinel == true){\n return;\n }\n\n owner = new Student(studentNameField.getText(), gradeLevel);\n //Creates a E-Book with the specifeid owner if the E-Book did not already exist.\n if(bookAlreadyExisted == false){\n inputedEBook.setRedemptionStatus(true);\n inputedEBook.setOwner(owner);\n books.put(inputedEBook);\n Object rowData[] = {inputedEBook.getBookName(), inputedEBook.getClassFor(), inputedEBook.getRedemptionCode(), \"true\", inputedEBook.getOwner().getName(), \n Integer.toString(inputedEBook.getOwner().getGradeLevel())};\n DefaultTableModel table = (DefaultTableModel)database.getModel();\n table.addRow(rowData); \n dispose(); \n }\n else {\n //Adds the owner to an already existing \n books.remove(inputedEBook);\n unredeemedEBooks.remove(inputedEBook);\n inputedEBook.setRedemptionStatus(true);\n inputedEBook.setOwner(owner);\n books.put(inputedEBook);\n DefaultTableModel table = (DefaultTableModel)database.getModel();\n table.setValueAt(\"true\", inputedEBook.getRowLocation() - numberOfRowsRemoved, 3); \n table.setValueAt(owner.getName(), inputedEBook.getRowLocation() - numberOfRowsRemoved, 4); \n table.setValueAt(Integer.toString(inputedEBook.getOwner().getGradeLevel()), inputedEBook.getRowLocation() - numberOfRowsRemoved, 5); \n dispose(); \n }\n \n }catch(Exception exception){\n new errorWindow(\"Grade Level must be a number\");\n }\n } \n });\n inputPanel.add(addOwner);\n\n add(inputPanel);\n inputPanel.setVisible(true);\n }",
"private static PointCP2 getInput() throws IOException\n {\n byte[] buffer = new byte[1024]; //Buffer to hold byte input\n boolean isOK = false; // Flag set if input correct\n String theInput = \"\"; // Input information\n \n //Information to be passed to the constructor\n \n double a = 0.0;\n double b = 0.0;\n\n // Allow the user to enter the three different arguments\n for (int i = 0; i < 2; i++)\n {\n while (!(isOK))\n {\n isOK = true; //flag set to true assuming input will be valid\n \n // Prompt the user\n if (i == 0) // First argument - type of coordinates\n {\n System.out.print(\"Enter Rho value: \");\n }\n else // Second and third arguments\n {\n System.out.print(\"Enter Theta value: \");\n }\n\n // Get the user's input \n \n // Initialize the buffer before we read the input\n for(int k=0; k<1024; k++)\n \tbuffer[k] = '\\u0020'; \n \n System.in.read(buffer);\n theInput = new String(buffer).trim();\n \n // Verify the user's input\n try\n {\n if (i == 0) // First argument \n {\n a = Double.valueOf(theInput).doubleValue();\n }\n else // Second and \n { \n b = Double.valueOf(theInput).doubleValue();\n }\n }\n catch(Exception e)\n {\n \tSystem.out.println(\"Incorrect input\");\n \tisOK = false; //Reset flag as so not to end while loop\n }\n }\n\n //Reset flag so while loop will prompt for other arguments\n isOK = false;\n }\n //Return a new PointCP object\n return (new PointCP2( a, b));\n }",
"public void createDialog(int d) {\n\t\tswitch (d) {\n\n\t\tcase DIALOG_SHOW_MESSAGE:\n\t\t\tAlertDialog.Builder messageBuilder = new AlertDialog.Builder(\n\t\t\t\t\tgetActivity());\n\t\t\tmessageBuilder.setMessage(errorMessage).setPositiveButton(\n\t\t\t\t\tgetString(R.string.ok),\n\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\tAlertDialog showDialog = messageBuilder.create();\n\t\t\tshowDialog.show();\n\t\t\tbreak;\n\n\t\tcase DIALOG_DISTANCE:\n\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\t\t\tbuilder.setTitle(R.string.select_distance);\n\t\t\tbuilder.setSingleChoiceItems(items, Preferences.selectedDistance,\n\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int item) {\n\t\t\t\t\t\t\tdistance = items[item];\n\t\t\t\t\t\t\tsetDeviceLocation();\n\t\t\t\t\t\t\tPreferences.selectedDistance = item;\n\t\t\t\t\t\t\t// save prefrences\n\t\t\t\t\t\t\tPreferences.saveSettings(getActivity());\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\ttoastLong(R.string.finding_map);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\tAlertDialog alert = builder.create();\n\t\t\talert.show();\n\t\t\tbreak;\n\n\t\tcase DIALOG_CLEAR_DEPLOYMENT:\n\t\t\tAlertDialog.Builder clearBuilder = new AlertDialog.Builder(\n\t\t\t\t\tgetActivity());\n\t\t\tclearBuilder\n\t\t\t\t\t.setMessage(getString(R.string.confirm_clear))\n\t\t\t\t\t.setCancelable(false)\n\t\t\t\t\t.setPositiveButton(getString(R.string.yes),\n\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint id) {\n\t\t\t\t\t\t\t\t\tmHandler.post(deleteAllMaps);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})\n\t\t\t\t\t.setNegativeButton(getString(R.string.no),\n\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint id) {\n\t\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\tAlertDialog clearDialog = clearBuilder.create();\n\t\t\tclearDialog.show();\n\n\t\t\tbreak;\n\n\t\tcase DIALOG_ADD_DEPLOYMENT:\n\t\t\tLayoutInflater factory = LayoutInflater.from(getActivity());\n\t\t\tfinal View textEntryView = factory.inflate(R.layout.add_map, null);\n\t\t\tfinal AddMapView addMapView = new AddMapView(textEntryView);\n\n\t\t\t// if edit was selected at the context menu, populate fields\n\t\t\t// with existing map details\n\t\t\tif (edit) {\n\t\t\t\tfinal List<ListMapModel> listMap = mListMapModel.loadMapById(\n\t\t\t\t\t\tmId, mapId);\n\t\t\t\tif (listMap.size() > 0) {\n\t\t\t\t\taddMapView.setMapName(listMap.get(0).getName());\n\t\t\t\t\taddMapView.setMapDescription(listMap.get(0).getDesc());\n\t\t\t\t\taddMapView.setMapUrl(listMap.get(0).getUrl());\n\t\t\t\t\taddMapView.setMapId(listMap.get(0).getId());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfinal AlertDialog.Builder addBuilder = new AlertDialog.Builder(\n\t\t\t\t\tgetActivity());\n\n\t\t\taddBuilder\n\t\t\t\t\t.setTitle(R.string.enter_map_details)\n\t\t\t\t\t.setView(textEntryView)\n\t\t\t\t\t.setPositiveButton(R.string.ok,\n\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint whichButton) {\n\t\t\t\t\t\t\t\t\t// edit was selected\n\t\t\t\t\t\t\t\t\tif (edit) {\n\n\t\t\t\t\t\t\t\t\t\tif (!addMapView.updateMapDetails())\n\t\t\t\t\t\t\t\t\t\t\ttoastLong(R.string.fix_error);\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\tmHandler.post(refreshMapList);\n\t\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t\tif (!addMapView.addMapDetails())\n\t\t\t\t\t\t\t\t\t\t\ttoastLong(R.string.fix_error);\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\tmHandler.post(fetchMapList);\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})\n\t\t\t\t\t.setNegativeButton(R.string.cancel,\n\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint whichButton) {\n\t\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\n\t\t\tAlertDialog deploymentDialog = addBuilder.create();\n\t\t\tdeploymentDialog.show();\n\t\t\tbreak;\n\t\t}\n\n\t}",
"public static void main(String[] args) {\n\n UserInformation userInformation = new UserInformation();\n System.out.println(\"What do you want ?\");\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"1)Sign Up \\n2)Login \");\n int select = scanner.nextInt();\n System.out.println(\"Enter the requested information\");\n\n switch (select){\n case 1:\n System.out.println(\"Enter your name:\");\n userInformation.setName(scanner.next());\n System.out.println(\"Enter your UserName:\");\n userInformation.setUsername(scanner.next());\n System.out.println(\"Enter your PassWord:\");\n userInformation.setPassword(scanner.next());\n System.out.println(\"Enter your Email\");\n userInformation.setEmail(scanner.next());\n System.out.println(\"Welcom :)\");\n userInformation.insert(userInformation.getName(),userInformation.getUsername(),userInformation.getPassword(),userInformation.getEmail());\n break;\n\n case 2:\n System.out.println(\"Enter your UserName\");\n userInformation.setUsername(scanner.next());\n System.out.println(\"Enter your PassWord:\");\n userInformation.setPassword(scanner.next());\n break;\n }\n }",
"public void inputItemDetails()\r\n\t{\r\n\t\tserialNum = inputValidSerialNum();\r\n\t\tweight = inputValidWeight();\r\n\t}",
"public static void main(String[] args) throws IOException {\n Scanner scanner = new Scanner(System.in);\n /* Use nextInt to get user integer */\n System.out.print(\"Enter Integer:\\n\");\n try{\n int i = scanner.nextInt();\n System.out.printf(\"%d\\n\", i);\n }catch(NumberFormatException nfe){\n System.err.println(\"Invalid Format!\\n\");\n }\n /* Use next to get 3 strings from user */\n System.out.println(\"Enter 3 words:\");\n String first = scanner.next();\n String second = scanner.next();\n String third = scanner.next();\n\n System.out.printf(\"%s %s %s\\n\", first, second, third);\n\n /* Use nextLine to capture user sentence */\n System.out.println(\"Enter a sentence:\");\n try{\n String userSentence = scanner.nextLine();\n userSentence = scanner.nextLine();\n System.out.printf(\"%s\\n\", userSentence);\n }catch(NumberFormatException nfe){\n System.out.println(\"No sentence\");\n }\n\n System.out.println(\"Enter length: \");\n int length = scanner.nextInt();\n\n System.out.println(\"Enter width: \");\n int width = scanner.nextInt();\n\n System.out.printf(\"area: %d\\n\", length*width);\n System.out.printf(\"perimeter: %d\\n\", 2*length+2*width);\n\n // close the scanner\n scanner.close();\n }",
"private static void addPhone() {\n\n Phone newPhone = new Phone(); // create new Phone object\n\n String make = Validate.readString(ASK_MAKE_PHONE); // Ask for and set the make\n\n newPhone.setMake(make); // set make of phone based on user input\n\n String model = Validate.readString(ASK_MODEL_PHONE); // Ask for and set the model\n\n newPhone.setModel(model); // set model of phone based on user input\n\n int storage = Validate.readInt(ASK_STORAGE_PHONE); // Ask for and set the storage\n\n newPhone.setStorage(storage); // set storage of phone based on user input\n\n double price = Validate.readDouble(ASK_PRICE_PHONE); // Ask for and set the price\n\n newPhone.setPrice(price); // set price of phone based on user input\n\n ProductDB.addProduct(newPhone); // add new Phone to the product DB\n\n newPhone.savePhone(); // saves new phone to productDB text file\n }",
"void fillInputBox() {\n\t\tBox inputs = Box.createVerticalBox();\n\n\t\tfor (int i = 0; i < overviewRule.listOfParametersNeeded.size(); i++) {\n\t\t\tJLabel input = new JLabel(overviewRule.listOfParametersNeeded.get(i));\n\t\t\tinputs.add(input);\n\t\t}\n\n\t\tinputBox.add(inputLabel);\n\n\t\tinputBox.add(inputs);\n\t}",
"protected void createDialogSize ()\n {\n }",
"public static void input1()\n {\n n = 500;\n /*System.out.println(\"Enter the distance threshold(epsilon)\");\n Scanner di_th1 = new Scanner(System.in);\n distance_thres = di_th1.nextDouble();*/\n distance_thres = 1;\n /*System.out.println(\"Enter the minPts\");\n Scanner m_pt = new Scanner(System.in);\n minPts = m_pt.nextInt();*/\n minPts = 10;\n /*System.out.println(\"Enter the size_threshold\");\n Scanner s_th = new Scanner(System.in);\n size_threshold = s_th.nextInt();*/\n size_threshold = 10;\n /*System.out.println(\"Enter the duration_threshold\");\n Scanner du_th = new Scanner(System.in);\n duration_threshold = du_th.nextDouble();*/\n duration_threshold = 50;\n /*System.out.println(\"Enter the Buddy radius threshold\");\n Scanner bud_rad = new Scanner(System.in);\n buddy_radius = bud_rad.nextDouble();*/\n buddy_radius = 0.2;\n }",
"public static void getPropertyInfo(){\n\t\tSystem.out.println(\"Please enter a property id: \");\n\t\tpropertyId = scanner.nextLine();\n\t\tSystem.out.println(\"Please enter the principle amount: \");\n\t\tString principleInput = scanner.nextLine();\n\t\tprinciple = Integer.parseInt(principleInput);\n\t\tSystem.out.println(\"Please enter the interest rate: \");\n\t\tString interestInput = scanner.nextLine();\n\t\tinterestRate = Double.parseDouble(interestInput)*.01;\n\t\tSystem.out.println(\"Please enter the term in months: \");\n\t\tString termInput = scanner.nextLine();\n\t\ttermInMonths = Integer.parseInt(termInput);\n\t\t\n\t}",
"private void createCar() throws Exception {\n\t\tString id = \"\", make, model, driverName;\n\t\tString type, refreshments;\n\t\tboolean proceed = true;\n\t\tdouble sscStandardFee = 0;\n\t\tint numPassengers = 0;\n\t\tSystem.out.print(\"Enter registration number: \");\n\t\tid = promptUserForRegNo();\n\t\t\n\t\tif (id.length() != 0) {\n\t\t\t\n\t\t\t// Get details required for creating a car.\n\t\t\tSystem.out.print(\"Enter Make: \");\n\t\t\tmake = console.nextLine();\n\t\t\t\n\t\t\tif (make.length() == 0) {\n\t\t\t\tthrow new InvalidMakeException(\"Error: Make is empty.\");\n\t\t\t}\n\n\t\t\tSystem.out.print(\"Enter Model: \");\n\t\t\tmodel = console.nextLine();\n\t\t\t\n\t\t\tif (model.length() == 0) {\n\t\t\t\tthrow new InvalidModelException(\"Error: Model is empty.\");\n\t\t\t}\n\n\t\t\tSystem.out.print(\"Enter Driver Name: \");\n\t\t\tdriverName = console.nextLine();\n\t\t\t\n\t\t\tif (driverName.length() == 0) {\n\t\t\t\tthrow new InvalidDriverNameException(\"Error: Driver Name is empty.\");\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSystem.out.print(\"Enter number of passengers: \");\n\t\t\t\tnumPassengers = promptForPassengerNumbers();\n\t\t\t}\n\t\t\t\n\t\t\tcatch (NumberFormatException e) {\n\t\t\t\tSystem.out.println(\"Error: Number should be an integer from 1 to 9\");\n\t\t\t\tproceed = false;\n\t\t\t}\n\t\t\t\n\t\t\t// If there is no errors, continue.\n\t\t\tif (proceed) {\n\t\t\t\tSystem.out.println(\"Enter Service Type (SD/SS): \");\n\t\t\t\t\n\t\t\t\ttype = console.nextLine().toUpperCase();\n\t\t\t\t\n\t\t\t\tif (!type.equals(\"SD\") && !type.equals(\"SS\")) {\n\t\t\t\t\tthrow new InvalidServiceTypeException(\"Error: Service Type is invalid.\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (type.equals(\"SD\")) {\n\t\t\t\t\tboolean result = application.checkIfCarExists(id);\n\t\t\n\t\t\t\t\tif (!result) {\n\t\t\t\t\t\tString carRegistrationNumber = application.createCar(id, make, model, driverName, numPassengers);\n\t\t\t\t\t\tSystem.out.println(carRegistrationNumber);\n\t\t\t\t\t} \n\t\t\t\t\t\n\t\t\t\t\telse {\n\t\t\t\t\t\tthrow new InvalidRegNoException(\"Error: Already exists in the system\");\n//\t\t\t\t\t\tSystem.out.println(\"Error - Already exists in the system\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if (type.equals(\"SS\")) {\n\t\t\t\t\tboolean proceed2 = true;\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tSystem.out.println(\"Enter Standard Fee: \");\n\t\t\t\t\t\tsscStandardFee = Double.parseDouble(console.nextLine());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcatch (NumberFormatException e) {\n\t\t\t\t\t\tSystem.out.println(\"Error: Please input a numeric value\");\n\t\t\t\t\t\tproceed2 = false;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (proceed2) {\n\t\t\t\t\t\tSystem.out.println(\"Enter List of Refreshments: \");\n\t\t\t\t\t\trefreshments = console.nextLine();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (refreshments.substring(refreshments.length() - 1).equals(\",\")) {\n\t\t\t\t\t\t\trefreshments = refreshments.substring(0, refreshments.length() - 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tboolean result = application.checkIfCarExists(id);\n\t\t\t\t\t\tboolean result2 = application.bookingFeeSilverServiceCar(sscStandardFee);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (!result && result2) {\n\t\t\t\t\t\t\tString carRegistrationNumber = application.createCar(id, make, model, driverName, numPassengers, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsscStandardFee, refreshments);\n\t\t\t\t\t\t\tSystem.out.println(carRegistrationNumber);\n\t\t\t\t\t\t} \n\t\t\t\t\t\t\n\t\t\t\t\t\telse if (!result && !result2) {\n\t\t\t\t\t\t\tthrow new InvalidSSCFeeException(\"Error - Standard Fee must be $3.00 or more.\");\n\t//\t\t\t\t\t\tSystem.out.println(\"Error - Standard Fee must be $3.00 or more.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tthrow new InvalidRegNoException(\"Error - Already exists in the system\");\n\t//\t\t\t\t\t\tSystem.out.println(\"Error - Already exists in the system\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void startPanel() {\n this.setLayout(null);\n this.setBounds(0, 0, DoggyDayCareGui.WIDTH, DoggyDayCareGui.HEIGHT);\n JLabel title = new JLabel(\"Please Enter Your Dog's Information:\");\n title.setFont(new Font(\"Calibri\", Font.BOLD, 20));\n title.setBounds(90,20,400, 100);\n this.add(title);\n JLabel weightHeadsUp = new JLabel(\"Please be careful with your weight input from 0 to 200\");\n weightHeadsUp.setFont(new Font(\"Calibri\", Font.BOLD, 15));\n weightHeadsUp.setBounds(90,90,400, 100);\n this.add(weightHeadsUp);\n }",
"void doNew() {\r\n\t\t\r\n\t\tNewResizeDialog dlg = new NewResizeDialog(labels, true);\r\n\t\tdlg.setLocationRelativeTo(this);\r\n\t\tdlg.setVisible(true);\r\n\t\tif (dlg.success) {\r\n\t\t\tsetTitle(TITLE);\r\n\t\t\tcreatePlanetSurface(dlg.width, dlg.height);\r\n\t\t\trenderer.repaint();\r\n\t\t\tsaveSettings = null;\r\n\t\t\tundoManager.discardAllEdits();\r\n\t\t\tsetUndoRedoMenu();\r\n\t\t}\r\n\t}",
"private void launchCreateGame() {\n\t\tString name = nameText.getText().toString();\n\t\tString cycle = cycleText.getText().toString();\n\t\tString scent = scentText.getText().toString();\n\t\tString kill = killText.getText().toString();\n\t\t\n\t\tif (name.equals(\"\")){\n\t\t\tname = defaultName;\n\t\t} \n\t\tif (cycle.equals(\"\")) {\n\t\t\tcycle = \"720\";\n\t\t} \n\t\tif (scent.equals(\"\")) {\n\t\t\tscent = \"1.0\";\n\t\t}\n\t\tif (kill.equals(\"\")) {\n\t\t\tkill = \".5\";\n\t\t}\n\t\t\n\t\t\t\n\t\tAsyncJSONParser pewpew = new AsyncJSONParser(this);\n\t\tpewpew.addParameter(\"name\", name);\n\t\tpewpew.addParameter(\"cycle_length\", cycle);\n\t\tpewpew.addParameter(\"scent_range\", scent);\n\t\tpewpew.addParameter(\"kill_range\", kill);\n\t\tpewpew.execute(WerewolfUrls.CREATE_GAME);\n\t\t\n\t\tsetProgressBarEnabled(true);\n\t\tsetErrorMessage(\"\");\n\t}"
] | [
"0.5998137",
"0.59646904",
"0.585471",
"0.5802272",
"0.57675743",
"0.5683919",
"0.5599339",
"0.5562919",
"0.55017847",
"0.54875624",
"0.54660183",
"0.5458157",
"0.54391867",
"0.5406223",
"0.5372723",
"0.5365387",
"0.53447443",
"0.53282356",
"0.53280216",
"0.5313652",
"0.52927756",
"0.5278533",
"0.52427447",
"0.52404606",
"0.5237856",
"0.5235153",
"0.52271324",
"0.52174866",
"0.52113116",
"0.52061015",
"0.51836115",
"0.5163499",
"0.5157301",
"0.51562274",
"0.5154803",
"0.51356405",
"0.51350546",
"0.5119826",
"0.50979424",
"0.50826925",
"0.506836",
"0.5064121",
"0.5062492",
"0.50624144",
"0.5060519",
"0.5057777",
"0.5052042",
"0.5051102",
"0.50507826",
"0.504935",
"0.5047997",
"0.5042002",
"0.50316834",
"0.502705",
"0.5024745",
"0.5005707",
"0.49991202",
"0.49979392",
"0.49956033",
"0.4993045",
"0.49882507",
"0.49760595",
"0.49709105",
"0.4970037",
"0.49697107",
"0.4968065",
"0.49675977",
"0.49659657",
"0.49578694",
"0.4948564",
"0.49444202",
"0.49341047",
"0.49328795",
"0.4932135",
"0.49235612",
"0.4921518",
"0.49205366",
"0.4910784",
"0.49105614",
"0.49013335",
"0.4899559",
"0.48984584",
"0.4897156",
"0.48933038",
"0.48890227",
"0.48887223",
"0.48870468",
"0.48836944",
"0.4882406",
"0.4879362",
"0.48757285",
"0.4870627",
"0.48683536",
"0.4866144",
"0.4861652",
"0.48585743",
"0.4857271",
"0.4848986",
"0.48486435",
"0.48485005",
"0.48462656"
] | 0.0 | -1 |
Multiply by the reciprocal. | public Complex divide(Complex other) {
double scale = (other.real * other.real) + (other.imaginary * other.imaginary);
return this.multiply(
new Complex(other.real / scale, -other.imaginary / scale));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract O reciprocal();",
"private void reciprocal()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.reciprocal ( );\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}",
"public Fraction reciprocal(){\n return new Fraction(this.denominator,this.numerator);\n }",
"public Fraction reciprocal()\n {\n int newNumerator = this.getDenominator();\n int newDenominator = this.getNumerator();\n Fraction newFraction = new Fraction(newNumerator, newDenominator);\n return newFraction;\n }",
"public BigRational reciprocal() {\n return valueOf(den, num);\n }",
"public Fraction getReciprocal() {\n return new Fraction(denominator, numerator);\n }",
"@Override\r\n\tpublic int mul() {\n\t\treturn 0;\r\n\t}",
"public void multiply()\r\n {\r\n resultDoubles = Operations.multiply(leftOperand, rightOperand);\r\n resultResetHelper();\r\n }",
"default DiscreteDoubleMap2D reciprocal() {\r\n\t\treturn (x, y) -> 1. / this.getValueAt(x, y);\r\n\t}",
"public double sqrMagnitude()\n {\n return ((x*x) + (y*y) + (z*z) + (w * w));\n }",
"public final void mul() {\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tpush(secondTopMostValue * topMostValue);\n\t\t}\n\t}",
"private void mul() {\n\n\t}",
"public void reduce() {\n\tint g = this.gcd();\n\tif ( g != 0 ) {\n\t numerator /= g;\n\t denominator /= g;\n\t}\n }",
"public double mod() \n\t{\n if (x!=0 || y!=0) {\n return Math.sqrt(x*x+y*y); //distance formular\n } else {\n return 0.0D;\n }\n }",
"public void mul(Complex c){\n\t\tdouble tempRe = re*c.getRe() - im*c.getIm();\n\t\tim = im*c.getRe() + re*c.getIm();\n\t\tre = tempRe;\n\t}",
"Rational multiply(Rational p){\n Rational firstarg=new Rational();\n firstarg.numerator=numerator;\n firstarg.denominator=denominator;\n\n firstarg.numerator=p.numerator*firstarg.numerator;\n firstarg.denominator=p.denominator*firstarg.denominator;\n return firstarg;\n }",
"private void reduce() {\n int gcd = gcd(this.numerator, this.denominator);\n this.numerator = this.numerator / gcd;\n this.denominator = this.denominator / gcd;\n }",
"public void multiply(Rational s) {\n\tnumerator *= s.numerator;\n\tdenominator *= s.denominator;\n }",
"protected final double fr(double x, double rc, double re) {return rc*(K*K)/Math.pow(x, re);}",
"public void Reduce() {\n\t\tint gcd = MathHelper.GreatestCommonDivisor(this.numerator, this.denominator);\n\t\t\n\t\t// avoid divide by 0\n\t\tif (gcd > 0) {\n\t\t\tthis.numerator = this.numerator / gcd;\n\t\t\tthis.denominator = this.denominator / gcd;\n\t\t}\n\t}",
"public void multiply() {\n\t\t\n\t}",
"public final EObject ruleMultiplicativeExpression() throws RecognitionException {\n EObject current = null;\n\n Token lv_op_2_1=null;\n Token lv_op_2_2=null;\n Token lv_op_2_3=null;\n EObject this_UnaryExpression_0 = null;\n\n EObject lv_right_3_0 = null;\n\n\n enterRule(); \n \n try {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:729:28: ( (this_UnaryExpression_0= ruleUnaryExpression ( ( ( ( () ( ( ( '*' | '/' | '%' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '*' | lv_op_2_2= '/' | lv_op_2_3= '%' ) ) ) ) ) ( (lv_right_3_0= ruleUnaryExpression ) ) )* ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:730:1: (this_UnaryExpression_0= ruleUnaryExpression ( ( ( ( () ( ( ( '*' | '/' | '%' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '*' | lv_op_2_2= '/' | lv_op_2_3= '%' ) ) ) ) ) ( (lv_right_3_0= ruleUnaryExpression ) ) )* )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:730:1: (this_UnaryExpression_0= ruleUnaryExpression ( ( ( ( () ( ( ( '*' | '/' | '%' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '*' | lv_op_2_2= '/' | lv_op_2_3= '%' ) ) ) ) ) ( (lv_right_3_0= ruleUnaryExpression ) ) )* )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:731:5: this_UnaryExpression_0= ruleUnaryExpression ( ( ( ( () ( ( ( '*' | '/' | '%' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '*' | lv_op_2_2= '/' | lv_op_2_3= '%' ) ) ) ) ) ( (lv_right_3_0= ruleUnaryExpression ) ) )*\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getMultiplicativeExpressionAccess().getUnaryExpressionParserRuleCall_0()); \n \n }\n pushFollow(FOLLOW_ruleUnaryExpression_in_ruleMultiplicativeExpression1682);\n this_UnaryExpression_0=ruleUnaryExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_UnaryExpression_0; \n afterParserOrEnumRuleCall();\n \n }\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:739:1: ( ( ( ( () ( ( ( '*' | '/' | '%' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '*' | lv_op_2_2= '/' | lv_op_2_3= '%' ) ) ) ) ) ( (lv_right_3_0= ruleUnaryExpression ) ) )*\n loop12:\n do {\n int alt12=2;\n switch ( input.LA(1) ) {\n case 35:\n {\n int LA12_2 = input.LA(2);\n\n if ( (synpred8_InternalJavaJRExpression()) ) {\n alt12=1;\n }\n\n\n }\n break;\n case 36:\n {\n int LA12_3 = input.LA(2);\n\n if ( (synpred8_InternalJavaJRExpression()) ) {\n alt12=1;\n }\n\n\n }\n break;\n case 37:\n {\n int LA12_4 = input.LA(2);\n\n if ( (synpred8_InternalJavaJRExpression()) ) {\n alt12=1;\n }\n\n\n }\n break;\n\n }\n\n switch (alt12) {\n \tcase 1 :\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:739:2: ( ( ( () ( ( ( '*' | '/' | '%' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '*' | lv_op_2_2= '/' | lv_op_2_3= '%' ) ) ) ) ) ( (lv_right_3_0= ruleUnaryExpression ) )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:739:2: ( ( ( () ( ( ( '*' | '/' | '%' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '*' | lv_op_2_2= '/' | lv_op_2_3= '%' ) ) ) ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:739:3: ( ( () ( ( ( '*' | '/' | '%' ) ) ) ) )=> ( () ( ( (lv_op_2_1= '*' | lv_op_2_2= '/' | lv_op_2_3= '%' ) ) ) )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:755:6: ( () ( ( (lv_op_2_1= '*' | lv_op_2_2= '/' | lv_op_2_3= '%' ) ) ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:755:7: () ( ( (lv_op_2_1= '*' | lv_op_2_2= '/' | lv_op_2_3= '%' ) ) )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:755:7: ()\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:756:5: \n \t {\n \t if ( state.backtracking==0 ) {\n\n \t current = forceCreateModelElementAndSet(\n \t grammarAccess.getMultiplicativeExpressionAccess().getBinaryExpressionLeftAction_1_0_0_0(),\n \t current);\n \t \n \t }\n\n \t }\n\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:761:2: ( ( (lv_op_2_1= '*' | lv_op_2_2= '/' | lv_op_2_3= '%' ) ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:762:1: ( (lv_op_2_1= '*' | lv_op_2_2= '/' | lv_op_2_3= '%' ) )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:762:1: ( (lv_op_2_1= '*' | lv_op_2_2= '/' | lv_op_2_3= '%' ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:763:1: (lv_op_2_1= '*' | lv_op_2_2= '/' | lv_op_2_3= '%' )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:763:1: (lv_op_2_1= '*' | lv_op_2_2= '/' | lv_op_2_3= '%' )\n \t int alt11=3;\n \t switch ( input.LA(1) ) {\n \t case 35:\n \t {\n \t alt11=1;\n \t }\n \t break;\n \t case 36:\n \t {\n \t alt11=2;\n \t }\n \t break;\n \t case 37:\n \t {\n \t alt11=3;\n \t }\n \t break;\n \t default:\n \t if (state.backtracking>0) {state.failed=true; return current;}\n \t NoViableAltException nvae =\n \t new NoViableAltException(\"\", 11, 0, input);\n\n \t throw nvae;\n \t }\n\n \t switch (alt11) {\n \t case 1 :\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:764:3: lv_op_2_1= '*'\n \t {\n \t lv_op_2_1=(Token)match(input,35,FOLLOW_35_in_ruleMultiplicativeExpression1768); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t newLeafNode(lv_op_2_1, grammarAccess.getMultiplicativeExpressionAccess().getOpAsteriskKeyword_1_0_0_1_0_0());\n \t \n \t }\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getMultiplicativeExpressionRule());\n \t \t }\n \t \t\tsetWithLastConsumed(current, \"op\", lv_op_2_1, null);\n \t \t \n \t }\n\n \t }\n \t break;\n \t case 2 :\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:776:8: lv_op_2_2= '/'\n \t {\n \t lv_op_2_2=(Token)match(input,36,FOLLOW_36_in_ruleMultiplicativeExpression1797); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t newLeafNode(lv_op_2_2, grammarAccess.getMultiplicativeExpressionAccess().getOpSolidusKeyword_1_0_0_1_0_1());\n \t \n \t }\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getMultiplicativeExpressionRule());\n \t \t }\n \t \t\tsetWithLastConsumed(current, \"op\", lv_op_2_2, null);\n \t \t \n \t }\n\n \t }\n \t break;\n \t case 3 :\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:788:8: lv_op_2_3= '%'\n \t {\n \t lv_op_2_3=(Token)match(input,37,FOLLOW_37_in_ruleMultiplicativeExpression1826); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t newLeafNode(lv_op_2_3, grammarAccess.getMultiplicativeExpressionAccess().getOpPercentSignKeyword_1_0_0_1_0_2());\n \t \n \t }\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getMultiplicativeExpressionRule());\n \t \t }\n \t \t\tsetWithLastConsumed(current, \"op\", lv_op_2_3, null);\n \t \t \n \t }\n\n \t }\n \t break;\n\n \t }\n\n\n \t }\n\n\n \t }\n\n\n \t }\n\n\n \t }\n\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:803:4: ( (lv_right_3_0= ruleUnaryExpression ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:804:1: (lv_right_3_0= ruleUnaryExpression )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:804:1: (lv_right_3_0= ruleUnaryExpression )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:805:3: lv_right_3_0= ruleUnaryExpression\n \t {\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getMultiplicativeExpressionAccess().getRightUnaryExpressionParserRuleCall_1_1_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_ruleUnaryExpression_in_ruleMultiplicativeExpression1865);\n \t lv_right_3_0=ruleUnaryExpression();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getMultiplicativeExpressionRule());\n \t \t }\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"right\",\n \t \t\tlv_right_3_0, \n \t \t\t\"UnaryExpression\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop12;\n }\n } while (true);\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public MyDouble norm() {\r\n\t\tMyDouble aSquar = this.getReal().square();\r\n\t\tMyDouble bSquare = this.getImag().square();\r\n\t\tMyDouble sum = aSquar.add(bSquare);\r\n\t\tMyDouble result = sum.sqrt();\r\n\t\treturn result;\r\n\t}",
"public void multiply(Fraction f)\r\n {\r\n this.numerator = this.numerator * f.getNumerator();\r\n this.denominator = this.denominator * f.getDenominator();\r\n this.reduce();\r\n }",
"public Fraction inverse() {\n return new Fraction (denominator, numerator).reduce();\n }",
"public Fraction multiply(Fraction f){\n return new Fraction(this.numerator * f.numerator, this.denominator * f.denominator);\n }",
"private static native double mul(int n);",
"public static double multiply(int left, int right){\n return left * right;\n }",
"static void pregenInverse() \n\t{ \n\t\tinvfact[0] = invfact[1] = 1; \n\n\t\t// calculates the modInverse of \n\t\t// the last factorial \n\t\tinvfact[1000000] = modInverse(fact[1000000], mod); \n\n\t\t// precalculates the modInverse of \n\t\t// all factorials by formulae \n\t\tfor (int i = 999999; i > 1; --i) \n\t\t{ \n\t\t\tinvfact[i] = (int) (((long) invfact[i + 1] \n\t\t\t\t\t* (long) (i + 1)) % mod); \n\t\t} \n\t}",
"@Override\r\n\tpublic void mul(int x, int y) {\n\t\t\r\n\t}",
"public void reduce()\n\t{\n\t\tint divider = getGCD(myNumerator, myDenominator);\n\t\tmyNumerator /= divider;\n\t\tmyDenominator /= divider;\n\t}",
"public double modulusSquared() { \n\t\tdouble result = this.getReal()*this.getReal()+this.getImag()*this.getImag();\t\n\t\treturn result;\n\t}",
"public final EObject ruleNumericalMultiplyDivideExpression() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject this_NumericalUnaryExpression_0 = null;\r\n\r\n Enumerator lv_operator_2_0 = null;\r\n\r\n EObject lv_rightOperand_3_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3144:28: ( (this_NumericalUnaryExpression_0= ruleNumericalUnaryExpression ( () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_rightOperand_3_0= ruleNumericalUnaryExpression ) ) )* ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3145:1: (this_NumericalUnaryExpression_0= ruleNumericalUnaryExpression ( () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_rightOperand_3_0= ruleNumericalUnaryExpression ) ) )* )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3145:1: (this_NumericalUnaryExpression_0= ruleNumericalUnaryExpression ( () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_rightOperand_3_0= ruleNumericalUnaryExpression ) ) )* )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3146:5: this_NumericalUnaryExpression_0= ruleNumericalUnaryExpression ( () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_rightOperand_3_0= ruleNumericalUnaryExpression ) ) )*\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getNumericalMultiplyDivideExpressionAccess().getNumericalUnaryExpressionParserRuleCall_0()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleNumericalUnaryExpression_in_ruleNumericalMultiplyDivideExpression7167);\r\n this_NumericalUnaryExpression_0=ruleNumericalUnaryExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_NumericalUnaryExpression_0; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3154:1: ( () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_rightOperand_3_0= ruleNumericalUnaryExpression ) ) )*\r\n loop50:\r\n do {\r\n int alt50=2;\r\n int LA50_0 = input.LA(1);\r\n\r\n if ( (LA50_0==33||(LA50_0>=74 && LA50_0<=75)) ) {\r\n alt50=1;\r\n }\r\n\r\n\r\n switch (alt50) {\r\n \tcase 1 :\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3154:2: () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_rightOperand_3_0= ruleNumericalUnaryExpression ) )\r\n \t {\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3154:2: ()\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3155:5: \r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t current = forceCreateModelElementAndSet(\r\n \t grammarAccess.getNumericalMultiplyDivideExpressionAccess().getNumericalMultiplyDivideExpressionLeftOperandAction_1_0(),\r\n \t current);\r\n \t \r\n \t }\r\n\r\n \t }\r\n\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3160:2: ( (lv_operator_2_0= ruleMultiplicativeOperator ) )\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3161:1: (lv_operator_2_0= ruleMultiplicativeOperator )\r\n \t {\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3161:1: (lv_operator_2_0= ruleMultiplicativeOperator )\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3162:3: lv_operator_2_0= ruleMultiplicativeOperator\r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n \t \r\n \t \t newCompositeNode(grammarAccess.getNumericalMultiplyDivideExpressionAccess().getOperatorMultiplicativeOperatorEnumRuleCall_1_1_0()); \r\n \t \t \r\n \t }\r\n \t pushFollow(FOLLOW_ruleMultiplicativeOperator_in_ruleNumericalMultiplyDivideExpression7197);\r\n \t lv_operator_2_0=ruleMultiplicativeOperator();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \t if (current==null) {\r\n \t \t current = createModelElementForParent(grammarAccess.getNumericalMultiplyDivideExpressionRule());\r\n \t \t }\r\n \t \t\tset(\r\n \t \t\t\tcurrent, \r\n \t \t\t\t\"operator\",\r\n \t \t\tlv_operator_2_0, \r\n \t \t\t\"MultiplicativeOperator\");\r\n \t \t afterParserOrEnumRuleCall();\r\n \t \t \r\n \t }\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3178:2: ( (lv_rightOperand_3_0= ruleNumericalUnaryExpression ) )\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3179:1: (lv_rightOperand_3_0= ruleNumericalUnaryExpression )\r\n \t {\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3179:1: (lv_rightOperand_3_0= ruleNumericalUnaryExpression )\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3180:3: lv_rightOperand_3_0= ruleNumericalUnaryExpression\r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n \t \r\n \t \t newCompositeNode(grammarAccess.getNumericalMultiplyDivideExpressionAccess().getRightOperandNumericalUnaryExpressionParserRuleCall_1_2_0()); \r\n \t \t \r\n \t }\r\n \t pushFollow(FOLLOW_ruleNumericalUnaryExpression_in_ruleNumericalMultiplyDivideExpression7218);\r\n \t lv_rightOperand_3_0=ruleNumericalUnaryExpression();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \t if (current==null) {\r\n \t \t current = createModelElementForParent(grammarAccess.getNumericalMultiplyDivideExpressionRule());\r\n \t \t }\r\n \t \t\tset(\r\n \t \t\t\tcurrent, \r\n \t \t\t\t\"rightOperand\",\r\n \t \t\tlv_rightOperand_3_0, \r\n \t \t\t\"NumericalUnaryExpression\");\r\n \t \t afterParserOrEnumRuleCall();\r\n \t \t \r\n \t }\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop50;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }",
"public Fraction mul(Fraction f) {\n return new Fraction(this.numerator * f.getNumerator(), this.denominator * f.getDenominator());\n }",
"public Rational multiply(Rational other)\n\t{\n\t\tint multNumer = (getNumer() * other.getNumer());\n\t\tint multDenom = (getDenom() * other.getDenom());\n\n\t\tRational product = new Rational(multNumer, multDenom);\n\t\tproduct.normalize();\n\t\treturn product;\n\t}",
"@Override\n public Float mul(Float lhs, Float rhs) {\n\t\n\tfloat res = lhs*rhs;\n\treturn res;\n }",
"@Override\n public FqElement<BigInteger> sqrtMutable()\n {\n value = multiplyMontgomery(value, BigInteger.ONE).mod(order);\n if(IntegerUtil.legendreSymbol(value, order) != 1)\n return null;\n\n BigInteger e1 = order.subtract(BigInteger.ONE).shiftRight(1);\n BigInteger e1tmp = e1;\n BigInteger e2 = order.subtract(BigInteger.ONE);\n \n int s;\n for(s = 0; !e1.testBit(s); s++);\n \n BigInteger k = e1.shiftRight(s);\n BigInteger tmp;\n for(int i = 1; i <= s; i++)\n {\n e1 = e1.shiftRight(1);\n e2 = e2.shiftRight(1);\n tmp = value.modPow(e1, order).multiply(getNqr().modPow(e2, order))\n .subtract(order);\n if(tmp.equals(BigInteger.ONE.negate()))\n e2 = e2.add(e1tmp);\n }\n \n BigInteger m = k.subtract(BigInteger.ONE).shiftRight(1);\n value = value.modPow(m.add(BigInteger.ONE), order).multiply(getNqr()\n .modPow(e2.shiftRight(1), order)).mod(order);\n value = value.multiply(R).mod(order);\n return this;\n }",
"public long product() {\n\t\tlong result = 1;\n\t\tfor (int i=0; i<numElements; i++) {\n\t\t\tresult *= theElements[i];\n\t\t}\n\t\treturn result;\n\t}",
"public static int [] multFrac(int [] operand1, int [] operand2) { \r\n \tint numerator = operand1[0] * operand2[0];\r\n \tint denominator = operand1[1] * operand2[1]; \r\n \tint [] product = {numerator, denominator};\r\n \treturn product;\r\n }",
"@Override\r\n\tpublic double calculate() {\n\t\treturn n1 * n2;\r\n\t}",
"public static RationalNumber multiply(RationalNumber r1, RationalNumber r2) \n\t{\n\t\t//Executable pre-condition: Stopping the wrong form of Fraction.\n\t\tassert r1.getDenominator() != 0: \"Invalid Fraction! Denominator cannot equal to 0\";\n\t\tassert r2.getDenominator() != 0: \"Invalid Fraction! Denominator cannot equal to 0\";\n\t\t\n\t\t\n\t\tint multiplyNum = 0;\n\t\tint multiplyDeno = 0;\n\t\t\n\t\t//Extracting the numerator and denominator from each instances:\n\t\tint num1 = r1.getNumerator();\n\t\tint num2 = r2.getNumerator();\n\t\tint deno1 = r1.getDenominator();\n\t\tint deno2 = r2.getDenominator();\n\t\t\n\t\t//Fraction multiplication:\n\t\tmultiplyNum = num1 * num2;\n\t\tmultiplyDeno = deno1 * deno2;\n\t\t\n\t\t//converting from an integer into a fraction:\n\t\tRationalNumber answer = new RationalNumberImpl_Luong(multiplyNum,multiplyDeno);\n\t\treturn answer;\n\t}",
"public static double fren(double x) {\r\n double v = fapprox(Math.sqrt(x));\r\n return v * v;\r\n }",
"void mul(double val) {\r\n\t\tresult = result * val;\r\n\t}",
"public static float sqr(float x) {\n\t\treturn x * x;\n\t}",
"@Override\n\tpublic double multiply(double in1, double in2) {\n\t\treturn 0;\n\t}",
"public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}",
"public double r() { return Math.sqrt(x*x + y*y); }",
"public abstract Vector4fc mul(float x, float y, float z, float w);",
"public double calculateRecall() {\n final long divisor = truePositive + falseNegative;\n if(divisor == 0) {\n return 0.0;\n } else {\n return truePositive / (double)divisor;\n }\n }",
"public void reduct() {\n\t\tint divider = bunmo;\n\t\tif(bunja < bunmo){\n\t\t\tdivider = bunja;\n\t\t}\n\t\twhile(divider > 1){\n//\t\twhile(!util.Uitl.isPrime(bunmo)||!util.Uitl.isPrime(bunja)){\n\t\t\tboolean canDivide = (bunmo%divider==0)&&(bunja%divider==0);\n\t\t\tif(canDivide){\n\t\t\t\tbunja/=divider;\n\t\t\t\tbunmo/=divider;\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tdivider--;\n\t\t\t}\n\t\t}\n\t}",
"public static Rational multiply(Rational num1, Rational num2){\r\n Rational product = new Rational();\r\n \r\n // multiply throughout\r\n product.denominator = num1.getDenominator() * num2.getDenominator();\r\n product.numerator = num1.getNumerator() * num2.getNumerator();\r\n \r\n product.reduce();\r\n return product;\r\n }",
"public double modulusSquared() {\n\t\treturn (real * real) + (imaginary * imaginary);\n\t}",
"public Matrix multiply(Fraction f) {\n\t\treturn multiply(new ComplexNumber(f));\n\t}",
"private Rational computeDirectly() {\n BigInteger _26390k = _26390.multiply(BigInteger.valueOf(start));\n BigInteger _24591257856pk = _24591257856.pow(start);\n\n Rational sum = Rational.ZERO;\n\n for (int k = start; k < end; k++) {\n BigInteger num = Factorial.verified(BigInteger.valueOf(k << 2));\n num = num.multiply(_1103.add(_26390k));\n\n BigInteger den = Factorial.verified(BigInteger.valueOf(k)).pow(4);\n den = den.multiply(_24591257856pk);\n\n _26390k = _26390k.add(_26390);\n _24591257856pk = _24591257856pk.multiply(_24591257856);\n\n sum = sum.add(Rational.valueOf(num, den).dropTo(context));\n sum = sum.dropTo(context);\n }\n return sum;\n }",
"public Fraction mul(Fraction newFraction) {\n\t\tint newNumerator = numerator * newFraction.getNumerator();\n\t\tint newDenominator = denominator * newFraction.getDenominator();\n\t\tint gcd = gcd(newNumerator, newDenominator);\n\t\tnewNumerator /= gcd;\n\t\tnewDenominator /= gcd;\n\t\treturn new Fraction(newNumerator, newDenominator);\n\t}",
"public Matrix times(double constant){\r\n \tMatrix cmat = new Matrix(this.nrow, this.ncol);\r\n \tdouble [][] carray = cmat.getArrayReference();\r\n\r\n \tfor(int i=0; i<this.nrow; i++){\r\n \t\tfor(int j=0; j<this.ncol; j++){\r\n \t\tcarray[i][j] = this.matrix[i][j]*constant;\r\n \t\t}\r\n \t}\r\n \treturn cmat;\r\n \t}",
"public void sampleMethod()\n {\n int a = 6;\n System.out.println(a *= a);\n \n }",
"@Override\r\n\tpublic double calculate() {\n\t\treturn n1 / n2;\r\n\t}",
"public void mul() {\n //TODO: Fill in this method, then remove the RuntimeException\n throw new RuntimeException(\"RatPolyStack->mul() unimplemented!\\n\");\n }",
"private void reduce() {\n /** The fraction is equal to 0. The numerator is 0 in this case */\n if(this.numerator == 0)\n this.denominator = 1;\n /** The numerator and denominator are not equal */\n else if (this.numerator != this.denominator) {\n\n /** The greatest common divisor of the numerator and denominator of this fraction */\n int gcd = getGCD(Math.abs(this.numerator), Math.abs(this.denominator));\n\n /** There is a greatest common divisor greater than 1 */\n if (gcd > 1) {\n this.numerator /= gcd;\n this.denominator /= gcd;\n }\n } \n /** The fraction is equal to 1 */\n else {\n this.numerator = 1;\n this.denominator = 1;\n }\n }",
"public Fraction multiply( Fraction factor ) {\n Fraction result = new Fraction( this.numerator * factor.numerator,\n this.denominator * factor.denominator );\n return result;\n }",
"public static void testMulRec() {\n\n try {\n\n Matrix m1 = new Matrix(new double[][]{\n {1, 2, 3, 4},\n {5, 6, 7, 8},\n {1, 2, 3, 4},\n {5, 6, 7, 8}});\n\n Matrix m2 = new Matrix(new double[][]{\n {1, 2, 3, 4},\n {5, 6, 7, 8},\n {1, 2, 3, 4},\n {5, 6, 7, 8}});\n\n Matrix m3 = Matrix.multiplyRec(m1, m2, 0);\n\n System.out.println(m3);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"public static void main(String[] args) {\n\tComplex c1 = new Complex(1,2);\r\n\tComplex c2 = new Complex(-2,-1);\r\n\t\r\n\t//Calculates the product of c1 and c2\r\n\tComplex product_c1c2 = Complex.multiply(c1, c2);\r\n\tSystem.out.println(\"The product of c1 and c2 is: \"+product_c1c2);\r\n \t\r\n\t//Calculates the ratio of c1 to c2 (c1/c2)\r\n\tComplex ratio_c1c2 = Complex.divide(c1, c2);\r\n\tSystem.out.println(\"The ratio of c1 to c2 is: \"+ratio_c1c2);\r\n\t\r\n\t//Calculates the product of c1 and I\r\n\tComplex product_c1I = Complex.multiply(c1, Complex.I);\r\n\tSystem.out.println(\"The product of c1 and I is: \"+product_c1I);\r\n\t\r\n\t//Calculates the ratio of c1 to 0\r\n\tComplex ratio_c1Zero = Complex.divide(c1, Complex.Zero);\r\n\tSystem.out.println(\"The ratio of c1 and 0 is: \"+ratio_c1Zero);\r\n\t\r\n\t//Calculates the product of c1 with the conjugate of c1\r\n\tComplex c1_conj = Complex.conj(c1);\r\n\tComplex product_c1c1conj = Complex.multiply(c1,c1_conj);\r\n\tSystem.out.println(\"The product of c1 and c1* is: \"+product_c1c1conj);\r\n\t\r\n\t//Calculates the product of c1 with the conjugate of c1\r\n\tComplex c2_conj = Complex.conj(c2);\r\n\tComplex product_c2c2conj = Complex.multiply(c2,c2_conj);\r\n\tSystem.out.println(\"The product of c1 and c1* is: \"+product_c2c2conj);\r\n\t}",
"private Fraction reduce() {\n Fraction f = null;\n try {\n f = (Fraction)clone();\n } catch (CloneNotSupportedException e) {};\n if (denominator == 0)\n throw new ArithmeticException (\" illegal denominator zero \");\n if (denominator < 0) {\n f.numerator = -numerator;\n f.denominator = -denominator;\n }\n if (numerator == 0)\n f.denominator = 1;\n else {\n int n = gcd (numerator, denominator);\n f.numerator = numerator / n;\n f.denominator = denominator / n;\n }\n return f;\n }",
"public String multiply()\r\n {\r\n\r\n return First.multiply(Second).stripTrailingZeros().toString();\r\n }",
"public static double rekursiv(double x, int n) {\n if (n == 0) {\n return 1;\n }\n if (!erPartall(n)) {\n return x*rekursiv(x*x,(n-1)/2); //Grunntall x^2, eksponent ...\n }\n else {\n return rekursiv(x*x,n/2);\n }\n }",
"public double carre(double v) {\n return v*v;\n }",
"public void dormqr_(CHARACTER SIDE,CHARACTER TRANS,INTEGER M,INTEGER N,INTEGER K,double[] A,INTEGER LDA,double[] TAU,double[] C,INTEGER LDC,double[] WORK,INTEGER LWORK,INTEGER INFO);",
"public static void multiplyFrac(int[] op1, int[] op2, int[] finalAnswer) {\n \tfinalAnswer[1] = (op1[1]*op2[1]);\t//multiply both num to get the new num, store in index 1 of finalanswer\r\n \tfinalAnswer[2] = (op1[2]*op2[2]);\t//multiply both denom together to get the new denom; store in index 2 of final answer\r\n }",
"BaseNumber multiply(BaseNumber operand);",
"public abstract Vector4fc mul(IVector4f v);",
"private static double sqrtPiSqr() {\n\t\tfinal double PI = Math.PI;\n\t\tfinal int POWER = 2;\n\n\t\t// Solving equation and return value\n\t\treturn Math.sqrt(Math.pow(PI*PI,POWER));\n\t}",
"public void updateRate(double r){\r\n rate *= r;\r\n }",
"private Proof mulLeftZero(Expression a) {\n Variable x = var(\"x\");\n Proof equalitySymConvert = equalitySymConvert(faxm8Gen(zero(), x));\n Proof faxm6gen = faxm6Gen(multi(zero(), x));\n Proof axm2convert = faxm2Convert(equalitySymConvert, faxm6gen);\n Proof axm2convertOnce = faxm2ConvertOnce(zero(), equalitySymConvert(axm2convert));\n return inductConclusion(x, a, faxm7Gen(zero()), axm2convertOnce);\n }",
"public void mul(final int factor) {\n for (int i = 0; i < coefficients.length; i++) {\n coefficients[i] = zpz.mul(coefficients[i],factor);\n }\n constant = zpz.mul(constant,factor);\n }",
"int main(){\n int n, f = 1;\n cin>>n;\n for(int i = 1;i <= n;i++)\n f*=i;\n cout<<f;\n}",
"static int modInverse(int a, int m) \n\t{ \n\t\tint m0 = m; \n\t\tint y = 0, x = 1; \n\t\tif (m == 1) \n\t\t{ \n\t\t\treturn 0; \n\t\t} \n\n\t\twhile (a > 1) \n\t\t{ \n\n\t\t\t// q is quotient \n\t\t\tint q = a / m; \n\t\t\tint t = m; \n\n\t\t\t// m is remainder now, process \n\t\t\t// same as Euclid's algo \n\t\t\tm = a % m; \n\t\t\ta = t; \n\t\t\tt = y; \n\n\t\t\t// Update y and x \n\t\t\ty = x - q * y; \n\t\t\tx = t; \n\t\t} \n\n\t\t// Make x positive \n\t\tif (x < 0) \n\t\t{ \n\t\t\tx += m0; \n\t\t} \n\n\t\treturn x; \n\t}",
"public double squareMagnitude() {\n\t\treturn x*x + y*y + z*z;\n\t}",
"public Fraction multiply( int factor ) {\n Fraction result = new Fraction( this.numerator * factor, this.denominator );\n return result;\n }",
"Sum getMultiplier();",
"public double getRealSimilarity()\r\n {\r\n double result = (1 - this.similarity) * 100;\r\n BigDecimal big = new BigDecimal(result).setScale(2, RoundingMode.UP);\r\n return big.doubleValue();\r\n }",
"public Fraction over(Fraction rightOperand){\n\t\tFraction inverse = new Fraction(rightOperand.getDenominator(),\n\t\t\t\t\t\t\t\t\t\trightOperand.getNumerator());\n\t\treturn this.times(inverse);\n\t}",
"private void simplify(){\n\n\t\tint gcd;\n\t\twhile(true){ \n\t \tgcd = greatestCommonDivisor(myNumerator, myDenominator);\n\t \tif (gcd ==1) return;\n\t \tmyNumerator = myNumerator / gcd;\n\t \tmyDenominator = myDenominator / gcd;\n\t\t}\n }",
"public Inatnum multiply(Inatnum a) {\n Inatnum zero = new zeronatnum(); // we need a new zero natural number for our res\n Inatnum res = zero;// this is our res value where we store our information, it needs to start at 0\n //INV: i>0 && i-1 <= this.getval() && res = a^(i) ==> i=this.getval()-(this.getval()z-1)\n for(int i = this.getVal(); i>0;i--) {// setting our i value to our this and if its greater than zero decrement by 1\n //INV: i>0 && i <= this.getval() && res = a^i ==> i=this.getval()-(this.getval()\n\t\t\tres = res.add(a);//now we save our res value as the previous res value plus a. we do this as many times as we are multiplying by. So if it is 3 times\n //INV: i>0 && i <= this.getval() && res = a^i ==> i=this.getval()-(this.getval()-1) \n \t\t\t//i-- => i = this.getval()-(this.getval()-1-1)\n \t\t\t //INV: i>0 && i-1 <= this.getval() && res = a^(i) ==> i=this.getval()-(this.getval()-1-1)\n \t\t\t //INV: i>0 && i-1 <= this.getval() && res = a^(i) ==> i=this.getval()-(this.getval()z-1) \n\t\t\t // 4 then we are adding 4 3 times\n }\n\t\t\t //INV: i<0 && i-1 < this.getval() ==> i ==0 && res = a^i ==> i=this.getval()\n //Termination Argument: i starts at this.getval(), i decrements each time through the loop\n\t\t\t\t\t\t return res;// we need to return our res value that holds our current value.\n }",
"public static double inverseSquare(double z){ //TODO: This needs a little love. Should probably use the repel method instead.\n boolean positive = z >= 0;\n z += positive? 1:(-1);\n double square = Math.pow(z,2);\n return positive? 1/square:square;\n }",
"public Fraction times(Fraction rightOperand){\n\t\t// top times top, and bottom times bottom\n\t\tint num = myNumerator * rightOperand.getNumerator();\n\t\tint denom = myDenominator * rightOperand.getDenominator();\n\t\n\t\treturn new Fraction(num, denom);\n }",
"public Fraction simplify(){\n long n = this.numerator;\n long d = this.denominator;\n for(long k = d; k >= 1; k--){\n if(n % k == 0 && d % k == 0) {\n n = n / k;\n d = d / k;\n break;\n }\n }\n return new Fraction(n,d);\n }",
"public T mul(T first, T second);",
"long modInverse(long a, long m) \r\n { \r\n\t\t long m0 = m; \r\n long y = 0, x = 1; \r\n \r\n if (m == 1) \r\n return 0; \r\n \r\n while (a > 1) \r\n { \r\n // q is quotient \r\n \tlong q = a / m; \r\n \r\n \tlong t = m; \r\n \r\n // m is remainder now, process \r\n // same as Euclid's algo \r\n m = a % m; \r\n a = t; \r\n t = y; \r\n \r\n // Update x and y \r\n y = x - q * y; \r\n x = t; \r\n } \r\n \r\n // Make x positive \r\n if (x < 0) \r\n x += m0; \r\n \r\n return x; \r\n }",
"public abstract double calcular();",
"public double norm() {\r\n return Math.sqrt(innerProduct(this));\r\n }",
"public final void mul(float scalar) {\n\tm00 *= scalar; m01 *= scalar; m02 *= scalar;\n\tm10 *= scalar; m11 *= scalar; m12 *= scalar;\n\tm20 *= scalar; m21 *= scalar; m22 *= scalar;\n }",
"public Double inverse(Double advNum1){\n answer = 1 / advNum1;\n return answer;\n }",
"public Mult(Expression left, Expression right) {\n super(left, right);\n }",
"public Mult(Expression left, Expression right) {\n super(left, right);\n }",
"Rational divide(Rational p){\n Rational firstarg=new Rational();\n firstarg.numerator=numerator;\n firstarg.denominator=denominator;\n\n\n firstarg.numerator=firstarg.numerator*p.denominator;\n firstarg.denominator=p.numerator*firstarg.denominator;\n return firstarg;\n }",
"public double f(double x) {\r\n\t\treturn this._coefficient*Math.pow(x, this._power);\r\n\t}",
"abstract void mulS();",
"double rpow(int x, int n) {\r\n\t\tif (n == 0)\r\n\t\t\treturn 1.0;\r\n\t\treturn x * rpow(x, n - 1);\r\n\t}",
"public void timesEquals(double constant){\r\n\r\n \tfor(int i=0; i<this.nrow; i++){\r\n \t\tfor(int j=0; j<this.ncol; j++){\r\n \t\tthis.matrix[i][j] *= constant;\r\n \t\t}\r\n \t}\r\n \t}",
"public Mult(double left, Expression right) {\n super(left, right);\n }"
] | [
"0.7502424",
"0.7459185",
"0.7196824",
"0.7003957",
"0.6478955",
"0.6329555",
"0.5917671",
"0.59058094",
"0.5833074",
"0.57940745",
"0.56466866",
"0.56465036",
"0.5605503",
"0.55403215",
"0.552089",
"0.54738057",
"0.5466964",
"0.54399663",
"0.54178333",
"0.5408077",
"0.5399477",
"0.53740984",
"0.5373482",
"0.53557396",
"0.53369594",
"0.5326911",
"0.5326768",
"0.52854294",
"0.52696836",
"0.5256204",
"0.5248434",
"0.52347314",
"0.52284926",
"0.5201288",
"0.5188914",
"0.5184991",
"0.5181021",
"0.5155026",
"0.5145574",
"0.51351726",
"0.5133675",
"0.5123972",
"0.5101702",
"0.5094738",
"0.5088397",
"0.5085011",
"0.50821716",
"0.5075495",
"0.50737774",
"0.5062615",
"0.50483155",
"0.5046613",
"0.5027704",
"0.50146776",
"0.50032413",
"0.5002008",
"0.5001748",
"0.49860933",
"0.49845037",
"0.49833098",
"0.49790493",
"0.49703506",
"0.4960856",
"0.4956326",
"0.4955767",
"0.49489892",
"0.4937081",
"0.49359655",
"0.49278116",
"0.49267748",
"0.49256364",
"0.49250025",
"0.4922955",
"0.49225956",
"0.49055216",
"0.48970938",
"0.48948964",
"0.4888805",
"0.48871464",
"0.48798424",
"0.48782378",
"0.4874632",
"0.48745605",
"0.48730832",
"0.48644322",
"0.48638123",
"0.48601156",
"0.48594663",
"0.48517308",
"0.4849345",
"0.48492965",
"0.4847473",
"0.484672",
"0.4845163",
"0.4845163",
"0.48422647",
"0.4842217",
"0.48362935",
"0.48312682",
"0.48312142",
"0.4828916"
] | 0.0 | -1 |
System.out.println("Kampf ist vorbei, Runde: "+round+", Gewinner: "+i); | private void endFight(int i, int round) {
calcAndApplyDebrisfield();
if(i == 0) { // Vicory for att
def_pb = getPb(defPlanetId);
resDiff();
int cargoSpace = getCargoSpace();
long maxMetal = (long)(def_pg.getMetal()/2);
long maxCrystal = (long)(def_pg.getCrystal()/2);
long maxDeut = (long)(def_pg.getDeut()/2);
if((maxMetal+maxCrystal+maxDeut) <= cargoSpace) {
booty[0] = maxMetal;
booty[1] = maxCrystal;
booty[2] = maxDeut;
}
else {
long min = Math.min(maxMetal, Math.min(maxCrystal, maxDeut));
if(min*3 <= cargoSpace) {
booty[0] = min;
booty[1] = min;
booty[2] = min;
}
else {
booty[0] = cargoSpace/3;
booty[1] = cargoSpace/3;
booty[2] = cargoSpace/3;
}
while((booty[0]+booty[1]+booty[2])<cargoSpace) {
booty[0] = booty[0] < maxMetal ? ++booty[0] : booty[0];
booty[1] = booty[1] < maxCrystal ? ++booty[1] : booty[1];
booty[2] = booty[2] < maxDeut ? ++booty[2] : booty[2];
}
}
def_pg.setMetal(def_pg.getMetal()-booty[0]);
def_pg.setCrystal(def_pg.getCrystal()-booty[1]);
def_pg.setDeut(def_pg.getDeut()-booty[2]);
writeLog(true,true);
writeLog(false,false);
}
else if(i == 1) { // Victory for def
writeLog(false,true);
writeLog(true,false);
}
else {// Draw
writeLog(false,true);
writeLog(false,false);
}
repairDef();
applyBattleResults();
saveDefDataset();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void startRound(int round) {\n\t\tif (round != 1) {\n\t\t\tSystem.out.println(\" Vous avez effectuez votre : \" + round + \" ème attaques\\n\");\n\t\t} else {\n\t\t\tSystem.out.println(\" Vous avez effectuez votre : \" + round + \" ère attaque\\n\");\n\t\t}\n\n\t}",
"public void showOuterNguoi() {\n\t\t\tSystem.out.println(\"Ten Nguoi: \"+ ten + \"; Tuoi: \"+ age);\n\t\t}",
"public static void printGame(){\n System.out.println(\"Spielrunde \" + GameController.AKTUELLE_RUNDE);\n System.out.println(GameController.AKTUELLER_SPIELER +\" ist an der Reihe.\");\n System.out.println(\"Er attackiert \" +\n GameController.AKTUELLER_VERTEIDIGER + \" und verursacht \"\n + GameController.SCHADEN +\" Schaden. \");\n System.out.println();\n }",
"public static void main(String[] args) {\n int tankToCargo = 3; // кол-во контейнеров помещающихся в грузовик\n int boxToTank = 2; // кол-во ящиков помещающихся в контейнер\n int box = 18; //кол-во ящиков\n\n double tanks = Math.ceil((double) box / boxToTank);//расчет кол-ва контейнеров\n double cargos = Math.ceil(tanks / tankToCargo);//расчет кол-ва грузовиков\n\n System.out.println(\"\\nКол-во ящиков для траспортировки \" + box + \" шт.\");\n System.out.println(\"Необходимое кол-во контейнеров для перевозки ящиков \" + (int) tanks + \" шт.\");\n System.out.println(\"Необходимое кол-во грузовиков \" + (int) cargos + \" шт.\");\n System.out.println(\"\\nРаспределение ящиков по контейнерам и контейнеров по грузовикам: \\n\");\n\n int countTank = 1;//счетчик контейнеров\n int coutnCargos = 1;//счетчик грузовиков\n for (int i = 1; i <= box; i++) {\n if (i == 1) {\n System.out.println(\"Грузовик: \" + coutnCargos);\n coutnCargos++;\n }\n if (i == 1) {\n System.out.print(\"\\tКонтейнер: \" + countTank + \"\\n\");\n countTank++;\n }\n {\n System.out.print(\"\\t\\tЯщик: \" + i + \"\\n\");\n }\n if (i % (tankToCargo * boxToTank) == 0 && i < box) {\n System.out.println(\"Грузовик: \" + coutnCargos);\n coutnCargos++;\n }\n if (i % boxToTank == 0 && i < box) {\n System.out.print(\"\\tКонтейнер: \" + countTank + \"\\n\");\n countTank++;\n }\n }//end of \"for\"\n }",
"Rock2(int i ){\n System.out.print(\"Rock\"+ i + \" \");\n }",
"private void nextRound() {\n\t\n\t\t\n\t\tcfight++;\n\t\tif(cfight>=maxround)\n\t\t{\n\t\tcfight=0;\n\t\t\n\t\tround++;\n\t\t\tmaxround/=2;\n\t\t}\n\t\t\n\tif(round<4)\n\t{\n\tcontrollPCRound();\n\t}\n\telse\n\t{\n\t\tint sp=0;\n\t\tint round=0;\n\t\tfor(int i=0; i<fighter.length; i++)\n\t\t{\n\t\t\tif(spieler[i]>0)\n\t\t\t{\n\t\t\t\tsp++;\n\t\t\t\tif(fround[i]>round)\n\t\t\t\t{\n\t\t\t\tround=fround[i];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\tif(geld==false)\n\t{\n\t\tgeld=true;\n\t\tif(sp==1)\n\t\t{\n\t\tZeniScreen.addZenis(round*3500);\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint w=round*4000-500*sp;\n\t\t\tif(w<1)\n\t\t\t{\n\t\t\t\tw=100;\n\t\t\t}\n\t\t\tZeniScreen.addZenis(w);\t\n\t\t}\n\t}\n\t}\n\t\n\t\n\t}",
"private void printThings(int i) {\n System.out.println(\"\\nTrying:\");\n System.out.println(\"currRow: \" + currRow);\n System.out.println(\"currColumn: \" + currColumn);\n System.out.print(\"Number = \" + i);\n printBoard(board);\n }",
"public static String nextRound() {\n return \"Starting next round.\";\n }",
"public static void main (String [] args){\n double i;\n \n for ( i = 1; i <=20; i ++ ){\n \n JOptionPane.showMessageDialog(null,i + \" polegada é igual a \" + i*2.54 + \" centimetros\");\n }\n \n\n }",
"public void displayRoundScore() {\n\n System.out.println(\"Round stats: \");\n System.out.println(\"Par: \" + parTotal);\n System.out.println(\"Strokes: \" + strokesTotal);\n\n if(strokesTotal > parTotal) {\n System.out.println(strokesTotal-parTotal + \" over par\\n\");\n } \n else if (strokesTotal < parTotal) {\n System.out.println(parTotal-strokesTotal + \" under par\\n\");\n }\n else {\n System.out.println(\"Making par\\n\");\n }\n }",
"public static void printSieger(){\n System.out.println(\"Sieger ist \" +GameController.SIEGER);\n }",
"public void roundTitle() {\n lineDivider();\n System.out.println(\"\\n--------------------- R O U N D ---------------------\");\n System.out.println(\"\\t \" + currentRound++ + \" \\n\");\n }",
"void vorbereiten(){\n\t\tSystem.out.println(\"vorbereiten \");\n\t}",
"public void surasystiReiksmes(){\n\n System.out.println (\"╔═══════════╦═══════════╦═══════════╗\");\n\n for ( int i = 0; i < 9; i++){ //eilutes israso?\n\n if ((i==3)||(i==6)) {\n System.out.print(\"╠═══════════╬═══════════╬═══════════╣\\n\");\n } if ( ( i==1 )||( i==2) ||( i==4 )||( i==5 )||( i==7 )||( i==8 ) ) {\n System.out.print(\"║ ─ ─ ─ ║ ─ ─ ─ ║ ─ ─ ─ ║\\n║\");\n } else {\n System.out.print(\"║\");\n }\n\n for (int j = 0; j < 9; j++){ //stulpelius israso?\n\n String bruksniukas = \" │\";\n\n if ((j==2)||(j==5)||(j==8)){\n bruksniukas=\" ║\";\n }\n\n if (sudoku_skaiciai[i][j].zingsnio_nr==0){\n System.out.println(\"\\033[36m\"+ sudoku_skaiciai[i][j].reiksme +\"\\033[0m\");\n }\n\n System.out.print(\" \" + sudoku_skaiciai [i][j].reiksme + bruksniukas); //israso koonsolej visa uzduoti\n }\n System.out.println(); //???\n }\n System.out.println (\"╚═══════════╩═══════════╩═══════════╝\");\n }",
"void printWinner() {\n }",
"public static void main (String[] s){\n\t\tint eingabe=0;\n\t\twhile(eingabe!=-1){\n\t\t\tSystem.out.print(\"Text eingeben: \");\n\t\t\tSystem.out.println(\"Eingegeben wurde:\"+Eingabe.leseString());\n\t\t\tSystem.out.print(\"Float eingeben: \");\n\t\t\tSystem.out.println(\"Eingegeben wurde:\"+Eingabe.leseFloat());\n\t\t\tSystem.out.print(\"Double eingeben: \");\n\t\t\tSystem.out.println(\"Eingegeben wurde:\"+Eingabe.leseDouble());\n\t\t\tSystem.out.print(\"Boolean eingeben: \");\n\t\t\tSystem.out.println(\"Eingegeben wurde:\"+Eingabe.leseBoolean());\n\t\t\tSystem.out.print(\"Ganze Zahl eingeben (Abbruch mit -1): \");\n\t\t\teingabe=Eingabe.leseInt();\n\t\t\tSystem.out.println(\"Eingeben wurde: \"+eingabe);\n\t\t}\n\t}",
"public void kurang(){\n hitung--;\n count.setText(Integer.toString(hitung));\n }",
"@Override\r\n\tpublic void run() {\n\t\tfor(int i =1; i<=lastNum;i++)\r\n\t\t{\r\n\t\t\tSystem.out.print(\" \"+i);\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n\t\tWohnung[] wohnblock = new Wohnung[3] ;\r\n\t\twohnblock[0] = new Wohnung(80.4, 10.2);\r\n\t\twohnblock[1] = new Wohnung(100.3, 12.2);\r\n\t\twohnblock[2] = new Wohnung(120.8, 30.8);\r\n\t\t\r\n\t\tint i = 1;\r\n\t\tfor(Wohnung Hausnummer:wohnblock)\r\n\t\t{\r\n\t\t\tSystem.out.printf(\"Wohnung %d Flaeche: %4.1f qm und einen %3.1f qm grossen Balkon. %n\", i, Hausnummer.getFlaecheInnen(), \r\n\t\t\t\t\tHausnummer.getFlaecheBalkon());\r\n\t\t\ti++;\r\n\t\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tWohnung Wohnkopie;\r\n\t\tWohnkopie = wohnblock[0];\r\n\t\tSystem.out.printf(\"Die Daten der Wohnkopie:%n\");\r\n\t\tWohnkopie.WerteAusgabe();\r\n\t\tSystem.out.printf(\"Die Daten der Originalwohnung%n\");\r\n\t\twohnblock[0].WerteAusgabe();\r\n\t\tSystem.out.printf(\"Jetzt werden die werte der Kopie geaendert%n\");\r\n\t\tWohnkopie.setFlaecheBalkon(99.9);\r\n\t\tWohnkopie.setFlaecheInnen(99.9);\r\n\t\tSystem.out.printf(\"Die Daten der Wohnkopie:%n\");\r\n\t\tWohnkopie.WerteAusgabe();\r\n\t\tSystem.out.printf(\"Die Daten der Originalwohnung%n\");\r\n\t\twohnblock[0].WerteAusgabe();\r\n\t\t\r\n\t\tWohnkopie.getGesammt();\r\n\t\t\r\n\t\t\r\n\t}",
"void show(int step){\n System.out.println(\"Значение фунции в промежутке от \"+ 5 + \" до \"+ 10 +\" с шагом \" + 1);\n for (int i= 0; i < 10; i++) {\n this.calculate(i);\n }\n\n }",
"public void display_round_start_text() {\n }",
"public static void main(String[] args) {\n int rounds = 7;\n\n // playing game\n for(int round = 0; round < rounds; round++) {\n System.out.println(\"Round \" + (round +1));\n playGame(\"John\", \"Steve\");\n System.out.println(\" \");\n }\n }",
"public static void main(String[] args) {\nSystem.out.println(\"sayi giriniz\");\r\n\t\tScanner klavyedenAl = new Scanner(System.in);\r\n\t\tint bulunacakSayi = klavyedenAl.nextInt();\r\n\t\tfor (int i = 2; i <= bulunacakSayi; i++) {\r\n\t\t\tif (bulunacakSayi % i == 0) {\r\n\t\t\t\tSystem.out.println(\"sayi\" + i + \"bölünür\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"public static void printInt() {\n\t\tint i = 500;\n\t\twhile (i >=25) {\n\t\t\tif(i%6==0 && i%8==0) {\n\t\t\t\tSystem.out.print(i + \" \");\n\t\t\t}\n\t\t\t// Do not forget to type increment, otherwise it will be infinite loop\n\t\t\ti--;\n\t\t}\n\t}",
"public void printStatus() {\n\t\tSystem.out.println(\"Current : \"+current+\"\\n\"\n\t\t\t\t+ \"Tour restant : \"+nb_rounds+\"\\n\"\n\t\t\t\t\t\t+ \"Troupe restant : \"+nb_to_train);\n\t}",
"public void gagne()\r\n\t{\r\n\t\tthis.nbVictoires++;\r\n\t}",
"@Override\n public void visualize() {\n if (this.count() > 0){\n for (int i = 0; i < this.count(); i++){\n System.out.println(i + \".- \" + this.bench.get(i).getName() + \" (ID: \" + this.bench.get(i).getId() + \")\");\n }\n } else {\n System.out.println(\"La banca está vacía.\");\n }\n\n }",
"public int getRoundNum(){\n return gameRounds;\n }",
"@Override\n public final String toString()\n {\n String str = formatInt(turn)+formatInt(fiftyMove);\n //int counter = 0;\n for (Square[] s1: getSquares())\n {\n for (Square s: s1)\n {\n if (!s.isEmpty())\n {\n str+=\"\"+s;\n //counter++;\n /*if (counter%4==0)\n str+=\"\\n\";*/\n }\n }\n }\n return str;\n }",
"public static void main(String[] args) {\nint i=1;\nwhile(i<=10)\n{\n\tSystem.out.println(i+\"raj\");//display nos from 1 to 10 and raj \n\ti=i+1;\n}\n\t}",
"public int getNround()\n {\n \treturn this.nround;\n }",
"public static void laukiHorizontalaIrudikatu(int neurria, char ikurra) {\n int altuera=neurria/2;\n int zabalera=neurria;\n for(int i=1; i<=altuera; i++){//altuera\n System.out.println(\" \");\n \n \n for(int j=1; j<=zabalera; j++){//zabalera\n \n System.out.print(ikurra);\n }\n\n}\n }",
"public static void main(String[] args)\n {\n double tall1 = 10.0;\n \tdouble tall2 = 11.3;\n double tall3 = 13.4;\n\n // snitt variabel med tallene\n double snit = tall1 + tall2 + tall3;\n\n // gjennomsnitt utregning av snitt delt på antall tall\n double gsnit = snit / 3;\n\n // Printing i console av hvordan tall som er brukt og hva gjennomsnittet av disse tallene er\n System.out.println(\"Gjennomsnittet av tallene \" + tall1 + \", \" + tall2 + \" og \" + tall3 + \" er: \\n\" + gsnit);\n\n }",
"public static void main(String[] args) {\r\n\t\tfor (int q = 0; q < 3; q++) {\r\n\r\n\t\t\tfor (int i = 0; i < 10; i++) {\r\n\t\t\t\tSystem.out.print(\"badger, \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t\tfor (int o = 0; o < 2; o++) {\r\n\r\n\t\t\t\tSystem.out.print(\"mushroom, \");\r\n\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t\tif (q == 2) {\r\n\t\t\t\tfor (int s = 0; s < 4; s++) {\r\n\t\t\t\t\tSystem.out.print(\"snake! \");\r\n\t\t\t\t if (s == 2) {\r\n\t\t\t\t System.out.print(\"oh its a \");\r\n\t\t\t\t }\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n}",
"private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}",
"public void run() {\nfor (int i = 0; i < times ; i++) {\n System.out.print(ToPrint + \"-\");\n }\n }",
"@Override\n public void print() {\n for (int i = 1; i <= itertion; i++) {\n if(n <0){\n this.result = String.format(\"%-3d %-3s (%-3d) %-3s %d \", i, \"*\", n, \"=\", (n * i));\n System.out.println(this.result);\n }else {\n this.result = String.format(\"%-3d %-3s %-3d %-3s %d \", i, \"*\", n, \"=\", (n * i));\n System.out.println(this.result);\n }\n }\n }",
"private static void myLine(int zahl) {\n\n for (int i = 7; i < zahl; i += 7) {\n System.out.print(i + \" \");\n }\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tSystem.out.println(\"Hallo 2021!\");\r\n\t\t\r\n\t\tSystem.out.println(\"Schnell gemacht\");\r\n\t\t\r\n\t\tSystem.out.println(\"template vervollständigen mit syso und STRG+SPACE\");\r\n\t\t\r\n\t\t// Variablen\r\n\t\t// Zahlen-Variable - Ganzzahlen\r\n\t\t// int - Variable\r\n\t\tint zahl1 = 5;\r\n\t\tint zahl2 = 10;\r\n\t\t\r\n\t\tSystem.out.print(\"zahl1: \");\r\n\t\tSystem.out.println(zahl1);\r\n\t\tSystem.out.print(\"zahl2: \");\r\n\t\tSystem.out.println(zahl2);\r\n\t\t//\r\n\t\tint ergebnis_a;\r\n\t\tergebnis_a = zahl1 + zahl2;\r\n\t\tSystem.out.print(\"Ergebnis von \" + zahl1 + \" addiert mit \" + zahl2 + \" ist:\");\r\n\t\tSystem.out.println(ergebnis_a);\r\n\t\t//\r\n\t\t\r\n\t\t// schleife - for-schleife\r\n\t\t//\r\n\t\t/*\r\n\t\tSystem.out.println(1);\r\n\t\tSystem.out.println(2);\r\n\t\tSystem.out.println(3);\r\n\t\tSystem.out.println(4);\r\n\t\tSystem.out.println(5);\r\n\t\tSystem.out.println(6);\r\n\t\tSystem.out.println(7);\r\n\t\tSystem.out.println(8);\r\n\t\tSystem.out.println(9);\r\n\t\tSystem.out.println(10);\r\n\t\t*/\r\n\t\t//\r\n\t\tfor (int zaehler = 1; zaehler <= 10; zaehler = zaehler + 1) {\r\n\t\t\tSystem.out.println(zaehler);\r\n\t\t}\r\n\t\t//\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\r\nfor (int i=1; i<=20; i++) {\r\n\tif (i!=20) {\r\n\t\t\r\n\tSystem.out.print(i+\"+\");\r\n}\r\nelse {\r\n\tSystem.out.println(i);\r\n}\r\n\t}\r\n\r\n}",
"public static int numberOfRounds() {\n System.out.print(\"Entrez le nombre de rounds de cette partie : \");\n while (true) {\n try {\n int rounds = new Scanner(System.in).nextInt();\n if (rounds > 0) return rounds;\n } catch (Exception ignored) {\n }\n System.out.println(\"Entrez un entier supérieur à 0 : \");\n }\n }",
"public void print()\r\n\t{\r\n\r\n\t\t for(int i = 0; i < 20; i++)\r\n\t\t {\r\n\t\t\t for(int j = 0; j < 20; j++)\r\n\t\t\t {\r\n\t\t\t\t if(sTalker.getY() == randomer.getY() && sTalker.getX() == randomer.getX() && sTalker.getY() == i && sTalker.getX() == j)\r\n\t\t\t\t \tSystem.out.print(\"x\");\r\n\r\n\t\t\t\t else if (i == randomer.getY() && j == randomer.getX())\r\n\t\t\t\t \tSystem.out.print(\"o\");\r\n\r\n\t\t\t\t else if (i == sTalker.getY() && j == sTalker.getX())\r\n\t\t\t\t \tSystem.out.print(\"*\");\r\n\r\n\t\t\t\t else\r\n\t\t\t\t \tSystem.out.print(\"-\");\r\n\t\t\t }\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\r\n\t\tif(sTalker.getY() == randomer.getY() && sTalker.getX() == randomer.getX())\r\n\t\t{\r\n\t\t \tSystem.out.println(\"The stalker has caught the walker!\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\r\n\t\trandomer.move();\r\n\t\tsTalker.move(randomer);\r\n\t}",
"public static void main(String[] args) {\n\t\tfor(int i = 1; i<=10 ; i++ ) {\n\t\t\tSystem.out.println(\"Java\");\n\t\t}\n\t\t\n\t\t//Ekrana 1 den 5 e kadar tamsayilari yazdiriniz\n\t\tfor(int i = 1; i<=5; i++){\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\t\n\t\t//Ekrana 4 den 1 e kadar tamsayilari yazdirin\n\t\tfor(int i=4; i>=1; i--) {\t\t\n\t\t\tSystem.out.println(i);\t\t\n\t\t}\n\t\t\n\t\t//Ekrana ilk 3 cift sayma sayisini yazdiriniz (2, 4, 6) \t\t\n\t\t//1. Yol\n\t\tfor(int i=2; i<=6; i=i+2) {\t\t\n\t\t\tSystem.out.println(i);\t\t\t\n\t\t}\t\t\n\t\t//2. Yol\n\t\tfor(int i=1; i<=6; i++){\t\t\t\n\t\t\tif(i%2==0) {\t\t\n\t\t\t\tSystem.out.println(i);\t\t\t\t\n\t\t\t}\t\t\n\t\t}\n\t\t\n\t\t//Ekrana ilk 100 cift sayma sayisini yazdiriniz\n\t\t//Loop'larin oncesinde bir variable olusturup onu loop'un icinde \n\t\t//kullanirsaniz bu variable'lara \"Flag\" denir. Asagidaki soruda \n\t\t//sayma variable'i bir flag'dir.\n\t\tint sayma = 1;\t\t\n\t\tfor(int i = 1; sayma<=100; i++) {\t\t\t\n\t\t\tif(i%2==0) {\t\t\t\t\n\t\t\t\tSystem.out.print(i + \" \");\t\t\t\t\n\t\t\t\tsayma++;\t\t\t\t\n\t\t\t}\t\t\t\n\t\t}\n\n\t}",
"public static void endGame(){\n System.out.println(\"\" +\n \"######## ## ## ### ## ## ## ## ###### ######## ####### ######## \\n\" +\n \" ## ## ## ## ## ### ## ## ## ## ## ## ## ## ## ## \\n\" +\n \" ## ## ## ## ## #### ## ## ## ## ## ## ## ## ## \\n\" +\n \" ## ######### ## ## ## ## ## ##### ###### ###### ## ## ######## \\n\" +\n \" ## ## ## ######### ## #### ## ## ## ## ## ## ## ## \\n\" +\n \" ## ## ## ## ## ## ### ## ## ## ## ## ## ## ## ## \\n\" +\n \" ## ## ## ## ## ## ## ## ## ###### ## ####### ## ## \\n\\n\" +\n \"######## ## ### ## ## #### ## ## ###### #### \\n\" +\n \"## ## ## ## ## ## ## ## ### ## ## ## #### \\n\" +\n \"## ## ## ## ## #### ## #### ## ## #### \\n\" +\n \"######## ## ## ## ## ## ## ## ## ## #### ## \\n\" +\n \"## ## ######### ## ## ## #### ## ## \\n\" +\n \"## ## ## ## ## ## ## ### ## ## #### \\n\" +\n \"## ######## ## ## ## #### ## ## ###### #### \");\n\n\n }",
"public static void main(String[] args) {\n\n int count=0;\n\n while (count<5) {\n System.out.println(\"Merhaba\");\n count++;//count=count+1 yerine kullandik. count+=1 de yapilabilir.\n }\n }",
"public static void main(String[] args) {\n int nilai = 20;\n if (nilai * 2 < 40) {\n nilai += 5;\n }\n if (nilai <= 10) {\n System.out.println(\"algoritma \");\n if (nilai % 2 == 1) {\n System.out.println(\"pemrograman \");\n } else {\n System.out.println(\"java \");\n }\n } else {\n System.out.println(\"bukan algoritma \");\n if (nilai % 2 == 1) {\n System.out.println(\"pemrograman \");\n } else {\n System.out.println(\"java \");\n }\n }\n }",
"public void retConfirm(float draw){\n System.out.println(\"La cantidad de \"+draw+\" ha sido retirada correctamente\");\n System.out.println(\"\");\n}",
"public static void main(String[] args) {\n\t\t\n\t\t\n\tfor (int a=1; a<=5; a++)\t {\n\t\tfor (int b=1; b<=(5-a); b++) {\n\t\t\tSystem.out.print(\".\");\n\t\t}\n\t\tSystem.out.println(a);\n\t\t\n\t}\t\n\t}",
"public static void main(String[] args) {\n\t\tint [] eingabe = {1, 1, 1, 1};\r\n\t\tint laenge = 4;\r\n\t\tint zustandAktuell = 0;\r\n\t\tint [][] Zustandstabelle = new int [4][2];\r\n\t\tZustandstabelle [0][0] = -1;\r\n\t\tZustandstabelle [0][1] = 1;\r\n\t\tZustandstabelle [1][0] = 2;\r\n\t\tZustandstabelle [1][1] = 3;\r\n\t\tZustandstabelle [2][0] = 2;\r\n\t\tZustandstabelle [2][1] = -1;\r\n\t\tZustandstabelle [3][0] = 2;\r\n\t\tZustandstabelle [3][1] = 3;\r\n\t\t\r\n\t\tfor (int i = 0; i < laenge; i++)\r\n\t\t{\r\n\t\t\tzustandAktuell = Zustandstabelle[zustandAktuell][eingabe[i]];\r\n\t\t\tif (zustandAktuell == -1) {\r\n\t\t\t\tSystem.out.print(\"Ungültige Eingabe. Beenden\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tif (zustandAktuell != 5)\r\n\t\t{\r\n\t\t\tSystem.out.print(\"q\" + (zustandAktuell + 1) + \" ist der Zustand nach Bearbeitung der Eingabe: [\");\r\n\t\t\tfor (int i = 0; i < laenge ; i++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(eingabe [i]);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.print(\"]\");\r\n\t\t\t\r\n\t\t}\r\n\r\n\t}",
"public void TulisIsi(){\r\n\t\tfor(int i=0;i<BrsEff;i++){\r\n\t\t\tfor(int j=0;j<KolEff;j++){\r\n\t\t\t\tSystem.out.printf(\"%.2f \", Elmt[i][j]);\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}",
"private static void displayStat() {\n Collection<Zone> zones = Universe.getInstance().getCarte().getCarte().values();\r\n System.out.println(\"Nb de personnes créées : \" + Universe.getInstance().getCarte().getPopulation().size());\r\n\r\n\r\n System.out.println(\"Nb de personnes créées en mer : \" + getPopulationByTile(Zone.Tile.SEA));\r\n System.out.println(\"Nb de personnes créées en plaine : \" + getPopulationByTile(Zone.Tile.EARTH));\r\n System.out.println(\"Nb de personnes créées en foret : \" + getPopulationByTile(Zone.Tile.FOREST));\r\n System.out.println(\"Nb de personnes créées en ville : \" + getPopulationByTile(Zone.Tile.TOWN));\r\n\r\n System.out.println(\"---------------\");\r\n\r\n System.out.println(\"Surface mer : \" + getSurfaceByTile(zones, Zone.Tile.SEA));\r\n System.out.println(\"Surface plaine : \" + getSurfaceByTile(zones, Zone.Tile.EARTH));\r\n System.out.println(\"Surface foret : \" + getSurfaceByTile(zones, Zone.Tile.FOREST));\r\n System.out.println(\"Surface ville : \" + getSurfaceByTile(zones, Zone.Tile.TOWN));\r\n\r\n System.out.println(\"---------------\");\r\n\r\n System.out.println(\"Densité mer : \" + new Double(getPopulationByTile(Zone.Tile.SEA) / getSurfaceByTile(zones, Zone.Tile.SEA)));\r\n System.out.println(\"Densité plaine : \" + new Double(getPopulationByTile(Zone.Tile.EARTH)) / new Double(getSurfaceByTile(zones, Zone.Tile.EARTH)));\r\n System.out.println(\"Densité foret : \" + new Double(getPopulationByTile(Zone.Tile.FOREST)) / new Double(getSurfaceByTile(zones, Zone.Tile.FOREST)));\r\n System.out.println(\"Densité ville : \" + new Double(getPopulationByTile(Zone.Tile.TOWN)) / new Double(getSurfaceByTile(zones, Zone.Tile.TOWN)));\r\n\r\n System.out.println(\"---------------\");\r\n System.out.println(\"Surface mer deserte : \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.SEA) && CollectionUtils.isEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface plaine deserte : \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.EARTH) && CollectionUtils.isEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface foret deserte: \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.FOREST) && CollectionUtils.isEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface ville deserte: \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.TOWN) && CollectionUtils.isEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"---------------\");\r\n\r\n System.out.println(\"Surface mer habitée : \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.SEA) && CollectionUtils.isNotEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface plaine habitée : \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.EARTH) && CollectionUtils.isNotEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface foret habitée: \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.FOREST) && CollectionUtils.isNotEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface ville habitée: \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.TOWN) && CollectionUtils.isNotEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n }",
"static void drawSquare(Robot gumi) {\n\t\tJOptionPane.showMessageDialog(null, \"yay! you called the drawSquare() method!\");\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tgumi.move(100);\n\t\t\tgumi.turn(90);\n\t\t}\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tint i = 11;\n\t\t\n\t\tSystem.out.println(\"카운트 다운을 시작합니다.\");\n\t\t\n\t\twhile(i--!=0) {\n\t\t\tSystem.out.println(i);\n\t\t\tfor(int j=0;j<2_000_000_000;j++) {\n\t\t\t\t;//아무런 내용도 없는 빈 문장. 매 출력마다 약간의 시간을 지연시킴\n\t\t\t}\n\t\t\t//for(int j=0;j<2_000_000_000;j++);\n\t\t\t//또는 for(int j=0;j<2_000_000_000;j++){}\n\t\t}\n\t\tSystem.out.println(\"GAME OVER\");\n\t\t\n/*\t\tfor(i=1;i<=10;i++);\n\t\t{\n\t\t\tSystem.out.println(\"i = \"+i);\n\t\t}*/\n\t}",
"public void drawQuest(){\n System.out.println(\"¿Que cantidad desea retirar?\");\n System.out.println(\"\"); \n}",
"public void beginRound() {\r\n\t\tnewRound();\r\n\t}",
"public static void showSportsman(Runner[] runners, int numberOfRunners) {\n\n System.out.println(\"спорстмены, результаты которых выше средней скорости по спортшколе\");\n for (int i = 0; i < numberOfRunners; i++) {\n if (runners[i].getAverageRun() > countAllAverage(runners, numberOfRunners)) {\n System.out.println(runners[i].toString());\n }\n\n }\n\n System.out.println(\"спорстмены, результаты которых ниже средней скорости по спортшколе\");\n\n for (int i = 0; i < numberOfRunners; i++) {\n if (runners[i].getAverageRun() <= countAllAverage(runners, numberOfRunners)) {\n System.out.println(runners[i].toString());\n }\n\n }\n\n\n }",
"public static void main(String[] args) {\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tdouble dRND = Math.random();\n\t\t\tdouble dRND1 = dRND * 100; // 0부터 99까지\n\t\t\tdRND1 = dRND * 50; // 0부터 49.xx까지\n\t\t\tdRND1 = dRND * 30; // 0부터 29.xx까지\n\t\t\tint intRND = (int) dRND1; // 0부터 29까지\n\t\t\tintRND += 1; // 1부터 30까지\n\t\t\tintRND += 20; // 21부터 50까지\n\n\t\t\tint intStars = (int) (dRND * (10 - 5 + 1)) + 5; // 5부터 10까지\n\n\t\t\tintStars = (int) (dRND * (100 - 50 + 1)) + 50; // 50부터 100까지 숫자 만들어내기\n\t\t\tSystem.out.println(intStars);\n\n\t\t}\n\t}",
"static void loop() {\r\n\r\n\t\tfor (int i =1; i<=10; i++) { \r\n\t\t\tSystem.out.println(i);\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n int result = 1 + 2;\n double prevresult = (double) result / 5;\n\n System.out.println(result / 2.1);\n System.out.println(prevresult);\n\n //modulus\n int mod = 5%2;\n System.out.println(\"Modulus : \" + mod);\n\n boolean isHuman = true;\n\n if(isHuman) {\n System.out.println(\"You are a Human\");\n }\n\n int topscore = 120;\n\n if (topscore <= 100) {\n System.out.println(\"You got the topscore.\");\n } else {\n System.out.println(\"You suck!\");\n }\n\n String indexes = \"\";\n //for loop\n for (int i = 0; i < 10; i++) {\n indexes += \" Index: \" + i;\n System.out.println(indexes);\n }\n\n\n double x = 20;\n double y = 80;\n\n double sum = (x + y) * 25;\n double remainder = sum % 40;\n\n if (remainder <= 20) {\n System.out.println(\"The remainder is at most 20\");\n } else {\n System.out.println(\"Remainder is greater than 20\");\n }\n\n\n\n\n\n\n\n\n\n\n }",
"public static void StartNewRound () {\n System.out.println(\"The game \" + (rounds == 0 ? \"begins!\" : \"continues...\"));\r\n System.out.println(\"===============================================\");\r\n\r\n // GENERATE A NEW NUMBER\r\n SetNewNumber();\r\n\r\n // RESET PICKED ARRAY\r\n ResetPickedNumbers();\r\n }",
"public void print(){\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\" ~ THREE ROOM DUNGEON GAME ~ \");\n\t\tfor(int i = 0; i < this.area.length;i++){\n\t\t\tSystem.out.println(\" \");\n\t\t\tSystem.out.print(\" \");\n\t\t\tfor(int p = 0 ; p < this.area.length; p++){\n\t\t\t\tif(this.Garret[i][p] == 1){\n\t\t\t\t\tSystem.out.print(\":( \");\n\t\t\t\t}\n\t\t\t\telse if(this.Ari[i][p] ==1){\n\t\t\t\t\tSystem.out.print(\" ? \");\n\t\t\t\t}\n\t\t\t\telse if(this.position[i][p] ==1){\n\t\t\t\t\tSystem.out.print(\" + \");\n\t\t\t\t}\n\t\t\t\telse if(this.Items[i][p] != null){\n\t\t\t\t\tSystem.out.print(\"<$>\");\n\t\t\t\t}\n\t\t\t\telse if(this.Door[i][p] ==1){\n\t\t\t\t\tSystem.out.print(\" D \");\n\t\t\t\t}\n\t\t\t\telse if(this.Stairs[i][p] ==1){\n\t\t\t\t\tSystem.out.print(\" S \");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(this.area[i][p]);\n\t\t\t\t}\n\t\t\t}//end of inner for print\n\t\t}//end of outter for print\n\n\t}",
"private static void print(Test29 ob) {\n\t\tSystem.out.printf(\"원의 넓이 : %f\",ob.area(3));\n\t\tSystem.out.printf(\"\\n사각형의 넓이 : %.2f\",ob.area(4,5));\n\t\tSystem.out.printf(\"\\n사다리꼴의 넓이 : %.2f\",ob.area(3,4,7));\n\t}",
"private void LotsofGrasp()\n\t{\n\t\t\n\t\tArrayList<FirmlyGraspIt> myRuns = new ArrayList<FirmlyGraspIt>();\n\t\t\n\t\tArrayList<Integer> myNums = new ArrayList<Integer>();\n\t\t\n\t\t\n\t\tFirmlyGraspIt sampleRun = new FirmlyGraspIt();\n\t\tFirmlyGraspIt otherRun = new FirmlyGraspIt();\n\t\t\n\t\tmyRuns.add(sampleRun);\n\t\tmyRuns.add(sampleRun);\n\t\tmyRuns.add(otherRun);\n\t\t\n\t\tfor (int index =0; index < myRuns.size(); index +=1)\n\t\t\t\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, myRuns.get(index).getName());\n\t\t\t\n\t\t\tFirmlyGraspIt currentRun = myRuns.get(index);\n\t\t\tJOptionPane.showMessageDialog(null, currentRun.getName());\n\t\t\tcurrentRun.setName(\"The new name is \" + index + \"run\");\n\t\t\tcurrentRun.setDistance(index * (int) (Math.random() * 300));\n\t\t\t\n\t\t}\n\t\t\n\t\t{\n\t\t\t\n\t\t}\n\t\n\t\t\n\t\tfor (int index = myRuns.size() - 1; index >= 0; index -= 1)\n\t\t{\n\t\t\t\n\t\t}\n\t\t\n\t\tfor (FirmlyGraspIt current : myRuns)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, \"The run is named:\" + current.getName());\n\t\t}\n\t\t\n\t}",
"public void printScore(int i) {\r\n try {\r\n System.out.println(i + \". \" + name + \" - \" + vehicleScore + \" - \" + rating + \" - \" + sumScore);\r\n } catch (Exception e) {\r\n System.out.println(\"VehicleDTO printSpec error \" + e.getMessage());\r\n }\r\n }",
"void newRound() {\n // Increase the round number on every round.\n round++;\n\n // Write to the log file\n\t logger.log(divider);\n logger.log(\"\\nRound \" + round + \" starting.\");\n logger.log(\"Active player: \" + activePlayer.getName());\n\n // Log player name and topmost card for all players.\n for (Player player : players) {\n logger.log(player.getName() + \"'s card: \" + player.getTopMostCard()\n .toString());\n }\n\n setGameState(GameState.NEW_ROUND_INITIALISED);\n }",
"public static void main(String[] args) {\n\t\tint ganas = 0;\n\t\tfor (int a = 1; a <= 10; a++) {\n\t\t\n\t\tint sale = 0;\n\t\t// Lanzamos la moneda 5 veces\n\t\tfor (int i = 1; i <= 5; i++) {\n\t\t Random rand = new Random();\n\t\t\tint m = rand.nextInt(2)+1;\n\t\t\t\n\t\t\tif (m == 2) {\n\t\t\t\tSystem.out.print(\"X\");\n\t\t\t\tsale++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.print(\"O\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\" \");\n\t \n\t\tif (sale >= 3) {\n\t \tSystem.out.println(\"Bieeen!! Has ganado. Han salido \" + sale + \" cruces\");\n\t ganas++;\n\t }\n\t else {\n\t \tSystem.out.println(\"Lo siento... Intentalo de nuevo! Han salido \" + sale + \" cruces\");\n\t }\n\t\tif (a == 10) {\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\"-------------------------------------- \");\n\t\tSystem.out.println(\"Has ganado \" + ganas + \" partidas de 10\");\n\t\tSystem.out.println(\"-------------------------------------- \");\n\t\t}\n\t\t} //for\n\t}",
"public void printCube(String title) {\n System.out.print(\"\\n\");\n System.out.println(\"[ \" + title + \" ]\");\n System.out.println(\" \" + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.UP).getSquare(1,1)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.UP).getSquare(2,1)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.UP).getSquare(3,1)));\n System.out.println(\" \" + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.UP).getSquare(1,2)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.UP).getSquare(2,2)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.UP).getSquare(3,2)));\n System.out.println(\" \" + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.UP).getSquare(1,3)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.UP).getSquare(2,3)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.UP).getSquare(3,3)));\n System.out.println(singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.LEFT).getSquare(1,1)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.LEFT).getSquare(2,1)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.LEFT).getSquare(3,1)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.FRONT).getSquare(1,1)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.FRONT).getSquare(2,1)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.FRONT).getSquare(3,1)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.RIGHT).getSquare(1,1)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.RIGHT).getSquare(2,1)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.RIGHT).getSquare(3,1)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.BACK).getSquare(1,1)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.BACK).getSquare(2,1)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.BACK).getSquare(3,1)));\n System.out.println(singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.LEFT).getSquare(1,2)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.LEFT).getSquare(2,2)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.LEFT).getSquare(3,2)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.FRONT).getSquare(1,2)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.FRONT).getSquare(2,2)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.FRONT).getSquare(3,2)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.RIGHT).getSquare(1,2)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.RIGHT).getSquare(2,2)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.RIGHT).getSquare(3,2)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.BACK).getSquare(1,2)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.BACK).getSquare(2,2)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.BACK).getSquare(3,2)));\n System.out.println(singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.LEFT).getSquare(1,3)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.LEFT).getSquare(2,3)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.LEFT).getSquare(3,3)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.FRONT).getSquare(1,3)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.FRONT).getSquare(2,3)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.FRONT).getSquare(3,3)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.RIGHT).getSquare(1,3)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.RIGHT).getSquare(2,3)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.RIGHT).getSquare(3,3)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.BACK).getSquare(1,3)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.BACK).getSquare(2,3)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.BACK).getSquare(3,3)));\n System.out.println(\" \" + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.DOWN).getSquare(1,1)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.DOWN).getSquare(2,1)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.DOWN).getSquare(3,1)));\n System.out.println(\" \" + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.DOWN).getSquare(1,2)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.DOWN).getSquare(2,2)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.DOWN).getSquare(3,2)));\n System.out.println(\" \" + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.DOWN).getSquare(1,3)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.DOWN).getSquare(2,3)) + singleChar(getRubiksFace(RubiksFace.RubiksFacePosition.DOWN).getSquare(3,3)));\n }",
"public static void main(String[] args) {\n System.out.println(\"1.1\");\n System.out.println(\"Welcome to java\");\n System.out.println(\"Learning java now\");\n System.out.println(\"Programming is fun\");\n\n // Kapitel3.opgave 1.2 (display 5 messages)\n System.out.println(1.2);\n int i = 0;\n while (i <= 4) {\n System.out.println(\"I love java\");\n i++;\n }\n // Kapitel3.opgave 1.4 (print a table)\n System.out.println(\"1.4\");\n System.out.println(\"a a^2 a^3 a^4\");\n System.out.println(\"1 1 1 1\");\n System.out.println(\"2 4 8 16\");\n System.out.println(\"3 9 27 81\");\n System.out.println(\"4 16 64 256\");\n\n // Kapitel3.opgave 1.5\n System.out.println(1.5);\n System.out.print(\"(7.5 * 6.5 - 4.5 * 3)/(47.5 - 5.5 ) = \");\n System.out.println((7.5 * 6.5 - 4.5 * 3)/(47.5 - 5.5));\n\n // Kapitel3.opgave 1.6\n System.out.println(\"1.6\");\n System.out.print(\"1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 = \");\n System.out.println(1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10);\n\n //Kapitel3.opgave 1.12\n System.out.println(\"1.12\");\n // vi skal omskrive miles til kilometer\n System.out.println(\"Miles to kilometers is \" + (24 * 1.6));\n // vi skal omskrive 1 time 40 min og 35 sek til sekunder\n System.out.println(\"Number of hour in fraction is \" + ((60 * 60) + (40 * 60) + 35)/ (60.0 * 60));\n\n System.out.println(\"he ran \" + (38.400000000000006 / 1.676388888888889 ) + \" kilometers per hour\");\n\n }",
"public static void main(String[] args) {\n\t\t\n\t\tboolean ste = true;\n\t\tint num1 = 11;\n\t\t\n\t\tif(ste) {\n//\t\t\tint num1++;\n\t\t\tnum1++;\n\t\t\tSystem.out.println(\"num1 : \" + num1);\t\t\t\n\t\t}\n\t\t{\n\t\t\tint num2 = 33;\n\t\t\tnum2++;\n\t\t\tSystem.out.println(\"num2 : \" + num2);\n\t\t}\n//\t\tSystem.out.println(\"num2 : \" + num2);\t// 상단에 {} 중괄호로 엮여서 영역 다름\n\n\t}",
"public void display() {System.out.println(skaitlis);}",
"public String runPostSeason()\n {\n String westernChamp = \"\";\n\n int r = new Random().nextInt(1 + 1);\n\n\n\n //First Round\n\n for(int i = 0; i < 4; i++)\n {\n b.setFirstRoundWest(i,0,playoffs[i]);\n b.setFirstRoundWest(i,1,playoffs[7 - i]);\n }\n\n\n //Second Round\n for(int i = 0; i < 2; i++)\n {\n for(int j = 0; j < 8; j++) {\n if (winningTeam(b.getFirstRoundWest()[i][0], b.getFirstRoundWest()[i][1]).equals(b.getFirstRoundWest()[i][0]))\n {\n firstRoundRecords[i][0] += 1;\n }\n else\n {\n firstRoundRecords[i][1] += 1;\n }\n\n if (firstRoundRecords[i][0] >= 4)\n {\n b.setSecondRoundWest(0, i, b.getFirstRoundWest()[i][0]);\n break;\n }\n else if (firstRoundRecords[i][1] >= 4)\n {\n b.setSecondRoundWest(0, i, b.getFirstRoundWest()[i][1]);\n break;\n }\n }\n\n for(int j = 0; j < 8; j++) {\n if (winningTeam(b.getFirstRoundWest()[i+2][0], b.getFirstRoundWest()[i+2][1]).equals(b.getFirstRoundWest()[i+2][0]))\n {\n firstRoundRecords[i+2][0] += 1;\n }\n else\n {\n firstRoundRecords[i+2][1] += 1;\n }\n\n if (firstRoundRecords[i+2][0] >= 4)\n {\n b.setSecondRoundWest(1, i, b.getFirstRoundWest()[i+2][0]);\n break;\n }\n else if (firstRoundRecords[i+2][1] >= 4)\n {\n b.setSecondRoundWest(1, i, b.getFirstRoundWest()[i+2][1]);\n break;\n }\n }\n }\n\n //Third Round\n for(int i = 0; i < 2; i++)\n {\n for(int j = 0; j < 8; j++)\n {\n if (winningTeam(b.getSecondRoundWest()[i][0], b.getSecondRoundWest()[i][1]).equals(b.getSecondRoundWest()[i][0]))\n {\n secondRoundRecords[i][0] += 1;\n }\n else\n {\n secondRoundRecords[i][1] += 1;\n }\n\n\n if (secondRoundRecords[i][0] >= 4)\n {\n b.setThirdRoundWest(i, b.getSecondRoundWest()[i][0]);\n break;\n }\n else if (secondRoundRecords[i][1] >= 4)\n {\n b.setThirdRoundWest(i, b.getSecondRoundWest()[i][1]);\n break;\n }\n }\n\n }\n\n //Finals Western Team\n for(int i = 0; i < 8; i++)\n {\n if (winningTeam(b.getThirdRoundWest()[0],b.getThirdRoundWest()[1]).equals(b.getThirdRoundWest()[0]))\n {\n westFinalsRecord[0] += 1;\n }\n else\n {\n westFinalsRecord[1] += 1;\n }\n\n\n if (westFinalsRecord[0] >= 4)\n {\n westernChamp = b.getThirdRoundWest()[0];\n break;\n }\n else if (westFinalsRecord[1] >= 4)\n {\n westernChamp = b.getThirdRoundWest()[1];\n break;\n }\n\n }\n\n return westernChamp;\n }",
"@Override\n\tpublic void sanjiao() {\n\t\t\tfor (int i = 1; i <5; i++) {\n\t\t\t\tfor(int j=1;j<=2*i-1;j++){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t}",
"public void mainkan(){\n System.out.println();\n //System.out.printf(\"Waktu: %1.2f\\n\", this.oPlayer.getWaktu());\n System.out.println(\"Nama : \" + this.oPlayer.nama);\n System.out.println(\"Senjata : \" + this.oPlayer.getNamaSenjataDigunakan());\n System.out.println(\"Kesehatan : \" + this.oPlayer.getKesehatan());\n// System.out.println(\"Daftar Efek : \" + this.oPlayer.getDaftarEfekDiri());\n System.out.println(\"Nama Tempat : \" + this.namaTempat);\n System.out.println(\"Narasi : \" + this.narasi);\n }",
"public static void main(String[] args) {\n\n Scanner oku =new Scanner(System.in);\n System.out.println(\"Vize notunuzu giriniz=\");\n int vizeNotu = oku.nextInt();\n\n System.out.println(\"Final notunuzu giriniz=\");\n int finalNotu =oku.nextInt();\n\n double ort =vizeNotu *0.4 +finalNotu * 0.6;\n\n System.out.println(\"ort>=60\" +ort);\n if (ort >=60) {\n System.out.println(\"Gectiniz\");\n System.out.println(\"Tebrikler\");\n }\n else\n {\n System.out.println(\"Kaldiniz\");\n }\n\n }",
"int nbLignes();",
"public void zugInWerkstatt() {\n werkstatt++;\n }",
"@Override\r\n\tpublic void run() {\n\t\tfor (int i = 6; i <= 10; i++) {\r\n System.out.println(Thread.currentThread().getName() + \": \" + i); \t\r\n\r\n}\r\n\t}",
"private void print() {\r\n // Print number of survivors and zombies\r\n System.out.println(\"We have \" + survivors.length + \" survivors trying to make it to safety (\" + childNum\r\n + \" children, \" + teacherNum + \" teachers, \" + soldierNum + \" soldiers)\");\r\n System.out.println(\"But there are \" + zombies.length + \" zombies waiting for them (\" + cInfectedNum\r\n + \" common infected, \" + tankNum + \" tanks)\");\r\n }",
"public int getCurrentRound()\n\t{\n \treturn currentRound;\n\t}",
"private void newRound() {\r\n\t\tballoonsThisRound = currentRoundNumber * balloonsPerRound * 5;\r\n\t\tcurrentRound = new Round(balloonTypes, 0.3f, balloonsThisRound);\r\n\t\tcurrentRoundNumber++;\r\n\r\n\t\tSystem.out.println(\"Begining Round: \" + currentRoundNumber);\r\n\t}",
"public void print() {\n\t\tcounter++;\n\t\tSystem.out.print(counter + \" \");\n\t\tfor (int i = 0; i < size; i++) {\n\t\t for (int j = 0; j < size; j++) {\n\t\t\t\tSystem.out.print(squares[j][i].getValue());\n\t\t }\n\t\t System.out.print(\"//\");\n\t\t}\n\t\tSystem.out.println();\n }",
"public static void main(String[] args) {\n printStatistics();\n System.out.println(\" ____Witcher Game Started____\");\n\n while (!gameOver()){\n round();\n }\n\n\n }",
"public static void printNum() {\n\t\tfor(int i = 1; i<= 20; i++) {\n\t\t\tSystem.out.print(\" \" + i);\n\t\t}\n\t\tSystem.out.println(\"\\n\");\n\t\t}",
"public void printStat(){\n\t\tdouble tempsMoyen;\n\t\tdouble tempsTotal=0;\n\t\tfor (double temps : tempsPartie) {\n\t\t\ttempsTotal+=temps;\n\t\t}\n\t\ttempsMoyen=tempsTotal/tempsPartie.length;\n\t\tSystem.out.println(\"----------------------------------------------------------------------\");\n\t\tSystem.out.println(\"Durée moyenne d'une partie: \"+tempsMoyen+\" millisecondes\\n\");\n\t\tSystem.out.println(\"----------------------------------------------------------------------\");\n\t\t\n\t\tSystem.out.println(joueur1.getNom()+\":\");\n\t\tSystem.out.println(\"Nombre de parties gagnées en tant que premier joueur: \"+ statJ1[0]);\n\t\tSystem.out.println(\"Nombre de parties gagnées en tant que deuxième joueur: \"+ statJ1[1]);\n\t\tSystem.out.println(\"Nombre de parties gagnées sur \"+tempsPartie.length+\" parties: \"+statJ1[2]);\n\t\tSystem.out.println(\"Nombre de mur placés sur les \"+tempsPartie.length+\" parties: \"+statJ1[3]);\n\t\tSystem.out.println(\"Nombre de déplacements effectués sur les \"+tempsPartie.length+\" parties: \"+statJ1[4]);\n\t\tSystem.out.println(\"Nombre de coups jouées sur les \"+tempsPartie.length+\" parties: \"+statJ1[5]);\n\t\tSystem.out.println(\"----------------------------------------------------------------------\");\n\t\t\n\t\tSystem.out.println(joueur2.getNom()+\":\");\n\t\tSystem.out.println(\"Nombre de parties gagnées en tant que premier joueur: \"+ statJ2[0]);\n\t\tSystem.out.println(\"Nombre de parties gagnées en tant que deuxième joueur: \"+ statJ2[1]);\n\t\tSystem.out.println(\"Nombre de parties gagnées sur \"+tempsPartie.length+\" parties: \"+statJ2[2]);\n\t\tSystem.out.println(\"Nombre de mur placés sur les \"+tempsPartie.length+\" parties: \"+statJ2[3]);\n\t\tSystem.out.println(\"Nombre de déplacements effectués sur les \"+tempsPartie.length+\" parties: \"+statJ2[4]);\n\t\tSystem.out.println(\"Nombre de coups jouées sur les \"+tempsPartie.length+\" parties: \"+statJ2[5]);\n\t\tSystem.out.println(\"----------------------------------------------------------------------\\n\");\n\t\t\n\t}",
"public void kast() {\n\t\t// vaelg en tilfaeldig side\n\t\tdouble tilfaeldigtTal = Math.random();\n\t\tvaerdi = (int) (tilfaeldigtTal * 6 + 1);\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\t\r\n\t\tint input = 0;\r\n\t\tint ai = 0;\r\n\t\tint win = 0;\r\n\t\tint defeat = 0;\r\n\t\tint draw = 0;\r\n\t\t\r\n\t\tString me = \"\";\r\n\t\tString com = \"\";\r\n\t\tSystem.out.println(\"★☆★☆★☆★☆가위바위보 게임입니다!★☆★☆★☆★☆\");\r\n\t\tfor(int i = 1 ; i < 4 ; i++) {\r\n\t\t\tSystem.out.println(\"\\t\\t\\t\\t\\t 최대횟수/남은횟수\");\r\n\t\t\tSystem.out.println(\"가위(1), 바위(2), 보(3) 중 하나를 입력하세요>>>\\t\\t3 / \" + i);\r\n\t\t\tinput = scan.nextInt();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tai = (int)(Math.random()*3) + 1;\r\n\t\t\t\r\n\t\t\tif (input == 1) me = \"가위\";\r\n\t\t\telse if (input == 2) me = \"바위\";\r\n\t\t\telse if (input == 3) me = \"보\";\r\n\t\t\telse System.out.println(\"잘못 입력하셨습니다\");\r\n\t\t\tif (ai == 1) com = \"가위\";\r\n\t\t\telse if (ai == 2) com = \"바위\";\r\n\t\t\telse if (ai == 3) com = \"보\";\r\n\t\t\t\r\n\t\t\tif(me != \"\") {\r\n\t\t\t\tSystem.out.println(\"컴퓨터도 선택 했습니다.\");\r\n\t\t\t\tSystem.out.println(\"당신은 \\\"\" + me + \"\\\" 상대는 \\\"\" + com + \"\\\" 을 선택했습니다\");\r\n\t\t\t\r\n\t\t\t\tswitch (input - ai) {\r\n\t\t\t\tcase -1 : case 2 : \r\n\t\t\t\t\tSystem.out.println(\"★☆저런~~ 졌네요★☆\\n\"); defeat += 1; \r\n\t\t\t\t\tSystem.out.println(\"전적 => 승리 [ \" + win + \" ]\\t패배 [ \" + defeat + \" ]\\t무승부 [ \" + draw + \" ]\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase -2 : case 1 : \r\n\t\t\t\t\tSystem.out.println(\"★☆오~~ 이겼네요★☆\\n\"); win += 1; \r\n\t\t\t\t\tSystem.out.println(\"전적 => 승리 [ \" + win + \" ]\\t패배 [ \" + defeat + \" ]\\t무승부 [ \" + draw + \" ]\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 0 : \r\n\t\t\t\t\tSystem.out.println(\"★☆이런! 비겼네요★☆\\n\"); draw += 1;\r\n\t\t\t\t\tSystem.out.println(\"전적 => 승리 [ \" + win + \" ]\\t패배 [ \" + defeat + \" ]\\t무승부 [ \" + draw + \" ]\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tdefault : System.out.println(\"오류 입니다\"); \r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(win==defeat) {\r\n\t\t\tSystem.out.println(\"최종 결과 => 무승부 입니다\");\r\n\t\t} else if(win > defeat) {\r\n\t\t\tSystem.out.println(\"최종 결과 => 당신의 승리입니다\");\r\n\t\t} else if(win < defeat) {\r\n\t\t\tSystem.out.println(\"최종 결과 => 당신의 패배입니다\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"오류 입니다\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\n\t\t\n\t\tSystem.out.println(\"父箆業\" + \"\\t\\t\" + \"鯖箆業\"\n\t\t\t\t+ \"\\t\\t\\t\\t\" + \"鯖箆業\" + \"\\t\\t\" + \"父箆業\");\n\t\tSystem.out.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\");\n\t\t\n\t\tdouble temp = 120.0;\n\t\t\n\t\tint i;\n\t\tfor (i = 40;i > 30;i--) {\n\t\t\tSystem.out.printf(\"%.1f\\t\\t%.1f\\t\\t\\t\\t\", (double)i, celsiusToFahrenheit((double)i));\n\t\t\tSystem.out.printf(\"%.1f\\t\\t%.2f\\n\", (double)temp, fahrenheitToCelsius((double)temp));\n\t\t\ttemp -= 10;\n\t\t}\n\t\t\n\t}",
"public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n System.out.print(\"금액 입력:\");\n int won=scan.nextInt();\n \n // 5만원권\n int a=won/50000;\n System.out.printf(\"5만원권:%d매\\n\",a);\n won=won-(50000*a);\n System.out.println(\"won=\"+won);\n // 1만원\n a=won/10000;\n System.out.printf(\"1만원권:%d매\\n\",a);\n won=won-(10000*a);\n System.out.println(\"won=\"+won);\n // 5천원\n a=won/5000;\n System.out.printf(\"5천원권:%d매\\n\",a);\n won=won-(5000*a);\n System.out.println(\"won=\"+won);\n \n // 1천원\n a=won/1000;\n System.out.printf(\"1천원권:%d매\\n\",a);\n won=won-(1000*a);\n System.out.println(\"won=\"+won);\n \n // 500원\n a=won/500;\n System.out.printf(\"500원:%d개\\n\",a);\n won=won-(500*a);\n System.out.println(\"won=\"+won);\n \n // 100원\n a=won/100;\n System.out.printf(\"100원:%d개\\n\",a);\n won=won-(100*a);\n System.out.println(\"won=\"+won);\n \n // 50원\n a=won/50;\n System.out.printf(\"50원:%d개\\n\",a);\n won=won-(50*a);\n System.out.println(\"won=\"+won);\n \n // 10원\n a=won/10;\n System.out.printf(\"10원:%d개\\n\",a);\n won=won-(10*a);\n System.out.println(\"won=\"+won);\n \n System.out.printf(\"1원:%d개\\n\",won);\n \n\t}",
"public void test6(){\r\n\t\tZug zug1 = st.zugErstellen(2, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(2, 0, \"Zug 2\");\r\n\t\tst.fahren();\r\n\t}",
"public void gears(){\n\t\t System.out.println(\"bike has 4 gears ....\");\r\n\t\t//system : system is a class in java language.lang package\r\n\t\t \t//out : out is the static member of system class.It's type PrintStream\r\n\t\t \t//println: which is used to print the output.\r\n\r\n\r\n\t}",
"public String getIterationSurMax() { return (actuelIteration + 1) + \"/\" + totalIteration; }",
"public void ex() {\n int inches = 86; \n int pie = 12; //1 pie = 12 inches \n //Operaciones para obtener la cantidad de pies e inches\n int cant = inches / pie; \n int res = inches % pie;\n //Muestra de resultados\n System.out.println(inches + \" pulgadas es equivalente a\\n \" + \n cant + \" pies \\n \" + res + \" pulgadas \");\n }",
"public static void limpaTela() {\r\n\t\tfor (int i = 0; i < 30; i++)\r\n\t\t\tSystem.out.println();\r\n\t}",
"public void geraeuschMachen() {\n System.out.println(\"BRUELL\");\n }",
"public void inicio(){\n d.display(\"Para un calcular conversiones de grados Farenheit y Celsius\\n\"\n + \"o viceversa\");\n //System.out.println(\"Para un nadaro que ha ganado medallas en 5 competencias\");\n }",
"protected void narisi(Graphics2D g, double wp, double hp) {\n\n FontMetrics fm = g.getFontMetrics();\n\n int hPisava = fm.getAscent();\n\n double xColumn = 0.0;\n double yColumn = sirinaStolpca(wp, hp);\n\n for(int i = 0; i < podatki.length; i++){\n\n g.setColor(Color.ORANGE);\n g.fillRect((int)xColumn,(int)(hp - visinaStolpca(i, wp, hp)), (int) sirinaStolpca(wp, hp), (int) visinaStolpca(i, wp, hp));\n\n g.setColor(Color.RED);\n g.drawRect((int)((i)*sirinaStolpca(wp, hp)),(int) (hp-visinaStolpca(i, wp, hp)), (int)sirinaStolpca(wp, hp), (int)visinaStolpca(i, wp, hp));\n\n g.setColor(Color.BLUE);\n if(i < podatki.length - 1){\n double startCrtaX = sredinaVrha(i, wp, hp)[0];\n double startCrtaY = sredinaVrha(i, wp, hp)[1];\n\n double endCrtaX = sredinaVrha(i + 1, wp, hp)[0];\n double endCrtaY = sredinaVrha(i+1, wp, hp)[1];\n\n g.drawLine((int)startCrtaX,(int) startCrtaY,(int) endCrtaX,(int) endCrtaY);\n\n }\n\n g.setColor(Color.BLACK);\n\n String toWrite = Integer.toString(i+1);\n double wNapis=fm.stringWidth(toWrite);\n double xNapis=xColumn+(xColumn-wNapis)/2;\n double yNapisLowerLine=hp-hPisava;\n xColumn+=sirinaStolpca(wp, hp);\n g.drawString(toWrite,ri (xNapis),ri(yNapisLowerLine));\n\n }\n\n }",
"private void showStat() {\n\t\tSystem.out.println(\"=============================\");\n\t\tSystem.out.println(\"Your won! Congrates!\");\n\t\tSystem.out.println(\"The word is:\");\n\t\tSystem.out.println(\"->\\t\" + this.word.toString().replaceAll(\" \", \"\"));\n\t\tSystem.out.println(\"Your found the word with \" \n\t\t\t\t+ this.numOfWrongGuess + \" wrong guesses.\");\n\t}",
"public void GiaoDich1ty() {\n int d = 0;\n for (int i = 0; i < CountGD; i++) {\n if (gd[i].DonGia > 1000) {\n System.out.println(gd[i].toString());\n d++;\n }\n }\n if (d == 0)\n System.out.println(\"Khong co Thong Tin!\");\n }",
"public void logRound(int round){\n\t\tcountRounds++;\n\t\tlog += String.format(\"ROUND %d\", round);\n\t\tlineBreak();\n\t}",
"private static void printNumber(){\r\n\t\tfor(int i = 1;i <= 10; i++)\r\n\t\t\tSystem.out.println(i);\r\n\t}",
"public static void testTalletLige() {\n\n if (20 % 2 == 0) {\n System.out.println(\"** \" + 20 + \" er et lige tal.\");\n }\n else\n System.out.println(\"** \" + 20 + \" er et ulige tal.\");\n }"
] | [
"0.63617605",
"0.6329148",
"0.62497246",
"0.6248506",
"0.6223942",
"0.6196458",
"0.6177232",
"0.61222565",
"0.60760194",
"0.6059584",
"0.6047278",
"0.60205674",
"0.6006501",
"0.59675586",
"0.5938061",
"0.5877729",
"0.5848837",
"0.5829718",
"0.58243376",
"0.58038205",
"0.5795101",
"0.5773667",
"0.5769875",
"0.5767114",
"0.57604545",
"0.5748383",
"0.5734821",
"0.5726222",
"0.5715501",
"0.57105803",
"0.57078165",
"0.5702568",
"0.5691876",
"0.5691243",
"0.56885",
"0.5678319",
"0.56769305",
"0.5673604",
"0.56656057",
"0.56631076",
"0.5661435",
"0.566013",
"0.56579036",
"0.565259",
"0.565201",
"0.56510675",
"0.5632216",
"0.5631828",
"0.5628746",
"0.5619892",
"0.5613288",
"0.5612691",
"0.5603583",
"0.5601714",
"0.5599893",
"0.559466",
"0.55945647",
"0.5593611",
"0.5589438",
"0.5586771",
"0.5586467",
"0.5576232",
"0.5562987",
"0.55578256",
"0.5557668",
"0.5553869",
"0.55508184",
"0.5548161",
"0.5543016",
"0.5541934",
"0.55389005",
"0.55320853",
"0.5531244",
"0.55311275",
"0.55241436",
"0.55231184",
"0.55127877",
"0.5506082",
"0.54976106",
"0.54973537",
"0.54970485",
"0.54964375",
"0.54963803",
"0.54921746",
"0.54916525",
"0.549107",
"0.5490994",
"0.5482079",
"0.54791474",
"0.5479015",
"0.5476487",
"0.5473386",
"0.54732907",
"0.5472382",
"0.54647726",
"0.54638267",
"0.545985",
"0.5457904",
"0.5456717",
"0.54447466",
"0.5444595"
] | 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_nearesthospitals, container, false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}",
"@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }",
"protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}",
"@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }"
] | [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.6625158",
"0.66195583",
"0.66164845",
"0.6608733",
"0.6596594",
"0.65928894",
"0.6585293",
"0.65842897",
"0.65730995",
"0.6571248",
"0.6569152",
"0.65689117",
"0.656853",
"0.6566686",
"0.65652984",
"0.6553419",
"0.65525705",
"0.65432084",
"0.6542382",
"0.65411425",
"0.6538022",
"0.65366334",
"0.65355957",
"0.6535043",
"0.65329415",
"0.65311074",
"0.65310687",
"0.6528645",
"0.65277404",
"0.6525902",
"0.6524516",
"0.6524048",
"0.65232015",
"0.65224624",
"0.65185034",
"0.65130377",
"0.6512968",
"0.65122765",
"0.65116245",
"0.65106046",
"0.65103024",
"0.6509013",
"0.65088093",
"0.6508651",
"0.6508225",
"0.6504662",
"0.650149",
"0.65011525",
"0.6500686",
"0.64974767",
"0.64935696",
"0.6492234",
"0.6490034",
"0.6487609",
"0.6487216",
"0.64872116",
"0.6486594",
"0.64861935",
"0.6486018",
"0.6484269",
"0.648366",
"0.6481476",
"0.6481086",
"0.6480985",
"0.6480396",
"0.64797544",
"0.647696",
"0.64758915",
"0.6475649",
"0.6474114",
"0.6474004",
"0.6470706",
"0.6470275",
"0.64702207",
"0.6470039",
"0.6467449",
"0.646602",
"0.6462256",
"0.64617974",
"0.6461681",
"0.6461214"
] | 0.0 | -1 |
Unique identifier for a ProgramDefinition. | public abstract long id(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getProgramId();",
"public Integer getProgramId();",
"public String getProgramId() {\n return pathsProvider.getProgramId();\n }",
"public int getProgramIdFromUI(String programName) throws ParseException;",
"public String createUniqueScriptInstanceIdentifier() {\n\n\t\tLOGGER.debug(\"Creating a unique script instance identifier\");\n\n\t\t// generate a random name for the connection\n\t\tCalendar myCalendar = Calendar.getInstance();\n\t\tSimpleDateFormat dateFormatter = new SimpleDateFormat(\"yyyyMMddHHmmssS\");\n\t\tString scriptIdentifier = \"scriptInstance\"\n\t\t\t\t+ dateFormatter.format(myCalendar.getTime())\n\t\t\t\t+ randomNameSequence;\n\t\trandomNameSequence = randomNameSequence + 1;\n\n\t\tLOGGER.info(\"Generated unique script instance identifier [\"\n\t\t\t\t+ scriptIdentifier + \"]\");\n\n\t\treturn scriptIdentifier;\n\t}",
"public Long getProgramJurisdictionOid() {\n\t\treturn null;\n\t}",
"public String id() {\n return definition.getString(ID);\n }",
"@Schema(required = true, description = \"An identifier with the intention of being globally unique. \")\n public String getId() {\n return id;\n }",
"public int getId() {\n\t\treturn definition.get().getId();\n\t}",
"@org.jetbrains.annotations.NotNull\n public static String getUniquePsuedoID() {\n\n String m_szDevIDShort = \"35\" + (Build.BOARD.length() % 10) + (Build.BRAND.length() % 10) + (Build.CPU_ABI.length() % 10) + (Build.DEVICE.length() % 10) + (Build.MANUFACTURER.length() % 10) + (Build.MODEL.length() % 10) + (Build.PRODUCT.length() % 10);\n\n String serial = null;\n try {\n serial = android.os.Build.class.getField(\"SERIAL\").get(null).toString();\n\n return new UUID(m_szDevIDShort.hashCode(), serial.hashCode()).toString();\n } catch (Exception exception) {\n serial = \"serial\";\n }\n\n return new UUID(m_szDevIDShort.hashCode(), serial.hashCode()).toString();\n }",
"@Schema(required = true, description = \"An identifier that is unique for the respective type within a VNF instance, but may not be globally unique. \")\n public String getId() {\n return id;\n }",
"public String getIdentifier() {\n try {\n return keyAlias + \"-\" + toHexString(\n MessageDigest.getInstance(\"SHA1\").digest(keyStoreManager.getIdentifierKey(keyAlias).getEncoded()));\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }",
"String getUniqueId();",
"public static String getUniqueIdentifier() {\r\n UUID uuid = UUID.randomUUID();\r\n return uuid.toString();\r\n }",
"@Test\n public void testMakeUniqueProgramId() {\n System.out.println(\"makeUniqueProgramId\");\n \n List<SAMProgramRecord> programList = new ArrayList();\n SAMProgramRecord programRecord = new SAMProgramRecord(\"test\");\n programList.add(programRecord);\n \n SAMProgramRecord programRecord1 = new SAMProgramRecord(\"test\");\n \n PicardCommandLine instance = new PicardCommandLineImpl();\n\n SAMProgramRecord result = instance.makeUniqueProgramId(programList, programRecord1);\n assertEquals(result.getProgramGroupId(), \"test_1\");\n\n }",
"private void generateID(){\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (String t : terms.keySet())\n\t\t\tsb.append(t.replaceAll(\"\\\\W\", \"\")\n\t\t\t\t\t.substring(0, Math.min(4, t.replaceAll(\"\\\\W\", \"\").length())) + \"-\");\n\t\tfor (String s : sources)\n\t\t\tsb.append(s.replaceAll(\"\\\\W\", \"\")\n\t\t\t\t\t.substring(0, Math.min(4, s.replaceAll(\"\\\\W\", \"\").length())) + \"-\");\n\t\tsb.deleteCharAt(sb.length()-1);\n\t\tif (yearFrom > -1) sb.append(\"_\" + yearFrom);\n\t\tif (yearTo > -1) sb.append(\"_\" + yearTo);\n\t\tif (useCompounds) sb.append(\"_COMP\");\n\t\tif (useStopwords) sb.append(\"_STOP\");\n\t\tsb.append(\"_CNT\" + contextSize);\n\t\tsb.append(\"_\" + System.currentTimeMillis());\n\t\tthis.id = sb.toString();\n\t}",
"ManifestIdentifier getIdentifier();",
"public int getId() {\n // some code goes here\n int id = f.getAbsoluteFile().hashCode();\n //System.out.println(id);\n return id;\n }",
"@Override\n public String getDefinitionSetId() {\n throw new RuntimeException( \"Not yet implemented.\" );\n }",
"public String getApplicationId();",
"int getSymbolicId();",
"public int getId() {\n // some code goes here\n return f.getAbsoluteFile().hashCode();\n //throw new UnsupportedOperationException(\"implement this\");\n }",
"public static String aUniqueIdentifier() {\n return \"MONEXT\" + new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\n }",
"String resourceGuid();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"String id();",
"public String getProgram() {\n return program;\n }",
"@NonNull String identifier();",
"public int getId() {\n // some code goes here\n \treturn m_f.getAbsoluteFile().hashCode();\n }",
"@Attribute(order = 200, validators = { RequiredValueValidator.class })\n\t\tString applicationId();",
"String uniqueId();",
"public String getProgramName()\r\n \t{\r\n \t\treturn m_program.m_csSimpleName;\r\n \t}",
"String getGeneralID() throws ApplicationException;",
"public static String uniqueId() {\r\n return UUID.randomUUID().toString();\r\n }",
"@NonNull\n public String getIdentifier() {\n return mProto.id;\n }",
"public static String uniqueId() {\n return UUID.randomUUID().toString();\n }",
"UUID id();",
"public String getIdentifier() {\n\t\treturn config.getUIName()+\"[\"+getIndex()+\"]\";\n\t}",
"public abstract String getApplicationId();",
"Identifier getId();",
"AtomID ID();",
"FlowId id();",
"public int genID() {\n int uid = this.hashCode();\n if (uid < 0) {\n uid = Math.abs(uid);\n uid = uid * 15551;\n }\n return uid;\n }",
"String generateUID();",
"public String getId() {\n\t\treturn Integer.toString(this.hashCode());\n\t}",
"public static String generateInstanceId() {\n\t\t// TODO Use a complex hashing algorithm and generate 16-character\n\t\t// string;\n\n\t\treturn Calendar.getInstance().getTime().toString().replaceAll(\" \", \"\");\n\t}",
"String getInstanceID();",
"org.hl7.fhir.Identifier getIdentifier();",
"String getProgram()\n\t\t{\n\t\t\treturn mProgram;\n\t\t}",
"public String generatePhoneId() {\n String device = Build.DEVICE.equals(\"generic\") ? \"emulator\" : Build.DEVICE;\n String network = getNetwork();\n String carrier = (network == NETWORK_WIFI) ?\n getWifiCarrierName() : getTelephonyCarrierName();\n\n StringBuilder stringBuilder = new StringBuilder(ANDROID_STRING);\n stringBuilder.append('-').append(device).append('_')\n .append(Build.VERSION.RELEASE).append('_').append(network)\n .append('_').append(carrier).append('_').append(getTelephonyPhoneType())\n .append('_').append(isLandscape() ? \"Landscape\" : \"Portrait\");\n\n return stringBuilder.toString();\n }",
"java.lang.String getIdentifier();",
"protected String getAppID() {\n if (m_iport > 0) {\n return new String(Integer.toString(m_iport));\n } else {\n return null;\n }\n }",
"public String getId() {\n return this.getClass().getSimpleName() + \"@\" + this.hashCode();\n }",
"public UUID executionId();",
"String getUniqueID();",
"@Override\n\tpublic java.lang.String getUuid() {\n\t\treturn _scienceApp.getUuid();\n\t}",
"public String getId() {\n String id = name.replaceAll(\" \", \"-\");\n id = id.replaceAll(\"_\", \"-\");\n return id.toLowerCase();\n }",
"private UniqueIdentifier(){\n\t\t\n\t}",
"public java.lang.String getProcessDefinitionId() {\n return processDefinitionId;\n }",
"public int identifier();",
"public void generateID()\n {\n ID = this.hashCode();\n }",
"public int getId() {\n\t\t\treturn 0;\n\t\t}",
"public String getInstanceIdentifier();",
"static String generateId() {\r\n\t\treturn UUID.randomUUID().toString().replaceAll(\"-\", \"\");\r\n\t}",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();"
] | [
"0.7626198",
"0.72319174",
"0.6871854",
"0.64124525",
"0.6151157",
"0.610131",
"0.6041456",
"0.60047746",
"0.59981143",
"0.59467226",
"0.5946615",
"0.5929189",
"0.5880002",
"0.5874663",
"0.5871192",
"0.5862612",
"0.58584356",
"0.5853852",
"0.5846803",
"0.58317834",
"0.58277065",
"0.5784979",
"0.5780592",
"0.57725185",
"0.57635945",
"0.57635945",
"0.57635945",
"0.57635945",
"0.57635945",
"0.57635945",
"0.57635945",
"0.57635945",
"0.57635945",
"0.57635945",
"0.57635945",
"0.57635945",
"0.57635945",
"0.57635945",
"0.57635945",
"0.57635945",
"0.57635945",
"0.57635945",
"0.57635945",
"0.57635945",
"0.57635945",
"0.57635945",
"0.57635945",
"0.57635945",
"0.5754185",
"0.57481825",
"0.572628",
"0.5713431",
"0.57073444",
"0.57050234",
"0.5693291",
"0.5691967",
"0.56578153",
"0.56542236",
"0.5648861",
"0.5611567",
"0.5582877",
"0.5548519",
"0.5544677",
"0.5543284",
"0.5515787",
"0.55126333",
"0.551196",
"0.5493917",
"0.5482741",
"0.54810977",
"0.54746956",
"0.5469261",
"0.5465535",
"0.544672",
"0.5444594",
"0.5440006",
"0.54380584",
"0.5427363",
"0.54230046",
"0.54199874",
"0.54161733",
"0.54106194",
"0.54100305",
"0.5407589",
"0.5407506",
"0.54069084",
"0.54023284",
"0.54023284",
"0.54023284",
"0.54023284",
"0.54023284",
"0.54023284",
"0.54023284",
"0.54023284",
"0.54023284",
"0.54023284",
"0.54023284",
"0.54023284",
"0.54023284",
"0.54023284",
"0.54023284"
] | 0.0 | -1 |
Descriptive name of a Program, e.g. Car Tab Rebate Program | public abstract String name(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getProgramName()\r\n \t{\r\n \t\treturn m_program.m_csSimpleName;\r\n \t}",
"public String getProgram() {\n return program;\n }",
"String getProgram()\n\t\t{\n\t\t\treturn mProgram;\n\t\t}",
"public void setProgramName(String _value){\r\n\t\tprogramName=_value;\r\n\t}",
"public void pickGivenProgram(final String programName) throws ParseException;",
"@Override\r\n\tpublic String getNombrePrograma() {\n\t\treturn this.getObjectZulCode();\r\n\t}",
"String getProgramId();",
"public static void p_show_info_program() {\n System.out.println(\"╔══════════════════════════════╗\");\n System.out.println(\"║ SoftCalculator V1.2 ║\");\n System.out.println(\"║ Oscar Javier Cardozo Diaz ║\");\n System.out.println(\"║ 16/04/2021 ║\");\n System.out.println(\"╚══════════════════════════════╝\");\n }",
"public String getFriendlyName(String programid) {\n if (mProgramNames == null) return programid;\n return mProgramNames.getOrDefault(programid, programid);\n }",
"public int getProgramIdFromUI(String programName) throws ParseException;",
"@Override\n\tpublic java.lang.String getName() {\n\t\treturn _scienceApp.getName();\n\t}",
"public String program();",
"public String\n getProgram() \n {\n if(PackageInfo.sOsType == OsType.Windows) \n return (\"winimage.exe\");\n return super.getProgram();\n }",
"public void printHelp(String funcname) {\n\t\tSystem.out.println(funcname);\n\t\tSystem.out.println();\n\t\tswitch(funcname){\n\t\tcase \"ASave\":\n\t\t\tSystem.out.println(\"Description: Outputs the program to the specified file with array syntax.When filename is not specified, saves as \\\"original_filename-ASave.ab\\\".\");\n\t\t\tSystem.out.println(\"Usage: ASave(Program prog, String filename)\");\n\t\t\tbreak;\n\t\tcase \"ASaveSystem\":\n\t\t\tSystem.out.println(\"Description: Outputs the result of AShow to the specified file.When filename is not specified, saves as \\\"original_filename-ASave.ab\\\".\");\n\t\t\tSystem.out.println(\"Usage: ASaveSystem(Program prog, String system, String filename)\");\n\t\t\tbreak;\n\t\tcase \"AShow\":\n\t\t\tSystem.out.println(\"Description: Prints out the program using array notation.Prints out the entire program when target system is unspecified.\");\n\t\t\tSystem.out.println(\"Usage: AShow(Program prog, String system)\");\n\t\t\tbreak;\n\t\tcase \"Save\":\n\t\t\tSystem.out.println(\"Description: Saves the output of show to the specified file.When output filename is unspecified, saves to \\\"original_filename-Show.ab\\\".\");\n\t\t\tSystem.out.println(\"Usage: Save(Program prog, String filename)\");\n\t\t\tbreak;\n\t\tcase \"SaveSystem\":\n\t\t\tSystem.out.println(\"Description: Saves the output of show to the specified file.When output filename is unspecified, saves to \\\"original_filename-Show.ab\\\".\");\n\t\t\tSystem.out.println(\"Usage: SaveSystem(Program prog, String system, String filename)\");\n\t\t\tbreak;\n\t\tcase \"Show\":\n\t\t\tSystem.out.println(\"Description: Pretty prints the program using alpha-purist syntax.Prints out the entire program when target system is unspecified.\");\n\t\t\tSystem.out.println(\"Usage: Show(Program prog, String system)\");\n\t\t\tbreak;\n\t\tcase \"Normalize\":\n\t\t\tSystem.out.println(\"Description: Normalizes the program. Normalization rules are described in more detail at: url{http://www.cs.colostate.edu/AlphaZ/wiki/doku.php?id=normalize}.\");\n\t\t\tSystem.out.println(\"Usage: Normalize(Program prog)\");\n\t\t\tbreak;\n\t\tcase \"PrintAST\":\n\t\t\tSystem.out.println(\"Description: Prints out the AST of the program.Prints out the entire program when target system is unspecified.\");\n\t\t\tSystem.out.println(\"Usage: PrintAST(Program prog, String system)\");\n\t\t\tbreak;\n\t\tcase \"ReadAlphabets\":\n\t\t\tSystem.out.println(\"Description: Parses the given alphabets program and returns a Program object.\");\n\t\t\tSystem.out.println(\"Usage: ReadAlphabets(String file)\");\n\t\t\tbreak;\n\t\tcase \"RenameSystem\":\n\t\t\tSystem.out.println(\"Description: Renames an AffineSystem.\");\n\t\t\tSystem.out.println(\"Usage: RenameSystem(Program prog, String system, String newSystemName)\");\n\t\t\tbreak;\n\t\tcase \"RenameVariable\":\n\t\t\tSystem.out.println(\"Description: Renames a variable.\");\n\t\t\tSystem.out.println(\"Usage: RenameVariable(Program prog, String system, String varName, String newVarName)\");\n\t\t\tbreak;\n\t\tcase \"RemoveUnusedVariables\":\n\t\t\tSystem.out.println(\"Description: Removes unused variables and equations. Unused variables are variables that is not used by the definition of output.\");\n\t\t\tSystem.out.println(\"Usage: RemoveUnusedVariables(Program prog, String system)\");\n\t\t\tbreak;\n\t\tcase \"PermutationCaseReduce\":\n\t\t\tSystem.out.println(\"Description: Transformations involving reduce expressions.\");\n\t\t\tSystem.out.println(\"Usage: PermutationCaseReduce()\");\n\t\t\tbreak;\n\t\tcase \"ReductionDecomposition\":\n\t\t\tSystem.out.println(\"Description: Transformations involving reduce expressions.\");\n\t\t\tSystem.out.println(\"Usage: ReductionDecomposition()\");\n\t\t\tbreak;\n\t\tcase \"SimplifyingReduction\":\n\t\t\tSystem.out.println(\"Description: Transformations involving reduce expressions.\");\n\t\t\tSystem.out.println(\"Usage: SimplifyingReduction()\");\n\t\t\tbreak;\n\t\tcase \"NormalizeReduction\":\n\t\t\tSystem.out.println(\"Description: Transformations involving reduce expressions.\");\n\t\t\tSystem.out.println(\"Usage: NormalizeReduction()\");\n\t\t\tbreak;\n\t\tcase \"FactorOutFromReduction\":\n\t\t\tSystem.out.println(\"Description: Transformations involving reduce expressions.\");\n\t\t\tSystem.out.println(\"Usage: FactorOutFromReduction()\");\n\t\t\tbreak;\n\t\tcase \"SplitReductionBody\":\n\t\t\tSystem.out.println(\"Description: Transformations involving reduce expressions.\");\n\t\t\tSystem.out.println(\"Usage: SplitReductionBody()\");\n\t\t\tbreak;\n\t\tcase \"TransformReductionBody\":\n\t\t\tSystem.out.println(\"Description: Transformations involving reduce expressions.\");\n\t\t\tSystem.out.println(\"Usage: TransformReductionBody()\");\n\t\t\tbreak;\n\t\tcase \"SerializeReduction\":\n\t\t\tSystem.out.println(\"Description: Transformations involving reduce expressions.\");\n\t\t\tSystem.out.println(\"Usage: SerializeReduction()\");\n\t\t\tbreak;\n\t\tcase \"MergeReductions\":\n\t\t\tSystem.out.println(\"Description: Transformations involving reduce expressions.\");\n\t\t\tSystem.out.println(\"Usage: MergeReductions()\");\n\t\t\tbreak;\n\t\tcase \"ReductionComposition\":\n\t\t\tSystem.out.println(\"Description: Transformations involving reduce expressions.\");\n\t\t\tSystem.out.println(\"Usage: ReductionComposition()\");\n\t\t\tbreak;\n\t\tcase \"monoparametricTiling_noOutlining\":\n\t\t\tSystem.out.println(\"Description: Commands which parametrize the monoparametric tiling transformation, plus the transformation itself\");\n\t\t\tSystem.out.println(\"Usage: monoparametricTiling_noOutlining()\");\n\t\t\tbreak;\n\t\tcase \"monoparametricTiling_Outlining_noSubsystem\":\n\t\t\tSystem.out.println(\"Description: Commands which parametrize the monoparametric tiling transformation, plus the transformation itself\");\n\t\t\tSystem.out.println(\"Usage: monoparametricTiling_Outlining_noSubsystem()\");\n\t\t\tbreak;\n\t\tcase \"monoparametricTiling_Outlining\":\n\t\t\tSystem.out.println(\"Description: Commands which parametrize the monoparametric tiling transformation, plus the transformation itself\");\n\t\t\tSystem.out.println(\"Usage: monoparametricTiling_Outlining()\");\n\t\t\tbreak;\n\t\tcase \"setRatio\":\n\t\t\tSystem.out.println(\"Description: Commands which parametrize the monoparametric tiling transformation, plus the transformation itself\");\n\t\t\tSystem.out.println(\"Usage: setRatio()\");\n\t\t\tbreak;\n\t\tcase \"setMinParamValues\":\n\t\t\tSystem.out.println(\"Description: Commands which parametrize the monoparametric tiling transformation, plus the transformation itself\");\n\t\t\tSystem.out.println(\"Usage: setMinParamValues()\");\n\t\t\tbreak;\n\t\tcase \"setTileGroup\":\n\t\t\tSystem.out.println(\"Description: Commands which parametrize the monoparametric tiling transformation, plus the transformation itself\");\n\t\t\tSystem.out.println(\"Usage: setTileGroup()\");\n\t\t\tbreak;\n\t\tcase \"setCoBPreprocess\":\n\t\t\tSystem.out.println(\"Description: Commands which parametrize the monoparametric tiling transformation, plus the transformation itself\");\n\t\t\tSystem.out.println(\"Usage: setCoBPreprocess()\");\n\t\t\tbreak;\n\t\tcase \"CoB\":\n\t\t\tSystem.out.println(\"Description: Change of Basis transforms the domain of a variable to the image by the given function, while adding necessary dependence expressions to maintain the original semantics of the program. Details can be found at url{http://www.cs.colostate.edu/AlphaZ/wiki/doku.php?id=change_of_basis}.\");\n\t\t\tSystem.out.println(\"Usage: CoB(Program prog, String systemName, String varName, AffineFunction function)\");\n\t\t\tbreak;\n\t\tcase \"ForceCoB\":\n\t\t\tSystem.out.println(\"Description: Force the change of basis even if the CoB is for input/output of a system.\");\n\t\t\tSystem.out.println(\"Usage: ForceCoB(Program prog, String systemName, String targetName, AffineFunction function)\");\n\t\t\tbreak;\n\t\tcase \"Split\":\n\t\t\tSystem.out.println(\"Description: Splits a variable into two, where the domain of two variables are disjoint and union of them is equivalent to the original domain of the variable.If newName is not given, it creates a variable with prefix \\\"_split\\\" appended to the original name.\");\n\t\t\tSystem.out.println(\"Usage: Split(Program prog, String systemName, String varName, String newName, String sepDomain)\");\n\t\t\tbreak;\n\t\tcase \"Merge\":\n\t\t\tSystem.out.println(\"Description: Merge two variables (of name var1Name and var2Name) into a single one.These variables must both be locals and must have disjoint domains. The name of the merge of these two variables is \\\"newName\\\".\");\n\t\t\tSystem.out.println(\"Usage: Merge(Program prog, String systemName, String var1Name, String var2Name, String newName)\");\n\t\t\tbreak;\n\t\tcase \"Inline\":\n\t\t\tSystem.out.println(\"Description: Inlines the nth(number) reference to inlineEq in the definition of targetEq once. If the number is not specified, all references to inlineEq are inlined.\");\n\t\t\tSystem.out.println(\"Usage: Inline(Program prog, String systemName, String targetEq, String inlineEq, int number)\");\n\t\t\tbreak;\n\t\tcase \"Simplify\":\n\t\t\tSystem.out.println(\"Description: Simplifies the program in multiple ways. The domains are simplified by simplifyInContext (a.k.a. gist). When the domain of a reduction body is a single point, reduction is removed.\");\n\t\t\tSystem.out.println(\"Usage: Simplify(Program prog, String system)\");\n\t\t\tbreak;\n\t\tcase \"createFreeScheduler\":\n\t\t\tSystem.out.println(\"Description: Takes an alphabetes program and converts it to a program that computes the fastest possible schedule (free shcedule).This transformation DOES NOT preserve the original semantics, but instead creates a new Program object.Implemented by Alex Klein as a class project in cs560@spring11\");\n\t\t\tSystem.out.println(\"Usage: createFreeScheduler(Program prog, String newProgPrefix)\");\n\t\t\tbreak;\n\t\tcase \"SplitUnion\":\n\t\t\tSystem.out.println(\"Description: Replace an expression that has unions of polyhedra as its context domain with a case expression that splits the union into multiple disjiont polyhedra.\");\n\t\t\tSystem.out.println(\"Usage: SplitUnion(Program prog, String nodeID)\");\n\t\t\tbreak;\n\t\tcase \"ApplySTMap\":\n\t\t\tSystem.out.println(\"Description: Applies sequence of CoBs using STMap given for each variable.This is identical to the pre-processing step of ScheduledC code generator, where all variables are mapped to a common space so that ordering of iterations can be defined.Assumes correct schedule [TODO:run verifier before applying the transformation once the verifier is fixed]All STMaps and MemoryMaps given for the system will also be transformed appropriately.\");\n\t\t\tSystem.out.println(\"Usage: ApplySTMap(Program prog, String systemName)\");\n\t\t\tbreak;\n\t\tcase \"UniformizeInContext\":\n\t\t\tSystem.out.println(\"Description: Attempts to uniformize all dependencies when possible.\");\n\t\t\tSystem.out.println(\"Usage: UniformizeInContext(Program prog, String system, int excludeInputs)\");\n\t\t\tbreak;\n\t\tcase \"InlineForce\":\n\t\t\tSystem.out.println(\"Description: Force the inline action even if there is a self loop dependence\");\n\t\t\tSystem.out.println(\"Usage: InlineForce(Program prog, String systemName, String targetEq, String inlineEq, int number)\");\n\t\t\tbreak;\n\t\tcase \"InlineAll\":\n\t\t\tSystem.out.println(\"Description: Inline all the possible equation in a system when there is no self loop dependence\");\n\t\t\tSystem.out.println(\"Usage: InlineAll(Program prog, String systemName, String inlineEq)\");\n\t\t\tbreak;\n\t\tcase \"InlineAllForce\":\n\t\t\tSystem.out.println(\"Description: Inline all the possible equations in a system even with self loop dependence once\");\n\t\t\tSystem.out.println(\"Usage: InlineAllForce(Program prog, String systemName, String inlineEq)\");\n\t\t\tbreak;\n\t\tcase \"InlineSubSystem\":\n\t\t\tSystem.out.println(\"Description: Inline the subsystem used by the UseEquation specified by nodeID\");\n\t\t\tSystem.out.println(\"Usage: InlineSubSystem(Program prog, String systemName, String label)\");\n\t\t\tbreak;\n\t\tcase \"OutlineSubSystem\":\n\t\t\tSystem.out.println(\"Description: Outline a list of equations of a given system. These equation are defined through a list of variable (\\\"listEquations\\\") that corresponds to the variable of a StandardEquation or to the output of a UseEquation.[V1] The created use equation will have no extension domain, and only variable expressions as inputs.\");\n\t\t\tSystem.out.println(\"Usage: OutlineSubSystem(Program prog, String system, String listEquations)\");\n\t\t\tbreak;\n\t\tcase \"AddLocal\":\n\t\t\tSystem.out.println(\"Description: Adds a local variable (of name specified by \\\"nameLocal\\\") for the expression \\\"expr\\\" and replace each occurrence of this expression in the considered system.\\\"expr\\\" can be specified through a expression of the system (located in \\\"nodeID\\\"), or through an external expression \\\"expr\\\" whose list of indexes is \\\"lInds\\\".\");\n\t\t\tSystem.out.println(\"Usage: AddLocal(Program prog, String system, String nameLocal, String nodeID)\");\n\t\t\tbreak;\n\t\tcase \"AddLocalUnique\":\n\t\t\tSystem.out.println(\"Description: Replace only the expression (specified by the location \\\"nodeID\\\") by a new local variable (of name \\\"nameLocal\\\").\");\n\t\t\tSystem.out.println(\"Usage: AddLocalUnique(Program prog, String system, String nameLocal, String nodeID)\");\n\t\t\tbreak;\n\t\tcase \"DetectReductions\":\n\t\t\tSystem.out.println(\"Description: Detects simple reductions in the program and exposes as reduce expressions.\");\n\t\t\tSystem.out.println(\"Usage: DetectReductions(Program prog, String system)\");\n\t\t\tbreak;\n\t\tcase \"reduceDimVariable\":\n\t\t\tSystem.out.println(\"Description: Use the equalities of the domain of the specified variable in order to reduce its number of dimension.Perform the corresponding change of basis and return the affine function used in this CoB.\");\n\t\t\tSystem.out.println(\"Usage: reduceDimVariable(Program prog, String syst, String varName)\");\n\t\t\tbreak;\n\t\tcase \"alignDimVariable\":\n\t\t\tSystem.out.println(\"Description: Align the bounding box of the domain of a variable with the point vec{0}, by using a translation.Note: might not work if the lower bound is not an affine functionReturn the affine function used to perform the translation.\");\n\t\t\tSystem.out.println(\"Usage: alignDimVariable(Program prog, String syst, String varName)\");\n\t\t\tbreak;\n\t\tcase \"generateScheduledCode\":\n\t\t\tSystem.out.println(\"Description: Generates scheduledC code for a system using the TargetMapping specified for the system.Detailed options can be given through optional argument.\");\n\t\t\tSystem.out.println(\"Usage: generateScheduledCode(Program prog, String system, CodeGenOptions options, String outDir, Boolean genVerifier)\");\n\t\t\tbreak;\n\t\tcase \"generateWriteC\":\n\t\t\tSystem.out.println(\"Description: Generates WriteC code for a system.TargetMapping is ignored except for MemoryMapping given for output variables.Detailed options can be given through optional argument.\");\n\t\t\tSystem.out.println(\"Usage: generateWriteC(Program prog, String system, CodeGenOptions options, String outDir)\");\n\t\t\tbreak;\n\t\tcase \"generateWrapper\":\n\t\t\tSystem.out.println(\"Description: Generates a wrapper code for the given sytem using the specified TargetMapping.\");\n\t\t\tSystem.out.println(\"Usage: generateWrapper(Program prog, String system, CodeGenOptions options, String outDir)\");\n\t\t\tbreak;\n\t\tcase \"generateVerificationCode\":\n\t\t\tSystem.out.println(\"Description: Generates code for verifying generated program. The code is generated using demand-driven code generator (WriteC).\");\n\t\t\tSystem.out.println(\"Usage: generateVerificationCode(Program prog, String system, String outDir)\");\n\t\t\tbreak;\n\t\tcase \"generateMakefile\":\n\t\t\tSystem.out.println(\"Description: Generates Makefile to compile generated code + wrapper.\");\n\t\t\tSystem.out.println(\"Usage: generateMakefile(Program prog, String system, CodeGenOptions CodeGenOptions, String outDir)\");\n\t\t\tbreak;\n\t\tcase \"createCGOptionForWriteC\":\n\t\t\tSystem.out.println(\"Description: Creates instance of CodeGenOptions for WriteC using default values.\");\n\t\t\tSystem.out.println(\"Usage: createCGOptionForWriteC()\");\n\t\t\tbreak;\n\t\tcase \"createCGOptionForScheduledC\":\n\t\t\tSystem.out.println(\"Description: Creates instance of CodeGenOptions for ScheduledC using default values.\");\n\t\t\tSystem.out.println(\"Usage: createCGOptionForScheduledC()\");\n\t\t\tbreak;\n\t\tcase \"createCGOptionForHybridScheduledCGPU\":\n\t\t\tSystem.out.println(\"Description: Creates instance of CodeGenOptions for Hybrid ScheduledC for GPU using dimToInsertChecks to insert checks.\");\n\t\t\tSystem.out.println(\"Usage: createCGOptionForHybridScheduledCGPU(int dimToInsertChecks)\");\n\t\t\tbreak;\n\t\tcase \"createCGOptionForHybridScheduledC\":\n\t\t\tSystem.out.println(\"Description: Creates instance of CodeGenOptions for Hybrid ScheduledC using dimToInsertChecks to insert checks.\");\n\t\t\tSystem.out.println(\"Usage: createCGOptionForHybridScheduledC(int dimToInsertChecks)\");\n\t\t\tbreak;\n\t\tcase \"setCGOptionFlattenArrays\":\n\t\t\tSystem.out.println(\"Description: Specifies true/false (1/0) values for if the multi-dimensional arrays allocated should be flattened to 1D or not.\");\n\t\t\tSystem.out.println(\"Usage: setCGOptionFlattenArrays(CodeGenOptions CGoptions, int flatten)\");\n\t\t\tbreak;\n\t\tcase \"setCGOptionDisableNormalize_depreciated\":\n\t\t\tSystem.out.println(\"Description: Options to skip Normalize before generating code with the ScheduleC code generator.This is an option added as an workaround to scalability problems with Normalize, and will be removed in the future.Not normalizing may lead to significantly inefficient code.\");\n\t\t\tSystem.out.println(\"Usage: setCGOptionDisableNormalize_depreciated(CodeGenOptions options)\");\n\t\t\tbreak;\n\t\tcase \"createTiledCGOptionForScheduledC\":\n\t\t\tSystem.out.println(\"Description: Creates instance of CodeGenOptions for ScheduledC using default values for tiling.\");\n\t\t\tSystem.out.println(\"Usage: createTiledCGOptionForScheduledC()\");\n\t\t\tbreak;\n\t\tcase \"createCGOptionsForPCOT\":\n\t\t\tSystem.out.println(\"Description: Creates instance of CodeGenOptions for PCOTC using default values for tiling.\");\n\t\t\tSystem.out.println(\"Usage: createCGOptionsForPCOT()\");\n\t\t\tbreak;\n\t\tcase \"setTiledCGOptionOptimize\":\n\t\t\tSystem.out.println(\"Description: Applies optimizations to the tiled code generated using full-tile splitting of a selected statement group.Statement group is selected with heuristics that may not be accurate.\");\n\t\t\tSystem.out.println(\"Usage: setTiledCGOptionOptimize(TiledCodeGenOptions options, int optimize)\");\n\t\t\tbreak;\n\t\tcase \"generateScanC\":\n\t\t\tSystem.out.println(\"Description: code generator for a scan subsystem ( a subsystem that contains only scan computations)\");\n\t\t\tSystem.out.println(\"Usage: generateScanC(Program prog, String systemName, CodeGenOptions options, String outDir)\");\n\t\t\tbreak;\n\t\tcase \"generatePCOTCode\":\n\t\t\tSystem.out.println(\"Description: CPU code generator for Polyhedral Cache Oblivious Tiling\");\n\t\t\tSystem.out.println(\"Usage: generatePCOTCode(Program prog, String system, TiledCodeGenOptions options, String outDir, Boolean genVerifier)\");\n\t\t\tbreak;\n\t\tcase \"generateFMPPCode\":\n\t\t\tSystem.out.println(\"Description: generate code using the flattened multi-pass tiling and parallelization strategy\");\n\t\t\tSystem.out.println(\"Usage: generateFMPPCode(Program prog, String systemName, String TilingType, TiledCodeGenOptions CodeGenOptions, String outDir)\");\n\t\t\tbreak;\n\t\tcase \"setVecOptionForTiledC\":\n\t\t\tSystem.out.println(\"Description: Turn on the vectorization option for TiledC. Right now it is only open for DTiler -- Where only 1 level of tiling is applied and all dimensions are tiled.Four types of vectorization strategy is supported: naive, opt nobuff -- optimized vectorization strategy without temporary buffering, all aligned -- optimized vectorization strategy with temporary buffering and all vectors aligned, mostly aligned -- optimized vectorization strategy with temporary buffering and mostly aligned strategy. The default strategy is set to be \\\"opt nobuff\\\".Register block size only corresponds to the data dimensions of stencil computations, the default register block size is set to unroll the innermost vectorized dimension 4 times. \");\n\t\t\tSystem.out.println(\"Usage: setVecOptionForTiledC(TiledCodeGenOptions options, String vecSet, String vecStrategy, String registerBlockSize)\");\n\t\t\tbreak;\n\t\tcase \"setVecVarsForTiledC\":\n\t\t\tSystem.out.println(\"Description: Set the variables for vectorization. All the variable statement must occur under the same innermost loop nest. \");\n\t\t\tSystem.out.println(\"Usage: setVecVarsForTiledC(Program prog, String systemName, TiledCodeGenOptions options, String vars)\");\n\t\t\tbreak;\n\t\tcase \"setVecVarForTiledC\":\n\t\t\tSystem.out.println(\"Usage: setVecVarForTiledC(Program prog, String systemName, TiledCodeGenOptions options, String var, String domain)\");\n\t\t\tbreak;\n\t\tcase \"addRecursionDepthForPCOT\":\n\t\t\tSystem.out.println(\"Description: Generates code with recursion depth as an input parameter.\");\n\t\t\tSystem.out.println(\"Usage: addRecursionDepthForPCOT(TiledCodeGenOptions options)\");\n\t\t\tbreak;\n\t\tcase \"readDomain\":\n\t\t\tSystem.out.println(\"Description: Reads domain in String and returns a Domain object.\");\n\t\t\tSystem.out.println(\"Usage: readDomain(Domain paramDomain, String domain)\");\n\t\t\tbreak;\n\t\tcase \"readFunction\":\n\t\t\tSystem.out.println(\"Description: Reads affine function in String and returns an AffineFunction object.\");\n\t\t\tSystem.out.println(\"Usage: readFunction(Domain paramDomain, String function)\");\n\t\t\tbreak;\n\t\tcase \"inverse\":\n\t\t\tSystem.out.println(\"Description: Compute the inverse of the give affine function.\");\n\t\t\tSystem.out.println(\"Usage: inverse(AffineFunction function)\");\n\t\t\tbreak;\n\t\tcase \"inverseInContext\":\n\t\t\tSystem.out.println(\"Description: Computes inverse of the given affine function, in the context of the given domain.\");\n\t\t\tSystem.out.println(\"Usage: inverseInContext(Domain domain, AffineFunction function)\");\n\t\t\tbreak;\n\t\tcase \"compose\":\n\t\t\tSystem.out.println(\"Description: Returns a function, that computes function2@function1.\");\n\t\t\tSystem.out.println(\"Usage: compose(AffineFunction function1, AffineFunction function2)\");\n\t\t\tbreak;\n\t\tcase \"intersection\":\n\t\t\tSystem.out.println(\"Description: Returns the intersection of two domains given.\");\n\t\t\tSystem.out.println(\"Usage: intersection(Domain domain1, Domain domain2)\");\n\t\t\tbreak;\n\t\tcase \"union\":\n\t\t\tSystem.out.println(\"Description: Returns the union of two domains given.\");\n\t\t\tSystem.out.println(\"Usage: union(Domain domain1, Domain domain2)\");\n\t\t\tbreak;\n\t\tcase \"join\":\n\t\t\tSystem.out.println(\"Description: Returns a function that computes function1@function2.\");\n\t\t\tSystem.out.println(\"Usage: join(AffineFunction function1, AffineFunction function2)\");\n\t\t\tbreak;\n\t\tcase \"isEmpty\":\n\t\t\tSystem.out.println(\"Description: Returns true if the domain is empty.\");\n\t\t\tSystem.out.println(\"Usage: isEmpty(Domain domain)\");\n\t\t\tbreak;\n\t\tcase \"isEquivalent\":\n\t\t\tSystem.out.println(\"Description: Returns true if the two domains/functions given are equivalent.\");\n\t\t\tSystem.out.println(\"Usage: isEquivalent(Domain domainA, Domain domainB)\");\n\t\t\tbreak;\n\t\tcase \"image\":\n\t\t\tSystem.out.println(\"Description: Compute the image of the given domain by the given function.\");\n\t\t\tSystem.out.println(\"Usage: image(AffineFunction function, Domain domain)\");\n\t\t\tbreak;\n\t\tcase \"preImage\":\n\t\t\tSystem.out.println(\"Description: Compute the pre-image of the given domain by the given function.\");\n\t\t\tSystem.out.println(\"Usage: preImage(AffineFunction function, Domain domain)\");\n\t\t\tbreak;\n\t\tcase \"difference\":\n\t\t\tSystem.out.println(\"Description: Returns domainA / domainB.\");\n\t\t\tSystem.out.println(\"Usage: difference(Domain domainA, Domain domainB)\");\n\t\t\tbreak;\n\t\tcase \"simplifyInContext\":\n\t\t\tSystem.out.println(\"Description: Takes domain and context domain, and returns the domain with constraints that are redundant with the context removed.\");\n\t\t\tSystem.out.println(\"Usage: simplifyInContext(Domain domain, Domain context)\");\n\t\t\tbreak;\n\t\tcase \"BuildPRDG\":\n\t\t\tSystem.out.println(\"Description: Constructs a PRDG for the specified AffineSystem. Input variables are excluded from the PRDG default. To override this option, set the optional argument noInput to 0.\");\n\t\t\tSystem.out.println(\"Usage: BuildPRDG(Program prog, String systemName, int noInputs)\");\n\t\t\tbreak;\n\t\tcase \"ExportPRDG\":\n\t\t\tSystem.out.println(\"Description: Exports the given PRDG as a dot file.\");\n\t\t\tSystem.out.println(\"Usage: ExportPRDG(PRDG prdg, String filename)\");\n\t\t\tbreak;\n\t\tcase \"CheckProgram\":\n\t\t\tSystem.out.println(\"Description: Performs uniqueness and completeness check of the program.The program is a valid alphabets program, if it passes this check.Details of the check can be found at url{http://www.cs.colostate.edu/AlphaZ/wiki/doku.php?id=check_program}.\");\n\t\t\tSystem.out.println(\"Usage: CheckProgram(Program prog)\");\n\t\t\tbreak;\n\t\tcase \"VerifyTargetMapping\":\n\t\t\tSystem.out.println(\"Description: Verifies the target mapping given to a system. The third input takes \\\"NONE\\\", \\\"MIN\\\", \\\"MAX\\\" to control the verbosity.\");\n\t\t\tSystem.out.println(\"Usage: VerifyTargetMapping(Program prog, String system, String verbose)\");\n\t\t\tbreak;\n\t\tcase \"CheckSystem\":\n\t\t\tSystem.out.println(\"Description: CheckSystem is CheckProgram applied to the specified system.\");\n\t\t\tSystem.out.println(\"Usage: CheckSystem(Program prog, String system)\");\n\t\t\tbreak;\n\t\tcase \"Farkas1DScheduler\":\n\t\t\tSystem.out.println(\"Description: Farkas mono-dimensional scheduler.\");\n\t\t\tSystem.out.println(\"Usage: Farkas1DScheduler(PRDG prdg)\");\n\t\t\tbreak;\n\t\tcase \"FarkasMDScheduler\":\n\t\t\tSystem.out.println(\"Description: Farkas multi-dimensional scheduler. Uses ISL implementation.\");\n\t\t\tSystem.out.println(\"Usage: FarkasMDScheduler(PRDG prdg)\");\n\t\t\tbreak;\n\t\tcase \"PlutoScheduler\":\n\t\t\tSystem.out.println(\"Description: Pluto scheduler. Uses implementation in ISL.\");\n\t\t\tSystem.out.println(\"Usage: PlutoScheduler(PRDG prdg)\");\n\t\t\tbreak;\n\t\tcase \"setSpaceTimeMap\":\n\t\t\tSystem.out.println(\"Description: Specifies a space time mapping of a variable at a certain level. By default (when there is no value for level), the space-time map is set up for the first level of targetMapping.\");\n\t\t\tSystem.out.println(\"Usage: setSpaceTimeMap(Program prog, String system, int level, String varList, AffineFunction stMap)\");\n\t\t\tbreak;\n\t\tcase \"setMemoryMap\":\n\t\t\tSystem.out.println(\"Description: Specifies a memory map for a variable. Some variables may share the same meory map and memory space, then they can be set up using one command by providing a list of variables. \");\n\t\t\tSystem.out.println(\"Usage: setMemoryMap(Program prog, String system, String varList, String memorySpace, AffineFunction memoryMap, String modFactors)\");\n\t\t\tbreak;\n\t\tcase \"setMemorySpace\":\n\t\t\tSystem.out.println(\"Description: Specifies the memory space for a variable. Normally, each variable has a separate memory space. However, some variables may share the same memory space, and this can be set up once by providing a list of variable.\");\n\t\t\tSystem.out.println(\"Usage: setMemorySpace(Program prog, String system, String space, String varList)\");\n\t\t\tbreak;\n\t\tcase \"setStatementOrdering\":\n\t\t\tSystem.out.println(\"Description: Specifies the ordering of the statements (alphabets variables) in the generated code. This is similar to adding an additional ordering dimensions to the last dimension of space-time mapping, and providing ordering information.AlphaZ provides an alternative to such specification by allowing the user to specify partial orderings between statements.A total order is deduced at the time of code generation.\");\n\t\t\tSystem.out.println(\"Usage: setStatementOrdering(Program prog, String system, String predecessor, String successor)\");\n\t\t\tbreak;\n\t\tcase \"listSpaceTimeMaps\":\n\t\t\tSystem.out.println(\"Description: Lists all SpaceTime maps that have been specified for a system.\");\n\t\t\tSystem.out.println(\"Usage: listSpaceTimeMaps(Program prog, String system, int level)\");\n\t\t\tbreak;\n\t\tcase \"listMemoryMaps\":\n\t\t\tSystem.out.println(\"Description: Lists all memory mappings specified for a system.\");\n\t\t\tSystem.out.println(\"Usage: listMemoryMaps(Program prog, String system)\");\n\t\t\tbreak;\n\t\tcase \"setSchedule\":\n\t\t\tSystem.out.println(\"Description: Applies schedules found by a scheduler (such as Farkas scheduler) to target mapping.\");\n\t\t\tSystem.out.println(\"Usage: setSchedule(Program prog, String system, List<ScheduledStatement> schedules)\");\n\t\t\tbreak;\n\t\tcase \"setParallel\":\n\t\t\tSystem.out.println(\"Description: Specify the parallel dimensions for a system. The nth dimension (specified by parallelDims, start with zero) with the specified ordering prefix to be parallel.\");\n\t\t\tSystem.out.println(\"Usage: setParallel(Program prog, String system, int level, String orderingPrefix, String parallelDims)\");\n\t\t\tbreak;\n\t\tcase \"CreateSpaceTimeLevel\":\n\t\t\tSystem.out.println(\"Description: Create a spacetimelevel data stucture for level (level)\");\n\t\t\tSystem.out.println(\"Usage: CreateSpaceTimeLevel(Program prog, String system, int level)\");\n\t\t\tbreak;\n\t\tcase \"setOrderingDimensions\":\n\t\t\tSystem.out.println(\"Description: specify which dimension is the ordering dimension for each level of the targetMapping. Dimension starts with zero. If no value is specified for the targetMapping level, it is the first level by default. \");\n\t\t\tSystem.out.println(\"Usage: setOrderingDimensions(Program prog, String system, int level, String dims)\");\n\t\t\tbreak;\n\t\tcase \"setSpaceTimeMapForMemoryAllocation\":\n\t\t\tSystem.out.println(\"Description: set space time map for the memory allocation statement for the input/output of the use equation.isInput -- 0: for nTh input of the use equaitonisInput -- 1: for nTh output of the use equation\");\n\t\t\tSystem.out.println(\"Usage: setSpaceTimeMapForMemoryAllocation(Program prog, String system, String label, int isInput, int num, AffineFunction stMap)\");\n\t\t\tbreak;\n\t\tcase \"setSpaceTimeMapForValueCopy\":\n\t\t\tSystem.out.println(\"Description: set the space time map for the value copy statement for input/output of a use equation\");\n\t\t\tSystem.out.println(\"Usage: setSpaceTimeMapForValueCopy(Program prog, String system, String label, int isInput, int num, AffineFunction stMap)\");\n\t\t\tbreak;\n\t\tcase \"setSpaceTimeMapForMemoryFree\":\n\t\t\tSystem.out.println(\"Description: set the space time map for the memory free statement for the input/ouput of a useEquation.isInput -- 0, for the input of the useEquationisInput -- 1, for the output of the useEquation\");\n\t\t\tSystem.out.println(\"Usage: setSpaceTimeMapForMemoryFree(Program prog, String system, String label, int isInput, int num, AffineFunction stMap)\");\n\t\t\tbreak;\n\t\tcase \"setSpaceTimeMapForUseEquationOptimization\":\n\t\t\tSystem.out.println(\"Description: set the space time map for the memory allocation, value copy, memory allocation statement for the input/output of the useEuqation.isInput -- 0: for the input of the useEquationisInput -- 1: for the output of the useEquation\");\n\t\t\tSystem.out.println(\"Usage: setSpaceTimeMapForUseEquationOptimization(Program prog, String system, String label, int isInput, int num, AffineFunction stMapForMemoryAllocation, AffineFunction stMapForValueCopy, AffineFunction stMapForMemoryFree)\");\n\t\t\tbreak;\n\t\tcase \"setMemorySpaceForUseEquationOptimization\":\n\t\t\tSystem.out.println(\"Description: set memory space for the input/ouput of the useEquation\");\n\t\t\tSystem.out.println(\"Usage: setMemorySpaceForUseEquationOptimization(Program prog, String system, String label, int isInput, int num, String spaceName)\");\n\t\t\tbreak;\n\t\tcase \"setBandForTiling\":\n\t\t\tSystem.out.println(\"Description: configure a band of continuous dimensions for tiling.\");\n\t\t\tSystem.out.println(\"Usage: setBandForTiling(Program prog, String system, String bandName, int levels, String orderingPrefix, int startDim, int endDim)\");\n\t\t\tbreak;\n\t\tcase \"setSubTilingWithinBand\":\n\t\t\tSystem.out.println(\"Description: Configure the subtiling specification for a band. The band is identified by the name. There are two types of tiling type: sequential and openmp wavefront. Represented with \\\"sequential\\\" and \\\"wavefront\\\" separately.\");\n\t\t\tSystem.out.println(\"Usage: setSubTilingWithinBand(Program prog, String system, String bandName, int level, int startDim, int endDim, String tilingType)\");\n\t\t\tbreak;\n\t\tcase \"setDefaultDTilerConfiguration\":\n\t\t\tSystem.out.println(\"Description: Set up the default configuration for dtiler: apply parametric one level tiling to all the dimensions from [start to end].\");\n\t\t\tSystem.out.println(\"Usage: setDefaultDTilerConfiguration(Program prog, String system, int startDim, int endDim, String tilingType)\");\n\t\t\tbreak;\n\t\tcase \"history\":\n\t\t\tSystem.out.println(\"Description: Print out command history so far.\");\n\t\t\tSystem.out.println(\"Usage: history()\");\n\t\t\tSystem.out.println(\"Usage: history(int n)\");\n\t\t\tbreak;\n\t\tcase \"searchHistory\":\n\t\t\tSystem.out.println(\"Description: Search History for a particular pattern - can be a regex.\");\n\t\t\tSystem.out.println(\"Usage: searchHistory(String pattern)\");\n\t\t\tbreak;\n\t\tcase \"undo\":\n\t\t\tSystem.out.println(\"Descrgiption: Undo n times, default 1.\");\n\t\t\tSystem.out.println(\"Usage: undo()\");\n\t\t\tSystem.out.println(\"Usage: undo(int n)\");\n\t\t\tbreak;\n\t\tcase \"redo\":\n\t\t\tSystem.out.println(\"Descrgiption: Redo n times, default 1.\");\n\t\t\tSystem.out.println(\"Usage: redo()\");\n\t\t\tSystem.out.println(\"Usage: redo(int n)\");\n\t\t\tbreak;\n\t\tcase \"printTransform\":\n\t\t\tSystem.out.println(\"Description: Print the effective transformation carried out on the program so far, after a long sequence of actions.\");\n\t\t\tSystem.out.println(\"Usage: printTransform()\");\n\t\t\tbreak;\n\t\tcase \"delVar\":\n\t\t\tSystem.out.println(\"Description: Removes variable from context. If you ask to remove program from context, it's undo/redo history will also be erased.\");\n\t\t\tSystem.out.println(\"Usage: delVar(String varName)\");\n\t\t\tbreak;\n\t\tcase \"clear\":\n\t\t\tSystem.out.println(\"Description: Clears the symbol table, program, and undo/redo history\");\n\t\t\tSystem.out.println(\"Usage: clear()\");\n\t\t\tbreak;\n\t\tcase \"help\":\n\t\t\tSystem.out.println(\"Description: Prints help messages for commands.\");\n\t\t\tSystem.out.println(\"Usage: help(String funcName)\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"No relevant documentation found\");\n\t\t}\n\t}",
"String getExternalToolName();",
"String getOutputName();",
"public String getName() {\r\n return \"Boyer/Moore-Suche in Strings\";\r\n }",
"public void showNAME() {\r\n\t\tSystem.out.println(getName().toUpperCase());\r\n\t}",
"public DTProgramaFormacion verInfoPrograma(String nombreProg) throws ProgramaFormacionExcepcion;",
"public String showName(){\r\n\t\tSystem.out.println(\"This is a \" + name);\r\n\t\treturn name;}",
"protected String computePanelTitle(Program panelProgram) {\n\t\treturn panelProgram.getDomainFile().toString();\n\t}",
"public void iterateAndClickParticularProgram(final String programeName);",
"public static void mainText(){\n\t\tSystem.out.println(\"Enter: 1.'EXIT' 2.'STU' 3.'FAC' 4.SQL query 5.'MORE' -for more detail about options\");\n\t}",
"public String getDisplayName () throws java.io.IOException, com.linar.jintegra.AutomationException;",
"protected void showUsage() {\n\n\tStringBuffer usage = new StringBuffer();\n\tusage.append(\"------------------------------------------------------\\n\");\n\tusage.append(\" \" + APP_NAME + \" \" + APP_VERSION + \"\\n\");\n\tusage.append(\"------------------------------------------------------\\n\");\n\tusage.append(\"Prints the Tool Kit name for the given Branch and \\n\");\n\tusage.append(\"Component.\\n\");\n\tusage.append(\"\\n\");\n\tusage.append(\"USAGE:\\n\");\n\tusage.append(\"------\\n\");\n\tusage.append(APP_NAME + \" <-c component> <-b branch> [-y] [-h] [-db dbMode]\\n\");\n\tusage.append(\"\\n\");\n\tusage.append(\" component = Component name (ess, pds, model, einstimer ...).\\n\");\n\tusage.append(\" branch = Branch name.\\n\");\n\tusage.append(\" -y = (optional) Verbose mode (echo messages to screen)\\n\");\n\tusage.append(\" dbMode = (optional) DEV | PROD (defaults to PROD)\\n\");\n\tusage.append(\" -h = Help (shows this information)\\n\");\n\tusage.append(\"\\n\");\n\tusage.append(\"Return Codes\\n\");\n\tusage.append(\"------------\\n\");\n\tusage.append(\" 0 = application ran ok\\n\");\n\tusage.append(\" 1 = application error\\n\");\n\tusage.append(\"\\n\");\n\n\tSystem.out.println(usage);\n\n }",
"public Map<String, Object> getSpecificProgramDetails(String programName) throws ParseException;",
"public String about(){\n\treturn \"This subclass of Protagonist, Archer, is one with slightly above average attack and defense, good for balanced gameplay.\";\n }",
"public CharSequence getLabel() {\n // TODO: Go through LauncherAppsService\n return getActivityInfo().loadLabel(mPm);\n }",
"public String getProgramModeAsString() {\n return getProgramMode().name();\n }",
"public String getName ( ) {\r\n\t\treturn \"TASS Mark IV Patches Catalog\";\r\n\t}",
"String getExecutable();",
"public String getName() {\r\n\t\treturn GDAssemblerUI.getText(UI_TEXT);\r\n\t}",
"public abstract String getUsageName();",
"public String getProgramId() {\n return pathsProvider.getProgramId();\n }",
"String printName(String input);",
"public String getDisplayName() {\n return \"Rhapsody Build\";\n }",
"@Override\n\tpublic String getExecutingProgramName() throws RemoteException {\n\t return null;\n\t}",
"public java.lang.String shortName () { throw new RuntimeException(); }",
"public String getExecutable();",
"String intermediateSystemName();",
"String GetTaskName(int Catalog_ID);",
"public String getHelp() {\r\n String res = \"You can use the following commands:\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"north\\\" to go towards the north\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"south\\\" to go towards the south\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"east\\\" to go towards the south\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"west\\\" to go towards the south\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"attack\\\" to attack a monster\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"look\\\" to look around in the room\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"search\\\" to search the room for treasure\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"use\\\" to use somthing in your inventory\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"gear\\\" to see what gear you got equipped\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"inventory\\\" to see what gear you have in your inventory\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"savegame\\\" to save your progress\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"stop\\\" to quit the game.\" + System.lineSeparator();\r\n return res;\r\n }",
"public String about()\n {\n\treturn \"Warrior Class:\\n\" + \"Name: \" + name + \"\\n HP: \" + HP + \"\\n Strength: \" + str + \"\\n Defense: \" + def + \"\\n Attack Rating: \" + dmg;\n }",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"String name();",
"public Program3 (String empName) {\r\n\t\tname = empName;\r\n\t}",
"abstract public String getApplicationName();",
"public String description () {\n\t\t\tSystem.out.println(treinador.getTreinador() + \" fugiu da batalha!!\");\r\n\t\t\tSystem.exit(0);\r\n\t\t\treturn treinador.getTreinador() + \" fugiu da batalha!!\";\r\n\t\t}",
"public String getName() {\n return \"GA binary individual\";\n }",
"public String getName() {\n return \"CLI Export\";\n }",
"public String getShortAppName();",
"String getDisplay_name();",
"public String getTechniqueName(int typeOfTechnique){\n\t\treturn TechniqueCreator.acronyms(typeOfTechnique);\n\t}",
"String getPreferredName();",
"private String getName()\r\n {\r\n return JOptionPane.showInputDialog(frame, \"Choose a screen name:\", \"Screen name selection\",\r\n JOptionPane.PLAIN_MESSAGE);\r\n }",
"String getIntegApplicationName();",
"public static void showUsage() {\n System.out.printf(\"java app.App (-a | -r | -c | +WORD | ?WORD)\");\n }",
"Program createProgram();",
"Program createProgram();",
"Program createProgram();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();"
] | [
"0.75280285",
"0.6791496",
"0.6526533",
"0.65102434",
"0.64544696",
"0.63365525",
"0.62784547",
"0.62519795",
"0.6228872",
"0.6221708",
"0.62175834",
"0.6067213",
"0.6055614",
"0.60543585",
"0.59983546",
"0.5987785",
"0.5972215",
"0.5951075",
"0.5949579",
"0.59256494",
"0.59196603",
"0.59043705",
"0.5896099",
"0.589378",
"0.5874831",
"0.5873858",
"0.5873533",
"0.5855765",
"0.585265",
"0.58172405",
"0.5813155",
"0.57975",
"0.57547706",
"0.5738869",
"0.57341266",
"0.5733539",
"0.57288873",
"0.57288164",
"0.5704285",
"0.57008696",
"0.5690294",
"0.568793",
"0.5668473",
"0.56644106",
"0.56644106",
"0.56644106",
"0.56644106",
"0.56644106",
"0.56644106",
"0.56644106",
"0.56644106",
"0.56644106",
"0.56644106",
"0.56644106",
"0.56644106",
"0.56644106",
"0.56644106",
"0.56644106",
"0.56644106",
"0.56644106",
"0.56644106",
"0.56644106",
"0.56644106",
"0.56644106",
"0.56644106",
"0.56644106",
"0.56644106",
"0.56644106",
"0.56644106",
"0.56644106",
"0.56644106",
"0.56644106",
"0.56644106",
"0.56644106",
"0.56644106",
"0.56644106",
"0.56644106",
"0.56644106",
"0.5659351",
"0.5654212",
"0.56481266",
"0.56438226",
"0.5642684",
"0.5640782",
"0.5634373",
"0.56300545",
"0.5628135",
"0.5627133",
"0.5625737",
"0.56227356",
"0.5620478",
"0.5620478",
"0.5620478",
"0.5619149",
"0.5619149",
"0.5619149",
"0.5619149",
"0.5619149",
"0.5619149",
"0.5619149",
"0.5619149"
] | 0.0 | -1 |
A human readable description of a Program. | public abstract String description(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getProgram() {\n return program;\n }",
"String getProgram()\n\t\t{\n\t\t\treturn mProgram;\n\t\t}",
"public static void p_show_info_program() {\n System.out.println(\"╔══════════════════════════════╗\");\n System.out.println(\"║ SoftCalculator V1.2 ║\");\n System.out.println(\"║ Oscar Javier Cardozo Diaz ║\");\n System.out.println(\"║ 16/04/2021 ║\");\n System.out.println(\"╚══════════════════════════════╝\");\n }",
"public String getProgramName()\r\n \t{\r\n \t\treturn m_program.m_csSimpleName;\r\n \t}",
"public Program getProgram() {\n return this.program;\n }",
"String description();",
"String description();",
"String description();",
"String description();",
"String description();",
"String description();",
"String description();",
"String description();",
"String description();",
"String description();",
"String description();",
"String description();",
"@Basic\n\tpublic Program getProgram() {\n\t\treturn this.program;\n\t}",
"public String program();",
"public Program program() {\n\n if (lexer.token != Symbol.PROGRAM) {\n error.signal(\"Missing PROGRAM keyword\");\n }\n\n lexer.nextToken();\n\n if (lexer.token != Symbol.IDENT) {\n error.signal(\"Missing PROGRAM identifier\");\n }\n\n Ident id = new Ident(lexer.getStringValue());\n\n lexer.nextToken();\n\n if (lexer.token != Symbol.BEGIN) {\n error.signal(\"Missing BEGIN keyword to PROGRAM\");\n }\n\n lexer.nextToken();\n\n ProgramBody pgm = pgm_body(); \n \n if (lexer.token != Symbol.END) {\n error.signal(\"Missing END keyword to PROGRAM\");\n }\n\n if(symbolTable.getFunction(\"main\") == null)\n error.show(\"The program must have a main function\");\n \n lexer.nextToken();\n\n return new Program(id, pgm);\n }",
"Program createProgram();",
"Program createProgram();",
"Program createProgram();",
"public String about(){\n\treturn \"This subclass of Protagonist, Archer, is one with slightly above average attack and defense, good for balanced gameplay.\";\n }",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"public String getLongDescription()\n {\n return description + \".\\n\" + getExitString();\n }",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"@Override\n\tpublic String getDesription() {\n\t\treturn \"Implemented by Dong Zihe and Huang Haowei based on \\\"Dong Z, Wen L, Huang H, et al. \"\n\t\t\t\t+ \"CFS: A Behavioral Similarity Algorithm for Process Models Based on \"\n\t\t\t\t+ \"Complete Firing Sequences[C]//On the Move to Meaningful Internet Systems: \"\n\t\t\t\t+ \"OTM 2014 Conferences. Springer Berlin Heidelberg, 2014: 202-219.\\\"\";\n\t}",
"public abstract String getRuntimeDescription();",
"public interface Program {\n\n\t/**\n\t * The name of the string class\n\t */\n\tpublic static final String STRING_CLASS = \"String\";\n\n\t/**\n\t * The name of the object class\n\t */\n\tpublic static final String OBJECT_CLASS = \"Object\";\n\n\t/**\n\t * Yields an unmodifiable view of all the methods and constructors that are part\n\t * of the program to analyze.\n\t * \n\t * @return the collection of method and constructors\n\t */\n\tCollection<MCodeMember> getAllCodeMembers();\n\n\t/**\n\t * Yields an unmodifiable view of all the methods and constructors that are part\n\t * of the program to analyze, excluding ones from the String and Object classes.\n\t * \n\t * @return the collection of method and constructors\n\t */\n\tCollection<MCodeMember> getAllSubmittedCodeMembers();\n}",
"public String description();",
"protected String description() {\r\n\t\treturn \"Exam: duration \" + duration + \" minutes, weight \" + this.getWeight() + \"%\";\r\n\t}",
"@Override\r\n\tpublic void prettyPrintProgram(Robot robot, Writer writer)\r\n\t{\r\n\t\tif(robot.getProgram() == null)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"This robot does not yet contain a program in its memory.\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\twriter.append(robot.getProgram().toString());\r\n\t\t\t}\r\n\t\t\tcatch (IOException e)\r\n\t\t\t{\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();"
] | [
"0.711863",
"0.6918308",
"0.6775416",
"0.65395576",
"0.6474533",
"0.64606625",
"0.64606625",
"0.64606625",
"0.64606625",
"0.64606625",
"0.64606625",
"0.64606625",
"0.64606625",
"0.64606625",
"0.64606625",
"0.64606625",
"0.64606625",
"0.6443983",
"0.6308561",
"0.62595457",
"0.62432",
"0.62432",
"0.62432",
"0.6241507",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.62195355",
"0.61941326",
"0.61453116",
"0.61453116",
"0.61453116",
"0.61453116",
"0.61453116",
"0.61453116",
"0.61453116",
"0.61453116",
"0.61453116",
"0.6129487",
"0.61278665",
"0.60822237",
"0.60808784",
"0.6076723",
"0.60653186",
"0.605885",
"0.605885",
"0.605885",
"0.605885",
"0.605885",
"0.605885",
"0.605885",
"0.605885",
"0.605885",
"0.605885",
"0.605885",
"0.605885",
"0.605885",
"0.605885",
"0.605885",
"0.605885",
"0.605885",
"0.605885",
"0.605885",
"0.605885",
"0.605885",
"0.605885",
"0.605885"
] | 0.0 | -1 |
True if a question with the given question's ID is in the program. | public boolean hasQuestion(QuestionDefinition question) {
return hasQuestion(question.getId());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isProgramActive(String programId);",
"boolean hasQuestID();",
"boolean hasQuestID();",
"boolean hasQuestID();",
"boolean hasQuestID();",
"public boolean hasQuestion(long questionId) {\n if (questionIds.isEmpty()) {\n questionIds =\n Optional.of(\n blockDefinitions().stream()\n .map(BlockDefinition::programQuestionDefinitions)\n .flatMap(ImmutableList::stream)\n .map(ProgramQuestionDefinition::getQuestionDefinition)\n .map(QuestionDefinition::getId)\n .collect(ImmutableSet.toImmutableSet()));\n }\n\n return questionIds.get().contains(questionId);\n }",
"boolean hasQuestId();",
"boolean hasQuestId();",
"boolean hasQuestId();",
"boolean hasQuestId();",
"public boolean isProgramIdForUser(String programid) {\n if (mUserProgramsAndRoles != null) {\n String rolesStr = mUserProgramsAndRoles.get(programid);\n if (StringUtils.isNotBlank(rolesStr)) {\n Set<String> roles = new HashSet<>(Arrays.asList(rolesStr.split(\",\")));\n roles.retainAll(TBLOADER_ROLES);\n return roles.size() > 0;\n }\n }\n return false;\n }",
"private boolean promptID() {}",
"public boolean callProgram(String programId);",
"boolean hasExecId();",
"boolean hasPrerequisiteId();",
"public boolean showQuestion(final String question) {\r\n return JOptionPane.YES_OPTION == JOptionPane.showConfirmDialog(window, question, getTitle(), JOptionPane.YES_NO_OPTION);\r\n }",
"public boolean contains(IQuestion question) {\n\t\treturn getQuestions().contains(question);\n\t}",
"boolean hasResMineID();",
"public boolean isSurveyAssigned(Long surveyId, long userId);",
"public static boolean doesUserOwn(int userId, int questionId) throws ApplicationException {\n return QuestionDatabaseAccess.getQuestionsByUserId(userId).contains(new Question(questionId));\n }",
"public static boolean checkQuestion (int qid, String an) {\n\t\t\tboolean flag = false;\n\t\t\tDate date1 = new Date();\n\t\t\tif (qid == 14) {\n\t\t\t\tif (an.equals(\"0\")) {\n\t\t\t\t\tan = \"2019/01/01\";\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tdate1=new SimpleDateFormat(\"yyyy/MM/dd\").parse(an);\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tSimpleDateFormat formatter= new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\tDate date = new Date(System.currentTimeMillis());\n\t\t\t\tlong diff = getDateDiff(date1,date,TimeUnit.DAYS);\n\t\t\t\tif (diff >= 90){\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t} else if (qid > 14) {\n\t\t\t\tif (an.equals(\"1\")) {\n\t\t\t\t\tflag = true; //if the users answers no, he is compatible\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tflag = true; //the rest of the answers don't need checking\n\t\t\t}\n\t\t\treturn flag;\n\t\t}",
"boolean hasID();",
"boolean hasID();",
"boolean hasID();",
"boolean hasID();",
"boolean hasID();",
"boolean hasID();",
"boolean hasID();",
"boolean hasID();",
"boolean hasID();",
"boolean hasPokerId();",
"public boolean hasQuestID() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasQuestID() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"private boolean checkQuestion(int number) {\n String answer = questionsList.get(number).getAnswer();\n return answer.equals(\"True\");\n }",
"private boolean checkQuestion(int number){\n String answer = questionsList.get(number).getAnswer();\n return answer.equals(\"true\");\n\n }",
"boolean hasWhid();",
"public boolean hasQuestID() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasQuestID() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasQuestID() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean callIntoQuestion();",
"public boolean hasQuestId() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }",
"public boolean hasQuestID() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasQuestID() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasQuestID() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Programme)) {\n return false;\n }\n Programme other = (Programme) object;\n if ((this.idprogramme == null && other.idprogramme != null) || (this.idprogramme != null && !this.idprogramme.equals(other.idprogramme))) {\n return false;\n }\n return true;\n }",
"public boolean hasQuestId() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public boolean hasQuestId() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasQuestId() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasQuestId() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"boolean isSetID();",
"public boolean hasQuestId() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasQuestId() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasQuestId() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean isSurveyExists(long surveyId,Application passport);",
"public boolean containsPersonWithId(int id) {\n\t\tif(id == teacherId) {\n\t\t\treturn true;\n\t\t}\n\t\tfor(Team team : this.schoolClass.getTeams()) {\n\t\t\tif(team.containsStudentWithId(id)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"boolean hasQueryId();",
"boolean hasQueryId();",
"boolean hasPackageid();",
"boolean hasPackageid();",
"boolean hasCorrectAnswer();",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Program)) {\n return false;\n }\n Program other = (Program) object;\n if ((this.programPK == null && other.programPK != null) || (this.programPK != null && !this.programPK.equals(other.programPK))) {\n return false;\n }\n return true;\n }",
"boolean hasWorldid();",
"boolean hasWorldid();",
"public boolean isSetExam_id() {\n return this.exam_id != null;\n }",
"public boolean isSetExam_id() {\n return this.exam_id != null;\n }",
"public boolean isOkToQuery(String id){\n try{\n queryTextbook(id);\n return true;\n }catch (RuntimeException e){\n e.printStackTrace();\n return false;\n }\n }",
"public static boolean containsID(int segID) {\n String sql = \"SELECT id FROM corpus1 where id= ?\";\n\n Connection conn = null;\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n\n try {\n conn = DatabaseOperations.connect();\n pstmt = conn.prepareStatement(sql);\n\n pstmt.setInt(1, segID);\n rs = pstmt.executeQuery();\n // loop through the result set\n while (rs.next()) {\n if (segID == rs.getInt(\"id\")) {\n return true;\n }\n }\n } catch (SQLException e) {\n System.out.println(\"containsID: \" + e.getMessage());\n } finally {\n try {\n if (rs != null) {\n rs.close();\n }\n if (pstmt != null) {\n pstmt.close();\n }\n if (conn != null) {\n conn.close();\n }\n } catch (SQLException e) {\n System.out.println(\"containsID: \" + e.getMessage());\n }\n }\n return false;\n\n }",
"public static boolean QuestionVisible(){\r\n\t return (question.getText().equalsIgnoreCase(\"How would you rate your satisfaction with this website?\"));\t\r\n\t}",
"boolean hasResMineInstanceID();",
"public abstract boolean matches(ExternalIdBundle id);",
"@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n if (!(other instanceof Program)) {\n return false;\n }\n\n Program otherProgram = (Program) other;\n return super.equals(other)\n && otherProgram.getSessions().equals(getSessions())\n && otherProgram.getDogIdSet().equals(getDogIdSet());\n }",
"boolean isPresent(ExamPackage examPackage);",
"public static boolean find(String question){\n\t\treturn find.where().eq(\"question\", question).findUnique() != null;\n\t}",
"public boolean isSetExecTradeId() {\n return EncodingUtils.testBit(__isset_bitfield, __EXECTRADEID_ISSET_ID);\n }",
"public boolean findIfPlayerHasQueuedQuestion(Player player, Long id)\r\n\t{\r\n\t\t\r\n\t\tfor (QueuedQuestion qq : player.getQueuedQuestions())\r\n\t\t{\r\n\t\t\tif (qq.getQuestion().getId() == id)\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean isMainProgram() {\n return this.getName() == null;\n }",
"boolean hasStartingHadithNo();",
"@Test\n\tpublic void testGetQuestionById() {\n\t\tQnaQuestion question = questionLogic.getQuestionById(tdp.question1_location1.getId());\n\t\tAssert.assertNotNull(question);\n\t\tAssert.assertEquals(question.getQuestionText(),tdp.question1_location1.getQuestionText());\n\t\tAssert.assertEquals(question.getId(), tdp.question1_location1.getId());\n\t}",
"public boolean isSetApp_id() {\n return this.app_id != null;\n }",
"public boolean isSetPId() {\n return EncodingUtils.testBit(__isset_bitfield, __PID_ISSET_ID);\n }",
"private boolean checkPre(int id) {\r\n boolean x = true;\r\n try {\r\n String query = \"SELECT * FROM preregs WHERE courseid=?\";\r\n PreparedStatement pstmt = conn.prepareStatement(query);\r\n pstmt.setInt(1, id);\r\n ResultSet rs = pstmt.executeQuery();\r\n if (rs != null) {\r\n while (rs.next()) {\r\n if (!checkCompletedCourse(rs.getInt(\"preregid\"))) {\r\n x = false;\r\n break;\r\n }\r\n }\r\n }\r\n pstmt.close();\r\n rs.close();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return x;\r\n }",
"public boolean hasPendingQuestions() {\r\n try {\r\n Task[] tasks = getTasks();\r\n if (tasks == null || tasks.length == 0)\r\n return false;\r\n \r\n for (int i = 0; i < tasks.length; i++) {\r\n if (tasks[i].getPendingQuestions() != null\r\n && tasks[i].getPendingQuestions().length > 0)\r\n return true;\r\n }\r\n \r\n return false;\r\n } catch (ProcessManagerException pme) {\r\n return false;\r\n }\r\n }",
"boolean hasJobIDTarget();",
"boolean hasTerminalId();",
"public boolean isSetPid() {\n return EncodingUtils.testBit(__isset_bitfield, __PID_ISSET_ID);\n }",
"public boolean isSetPid() {\n return EncodingUtils.testBit(__isset_bitfield, __PID_ISSET_ID);\n }",
"boolean isSetIdentifier();",
"boolean canPerformQuest(int currentWorkCred);",
"boolean hasPlayerId();",
"boolean hasSuit();",
"boolean hasFromId();",
"public boolean presenceCheck()\r\n\t{\r\n\t\treturn validateAnswer();\r\n\t}",
"public boolean hasMainComponent(int id) {\r\n return opened != null && opened.getId() == id;\r\n }",
"boolean hasExecRefId();",
"public boolean isShowAnswerBtnPresent() {\n\t\treturn isElementPresent(By.id(\"btn_answer_1-1\"));\n\t}",
"boolean hasBidid();",
"public boolean exists(String id) {\r\n\t\tString sql = \"SELECT 1 from GAME_SET where \" + GameSet.DbField.ID + \"=?\";\r\n\r\n\t\tCursor cursor = getDatabase().rawQuery(sql, new String[] { id });\r\n\t\tif (cursor.moveToFirst()) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public boolean hasExecId() {\n return ((bitField0_ & 0x00004000) == 0x00004000);\n }",
"boolean hasResidues();",
"boolean hasIdentifier();"
] | [
"0.7119044",
"0.6872221",
"0.6872221",
"0.6872221",
"0.6872221",
"0.6726859",
"0.6667801",
"0.6667801",
"0.6667801",
"0.6667801",
"0.6309981",
"0.60167575",
"0.59861356",
"0.59458315",
"0.59093064",
"0.5869218",
"0.5844057",
"0.5820042",
"0.5818457",
"0.58088",
"0.5801244",
"0.5776572",
"0.5776572",
"0.5776572",
"0.5776572",
"0.5776572",
"0.5776572",
"0.5776572",
"0.5776572",
"0.5776572",
"0.57745165",
"0.57605517",
"0.5735446",
"0.57235765",
"0.57004964",
"0.5697614",
"0.5697315",
"0.5697315",
"0.5697315",
"0.5695233",
"0.5690558",
"0.5681267",
"0.5681267",
"0.5681267",
"0.5667328",
"0.5665214",
"0.5640808",
"0.5640808",
"0.5640808",
"0.5635956",
"0.56167865",
"0.56167865",
"0.56167865",
"0.55957925",
"0.5581957",
"0.5575908",
"0.5575908",
"0.5575541",
"0.5575541",
"0.5560987",
"0.55594677",
"0.555435",
"0.555435",
"0.55354285",
"0.55354285",
"0.5532501",
"0.5524761",
"0.5519937",
"0.5483747",
"0.5473458",
"0.5465364",
"0.54357094",
"0.5425962",
"0.5420206",
"0.54176927",
"0.54102093",
"0.5398493",
"0.5392687",
"0.5390562",
"0.5374174",
"0.537109",
"0.53662944",
"0.53576154",
"0.5343736",
"0.5343178",
"0.5343178",
"0.53188056",
"0.53185916",
"0.53167695",
"0.5308751",
"0.53053653",
"0.53038377",
"0.52812624",
"0.52664834",
"0.526289",
"0.5255573",
"0.5252112",
"0.52451617",
"0.5243072",
"0.52386844"
] | 0.5817906 | 19 |
True if a question with the given questionId is in the program. | public boolean hasQuestion(long questionId) {
if (questionIds.isEmpty()) {
questionIds =
Optional.of(
blockDefinitions().stream()
.map(BlockDefinition::programQuestionDefinitions)
.flatMap(ImmutableList::stream)
.map(ProgramQuestionDefinition::getQuestionDefinition)
.map(QuestionDefinition::getId)
.collect(ImmutableSet.toImmutableSet()));
}
return questionIds.get().contains(questionId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isProgramActive(String programId);",
"boolean hasQuestId();",
"boolean hasQuestId();",
"boolean hasQuestId();",
"boolean hasQuestId();",
"boolean hasQuestID();",
"boolean hasQuestID();",
"boolean hasQuestID();",
"boolean hasQuestID();",
"public static boolean doesUserOwn(int userId, int questionId) throws ApplicationException {\n return QuestionDatabaseAccess.getQuestionsByUserId(userId).contains(new Question(questionId));\n }",
"public boolean isProgramIdForUser(String programid) {\n if (mUserProgramsAndRoles != null) {\n String rolesStr = mUserProgramsAndRoles.get(programid);\n if (StringUtils.isNotBlank(rolesStr)) {\n Set<String> roles = new HashSet<>(Arrays.asList(rolesStr.split(\",\")));\n roles.retainAll(TBLOADER_ROLES);\n return roles.size() > 0;\n }\n }\n return false;\n }",
"public boolean isSurveyAssigned(Long surveyId, long userId);",
"public boolean hasQuestion(QuestionDefinition question) {\n return hasQuestion(question.getId());\n }",
"public boolean callProgram(String programId);",
"public boolean hasQuestId() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }",
"public boolean hasQuestId() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public boolean hasQuestId() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasQuestId() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasQuestId() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasQuestId() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasQuestId() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasQuestId() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"private boolean checkQuestion(int number) {\n String answer = questionsList.get(number).getAnswer();\n return answer.equals(\"True\");\n }",
"public boolean hasQuestID() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean showQuestion(final String question) {\r\n return JOptionPane.YES_OPTION == JOptionPane.showConfirmDialog(window, question, getTitle(), JOptionPane.YES_NO_OPTION);\r\n }",
"public boolean hasQuestID() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean isSurveyExists(long surveyId,Application passport);",
"private boolean checkQuestion(int number){\n String answer = questionsList.get(number).getAnswer();\n return answer.equals(\"true\");\n\n }",
"public boolean hasQuestID() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasQuestID() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasQuestID() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasQuestID() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasQuestID() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasQuestID() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"boolean hasExecId();",
"public static boolean checkQuestion (int qid, String an) {\n\t\t\tboolean flag = false;\n\t\t\tDate date1 = new Date();\n\t\t\tif (qid == 14) {\n\t\t\t\tif (an.equals(\"0\")) {\n\t\t\t\t\tan = \"2019/01/01\";\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tdate1=new SimpleDateFormat(\"yyyy/MM/dd\").parse(an);\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tSimpleDateFormat formatter= new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\tDate date = new Date(System.currentTimeMillis());\n\t\t\t\tlong diff = getDateDiff(date1,date,TimeUnit.DAYS);\n\t\t\t\tif (diff >= 90){\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t} else if (qid > 14) {\n\t\t\t\tif (an.equals(\"1\")) {\n\t\t\t\t\tflag = true; //if the users answers no, he is compatible\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tflag = true; //the rest of the answers don't need checking\n\t\t\t}\n\t\t\treturn flag;\n\t\t}",
"boolean hasPrerequisiteId();",
"public boolean contains(IQuestion question) {\n\t\treturn getQuestions().contains(question);\n\t}",
"public boolean isQuizAvailable(String quizName){\n \t\tString query = \"SELECT * FROM quizzes WHERE quiz_id = '\" + quizName + \"'\";\n \t\tResultSet rs = getResult(query);\n \t\ttry {\n \t\t\tif(rs.next()) return true;\n \t\t} catch (SQLException e) {e.printStackTrace();}\n \t\t\n \t\treturn false;\n \t}",
"public static boolean QuestionVisible(){\r\n\t return (question.getText().equalsIgnoreCase(\"How would you rate your satisfaction with this website?\"));\t\r\n\t}",
"public boolean isSetExam_id() {\n return this.exam_id != null;\n }",
"public boolean isSetExam_id() {\n return this.exam_id != null;\n }",
"public boolean callIntoQuestion();",
"public boolean hasPendingQuestions() {\r\n try {\r\n Task[] tasks = getTasks();\r\n if (tasks == null || tasks.length == 0)\r\n return false;\r\n \r\n for (int i = 0; i < tasks.length; i++) {\r\n if (tasks[i].getPendingQuestions() != null\r\n && tasks[i].getPendingQuestions().length > 0)\r\n return true;\r\n }\r\n \r\n return false;\r\n } catch (ProcessManagerException pme) {\r\n return false;\r\n }\r\n }",
"boolean hasPokerId();",
"private boolean hasAnswereredCorrectly(int optionId) {\n boolean answeredCorrectly = false;\n QuestionModel questionModel = mGameModel.getQuestion();\n for(OptionModel option : questionModel.getOptions()) {\n if(option.getOptionId() == optionId) {\n answeredCorrectly = option.isCorrectAnswer();\n break;\n }\n }\n if(answeredCorrectly) {\n Toast.makeText(getApplicationContext(), \"Correct Answer!\", Toast.LENGTH_LONG).show();\n if(isGameMaster()) {\n mGameModel.getGameMaster().setScore(mGameModel.getGameMaster().getScore() + 1);\n } else {\n mGameModel.getGameSlave().setScore(mGameModel.getGameSlave().getScore() + 1);\n }\n } else {\n Toast.makeText(getApplicationContext(), \"Wrong Answer!\", Toast.LENGTH_LONG).show();\n }\n return answeredCorrectly;\n }",
"boolean hasCorrectAnswer();",
"public static boolean isCorrect(ProblemSet probSet, String responseId) {\n return true;\n }",
"public static boolean hasWithId(int aId)\n {\n return getWithId(aId) != null;\n }",
"@GET\n @Path(\"/checkAnswer\")\n public boolean testAnswer(@QueryParam(\"question\") String question, @QueryParam(\"answer\") String answer) {\n return map.get(question).equals(answer);\n }",
"boolean hasWhid();",
"@Test\n\tpublic void testGetQuestionById() {\n\t\tQnaQuestion question = questionLogic.getQuestionById(tdp.question1_location1.getId());\n\t\tAssert.assertNotNull(question);\n\t\tAssert.assertEquals(question.getQuestionText(),tdp.question1_location1.getQuestionText());\n\t\tAssert.assertEquals(question.getId(), tdp.question1_location1.getId());\n\t}",
"private boolean promptID() {}",
"public boolean isSetChoiceId() {\r\n return this.choiceId != null;\r\n }",
"public boolean isSetApp_id() {\n return this.app_id != null;\n }",
"boolean hasQueryId();",
"boolean hasQueryId();",
"public boolean isMainProgram() {\n return this.getName() == null;\n }",
"public boolean isInCompetition(Long competitionId) {\n\t\tQuery query = JPA.em().createQuery(\"SELECT COUNT(c) AS count FROM Competition c JOIN c.tasks t WHERE c.id=:cId AND t.id=:tId\");\n\t\tquery.setParameter(\"cId\", competitionId);\n\t\tquery.setParameter(\"tId\", this.getId());\n\t\treturn ((Long) query.getSingleResult()) > 0;\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Program)) {\n return false;\n }\n Program other = (Program) object;\n if ((this.programPK == null && other.programPK != null) || (this.programPK != null && !this.programPK.equals(other.programPK))) {\n return false;\n }\n return true;\n }",
"private boolean checkTextViewAnswer(int resourceId, String correctAnswer){\n TextView textView = findViewById(resourceId);\n return textView.getText().toString().equals(correctAnswer);\n }",
"public Boolean isKeyInMap() {\n questionFourAnswer = \"Brunch\";\n\t\treturn hashMap.containsKey(questionFourAnswer);\n\t}",
"private boolean checkCheckBoxAnswer(int resourceId, boolean correctAnswer){\n CheckBox answerOption = findViewById(resourceId);\n return answerOption.isChecked() == correctAnswer;\n }",
"private boolean checkAnswered(){\n int checkedRadioButtonId = Question.getCheckedRadioButtonId();\n\n // If no option selected, the question hasn't been answered\n if (checkedRadioButtonId == -1) {\n return false;\n }\n // If an option is selected, the question as been answered\n else{\n return true;\n }\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Programme)) {\n return false;\n }\n Programme other = (Programme) object;\n if ((this.idprogramme == null && other.idprogramme != null) || (this.idprogramme != null && !this.idprogramme.equals(other.idprogramme))) {\n return false;\n }\n return true;\n }",
"boolean hasResMineID();",
"@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n if (!(other instanceof Program)) {\n return false;\n }\n\n Program otherProgram = (Program) other;\n return super.equals(other)\n && otherProgram.getSessions().equals(getSessions())\n && otherProgram.getDogIdSet().equals(getDogIdSet());\n }",
"public boolean equals(Question q){\n\t\t\tif (question.equals(q.question) && answer.equals(q.answer)) return true;\n\t\t\telse return false;\n\t\t}",
"public Question getQuestion(String questionId) {\r\n Question[] questions = currentProcessInstance.getQuestions();\r\n Question foundQuestion = null;\r\n \r\n for (int i = 0; foundQuestion == null && i < questions.length; i++) {\r\n if (questions[i].getId().equals(questionId))\r\n foundQuestion = questions[i];\r\n }\r\n \r\n return foundQuestion;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Question)) {\n return false;\n }\n Question other = (Question) object;\n if ((this.qId == null && other.qId != null) || (this.qId != null && !this.qId.equals(other.qId))) {\n return false;\n }\n return true;\n }",
"public boolean contains(IdKey idKey) {\n return this.idKey.equals(idKey);\n }",
"public boolean hasExecId() {\n return ((bitField0_ & 0x00004000) == 0x00004000);\n }",
"private boolean checkQuestion9() {\n chkBox1_Q9 = (CheckBox) findViewById(R.id.chkBox1_Q9);\n chkBox2_Q9 = (CheckBox) findViewById(R.id.chkBox2_Q9);\n chkBox3_Q9 = (CheckBox) findViewById(R.id.chkBox3_Q9);\n if (chkBox1_Q9.isChecked() && chkBox2_Q9.isChecked() && chkBox3_Q9.isChecked()) {\n return true;\n }\n return false;\n }",
"public boolean hasCase(String caseId) {\n return casesMap.containsKey(caseId);\n }",
"public boolean isSetExecTradeId() {\n return EncodingUtils.testBit(__isset_bitfield, __EXECTRADEID_ISSET_ID);\n }",
"public boolean findIfPlayerHasQueuedQuestion(Player player, Long id)\r\n\t{\r\n\t\t\r\n\t\tfor (QueuedQuestion qq : player.getQueuedQuestions())\r\n\t\t{\r\n\t\t\tif (qq.getQuestion().getId() == id)\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"boolean hasWorldid();",
"boolean hasWorldid();",
"public boolean hasExecId() {\n return ((bitField0_ & 0x00004000) == 0x00004000);\n }",
"public boolean presenceCheck()\r\n\t{\r\n\t\treturn validateAnswer();\r\n\t}",
"public boolean isSetPid() {\n return EncodingUtils.testBit(__isset_bitfield, __PID_ISSET_ID);\n }",
"public boolean isSetPid() {\n return EncodingUtils.testBit(__isset_bitfield, __PID_ISSET_ID);\n }",
"public boolean containsPersonWithId(int id) {\n\t\tif(id == teacherId) {\n\t\t\treturn true;\n\t\t}\n\t\tfor(Team team : this.schoolClass.getTeams()) {\n\t\t\tif(team.containsStudentWithId(id)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"boolean hasPackageid();",
"boolean hasPackageid();",
"private boolean programIfExists(String compiledPath) {\n\t\tboolean itExists = false;\n\n\t\tif (Files.exists(Paths.get(compiledPath))) {\n\t\t\titExists = true;\n\t\t}\n\n\t\treturn itExists;\n\t}",
"public boolean isSetPId() {\n return EncodingUtils.testBit(__isset_bitfield, __PID_ISSET_ID);\n }",
"public boolean answerQuestion() {\n if (inputAnswer.equals(\"\") || inputAnswer == null)\n throw new EmptyStringException();\n for (String s : answer) {\n if (SpellingsCheck.checkAnswer(inputAnswer, s, mistakesAllowed)) {\n return true;\n }\n }\n return false;\n }",
"public boolean isSetProcessId() {\n return this.processId != null;\n }",
"boolean canPerformQuest(int currentWorkCred);",
"boolean hasStartingHadithNo();",
"boolean isGoodQuestion(){\n\t\treturn goodQ;\n\t}",
"boolean isPresent(ExamPackage examPackage);",
"public boolean isOkToQuery(String id){\n try{\n queryTextbook(id);\n return true;\n }catch (RuntimeException e){\n e.printStackTrace();\n return false;\n }\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Question)) {\r\n return false;\r\n }\r\n Question other = (Question) object;\r\n if ((this.getId() == null && other.getId() != null) || (this.getId() != null && !this.getId().equals(other.getId()))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"boolean hasApplicationProcessName();",
"private boolean isValidProgram() throws IOException\n\t{\n\t\t// Initialize return value to false.\n\t\tboolean isValid = false;\n\t\t\n\t\t// If the current token is program type, confirm if valid program header and body exist.\n\t\tif(theCurrentToken.TokenType == TokenType.PROGRAM)\n\t\t{\n\t\t\t// Set Symbol Type for table. \n\t\t\ttheSymbolTable.CURR_SYMBOL.setType(theCurrentToken.TokenType);\n\t\t\t\n\t\t\t// Update current token before checking if program header.\n\t\t\tupdateToken();\n\t\t\tif(isProgramHeader())\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Program Header!\");\n\t\t\t\t// Update current token before checking if program body.\n\t\t\t\tupdateToken();\n\t\t\t\tif(isProgramBody())\n\t\t\t\t{\n\t\t\t\t\t// Update current token before checking if end of program.\n\t\t\t\t\tif(theNextToken != null)\n\t\t\t\t\t\tupdateToken();\n\t\t\t\t\tif(theCurrentToken.TokenType == TokenType.PERIOD)\n\t\t\t\t\t{\n\t\t\t\t\t\tupdateToken();\n\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t\ttheTranslator.WriteCodeToFile();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ttheLogger.LogParseError(theCurrentToken);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\ttheLogger.LogParseError(theCurrentToken);\n\t\t\n\t\treturn isValid;\n\t}",
"public static boolean find(String question){\n\t\treturn find.where().eq(\"question\", question).findUnique() != null;\n\t}",
"public boolean isAddQuestion() {\n return isAddQuestion;\n }",
"public boolean isSetProcess_ID() {\r\n return this.Process_ID != null;\r\n }"
] | [
"0.710213",
"0.64662945",
"0.64662945",
"0.64662945",
"0.64662945",
"0.6448159",
"0.6448159",
"0.6448159",
"0.6448159",
"0.63643867",
"0.6051336",
"0.59752655",
"0.58362037",
"0.58298707",
"0.5798416",
"0.57792956",
"0.57526255",
"0.57526255",
"0.57526255",
"0.5735741",
"0.5735741",
"0.5735741",
"0.57033646",
"0.5694882",
"0.5679551",
"0.56758505",
"0.56631225",
"0.5653996",
"0.5643668",
"0.5643668",
"0.5643668",
"0.56341636",
"0.56341636",
"0.56341636",
"0.5625804",
"0.5625438",
"0.55964375",
"0.5591382",
"0.55228734",
"0.547153",
"0.54703695",
"0.54703695",
"0.5431233",
"0.5424472",
"0.5406104",
"0.5397629",
"0.539521",
"0.53602433",
"0.5354887",
"0.53434175",
"0.53280133",
"0.5317549",
"0.53147775",
"0.5306199",
"0.5302007",
"0.5295182",
"0.5295182",
"0.5292502",
"0.5279008",
"0.5275111",
"0.52731925",
"0.52561",
"0.5250754",
"0.5250556",
"0.5245346",
"0.52395326",
"0.5224862",
"0.52072006",
"0.518912",
"0.5188976",
"0.5178352",
"0.51753825",
"0.51686484",
"0.515925",
"0.5157194",
"0.5156845",
"0.5153011",
"0.5153011",
"0.5152968",
"0.51366425",
"0.51365334",
"0.51365334",
"0.513604",
"0.5132618",
"0.5132618",
"0.5132052",
"0.51223695",
"0.51219213",
"0.5109012",
"0.51026314",
"0.50879407",
"0.50762826",
"0.5063696",
"0.5058762",
"0.50573796",
"0.5057271",
"0.5042426",
"0.50396776",
"0.50330037",
"0.5031201"
] | 0.7182641 | 0 |
Created by chenhuan on 2018/10/14. | public interface RolePermsMapper {
//根据角色查询权限
Set<Permission> getPermsByRoleId(Integer roleId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"private void poetries() {\n\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n void init() {\n }",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n public void init() {\n }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"private void init() {\n\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n public void memoria() {\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\n public int describeContents() { return 0; }",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void init() {}",
"@Override\n protected void init() {\n }",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"private void strin() {\n\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n public void initialize() { \n }",
"public void mo4359a() {\n }",
"@Override\r\n\tpublic void init() {}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"private void kk12() {\n\n\t}",
"public void gored() {\n\t\t\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\n public void initialize() {\n \n }",
"@Override\n\tpublic void init() {\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"public void mo6081a() {\n }",
"private void init() {\n\n\n\n }",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"Petunia() {\r\n\t\t}",
"@Override\n\tprotected void initdata() {\n\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }",
"private void m50366E() {\n }"
] | [
"0.60476154",
"0.59089106",
"0.57272536",
"0.5683244",
"0.56759596",
"0.56759596",
"0.5639551",
"0.56289375",
"0.5603989",
"0.55886614",
"0.5569084",
"0.55578357",
"0.5544679",
"0.5533587",
"0.55119216",
"0.54970634",
"0.54960203",
"0.5495039",
"0.54902965",
"0.54902965",
"0.54902965",
"0.54902965",
"0.54902965",
"0.54902965",
"0.5478741",
"0.5475809",
"0.54753566",
"0.54601353",
"0.5446742",
"0.5433028",
"0.54282224",
"0.54282224",
"0.54282224",
"0.54282224",
"0.54282224",
"0.54280925",
"0.542601",
"0.5417585",
"0.5414868",
"0.5410618",
"0.5402526",
"0.5402526",
"0.5389238",
"0.53807884",
"0.53807884",
"0.5380326",
"0.53713995",
"0.53642946",
"0.53608876",
"0.53583485",
"0.53583485",
"0.53583485",
"0.5350583",
"0.5350583",
"0.5349451",
"0.5340994",
"0.53396267",
"0.53352344",
"0.53292847",
"0.532549",
"0.532549",
"0.532549",
"0.5313815",
"0.530777",
"0.530777",
"0.530777",
"0.5301606",
"0.5298676",
"0.5298044",
"0.5297011",
"0.52845114",
"0.5282113",
"0.5280913",
"0.5271692",
"0.52711684",
"0.5259028",
"0.52551895",
"0.52420634",
"0.52417904",
"0.5240618",
"0.5231464",
"0.52313554",
"0.52313554",
"0.52313554",
"0.52313554",
"0.52313554",
"0.52313554",
"0.52313554",
"0.5228293",
"0.5227848",
"0.5227848",
"0.5227848",
"0.5219525",
"0.52046067",
"0.52012825",
"0.52012825",
"0.5190044",
"0.51810443",
"0.51697445",
"0.51646644",
"0.51643896"
] | 0.0 | -1 |
Reads data from a file into arrays and processes the array | public void run()throws IOException
{
/*
* Data is read from the file using the Scanner class
* As data is read, the average of the grades is calculated
*
*/
// Declare the arrays and variables
int count; // count of students
double sum; // sum of the grades
double ave;
String [] IDs = new String [20];
Double [] grades = new Double [20];
Scanner inputFile = new Scanner (new File ("marks.txt"));
// reading the data from the file and calculating the average
int i = 0;
count = 0;
sum = 0;
while(inputFile.hasNext()) {
IDs [i] = inputFile.next();
grades [i] = inputFile.nextDouble();
i++;
}
while (count < i) {
sum+= grades[count];
count++;
}
ave = sum / count;
int i2 = 0;
while (i2 < i) {
System.out.println (IDs[i2] + "\t" + grades[i2]);
if (grades[i2] < ave) {
System.out.println("Below average");
}else{
if (grades[i2] == ave) {
System.out.println("average");
} else {
System.out.println("Above average");
}
}
i2++;
}
System.out.println ("The average grade of " + count + " students is " + ave);
inputFile.close(); // closes the file
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void readArray(String fileName, int[] newArray) throws Exception{\n\n // Create DataInputStream object to read from binary file.\n // Use fileName from demo file and read into newArray in demo file.\n DataInputStream input = new DataInputStream(new FileInputStream(fileName));\n\n // Create boolean variable to determine End Of File\n boolean EOF = false;\n\n // While it's not the End Of File\n while(!EOF){\n\n // Try Catch Statement\n try{\n\n // for Loop to go through each integer in the binary file\n for(int i = 0; i < newArray.length; i++){\n\n // read the number and place it in the newArray\n newArray[i] = input.readInt();\n }\n }catch(EOFException e){ // Catch clause to find end of file\n // Change EOF to True\n EOF = true;\n }\n\n }\n // Close the file\n input.close();\n }",
"private static void readFileIntoArray (String inputFileName) {\n Path path = Paths.get(inputFileName);\n array = new int[countLines(inputFileName)];\n try {\n Scanner sc = new Scanner(path);\n int i = 0;\n while (sc.hasNextLine()) {\n array[i] = Integer.parseInt(sc.nextLine());\n i++;\n }\n sc.close();\n //sort the array\n MergeSort.mergeSort(array);\n }\n catch(FileNotFoundException e) {\n System.out.println(\"File Error\");\n e.printStackTrace();\n }\n catch(IOException e) {\n System.out.println(\"File Error\");\n e.printStackTrace();\n }\n }",
"private void readFileToArray(FileInputStream fis, Warship[] wsArr) throws Exception {\n\t\tScanner scanner = null;\n\t\ttry {\n\t\t\tscanner = new Scanner(fis);\n\t\t\tint i = 0;\n\t\t\twhile (scanner.hasNextLine()) {\n\t\t\t\twsArr[i] = this.getWarship(scanner.nextLine());\n\t\t\t\ti++;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tthrow new Exception(e.getMessage());\n\t\t} finally {\n\t\t\tif (scanner != null) {\n\t\t\t\tscanner.close();\n\t\t\t}\n\t\t}\n\t}",
"public void readIn(String file) {\r\n\r\n\t\ttry {\r\n\r\n\t\t\t/** Initialise loop variable **/\r\n\r\n\t\t\tusedSize = 0;\r\n\r\n\t\t\t/** Set up file for reading **/\r\n\r\n\t\t\tFileReader reader = new FileReader(file);\r\n\r\n\t\t\tScanner in = new Scanner(reader);\r\n\r\n\t\t\t/** Loop round reading in data while array not full **/\r\n\r\n\t\t\twhile (in.hasNextInt() && (usedSize < size)) {\r\n\r\n\t\t\t\tA[usedSize] = in.nextInt();\r\n\r\n\t\t\t\tusedSize++;\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (IOException e) {\r\n\r\n\t\t\tSystem.out.println(\"Error processing file \" + file);\r\n\r\n\t\t}\r\n\r\n\t}",
"private static int[] readData(int size, String filename) throws FileNotFoundException {\n\t\tint[] input = new int[size];\t\n\t\tScanner scanner = new Scanner(new File(filename));\n \n int i = 0;\n while (scanner.hasNext() && i < size)\n {\n \tinput[i] = Integer.parseInt(scanner.next());\n \ti++;\n }\n scanner.close();\n\t return input;\n\t}",
"public int[] readBasicInfo() throws IOException\n\t{\n\t\t//Creates a FileReader and BufferedReader to read from the file that you pass it\n\t\tFileReader fr = new FileReader(path);\n\t\tBufferedReader textReader = new BufferedReader(fr);\n\t\t\n\t\t//Creates a new array to read the first line of data to (is an array because need to convert to int list)\n\t\tString textData;\n\t\t\n\t\t//Reads the first line of the text file into the array\n\t\ttextData = textReader.readLine();\n\t\t\n\t\tint[] data = new int[5];\n\t\t//Create a holding variable that will help to convert the String list over to an int list\n\t\tString[] tempList = new String[6];\n\t\t//List of deliminations that will be parsed out of the read strings in the string list that the function is passed\n\t\tString delims = \"[,()]+\";\n\t\t//Splits the strings from the file by the parenthesis and the commas\n\t\ttempList = textData.split(delims);\n\t\tfor (int i = 1; i < tempList.length; i++)\n\t\t\tdata[i-1] = Integer.parseInt(tempList[i]);\n\t\t\n\t\t//Returns the array containing the first line of the text file\n\t\treturn data;\n\t}",
"public void getDataFromFile(){\n\n try\n {\n File file = new File( fileName );\n FileInputStream fis = new FileInputStream( file );\n DataInputStream in = new DataInputStream(fis);\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\n String message = \"\", eachLine = \"\";\n\n while ((eachLine = br.readLine()) != null) {\n message += eachLine;\n }\n\n //System.out.println(message);\n StringTokenizer tokens = new StringTokenizer(message);\n\n //to set the coordination and demand of each customer\n size = Integer.parseInt(tokens.nextToken());\n processingTime = new double[size][size];\n\n for(int i = 0 ; i < size ; i ++ ){\n for(int j = 0 ; j < size ; j ++ ){\n processingTime[i][j] = Double.parseDouble(tokens.nextToken());\n }\n }\n } //end try\n catch( Exception e )\n {\n e.printStackTrace();\n System.out.println(e.toString());\n } // end catch\n //System.out.println( \"done\" );\n }",
"private void read(String filename) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new FileReader(filename));\n\t\t\n\t\t//a variable that will increase by one each time another element is added to the array\n\t\t//to ensure array size is correct\n\t\tint numStation = 0;\n\t\t\n\t\t//ignores first 6 lines\n\t\tfor(int i = 0; i < 3; ++i){\n\t\t\tbr.readLine();\n\t\t}\n\t\t\n\t\t//sets String equal readline\n\t\tString lineOfData = br.readLine();\n\n\t\twhile(lineOfData != null)\n\t\t{\n\t\t\tString station = new String();\n\t\t\tstation = lineOfData.substring(10,14);\n\t\t\tMesoAsciiCal asciiAverage = new MesoAsciiCal(new MesoStation(station));\n\t\t\tint asciiAvg = asciiAverage.calAverage();\t\t\n\n\t\t\tHashMap<String, Integer> asciiVal = new HashMap<String, Integer>();\n\t\t\t//put the keys and values into the hashmap\n\t\t\tasciiVal.put(station, asciiAvg);\n\t\t\t//get ascii interger avg value\n\t\t\tInteger avg = asciiVal.get(station);\n\t\t\t\n\t\t\thashmap.put(station,avg);\n\t\t\t\n\t\t\tlineOfData = br.readLine();\n\t\t\t\n\t\t}\n\t\t\n\t\tbr.close();\n\t}",
"private void readFromFile(String filename) {\n\t\ttry {\n\t\t Scanner read = new Scanner(new File(filename));\n\t\t String line;\n\t\t int counter = 0;\n\t\t String temp;\n\t\t line = read.nextLine();\n\t\t temp = line.substring(0);\n\t\t height = convertToInt(temp);\n\n\t\t line = read.nextLine();\n\t\t temp = line.substring(0);\n\n\t\t length = convertToInt(temp);\n\t\t size = height*length;\n\t\t \n\t\t squares = new Square[size][size];\n\n\t\t while(read.hasNextLine()) {\n\t\t\t\tline = read.nextLine();\n\t\t \tfor (int i = 0; i < line.length(); i++) {\n\t\t \t temp = line.substring(i, i+1);\n\n\t\t \t if (temp.equals(\".\")) {\n\t\t \t\t\tsquares[counter][i] = new FindValue(0);\n\t\t \t } \n\t\t \t else {\n\t\t\t\t\t\tsquares[counter][i] = new PreFilled(convertToInt(temp));\n\t\t\t \t\t}\n\t\t \t}\n\t\t \tcounter++;\n\t\t }\n\t\t} catch(IOException e) {\n\t\t e.printStackTrace();\n\t\t}\n }",
"public static void Reader(String fileName) throws FileNotFoundException{\n File filename=new File(fileName);\n Scanner sc=new Scanner(filename);\n row=sc.nextInt();\n col=sc.nextInt();\n arr=new float[row][col];\n\n // use US locale to be able to identify floats in the string\n sc.useLocale(Locale.US);\n \n for(int i=0;i<row;i++){\n for(int j=0; j<col; j++){\n arr[i][j]=sc.nextFloat();\n }\n }\n ArrayList<String> result=new ArrayList<String>();\n\n long tick=System.currentTimeMillis();\n DataThreadProcessor t=new DataThreadProcessor(arr,result, 1,row-1);\n long tock=System.currentTimeMillis()-tick;\n System.out.println(\"Time elapsed: \"+tock);\n ForkJoinPool.commonPool().invoke(t);\n\n for(String value: result){\n System.out.println(value);\n }\n }",
"public void readAll() throws FileNotFoundException{ \n b = new BinaryIn(this.filename);\n this.x = b.readShort();\n this.y = b.readShort();\n \n int count = (x * y) / (8 * 8);\n this.blocks = new double[count][8][8][3];\n \n Node juuri = readTree();\n readDataToBlocks(juuri);\n }",
"private int[][][] readData(int startElement, int startLine, int endElement, int endLine) throws AreaFileException {\r\n// int[][][]myData = new int[numBands][dir[AD_NUMLINES]][dir[AD_NUMELEMS]];\r\n int numLines = endLine - startLine;\r\n int numEles = endElement - startElement;\r\n// System.out.println(\"linePrefixLength: \" + linePrefixLength);\r\n int[][][] myData = new int[numBands][numLines][numEles];\r\n \r\n if (! fileok) {\r\n throw new AreaFileException(\"Error reading AreaFile data\");\r\n }\r\n\r\n short shdata;\r\n int intdata;\r\n boolean isBrit = \r\n areaDirectory.getCalibrationType().equalsIgnoreCase(\"BRIT\"); \r\n long newPos = 0;\r\n\r\n for (int i = 0; i<numLines; i++) {\r\n newPos = datLoc + linePrefixLength + lineLength * (i + startLine) + startElement * dir[AD_DATAWIDTH];\r\n position = newPos;\r\n// System.out.println(position);\r\n try {\r\n af.seek(newPos);\r\n } catch (IOException e1) {\r\n e1.printStackTrace();\r\n }\r\n \r\n for (int k=0; k<numEles; k++) {\r\n for (int j = 0; j<numBands; j++) {\r\n try {\r\n if (dir[AD_DATAWIDTH] == 1) {\r\n myData[j][i][k] = (int)af.readByte();\r\n if (myData[j][i][k] < 0 && isBrit) {\r\n myData[j][i][k] += 256;\r\n } \r\n// position = position + 1;\r\n } else \r\n\r\n if (dir[AD_DATAWIDTH] == 2) {\r\n shdata = af.readShort();\r\n if (flipwords) {\r\n myData[j][i][k] = (int) ( ((shdata >> 8) & 0xff) | \r\n ((shdata << 8) & 0xff00) );\r\n } else {\r\n myData[j][i][k] = (int) (shdata);\r\n }\r\n// position = position + 2;\r\n } else \r\n\r\n if (dir[AD_DATAWIDTH] == 4) {\r\n intdata = af.readInt();\r\n if (flipwords) {\r\n myData[j][i][k] = ( (intdata >>> 24) & 0xff) | \r\n ( (intdata >>> 8) & 0xff00) | \r\n ( (intdata & 0xff) << 24 ) | \r\n ( (intdata & 0xff00) << 8);\r\n } else {\r\n myData[j][i][k] = intdata;\r\n }\r\n// position = position + 4;\r\n } \r\n } \r\n catch (IOException e) {\r\n myData[j][i][k] = 0;\r\n }\r\n }\r\n }\r\n }\r\n return myData;\r\n }",
"public static int loadFile(File f, Data[] datas) throws IOException \n {\n Scanner scf = new Scanner(f);\n int n = 0; // number of lines read\n while (n < datas.length && scf.hasNextLine()) \n {\n String line = scf.nextLine();\n datas[n] = new Data(line);\n n++;\n }\n scf.close();\n return n;\n }",
"@SuppressWarnings(\"unchecked\")\n public ArrBag( String infileName ) throws Exception\n {\n count = 0; // i.e. logical size, actual number of elems in the array\n BufferedReader infile = new BufferedReader( new FileReader( infileName ) );\n while ( infile.ready() )\n this.add( (T) infile.readLine() );\n infile.close();\n }",
"public void readFile(String filename) throws IOException {\n BufferedReader buffer = new BufferedReader(new FileReader(filename));\n\n String line;\n int row = 0;\n isFirstLine = true;\n\n while ((line = buffer.readLine()) != null) {\n String[] vals = line.trim().split(\"\\\\s+\");\n int length = vals.length;\n \n if(isFirstLine) {\n \tfor(int col = 0; col < 2; col++) {\n \t\tif(col == 0)\n \t\t\trowSize = Integer.parseInt(vals[col]);\n \t\telse\n \t\t\tcolSize = Integer.parseInt(vals[col]);\n \t}\n \tskiMap = new int[rowSize][colSize];\n \tisFirstLine = false;\n }\n else {\n \tfor (int col = 0; col < length; col++) {\n \tskiMap[row][col] = Integer.parseInt(vals[col]);\n }\n \t row++;\n }\n }\n \n if(buffer != null)\n \tbuffer.close();\n }",
"void populateArray () {\r\n\r\n\t\ttry {\r\n\t\t\tfis = new FileInputStream (\"Bank.dat\");\r\n\t\t\tdis = new DataInputStream (fis);\r\n\t\t\t//Loop to Populate the Array.\r\n\t\t\twhile (true) {\r\n\t\t\t\tfor (int i = 0; i < 6; i++) {\r\n\t\t\t\t\trecords[rows][i] = dis.readUTF ();\r\n\t\t\t\t}\r\n\t\t\t\trows++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception ex) {\r\n\t\t\ttotal = rows;\r\n\t\t\tif (total == 0) { }\r\n\t\t\telse {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdis.close();\r\n\t\t\t\t\tfis.close();\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception exp) { }\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"void readData(String fileName){ \r\n\t\ttry{ \r\n\t\t\tScanner sc = new Scanner(new File(fileName), \"UTF-8\");\r\n\t\t\t\r\n\t\t\t// input grid dimensions and simulation duration in timesteps\r\n\t\t\tdimt = sc.nextInt();\r\n\t\t\tdimx = sc.nextInt(); \r\n\t\t\tdimy = sc.nextInt();\r\n\t\t\t//System.out.println(dimt+\" \"+dimx + \" \"+dimy);\r\n\t\t\t// initialize and load advection (wind direction and strength) and convection\r\n\t\t\tadvection = new Vector[dimt][dimx][dimy];\r\n\t\t\tconvection = new float[dimt][dimx][dimy];\r\n\t\t\tfor(int t = 0; t < dimt; t++)\r\n\t\t\t\tfor(int x = 0; x < dimx; x++)\r\n\t\t\t\t\tfor(int y = 0; y < dimy; y++){\r\n\t\t\t\t\t\tadvection[t][x][y] = new Vector();\r\n\t\t\t\t\t\tadvection[t][x][y].x = Float.parseFloat(sc.next());\r\n\t\t\t\t\t\tadvection[t][x][y].y = Float.parseFloat(sc.next());\r\n\t\t\t\t\t\tconvection[t][x][y] = Float.parseFloat(sc.next());\r\n\t\t\t\t\t\t//System.out.println(advection[t][x][y].x+\" \"+advection[t][x][y].y + \" \"+convection[t][x][y]);\r\n\t\t\t\t\t}\r\n\t\t\t\r\n\t\t\tclassification = new int[dimt][dimx][dimy];\r\n\t\t\tsc.close(); \r\n\t\t} \r\n\t\tcatch (IOException e){ \r\n\t\t\tSystem.out.println(\"Unable to open input file \"+fileName);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tcatch (InputMismatchException e){ \r\n\t\t\tSystem.out.println(\"Malformed input file \"+fileName);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private void readInFile()\n {\n try\n {\n file = new File(fileAddress);//Create new file from the given file name\n fileScanner = new Scanner(file);//Create a file scanner to scan for all the integers\n }\n catch(FileNotFoundException e) //Throws a FileNotFountException if the given file name doesn't exist\n {\n System.out.println(\"The file \" + fileAddress + \" could not be found\");\n }\n\n int i = 0;\n\n for(int j = 0; j < 1000; j++)\n {\n integerList[j] = fileScanner.nextInt();//Store the next integer from the file in to the integerList\n\n //Check to see if the index is at the end of the array and the file still has more integers,\n //then we reallocate more space for the array.\n\n /* if(i > (integerList.length - 1) && fileScanner.hasNextInt())\n resizeArray();\n i++;*/\n }\n\n /*while(fileScanner.hasNextInt())//Iterate through the file until there are no more integers\n {\n integerList[i] = fileScanner.nextInt();//Store the next integer from the file in to the integerList\n\n //Check to see if the index is at the end of the array and the file still has more integers,\n //then we reallocate more space for the array.\n\n if(i >= (integerList.length - 1) && fileScanner.hasNextInt())\n resizeArray();\n i++;\n }*/\n\n fileScanner.close();//close the scanner\n }",
"static int [] readFile() throws IOException {\n\n // Scanner used to get name of file from user\n Scanner in = new Scanner(System.in);\n System.out.println(\"Please enter the name of your file: \");\n String name = in.nextLine();\n\n File file = new File(name); \n \n // Scanner used to read file\n Scanner inputFile = new Scanner(file); \n // reads first line of file for length of array\n int x = inputFile.nextInt();\n\n //Creates array \n int [] scores = new int[x]; \n\n for (int i=0; i<x; i++) {\n int value = inputFile.nextInt();\n scores[i] = value;\n }\n inputFile.close();\n in.close();\n return scores; \n }",
"public Interface(String filename) throws FileNotFoundException \n {\n //read file for first time to find size of array\n File f = new File(filename);\n Scanner b = new Scanner(f);\n\n while(b.hasNextLine())\n {\n b.nextLine();\n arraySize++;\n }\n //create properly sized array\n array= new double[arraySize];\n //open and close the file, scanner class does not support rewinding\n b.close();\n b = new Scanner(f);\n //read input \n for(int i = 0; i < arraySize; i++)\n { \n array[i] = b.nextDouble();\n }\n //create a stats object of the proper size\n a = new Stats(arraySize);\n a.loadNums(array); //pass entire array to loadNums to allow Stats object a to have a pointer to the array\n }",
"private static Wine[] read() {\r\n\t\t// We can add files we would like to parse in the following array. We use an array list\r\n\t\t// because it allows us to add dynamically.\r\n\t\tString[] file_adr = { \"data/winemag-data_first150k.txt\", \"data/winemag-data-130k-v2.csv\" };\r\n\t\tArrayList<Wine> arr_list = new ArrayList<Wine>();\r\n\t\t\r\n\t\tint k = 0;\r\n\t\twhile (k < file_adr.length) {\r\n\t\t\tboolean flag = false;\r\n\t\t\tif (file_adr[k].endsWith(\".csv\")) {\r\n\t\t\t\tflag = true;\r\n\t\t\t}\r\n\t\t\tFile f = new File(file_adr[k]);\r\n\t\t\tScanner sc = null;\r\n\t\t\ttry {\r\n\t\t\t\tsc = new Scanner(f, \"UTF-8\");\r\n\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tsc.nextLine();\r\n\t\t\tInteger id_count = 0;\r\n\t\t\tif(!flag) {\r\n\t\t\t\twhile (sc.hasNextLine()) {\r\n\t\t\t\t\tString scanned = sc.nextLine();\r\n\t\t\t\t\t// if there is a blank line, skip it before a fail.\r\n\t\t\t\t\tif (scanned.isEmpty()) {\r\n\t\t\t\t\t\tscanned = sc.nextLine();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// use this instead of StringTokenizer because it won't skip empty fields.\r\n\t\t\t\t\tString[] st = scanned.split(\",\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t/* was put here to make sure all fields show up.\r\n\t\t\t\t\tString toString = \"\";\r\n\t\t\t\t\tfor (int i = 0; i < st.length; i++) {\r\n\t\t\t\t\t\ttoString += st[i] + \", \";\r\n\t\t\t\t\t}\r\n\t\t\t\t\t*/\r\n\t\r\n\t\t\t\t\tString country = st[1];\r\n\t\t\t\t\tString description = \"\";\r\n\t\t\t\t\t// This piece grabs our entire description! this paragraph has our delimiters so it gets split.\r\n\t\t\t\t\tint count = 0;\r\n\t\t\t\t\tfor (int i = 2; i < (st.length - 10) + 2; i++) {\r\n\t\t\t\t\t\tif (st[i].endsWith(\"\\\"\")) {\r\n\t\t\t\t\t\t\tdescription += st[i];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tdescription += st[i] + \", \";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tString designation = st[count+2];\r\n\t\t\t\t\t\r\n\t\t\t\t\t// next two fields will fail if the field is empty, so make sure we assign it something.\r\n\t\t\t\t\tInteger points = !(st[count+3].isEmpty()) ? Integer.parseInt(st[count+3]) : -1;\r\n\t\t\t\t\t\r\n\t\t\t\t\tDouble price = !(st[count+4].isEmpty()) ? Double.parseDouble(st[count+4]) : -1.0;\r\n\t\t\t\t\t\r\n\t\t\t\t\tString province = st[count+5];\r\n\t\t\t\t\tString[] region = {\r\n\t\t\t\t\t\t\tst[count+6],\r\n\t\t\t\t\t\t\tst[count+7]\r\n\t\t\t\t\t};\r\n\t\t\t\t\tString variety = st[count+8];\r\n\t\t\t\t\tString winery = st[count+9];\r\n\t\t\t\t\t//System.out.println(id_count);\r\n\t\t\t\t\t// unique ID system because some wine bottles have empty names.\r\n\t\t\t\t\tInteger unique_id = id_count++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] items = {\r\n\t\t\t\t\t\t\tcountry,\r\n\t\t\t\t\t\t\tdescription,\r\n\t\t\t\t\t\t\tdesignation,\r\n\t\t\t\t\t\t\tprovince,\r\n\t\t\t\t\t\t\twinery,\r\n\t\t\t\t\t\t\tvariety\r\n\t\t\t\t\t};\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] reviewer = {\r\n\t\t\t\t\t\t\t\"\",\r\n\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t};\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] taste = {};\r\n\t\t\t\t\t// Object constructor.\r\n\t\t\t\t\tWine curr_obj = new Wine(items, taste, region, points, unique_id, price, reviewer);\r\n\t\t\t\t\t\r\n\t\t\t\t\tarr_list.add(curr_obj);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tk++;\r\n\t\t\t\tsc.close();\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\twhile (sc.hasNextLine()) {\r\n\t\t\t\t\tString scanned = sc.nextLine();\r\n\t\t\t\t\t// if there is a blank line, skip it before a fail.\r\n\t\t\t\t\tif (scanned.isEmpty()) {\r\n\t\t\t\t\t\tscanned = sc.nextLine();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// use this instead of StringTokenizer because it won't skip empty fields.\r\n\t\t\t\t\tString[] st = scanned.split(\",\");\r\n\t\t\t\t\t//System.out.println(arr_list.size());\r\n\t\t\t\t\tid_count = arr_list.size();\r\n\t\t\t\t\t/* was put here to make sure all fields show up.\r\n\t\t\t\t\tString toString = \"\";\r\n\t\t\t\t\tfor (int i = 0; i < st.length; i++) {\r\n\t\t\t\t\t\ttoString += st[i] + \", \";\r\n\t\t\t\t\t}\r\n\t\t\t\t\t*/\r\n\t\t\t\t\t//System.out.println(st[0]);\r\n\t\t\t\t\t/*if(Integer.parseInt(st[0]) == 30350) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t*/\r\n\t\t\t\t\tString country = st[1];\r\n\t\t\t\t\tString description = \"\";\r\n\t\t\t\t\t// This piece grabs our entire description! this paragraph has our delimiters so it gets split.\r\n\t\t\t\t\tint count = 0;\r\n\t\t\t\t\tfor (int i = 2; i < (st.length - 12) + 2; i++) {\r\n\t\t\t\t\t\tif (st[i].endsWith(\"\\\"\")) {\r\n\t\t\t\t\t\t\tdescription += st[i];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tdescription += st[i] + \", \";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tString designation = st[count+2];\r\n\t\t\t\t\t\r\n\t\t\t\t\t// next two fields will fail if the field is empty, so make sure we assign it something.\r\n\t\t\t\t\tInteger points = !(st[count+3].isEmpty()) ? Integer.parseInt(st[count+3]) : -1;\r\n\t\t\t\t\t\r\n\t\t\t\t\tDouble price = !(st[count+4].isEmpty()) ? Double.parseDouble(st[count+4]) : -1.0;\r\n\t\t\t\t\t\r\n\t\t\t\t\tString province = st[count+5];\r\n\t\t\t\t\tString[] region = {\r\n\t\t\t\t\t\t\tst[count+6],\r\n\t\t\t\t\t\t\tst[count+7]\r\n\t\t\t\t\t};\r\n\t\t\t\t\tString taster_name = st[count+8];\r\n\t\t\t\t\tString taster_handle = st[count+9];\r\n\t\t\t\t\tString variety = st[count+10];\r\n\t\t\t\t\tString winery = st[count+11];\r\n\t\t\t\t\t//System.out.println(id_count);\r\n\t\t\t\t\t// unique ID system because some wine bottles have empty names.\r\n\t\t\t\t\tInteger unique_id = id_count++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] items = {\r\n\t\t\t\t\t\t\tcountry,\r\n\t\t\t\t\t\t\tdescription,\r\n\t\t\t\t\t\t\tdesignation,\r\n\t\t\t\t\t\t\tprovince,\r\n\t\t\t\t\t\t\twinery,\r\n\t\t\t\t\t\t\tvariety\r\n\t\t\t\t\t};\r\n\t\t\t\t\tString[] reviewer = {\r\n\t\t\t\t\t\t\ttaster_name,\r\n\t\t\t\t\t\t\ttaster_handle\r\n\t\t\t\t\t};\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] taste = {};\r\n\t\t\t\t\t// Object constructor.\r\n\t\t\t\t\tWine curr_obj = new Wine(items, taste, region, points, unique_id, price, reviewer);\r\n\t\t\t\t\t\r\n\t\t\t\t\tarr_list.add(curr_obj);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tk++;\r\n\t\t\t\tsc.close();\r\n\t\t\t}\r\n\t\t}\r\n\t\t// We no longer need an array list. we have our size required. Put into an array.\r\n\t\tWine[] array_wines = new Wine[arr_list.size()];\r\n\t\tarray_wines = arr_list.toArray(array_wines);\r\n\t\t\r\n\t\treturn array_wines;\r\n\t\r\n\t}",
"public static PVector[] readFromFile(String filename) {\n ArrayList<PVector> ledPositionsList= new ArrayList<PVector> ();\n //try to read data from file\n try {\n File file = new File(filename);\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()) {\n String line = scanner.nextLine();\n String[] pieces = line.split(\"\\t\");\n if (pieces.length>3) {\n ledPositionsList.add(new PVector( (Float.parseFloat(pieces[1])/4.0f), Float.parseFloat(pieces[2])/4.0f, Float.parseFloat(pieces[3])/4.0f)); //initialize Leds x,y,z,r,g,b\n }\n }\n scanner.close();\n } \n catch (FileNotFoundException ex) {\n ex.printStackTrace();\n }\n //convert to vanilla Java Array\n PVector[] ledPositions= new PVector[ledPositionsList.size()];\n for (int i=0; i<ledPositionsList.size(); i++) {\n ledPositions[i]=ledPositionsList.get(i);\n }\n return ledPositions;\n }",
"private static int[][] readInput() throws Exception {\r\n\t\t\r\n\t\t// Read the input into a array of strings.\r\n\t\tList<String> inputLines = new ArrayList<String>();\r\n\t\tString currLine = \"\";\r\n\t\ttry {\r\n\t\t\t// Read the content of the file into an array of strings.\r\n\t\t\tScanner myScanner = new Scanner(new File(myFileName));\r\n\t\t\twhile((currLine = myScanner.nextLine()) != null) {\r\n\t\t\t\t\r\n\t\t\t\tinputLines.add(currLine);\r\n\r\n\t\t\t\tif (!myScanner.hasNextLine()) {\r\n\t\t\t\t\tmyScanner.close();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Based out of the number of lines in the input file\r\n\t\t\t// create a nXn matrix.\r\n\t\t\tint max = inputLines.size();\r\n\t\t\tint[][] data = new int[max][max];\r\n\t\t\tint count = 0;\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < max; i++) {\r\n\t\t\t\tfor (int j = 0; j < max; j++) {\r\n\t\t\t\t\tdata[i][j] = INFINITY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Populate the nXn matrix.\r\n\t\t\tfor(int i = 0; i < inputLines.size(); i++) {\r\n\t\t\t\tcurrLine = inputLines.get(i);\r\n\t\t\t\tString[] splitLine = currLine.split(\"\\t\");\r\n\t\t\t\tfor(int j = 0; j < splitLine.length; j++) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tdata[count][j] = Integer.parseInt(splitLine[j]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (NumberFormatException ex) { \r\n\t\t\t\t\t\t//do nothing\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcount++;\r\n\t\t\t}\t\t\t\r\n\t\t\treturn data;\r\n\t\t\t\r\n\t\t} catch(Exception ex) {\r\n\t\t\tSystem.out.println(ex.toString());\r\n\t\t\tthrow ex;\r\n\t\t}\r\n\t}",
"private static void tokenFiles() throws IOException\r\n\t{\r\n\t\tFileReader fr = new FileReader(filename);\r\n\t\tBufferedReader br1 = new BufferedReader(fr);\r\n\t\t\r\n\t\tDouble[] salaries = new Double[10];//array for salary\r\n\t\tInteger[] id = new Integer[10];//array for id\r\n\t\tInteger[] age = new Integer[10];//array for age\r\n\t\tString[] fName = new String[10];//array for first name\r\n\t\tString[] lName = new String[10];//array for last name\r\n\t\tString[] status = new String[10];//array for status\r\n\t\tDouble[] raises = new Double[10];//array for the raised salary\r\n\t\tString s1;//string for readLine of files\r\n\t\tint i = 0;//index for loop of arrays\r\n\t\t\r\n\t\tSystem.out.println(\"\\nWith a 2% raise\\n\");\r\n\t\t//while loop to convert to proper type\r\n\t\twhile ((s1 = br1.readLine())!=null && i<10)\r\n\t\t{\r\n\t\t\tStringTokenizer st = new StringTokenizer(s1);//create new obj tokenizer\r\n\t\t\tfName[i] = st.nextToken();\r\n\t\t\tlName[i] = st.nextToken();\r\n\t\t\tid[i] = Integer.parseInt(st.nextToken());\r\n\t\t\tage[i] = Integer.parseInt(st.nextToken());\t\t\t\t\r\n\t\t\tsalaries[i] = Double.parseDouble(st.nextToken());\r\n\t\t\tstatus[i] = st.nextToken();\r\n\t\t\t\r\n\t\t\tSystem.out.println(fName[i]+\" \"+ lName[i]+\" \"+ id[i]+\r\n\t\t\t\t\t\t\" \"+ age[i]+\" \"+salaries[i]+\" \"+status[i]);\t\r\n\t\t\t\r\n\t\t\traises[i]= (salaries[i]*.02) +salaries[i];//calculate new salaries\r\n\t\t\tSystem.out.println(\"Salary with raise: \" +raises[i]);//print raise amount\r\n\t\t\ti++;\r\n\t\t}//end while loop convert to proper type\r\n\t\tbr1.close();//close this buffered reader\r\n\t}",
"String [][] importData (String path);",
"private static void readFile(ArrayList<Process> processList, int availableRes[]){\n String processInfo;\n Scanner inputFile = openFile();\n if(inputFile == null){System.exit(-1);}\n\n initializeResArray(availableRes, inputFile);\n\n int processID = 0;\n while(inputFile.hasNextLine()){\n processInfo = inputFile.nextLine();\n Process toAdd = createProcessFromInput(processInfo);\n toAdd.setPID(processID);\n processList.add(toAdd);\n processID++;\n }\n inputFile.close();\n }",
"public static int[] readMysteriousNumbers(String filename) throws Exception {\n File file = new File(filename);\n Scanner counter = new Scanner(file);\n int numLines = 0;\n while(counter.hasNextLine()){\n counter.nextLine();\n numLines++;\n }\n int[] arr = new int[numLines];\n\n\n\n Scanner reader = new Scanner(file);\n int index = 0;\n while(reader.hasNextLine()){\n arr[index] = Integer.parseInt(reader.nextLine());\n index++;\n }\n\n\n\n\n return arr;\n /*\n List<Integer> nums = new ArrayList<>();\n while (scanner.hasNextInt()) {\n nums.add(scanner.nextInt());\n }\n int[] ret = new int[nums.size()];\n for(int i = 0;i < ret.length;i++) {\n ret[i] = nums.get(i);\n }\n return ret*/\n }",
"public void processRaw(String rawfilepath){\n\t\tbyte tempbyte[] = new byte[131072];\n\t\ttempbyte = loadBytes(rawfilepath);\n\t\tfor (int i=0; i < header.length; i++){\n\t\t\theader[i]= tempbyte[i];\n\t\t}\n\t\tfor (int i = 0; i < EEPROM.length;){\n\t\t\tEEPROM[i] = tempbyte[i+1024];\n\t\t}\n\t\torganizeEEPROM();\n\t\tprocessData();\n\t\tsavefile();\n\t}",
"void readProducts(String filename) throws FileNotFoundException {\n\t\t//reads the file, computes the number of rows in the file\n\t\tScanner input=new Scanner(new File(filename));\n\t\tint numOfRow=0;\n\t\twhile(input.hasNextLine()) {\n\t\t\tnumOfRow++;\n\t\t\tinput.nextLine();\n\t\t}\n\t\t//load the products array one by one, using constructor\n\t\tproducts=new Product[numOfRow-1];\n\t\tScanner input2=new Scanner(new File(filename));\n\t\tinput2.nextLine();\n\t\tint i=0;\n\t\twhile(input2.hasNextLine()) {\n\t\t\tString row=input2.nextLine();\n\t\t\tString[] split1=row.split(((char)34+\",\"+(char)34));\n\t\t\tproducts[i++]=new Product(split1[0].substring(1, split1[0].length())\n\t\t\t\t\t, split1[1], split1[4], split1[7].substring(0, split1[7].length()-1));\n\t\t}\n\t\t//close the input\n\t\tinput.close();\n\t\tinput2.close();\n\t}",
"public void readFile(String filePath) {\n\n\t\tFile file = new File(filePath);\n\t\t\n\t\ttry {\n\t\t\tScanner sc = new Scanner(file);\n \t while(sc.hasNextLine() ) {\t\t \t \n\t\t \t String line = sc.nextLine();\t\t \t \n\t\t \t linesArray.add( line.split(\",\") );\t\n\t\t \t \n\t\t\t}\n\t\t \t\t \n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\t\n\t\n\t}",
"public static int[] buildArray() throws IOException {\r\n\r\n //Variable initializations\r\n int[] intArray = {};\r\n int sumOfElements = 0;\r\n int index = 0;\r\n \r\n //Initialization of File and Scanner objects\r\n \r\n File sumOfIntegers = new File(fileInput);\r\n Scanner elementScanner = new Scanner(sumOfIntegers);\r\n\r\n //Loop that increases the num of array elements by 1 every time\r\n //it acknowledges an integer value within the file and subtracts\r\n //1 from the array elements when the sentinel value is reached.\r\n while (elementScanner.hasNextInt()) {\r\n sumOfElements++;\r\n \r\n \r\n //Assign next int scanner method to x variable\r\n //Used to process if boolean condition\r\n int x = elementScanner.nextInt();\r\n\r\n //When -999 sentinel value is reached reduce num of array elements\r\n //by 1 since we do not want it included\r\n if (x == -999) {\r\n sumOfElements = sumOfElements - 1;\r\n intArray = new int[sumOfElements];\r\n }\r\n //Assign sumOfElements as num of array elements\r\n intArray = new int[sumOfElements]; \r\n\r\n }\r\n\r\n //new scanner to reset abstract cursor of file\r\n elementScanner = new Scanner(sumOfIntegers);\r\n for (index = 0; index < sumOfElements; index++) {\r\n int x = elementScanner.nextInt();\r\n\r\n if (x != -999) {\r\n intArray[index] = x;\r\n }\r\n\r\n }\r\n\r\n //Closes the file/scanner\r\n elementScanner.close();\r\n\r\n return intArray;\r\n }",
"public void processFiles(){\n\t\tfor(String fileName : files) {\n\t\t\ttry {\n\t\t\t\tloadDataFromFile(fileName);\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"Can't open file: \" + fileName);\n\t\t\t\tSystem.out.println();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tprintInOrder();\n\t\t\tstudents.clear();\n\t\t}\n\t}",
"private Point[] readTestFile(String filename) {\n In in = new In(filename);\n int N = in.readInt();\n Point[] points = new Point[N];\n for (int i = 0; i < N; i++) {\n int x = in.readInt();\n int y = in.readInt();\n points[i] = new Point(x, y);\n }\n return points;\n }",
"static void parseData(String filename) {\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(filename))) {\n\t\t \n\t\t\tString line;\n\t\t String[] tokens;\n\t\t ArrayList<Double> temp;\n\t\t \n\t\t while ((line = br.readLine()) != null) {\n\t\t \ttemp = new ArrayList<Double>();\n\t\t \ttokens = line.split(\",\");\n\t\t \tfor(String s : tokens) {\n\t\t \t\ttemp.add(Double.parseDouble(s));\n\t\t \t}\n\t\t \tData.add(new Vector(temp));\n\t\t }\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public int[] getData(String filename) throws IOException\n {\n\tScanner scanner = new Scanner(new File(filename)) ;\n\ttry {\n\t readData(scanner) ;\n\t return data ;\n\t}\n\tfinally {\n\t System.out.println(\"Finally closing the scanner.\") ;\n\t scanner.close() ;\n\t}\n }",
"public abstract void read_float_array(float[] value, int offset, int\nlength);",
"public static void processDataFile() {\n final String INPUT_FILENAME = \"input/assn6input1.txt\";\n File inputFile = null;\n Scanner inputScanner = null;\n System.out.println(\"Reading data from file: \" + INPUT_FILENAME);\n System.out.println();\n try {\n inputFile = new File(INPUT_FILENAME);\n inputScanner = new Scanner(inputFile);\n } catch(FileNotFoundException e) {\n System.err.println(\"Error opening file \" + INPUT_FILENAME);\n }\n while(inputScanner.hasNext()) {\n String[] dataLine = inputScanner.nextLine().split(\",\");\n // Is the first token \"REALTOR\"?\n if(dataLine[0].toUpperCase().equals(\"REALTOR\")) {\n if(dataLine[1].toUpperCase().equals(\"ADD\")) {\n addRealtor(dataLine);\n }\n else if(dataLine[1].toUpperCase().equals(\"DEL\")) {\n //deleteRealtor(dataLine[2]);\n }\n else {\n \n }\n }\n // Is the first token \"PROPERTY\"?\n else if(dataLine[0].toUpperCase().equals(\"PROPERTY\")) {\n if(dataLine[1].toUpperCase().equals(\"ADD\")) {\n addProperty(dataLine);\n }\n else if(dataLine[1].toUpperCase().equals(\"DEL\")) {\n //deleteProperty(Integer.parseInt(dataLine[2]));\n }\n else {\n \n }\n } else {\n // not realtor or property in the first token\n System.out.println(\"\\tNeither realtor, nor property in first\"\n + \" token\");\n }\n }\n inputScanner.close();\n }",
"private void readDataFile(int filetype, String filename) {\r\n\t\tint nfields=7; //number of data fields\r\n\t\tint i = 0; //temp elements counter\r\n\t\tint num_elements; //number of items (lines)\r\n\t\tString dataline;\r\n\t\tString[] elementdata;\r\n\t\ttry {\r\n\t\t\tFile filesource = new File(filename);\r\n\t\t\t//open data file\r\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(filesource.toURI().toURL().openStream()));\r\n\t\t\t//count elements\r\n\t\t\twhile(null != (dataline = in.readLine())) {\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\tin.close();\r\n\t\t\tnum_elements = i;\r\n\t\t\t//num_elements = i+1;\r\n\t\t\t//set arrays size by case\r\n\t\t\tif (filetype == 0) {\r\n\t\t\t\tsetMultipliersArraySize(num_elements);\r\n\t\t\t\tnfields = 3;\r\n\t\t\t}\r\n\t\t\telse if (filetype == 1) {\r\n\t\t\t\tsetCategoriesArraySize(num_elements);\r\n\t\t\t\tnfields = 1;\r\n\t\t\t}\r\n\t\t\telse if (filetype == 2) {\r\n\t\t\t\tsetUnitsArraySize(num_elements);\r\n\t\t\t\tnfields = 7;\r\n\t\t\t}\r\n\t\t\telse if (filetype == 3) {\r\n\t\t\t\tp_label = new String[i];\r\n\t\t\t\tnfields = 1;\r\n\t\t\t}\r\n\r\n\t\t\ti = 0;\r\n\t\t\tin = new BufferedReader(new InputStreamReader(filesource.toURI().toURL().openStream()));\r\n\t\t\t//read lines (each line is one menu element)\r\n\t\t\twhile(null != (dataline = in.readLine())) {\r\n\t\t\t\t//get element data array\r\n\t\t\t\telementdata = StringUtil.splitData(dataline, '\\t', nfields);\r\n\t\t\t\t//assign data\r\n\t\t\t\tif (filetype == 0) { //multipliers file\r\n\t\t\t\t\tp_multiplier_name[i] = getEncodedString(getDefaultValue(elementdata[0], \"\"), p_page_encoding, p_encoding);\r\n\t\t\t\t\tp_multiplier_description[i] = getEncodedString(getDefaultValue(elementdata[1], \"\"), p_page_encoding, p_encoding);\r\n\t\t\t\t\tp_multiplier_value[i] = parseNumber(getDefaultValue(elementdata[2], \"1\"));\r\n\t\t\t\t}\r\n\t\t\t\telse if (filetype == 1) { //category file\r\n\t\t\t\t\tp_category_name[i] = getEncodedString(getDefaultValue(elementdata[0], \"\"), p_page_encoding, p_encoding);\r\n\t\t\t\t}\r\n\t\t\t\telse if (filetype == 2) { //units file\r\n\t\t\t\t\tp_unit_category_id[i] = new Integer(elementdata[0]);\r\n\t\t\t\t\tp_unit_symbol[i] = getEncodedString(getDefaultValue(elementdata[1], \"\"), p_page_encoding, p_encoding);\r\n\t\t\t\t\tp_unit_name[i] = getEncodedString(getDefaultValue(elementdata[2], \"\"), p_page_encoding, p_encoding);\r\n\t\t\t\t\tp_unit_scale[i] = parseNumber(getDefaultValue(elementdata[3], \"1\"));\r\n\t\t\t\t\tp_unit_offset[i] = parseNumber(getDefaultValue(elementdata[4], \"0\"));\r\n\t\t\t\t\tp_unit_power[i] = parseNumber(getDefaultValue(elementdata[5], \"1\"));\r\n\t\t\t\t\tp_unit_description[i] = getEncodedString(getDefaultValue(elementdata[6], \"\"), p_page_encoding, p_encoding);\r\n\t\t\t\t}\r\n\t\t\t\telse if (filetype == 3) { //labels file\r\n\t\t\t\t\tp_label[i] = getEncodedString(getDefaultValue(elementdata[0], \"\"), p_page_encoding, p_encoding);\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\tin.close();\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public static void createArrays() {\n\t\tinitArrays();\n\t\tcreateNodeTable();\n\t\tcreateEdgeTables();\n\t\t// Helper.Time(\"Read File\");\n\t\tcreateOffsetTable();\n\t}",
"public static Integer[] readInputArrayFromFile(Integer[] array, String fileName) {\n\n\t\tList<Integer> ints = readInputArrayFromFile(fileName);\n\n\t\tarray = new Integer[ints.size()];\n\t\tfor (int i = 0; i < ints.size(); i++) {\n\t\t\tarray[i] = ints.get(i);\n\t\t}\n\t\treturn array;\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic void readData(String fileName) {\n\t\ttry {\n\t\t\tFile file = new File(fileName);;\n\t\t\tif( !file.isFile() ) {\n\t\t\t\tSystem.out.println(\"ERRO\");\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t\tBufferedReader buffer = new BufferedReader( new FileReader(file) );\n\t\t\t/* Reconhece o valor do numero de vertices */\n\t\t\tString line = buffer.readLine();\n\t\t\tStringTokenizer token = new StringTokenizer(line, \" \");\n\t\t\tthis.num_nodes = Integer.parseInt( token.nextToken() );\n\t\t\tthis.nodesWeigths = new int[this.num_nodes];\n\t\t\t\n\t\t\t/* Le valores dos pesos dos vertices */\n\t\t\tfor(int i=0; i<this.num_nodes; i++) { // Percorre todas a linhas onde seta valorado os pesos dos vertices\n\t\t\t\tif( (line = buffer.readLine()) == null ) // Verifica se existe a linha a ser lida\n\t\t\t\t\tbreak;\n\t\t\t\ttoken = new StringTokenizer(line, \" \");\n\t\t\t\tthis.nodesWeigths[i] = Integer.parseInt( token.nextToken() ); // Adiciona o peso de vertice a posicao do arranjo correspondente ao vertice\n\t\t\t}\n\t\t\t\n\t\t\t/* Mapeia em um array de lista todas as arestas */\n\t\t\tthis.edges = new LinkedList[this.num_nodes];\n\t\t\tint cont = 0; // Contador com o total de arestas identificadas\n\t\t\t\n\t\t\t/* Percorre todas as linhas */\n\t\t\tfor(int row=0, col; row<this.num_nodes; row++) {\n\t\t\t\tif( (line = buffer.readLine()) == null ) // Verifica se ha a nova linha no arquivo\n\t\t\t\t\tbreak;\n\t\t\t\tthis.edges[row] = new LinkedList<Integer>(); // Aloca nova lista no arranjo, representado a linha o novo vertice mapeado\n\t\t\t\tcol = 0;\n\t\t\t\ttoken = new StringTokenizer(line, \" \"); // Divide a linha pelos espacos em branco\n\t\t\t\t\n\t\t\t\t/* Percorre todas as colunas */\n\t\t\t\twhile( token.hasMoreTokens() ) { // Enquanto ouver mais colunas na linha\n\t\t\t\t\tif( token.nextToken().equals(\"1\") ) { // Na matriz binaria, onde possui 1, e onde ha arestas\n//\t\t\t\t\t\tif( row != col ) { // Ignora-se os lacos\n\t\t\t\t\t\t\t//System.out.println(cont + \" = \" + (row+1) + \" - \" + (col+1) );\n\t\t\t\t\t\t\tthis.edges[row].add(col); // Adiciona no arranjo de listas a aresta\n\t\t\t\t\t\t\tcont++; // Incrementa-se o total de arestas encontradas\n//\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcol++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tthis.num_edges = cont; // Atribui o total de arestas encontradas\n\n\t\t\tif(true) {\n//\t\t\t\tfor(int i=0; i<this.num_nodes; i++) {\n//\t\t\t\t\tSystem.out.print(this.nodesWeigths[i] + \"\\n\");\n//\t\t\t\t}\n\t\t\t\tSystem.out.print(\"num edges = \" + cont + \"\\n\");\n\t\t\t}\n\t\t\t\n\t\t\tbuffer.close(); // Fecha o buffer\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void readData() throws FileNotFoundException {\n this.plane = readPlaneDimensions();\n this.groupBookingsList = readBookingsList();\n }",
"public static void processData() {\n\t\tString dirName = \"C:\\\\research_data\\\\mouse_human\\\\homo_b47_data\\\\\";\r\n\t//\tString GNF1H_fName = \"GNF1H_genes_chopped\";\r\n\t//\tString GNF1M_fName = \"GNF1M_genes_chopped\";\r\n\t\tString GNF1H_fName = \"GNF1H\";\r\n\t\tString GNF1M_fName = \"GNF1M\";\r\n\t\tString mergedValues_fName = \"GNF1_merged_expression.txt\";\r\n\t\tString mergedPMA_fName = \"GNF1_merged_PMA.txt\";\r\n\t\tString discretizedMI_fName = \"GNF1_discretized_MI.txt\";\r\n\t\tString discretizedLevels_fName = \"GNF1_discretized_levels.txt\";\r\n\t\tString discretizedData_fName = \"GNF1_discretized_data.txt\";\r\n\t\t\r\n\t\tboolean useMotifs = false;\r\n\t\tMicroArrayData humanMotifs = null;\r\n\t\tMicroArrayData mouseMotifs = null;\r\n\t\t\r\n\t\tMicroArrayData GNF1H_value = new MicroArrayData();\r\n\t\tMicroArrayData GNF1H_PMA = new MicroArrayData();\r\n\t\tGNF1H_PMA.setDiscrete();\r\n\t\tMicroArrayData GNF1M_value = new MicroArrayData();\r\n\t\tMicroArrayData GNF1M_PMA = new MicroArrayData();\r\n\t\tGNF1M_PMA.setDiscrete();\r\n\t\t\r\n\t\ttry {\r\n\t\t/*\tGNF1H_value.readFile(dirName+GNF1H_fName+\".gcrma.txt\");\r\n\t\t\tGNF1H_PMA.readFile(dirName+GNF1H_fName+\".pma\");\r\n\t\t\tGNF1M_value.readFile(dirName+GNF1M_fName+\".gcrma.txt\");\r\n\t\t\tGNF1M_PMA.readFile(dirName+GNF1M_fName+\".pma\"); */\r\n\t\t/*\tGNF1H_value.readFile(dirName+GNF1H_fName+\".gcrma.txt.homob44\");\r\n\t\t\tGNF1H_PMA.readFile(dirName+GNF1H_fName+\".pma.txt.homob44\");\r\n\t\t\tGNF1M_value.readFile(dirName+GNF1M_fName+\".gcrma.txt.homob44\");\r\n\t\t\tGNF1M_PMA.readFile(dirName+GNF1M_fName+\".pma.txt.homob44\"); */\r\n\t\t\tGNF1H_value.readFile(dirName+GNF1H_fName+\".gcrma.snco.txt\");\r\n\t\t\tGNF1H_PMA.readFile(dirName+GNF1H_fName+\".pma.sn.txt\");\r\n\t\t\tGNF1M_value.readFile(dirName+GNF1M_fName+\".gcrma.snco.txt\");\r\n\t\t\tGNF1M_PMA.readFile(dirName+GNF1M_fName+\".pma.sn.txt\");\r\n\t\t} catch(IOException e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\t\r\n\t\tif (useMotifs) {\r\n\t\t\thumanMotifs = new MicroArrayData();\r\n\t\t\tmouseMotifs = new MicroArrayData();\r\n\t\t\tloadMotifs(humanMotifs,GNF1H_value.geneNames,mouseMotifs,GNF1M_value.geneNames);\r\n\t\t}\r\n\t\t\r\n\t\t// combine replicates in PMA values\r\n\t\tint[][] H_PMA = new int[GNF1H_PMA.numRows][GNF1H_PMA.numCols/2];\r\n\t\tint[][] M_PMA = new int[GNF1M_PMA.numRows][GNF1M_PMA.numCols/2];\r\n\t\t\r\n\t\tint i = 0;\r\n\t\tint j = 0;\r\n\t\tint k = 0;\r\n\t\tint v = 0;\r\n\t\tk = 0;\r\n\t\tj = 0;\r\n\t\twhile (j<GNF1H_PMA.numCols-1) {\r\n\t\t\tfor (i=0;i<H_PMA.length;i++) {\r\n\t\t\t\tv = 0;\r\n\t\t\t//\tif (GNF1H_PMA.dvalues[i][j] > 0 & GNF1H_PMA.dvalues[i][j+1] > 0) {\r\n\t\t\t\tif (GNF1H_PMA.dvalues[i][j] > 0 | GNF1H_PMA.dvalues[i][j+1] > 0) {\r\n\t\t\t\t\tv = 1;\r\n\t\t\t\t}\r\n\t\t\t\tH_PMA[i][k] = v;\r\n\t\t\t}\r\n\t\t\tk++;\r\n\t\t\tj = j + 2;\r\n\t\t}\r\n\t\t\r\n\t\tj = 0;\r\n\t\tk = 0;\r\n\t\twhile (j<GNF1M_PMA.numCols-1) {\r\n\t\t\tfor (i=0;i<M_PMA.length;i++) {\r\n\t\t\t\tv = 0;\r\n\t\t\t//\tif (GNF1M_PMA.dvalues[i][j] > 0 & GNF1M_PMA.dvalues[i][j+1] > 0) {\r\n\t\t\t\tif (GNF1M_PMA.dvalues[i][j] > 0 | GNF1M_PMA.dvalues[i][j+1] > 0) {\r\n\t\t\t\t\tv = 1;\r\n\t\t\t\t}\r\n\t\t\t\tM_PMA[i][k] = v;\r\n\t\t\t}\r\n\t\t\tk++;\r\n\t\t\tj = j + 2;\r\n\t\t}\r\n\t\t\r\n\t\tint numMatched = 31;\r\n\t\t\r\n\t/*\tGNF1H_value.numCols = numMatched;\r\n\t\tGNF1M_value.numCols = numMatched; */\r\n\t\t\r\n\t\tint[][] matchPairs = new int[numMatched][2];\r\n\t\tfor(i=0;i<numMatched;i++) {\r\n\t\t\tmatchPairs[i][0] = i;\r\n\t\t\tmatchPairs[i][1] = i + GNF1H_value.numCols;\r\n\t\t}\r\n\t\t\r\n\t//\tDiscretizeAffyData H_discretizer = new DiscretizeAffyData(GNF1H_value.values,H_PMA,0);\r\n\t//\tH_discretizer.adjustIntensities();\r\n\t\ttransformRelativeAbundance(GNF1H_value.values,H_PMA,GNF1H_value.numCols);\r\n\t\t\r\n\t//\tDiscretizeAffyData M_discretizer = new DiscretizeAffyData(GNF1M_value.values,M_PMA,0);\r\n\t//\tM_discretizer.adjustIntensities();\r\n\t\ttransformRelativeAbundance(GNF1M_value.values,M_PMA,GNF1M_value.numCols);\r\n\t\t\r\n\t\tdouble[][] mergedExpression = new double[GNF1H_value.numRows][GNF1H_value.numCols+GNF1M_value.numCols];\r\n\t\tint[][] mergedPMA = new int[GNF1H_value.numRows][GNF1H_value.numCols+GNF1M_value.numCols];\r\n\t\tint[] species = null;\r\n\t\tif (!useMotifs) {\r\n\t\t\tspecies = new int[GNF1H_value.numCols+GNF1M_value.numCols];\r\n\t\t} else {\r\n\t\t\tspecies = new int[GNF1H_value.numCols+GNF1M_value.numCols + humanMotifs.numCols + mouseMotifs.numCols];\r\n\t\t}\r\n\t\t\r\n\t\tfor (i=0;i<GNF1H_value.numRows;i++) {\r\n\t\t\tSystem.arraycopy(GNF1H_value.values[i],0,mergedExpression[i],0,GNF1H_value.numCols);\r\n\t\t\tSystem.arraycopy(H_PMA[i],0,mergedPMA[i],0,GNF1H_value.numCols);\t\r\n\t\t}\r\n\t\tfor (i=0;i<GNF1M_value.numRows;i++) {\r\n\t\t\tSystem.arraycopy(GNF1M_value.values[i],0,mergedExpression[i],GNF1H_value.numCols,GNF1M_value.numCols);\r\n\t\t\tSystem.arraycopy(M_PMA[i],0,mergedPMA[i],GNF1H_value.numCols,GNF1M_value.numCols);\r\n\t\t}\r\n\t\t\r\n\t\t// concatenate experiment and gene names\r\n\t\tfor (i=0;i<GNF1H_value.numCols;i++) {\r\n\t\t\tGNF1H_value.experimentNames[i] = \"h_\" + GNF1H_value.experimentNames[i];\r\n\t\t\tspecies[i] = 1;\r\n\t\t}\r\n\t\tfor (i=0;i<GNF1M_value.numCols;i++) {\r\n\t\t\tGNF1M_value.experimentNames[i] = \"m_\" + GNF1M_value.experimentNames[i];\r\n\t\t\tspecies[i+GNF1H_value.numCols] = 2;\r\n\t\t}\r\n\t\t\r\n\t\tString[] mergedExperimentNames = null;\r\n\t\tif (!useMotifs) {\r\n\t\t\tmergedExperimentNames = new String[GNF1H_value.numCols+GNF1M_value.numCols];\r\n\t\t} else {\r\n\t\t\tmergedExperimentNames = new String[GNF1H_value.numCols+GNF1M_value.numCols + humanMotifs.numCols + mouseMotifs.numCols];\r\n\t\t}\r\n\t\tSystem.arraycopy(GNF1H_value.experimentNames,0,mergedExperimentNames,0,GNF1H_value.numCols);\r\n\t\tSystem.arraycopy(GNF1M_value.experimentNames,0,mergedExperimentNames,GNF1H_value.numCols,GNF1M_value.numCols);\r\n\t\tif (useMotifs) {\r\n\t\t\tSystem.arraycopy(humanMotifs.experimentNames,0,mergedExperimentNames,GNF1H_value.numCols+GNF1M_value.numCols,humanMotifs.numCols);\r\n\t\t\tSystem.arraycopy(mouseMotifs.experimentNames,0,mergedExperimentNames,GNF1H_value.numCols+GNF1M_value.numCols+humanMotifs.numCols,mouseMotifs.numCols);\r\n\t\t\tfor (i=0;i<humanMotifs.numCols;i++) {\r\n\t\t\t\tspecies[i + GNF1H_value.numCols+GNF1M_value.numCols] = 3;\r\n\t\t\t}\r\n\t\t\tfor (i=0;i<mouseMotifs.numCols;i++) {\r\n\t\t\t\tspecies[i + GNF1H_value.numCols+GNF1M_value.numCols + humanMotifs.numCols] = 4;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tString[] mergedGeneNames = new String[GNF1H_value.numRows];\r\n\t\tfor (i=0;i<GNF1M_value.numRows;i++) {\r\n\t\t\tmergedGeneNames[i] = GNF1H_value.geneNames[i] + \"|\" + GNF1M_value.geneNames[i];\r\n\t\t}\r\n\t\t\r\n\t\tint[] filterList = new int[GNF1M_value.numRows];\r\n\t\tint numFiltered = 0;\r\n\t\tdouble maxExpressedPercent = 1.25;\r\n\t\tint maxExpressed_H = (int) Math.floor(maxExpressedPercent*((double) GNF1H_value.numCols));\r\n\t\tint maxExpressed_M = (int) Math.floor(maxExpressedPercent*((double) GNF1M_value.numCols));\r\n\t\tint numExpressed_H = 0;\r\n\t\tint numExpressed_M = 0;\r\n\t\t\r\n\t\tfor (i=0;i<GNF1H_value.numRows;i++) {\r\n\t\t\tnumExpressed_H = 0;\r\n\t\t\tfor (j=0;j<GNF1H_value.numCols;j++) {\r\n\t\t\t\tif (GNF1H_PMA.dvalues[i][j] > 0) {\r\n\t\t\t//\tif (!Double.isNaN(GNF1H_value.values[i][j])) {\r\n\t\t\t//\tif (GNF1H_value.values[i][j] > 1.5) {\r\n\t\t\t\t\tnumExpressed_H++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tnumExpressed_M = 0;\r\n\t\t\tfor (j=0;j<GNF1M_value.numCols;j++) {\r\n\t\t\t\tif (GNF1M_PMA.dvalues[i][j] > 0) {\r\n\t\t\t//\tif (GNF1H_value.values[i][j] > 1.5) {\r\n\t\t\t//\tif (!Double.isNaN(GNF1M_value.values[i][j])) {\r\n\t\t\t\t\tnumExpressed_M++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (numExpressed_M >= maxExpressed_M | numExpressed_H >= maxExpressed_H) {\r\n\t\t\t\tfilterList[i] = 1;\r\n\t\t\t\tnumFiltered++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tGNF1H_value = null;\r\n\t\tGNF1H_PMA = null;\r\n\t\tGNF1M_value = null;\r\n\t\tGNF1M_PMA = null;\r\n\t\t\r\n\t\tdouble[][] mergedExpression2 = null;\r\n\t\tif (numFiltered > 0) {\r\n\t\t\tk = 0;\r\n\t\t\tint[][] mergedPMA2 = new int[mergedPMA.length-numFiltered][mergedPMA[0].length];\r\n\t\t\tif (!useMotifs) {\r\n\t\t\t\tmergedExpression2 = new double[mergedExpression.length-numFiltered][mergedExpression[0].length];\r\n\t\t\t} else {\r\n\t\t\t\tmergedExpression2 = new double[mergedExpression.length-numFiltered][mergedExpression[0].length + humanMotifs.numCols + mouseMotifs.numCols];\r\n\t\t\t}\r\n\t\t\tString[] mergedGeneNames2 = new String[mergedGeneNames.length-numFiltered];\r\n\t\t\tfor (i=0;i<filterList.length;i++) {\r\n\t\t\t\tif (filterList[i] == 0) {\r\n\t\t\t\t\tmergedPMA2[k] = mergedPMA[i];\r\n\t\t\t\t\tif (!useMotifs) {\r\n\t\t\t\t\t\tmergedExpression2[k] = mergedExpression[i];\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tSystem.arraycopy(mergedExpression[i],0,mergedExpression2[k],0,mergedExpression[i].length);\r\n\t\t\t\t\t\tSystem.arraycopy(humanMotifs.values[i],0,mergedExpression2[k],mergedExpression[i].length,humanMotifs.numCols);\r\n\t\t\t\t\t\tSystem.arraycopy(mouseMotifs.values[i],0,mergedExpression2[k],humanMotifs.numCols+mergedExpression[i].length,mouseMotifs.numCols);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tmergedGeneNames2[k] = mergedGeneNames[i];\r\n\t\t\t\t\tk++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tmergedPMA = mergedPMA2;\r\n\t\t\tmergedExpression = mergedExpression2;\r\n\t\t\tmergedGeneNames = mergedGeneNames2;\r\n\t\t} else {\r\n\t\t\tif (useMotifs) {\r\n\t\t\t\tmergedExpression2 = new double[mergedExpression.length][mergedExpression[0].length + humanMotifs.numCols + mouseMotifs.numCols];\r\n\t\t\t\tfor (i=0;i<mergedExpression.length;i++) {\r\n\t\t\t\t\tSystem.arraycopy(mergedExpression[i],0,mergedExpression2[i],0,mergedExpression[i].length);\r\n\t\t\t\t\tSystem.arraycopy(humanMotifs.values[i],0,mergedExpression2[i],mergedExpression[i].length,humanMotifs.numCols);\r\n\t\t\t\t\tSystem.arraycopy(mouseMotifs.values[i],0,mergedExpression2[i],humanMotifs.numCols+mergedExpression[i].length,mouseMotifs.numCols);\r\n\t\t\t\t}\r\n\t\t\t\tmergedExpression = mergedExpression2;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tDiscretizeAffyPairedData discretizer = new DiscretizeAffyPairedData(mergedExpression,mergedPMA,matchPairs,20);\r\n\t\tMicroArrayData mergedData = new MicroArrayData();\r\n\t\tmergedData.values = discretizer.expression;\r\n\t\tmergedData.geneNames = mergedGeneNames;\r\n\t\tmergedData.experimentNames = mergedExperimentNames;\r\n\t\tmergedData.experimentCode = species;\r\n\t\tmergedData.numCols = discretizer.numExperiments;\r\n\t\tmergedData.numRows = discretizer.numGenes;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tmergedData.writeFile(dirName+mergedValues_fName);\r\n\t\t\tdiscretizer.discretizeDownTree(dirName+discretizedMI_fName);\r\n\t\t\tdiscretizer.mergeDownLevels(3,dirName+discretizedLevels_fName);\r\n\t\t\tdiscretizer.transposeDExpression();\r\n\t\t\tmergedData.setDiscrete();\r\n\t\t\tmergedData.values = null;\r\n\t\t\tmergedData.dvalues = discretizer.dExpression;\r\n\t\t\tmergedData.writeFile(dirName+discretizedData_fName);\r\n\t\r\n\t\t\tmergedData.dvalues = mergedPMA;\r\n\t\t\tmergedData.numCols = mergedPMA[0].length;\r\n\t\t\tmergedData.writeFile(dirName+mergedPMA_fName);\r\n\t\t} catch(IOException e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\t\r\n\t/*\tMicroArrayData mergedData = new MicroArrayData();\r\n\t\tmergedData.values = mergedExpression;\r\n\t\tmergedData.geneNames = mergedGeneNames;\r\n\t\tmergedData.experimentNames = mergedExperimentNames;\r\n\t\tmergedData.experimentCode = species;\r\n\t\tmergedData.numCols = mergedExpression[0].length;\r\n\t\tmergedData.numRows = mergedExpression.length;\r\n\t\ttry {\r\n\t\t\tmergedData.writeFile(dirName+mergedValues_fName);\r\n\t\t\tmergedData.setDiscrete();\r\n\t\t\tmergedData.values = null;\r\n\t\t//\tmergedData.dvalues = simpleDiscretization(mergedExpression,mergedPMA);\r\n\t\t\tmergedData.dvalues = simpleDiscretization2(mergedExpression,species);\r\n\t\t\tmergedData.writeFile(dirName+discretizedData_fName);\r\n\t\r\n\t\t\tmergedData.dvalues = mergedPMA;\r\n\t\t\tmergedData.numCols = mergedPMA[0].length;\r\n\t\t\tmergedData.writeFile(dirName+mergedPMA_fName);\r\n\t\t} catch(IOException e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t} */\r\n\t\t\r\n\t}",
"private static City[] fileInterpreter(Scanner file,int numberOfLines){\n City[] cities = new City [numberOfLines];\n for(int i = 0 ; file.hasNextLine(); i++){\n String line = file.nextLine();\n Scanner string = new Scanner(line); //String Scanner to consume the line into city and country and rainfall...\n String cityName = string.next();\n String countryName = string.next();\n double[] data = extractRainfallInformation(line.split(\"[ \\t]+[ \\t]*\")); //to create the array of monthly rainfall\n cities[i] = new City(cityName , countryName , data);\n string.close();\n }\n file.close();\n return cities;\n }",
"abstract public Entity[] getWorkDataFromFile(String filename)\n \tthrows IOException, InvalidStatusException;",
"public static void readFile() {\n\t\tbufferedReader = null;\n\t\ttry {\n\t\t\tFileReader fileReader = new FileReader(\"/home/bridgeit/Desktop/number.txt\");\n\t\t\tbufferedReader = new BufferedReader(fileReader);\n\n\t\t\tString line;\n\t\t\twhile ((line = bufferedReader.readLine()) != null) {\n\t\t\t\tString[] strings = line.split(\" \");\n\t\t\t\tfor (String integers : strings) {\n\t\t\t\t\thl.add(Integer.parseInt(integers));\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File Not Found...\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\tbufferedReader.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public static ArrayList<MonitoredData> readFileData(){\n ArrayList<MonitoredData> data = new ArrayList<>();\n List<String> lines = new ArrayList<>();\n try (Stream<String> stream = Files.lines(Paths.get(\"Activities.txt\"))) {\n lines = stream\n .flatMap((line->Stream.of(line.split(\"\\t\\t\"))))\n .collect(Collectors.toList());\n for(int i=0; i<lines.size()-2; i+=3){\n MonitoredData md = new MonitoredData(lines.get(i), lines.get(i+1), lines.get(i+2));\n data.add(md);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n //data.forEach(System.out::println);\n return data;\n }",
"private static int[][] processInput (String info) throws FileNotFoundException, IOException\n {\n BufferedReader input = new BufferedReader(new FileReader(info));\n ArrayList<Integer> pointList = new ArrayList<Integer>();\n String point;\n while ((point = input.readLine()) != null)\n {\n StringTokenizer st = new StringTokenizer(point);\n pointList.add(Integer.parseInt(st.nextToken()));\n pointList.add(Integer.parseInt(st.nextToken()));\n }\n int[][] pointSet = new int[2][pointList.size()/2];\n int j = 0;\n for (int i = 0; i<=pointList.size()-1; i=i+2)\n {\n pointSet[0][j] = pointList.get(i);\n pointSet[1][j] = pointList.get(i+1);\n j++;\n }\n return pointSet;\n }",
"public void readFile() {\r\n\t\tBufferedReader br = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tString currentLine;\r\n\r\n\t\t\tbr = new BufferedReader(new FileReader(fileName));\r\n\r\n\t\t\twhile ((currentLine = br.readLine()) != null) {\r\n\r\n\t\t\t\tif (!currentLine.equals(\"\")) {\r\n\t\t\t\t\tString[] paragraphs = currentLine.split(\"\\\\n\\\\n\");\r\n\r\n\t\t\t\t\tfor (String paragraphEntry : paragraphs) {\r\n\t\t\t\t\t\t//process(paragraphEntry);\r\n\t\t\t\t\t\t//System.out.println(\"Para:\"+paragraphEntry);\r\n\t\t\t\t\t\tParagraph paragraph = new Paragraph();\r\n\t\t\t\t\t\tparagraph.process(paragraphEntry);\r\n\t\t\t\t\t\tthis.paragraphs.add(paragraph);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif (br != null)br.close();\r\n\t\t\t} catch (IOException ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"private void readFromFile() {\n\t\tPath filePath = Paths.get(inputFile);\n\n\t\ttry (BufferedReader reader = Files.newBufferedReader(filePath,\n\t\t\t\tCharset.forName(\"UTF-8\"));) {\n\t\t\tString line = null;\n\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tString[] splitLine = line.split(\",\");\n\t\t\t\tcurrentGen.setValue(Integer.parseInt(splitLine[0]),\n\t\t\t\t\t\tInteger.parseInt(splitLine[1]), true);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Could not find file provided.\");\n\t\t}\n\t}",
"public List<Double> processFile() throws AggregateFileInitializationException {\n \t\t \n \t\tint maxTime = 0;\n \t\tHashMap<String, List<Double>> data = new HashMap<String,List<Double>>();\n \t\ttry {\n \t String record; \n \t String header;\n \t int recCount = 0;\n \t List<String> headerElements = new ArrayList<String>();\n \t FileInputStream fis = new FileInputStream(scenarioData); \n \t BufferedReader d = new BufferedReader(new InputStreamReader(fis));\n \t \n \t //\n \t // Read the file header\n \t //\n \t if ( (header=d.readLine()) != null ) { \n \t \t\n \t\t StringTokenizer st = new StringTokenizer(header );\n \t\t \n \t\t while (st.hasMoreTokens()) {\n \t\t \t String val = st.nextToken(\",\");\n \t\t \t headerElements.add(val.trim());\n \t\t }\n \t } // read the header\n \t /////////////////////\n \t \n \t // set up the empty lists\n \t int numColumns = headerElements.size();\n \t for (int i = 0; i < numColumns; i ++) {\n \t \tString key = headerElements.get(i);\n \t \t if(validate(key)) {\n \t \t\tdata.put(key, new ArrayList<Double>());\n \t\t }\n \t \t\n \t }\n \t \n \t // Here we check the type of the data file\n \t // by checking the header elements\n \t \n \t \n \t \n \t //////////////////////\n // Read the data\n //\n while ( (record=d.readLine()) != null ) { \n recCount++; \n \n StringTokenizer st = new StringTokenizer(record );\n int tcount = 0;\n \t\t\t\twhile (st.hasMoreTokens()) {\n \t\t\t\t\tString val = st.nextToken(\",\");\n \t\t\t\t\tString key = headerElements.get(tcount);\n \t\t\t\t\tif(validate(key)) {\n \t\t\t\t\t\tidSet.add(key);\n \t\t\t\t\t\tList<Double> dataList = data.get(key);\n \t\t\t\t\t\ttry {\n \t\t\t\t\t\t\tDouble dVal = new Double(val.trim());\n \t\t\t\t\t\t\tdataList.add(dVal);\n \t\t\t\t\t\t\tif (dataList.size() >= maxTime) maxTime = dataList.size();\n \t\t\t\t\t\t\tdata.put(key,dataList);\n \t\t\t\t\t\t} catch(NumberFormatException nfe) {\n \t\t\t\t\t\t\tdata.remove(key);\n \t\t\t\t\t\t\tidSet.remove(key);\n \t\t\t\t\t\t\tActivator.logInformation(\"Not a valid number (\"+val+\") ... Removing key \"+key, null);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\t\t\t\n \t\t\t\t\ttcount ++;\n \t\t\t\t}\n \t\t\t} // while file has data\n } catch (IOException e) { \n // catch io errors from FileInputStream or readLine()\n \t Activator.logError(\" IOException error!\", e);\n \t throw new AggregateFileInitializationException(e);\n }\n \n List<Double> aggregate = new ArrayList<Double>();\n for (int i = 0; i < maxTime; i ++) {\n \t aggregate.add(i, new Double(0.0));\n }\n // loop over all location ids\n Iterator<String> iter = idSet.iterator();\n while((iter!=null)&&(iter.hasNext())) {\n \t String key = iter.next();\n \t List<Double> dataList = data.get(key);\n \t for (int i = 0; i < maxTime; i ++) {\n \t\t double val = aggregate.get(i).doubleValue();\n \t\t val += dataList.get(i).doubleValue();\n \t aggregate.set(i,new Double(val));\n }\n }\n \n return aggregate;\n \t }",
"private ArrayList<Float> readFile(byte[] data) {\n int pStart = 0;\n ArrayList<Float> points = new ArrayList<Float>();\n\n for (int pEnd = 0; pEnd < data.length; pEnd++) {\n if (data[pEnd] == '\\n' || pEnd == (data.length - 1)) {\n String line = new String(data, pStart, pEnd - pStart);\n if (line.startsWith(\"ncols\")) {\n ncols = Integer.parseInt(line.substring(5).trim());\n } else if (line.startsWith(\"nrows\")) {\n nrows = Integer.parseInt(line.substring(5).trim());\n } else if (line.startsWith(\"xllcorner\")) {\n xll = (int) Float.parseFloat(line.substring(9).trim());\n } else if (line.startsWith(\"yllcorner\")) {\n yll = (int) Float.parseFloat(line.substring(9).trim());\n } else if (line.startsWith(\"cellsize\")) {\n cellsize = Float.parseFloat(line.substring(8).trim());\n } else if (line.startsWith(\"NODATA_value\")) {\n nodata = Float.parseFloat(line.substring(12).trim());\n } else {\n // Assume data\n line = line.trim();\n String[] parts = line.split(\"\\\\s+\");\n for (String part : parts) {\n points.add(Float.parseFloat(part.trim()));\n }\n }\n pStart = pEnd + 1;\n }\n }\n return points;\n }",
"@Override\n\tprotected float[] readEntireArray(InputStream in) throws IOException\n\t{\n\t\tArrayList<double[]> buffers = new ArrayList<double[]>();\n\n\t\tbyte[] buf = new byte[this.frameSize*2];\n\t\t\n\t\tint nBytesRead = 0;\n\n\t while (nBytesRead != -1)\n\t {\n\t nBytesRead = in.read(buf, 0, buf.length);\n\n\t double[] samples = new double[this.frameSize];\n\n\t for (int i = 0; i < this.frameSize; i++)\n\t\t\t{\n\t\t\t\tint hi = buf[(2 * i)];\n\t\t\t\tint low = buf[(2 * i + 1)] & 0xFF;\n\t\t\t\tint sampVal = hi << 8 | low;\n\t\t\t\tsamples[i] = (sampVal / this.spectralScale);\n\t\t\t}\n\n\t buffers.add( samples );\n\n\t }\n\n\t\tfloat[] totalBuffer = new float[buffers.size()*this.frameSize];\n\t\tint index = 0 ;\n\n\t\t//copy the entire thing over\n\t\tfor(double[] tempBuffer:buffers)\n\t\t{\n\t\t\tfor(int k=0;k<tempBuffer.length;k++)\n\t\t\t{\n\t\t\t\ttotalBuffer[index] = (float)tempBuffer[k];\n\t\t\t\tindex++;\n\t\t\t}\n\t\t}\n\t\tbuffers.clear();\n\t\tbuffers = null;\n\t\tSystem.gc();\n\t\treturn totalBuffer;\n\t}",
"private void readFile() {\r\n\t\tScanner sc = null; \r\n\t\ttry {\r\n\t\t\tsc = new Scanner(inputFile);\t\r\n\t\t\twhile(sc.hasNextLine()){\r\n\t\t\t\tgrade.add(sc.nextLine());\r\n\t } \r\n\t\t}\r\n\t\tcatch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tsc.close();\r\n\t\t}\t\t\r\n\t}",
"public void readFile(String filename){\n\t\ttry{\n\t\t\tBufferedReader bf = new BufferedReader(new FileReader(filename));\n\t\t\tString line;\n\t\t\tString[] categories = new String[5];\n\t\t\tline = bf.readLine();\n\t\t\tint[] pointValues = new int[5];\n\t\t\tboolean FJ = false;\n\t\t\t\n\t\t\t// Read the first line\n\t\t\tint index = 0;\n\t\t\tint catnum = 0;\n\t\t\twhile(catnum < 5){\n\t\t\t\tcategories[catnum] = readWord(line, index);\n\t\t\t\tindex += categories[catnum].length();\n\t\t\t\tif(index == line.length()-1){\n\t\t\t\t\tSystem.out.println(\"Error: Too few categories.\");\n\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t}\n\t\t\t\tfor(int i = 0; i < catnum; i++){\n\t\t\t\t\tif(categories[i].equals(categories[catnum])){\n\t\t\t\t\t\tSystem.out.println(\"Error: Duplicate categories.\");\n\t\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(catnum < 4)\n\t\t\t\t\tindex += 2;\n\t\t\t\tcatnum++;\n\t\t\t}\n\t\t\tif(index < line.length()-1){\n\t\t\t\tSystem.out.println(\"Error: Too many categories.\");\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t\t\n\t\t\tCategory cat1, cat2, cat3, cat4, cat5, cat6;\n\t\t\tcat1 = new Category(categories[0]);\n\t\t\tcat2 = new Category(categories[1]);\n\t\t\tcat3 = new Category(categories[2]);\n\t\t\tcat4 = new Category(categories[3]);\n\t\t\tcat5 = new Category(categories[4]);\n\t\t\tcat6 = new Category(\"FJ\");\n\n\t\t\t// Read the second line\n\t\t\tline = bf.readLine();\n\t\t\t//System.out.println(line);\n\t\t\tindex = 0;\n\t\t\tint pointnum = 0;\n\t\t\twhile(pointnum < 5){\n\t\t\t\tint point = 0;\n\t\t\t\ttry{\n\t\t\t\t\tpoint = Integer.parseInt(readWord(line, index));\n\t\t\t\t\tindex += (readWord(line, index)).length();\n\t\t\t\t}\n\t\t\t\tcatch(Exception e){\n\t\t\t\t\tSystem.out.println(e);\n\t\t\t\t\tSystem.out.println(\"Error: point value not integer.\");\n\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tpointValues[pointnum] = point;\n\t\t\t\tfor(int i = 0; i < pointnum; i++){\n\t\t\t\t\tif(pointValues[pointnum] == pointValues[i]){\n\t\t\t\t\t\tSystem.out.println(\"Error: Duplicate point values\");\n\t\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(pointnum <4)\n\t\t\t\t\tindex += 2;\n\t\t\t\tpointnum++;\n\t\t\t}\n\t\t\tif(index < line.length()-1){\n\t\t\t\tSystem.out.println(\"Error: Too many point values.\");\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t\t\n\t\t\t// Read in the questions\n\t\t\tString q=\"\";\n\t\t\tString a=\"\";\n\t\t\tString category=\"\";\n\t\t\tint point=0;\n\t\t\tint colonNumber = 0;\n\t\t\tQuestion question = new Question(0, \"\", \"\");\n\t\t\t\n\t\t\twhile((line = bf.readLine())!= null && line.length() != 0){\n\t\t\t\tindex = 0;\n\t\t\t\t// New question, initialize all vars\n\t\t\t\tif(line.substring(0,2).equals(\"::\")){\n\t\t\t\t\t// Add the previous question\n\t\t\t\t\tif(question.getPoint() != 0){\n\t\t\t\t\t\tif(category.equals(cat1.getName())){\n\t\t\t\t\t\t\tcat1.addQuestion(question);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(category.equals(cat2.getName())){\n\t\t\t\t\t\t\tcat2.addQuestion(question);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(category.equals(cat3.getName())){\n\t\t\t\t\t\t\tcat3.addQuestion(question);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(category.equals(cat4.getName())){\n\t\t\t\t\t\t\tcat4.addQuestion(question);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(category.equals(cat5.getName())){\n\t\t\t\t\t\t\tcat5.addQuestion(question);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(category.equals(\"FJ\")){\n\t\t\t\t\t\t\tcat6.addQuestion(question);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tSystem.out.println(\"Error: Wrong category name.\");\n\t\t\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\ta=\"\";\n\t\t\t\t\tq=\"\";\n\t\t\t\t\tcategory=\"\";\n\t\t\t\t\tpoint = 0;\n\t\t\t\t\tindex += 2;\n\t\t\t\t\tcolonNumber = 1;\n\t\t\t\t\tquestion = new Question(0, \"\", \"\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// If FJ cont'd\n\t\t\t\telse{\n\t\t\t\t\tif(category.equals(\"FJ\")){\n\t\t\t\t\t\twhile(index < line.length()){\n\t\t\t\t\t\t\tswitch(colonNumber){\n\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\tq += readWord(line, index);\n\t\t\t\t\t\t\t\tindex += readWord(line, index).length();\n\t\t\t\t\t\t\t\tquestion.setQuestion(q);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t\ta += readWord(line, index);\n\t\t\t\t\t\t\t\tindex += readWord(line, index).length();\n\t\t\t\t\t\t\t\tquestion.setAnswer(a);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\tSystem.out.println(\"Error: Format error.\");\n\t\t\t\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(colonNumber < 3 && index < line.length()-1 && line.substring(index, index+2).equals(\"::\")){\n\t\t\t\t\t\t\t\tindex+=2;\n\t\t\t\t\t\t\t\tcolonNumber++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// FJ starts\n\t\t\t\tif(readWord(line, index).equals(\"FJ\")){\n\t\t\t\t\tif(FJ){\n\t\t\t\t\t\tSystem.out.println(\"Error: Multiple final jeopardy questions.\");\n\t\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t\t}\n\t\t\t\t\tFJ = true;\n\t\t\t\t\tpoint = -100;\n\t\t\t\t\tcategory = \"FJ\";\n\t\t\t\t\tindex += 4;\n\t\t\t\t\tcolonNumber++;\n\t\t\t\t\tif(index < line.length()-1)\n\t\t\t\t\t\tq += readWord(line, index);\n\t\t\t\t\tindex += q.length();\n\t\t\t\t\tindex += 2;\n\t\t\t\t\tif(index < line.length()-1)\n\t\t\t\t\t\ta += readWord(line, index);\n\t\t\t\t\tquestion.setPoint(point);\n\t\t\t\t\tquestion.setAnswer(a);\n\t\t\t\t\tquestion.setQuestion(q);\n\t\t\t\t}\n\t\t\t\t// Other questions\n\t\t\t\telse{\n\t\t\t\t\twhile(index < line.length()){\n\t\t\t\t\t\t//System.out.println(colonNumber);\n\t\t\t\t\t\tswitch(colonNumber){\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tcategory = category + readWord(line, index);\n\t\t\t\t\t\t\tboolean right = false;\n\t\t\t\t\t\t\tfor(int i = 0; i < 5; i++){\n\t\t\t\t\t\t\t\tif(categories[i].equals(category))\n\t\t\t\t\t\t\t\t\tright = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(!right){\n\t\t\t\t\t\t\t\tSystem.out.println(\"Error: Wrong category.\");\n\t\t\t\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tindex += category.length();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tpoint = Integer.parseInt(readWord(line, index));\n\t\t\t\t\t\t\tright = false;\n\t\t\t\t\t\t\tfor(int i = 0; i < 5; i++){\n\t\t\t\t\t\t\t\tif(pointValues[i] == point)\n\t\t\t\t\t\t\t\t\tright = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(!right){\n\t\t\t\t\t\t\t\tSystem.out.println(\"Error: Wrong point value.\");\n\t\t\t\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tindex += readWord(line, index).length();\n\t\t\t\t\t\t\tquestion.setPoint(point);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tq = q + readWord(line, index);\n\t\t\t\t\t\t\tindex += readWord(line, index).length();\n\t\t\t\t\t\t\tquestion.setQuestion(q);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\ta = a+ readWord(line, index);\n\t\t\t\t\t\t\tindex += readWord(line, index).length();\n\t\t\t\t\t\t\tquestion.setAnswer(a);\n\t\t\t\t\t\t\tif(index < line.length()){\n\t\t\t\t\t\t\t\tSystem.out.println(\"Error: Format error.\");\n\t\t\t\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tSystem.out.println(\"Error: Format error.\");\n\t\t\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(colonNumber < 4 && index < line.length()-1 && line.substring(index, index+2).equals(\"::\")){\n\t\t\t\t\t\t\tindex += 2;\n\t\t\t\t\t\t\tcolonNumber++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Add the last question\n\t\t\tif(category.equals(cat1.getName())){\n\t\t\t\tcat1.addQuestion(question);\n\t\t\t}\n\t\t\telse if(category.equals(cat2.getName())){\n\t\t\t\tcat2.addQuestion(question);\n\t\t\t}\n\t\t\telse if(category.equals(cat3.getName())){\n\t\t\t\tcat3.addQuestion(question);\n\t\t\t}\n\t\t\telse if(category.equals(cat4.getName())){\n\t\t\t\tcat4.addQuestion(question);\n\t\t\t}\n\t\t\telse if(category.equals(cat5.getName())){\n\t\t\t\tcat5.addQuestion(question);\n\t\t\t}\n\t\t\telse if(category.equals(\"FJ\")){\n\t\t\t\tcat6.addQuestion(question);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"Error: Wrong category name.\");\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t\t\n\t\t\tmCategories.add(cat1);\n\t\t\tmCategories.add(cat2);\n\t\t\tmCategories.add(cat3);\n\t\t\tmCategories.add(cat4);\n\t\t\tmCategories.add(cat5);\n\t\t\tmCategories.add(cat6);\n\t\t\t\n\t\t\tbf.close();\n\t\t}\n\t\t\n\t\tcatch(IOException ioe){\n\t\t\tSystem.out.println(ioe);\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t}",
"public void initCases(){\n\t\ttry {\n // This creates an object from which you can read input lines.\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n \n for(int i = 0; i < cases.length; i++){\n \tcases[i] = reader.readLine();\n }\n \n reader.close();\n }\n\t\t//deals with any IO exceptions that may occur\n catch (IOException e) {\n System.out.println(\"Caught IO exception\");\n }\n\t}",
"private void get_values(File f1){\n String line;\n Scanner read_file=null;\n try{\n read_file= new Scanner(f1);\n }catch(FileNotFoundException e){\n System.out.println(\"The specified file of the Student cannot be found.\");\n return;\n }\n line=read_file.nextLine();\n while(!(line.contains(\"OOP\"))){\n line=read_file.nextLine();\n }\n line=read_file.nextLine();\n while(!(line.contains(\"Chap_1\"))){\n line=read_file.nextLine();\n }\n //System.out.println(line.substring(8));\n OOP[0]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n OOP[1]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n OOP[2]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n OOP[3]=Float.parseFloat(line.substring(8));\n\n line=read_file.nextLine();\n while(!(line.contains(\"DE\"))){\n line=read_file.nextLine();\n }\n line=read_file.nextLine();\n while(!(line.contains(\"Chap_1\"))){\n line=read_file.nextLine();\n }\n DE[0]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n DE[1]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n DE[2]=Float.parseFloat(line.substring(8));\n\n line=read_file.nextLine();\n while(!(line.contains(\"DSA\"))){\n line=read_file.nextLine();\n }\n line=read_file.nextLine();\n while(!(line.contains(\"Chap_1\"))){\n line=read_file.nextLine();\n }\n DSA[0]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n DSA[1]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n DSA[2]=Float.parseFloat(line.substring(8));\n\n line=read_file.nextLine();\n line=read_file.nextLine();\n total_marks=Float.parseFloat(line.substring(13));\n average=total_marks/10;\n\n read_file.close();\n }",
"private static String[] readFile(String file){\n\t\ttry{\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(file));\n\t\t\tString line;\n\t\t\tString data = \"\";\n\t\t\twhile((line = in.readLine()) != null){\n\t\t\t\tdata = data + '\\n' + line;\t\t\t}\n\t\t\tin.close();\n\t\t\tString[] data_array = data.split(\"\\\\n\");\n\t\t\treturn data_array;\n\t\t}\n\t\tcatch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\tString[] shouldNeverReturn = new String[1];\n\t\treturn shouldNeverReturn;\n\t}",
"public static int[][][] read(String filename) {\n\n\t\t// Calling the right file\n\t\tStdIn.setInput(filename); \n\t\t// This is for ״P3״\n\t\tStdIn.readString(); \n\t\t// The number of columns from file\n\t\tint columns = StdIn.readInt(); \n\t\t// The number of row from file\n\t\tint rows = StdIn.readInt(); \n\t\t // Creating the 3 dim matrix\n\t\tint[][][] readMatrix = new int[rows][columns][3];\n\t\tStdIn.readInt(); // This is the number of colors\n\n\t\tfor (int i = 0; i < rows; i++) {\n\t\t\tfor (int j = 0; j < columns; j++) {\n\t\t\t\tfor (int k = 0; k < 3; k++) {\n\t\t\t\t\t// Getting the value in a 3d matrix\n\t\t\t\t\treadMatrix[i][j][k] = StdIn.readInt(); \n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn readMatrix;\n\t}",
"public static void main (String[] args) throws IOException {\n File inFile = new File(\"/Users/kbye10/Documents/CS 250 test files/sample1.data\");\r\n FileInputStream inStream = new FileInputStream(inFile);\r\n\r\n //set up an array to read data in\r\n int fileSize = (int)inFile.length();\r\n byte[] byteArray = new byte[fileSize];\r\n\r\n //read data in and display them\r\n inStream.read(byteArray);\r\n for (int i = 0; i < fileSize; i++) {\r\n System.out.println(byteArray[i]);\r\n }\r\n\r\n inStream.close();\r\n }",
"private void readArray(TypeImpl type, Attributes attrs) throws SAXParseException {\n String attrName, attrVal;\n // No entries in indexRep means not indexed\n IntVector indexRep = new IntVector();\n int size = 0;\n int id = -1;\n for (int i = 0; i < attrs.getLength(); i++) {\n attrName = attrs.getQName(i);\n attrVal = attrs.getValue(i);\n if (attrName.equals(XCASSerializer.ID_ATTR_NAME)) {\n try {\n id = Integer.parseInt(attrVal);\n } catch (NumberFormatException e) {\n throw createException(XCASParsingException.ILLEGAL_ID, attrVal);\n }\n } else if (attrName.equals(XCASSerializer.ARRAY_SIZE_ATTR)) {\n try {\n size = Integer.parseInt(attrVal);\n if (size < 0) {\n throw createException(XCASParsingException.ILLEGAL_ARRAY_SIZE, attrVal);\n }\n } catch (NumberFormatException e) {\n throw createException(XCASParsingException.INTEGER_EXPECTED, attrVal);\n }\n } else if (attrName.equals(XCASSerializer.INDEXED_ATTR_NAME)) {\n String[] arrayvals = parseArray(attrVal);\n for (int s = 0; s < arrayvals.length; s++) {\n indexRep.add(Integer.parseInt(arrayvals[s]));\n }\n } else {\n throw createException(XCASParsingException.ILLEGAL_ARRAY_ATTR, attrName);\n }\n }\n final int finalSize = size;\n TOP fs = maybeCreateWithV2Id(fsId, () -> cas.createArray(type, finalSize));\n // TOP fs = cas.createArray(type, size);\n\n FSInfo fsInfo = new FSInfo(fs, indexRep);\n if (id >= 0) {\n fsTree.put(id, fsInfo);\n } else {\n idLess.add(fsInfo);\n }\n // Hang on to those for setting array values.\n this.currentFs = fs;\n this.arrayPos = 0;\n\n this.state = ARRAY_ELE_STATE;\n }",
"public int[][][] getData() throws AreaFileException {\r\n int[][][] mydata = readData(0,0,dir[AD_NUMELEMS],numberLines);\r\n return mydata;\r\n }",
"public void read(ArrayDataInput in) throws FitsException, IOException;",
"public void readFromFile(){\n\t\ttry {\r\n\t\t\tFile f = new File(\"E:\\\\Study\\\\Course\\\\CSE215L\\\\Project\\\\src\\\\Railway.txt\");\r\n\t\t\tScanner s = new Scanner(f);\r\n\t\t\tpersons = new Person2 [50]; \r\n\t\t\tint i = 0;\r\n\t\t\t\r\n\t\t\twhile(s.hasNextLine()){\r\n\t\t\t\tString a = s.nextLine();\r\n\t\t\t\tString b = s.nextLine();\r\n\t\t\t\tString c = s.nextLine();\r\n\t\t\t\tString d = s.nextLine();\r\n\t\t\t\tString e = s.nextLine();\r\n\t\t\t\tString g = s.nextLine();\r\n\t\t\t\tString h = s.nextLine();\r\n\t\t\t\tString j = s.nextLine();\r\n\t\t\t\tPerson2 temp = new Person2 (a,b,c,d,e,g,h,j);\r\n\t\t\t\tpersons[i] = temp;\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}",
"public static String[] DataCollection(String a) throws FileNotFoundException {\n\tFile file = new File(a); \n \tScanner sc = new Scanner(file); \n \n // Counter variable to count the number of entries in text file\n\tint counter = 0;\n\n\t\n \n\tString[] data = new String[2976];\n // While loop to take in data from text file \n\twhile(sc.hasNextLine())\n\t{\n\t\n\tsc.useDelimiter(\"\\\\Z\"); \n\t\n\t// Inserting data in each line to array\n\tdata[counter] = sc.nextLine();\n\tcounter = counter + 1;\n\t\n\t}\n\treturn data;\n \t}",
"private void readFileAndStoreData_(String fileName) {\n In in = new In(fileName);\n int numberOfTeams = in.readInt();\n int teamNumber = 0;\n while (!in.isEmpty()) {\n assignTeam_(in, teamNumber);\n assignTeamInfo_(in, numberOfTeams, teamNumber);\n teamNumber++;\n }\n }",
"public double[] importFlowRateDataFile(int pumpDataArraySize, String pumpDataFileName)\n\t{\n\t\tdouble[] pumpData = new double[pumpDataArraySize]; //26 as of first design\n\n\t\t////////////////////\n\t\t//Import file data//\n\t\t////////////////////\n\t\tString pumpDataString = \"\";\n\t\tString line = \"\";\n\t\t//search line by line \n\t\ttry{\n\t\t\tFileReader readFile = new FileReader(pumpDataFileName);\n\t\t\tBufferedReader reader = new BufferedReader(readFile);\n\n\t\t\tpumpDataString = reader.readLine();//reads first line\n\t\t\tpumpDataString = reader.readLine();//reads second line so first line isnt remebered\n\t\t\twhile(line != null)\n\t\t\t{\n\t\t\t\tpumpDataString += line + \"\\n\"; \n\t\t\t\tline = reader.readLine();\n\t\t\t}\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tSystem.out.println(\"Error at 'importPumpDataFile' located in FileWorker: \" + e.toString());\n\t\t}\n\n\t\t//////////////\n\t\t//Parse Data//\n\t\t//////////////\n\t\tString[] stringArray = pumpDataString.split(\"\\n\");\n\t\tfor(int x = 0; x<= pumpDataArraySize-1; x++)\n\t\t{\n\t\t\tpumpData[x] = Double.parseDouble(stringArray[x].split(\"-\")[1]); //get the splitted string array, gets each element, splits and takes the data portion then parses to int and store in final array\n\t\t}\n\n\t\treturn pumpData;\n\t}",
"public Student[] constructArray(String fileName)throws IOException{\n \n Student[] ans = new Student[10];\n Scanner Sc = new Scanner(new File(fileName));\n Sc.useDelimiter(\"\\t|\\n\");\n this.amount = 0;\n while(Sc.hasNext()){\n if(this.amount == ans.length){\n ans = doubler(ans);\n }\n String ID = Sc.next();\n String SName = Sc.next();\n String Email = Sc.next();\n String SClass = Sc.next();\n String major = Sc.next();\n ans[this.amount] = new Student(ID, SName, Email, SClass, major);\n amount++;\n }\n return ans;\n }",
"String[] readFile(File file) {\n ArrayList<String> list = new ArrayList<>();\n String[] output = null;\n Scanner reader = null;\n try {\n if (file.isFile()) {\n reader = new Scanner(file);\n while (reader.hasNextLine()) {\n list.add(reader.nextLine());\n }\n }\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found exception\");\n }\n output = new String[list.size()];\n for (int i = 0; i < list.size(); i++) output[i] = list.get(i);\n reader.close();\n return output;\n }",
"void readFiles(Boolean smart) \n\t//throws IOException// more here for safety\n\t{\n\t\tint i;\n\t\tfor (i = 0; i<165; ++i)\n\t\tfor (int j = 0; j<11; ++j)\n\t\t{\t//if(smart)memoryFile.readInt(board(i,j));\n\t\t\t//else \n\t\t\t\tboard[i][j] = 0;\n\t\t}\n\t\t//try memoryFileStream.close(); catch (IOException e);\n\t}",
"public static void main(String[] args) throws FileNotFoundException {\n\n\t\t// define a file object for the file on our computer we want to read\n\t\t// provide a path to the file when defining a File object\n\t\t//\n\t\t// paths can be: absolute - code all the parts from the root folder of your OS (Windows)\n\t\t//\n\t\t// paths can be: relative - code the part from the assumed current position to the file\n\t\t//\n\t\t// absolute paths should be avoided - they tightly couple the program to the directory structure it was created on\n\t\t//\t\t\t\t\t\t\t\t\t\t\tif the program is run on a machine with a different directory structure it won't work\n\t\t//\t\t\t\t\t\t\t\t\t\t\t\tbecause the absolute path doesn't exist in a different directory structure\n\t\t//\n\t\t// relative paths are preferred because you have loosely coupled the file to the directory structure\n\t\t//\t\t\tit is more likely that the relative paths will be the same from machine to machine\n\t\t//\n\t\t// path: . = current directory\n\t\t//\t\t/ = then (sub-directory or file follows)\n\t\t//\t\tnumbers.txt - file name\n\n\t\tFile theFile = new File(\"./data/numbers.txt\"); // give the File object the path to our file\n\n\t\t// define a scanner for the File object we created for the file on our computer\n\t\tScanner scannerForFile = new Scanner(theFile); // give Scanner the file object we created\n\n\t\tString aLine = \"\"; // hold a line of input from the file\n\n\n\t\tint sum = 0; // hold the sum of the numbers in a line\n\n\t\t// if we want to get all the lines in the file\n\t\t// we need to go through and get each line in the file one at a time\n\t\t// but we can't get a line from the file if there are no more lines in the file\n\t\t// we can use the Scanner class hasNextLine() method to see if there is another line in the file\n\t\t// we can set a loop to get a line from the file and process it as long as there are lines in the file\n\t\t// we will use while loop since we want loop based on a condition (as long as there are line in the file)\n\t\t// \t\t\tand not a count of lines in the file, in which case we would use a for-loop\n\t\t//\t\t\t\tfor-each-loops only work for collection classes\n\n\t\t// add up each line from my file\n\t\t// the file has one or more numbers separated by a single space in each line\n\n\t\twhile (scannerForFile.hasNextLine()) { // loop while there ia a line in the file\n\n\t\t\taLine = scannerForFile.nextLine(); // get a line from the file and store it in aLine\n\n\t\t\t// break apart the numbers in the line based on spaces\n\t\t\t// String .split() will create an array of Strings of the values separated by the delimiter\n\n\t\t\tString[] theNumbers = aLine.split(\" \"); // break apart the numbers in the line based on spaces\n\n\t\t\tSystem.out.println(\"Line from the file: \" + aLine); // display the line from the file\n\n\t\t\t// reset teh sum to 0 to clear it of the value from the last time through the loop\n\t\t\tsum = 0;\n\n\t\t\t// loop through the array of Strings holding the numbers from the line in the file\n\n\t\t\tfor (String aNumber : theNumbers) { // aNumber will hold the current element that is in the array\n\t\t\t\t\tsum = sum + Integer.parseInt(aNumber); // add the number to a sum after converting the String to an int\n\t\t\t}\n\n\t\t\t// now that we have the sum, we can display it\n\n\t\t\tSystem.out.println(\"Sum of the numbers is: \" + sum);\n\t\t\tSystem.out.println(\"Average of the numbers is: \" + sum / theNumbers.length);\n\n\t\t} // end of while loop\n\n\n\t\t\n}",
"public void readFromFile() {\n\n\t}",
"public ArrayList<String> parseFile(String fileName) throws IOException {\n\t\tthis.parrsedArray = new ArrayList<String>();\n\t\tFileInputStream inFile = null;\n\n\t\tinFile = new FileInputStream(mngr.getPath() + fileName);\n\t\tDataInputStream in = new DataInputStream(inFile);\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\n\t\tString strLine;\n\n\t\twhile ((strLine = reader.readLine()) != null && strLine.length() > 0) {\n\t\t\t// Print the content on the console\n\t\t\tparrsedArray.add(strLine);\n\t\t}\n\n\t\tinFile.close();\n\n\t\treturn parrsedArray;\n\n\t}",
"private static void readFile(String filePath) {\n\t\ttry {\n\t\t\tString [] data; // Array of strings that contains the different cells.\n\t\t\t\n\t\t\t// Open the file and read it.\n\t\t\tBufferedReader bufferedReader = new BufferedReader(new FileReader(filePath));\n\t\t\t\n\t\t\t// Read the next line;\n\t\t\tdata = bufferedReader.readLine().split(ONE_SPACE);\n\t\t\t\n\t\t\t// Number of photos.\n\t\t\tSystem.out.println(\">> Reading number of photos...\");\n\t\t\tnumberPhotos = Integer.parseInt(data[0]);\n\t\t\t\n\t\t\tSystem.out.println(\">> Reading photos info...\");\n\t\t\tSystem.out.println(\"\");\n\t\t\tfor (int i = 0; i < numberPhotos; i++) {\n\t\t\t\tdata = bufferedReader.readLine().split(ONE_SPACE);\n\t\t\t\t\n\t\t\t\tList<String> tagList = new ArrayList<String>();\n\t\t\t\t\n\t\t\t\tfor (int j = 2; j < data.length; j++) {\n\t\t\t\t\ttagList.add(data[j]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (data[0].toUpperCase().equals(\"V\")) {\n\t\t\t\t\tphotoList.add(new Photo(true, i, tagList));\n\t\t\t\t} else {\n\t\t\t\t\tslideList.add(new Slide(i, i, tagList));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Close the file.\n\t\t\tbufferedReader.close();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Error while reading the input file: \" + e);\n\t\t}\n\t}",
"public Index[] readIndexes(File file){\t\t\n\t\ttry{\n\t\t\tFileReader reader = new FileReader(file);\n\t\t\tBufferedReader buff = new BufferedReader(reader);\n\n\t\t\tboolean eof = false;\t\t//stores if the end of the file (eof) has been reached\n\t\t\tint numberOfRecords = 0;\n\n\t\t\t/**\n\t\t\t * @mastery achieves SL mastery factor 6 with the while loop\n\t\t\t */\n\t\t\twhile(!eof){\n\t\t\t\tString line = buff.readLine();\n\n\t\t\t\t/**\n\t\t\t\t * @mastery achieves SL mastery factor 4 with the if/else selection block\n\t\t\t\t */\n\t\t\t\tif(line == null){\n\t\t\t\t\teof = true;\t\t//the end of the file has been reached\n\t\t\t\t} else {\n\t\t\t\t\tnumberOfRecords++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tbuff.close();\n\n\t\t\tIndex[] indexes = new Index[numberOfRecords];\n\n\t\t\tFileReader reader2 = new FileReader(file);\n\t\t\tBufferedReader buff2 = new BufferedReader(reader2);\n\n\t\t\tfor(int i=0;i<numberOfRecords;i++){\n\t\t\t\tString line = buff2.readLine();\n\t\t\t\tindexes[i] = new Index(line);\n\t\t\t}\n\n\t\t\tArrays.sort(indexes);\n\t\t\tbuff.close();\n\t\t\treader.close();\n\t\t\tbuff2.close();\n\t\t\treader2.close();\n\t\t\t\n\t\t\treturn indexes;\n\n\t\t} catch (Exception e){\n\t\t\treturn null;\n\t\t}\n\t}",
"public ArrayList<Integer> readFile(File file) {\n\t\tArrayList<Integer> fileData = new ArrayList<Integer>();\n\t\t// read the file\n\t\ttry {\n\t\t\tScanner sc = new Scanner(file);\n\t\t\twhile (sc.hasNextInt()) {\n\t\t\t\tfileData.add(sc.nextInt());\n\t\t\t}\n\t\t\tsc.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"An error occurred.\");\n\t\t e.printStackTrace();\n\t\t}\n\t\treturn fileData;\n\t}",
"private ArrayList<Integer> fileReader() {\n ArrayList<Integer> data = new ArrayList<>();\n try {\n Scanner scanner = new Scanner(new File(\"andmed.txt\"));\n while (scanner.hasNextLine()) {\n data.add(Integer.valueOf(scanner.nextLine()));\n }\n scanner.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return data;\n }",
"public static void processFile(File f) throws Exception {\n\t\ttry {\r\n\t\t\tBufferedReader bufRead = new BufferedReader(new InputStreamReader(\r\n\t\t\t\t\tnew FileInputStream(f)));\r\n\t\t\tString S1 = \"\";\r\n\t\t\twhile ((S1 = bufRead.readLine()) != null) {\r\n\t\t\t\t//System.out.println(S1);\r\n\t\t\t\tgetPubTypes(S1);\r\n\t\t\t\t//System.out.println();\r\n\t\t\t}\r\n\t\t\tbufRead.close();\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tSystem.out.println(\"Something is wrong with reading file! \"\r\n\t\t\t\t\t+ \"Can't find the appropriate file!\");\r\n\t\t}\r\n\r\n\t\t// return allDiseases;\r\n\r\n\t}",
"public void readInputFile(){\n no_of_videos = 5;\n video_size = new int [no_of_videos];\n\n }",
"public static void main(String[] args) throws IOException {\n Scanner inputFile = new Scanner(System.in); \r\n System.out.println(\"Enter filename and extension: \");\r\n fileInput = inputFile.nextLine();\r\n \r\n int[] theArray = buildArray(); //Initialize buildArray method\r\n userChoice(theArray); //Initialize userChoice method\r\n\r\n }",
"public ClickerCounterModel[] readObjectFromFile() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\ttry {\n\t\t\tFileInputStream inputStream = openFileInput(filename);\n\t\t\tInputStreamReader isr = new InputStreamReader(inputStream);\n\t\t\tBufferedReader bufferedReader = new BufferedReader(isr);\n\t\t\tString line;\n\t\t\twhile ((line = bufferedReader.readLine()) != null) {\n\t\t\t\tsb.append(line);\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// use Gson to convert it into and object\n\t\tString json = sb.toString();\n\t\tGson gson = new Gson();\n\t\tClickerCounterModel[] object = gson.fromJson(json,\n\t\t\t\tClickerCounterModel[].class);\n\t\treturn object;\n\t}",
"public static ParsedData arffFileReader(File file) throws Exception {\n\n ParsedData data;\n String line = null;\n BufferedReader br = new BufferedReader(new FileReader(file));\n\n ArrayList<Attribute> attributes = new ArrayList<>();\n boolean attributeTest = true;\n int attributeNumber = 0;\n ArrayList<String> datasetList = new ArrayList<>();\n String relName = \"\";\n\n int rows = 0;\n int columns = 0;\n\n while ((line = br.readLine()) != null) {\n\n line = line.trim();\n\n if (attributeTest) {\n if(line.startsWith(\"@relation\")){\n relName = line.split(\" \")[1];\n }\n\n if (line.startsWith(\"@attribute\")) {\n attributes.add(parseAttribute(line, attributeNumber));\n attributeNumber++;\n }\n } else {\n String[] instance = parseInstance(line);\n if(instance.length != attributes.size()) {\n System.out.println(\"Skip illegal line: \" + Utils.concatStringArray(instance));\n continue;\n }\n for (int i = 0; i < instance.length; i++) {\n datasetList.add(instance[i]);\n }\n rows++;\n }\n if (line.startsWith(\"@data\")) {\n attributeTest = false;\n }\n\n }\n columns = attributes.size();\n\n String[] datasetArray = new String[datasetList.size()];\n for (int i = 0; i < datasetList.size(); i++) {\n datasetArray[i] = datasetList.get(i);\n }\n\n DataSet dataset = new DataSet(datasetArray, rows, columns);\n data = new ParsedData(dataset, attributes, relName);\n return data;\n\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tint [] x = new int[6];\r\n\t\tSystem.out.println(x.getClass());\r\n\r\n\t\t\r\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(\"C:\\\\testing.txt\")))\r\n\t\t{\r\n\r\n\t\t\tString line;\r\n\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\tSystem.out.println(line);\r\n\t\t\t}\r\n\r\n\t\t} catch (Throwable e) {\r\n\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"protected abstract void readFile();",
"private static byte[] m136428a(File file) throws IOException {\n FileInputStream fileInputStream = new FileInputStream(file);\n byte[] bArr = new byte[((int) file.length())];\n int i = 0;\n while (i < bArr.length) {\n int read = fileInputStream.read(bArr, i, bArr.length - i);\n if (read < 0) {\n break;\n }\n i += read;\n }\n if (i >= bArr.length) {\n fileInputStream.close();\n return bArr;\n }\n StringBuilder sb = new StringBuilder(\"Could not completely read file \");\n sb.append(file.getName());\n throw new IOException(sb.toString());\n }",
"static Student[] readStudentsFromFile(String filename, int num) {\n\t\ttry (Scanner in = new Scanner(new File(filename))) {\n\t\t\tStudent[] students = new Student[num];\n\t\t\tint index = 0; //prevents ArrayIndexOutOfBounds\n\t\t\tString line;\n\t\t\tString[] input;\n\n\t\t\twhile (in.hasNextLine()) {\n\t\t\t\tline = in.nextLine();\n\t\t\t\tinput = line.split(\",\"); //Splits each String input by the character ','\n\t\t\t\tstudents[index++] = new Student(input[0], Integer.parseInt(input[1]), input[2]);\n\t\t\t}\n\t\t\treturn students;\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}",
"public static void consumeObjectArrayFromFile(String filePath, Consumer<JsonObject> consumer) throws Exception {\r\n\r\n\t\ttry (InputStream is = new FileInputStream(filePath);\r\n\t\t\tJsonReader reader = Json.createReader(is)\r\n\t\t) {\r\n\t\t\tJsonArray array = reader.readArray();\r\n\t\t\tfor (JsonObject item : array.getValuesAs(JsonObject.class)) {\r\n\t\t\t\tconsumer.accept(item);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public interface ReaderFromFile {\n\t\n\tpublic List<Data> readDataFromFile (String filename);\n}",
"public static void Load(String filename) throws IOException {\n\t\tLineNumberReader lnr = new LineNumberReader(new FileReader(filename));\r\n\t\t linenumber = 0;\r\n\t\t while (lnr.readLine() != null){\r\n\t\t\t linenumber++;\r\n\t\t }\r\n lnr.close();\r\n \tarrr=new String[linenumber][5];\r\n\t\tarr=arrr;\r\n\t\tBufferedReader br=new BufferedReader(new FileReader(filename));\r\n\t\t Scanner sc1=new Scanner(br);\r\n\t\t String ss=sc1.nextLine();\r\n\t\t String[] str1 = ss.split(\",\") ;\r\n\t\t String r=str1[0];\r\n\t\t String t=str1[1];\r\n\t\t String[] str2 = r.split(\":\") ;\r\n\t\t round= Integer.parseInt(str2[1]);\r\n\t\t String[] str3 = t.split(\":\") ;\r\n\t\t who=Integer.parseInt(str3[1]);\r\n\t\t arr=new String[linenumber][5];\r\n\t\t int num=0;\r\n\t\t while(sc1.hasNextLine()) {\t\r\n\t\t\t int i=0;\r\n\t\t\t num++;\r\n\t\t\t String x=sc1.nextLine();\r\n\t\t\tString[] str = x.split(\",\") ;\r\n\t\t\twhile(i<5) {\r\n\t\t\t\tarr[num][i]=str[i];\r\n\t\t\t\ti++;\r\n\t\t\t }\r\n\t\t }\r\n\t\t int c=1;\r\n\t ch=new Character[linenumber];\r\n\r\n\t\t\twhile(c<(linenumber)) {\r\n\t\t\t\t\r\n\t\t\t\tch[c]=new Character(Integer.parseInt(arr[c][0]),Integer.parseInt(arr[c][1]),Integer.parseInt(arr[c][2]),Integer.parseInt(arr[c][3]),arr[c][4]);\t\t\t\t\t\t\t\r\n\t\t\t\tc++;\r\n\t\t\t}\t\r\n\t\t\r\n\t\t sc1.close();\r\n\t\t String file=\"Land.txt\";\r\n\t\t\tBufferedReader br2=new BufferedReader(new FileReader(file));\r\n\t\t\tland=new String[20][2];\r\n\t\t\tland2=new String[20][2];\r\n\t\t\tland=land2;\r\n\t\t\tScanner sc2=new Scanner(br2);\r\n\t\t\tString strr=sc2.nextLine();\r\n\t\t\tnum=0;\r\n\t\t\t while(sc2.hasNextLine()) {\t\r\n\t\t\t\t int i=0;\r\n\t\t\t\t num++;\r\n\t\t\t\t String x=sc2.nextLine();\t\t\t\r\n\t\t\t\tString[] str = x.split(\",\") ;\r\n\t\t\t\twhile(i<2) {\r\n\t\t\t\t\tland[num][i]=str[i];\r\n\t\t\t\t\ti++;\r\n\t\t\t\t }\t\t\t\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\t String url = \"//localhost:3306/checkpoint?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT\";\r\n\t\t // String url=\"//140.127.220.220/\";\r\n\t\t // String dbname=\"CHECKPOINT\";\r\n\t\t\t Connection conn = null;\r\n\t\t try{\r\n\t\t conn = DriverManager.getConnection(protocol + url,username,passwd);\r\n\t\t Statement s = conn.createStatement();\r\n\t\t String sql = \"SELECT PLACE_NUMBER,LAND_PRICE,TOLLS FROM LAND\";\r\n\t\t rs=s.executeQuery(sql);\r\n\t\t p_number=new int[20];\r\n\t\t l_price=new int[20];\r\n\t\t tolls=new int[20];\r\n\t\t grid=0;\r\n\t\t while(rs.next()){\r\n\t\t \tgrid++;\r\n\t\t \tp_number[grid]=rs.getInt(\"PLACE_NUMBER\");\r\n\t\t \tl_price[grid]=rs.getInt(\"LAND_PRICE\");\r\n\t\t \ttolls[grid]=rs.getInt(\"TOLLS\");\t \t\t \t\r\n\t\t }\t\t \t\t \r\n\t\t rs.close();\r\n\t\t conn.close();\r\n\t\t } catch(SQLException err){\r\n\t\t System.err.println(\"SQL error.\");\r\n\t\t err.printStackTrace(System.err);\r\n\t\t System.exit(0);\r\n\t\t }\r\n\t\t\t Land=new Land[20];\r\n\t\t\t Land2=new Land[20];\r\n\t\t\t Land=Land2;\t\t\t \r\n\t\t \tfor(int i=1;i<=grid;i++) {\r\n\t\t \t\tLand[i]=new Land(p_number[i],Integer.parseInt(land[i][1]),l_price[i],tolls[i]);\t \t\t\r\n\t\t \t}\r\n\t\t\t sc2.close();\r\n\t}",
"public BaseballElimination(String filename) {\n\n System.out.println(\"start parsing \" + filename);\n In in = new In(filename);\n if (in.hasNextLine()) {\n int count = Integer.valueOf(in.readLine());\n w = new int[count];\n l = new int[count];\n r = new int[count];\n g = new int[count][count];\n\n for (int i = 0; i < count; i++) {\n if (!in.hasNextLine()) {\n throw new IllegalArgumentException(\"Not enough lines, count is \" + count +\n \", file ends after \" + i + \" line\");\n }\n String line = in.readLine();\n System.out.println(\"Line: \" + line);\n\n String[] parts = line.split(\" \");\n names[i] = parts[0];\n w[i] = Integer.valueOf(parts[1]);\n l[i] = Integer.valueOf(parts[2]);\n r[i] = Integer.valueOf(parts[3]);\n for (int j = 0; j < count; j++) {\n g[i][j] = Integer.valueOf(parts[4 + j]);\n }\n System.out.print(\" Parsed: \" + names[i] + \" \" + w[i] + \" \" + l[i] + \" \" + r[i]);\n for (int j = 0; j < count; j++) {\n System.out.print(\" \" + g[i][j]);\n }\n System.out.println();\n }\n }\n System.out.println(\"end\");\n }",
"public DataShuffling(File file) throws IOException {\n time = System.nanoTime();\n data = new String[7515];\n BufferedReader br = new BufferedReader(new FileReader(\"ErdosCA.txt\"));\n\n // This readLine() is used to skip the first line, which is just metadata\n br.readLine();\n for (int i = 0; i < data.length; i++) {\n data[i] = br.readLine();\n }\n\n br.close();\n time = System.nanoTime() - time;\n System.out.println(\"Time to read from file (in ns): \" + time);\n }",
"public void plzreadDataFiles(){\n\n //This line opens the file and returns an Input Stream data type\n InputStream itemIs = getResources().openRawResource(R.raw.card_data);\n\n //Read the file line by line\n BufferedReader reader = new BufferedReader(new InputStreamReader(itemIs, Charset.forName(\"UTF-8\")));\n\n //Initialize a var to track the line of the file being read in\n String line =\"\";\n\n // error proofing if the file is weird\n try {\n int i = 0;\n int k = 0;\n while ((line = reader.readLine()) != null){\n //split data by commas into an array of strings\n String[] token = line.split(\",\");\n\n itemArray[i] = new itemInfo();\n\n //Read the data\n itemArray[i].setCardType(token[0]);\n itemArray[i].setCardName(token[1]);\n itemArray[i].setItemType(token[2]);\n itemArray[i].setFrontText(token[3]);\n itemArray[i].setRearText(token[4]);\n itemArray[i].setDuration(token[5]);\n\n\n // Create a list of ITEM names for the autocomplete\n if ((itemArray[i].getCardType().intern()) == (\"Common Item\")){\n //itemSearchArray[i] = token[1];\n itemsOnlyList[k] = token[1];\n k = k + 1;\n }\n\n else if ((itemArray[i].getCardType().intern()) == (\"Unique Item\")){\n //itemSearchArray[i] = token[1];\n itemsOnlyList[k] = token[1];\n k = k + 1;\n }\n\n else if ((itemArray[i].getCardType().intern()) == (\"Spell\")){\n //itemSearchArray[i] = token[1];\n itemsOnlyList[k] = token[1];\n k = k + 1;\n }\n\n //Check that the damage column has a number in it, and write it in\n if (token[5].intern() != \"-\"){\n itemArray[i].setDamage(Integer.parseInt(token[5]));\n }\n else{\n //Set it to zero if the dash is detected\n itemArray[i].setDamage(0);\n }\n itemArray[i].setDuration(token[6]);\n\n i = i + 1;\n\n Log.d(\"My Activity\", \"Just added: \"+itemArray[i]);\n }\n\n } catch (IOException e) {\n Log.wtf(\"MyActivity\",\"Error reading data file on line\"+line,e);\n e.printStackTrace();\n }\n }",
"private static List<String[]> readInput(String filePath) {\n List<String[]> result = new ArrayList<>();\n int numOfObject = 0;\n\n try {\n Scanner sc = new Scanner(new File(filePath));\n sc.useDelimiter(\"\");\n if (sc.hasNext()) {\n numOfObject = Integer.parseInt(sc.nextLine());\n }\n for (int i=0;i<numOfObject;i++) {\n if (sc.hasNext()) {\n String s = sc.nextLine();\n if (s.trim().isEmpty()) {\n continue;\n }\n result.add(s.split(\" \"));\n }\n }\n sc.close();\n }\n catch (FileNotFoundException e) {\n System.out.println(\"FileNotFoundException\");\n }\n return result;\n }",
"public String[] openFile() throws IOException\n\t{\n\t\t//Creates a FileReader and BufferedReader to read from the file that you pass it\n\t\tFileReader fr = new FileReader(path);\n\t\tBufferedReader textReader = new BufferedReader(fr);\n\t\t\n\t\t//Set the variable to the number of lines in the text file through the function in this class that is defined below\n\t\tnumberOfLines = readLines();\n\t\t//Creates an array of strings with size of how many lines of data there are in the file\n\t\tString[] textData = new String[numberOfLines];\n\t\t\n\t\t//Loop to read the lines from the text file for the song data\n\t\tfor (int i = 0; i < numberOfLines; i++)\n\t\t{\n\t\t\t//Read data from song file and into the string list\n\t\t\ttextData[i] = textReader.readLine();\n\t\t}\n\t\t\n\t\t//Close the BufferedReader that was opened\n\t\ttextReader.close();\n\t\t\n\t\t//Return the read data from the text file in the form of a string array\n\t\treturn textData;\n\t}",
"public static void readfile() {\r\n\t\t// read input file\r\n\t\ttry {\r\n\t\t File inputObj = new File(\"input.txt\");\r\n\t\t Scanner inputReader = new Scanner(inputObj);\r\n\t\t int i = 0;\r\n\t\t while (inputReader.hasNextLine()) {\r\n\t\t String str = inputReader.nextLine();\r\n\t\t str = str.trim();\r\n\t\t if(i == 0) {\r\n\t\t \tnumQ = Integer.parseInt(str);\r\n\t\t \torign_queries = new String[numQ];\r\n\t\t \t//queries = new ArrayList<ArrayList<String>>();\r\n\t\t }\r\n\t\t else if(i == numQ + 1) {\r\n\t\t \tnumKB = Integer.parseInt(str);\r\n\t\t \torign_sentences = new String[numKB];\r\n\t\t \t//sentences = new ArrayList<ArrayList<String>>();\r\n\t\t }\r\n\t\t else if(0 < i && i< numQ + 1) {\t\r\n\t\t \torign_queries[i-1] = str;\r\n\t\t \t//queries.add(toCNF(str));\r\n\t\t }\r\n\t\t else {\r\n\t\t \torign_sentences[i-2-numQ] = str;\r\n\t\t \t//sentences.add(toCNF(str));\r\n\t\t }\t\t \r\n\t\t i++;\r\n\t\t }\r\n\t\t inputReader.close();\r\n\t\t } catch (FileNotFoundException e) {\r\n\t\t System.out.println(\"An error occurred when opening the input file.\");\r\n\t\t }\r\n\t}",
"public static void processInput() throws IOException {\r\n\t\t\r\n\t\t//Out statement let user know the input file is being read\t\r\n\t\tScanner scnr;\r\n\t\tString[] splitString;\r\n\t\t\r\n\t\tFile file = new File(\"Project_04_Input01.txt\");\r\n\t\tscnr = new Scanner(file);\r\n\t\t\r\n\t\tSystem.out.println(\"Reading data from \" + file + \"...\");\r\n\t\t\r\n\t\twhile(scnr.hasNextLine()) {\r\n\t\t\tString line = scnr.nextLine();\r\n\t\t\tsplitString = line.split(\",\");\r\n\r\n\t\t\tif (splitString[0].contains(\"STUDENT\")) {\r\n\t\t\t\t\r\n\t\t\t\t// Call processStudentData\r\n\t\t\t\tprocessStudentData(splitString);\r\n\t\t\t\tSystem.out.println(\"'STUDENT' has been found in the file.\");\r\n\r\n\t\t\t} // End if\r\n\t\t\t\r\n\t\t\telse if (splitString[0].contains(\"GRADEITEM\") ) {\r\n\t\t\t\t\r\n\t\t\t\t// Call processGradeItemData\r\n\t\t\t\tprocessGradeItemData(splitString);\r\n\t\t\t\tSystem.out.println(\"'GRADEITEM' has been found in the file.\");\r\n\t\t\t\t\r\n\t\t\t} // End if\r\n\t\t} // End while\r\n\t\t\r\n\t\t// Close the file\r\n\t\tscnr.close();\r\n\t\t\t\r\n\t}",
"private void ReadFile (String filename)\n\t{\n\t\ttry\n\t\t{\n\t\t\tScanner input = new Scanner(new FileReader(filename));\n\t\t\tScanner line = new Scanner(input.nextLine());\n\t\t\twhile (input.hasNextLine() || line.hasNext())\n\t\t\t{\n\t\t\t\tPolygon polygon = new Polygon ();\n\t\t\t\twhile (line.hasNextDouble())\n\t\t\t\t{\n\t\t\t\t\tdouble tmpX = line.nextDouble(),\n\t\t\t\t\t\t\ttmpY = line.nextDouble(),\n\t\t\t\t\t\t\ttmpZ = line.nextDouble();\n\t\t\t\t\tpolygon.add(new Vec4(tmpX, tmpY, tmpZ));\n\t\t\t\t}\n\t\t\t\tif (input.hasNextLine())\n\t\t\t\t{\n\t\t\t\t\tline = new Scanner(input.nextLine());\n\t\t\t\t}\n\t\t\t\tobject.add(polygon);\n\t\t\t}\n\t\t\tinput.close();\n\t\t\tline.close();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public String[] read()\n {\n ArrayList<String> input = new ArrayList<String>();\n try\n {\n dir = new File(contextRef.getFilesDir(), filename);\n if (dir.exists())\n {\n Scanner contacts = new Scanner(dir);\n while (contacts.hasNextLine())\n {\n input.add(contacts.nextLine());\n }\n contacts.close();\n }\n }catch (Exception ex)\n {\n //debug(\"read file contents failure\");\n debug = \"test read failure\";\n }\n return input.toArray(new String[1]);\n }",
"@Parameterized.Parameters\r\n\tpublic static Collection<Object[]> intersectionTests() throws IOException {\n\t\tInteger array1[][] = new Integer[6][];\r\n\t\tInteger array2[][] = new Integer[6][];\r\n\t\tInteger array3[][] = new Integer[6][];\r\n\t\tInteger array4[][] = new Integer[6][];\r\n\t\tInteger array5[][] = new Integer[6][];\r\n\t\tInteger array6[][] = new Integer[6][];\r\n\t\tInteger array7[][] = new Integer[6][];\r\n\t\tInteger array8[][] = new Integer[6][];\r\n\t\tInteger array9[][] = new Integer[6][];\r\n\t\tInteger array10[][] = new Integer[6][];\r\n\t\t \r\n\t\t// read text file \r\n\t\tBufferedReader br = new BufferedReader(new FileReader(\"test_input.txt\"));\r\n\t\tint counter=0; // row counter \r\n\t\tString line = null;\r\n\t\tint row=0;\r\n\t do {\r\n\t \t while ((line= br.readLine()) !=null) { // while file is not null\r\n\t \t\t // if line is empty set row back to zero and increase counter \r\n\t \t\t if (line.isEmpty()) {\r\n\t \t\t \r\n\t \t\t\t row=0;\r\n\t \t\t\t counter++; \r\n\t \t\t\t break; \r\n\t \t\t }\r\n\t \t\t \r\n\t \t\t String[] values = line.split(\",\"); // read file values\r\n\t\t\t\t Integer[] intValues = new Integer[values.length];\r\n\t \t\t \r\n\t\t\t\t // parse strings to int values \r\n\t\t\t\t for (int i=0; i<intValues.length; i++) {\r\n\t\t\t\t\t \r\n\t\t\t\t\t intValues[i] = Integer.parseInt(values[i]);\r\n\t\t\t\t\t \r\n\t\t\t\t } \r\n\t\t\t\t // store first set of values in first array\r\n\t\t\t\t if (counter==0){ \r\n\t\t\t\t\t array1[row]=intValues;\r\n\t\t\t\t\t\r\n\t\t\t\t }// store second set of values in 2nd array \r\n\t\t\t\t else if (counter==1) {\r\n\t\t\t\t\t \r\n\t\t\t\t\t array2[row]=intValues;\r\n\t\t\t\t\t\r\n\t\t\t\t }// store third set of values in 3rd array \r\n\t\t\t\t else if (counter==2) {\r\n\t\t\t\t\t \r\n\t\t\t\t\t array3[row]=intValues;\r\n\t\t\t\t\t \r\n\t\t\t\t }// store forth set of values in 4th array \r\n\t\t\t\t else if (counter==3) {\r\n\t \r\n\t\t\t\t\t array4[row]=intValues;\r\n\t\t\t\t\t\r\n\t\t\t\t }// store fifth set of values in 5th array \r\n\t\t\t\t else if (counter==4) {\r\n\t \r\n\t\t\t\t\t array5[row]=intValues;\r\n\t\t\t\t\t\r\n\t\t\t\t }// store sixth set of values in 5th array \r\n\t\t\t\t else if (counter==5) {\r\n\t\t\t\t\t \r\n\t\t\t\t\t array6[row]=intValues;\r\n\t\t\t\t\t\r\n\t\t\t\t }// store seventh set of values in 6th array \r\n\t\t\t\t else if (counter==6) {\r\n\t \r\n\t\t\t\t\t array7[row]=intValues;\r\n\t\t\t\t\t\r\n\t\t\t\t }// store eighth set of values in 7th array \r\n\t\t\t\t else if (counter==7) {\r\n\t \r\n\t\t\t\t\t array8[row]=intValues;\r\n\t\t\t\t\t\r\n\t\t\t\t }// store ninth set of values in 8th array \r\n\t\t\t\t else if (counter==8) {\r\n\t \r\n\t\t\t\t\t array9[row]=intValues;\r\n\t\t\t\t\t\r\n\t\t\t\t }\r\n\t\t\t\t else// store tenth set of values in 10th array \r\n\t\t\t\t\t array10[row]=intValues;\r\n\t\t\t\t\r\n\t\t\t\trow++; // increment row \r\n\t \t } \r\n\t }while(line !=null); \r\n\t\t \r\n\t\t\t \r\n\t\t\treturn Arrays.asList(new Object[][] { // create an object array that\t\t\t\t\t\t\r\n\t\t\t\t{array1},{array2},{array3},{array4}, // 10 sets of data \r\n\t\t\t\t{array5},{array6},{array7},\r\n\t\t\t\t{array8},{array9},{array10},\r\n\t\t\t}); \r\n\t\t}",
"public static void readNumbers(String filePath, int[] nums) {\n JSONParser parser = new JSONParser();\n try {\n JSONObject jsonObject = (JSONObject) parser.parse(new FileReader(filePath));\n nums[0] = Integer.parseInt((String) jsonObject.get(\"number of primary\"));\n nums[1] = Integer.parseInt((String) jsonObject.get(\"number of backup\"));\n } catch (IOException | ParseException e) {\n e.printStackTrace();\n }\n\n }",
"public void readData() throws IOException {\n\t\tdataFile = new byte[inputStream.available()];\n\n\t\tint res = inputStream.read(dataFile);\n\t\tif (res != dataFile.length)\n\t\t\tthrow new IOException(\"Wave data reading failed\");\n\n\t\tdataSample = new byte[dataFile.length - headerSize];// copy data array to decode\n\t\tfor (int i = 0; i < dataSample.length; i++) {\n\t\t\tdataSample[i] = dataFile[i + headerSize];\n\t\t}\n\n\t\tdataSampleInt = new int[dataSample.length / header.getBlockAlign()];\n\t\tint index = 0;\n\t\tfor (int i = 0; i < header.getSubChunk2Size() - headerSize; i += header.getBlockAlign()) { // write sample data\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// to int array\n\t\t\tint buf = ((dataSample[i] & 0xFF) << 24) + ((dataSample[i + 1] & 0xFF) << 16)\n\t\t\t\t\t+ ((dataSample[i + 2] & 0xFF) << 8) + (dataSample[i + 3] & 0xFF);\n\t\t\tdataSampleInt[index] = buf;\n\t\t\tindex++;\n\t\t}\n\t}"
] | [
"0.6684084",
"0.65013796",
"0.6406973",
"0.6305909",
"0.6276239",
"0.60917825",
"0.6056825",
"0.60178643",
"0.599822",
"0.5991653",
"0.5948662",
"0.5939707",
"0.5933139",
"0.59027284",
"0.5896708",
"0.58714455",
"0.58434916",
"0.5835806",
"0.58096695",
"0.57961315",
"0.5790978",
"0.57883334",
"0.57649666",
"0.57285106",
"0.5699899",
"0.56945187",
"0.5686453",
"0.5643118",
"0.5628645",
"0.5628608",
"0.5625598",
"0.5615719",
"0.5611274",
"0.56007445",
"0.55942416",
"0.5585078",
"0.55742586",
"0.5553165",
"0.5548133",
"0.55471575",
"0.55387586",
"0.553391",
"0.55294263",
"0.5527078",
"0.55265474",
"0.552208",
"0.5512275",
"0.55076337",
"0.54941016",
"0.5483594",
"0.5477729",
"0.547703",
"0.54757804",
"0.54587996",
"0.5452342",
"0.54518384",
"0.544043",
"0.54304177",
"0.54293275",
"0.5428939",
"0.5427039",
"0.54123735",
"0.54073626",
"0.5398931",
"0.5397781",
"0.5396494",
"0.5390879",
"0.53859735",
"0.5380002",
"0.5377454",
"0.5364987",
"0.5359702",
"0.5350885",
"0.5350307",
"0.5339504",
"0.5337688",
"0.53327286",
"0.5325995",
"0.53182036",
"0.53128767",
"0.5309308",
"0.5299887",
"0.528992",
"0.52690935",
"0.52660567",
"0.5264554",
"0.5260329",
"0.52583295",
"0.52571785",
"0.5256691",
"0.5252436",
"0.52491796",
"0.5248734",
"0.52444285",
"0.52387476",
"0.5237192",
"0.5233593",
"0.5233568",
"0.5231132",
"0.5227028",
"0.5224264"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Integer add(Role role) {
return roleDao.add(role);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Integer update(Role role) {
return roleDao.update(role);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<Role> list(Map<String, Object> map) {
return roleDao.list(map);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Integer getTotal(Map<String, Object> map) {
return roleDao.getTotal(map);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"public void mo55254a() {\n }",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}"
] | [
"0.66730285",
"0.65698135",
"0.6524193",
"0.64818907",
"0.6477969",
"0.6459897",
"0.64150065",
"0.6378023",
"0.62785167",
"0.6256323",
"0.62391806",
"0.6225302",
"0.6203955",
"0.6196986",
"0.6196986",
"0.6193411",
"0.6188864",
"0.6175446",
"0.61352557",
"0.6129083",
"0.6081512",
"0.6078478",
"0.604346",
"0.6027257",
"0.6019896",
"0.6001062",
"0.5969694",
"0.5969694",
"0.59695363",
"0.5950136",
"0.5940857",
"0.5923273",
"0.59109026",
"0.5904841",
"0.58943695",
"0.58871347",
"0.5884626",
"0.5871665",
"0.5857174",
"0.58529896",
"0.58477926",
"0.5827649",
"0.58111745",
"0.5810771",
"0.58093345",
"0.58093345",
"0.58016413",
"0.5792614",
"0.57915145",
"0.57915145",
"0.57915145",
"0.57915145",
"0.57915145",
"0.57915145",
"0.579047",
"0.5788485",
"0.5783461",
"0.5783461",
"0.57756454",
"0.57756454",
"0.57756454",
"0.57756454",
"0.57756454",
"0.5762863",
"0.57603353",
"0.57603353",
"0.5751224",
"0.5751224",
"0.5751224",
"0.5751004",
"0.573491",
"0.573491",
"0.573491",
"0.572175",
"0.5717107",
"0.5717079",
"0.5717079",
"0.5717079",
"0.5717079",
"0.5717079",
"0.5717079",
"0.5717079",
"0.5716174",
"0.5715048",
"0.5704484",
"0.5700041",
"0.5699844",
"0.56887585",
"0.56792545",
"0.5674781",
"0.56728446",
"0.56702185",
"0.5662837",
"0.5657697",
"0.56568635",
"0.56568635",
"0.56568635",
"0.5656818",
"0.5655768",
"0.56533396",
"0.56532913"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Role findById(Integer id) {
return roleDao.findById(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Integer delete(Integer id) {
return roleDao.delete(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
An example of how to validate the worksheet column cells. | @Override
protected void validateColumn(WorksheetColumn worksheetColumn,
String changedValue) {
if ("foo".equals(changedValue)) {
worksheetColumn.setErrorKey("foo.error");
} else {
worksheetColumn.removeError();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void validateCell( int row, int column )\n {\n }",
"@Test\r\n public void Test006TakeUserInputInValidColumn()\r\n {\r\n gol.input = new Scanner(new ByteArrayInputStream(\"2 1 2 20 2 3 2 4 -1\".getBytes()));\r\n gol.takeUserInput();\r\n assertTrue(gol.grid[2][1] == 1 && gol.grid[2][3] == 1 && gol.grid[2][4] == 1);\r\n }",
"@Test\r\n public void Test007TakeUserInputInValidRowColumn()\r\n {\r\n gol.input = new Scanner(new ByteArrayInputStream(\"2 1 20 20 2 3 2 4 -1\".getBytes()));\r\n gol.takeUserInput();\r\n assertTrue(gol.grid[2][1] == 1 && gol.grid[2][3] == 1 && gol.grid[2][4] == 1);\r\n }",
"private Double validateOnColumns(Matrix vInputs, Matrix vLabels, List<Integer> columns, SupervisedLearner model)\n\t{\n\t\tMatrix inputs = vInputs.selectColumns(columns);\n\t\t\n\t\tdouble score = Evaluator.runEvaluators(inputs, vLabels, model, true, \n\t\t\t\tCollections.singletonList(evaluator))\n\t\t\t\t.getScores(evaluator.getClass()).get(0);\n\t\n\t\t// Make sure that increasing scores are better.\n\t\tif (evaluator.higherScoresAreBetter())\n\t\t\treturn score;\n\t\treturn 1.0 - score;\n\t}",
"public boolean validateColumns()\n {\n return this.validateColumns(DBAdmin.VALIDATE_DISPLAY_ERRORS | DBAdmin.VALIDATE_DISPLAY_WARNINGS);\n }",
"private void validate() {\n for (DBRow row : rows) {\n for (DBColumn column : columns) {\n Cell cell = Cell.at(row, column);\n DBValue value = values.get(cell);\n notNull(value,\"Cell \" + cell);\n }\n }\n }",
"public boolean supportsColumnCheck() {\n \t\treturn true;\n \t}",
"private int checkColumn() {\n for (int i = 0; i < 3; i++) {\n if ((this.board[i][0] == this.board[i][1]) && (this.board[i][0] == this.board[i][2])) {\n return this.board[i][0];\n }\n }\n return 0;\n }",
"public abstract boolean checkIfCellHasValue(int row, int col);",
"public static boolean validInput(int columnnumber){ //determine if column chosen is valid, and if user has won or not \r\n if(columnnumber>=0&&columnnumber<8){\r\n for(int i = 0; i<=5; i++){\r\n if(arrayCircles[i][columnnumber-1].getColor()==Color.white){ //if there is still open space left in the column, return true\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }",
"protected void checkColumn(int column) {\n\tif (column < 0 || column >= columns) throw new IndexOutOfBoundsException(\"Attempted to access \"+toStringShort()+\" at column=\"+column);\n}",
"private Boolean isValidColumnMatrix(SimpleMatrix matrix) {\n\t\tInteger nrows = matrix.numRows();\n\t\tInteger ncols = matrix.numCols();\n\n\t\treturn (ncols == 1) && (nrows == 3);\n\t}",
"private void validate(int row, int col) {\n if (!isInGrid(row, col)) {\n throw new IllegalArgumentException(\"Row : \" + row + \" Col : \" + col + \" is not in percolation(\" + size + \")\");\n }\n }",
"private void verifyIndividualBatchColumns() {\n for (final String element : BATCH_COLUMNS) {\n Log.altVerify(true, lblBatchColumnName(element).exists(),\n \"Check that column '\" + element + \"' is exist\");\n }\n }",
"public boolean validateColumns(int validateMask)\n {\n return this.validateColumns(validateMask, false);\n }",
"private void validate(int row, int col)\n {\n if (row <= 0 || row > gridSize) throw new IllegalArgumentException(\"row index out of bounds\");\n if (col <= 0 || col > gridSize) throw new IllegalArgumentException(\"col index out of bounds\");\n }",
"private boolean validate(int row, int col) {\n if (row < 1 || row > this.n || col < 1 || col > this.n) {\n throw new IllegalArgumentException(\"row \" + row + \" col \" + col + \" is out of the grid.\");\n }\n else return true;\n }",
"static boolean isValid(int row, int col)\n{\n\t// return true if row number and\n\t// column number is in range\n\treturn (row >= 0) && (row < ROW) &&\n\t\t(col >= 0) && (col < COL);\n}",
"@Test\n\tvoid testExcelSheetColumnNumber() {\n\t\tassertEquals(1, new ExcelSheetColumnNumber().titleToNumber(\"A\"));\n\t\tassertEquals(28, new ExcelSheetColumnNumber().titleToNumber(\"AB\"));\n\t\tassertEquals(701, new ExcelSheetColumnNumber().titleToNumber(\"ZY\"));\n\t\tassertEquals(50835706, new ExcelSheetColumnNumber().titleToNumber(\"DGFHSL\"));\n\t}",
"protected void checkColumnCount(int column)\n {\n if (column >= COLUMN_COUNT)\n throw new BasicException\n (\"The column number in the table is not right\");\n }",
"private void validateRowAndColumn(int row, int col) {\n // row or column must be in range [1, N]\n if ((row < 1 || row > size) || (col < 1 || col > size)) {\n throw new IllegalArgumentException(\"wrong row or column\");\n }\n }",
"@Test\n public void testColumnControlInvisibleColumns() {\n final JXTable table = new JXTable(sortableTableModel);\n // columns set to invisible before setting the columnControl\n // will not be inserted into the column control's list\n// table.getColumnExt(\"Last Name\").setVisible(false);\n table.setColumnControlVisible(true);\n int totalColumnCount = table.getColumnCount();\n final TableColumnExt priorityColumn = table.getColumnExt(\"First Name\");\n priorityColumn.setVisible(false);\n ColumnControlButton columnControl = (ColumnControlButton) table.getColumnControl();\n assertNotNull(\"popup menu not null\", columnControl.popup);\n int columnMenuItems = 0;\n Component[] items = ((DefaultColumnControlPopup) columnControl.getColumnControlPopup()).getPopupMenu().getComponents();\n for (int i = 0; i < items.length; i++) {\n if (!(items[i] instanceof JMenuItem)) {\n break;\n }\n columnMenuItems++;\n }\n // wrong assumption - has separator and actions!\n assertEquals(\"menu items must be equal to columns\", totalColumnCount, \n columnMenuItems);\n JCheckBoxMenuItem menuItem = (JCheckBoxMenuItem) ((DefaultColumnControlPopup) columnControl.getColumnControlPopup()).getPopupMenu()\n .getComponent(0);\n // sanit assert\n assertEquals(priorityColumn.getHeaderValue(), menuItem.getText());\n assertEquals(\"selection of menu must be equal to column visibility\", \n priorityColumn.isVisible(), menuItem.isSelected());\n }",
"private boolean columnCheck() {\n\t\tfor(int col = 0; col < puzzle[0].length; col++) {\n\t\t\tfor(int i = 0; i < puzzle[0].length; i++) {\n\t\t\t\tif(puzzle[i][col] != 0) {\n\t\t\t\t\tfor(int j = i + 1; j < puzzle[0].length; j++) {\n\t\t\t\t\t\tif(puzzle[i][col] == puzzle[j][col])\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"@Test\r\n\tpublic void testColumn() {\n\t\tColumn testColumn = new Column();\r\n\t\t\r\n\t\t// test if we can place a non-king card onto the empty stack\r\n\t\tassertFalse(testColumn.isValidMove(deckCards.get(1)));\r\n\t\t\r\n\t\t// test if we can place a king onto an empty stack\r\n\t\t// remember testStack starts at 0 not 1, so kings are at position 12\r\n\t\tassertTrue(testColumn.isValidMove(deckCards.get(12)));\r\n\t\t\r\n\t\t// add the king to the stack\r\n\t\tassertEquals(deckCards.get(12), testColumn.push(deckCards.get(12)));\r\n\t\t\r\n\t\t// now test can we add the same suit queen\r\n\t\tassertFalse(testColumn.isValidMove(deckCards.get(12)));\r\n\t\t\r\n\t\t// now test if can add an off-suit different color queen\r\n\t\tassertTrue(testColumn.isValidMove(deckCards.get(37)));\r\n\t\t\r\n\t\t// place the card to the stack\r\n\t\tassertEquals(deckCards.get(37), testColumn.push(deckCards.get(37)));\r\n\t\t\r\n\t\t// add a card to the stack via add method as if being dealt\r\n\t\ttestColumn.addCard(deckCards.get(40));\r\n\t\t\r\n\t\t// now check if that changes what will be accepted\r\n\t\tassertFalse(testColumn.isValidMove(deckCards.get(41)));\r\n\t}",
"private void validateColumns(ConnectorTableMetadata meta)\n {\n // Here, we make sure the user has specified at least one non-row ID column\n // Accumulo requires a column family and qualifier against a row ID, and these values\n // are specified by the other columns in the table\n if (meta.getColumns().size() == 1) {\n throw new InvalidParameterException(\"Must have at least one non-row ID column\");\n }\n\n // Check all the column types, and throw an exception if the types of a map are complex\n // While it is a rare case, this is not supported by the Accumulo connector\n ImmutableSet.Builder<String> columnNameBuilder = ImmutableSet.builder();\n for (ColumnMetadata column : meta.getColumns()) {\n if (Types.isMapType(column.getType())) {\n if (Types.isMapType(Types.getKeyType(column.getType()))\n || Types.isMapType(Types.getValueType(column.getType()))\n || Types.isArrayType(Types.getKeyType(column.getType()))\n || Types.isArrayType(Types.getValueType(column.getType()))) {\n throw new PrestoException(VALIDATION,\n \"Key/value types of a MAP column must be plain types\");\n }\n }\n\n columnNameBuilder.add(column.getName().toLowerCase());\n }\n\n ImmutableSet<String> columnNames = columnNameBuilder.build();\n\n // Validate the columns are distinct\n if (columnNames.size() != meta.getColumns().size()) {\n throw new PrestoException(VALIDATION, \"Duplicate column names are not supported\");\n }\n\n // Column generation is for internal tables only\n if (AccumuloTableProperties.getColumnMapping(meta.getProperties()) == null &&\n AccumuloTableProperties.isExternal(meta.getProperties())) {\n throw new PrestoException(VALIDATION,\n \"Column generation for external tables is not supported, must specify \" +\n AccumuloTableProperties.COLUMN_MAPPING);\n }\n }",
"public static int columnCheck(String guessColumn) {\n char c=' ';\n do{\n c = guessColumn.charAt(0);\n switch (c) {\n case 'A':\n \n break;\n case 'B':\n \n break;\n case 'C':\n \n break;\n case 'D':\n \n break;\n case 'E':\n \n break;\n default:\n System.out.println(\"Invalid Option\");\n \n }\n }while (c != 'A' && c != 'B' && c != 'C' && c != 'D' && c != 'E');\n \n int colLocation = (c - 'A') + 1;\n return colLocation;\n }",
"private void validateColumnAttributes (String className, \n\t\t\t\tString fieldName, ColumnElement column)\n\t\t\t\tthrows ModelValidationException\n\t\t\t{\n\t\t\t\tString keyName = null;\n\n\t\t\t\t// column must be numeric type and non-nullable\n\t\t\t\tif (column.isNullable() || !column.isNumericType())\n\t\t\t\t\tkeyName = \"util.validation.version_field_column_type_invalid\";\t\t// NOI18N\n\t\t\t\telse\t// column must be non-PK and non-FK column\n\t\t\t\t{\n\t\t\t\t\tTableElement table = column.getDeclaringTable();\n\t\t\t\t\tUniqueKeyElement[] uks = table.getUniqueKeys();\n\t\t\t\t\tForeignKeyElement[] fks = table.getForeignKeys();\n\t\t\t\t\tint i, count = ((uks != null) ? uks.length : 0);\n\n\t\t\t\t\tfor (i = 0; i < count; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tUniqueKeyElement uk = uks[i];\n\n\t\t\t\t\t\tif (uk.isPrimaryKey() && Arrays.asList(\n\t\t\t\t\t\t\tuk.getColumns()).contains(column))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tkeyName = \"util.validation.version_field_column_pk_invalid\";\t\t// NOI18N\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tcount = ((fks != null) ? fks.length : 0);\n\t\t\t\t\tfor (i = 0; i < count; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tForeignKeyElement fk = fks[i];\n\n\t\t\t\t\t\tif (Arrays.asList(fk.getLocalColumns()).\n\t\t\t\t\t\t\tcontains(column))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tkeyName = \"util.validation.version_field_column_fk_invalid\";\t\t// NOI18N\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (keyName != null)\n\t\t\t\t{\n\t\t\t\t\tthrow new ModelValidationException(\n\t\t\t\t\t\tgetModel().getField(className, fieldName), \n\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), keyName, \n\t\t\t\t\t\tnew Object[]{column.getName(), fieldName, className}));\n\t\t\t\t}\n\t\t\t}",
"public abstract boolean checkCage(int cellValue, int row, int col);",
"@Override\n public boolean check() {\n String[][] data = raw();\n // And just check if the first row (the header data)\n // corresponds with the ABSExcel model enum. Iff that\n // is true we will return true.\n for(int i = 0; i < ABSColumn.values().length; i++) {\n String columnName = data[0][i].replaceAll(\"[- ]+\", \"\").toUpperCase();\n // If we have a mismatch somewhere, return false.\n if(!columnName.equals(ABSColumn.values()[i].toString())) {\n return false;\n }\n }\n return true;\n }",
"public boolean validatePlay(int column, char[][] grid) {\n //Where given column is between 0 - 6\n if (column < 0 || column > grid[0].length) {\n return false;\n }\n\n //Verifying whether given column is full\n if (grid[0][column] != ' ') {\n System.out.println();\n System.out.println(\"Entered column is already full.. Kindly enter the other column\");\n return false;\n }\n\n return true;\n }",
"private static boolean colAreInvalid(int[][] grid) {\n\t\tfor(int i = 0; i < BOUNDARY; i++) {\n\t\t\tList<Integer> row = new ArrayList<>();\n\t\t\tfor(int j = 0; j < BOUNDARY; j++) {\n\t\t\t\trow.add(grid[i][j]);\n\t\t\t}\n\t\t\tif(collectionHasRepeat(row)) return true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean checkCol(Square[][] square)\n {\n int sum = 0;\n for(int r = 0; r < square.length; r++)\n {\n sum += square[r][colNum].getValue();\n }\n return sum == 45;\n }",
"private boolean checkColumn(int i, int j, int n){\n\t\tfor(int k = 0; k < 9; k++){\n\t\t\tif(k == i){\n\t\t\t}else if(sudoku[k][j] == n){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public void validate_table_columns( String element_start , WebDriver driver , String element_end , String class_name , String table_element) \n\t{\n\t\t//Initialize.\n\t\tList<String> xls_col_names = ExcelCache.getExpectedListData(class_name , table_element );\n\t\tArrayList<String> ui_col_names = new ArrayList<String>();\t\n\t\tint rows = driver.findElements(By.xpath(element_start+element_end)).size();\n\n\t\t//Comparing No of columns\n\t\tlogger.info(\"-----Comparing the table columns size----- \");\n\t\tlogger.info(\"Actual table columns size from UI: \"+rows);\n\t\tlogger.info(\"Expected table columns size from Excel: \"+xls_col_names.size());\n\t\tVerify.verifyEquals(rows, xls_col_names.size() , \"No of columns are not same\");\n\t\tWebDriverWait wait = new WebDriverWait(driver, 10);\n\n\t\t//Iterating for fetching elements from UI.\n\t\tfor (int i = 1 ; i <= rows ; i ++)\n\t\t{\n\t\t\tString locator = element_start +\"[\" + i + \"]\" + element_end;\n\n\n\t\t\tWebElement row_names = driver.findElement(By.xpath(locator));\n\t\t\twait.until(ExpectedConditions.visibilityOf(row_names));\n\t\t\tui_col_names.add(row_names.getText().trim());\n\n\n\t\t}\n\t\t//Comparing List (Column Names)\n\t\tlogger.info(\"Actual table columns names from UI: \"+ui_col_names);\n\t\tlogger.info(\"Expected table columns names from Excel: \"+xls_col_names);\n\t\tVerify.verifyEquals(xls_col_names.containsAll(ui_col_names) , true , \"All Column Names does not match\");\t\t\n\t}",
"private void findColumnBoundaries(){\n int columnBoundaryX1 = Integer.MAX_VALUE;\n int columnBoundaryX2 = Integer.MIN_VALUE;\n for(ArrayList<Element> cell : cells){\n String pos;\n String[] positions;\n\n Element firstWordInCell = cell.get(0);\n Element lastWordInCell = cell.get(cell.size()-1);\n\n pos = firstWordInCell.attr(\"title\");\n positions = pos.split(\"\\\\s+\");\n int x1 = Integer.parseInt(positions[1]);\n if(x1 < columnBoundaryX1){\n columnBoundaryX1 = x1;\n this.columnBoundaryX1 = x1;\n }\n\n pos = lastWordInCell.attr(\"title\");\n positions = pos.split(\"\\\\s+\");\n int x2 = Integer.parseInt(positions[3]);\n if(x2 > columnBoundaryX2){\n columnBoundaryX2 = x2;\n this.columnBoundaryX2 = x2;\n }\n }\n }",
"private void verifyReportColumns() {\n for (final String element : REPORT_COLUMNS) {\n Log.altVerify(true, lblReportColumnName(element).exists(),\n \"Check that column '\" + element + \"' is exist\");\n }\n }",
"private Object isValidColumnVector(List<List<Double>> vector) {\n\t\tInteger nrows = vector.size();\n\n\t\tList<Integer> rowLengths = vector.stream().map(List::size).toList();\n\t\tInteger ncols = rowLengths.stream().mapToInt(Integer::intValue).sum() / rowLengths.size();\n\n\t\treturn (nrows == 3) && (ncols == 1);\n\t}",
"private boolean checkColumn(){\n boolean check = false;\n if (!FormatUtils.isBlankField(user_name) && !FormatUtils.isBlankField(user_id) && !FormatUtils.isBlankField(user_phone) && !FormatUtils.isBlankField(user_password) && !FormatUtils.isBlankField(user_password_confirm))\n {\n //make sure user password the same as user password confirm\n if(user_password.getText().toString().equals(user_password_confirm.getText().toString())) {\n //check format\n check = true;\n }else {\n check = false;\n }\n }else {\n check =false;\n }\n\n return check;\n }",
"@Test\n\tpublic void testValidateColumnList() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateColumnList(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateColumnList(\"Invalid value.\");\n\t\t\t\tfail(\"The column list was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSet<SurveyResponse.ColumnKey> columnList = \n\t\t\t\t\tSurveyResponseValidators.validateColumnList(InputKeys.LIST_ITEM_SEPARATOR);\n\t\t\t\t\n\t\t\t\tif(columnList.size() != 0) {\n\t\t\t\t\tfail(\"The column list was not empty: \" + columnList);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\tfail(\"A list containing only a '\" + InputKeys.LIST_ITEM_SEPARATOR + \"' threw an exception: \" + e.getMessage());\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSet<SurveyResponse.ColumnKey> columnList = \n\t\t\t\t\tSurveyResponseValidators.validateColumnList(InputKeys.LIST_ITEM_SEPARATOR + InputKeys.LIST_ITEM_SEPARATOR);\n\t\t\t\t\n\t\t\t\tif(columnList.size() != 0) {\n\t\t\t\t\tfail(\"The column list was not empty: \" + columnList);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\tfail(\"A list containing two '\" + InputKeys.LIST_ITEM_SEPARATOR + \"'s threw an exception: \" + e.getMessage());\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSet<SurveyResponse.ColumnKey> columnList = \n\t\t\t\t\tSurveyResponseValidators.validateColumnList(InputKeys.LIST_ITEM_SEPARATOR + InputKeys.LIST_ITEM_SEPARATOR + InputKeys.LIST_ITEM_SEPARATOR);\n\t\t\t\t\n\t\t\t\tif(columnList.size() != 0) {\n\t\t\t\t\tfail(\"The column list was not empty: \" + columnList);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\tfail(\"A list containing three '\" + InputKeys.LIST_ITEM_SEPARATOR + \"'s threw an exception: \" + e.getMessage());\n\t\t\t}\n\n\t\t\tint columnKeysAdded = 0;\n\t\t\tStringBuilder columnListBuilder = new StringBuilder();\n\t\t\tfor(SurveyResponse.ColumnKey columnKey : SurveyResponse.ColumnKey.values()) {\n\t\t\t\tSet<SurveyResponse.ColumnKey> columnList =\n\t\t\t\t\tSurveyResponseValidators.validateColumnList(columnKey.toString());\n\t\t\t\t\n\t\t\t\tif(columnList.size() != 1) {\n\t\t\t\t\tfail(\"The column key was not returned: \" + columnList.size());\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif(! columnKey.equals(columnList.iterator().next())) {\n\t\t\t\t\t\tfail(\"The column key returned was not the one we gave: \" + columnList.iterator().next().toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcolumnListBuilder.append(columnKey + InputKeys.LIST_ITEM_SEPARATOR);\n\t\t\t\tcolumnKeysAdded++;\n\t\t\t\tcolumnList = SurveyResponseValidators.validateColumnList(columnListBuilder.toString());\n\t\t\t\tif(columnList.size() != columnKeysAdded) {\n\t\t\t\t\tfail(\"The list of column keys returned doesn't match the number we have added.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}",
"boolean isLegalCol (int col, int row, int num) {\n\t\tfor (int r = 0; r<9; r++){\n\t\t\tif(r != row) {\n\t\t\t\tif (boardArray[col][r]==num){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\n\t}",
"@Test\n\tpublic void columnWin_test1()\n\t{\n\t\tb.set(0,1, 'x');\n\t\tb.set(1,0, 'o');\n\t\tb.set(1,1, 'x');\n\t\tassertFalse(b.columnWin());\t\n\t}",
"@Test\n\tpublic void columnWin_test()\n\t{\n\t\tb.set(0,1, 'x');\n\t\tb.set(1,0, 'o');\n\t\tb.set(1,1, 'x');\n\t\tb.set(2,2, 'o');\n\t\tb.set(2,1, 'x');\n\t\tassertTrue(b.columnWin());\t\n\t}",
"private boolean esColumnaValida(int columna) {\n return (columna>=0 && columna<=casillas[0].length);\n }",
"boolean isValidMove(int col);",
"private boolean isValid(int row, int col) {\n if (row < 1 || row > this.side || col < 1 || col > this.side)\n return false;\n return true;\n }",
"public void searchAndVerifyColumnHeader()\r\n\t{\r\n\t\tselectCriteriaAndSearchValue();\r\n\t\tsearchColumnHeaderValidation();\r\n\t}",
"private static void checkColumn(int pos, int color) {\n int ppos = pos;\n while (pos - ColorFrames.BOARD_DIM > 0)\n pos -= ColorFrames.BOARD_DIM;\n\n check(pos, ppos, ColorFrames.BOARD_DIM, color);\n }",
"public static boolean validationcheck(int row, int column, String piecevalue){\n\t\tif(board[row][column].equals(\"x\")||board[row][column].equals(\"o\")){\n\t\t\treturn false;\n\t\t}\n\t\telse{\n\t\t\treturn true;\n\t\t}\n\t}",
"public void validateAfterParse() \r\n\t{\n\t\tValidate.fieldNotBlank(getName(), \"name\");\r\n\t\t\r\n\t\t//Must have columns and they can't be null\r\n\t\tValidate.fieldNotEmptyWithNoNullElements(getColumns(), \"columns\");\r\n\t\t\r\n\t\tint numPrimaryKeysDefined = 0;\r\n\t\t\r\n\t\tfor (ColumnDefinition def : getColumns())\r\n\t\t{\r\n\t\t\tif (def.isPrimaryKey())\r\n\t\t\t{\r\n\t\t\t\tnumPrimaryKeysDefined++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Can only have 1 PK\r\n\t\tValidate.isTrue(numPrimaryKeysDefined == 1);\r\n\r\n\t\tfor (ColumnDefinition def : getColumns())\r\n\t\t{\r\n\t\t\tdef.validateAfterParse();\r\n\t\t}\r\n\t\t\r\n\t\t//Check over indexes, make sure each column name for the indexes actually exists\r\n\t\tfor(IndexDefinition def : getIndexes())\r\n\t\t{\r\n\t\t\tfor(String idxColName : def.getColumnNames())\r\n\t\t\t{\r\n\t\t\t Validate.isTrue(getColumns().contains(ColumnDefinition.valueOf(idxColName))); //Can't use containsColumn yet as that map gets initialized in postParse()\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void validateHeaderColumns() {\n\t\tString assigned = getAssignedVolunteers();\n\t\tif (!\"TotalVolunteerAssignments\".equals(assigned)) {\n\t\t\tthrow new IllegalStateException(\n\t\t\t\t\t\"The total volunteer assignments column has changed. It is now showing as \" + assigned\n\t\t\t\t\t\t\t+ \". Please update VolunteerDashboardRow\");\n\t\t}\n\t\tString unassigned = getUnassignedVolunteers();\n\t\tif (!\"UnassignedApplicants\".equals(unassigned)) {\n\t\t\tthrow new IllegalStateException(\n\t\t\t\t\t\"The unassigned applicants column has changed. It is now showing as \" + unassigned\n\t\t\t\t\t\t\t+ \". Please update VolunteerDashboardRow\");\n\t\t}\n\t}",
"@Test\r\n public void Test013MakeLiveCellWithnegativeColumn()\r\n {\r\n\r\n assertFalse(gol.makeLiveCell(1, -1));\r\n\r\n }",
"public void getRequiredColumn() {\n\t\trequiredColumn = sheet.getRow(0).getCell(sheet.getRow(0).getLastCellNum()-1).getColumnIndex();\n\t}",
"@Test\n\tpublic void assertColumnCount()\n\t{\n\t\tint expectedColumnCount = 2;\n\t\tint actualColumnCount = dashboardPage.getHeaderColumns().size();\n\t\terrorMessage = \"The table column count is incorrect\";\n\t\tAssert.assertEquals(actualColumnCount, expectedColumnCount, errorMessage);\n\t}",
"private void validator() throws Exception {\n if (getDBTable() == null) throw new Exception(\"getDBTable missing\");\n if (getColumnsString() == null) throw new Exception(\"getColumnsString missing\");\n if (getColumnsType() == null || getColumnsType().size() <= 0) throw new Exception(\"getColumnsType missing\");\n if (getDuplicateUpdateColumnString() == null) {\n if (getColumnsString().split(\",\").length != getColumnsType().size())\n throw new Exception(\"mismatch for type and columns\");\n\n } else {\n if (getColumnsString().split(\",\").length +\n getDuplicateUpdateColumnString().split(\",\").length != getColumnsType().size())\n throw new Exception(\"mismatch for type and columns\");\n }\n }",
"public static boolean isWrongUserColumn()\n {\n boolean isWrong=false;\n int aux; // Guarda la suma de la columna.\n \n for (int i = 0; i < BOARD_WIDTH; i++)\n {\n aux = 0; // Lo inicializamos para cada columna.\n for (int j = 0; j < BOARD_HEIGHT; j++)\n {\n aux = aux + playerBoardPos[j][i]; // Sumamos el valor de la casilla al aux.\n }\n if (!(aux == 10)) // Si el aux no tiene un 10 significa que hay un numero repetido.\n {\n isWrong = true; // Activamos el boolean de numero repetido.\n }\n }\n return isWrong;\n }",
"private boolean checkCol(int num, int col) {\n for(int row = 0; row < 5; row++){\n if(numberGrid[row][col] == num){\n return false;\n }\n }\n return true;\n }",
"public void validate_graph_data_yaxis( By element , WebDriver driver , String class_name , String table_element)\n\t{\n\t\tList<String> xls_col_names = ExcelCache.getExpectedListData(class_name , table_element );\n\t\tArrayList<String> ui_col_names = new ArrayList<String>();\t\n\n\t\tList<WebElement> listelement = driver.findElements(element);\n\t\tfor (int i=0;i<listelement.size()-1;i++)\n\t\t{\n\t\t\tWebElement elmt= listelement.get(i);\n\t\t\tString ui_innerlist=\"\";\n\t\t\tList<WebElement> listText=elmt.findElements(By.tagName(\"tspan\"));\n\t\t\tif (listText.size()>1)\n\t\t\t{\n\n\t\t\t\tfor(WebElement textobject:listText)\n\t\t\t\t{\n\t\t\t\t\tui_innerlist=ui_innerlist+textobject.getText()+\" \";\n\n\t\t\t\t}\n\t\t\t\tString ui_innerlistTrim = ui_innerlist.trim();\n\t\t\t\tui_col_names.add(ui_innerlistTrim);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\telmt= listelement.get(i);\n\t\t\t\tString ele = elmt.findElement(By.tagName(\"tspan\")).getText();\n\t\t\t\tui_col_names.add(ele);\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"Actual Values from UI:\"+ui_col_names);\n\t\tlogger.info(\"Expected values from Excel Sheet:\"+xls_col_names);\n\t\tVerify.verifyEquals(xls_col_names.containsAll(ui_col_names) , true , \"All values does not match\");\t\t\t\t\n\t}",
"public void sanityCheck() {\n\t\tif (DEBUG) {\n\t\t\tint curMaxColumnHeight = 0;\n\t\t\tint [] curWidths = new int [height];\n\t\t\tint [] curHeights = new int [width];\n\n\t\t\tfor(int i = 0; i < width; i++){\n\t\t\t\tfor(int j =0; j < height; j++){\n\t\t\t\t\tif(grid[i][j]){\n\t\t\t\t\t\tcurWidths[j]++;\n\t\t\t\t\t\tif(curHeights[i]<=j){\n\t\t\t\t\t\t\tcurHeights[i] = j + 1;\n\t\t\t\t\t\t\tif(curHeights[i] > curMaxColumnHeight){\n\t\t\t\t\t\t\t\tcurMaxColumnHeight = curHeights[i];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(!Arrays.equals(curWidths,widths)){\n\t\t\t\tthrow new RuntimeException(\"Incorrect width array\");\n\t\t\t}\n\t\t\tif(!Arrays.equals(curHeights,heights)){\n\t\t\t\tthrow new RuntimeException(\"Incorrect height array\");\n\t\t\t}\n\t\t\tif(curMaxColumnHeight != maxColumnHeight){\n\t\t\t\tSystem.out.println(curMaxColumnHeight+ \" \"+maxColumnHeight);\n\t\t\t\tthrow new RuntimeException(\"Incorrect maxColumnHeight\");\n\t\t\t}\n\t\t}\n\t}",
"private boolean checkColumn(Board board, int i, char symbol)\n {\n for (int j = 0; j < size; j++)\n if (board.array[j][i] != symbol)\n return false;\n return true;\n }",
"public void checkBounds() {\n\t\tfor (int k = 0; k < numDataCols; k++) {\n\t\t\tDashDataType<?> dtype = dataTypes[k];\n\n\t\t\tif ( dtype instanceof StringDashDataType ) {\n\t\t\t\tStringDashDataType strtype = (StringDashDataType) dtype;\n\t\t\t\tfor (int j = 0; j < numSamples; j++) {\n\t\t\t\t\tADCMessage msg = strtype.boundsCheckStandardValue(\n\t\t\t\t\t\t\t\t\t\t\t(String) stdObjects[j][k]);\n\t\t\t\t\tif ( msg != null ) {\n\t\t\t\t\t\tmsg.setRowNumber(j+1);\n\t\t\t\t\t\tmsg.setColNumber(k+1);\n\t\t\t\t\t\tmsg.setColName(userColNames[k]);\n\t\t\t\t\t\tstdMsgList.add(msg);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if ( dtype instanceof CharDashDataType ) {\n\t\t\t\tCharDashDataType chartype = (CharDashDataType) dtype;\n\t\t\t\tfor (int j = 0; j < numSamples; j++) {\n\t\t\t\t\tADCMessage msg = chartype.boundsCheckStandardValue(\n\t\t\t\t\t\t\t\t\t\t\t(Character) stdObjects[j][k]);\n\t\t\t\t\tif ( msg != null ) {\n\t\t\t\t\t\tmsg.setRowNumber(j+1);\n\t\t\t\t\t\tmsg.setColNumber(k+1);\n\t\t\t\t\t\tmsg.setColName(userColNames[k]);\n\t\t\t\t\t\tstdMsgList.add(msg);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if ( dtype instanceof IntDashDataType ) {\n\t\t\t\tIntDashDataType inttype = (IntDashDataType) dtype;\n\t\t\t\tfor (int j = 0; j < numSamples; j++) {\n\t\t\t\t\tADCMessage msg = inttype.boundsCheckStandardValue(\n\t\t\t\t\t\t\t\t\t\t\t(Integer) stdObjects[j][k]);\n\t\t\t\t\tif ( msg != null ) {\n\t\t\t\t\t\tmsg.setRowNumber(j+1);\n\t\t\t\t\t\tmsg.setColNumber(k+1);\n\t\t\t\t\t\tmsg.setColName(userColNames[k]);\n\t\t\t\t\t\tstdMsgList.add(msg);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if ( dtype instanceof DoubleDashDataType ) {\n\t\t\t\tDoubleDashDataType dbltype = (DoubleDashDataType) dtype;\n\t\t\t\tfor (int j = 0; j < numSamples; j++) {\n\t\t\t\t\tADCMessage msg = dbltype.boundsCheckStandardValue(\n\t\t\t\t\t\t\t\t\t\t\t(Double) stdObjects[j][k]);\n\t\t\t\t\tif ( msg != null ) {\n\t\t\t\t\t\tmsg.setRowNumber(j+1);\n\t\t\t\t\t\tmsg.setColNumber(k+1);\n\t\t\t\t\t\tmsg.setColName(userColNames[k]);\n\t\t\t\t\t\tstdMsgList.add(msg);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new IllegalArgumentException(\"unexpected data type encountered \" + \n\t\t\t\t\t\t\"in bounds checking: \" + dtype);\n\t\t\t}\n\t\t}\n\t}",
"void columnInserted(Sheet s, int sheetIndex, int col)\r\n/* 185: */ {\r\n/* 186:333 */ this.parser.columnInserted(sheetIndex, col, s == getSheet());\r\n/* 187:334 */ this.formulaBytes = this.parser.getBytes();\r\n/* 188: */ }",
"private boolean columnOkay(int row, int column) throws Exception {\n ArrayList<Integer> clue = puzzle.getColumnClue(column);\n var filledGroups = searchBoard.getFilledGroups(column, TraversalType.COLUMN);\n if(filledGroups.size() > clue.size()) {\n return false;\n }\n int availableSquares = puzzle.getRows()-row-1;\n int tilesRequired;\n if(filledGroups.size() == 0) {\n tilesRequired = clue.size()-1;\n for(int s : clue) {\n tilesRequired += s;\n }\n } else {\n int index = filledGroups.size()-1;\n if(filledGroups.get(index) > clue.get(index)) {\n return false;\n }\n if(searchBoard.getState(row, column) == CellState.EMPTY && !filledGroups.get(index).equals(clue.get(index))) {\n return false;\n }\n tilesRequired = clue.get(index)-filledGroups.get(index);\n tilesRequired += clue.size()-filledGroups.size();\n if(searchBoard.getState(row, column) == CellState.EMPTY) {\n --tilesRequired;\n }\n for(int i = index+1; i < clue.size(); ++i) {\n tilesRequired += clue.get(i);\n }\n }\n return availableSquares >= tilesRequired;\n }",
"private static int getColumn(String s) {\n int i = -1;\n try {\n i = Integer.parseInt(s);\n } catch (Exception e) {\n return -1;\n }\n if (i>GameBoardMainArea.NUMCOLS) {\n return -1;\n }\n if (i<1) {\n return -1;\n }\n return i;\n }",
"private boolean check_Colum_In_Row(ResultSet rs) {\n\t\ttry {\n\t\t\tString tmp;\n\t\t\tint count = 0;\n\t\t\tfor (int i = 1; i < number_colum; i++) {\n\t\t\t\ttmp = rs.getString(i);\n\t\t\t\tif (tmp == null || tmp.equals(\"\")) {\n\t\t\t\t\tcount++;\n\t\t\t\t\tif (count >= 4) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean withinChessboard(String column,int row)\r\n {\r\n boolean sw=false,exit=false;\r\n\r\n ChessBoard.ColumnLetter l= ChessBoard.ColumnLetter.valueOf(column.toUpperCase());//converts String to ColumnLetter for the enum\r\n switch(l)\r\n {\r\n case A:\r\n if(row<=maxRow && row>=minRow) //if the row is within the parameters then is valid\r\n {\r\n System.out.println(\"Location is valid \");\r\n sw=true;\r\n exit=true;\r\n }else{\r\n System.out.println(\"Location not valid\");\r\n }\r\n break;\r\n case B:\r\n if(row<=maxRow && row>=minRow)\r\n {\r\n System.out.println(\"Location is valid \");\r\n sw=true;\r\n exit=true;\r\n }else{\r\n System.out.println(\"Location not valid\");\r\n }\r\n break;\r\n\r\n case C:\r\n if(row<=maxRow && row>=minRow)\r\n {\r\n System.out.println(\"Location is valid \");\r\n sw=true;\r\n exit=true;\r\n }else{\r\n System.out.println(\"Location not valid\");\r\n }\r\n break;\r\n\r\n case D:\r\n if(row<=maxRow && row>=minRow)\r\n {\r\n System.out.println(\"Location is valid...\");\r\n sw=true;\r\n exit=true;\r\n }else{\r\n System.out.println(\"Location not valid\");\r\n }\r\n break;\r\n\r\n case E:\r\n if(row<=maxRow && row>=minRow)\r\n {\r\n System.out.println(\"Location is valid\");\r\n sw=true;\r\n exit=true;\r\n }else{\r\n System.out.println(\"Location not valid\");\r\n }\r\n break;\r\n\r\n case F:\r\n if(row<=maxRow && row>=minRow)\r\n {\r\n System.out.println(\"Location is valid..\");\r\n sw=true;\r\n exit=true;\r\n }else{\r\n System.out.println(\"Location not valid\");\r\n }\r\n break;\r\n\r\n case G:\r\n if(row<=maxRow && row>=minRow)\r\n {\r\n System.out.println(\"Location is valid.\");\r\n sw=true;\r\n exit=true;\r\n }else{\r\n System.out.println(\"Location not valid\");\r\n }\r\n break;\r\n\r\n case H:\r\n if(row<=maxRow && row>=minRow)\r\n {\r\n System.out.println(\"Location is valid,\");\r\n sw=true;\r\n exit=true;\r\n }else{\r\n System.out.println(\"Location not valid\");\r\n }\r\n break;\r\n\r\n default:\r\n System.out.println(\"That location is not within the board\");\r\n }\r\n if(sw==false) {// if the location was not valid it will ask the user for another location\r\n return false;\r\n } else {\r\n return true;// if user doesn't want to input another location the method will end\r\n }\r\n\r\n\r\n }",
"boolean canEditValueOfColumn(ModelColumnInfo<Item> column);",
"@Override\n protected boolean hasValidArgumentValues(@NotNull ImmutableList<Parameter> arguments) {\n boolean valid = true;\n Value rowIndex = arguments.get(0).value();\n Value columnIndex = arguments.get(1).value();\n\n Preconditions.checkValueType(rowIndex, ValueType.NUMBER);\n Preconditions.checkValueType(columnIndex, ValueType.NUMBER);\n\n checkArgument(!rowIndex.hasImaginaryValue(), \"Row index may not be imaginary\");\n checkArgument(!columnIndex.hasImaginaryValue(), \"Column index may not be imaginary\");\n\n // Check for value bounds on row index\n if (!NumberUtil.isInteger(rowIndex.realPart()) || rowIndex.realPart() < 0 || rowIndex.realPart() > getEnvironment().getHomeScreen().getMaxRows()) {\n valid = false;\n }\n\n // Check for value bounds on column index\n if (!NumberUtil.isInteger(columnIndex.realPart()) || columnIndex.realPart() < 0 || columnIndex.realPart() > getEnvironment().getHomeScreen().getMaxColumns()) {\n valid = false;\n }\n\n return valid;\n }",
"private boolean colCheck(int col, int n)\r\n {\r\n for(int r = 0; r < game.length; r++)\r\n if(game[r][col] == n)\r\n return false;\r\n return true;\r\n }",
"public void checkBounds() {\n for (int k = 0; k < numDataCols; k++) {\n DashDataType<?> dtype = dataTypes[k];\n\n if ( dtype instanceof StringDashDataType ) {\n StringDashDataType strtype = (StringDashDataType) dtype;\n for (int j = 0; j < numSamples; j++) {\n ADCMessage msg = strtype.boundsCheckStandardValue((String) stdObjects[j][k]);\n if ( msg != null ) {\n msg.setRowNumber(j + 1);\n msg.setColNumber(k + 1);\n msg.setColName(userColNames[k]);\n stdMsgList.add(msg);\n }\n }\n }\n else if ( dtype instanceof IntDashDataType ) {\n IntDashDataType inttype = (IntDashDataType) dtype;\n for (int j = 0; j < numSamples; j++) {\n ADCMessage msg = inttype.boundsCheckStandardValue((Integer) stdObjects[j][k]);\n if ( msg != null ) {\n msg.setRowNumber(j + 1);\n msg.setColNumber(k + 1);\n msg.setColName(userColNames[k]);\n stdMsgList.add(msg);\n }\n }\n }\n else if ( dtype instanceof DoubleDashDataType ) {\n DoubleDashDataType dbltype = (DoubleDashDataType) dtype;\n for (int j = 0; j < numSamples; j++) {\n ADCMessage msg = dbltype.boundsCheckStandardValue((Double) stdObjects[j][k]);\n if ( msg != null ) {\n msg.setRowNumber(j + 1);\n msg.setColNumber(k + 1);\n msg.setColName(userColNames[k]);\n stdMsgList.add(msg);\n }\n }\n }\n else {\n throw new IllegalArgumentException(\n \"unexpected data type encountered in bounds checking: \" + dtype);\n }\n }\n }",
"int getColumn();",
"public boolean validateSheet_NumberOfColumnsEqualOrGreaterThanZero(Sheet sheet, DiagnosticChain diagnostics, Map<Object, Object> context) {\n\t\treturn\n\t\t\tvalidate\n\t\t\t\t(JaxelPackage.Literals.SHEET,\n\t\t\t\t sheet,\n\t\t\t\t diagnostics,\n\t\t\t\t context,\n\t\t\t\t \"http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot\",\n\t\t\t\t \"NumberOfColumnsEqualOrGreaterThanZero\",\n\t\t\t\t SHEET__NUMBER_OF_COLUMNS_EQUAL_OR_GREATER_THAN_ZERO__EEXPRESSION,\n\t\t\t\t Diagnostic.ERROR,\n\t\t\t\t DIAGNOSTIC_SOURCE,\n\t\t\t\t 0);\n\t}",
"private void verifyViewBatchDetailColumns() {\n for (final String element : VIEW_BATCH_DETAIL_COLUMNS) {\n Log.altVerify(true, lblViewBatchDetailColumnName(element).exists(),\n \"Check that column '\" + element + \"' is exist\");\n }\n }",
"boolean hasCol();",
"public boolean isValid(int row, int col) {\r\n return row < this.arrangement[0].length && col < this.arrangement.length\r\n && row >= 0 && col >= 0;\r\n }",
"Boolean isValid(ArrayList<Integer> colQ){\n \n int curcol = colQ.size() - 1;\n int row = colQ.get(colQ.size() - 1);\n\n int i = 0;\n int j = 0;\n for(i = curcol-1, j = 1; i >= 0; i--, j++)\n {\n // check if we have two of the same row || check diags\n if(row == colQ.get(i) || row+j == colQ.get(i) || row-j == colQ.get(i)) return false;\n }\n return true;\n \n }",
"public int getColumn()\n {\n return col;\n }",
"@Test\r\n public void Test010MakeLiveCellWithMoreThan20Column()\r\n {\r\n\r\n assertFalse(gol.makeLiveCell(3, 20));\r\n\r\n }",
"@Test\r\n\tpublic void view3_todays_table_data_validation()\r\n\t{\t\r\n\t\t//Key on which we have to validate other values.\r\n\t\tString key = \"CML Service Level\";\r\n\r\n\t\t//Initialize Elements of tables and their columns data.\r\n\r\n\t\t//Table 1 - Data\r\n\t\tList<WebElement> data_of_table2 = driver.findElements(view3_todays_table_data_val);\r\n\t\t//Table 1 - Colums\r\n\t\tList<WebElement> col_of_table2 = driver.findElements(By.xpath(view3_today_data_table));\r\n\t\t//Validating N/A and integer for columns\r\n\t\thelper.data_validate_Down(driver, key , col_of_table2, data_of_table2 );\r\n\t}",
"@Override\n public boolean isCellEditable(int row, int col) {\n if (col == 0) return false;\n String attribute = data[row][0].toString();\n return attribute.equals(\"Description\")||\n attribute.equals(\"Generated\")||\n attribute.equals(\"Scannum\")||\n attribute.equals(\"Patient ID\")||\n attribute.equals(\"Exp Date\")||\n attribute.equals(\"Exp Time\")||\n attribute.equals(\"db_name\") ||\n attribute.equals(\"Data type string\") ||\n attribute.equals(\"History\");\n }",
"private boolean isValid(Grid tablero, Cell cell, int value) {\n for (int i = 0; i < 10; i++) { // check for repeated values in the row\n if (i != cell.col) {\n if (tablero.getCell(cell.row, i) == value) {\n return false;\n }\n }\n }\n\n for (int j = 0; j < 10; j++) { // check for repeated values in the column\n if (j != cell.row) {\n if (tablero.getCell(j, cell.col) == value) {\n return false;\n }\n }\n }\n\n\n return true;\n }",
"@Override\n public boolean isColumnFull(int col) throws IllegalColumnException {\n //handle exceptions\n if (col < 0 || col >= NUM_COLS) {\n throw new IllegalColumnException(col);\n }\n\n //assume the column is full\n boolean isFull = true;\n try {\n //if the top is empty => the column is empty\n isFull = getCounterAt(col, NUM_ROWS - 1) != EMPTY;\n } catch (IllegalRowException e) {\n System.out.println(e + \" in MyGameState.java Method isColumnFull\");\n } catch (IllegalColumnException e) {\n System.out.println(e + \" in MyGameState.java Method isColumnFull\");\n }\n\n return isFull;\n }",
"boolean hasColumnLayout();",
"boolean isColPlacementValid(List<Integer> colPlacement) {\n\t\tint lastRowIndex = colPlacement.size() - 1;\n\t\t\n\t\tfor (int i = 0; i < colPlacement.size() - 1; i++) {\n\t\t\tif (colPlacement.get(i) == colPlacement.get(lastRowIndex) || \n\t\t\t\t\tMath.abs(colPlacement.get(lastRowIndex) - colPlacement.get(i)) == lastRowIndex - i) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public void \n validateChildColumn\n (\n int col\n ) \n throws ParseException \n {\n if((pChildColumn != null) && (pChildColumn != col)) \n throw new ParseException\n (\"Attempting to add a child from column (\" + col + \"), yet existing children are \" + \n \"from column (\" + pChildColumn + \")!\"); \n }",
"private boolean colWin(){ \r\n\t\tfor (int i=0; i<3; i++){ \r\n\t\t\tif (checkValue (board[0][i], board[1][i], board[2][i]))\r\n\t\t\t\treturn true; \r\n\t\t}\r\n\t\treturn false; \r\n\t}",
"public boolean checkRight()\n\t{\n\t\tif(col+1<=9)\n\t\t\treturn true;\n\t\treturn false;\n\t}",
"public void validate_filter_data(By element, WebDriver driver, String class_name, String table_element) {\n\t\tList<String> xls_col_names = ExcelCache.getExpectedListData(class_name, table_element);\n\t\tArrayList<String> ui_col_names = new ArrayList<String>();\n\t\tList<WebElement> listelement = driver.findElements(element);\n\t\tfor (int i = 0; i < listelement.size() - 2; i++) {\n\t\t\tui_col_names.add(listelement.get(i).getText());\n\t\t}\n\t\tVerify.verifyEquals(xls_col_names.containsAll(ui_col_names), true, \"All values does not match\");\n\t}",
"String getColumn();",
"@Test\r\n public void Test011MakeLiveCellWithMoreThan20RowColumn()\r\n {\r\n\r\n assertFalse(gol.makeLiveCell(20, 20));\r\n\r\n }",
"public boolean column(){\n\t\t\r\n\t\tfor (int j = 0; j < Board.length-1; j++){\r\n\t\t\tfor (int k = 1; k < Board.length-1; k++){\r\n\t\t\t\tif (Board[k][j].charAt(2) != Board[k+1][j].charAt(2))\r\n\t\t\t\t\tbreak;\r\n\t\t\t\telse if (Board[k][j].charAt(2) == '_')\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tif (k == Board.length-2){\r\n\t\t\t\t\tthis.winner = Board[k][j].charAt(2);\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public int getColumn();",
"@Override\n public boolean isCellEditable(int row, int col) {\n return col == 2;\n }",
"private int getColumn(char columnName) {\r\n\t\tint result = -1;\r\n\t\tif (columnName > 64 && columnName < 91) {\r\n\t\t\tresult = columnName - 65;\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public static boolean checkColumn(ArrayList<Card> CardArray) {\n int cardSize = CardArray.size();\n if (cardSize == 0) {\n return true;\n }\n return false;\n }",
"private boolean colCheck(Point point, int num) {\n return Search.getCellsFromCol(point).stream().allMatch(cell -> cell.getNumber() != num);\n }",
"public void verifyDisbursementReportColumns() {\n Log.logBanner(\"Verifying Disbursement Report columns...\");\n Tools.waitForTableLoad(Log.giAutomationMedTO);\n verifyReportColumns();\n }",
"public static int colCount() {\n\treturn sheet.getRow(0).getLastCellNum();\n\t}",
"@Test\r\n public void Test005TakeUserInputInValidRow()\r\n {\r\n gol.input = new Scanner(new ByteArrayInputStream(\"20 1 2 2 2 3 2 4 -1\".getBytes()));\r\n gol.takeUserInput();\r\n assertTrue(gol.grid[2][3] == 1 && gol.grid[2][2] == 1 && gol.grid[2][3] == 1 && gol.grid[2][4] == 1);\r\n }",
"protected final void check(int rowIndex, int columnIndex) {\r\n if (rowIndex < 0 || rowIndex >= this.getRowCount())\r\n throw new IndexOutOfBoundsException(\"row :\" + rowIndex + \" not between 0 and \" + (this.getRowCount() - 1));\r\n if (columnIndex < 0 || columnIndex >= this.getColumnCount())\r\n throw new IndexOutOfBoundsException(\"column: \" + columnIndex + \" not between 0 and \" + (this.getColumnCount() - 1));\r\n }",
"@Override\r\n\t\t\t\t public boolean isCellEditable(int row, int column) {\n\t\t\t\t return column == 3 || column == 4;\r\n\t\t\t\t }"
] | [
"0.740747",
"0.6546069",
"0.63819855",
"0.6271714",
"0.62300634",
"0.6179038",
"0.61166775",
"0.6086603",
"0.60693717",
"0.60203385",
"0.60175693",
"0.6003255",
"0.5999822",
"0.59888166",
"0.59791434",
"0.59571326",
"0.59226614",
"0.5860601",
"0.58523715",
"0.5850109",
"0.58454883",
"0.5828825",
"0.5805867",
"0.5791854",
"0.57669115",
"0.5728618",
"0.5724619",
"0.57161784",
"0.57126766",
"0.5690838",
"0.5689537",
"0.56866527",
"0.5658067",
"0.56537557",
"0.5642944",
"0.56427836",
"0.56377935",
"0.5634668",
"0.56219256",
"0.56200963",
"0.5612347",
"0.5596444",
"0.55740386",
"0.5552683",
"0.55371296",
"0.55169666",
"0.55146164",
"0.55135703",
"0.5512142",
"0.5508948",
"0.5499972",
"0.5496012",
"0.5493332",
"0.54862213",
"0.54639775",
"0.54635805",
"0.5453392",
"0.54352343",
"0.543164",
"0.5426626",
"0.54084146",
"0.5405507",
"0.54040945",
"0.5392739",
"0.5379268",
"0.53743064",
"0.53705233",
"0.53663003",
"0.5340295",
"0.5328173",
"0.5325581",
"0.5322697",
"0.53224987",
"0.53180224",
"0.5313177",
"0.53079987",
"0.52982855",
"0.5288295",
"0.52839065",
"0.52817076",
"0.5279732",
"0.52778566",
"0.5276238",
"0.5271734",
"0.5267783",
"0.5267539",
"0.5246484",
"0.5245441",
"0.5244521",
"0.52327764",
"0.52301764",
"0.5229924",
"0.5226247",
"0.52223784",
"0.5219861",
"0.5217927",
"0.5216988",
"0.52140933",
"0.5210249",
"0.5201826"
] | 0.6456174 | 2 |
need to connect address (ip) which is a string into a string (inetAddress) object | public boolean openConnection(String address) {
try {
// the following line wont work because server already occupies that port
// socket = new DatagramSocket(port);
// now we will bind to any port that is available
// however this way server needs to know the port we are sending from
// UDP protocoll: we dont have to connect to serverto begin with
socket = new DatagramSocket();
} catch (SocketException e) {
e.printStackTrace();
return false;
}
try {
ip = InetAddress.getByName(address);
} catch (UnknownHostException e) {
e.printStackTrace();
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getAddr();",
"public InternetAddress getFromAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"InetAddress getAddress();",
"InetAddress getAddress();",
"abstract String getRemoteAddress();",
"private static String convertIpAddress(int rawAddress)\n {\n if (ByteOrder.nativeOrder().equals(ByteOrder.LITTLE_ENDIAN)) {\n rawAddress = Integer.reverseBytes(rawAddress);\n }\n\n byte[] ipByteArray = BigInteger.valueOf(rawAddress).toByteArray();\n\n String ipAddressString;\n try {\n ipAddressString = InetAddress.getByAddress(ipByteArray).getHostAddress();\n } catch (UnknownHostException ex) {\n Log.e(\"WIFIIP\", \"Unable to get host address.\");\n ipAddressString = null;\n }\n return ipAddressString;\n }",
"@Test\n public void testAddress() throws UnknownHostException {\n InetAddress address = InetAddress.getByAddress(\"www.baidu.com\", new byte[]{(byte) 192, (byte) 168, 0, 1});\n System.out.println(address.getHostName());\n InetSocketAddress socketAddress = new InetSocketAddress(address, 8009);\n System.out.println(socketAddress.getHostString());\n }",
"SocketAddress socketAddress();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"String getAddress();",
"String getAddress();",
"String getExternalIPAddress() throws NotDiscoverUpnpGatewayException, UpnpException;",
"public String getInternalAddress();",
"@Override\r\n public String getIPAddress() {\r\n return address;\r\n }",
"String getRemoteIpAddress();",
"AddressI getAddress();",
"public InetAddress getIP();",
"java.lang.String getAgentIP();",
"@Test\n public void testValueOfInetAddressIPv4() {\n Ip4Address ipAddress;\n InetAddress inetAddress;\n\n inetAddress = InetAddresses.forString(\"1.2.3.4\");\n ipAddress = Ip4Address.valueOf(inetAddress);\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n inetAddress = InetAddresses.forString(\"0.0.0.0\");\n ipAddress = Ip4Address.valueOf(inetAddress);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n inetAddress = InetAddresses.forString(\"255.255.255.255\");\n ipAddress = Ip4Address.valueOf(inetAddress);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }",
"SocketAddress getLocalAddress();",
"public String getExternalAddress();",
"String getIp();",
"String getIp();",
"public InetAddress getIPAddress ( ) { return _IPAddress; }",
"public String getUpnpExternalIpaddress();",
"private String getIpAddress() throws SocketException {\n String ip = null;\n\n Enumeration networkInterfaces = NetworkInterface.getNetworkInterfaces();\n\n while (networkInterfaces.hasMoreElements()) {\n NetworkInterface networkInterface = (NetworkInterface) networkInterfaces.nextElement();\n\n if (networkInterface.getName().equals(\"eth0\") || networkInterface.getName().equals(\"wlan0\")) {\n Enumeration inetAddresses = networkInterface.getInetAddresses();\n\n while (inetAddresses.hasMoreElements()) {\n InetAddress inetAddress = (InetAddress) inetAddresses.nextElement();\n if (inetAddress instanceof Inet4Address) {\n ip = inetAddress.getHostAddress();\n }\n }\n }\n }\n \n return ip;\n }",
"java.lang.String getIpv4();",
"String getRemoteAddr();",
"public String getNatAddress();",
"@Nullable public abstract String ipAddress();",
"public static String getIPCliente(){//192.168, 172.16. o 10.0.\n\t\tString ipAddress=\"\";\n\t\ttry{\n\t\t\tHttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n\t\t\tipAddress = request.getHeader(\"X-FORWARDED-FOR\");\n\t\t\tif ( ipAddress == null ) {\n\t\t\t\tipAddress = request.getRemoteAddr();\n\t\t\t\tif(ipAddress.equals(\"127.0.0.1\")){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tipAddress = InetAddress.getLocalHost().getHostAddress();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tipAddress = \"\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tString[] ips = ipAddress.split(\",\");\n\t\t\tfor(String ip : ips){\n\t\t\t\tif(!ip.trim().startsWith(\"127.0.\")){\n\t\t\t\t\tipAddress = ip;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn ipAddress;\n\t}",
"java.lang.String getServerAddress();",
"private String getIPAddress() throws Exception {\n //Don't need the line of code below, TODO: delete it!\n InetAddress getIP = InetAddress.getLocalHost();\n String thisSystemAddress = \"\";\n try{\n URL thisUrl = new URL(\"http://bot.whatismyipaddress.com\");\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(thisUrl.openStream()));\n thisSystemAddress = bufferedReader.readLine().trim();\n } catch (Exception e){\n e.printStackTrace();\n e.getCause();\n }\n\n return thisSystemAddress;\n }",
"public String buildAddressString() {\n StringBuilder builder =\n ThreadLocalStringBuilder.get().append(ipAddress).append(COLON).append(port);\n return builder.toString();\n }",
"@Test\n public void testValueOfStringIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(\"1.2.3.4\");\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.valueOf(\"255.255.255.255\");\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }",
"public static String getIPAddress(boolean useIPv4) throws SocketException{\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface netInterface : interfaces) {\n List<InetAddress> addressList = Collections.list(netInterface.getInetAddresses());\n for (InetAddress address : addressList) {\n if (!address.isLoopbackAddress()) {\n String addressString = address.getHostAddress();\n boolean isIPv4 = addressString.indexOf(':') < 0;\n if (useIPv4) {\n if (isIPv4)\n return addressString;\n } else {\n if (!isIPv4) {\n int delim = addressString.indexOf('%'); // drop ip6 zone suffix\n return delim < 0 ? addressString.toUpperCase() : addressString.substring(0, delim).toUpperCase();\n }\n }\n }\n }\n }\n return \"\";\n }",
"@Test\n public void testToStringIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.valueOf(\"1.2.3.4\");\n assertThat(ipAddress.toString(), is(\"1.2.3.4\"));\n\n ipAddress = Ip4Address.valueOf(\"0.0.0.0\");\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.valueOf(\"255.255.255.255\");\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }",
"@NotNull\n InetAddress getAddress();",
"public static String getIpString(InetAddress address) {\n String ret = address.toString();\n if (ret.indexOf('/') == 0) {\n return ret.substring(1, ret.length());\n }\n return ret;\n }",
"@SuppressLint(\"DefaultLocale\")\n\tprivate String getIpAddr()\n\t{\n\t\tString ipString = null;\n\t\tWifiManager wifiManager = (WifiManager) getSystemService(WIFI_SERVICE);\n\t\tif (wifiManager != null)\n\t\t{\n\t\t\tWifiInfo wifiInfo = wifiManager.getConnectionInfo();\n\t\t\tif (wifiInfo != null)\n\t\t\t{\n\t\t\t\tint ip = wifiInfo.getIpAddress();\n\n\t\t\t\tipString = String.format(\"%d.%d.%d.%d\", (ip & 0xff),\n\t\t\t\t\t(ip >> 8 & 0xff), (ip >> 16 & 0xff), (ip >> 24 & 0xff));\n\n\t\t\t}\n\t\t}\n\t\treturn ipString;\n\t}",
"SocketAddress getRemoteAddress();",
"java.lang.String getSnIp();",
"java.lang.String getSnIp();",
"int getAddr();",
"Ip4Address interfaceIpAddress();",
"private String getAddress() {\n\t\tif (localIp != null) {\n\t\t\treturn localIp;\n\t\t}\n\t\tString address = \"\";\n\t\tInetAddress lanIp = null;\n\t\ttry {\n\t\t\tString ipAddress = null;\n\t\t\tEnumeration<NetworkInterface> net = null;\n\t\t\tnet = NetworkInterface.getNetworkInterfaces();\n\t\t\twhile (net.hasMoreElements()) {\n\t\t\t\tNetworkInterface element = net.nextElement();\n\t\t\t\tEnumeration<InetAddress> addresses = element.getInetAddresses();\n\t\t\t\twhile (addresses.hasMoreElements()) {\n\t\t\t\t\tInetAddress ip = addresses.nextElement();\n\t\t\t\t\tif (ip instanceof Inet4Address) {\n\t\t\t\t\t\tif (ip.isSiteLocalAddress()) {\n\t\t\t\t\t\t\tipAddress = ip.getHostAddress();\n\t\t\t\t\t\t\tlanIp = InetAddress.getByName(ipAddress);\n\t\t\t\t\t\t\tSystem.out.println(\"found local address: \" + ipAddress);\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (lanIp == null)\n\t\t\t\treturn null; \n\t\t\taddress = lanIp.toString().replaceAll(\"^/+\", \"\"); \n\t\t} catch (UnknownHostException ex) {\n\t\t\tex.printStackTrace();\n\t\t} catch (SocketException ex) {\n\t\t\tex.printStackTrace();\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn address;\n\n\t}",
"public String getAddress();",
"public InetAddress getHost();",
"public abstract String associatePredefinedAddress(NodeMetadata node, String ip);",
"public static String getMyIpv4Address() {\n try {\n Enumeration<NetworkInterface> nets = NetworkInterface.getNetworkInterfaces();\n\n for (NetworkInterface netInterface : Collections.list(nets)) {\n Enumeration<InetAddress> inetAddresses = netInterface.getInetAddresses();\n\n if (!netInterface.isUp() || netInterface.isVirtual() || netInterface.isLoopback())\n continue;\n\n for (InetAddress inetAddress : Collections.list(inetAddresses)) {\n if (!inetAddress.isLinkLocalAddress() && !inetAddress.isLoopbackAddress() && (inetAddress instanceof Inet4Address))\n return inetAddress.getHostAddress();\n }\n\n }\n } catch (SocketException e) {\n // ignore it\n }\n\n return \"127.0.0.1\";\n }",
"public InetAddress numberToAddress(String string) {\r\n\t\tstring = string.trim();\r\n\t\t\r\n\t\tif (string.length() > 4) {\r\n\t\t\tNetConsole.window.error(\" Team Number Invalid\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\tInteger teamNum = Integer.parseInt(string);\r\n\t\tString addr = \"10.\" + String.valueOf((int)teamNum/100) + \".\" + String.valueOf((int)teamNum%100) + \".2\";\r\n\t\tSystem.out.println(addr);\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\treturn InetAddress.getByName(addr);\r\n\t\t} catch (UnknownHostException e) {\r\n\t\t\tNetConsole.window.error(\"Team Number Invalid\");\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t} \r\n\t\t\r\n\t}",
"public void convict(InetAddress ep);",
"public String getIp();",
"public String getIp() {\n return getIpString(inetAddress);\n }",
"String getXmppAddress();",
"public String getIPAddress()\n {\n return fIPAddress;\n }",
"InetAddress getInetAddress()\n {\n return inetAddress;\n }",
"public static String ipAddress() {\r\n String _ipaddress=\"\";\r\n InetAddress _address=null;\r\n \r\n try {\r\n _address=InetAddress.getLocalHost();\r\n _ipaddress=_address.getHostAddress();\r\n }\r\n catch (Exception ex) {\r\n throw new RuntimeException(ex.getMessage());\r\n }\r\n \r\n if (_address!=null) {\r\n _address=null; System.gc();\r\n }\r\n \r\n return _ipaddress;\r\n }",
"public static String getIP()\n {\n try\n {\n URL whatismyip = new URL(\"http://checkip.amazonaws.com\");\n BufferedReader in = new BufferedReader(new InputStreamReader(\n whatismyip.openStream()));\n\n String ip = in.readLine(); //you get the IP as a String\n return ip;\n }\n catch (Exception exc)\n {\n System.out.println(\"Get internet IP address error:\" + exc.toString());\n return \"\";\n }\n }",
"String getAddress(int type);",
"public String getTcpAddress() {\n\t\tfinal String key = ConfigNames.ADDRESS.toString();\n\n\t\tif (getJson().isNull(key)) {\n\t\t\treturn \"\";\n\t\t}\n\n\t\treturn getJson().getString(key);\n\t}",
"public InetAddress getIP()\r\n\r\n {\r\n InetAddress ip=null;\r\n try{\r\n WifiManager wifi = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);\r\n DhcpInfo dhcp = wifi.getDhcpInfo();\r\n int dip=dhcp.ipAddress;\r\n byte[] quads = new byte[4];\r\n for (int k = 0; k < 4; k++)\r\n quads[k] = (byte) (dip >> (k * 8));\r\n ip= InetAddress.getByAddress(quads);\r\n } catch (UnknownHostException e) {\r\n e.printStackTrace();\r\n }\r\n return ip;\r\n }",
"private void print_addr() {\n try(final DatagramSocket socket = new DatagramSocket()){\n socket.connect(InetAddress.getByName(\"8.8.8.8\"), 10002);\n System.out.println(socket.getLocalAddress().getHostAddress()+\":\"+port);\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public String getIP() throws Exception {\n this.IPAddress = \"http://192.168.1.15\";\n return this.IPAddress;\n }",
"String getInternalHostAddress() throws NotDiscoverUpnpGatewayException;",
"public static String getIPAddress(boolean useIPv4) {\n try {\n List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface intf : interfaces) {\n List<InetAddress> addrs = Collections.list(intf.getInetAddresses());\n for (InetAddress addr : addrs) {\n if (!addr.isLoopbackAddress()) {\n String sAddr = addr.getHostAddress().toUpperCase();\n boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\n if (useIPv4) {\n if (isIPv4)\n return sAddr;\n } else {\n if (!isIPv4) {\n int delim = sAddr.indexOf('%'); // drop ip6 port suffix\n return delim<0 ? sAddr : sAddr.substring(0, delim);\n }\n }\n }\n }\n }\n } catch (Exception ex) { } // for now eat exceptions\n return \"\";\n }",
"java.lang.String getDestinationIp();",
"java.lang.String getBitcoinAddress();",
"public interface IpConfig {\n String ip=\"192.168.43.217:8080\";\n}",
"public static String getIPAddress(boolean useIPv4) {\n try {\n List<NetworkInterface> interfaces = Collections\n .list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface intf : interfaces) {\n List<InetAddress> addrs = Collections.list(intf\n .getInetAddresses());\n for (InetAddress addr : addrs) {\n if (!addr.isLoopbackAddress()) {\n String sAddr = addr.getHostAddress().toUpperCase();\n//\t\t\t\t\t\tboolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);\n boolean isIPv4 = (addr instanceof Inet4Address) ? true : false;\n if (useIPv4) {\n\n if (isIPv4)\n return sAddr;\n } else {\n if (!isIPv4) {\n int delim = sAddr.indexOf('%'); // drop ip6 port\n // suffix\n return delim < 0 ? sAddr : sAddr.substring(0,\n delim);\n }\n }\n }\n }\n }\n } catch (Exception ex) {\n } // for now eat exceptions\n return \"\";\n }",
"private String computeAddress(String domain) throws ProtocolUnderTCPException {\n String address;\n try {\n address = DNS.getAddress(domain);\n } catch (DNSException e) {\n throw new ProtocolUnderTCPException(\"Unable to determine address.\", e);\n }\n return address;\n }",
"public static InetAddress id2ip(String id) {\n final String table = \"aeiouAEIOU\";\n byte bytes[] = {0, 0, 0, 0};\n int p = 0;\n if (id.length() != 8) {\n return null;\n }\n for (int i = 0; i < 4; i++) {\n bytes[i] =\n (byte)(table.indexOf(id.charAt(p++))*26+(int)(id.charAt(p++)-'a'));\n }\n try {\n return (InetAddress.getByAddress(bytes));\n } catch (UnknownHostException e) {\n return null;\n }\n }",
"public String getViaHost() {\n return this.myAddress;\n }",
"public String getViaHost() {\n return this.myAddress;\n }",
"private String lookup_ip (String host) throws LookupException\n , NameServerContactException{\n return lookup(host)[0];\n }",
"@Test\n public void shouldGetHostAddress() {\n assertEquals(NE_IP, session.getAddress().getHostAddress());\n }",
"@Override\n public String toString() {\n StringBuilder builder = new StringBuilder();\n builder.append(\"socket://\");\n builder.append(addr.getHostString());\n builder.append(\":\");\n builder.append(addr.getPort());\n return builder.toString();\n }",
"public String inputIPAddress() {\n Scanner in = new Scanner(System.in);\n\n String message = \"Enter IP address you want to connect to: \";\n System.out.print(message);\n\n String address = in.nextLine();\n\n if (address.isEmpty()) {\n System.out.println(\"Empty IP address. Using localhost (127.0.0.1)\");\n address = \"127.0.0.1\";\n }\n\n return address;\n }",
"InetSocketAddress peerAddress();",
"@AutoEscape\n\tpublic String getAddress();",
"@AutoEscape\n\tpublic String getAddress();",
"@AutoEscape\n\tpublic String getAddress();",
"@AutoEscape\n\tpublic String getAddress();",
"public String getIPAddress () {\n\t\treturn _ipTextField.getText();\n\t}",
"public String getAddr() {\n return addr;\n }",
"public String getAddr() {\n return addr;\n }",
"public String getAddr() {\n return addr;\n }",
"public IpAddress getIpAddress2Value() throws JNCException {\n return (IpAddress)getValue(\"ip-address2\");\n }"
] | [
"0.7131306",
"0.7049835",
"0.6786688",
"0.6786688",
"0.6786688",
"0.6786688",
"0.6786688",
"0.6786688",
"0.67131025",
"0.67131025",
"0.66900635",
"0.66791934",
"0.6632596",
"0.65863204",
"0.65257305",
"0.65257305",
"0.65257305",
"0.65257305",
"0.65257305",
"0.65257305",
"0.65257305",
"0.65257305",
"0.64968175",
"0.64968175",
"0.64680785",
"0.646407",
"0.6421624",
"0.641483",
"0.6374113",
"0.6343572",
"0.6303222",
"0.62986934",
"0.6296248",
"0.6277323",
"0.627211",
"0.627211",
"0.62482744",
"0.62300086",
"0.621562",
"0.6209608",
"0.6186956",
"0.6166376",
"0.61496353",
"0.6148168",
"0.61418444",
"0.61372745",
"0.61348796",
"0.61327475",
"0.61244965",
"0.6098361",
"0.60980606",
"0.60874826",
"0.6080861",
"0.60782295",
"0.6071749",
"0.6071749",
"0.603758",
"0.6004027",
"0.60007316",
"0.5988623",
"0.59786606",
"0.5975488",
"0.59691226",
"0.59653616",
"0.5962992",
"0.5960045",
"0.5939068",
"0.5928034",
"0.5900437",
"0.58908147",
"0.58777994",
"0.5870634",
"0.5869288",
"0.58583975",
"0.5854227",
"0.5850358",
"0.5845285",
"0.5841558",
"0.58388925",
"0.5838772",
"0.58332473",
"0.5831687",
"0.580741",
"0.5783504",
"0.5779553",
"0.57789356",
"0.57789356",
"0.5773892",
"0.5768515",
"0.5759976",
"0.5741066",
"0.571898",
"0.5717362",
"0.5717362",
"0.5717362",
"0.5717362",
"0.57167506",
"0.5716362",
"0.5716362",
"0.5716362",
"0.5713177"
] | 0.0 | -1 |
need final because run is anonymous inner class | public void send(final byte[] data) {
send = new Thread("Send") {
// anaonymous class prevents us from making new class that implemtents Runnable
public void run(){
DatagramPacket packet = new DatagramPacket(data,data.length, ip, port);
try {
socket.send(packet);
} catch (IOException e) {
e.printStackTrace();
}
}
};
send.start();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void run(){}",
"@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}",
"public final void run() {\r\n }",
"@Override\n\t\t\tpublic void run() {\n\n\t\t\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}",
"@Override\n public void run(){\n }",
"@Override\r\n public void run() {}",
"@Override\n\t\tpublic void run() {\n\n\t\t}",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"public void run() {\n\t\t\t\t\t\t}",
"@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n }",
"@Override\r\n\t\t\t\tpublic void run() {\n\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void run() {\n\r\n\t\t\t\t}",
"@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}",
"public static void run() {\n }",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tinvoke();\n\t\t\t\t\t}",
"@Override\n public void run()\n {\n }",
"@Override\n public void run()\n {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n \t\n }",
"protected void run() {\r\n\t\t//\r\n\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tsuper.run();\r\n\t\t\t}",
"@Override\n abstract public void run();",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\r\n\tabstract public void run();",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n\tpublic void run() {\n\n\t}",
"@Override\n\tpublic void run() {\n\n\t}",
"@Override\n\tpublic void run() {\n\n\t}",
"@Override\n\tpublic void run() {\n\n\t}",
"@Override\n\tpublic void run() {\n\n\t}",
"public void run() {\n\t\t\n\t}",
"@Override\r\n\tpublic void run() {\n\t}",
"@Override\r\n\tpublic void run() {\n\t}",
"@Override\r\n public void run() {\n }",
"@Override\n\tpublic void run() {\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"public void run() {\n }",
"@Override\n\tpublic void run()\n\t{\n\n\t}",
"public int run() { return this.value.run(); }",
"@Override\n public void run() {\n\n }",
"@Override\n public void run() {\n\n }",
"@Override\n public void run() {\n\n }",
"@Override\n public void run() {\n\n }",
"@Override\n public void run() {\n\n }",
"@Override\n public void run() {\n\n }",
"public void run() {\n }",
"public void run() {\r\n\t\t// overwrite in a subclass.\r\n\t}"
] | [
"0.72892547",
"0.7049616",
"0.7048593",
"0.7032514",
"0.7027696",
"0.7027696",
"0.7023956",
"0.7023956",
"0.70031303",
"0.70031303",
"0.6981132",
"0.69795746",
"0.69739264",
"0.69614273",
"0.69614273",
"0.69614273",
"0.69127506",
"0.69127506",
"0.6906476",
"0.6906476",
"0.6906476",
"0.6906476",
"0.6906476",
"0.6906476",
"0.6906476",
"0.6892286",
"0.68919516",
"0.68919516",
"0.68912226",
"0.686486",
"0.6835584",
"0.6835584",
"0.6821714",
"0.68142766",
"0.6811142",
"0.6811142",
"0.6811142",
"0.6811142",
"0.6811142",
"0.6811142",
"0.6811142",
"0.6811142",
"0.6811142",
"0.6811142",
"0.6811142",
"0.6811142",
"0.6811142",
"0.6811142",
"0.6811142",
"0.6811142",
"0.6808959",
"0.68074596",
"0.68074596",
"0.6804944",
"0.680011",
"0.6794925",
"0.679165",
"0.6764299",
"0.67635",
"0.67635",
"0.6760785",
"0.6752674",
"0.6752674",
"0.6752674",
"0.6740046",
"0.6740046",
"0.6740046",
"0.6740046",
"0.6740046",
"0.6740046",
"0.6740046",
"0.6729511",
"0.6729511",
"0.6729511",
"0.6729511",
"0.6729511",
"0.67259806",
"0.67234814",
"0.67234814",
"0.67197245",
"0.67171085",
"0.67142487",
"0.67142487",
"0.67142487",
"0.67142487",
"0.67142487",
"0.67142487",
"0.67142487",
"0.67142487",
"0.67142487",
"0.6703446",
"0.66945773",
"0.6690656",
"0.6690434",
"0.6690434",
"0.6690434",
"0.6690434",
"0.6690434",
"0.6690434",
"0.6688562",
"0.66869545"
] | 0.0 | -1 |
anaonymous class prevents us from making new class that implemtents Runnable | public void run(){
DatagramPacket packet = new DatagramPacket(data,data.length, ip, port);
try {
socket.send(packet);
} catch (IOException e) {
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MyRunnable(){\t\n\t}",
"private interface CheckedRunnable {\n void run() throws Exception;\n }",
"interface Runnable {\n void execute() throws Throwable;\n default void run() {\n try {\n execute();\n } catch(Throwable t) {\n throw new RuntimeException(t);\n }\n }\n }",
"public interface RunnableFactory {\n\n\t/**\n\t * Yields a new instance of the runnable.\n\t */\n\n Runnable mk();\n}",
"Runnable mk();",
"public interface Service extends Runnable {\n\n}",
"public interface Interactor extends Runnable {\n}",
"public interface ThreadExecutor extends Executor {\n}",
"@FunctionalInterface\n public interface CheckedRunnable {\n void run() throws Exception;\n }",
"public static OnRun onRun( Runnable run )\n\t{\n\t\treturn new OnRun( run );\n\t}",
"protected interface DispatcherRunnable<LISTENER> {\n void run(LISTENER listener);\n }",
"public interface DefaultUseCase<T> extends Runnable {\n\n public void addListener(T listener);\n\n public void removeListener(T listener);\n\n}",
"public interface Interactor extends Runnable {\n void run();\n}",
"public abstract void run() ;",
"public interface IHttpThreadExecutor {\n public void addTask(Runnable runnable);\n}",
"@Override\n abstract public void run();",
"@Override\n public void run(){\n }",
"@Override\n\tpublic Thread newThread(Runnable r) {\n\t\t\n\t\tThread th = new Thread(r,\" custum Thread\");\n\t\treturn th;\n\t}",
"public interface MainThread {\n void post(Runnable runnable);\n}",
"@Override\r\n public void run() {}",
"public abstract void mo30313a(C41366e c41366e, Runnable runnable);",
"public abstract void run();",
"public abstract void run();",
"public abstract void run();",
"public interface RunnableTask {\n ProcessResult run();\n}",
"@Override\n protected Thread createThread(final Runnable runnable, final String name) {\n return new Thread(runnable, Thread.currentThread().getName() + \"-exec\");\n }",
"private static void ThreadCreationOldWay() {\r\n\t\tThread t1 = new Thread(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tSystem.out.println(\"This is a runnable method done in old fashion < 1.8\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tt1.start();\r\n\t}",
"@Override\r\n public Thread newThread(Runnable r) {\n Thread t = new Thread(r, \"example-runner\");\r\n t.setDaemon(true);\r\n return t;\r\n }",
"@Override\r\n\tpublic abstract void run();",
"public interface ThrowingRunnable {\n\n void run() throws Throwable;\n }",
"@Override\r\n\tabstract public void run();",
"@Override\n protected void runInListenerThread(Runnable runnable) {\n runnable.run();\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"public interface ShutdownManager extends Runnable {\n\n}",
"public interface Task {\n public void run(Object o);\n}",
"public void run() {/* THE CODE HERE IS A THE @OVERRIDE FOR START() METHOD */\n\t}",
"@Override\n public void run() {\n }",
"@Test\n @DisplayName(\"Plain Runnable\")\n void testRunnable() {\n Runnable task = this::printThreadName;\n\n task.run();\n\n Thread thread = new Thread(task);\n thread.start();\n\n System.out.println(\"Done!\");\n }",
"public interface a {\n Thread a();\n\n void a(Runnable runnable);\n\n Executor b();\n\n Executor c();\n}",
"public static void run(){}",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"public void run() {\n }",
"public void run() {\n }",
"public void run() {\n }",
"public void run() {\n }",
"public void run() {\n\n }",
"public void run() {\n }",
"public void run();",
"public void run();",
"public void run();",
"public void run();",
"public void run();",
"@Override\n // Thread creation\n // Run method from the Runnable class.\n public void run() {\n p.println(\"Current thread = \" + Thread.currentThread().getName());\n // Shows when a task is being executed concurrently with another thread,\n // then puts the thread to bed (I like saying that)\n try {\n p.println(\"Doing a task during : \" + name);\n Thread.currentThread().sleep(time);\n }\n // Exception for when a thread is interrupted.\n catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"private void startRunnableThread() {\n customRunnable = new CustomRunnable();\n customThread = new CustomThread(customRunnable);\n customRunnable.setTag(customThread.tag);\n customThread.start();\n\n }",
"public void run() {\r\n }",
"public Task(){}",
"public static void main(String args[]) throws Exception\n {\n ImplementsRunnable rc = new ImplementsRunnable();\n Thread t1 = new Thread(rc);\n t1.start();\n Thread.sleep(1000); // Waiting for 1 second before starting next thread\n Thread t2 = new Thread(rc);\n t2.start();\n Thread.sleep(1000); // Waiting for 1 second before starting next thread\n Thread t3 = new Thread(rc);\n t3.start();\n \n // Modification done here. Only one object is shered by multiple threads\n // here also.\n ExtendsThread extendsThread = new ExtendsThread();\n Thread thread11 = new Thread(extendsThread);\n thread11.start();\n Thread.sleep(1000);\n Thread thread12 = new Thread(extendsThread);\n thread12.start();\n Thread.sleep(1000);\n Thread thread13 = new Thread(extendsThread);\n thread13.start();\n Thread.sleep(1000);\n }",
"public void run()\n {\n }",
"public void run()\n {\n }",
"@Override\r\n\tvoid execute(Runnable task);",
"public interface Task<T> {\r\n /**\r\n * run the task.\r\n *\r\n * @return T a generic type.\r\n */\r\n T run();\r\n}",
"private static void createThreadUsingAnonymousInnerClass() {\n\t\tRunnable rn = new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\"My Anonymous Inner Class thread is executed.\");\n\t\t\t}\n\t\t};\n\n\t\tThread th = new Thread(rn);\n\t\tth.start();\n\t}",
"public final void run() {\r\n }",
"public abstract void runOnUiThread(Runnable runnable);",
"@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic Thread newThread(Runnable arg0) {\n\t\treturn null;\r\n\t}",
"public void run()\n {\n\n }",
"@Override\n public void run()\n {\n\n }",
"private CameraExecutors() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"private ThreadUtil() {\n \n }",
"void executeStraight(Runnable task);",
"public abstract void executeOnNetwork(@NonNull Runnable runnable);",
"abstract void doTaskOnRun();",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n\tpublic void run()\n\t{\n\t}",
"void runInThread(Runnable runnable) {\n try {\n Thread thread = new Thread(runnable::run);\n thread.start();\n } catch (Exception ex) {\n log.info(ex.getMessage());\n }\n\n }",
"@Override\n public void run() {\n\n }",
"public void run() {\n\n\n }",
"public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"public interface ITaskHandler {\n\n\t/**\n\t * It is called in a separate thread to handle the task.\n\t * Parameters are thoes given in the addTask()\n\t * This method should not been called directly.\n\t * \n\t * @param pTaskType\n\t * @param pParam\n\t * @throws IllegalArgumentException\n\t */\n\tvoid handleTask(ITaskType pTaskType, Object pParam) throws IllegalArgumentException;\n}",
"public interface TransactionRunnable {\n /** Runs with transaction. */\n void runWithTransaction(SurfaceControl.Transaction t);\n }",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t}"
] | [
"0.7437982",
"0.7266642",
"0.6986044",
"0.6883336",
"0.6870408",
"0.6832347",
"0.65767086",
"0.6541706",
"0.653731",
"0.6493179",
"0.6479454",
"0.64634395",
"0.64524937",
"0.64412135",
"0.64165276",
"0.63656306",
"0.6362395",
"0.63431513",
"0.6321917",
"0.6313276",
"0.6310025",
"0.6308781",
"0.6308781",
"0.6308781",
"0.6295176",
"0.629157",
"0.6273355",
"0.6272972",
"0.6270638",
"0.62649816",
"0.6248967",
"0.6234854",
"0.6219569",
"0.6219569",
"0.6218182",
"0.62134045",
"0.62097746",
"0.6183882",
"0.6171628",
"0.61711913",
"0.6168352",
"0.6167902",
"0.6167902",
"0.6167902",
"0.6161789",
"0.6161789",
"0.6161789",
"0.6161789",
"0.6152136",
"0.6146771",
"0.6135503",
"0.6135503",
"0.6135503",
"0.6135503",
"0.6135503",
"0.61333233",
"0.6131473",
"0.6125801",
"0.61255527",
"0.61074877",
"0.6102607",
"0.6102607",
"0.6100912",
"0.6094913",
"0.60905355",
"0.6086326",
"0.60863173",
"0.60769624",
"0.60769624",
"0.60713947",
"0.60699177",
"0.6066331",
"0.6065401",
"0.606205",
"0.606205",
"0.606205",
"0.60570765",
"0.60466146",
"0.6045444",
"0.60423523",
"0.6030404",
"0.6030404",
"0.6030404",
"0.6030404",
"0.6030404",
"0.6030404",
"0.6030404",
"0.60280484",
"0.60278094",
"0.60276973",
"0.6018133",
"0.6008187",
"0.6007554",
"0.6007554",
"0.5997059",
"0.59946066",
"0.59923404",
"0.59923404",
"0.59923404",
"0.59923404",
"0.59923404"
] | 0.0 | -1 |
dont want to send package with size larger than kb | public String receive() {
byte[] data = new byte[1024];
DatagramPacket packet = new DatagramPacket(data, data.length);
//put data into packet
try {
// receive data that is send to socket, which knows the port
//socket will sit until it receives sth --> will freeze application
// need for threads
socket.receive(packet);
} catch (IOException e) {
e.printStackTrace();
}
String message = new String(packet.getData());
return message;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPackageSize(int size){\r\n }",
"int getServerPayloadSizeBytes();",
"@Override\n public void handleMessage(Message msg) {\n sendEmptyMessageDelayed(0, 3000);\n if (resClient.getSendBufferFreePercent() <= 0.05) {\n Toast.makeText(StreamingActivity.this, \"sendbuffer is full,netspeed is low!\", Toast.LENGTH_SHORT).show();\n }\n }",
"int getMaxPackLen()\n {\n return configfile.max_pack_len;\n }",
"@Override\n\tpublic void setBufferSize(int size) {\n\t}",
"@Override\n public int getBufferSize() {\n return 0;\n }",
"public synchronized void limitNextBytes() {\n limitNextBytes(1);\n }",
"@Override\n public void setBufferSize(int arg0) {\n\n }",
"@Test\n public void testEnsureBufferSizeExpandsToMaxBufferSize() {\n assertEnsureBufferSizeExpandsToMaxBufferSize(false);\n }",
"long getMaxFileSizeBytes();",
"public synchronized void limitNextBytes() {\n this.limitNextBytes(1);\n }",
"@Override\n protected int getExpectedOutgoingMessageSize() {\n return 256;\n }",
"private void write10Bytes(String toSend, PrintWriter out) {\n \tStringBuilder str = new StringBuilder(toSend);\n \twhile(str.length() > 5) {\n \t\tString send = str.substring(0, 5);\n \t\tout.print(send);\n \t\tstr.delete(0, 5);\n \t} \t\t\n \tout.println(str.toString());\n }",
"@Override\n\tpublic int getBufferSize() {\n\t\treturn 0;\n\t}",
"public void setMaxFileSize(int sINGLESIZE) {\n\t\t\r\n\t}",
"public abstract int getSmallStackSizeWishInKb();",
"public int getSendBufferSize()\r\n/* 111: */ {\r\n/* 112: */ try\r\n/* 113: */ {\r\n/* 114:140 */ return this.javaSocket.getSendBufferSize();\r\n/* 115: */ }\r\n/* 116: */ catch (SocketException e)\r\n/* 117: */ {\r\n/* 118:142 */ throw new ChannelException(e);\r\n/* 119: */ }\r\n/* 120: */ }",
"public synchronized void limitNextBytes(int len) {\n this.bytesWillBeSentOrReceive += len;\n\n /* We have sent CHUNK_LENGTH bytes */\n while (!Thread.currentThread().isInterrupted() && this.bytesWillBeSentOrReceive > CHUNK_LENGTH) {\n long nowTick = System.nanoTime();\n long missedTime = this.timeCostPerChunk\n - (nowTick - this.lastPieceSentOrReceiveTick);\n if (missedTime > 0) {\n try {\n Thread.currentThread().sleep(missedTime / 1000000,\n (int) (missedTime % 1000000));\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n this.bytesWillBeSentOrReceive -= CHUNK_LENGTH;\n this.lastPieceSentOrReceiveTick = nowTick\n + (missedTime > 0 ? missedTime : 0);\n }\n }",
"public synchronized void limitNextBytes(int len) {\n if (maxRate < 1) {\n return;\n }\n bytesWillBeSentOrReceive += len;\n\n /* We have sent CHUNK_LENGTH bytes */\n while (bytesWillBeSentOrReceive >= CHUNK_LENGTH) {\n long nowTick = System.nanoTime();\n long missedTime = timeCostPerChunk\n - (nowTick - lastPieceSentOrReceiveTick);\n if (missedTime > 0) {\n try {\n Thread.sleep(missedTime / 1000000,\n (int) (missedTime % 1000000));\n } catch (InterruptedException e) {\n// Thread.currentThread().interrupt();\n }\n }\n bytesWillBeSentOrReceive -= CHUNK_LENGTH;\n lastPieceSentOrReceiveTick = nowTick\n + (missedTime > 0 ? missedTime : 0);\n }\n }",
"@Override\n\tpublic boolean canfitLarge() {\n\t\treturn true;\n\t}",
"@Test(timeout = 4000)\n public void test52() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickSize(6372, 3, 2146363568);\n assertEquals(\"id=6372 askSize=2146363568\", string0);\n }",
"int getDefaultBufferSize()\n {\n return getASPManager().isMobileVersion()? configfile.def_mobile_buffer_size: configfile.def_buffer_size;\n }",
"public static void fileSizeOverLimit(Command command, String message) {\n\t\tString str = command.getSender().getAsMention() + \",\\n\";\n\t\t\n\t\tstr += ConfigManager.getMessage(\"large image\").replace(\"%size%\", message);\n\t\tcommand.getChannel().sendMessage(str).complete();\n\t}",
"public abstract int getMessageSize();",
"void decNetSize(){\r\n\t\t\t\tif (size>50)size-=50;\r\n\t\t\t\telse System.out.println(\"Minimum net size reached!\");\r\n\t\t\t}",
"long getSize() throws IOException;",
"long getSize();",
"public int getDownloadBandwidth();",
"@Test\n public void testEnsureBufferSizeExpandsToBeyondMaxBufferSize() {\n assertEnsureBufferSizeExpandsToMaxBufferSize(true);\n }",
"@Override\n\t\t\t\tpublic int fileTransferSend(LinphoneCore lc, LinphoneChatMessage message,\n\t\t\t\t\t\tLinphoneContent content, ByteBuffer buffer, int size) {\n\t\t\t\t\treturn 0;\n\t\t\t\t}",
"private String formPacket(int mSize,String payLoad){\n String toBeSent=\"\";\n for(int i=0;i<mSize/payLoad.length();i++){ //append until message size is reached\n toBeSent+=payLoad;\n }\n if(payLoad.length()>mSize){\n toBeSent=toBeSent.substring(0,mSize+1); //truncate if payload is bigger than the message size\n }\n return toBeSent;\n\n }",
"private void checkAndModifySize() {\r\n if (size == data.length * LOAD_FACTOR) {\r\n resizeAndTransfer();\r\n }\r\n }",
"public static String getSize(long bytes, boolean si) {\n Log.i(\"Size\", bytes + \"\");\n int unit = si ? 1000 : 1024;\n if (bytes < unit) return bytes + \" B\";\n int exp = (int) (Math.log(bytes) / Math.log(unit));\n String pre = (si ? \"kMGTPE\" : \"KMGTPE\").charAt(exp - 1) + (si ? \"\" : \"i\");\n return String.format(\"%.1f %sB\", bytes / Math.pow(unit, exp), pre);\n }",
"@Override\n public long getExactSizeIfKnown() {\n return -1;\n }",
"public void setSendBufferSize(int bufferSize) {\n this.bufferSize = bufferSize;\n }",
"@Override\n public long generateNewContractSize() {\n return (new Random().nextInt(100) + 1) * 250000L;\n }",
"public String getServingSize() throws ClassCastException;",
"public static int sizeBits_p_sendts() {\n return 32;\n }",
"public boolean isSizeCapable(String size) {\n return Integer.parseInt(size) <= this.maxPax;\n }",
"public void setBufferSize(int size) {\n this.response.setBufferSize(size);\n }",
"public int getBufferSize() {\n\t\treturn 0;\n\t}",
"int getBufferSize();",
"@Override\n\tpublic boolean canfitSmall() {\n\t\treturn true;\n\t}",
"private boolean isFull() {\n\t\treturn nbmsg==getSize();\n\t}",
"@Override\n public int getSize() throws Exception {\n return 0;\n }",
"public void setObjectSize(short size) { this.objectSize=size; }",
"@Override\n public int getSize() {\n return 64;\n }",
"public static int size_p_sendts() {\n return (32 / 8);\n }",
"private void sendClientResized() {\n connection.updateVariable(id, \"height\", height, false);\n connection.updateVariable(id, \"width\", width, immediate);\n }",
"public abstract int getMediumStackSizeWishInKb();",
"private int readChunkSize(int desired) {\n return Math.min(availableFirst(), desired);\n }",
"@Value.Default\n public int getByteSize() {\n\treturn 0;\n }",
"boolean hasTotalSize();",
"@Override\n public int getMaxCapacity() {\n return 156250000;\n }",
"long getChunkSize();",
"long getChunkSize();",
"long getChunkSize();",
"long getChunkSize();",
"public int getSizeWithoutHeader() throws Exception {\n return super.getSize();\n }",
"public long getSize();",
"public native long getSentByteCount()\n throws IOException, IllegalArgumentException;",
"public abstract long getSize();",
"@Override\n public int getSize() {\n\treturn 0;\n }",
"static public int isValidPackage(ByteBuf buf)\n\t{\n\t\t\n\t\tif(!buf.isReadable())\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\t\n\t\tbyte stx = 0;\n\t\tint offset = buf.readerIndex();\n\t\tif(buf.readableBytes() < 11)\n\t\t{\n\t\t\tstx = buf.getByte(offset);\n\t\t\tif(stx != EasyPackage.STX )\n\t\t\t{\n\t\t\t\treturn -2;\n\t\t\t}\n\t\t\treturn -1;\n\t\t}\n\t\t\n\t\tstx = buf.getByte(offset);\n\t\t\n\t\tif(stx != EasyPackage.STX)\n\t\t{\n\t\t\treturn -2;\n\t\t}\n\n\t\tbyte format = buf.getByte(offset+1);\n\n\t\tif (format!= EasyPackage.FORMAT_MSGPACK && format!= EasyPackage.FORMAT_JSON){\n\t\t\treturn -2;\n\t\t}\n\n\t\tint headlen = buf.getInt(offset+2);\n\t\t\n\t\tif(headlen > EasyPackage.HEAD_MAX_LEN)\n\t\t{\n\t\t\treturn -2;\n\t\t}\n\n\t\tint bodylen = buf.getInt(offset+6);\n\n\t\tif(bodylen > EasyPackage.BODY_MAX_LEN)\n\t\t{\n\t\t\treturn -2;\n\t\t}\n\t\t\n\t\tif(headlen+bodylen+11 <= buf.readableBytes())\n\t\t{\n\t\t\tbyte etx = buf.getByte(offset+headlen+bodylen+10);\n\t\t\tif(etx != EasyPackage.ETX)\n\t\t\t{\n\t\t\t\treturn -2;\n\t\t\t}\n\t\t\treturn headlen+bodylen+11;\n\t\t}\n\t\telse \n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t}",
"@Override\n public long estimateSize() { return Long.MAX_VALUE; }",
"void incNetSize(){\r\n\t\t\t\tif (size<500)size+=50;\r\n\t\t\t\telse System.out.println(\"Max net size reached!\");\r\n\t\t\t}",
"protected abstract boolean reachedContractLimit(int size);",
"@Override\npublic int getTotalSize() {\n\treturn 0;\n}",
"Long diskSizeBytes();",
"public void setDownloadBandwidth(int bw);",
"public Builder setServerPayloadSizeBytes(int value) {\n \n serverPayloadSizeBytes_ = value;\n onChanged();\n return this;\n }",
"pb4server.MaxPrisonBuffAskReq getMaxPrisonBuffAskReq();",
"@Override\n public int getMessageSize()\n {\n return 0;\n }",
"public void doPack() {\n if (this._sendData == null) {\n this._sendData = new byte[13];\n }\n this._sendData[0] = 0;\n if (this.isMenu) {\n byte[] bArr = this._sendData;\n bArr[0] = (byte) (bArr[0] | 1);\n }\n if (this.isPlayback) {\n byte[] bArr2 = this._sendData;\n bArr2[0] = (byte) (bArr2[0] | 2);\n }\n if (this.isRecord) {\n byte[] bArr3 = this._sendData;\n bArr3[0] = (byte) (bArr3[0] | 4);\n }\n BytesUtil.arraycopy(generateChannelByte(), this._sendData, 1);\n this._sendData[11] = 0;\n if (this.isButton) {\n byte[] bArr4 = this._sendData;\n bArr4[11] = (byte) (bArr4[11] | 1);\n }\n byte[] bArr5 = this._sendData;\n bArr5[11] = (byte) (bArr5[11] | (this.buttonData << 1));\n byte[] bArr6 = this._sendData;\n bArr6[11] = (byte) (bArr6[11] | (this.symbol << 6));\n byte[] bArr7 = this._sendData;\n bArr7[11] = (byte) (bArr7[11] | (this.change << 7));\n byte[] bArr8 = this._sendData;\n bArr8[12] = (byte) (bArr8[12] | this.shutter);\n byte[] bArr9 = this._sendData;\n bArr9[12] = (byte) (bArr9[12] | (this.focus << 1));\n byte[] bArr10 = this._sendData;\n bArr10[12] = (byte) (bArr10[12] | (this.mode_sw << 2));\n byte[] bArr11 = this._sendData;\n bArr11[12] = (byte) (bArr11[12] | (this.transform_sw << 4));\n byte[] bArr12 = this._sendData;\n bArr12[12] = (byte) (bArr12[12] | (this.gohome << 6));\n }",
"@Override\r\n\tpublic long getSize() {\n\t\treturn 0;\r\n\t}",
"int getChunkSize();",
"public int getUploadBandwidth();",
"@Override\n public abstract long getSentBytesCount();",
"void setBufferSize(int bufferSize);",
"int getSize();",
"int getSize();",
"int getSize();",
"int getSize();",
"int getSize();",
"int getSize();",
"int getSize();",
"int getSize();",
"int getSize();",
"int getSize();",
"int getSize();",
"int getSize();",
"int getSize();",
"protected abstract int getMaxDesiredSize();",
"public void broadcastfile(int size, String file_name, byte[] file){\r\n Server.getUsers().forEach((user) -> {\r\n if(!user.getName().equals(this.name)){\r\n user.sendfile(size, file_name, file);\r\n }\r\n \r\n });\r\n \r\n }",
"@Override\n public void msrpTransferProgress(long currentSize, long totalSize) {\n }",
"Long payloadLength();",
"@Override\n public int getPayloadByteCount(int valueCount) {\n return 0;\n }",
"@Override\n\tpublic long getSize() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic long getSize() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int getMaxSizeZ()\n\t{\n\t\treturn 200;\n\t}",
"public int getServerPayloadSizeBytes() {\n return serverPayloadSizeBytes_;\n }"
] | [
"0.6461547",
"0.613846",
"0.59462",
"0.59075326",
"0.5752641",
"0.5752516",
"0.56580293",
"0.5646574",
"0.5642733",
"0.5600271",
"0.5550618",
"0.5543457",
"0.5531028",
"0.55182666",
"0.5510984",
"0.5490072",
"0.5464494",
"0.5452791",
"0.5446252",
"0.5441609",
"0.54357356",
"0.5411587",
"0.5406356",
"0.54052645",
"0.54021424",
"0.53998464",
"0.53971285",
"0.5363295",
"0.5334372",
"0.5315719",
"0.530713",
"0.52969575",
"0.5287518",
"0.52857965",
"0.5284901",
"0.5282548",
"0.5279966",
"0.5273076",
"0.5269231",
"0.525301",
"0.522619",
"0.5217964",
"0.5216174",
"0.5195199",
"0.51836854",
"0.51757693",
"0.5172235",
"0.51697916",
"0.5162987",
"0.5155048",
"0.5154746",
"0.51511264",
"0.5144277",
"0.5137936",
"0.51352006",
"0.51352006",
"0.51352006",
"0.51352006",
"0.51319486",
"0.5128169",
"0.51270217",
"0.51252645",
"0.51209825",
"0.51180273",
"0.51030135",
"0.5099304",
"0.509683",
"0.5094854",
"0.5089239",
"0.50782585",
"0.50728345",
"0.5071938",
"0.5071052",
"0.5068278",
"0.5067713",
"0.50673795",
"0.50620925",
"0.5043573",
"0.50400877",
"0.5034721",
"0.5034721",
"0.5034721",
"0.5034721",
"0.5034721",
"0.5034721",
"0.5034721",
"0.5034721",
"0.5034721",
"0.5034721",
"0.5034721",
"0.5034721",
"0.5034721",
"0.5023284",
"0.5015636",
"0.50123215",
"0.5012309",
"0.50103545",
"0.5008288",
"0.5008288",
"0.5006846",
"0.5006144"
] | 0.0 | -1 |
dont terminate when it is used | public void run(){
synchronized (socket) {
socket.close();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void terminate() {\n\t\r\n\t}",
"public void terminate() {\n\t}",
"public void terminate() {\n\t}",
"public void terminate() {\n\t}",
"@Override\n public final void terminate() {\n }",
"public void terminate() {\n }",
"public void terminate();",
"void terminate();",
"void terminate();",
"void terminate();",
"void terminate();",
"void terminate();",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tisExit=false;\n\t\t\t\t}",
"private static void doWeTerminate() {\n if(nrOfResults == nrOfWorks){\n //clear this round\n nrOfWorks = 0;\n nrOfResults = 0;\n finished = true;\n return;\n }\n }",
"public void terminate() {\n terminated = true;\n }",
"public abstract void terminate();",
"public void terminate() {\r\n running = false;\r\n }",
"@Override\n public void terminateProgram() {\n \n }",
"public void terminate() {\n\t\trunning = false;\n\t}",
"public void terminate(){\n running = false;\n }",
"@Override\n public boolean shouldExit() {\n return true;\n }",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tno();\n\t\t\t\t}",
"public boolean eliminateLoop(){ return false; }",
"public void terminate() {\n logger.info(\"terminate not implemented\");\n }",
"public void terminate()\n\t{\n\t\tsynchronized (this) { this.running = false; }\n\t}",
"public void tryTerminate() {\n if (wip.decrementAndGet() != 0) {\n return;\n }\n if (queue.isEmpty()) {\n completableSubscriber.onCompleted();\n } else {\n completableSubscriber.onError(CompletableOnSubscribeMerge.collectErrors(queue));\n }\n }",
"public Void run() {\n System.exit(0);\n return null;\n }",
"private final void kill() {\n\t\tgrown=false;\t\t\n\t}",
"public void terminateAllCalls();",
"public void safeClose(){\r\n\t\tthis.isRun = false;\r\n\t}",
"protected void end() {\n \t// theres nothing to end\n }",
"public void stop(){\n return;\n }",
"private static void exit(){\n\t\t\n\t\tMain.run=false;\n\t\t\n\t}",
"private static void exit() {\n dvm.exit();\n stop = true;\n }",
"void terminate() {\r\n\t\t\t\tif (done.compareAndSet(false, true)) {\r\n\t\t\t\t\tlatch.countDown();\r\n\t\t\t\t}\r\n\t\t\t}",
"void terminate() {\r\n\t\t\t\tif (done.compareAndSet(false, true)) {\r\n\t\t\t\t\tlatch.countDown();\r\n\t\t\t\t}\r\n\t\t\t}",
"void terminate() {\r\n\t\t\t\tif (done.compareAndSet(false, true)) {\r\n\t\t\t\t\tlatch.countDown();\r\n\t\t\t\t}\r\n\t\t\t}",
"void terminate() {\r\n\t\t\t\tif (done.compareAndSet(false, true)) {\r\n\t\t\t\t\tlatch.countDown();\r\n\t\t\t\t}\r\n\t\t\t}",
"boolean isTerminated();",
"protected void terminate()\n\t\tthrows Exception\n {\n }",
"public void end() {\n\t\tsigue = false;\n\t}",
"private static void exit()\n {\n System.out.println(\"Graceful exit\");\n System.exit(0);\n }",
"@Override\n public boolean isExit() {\n return false;\n }",
"@Override\n public boolean isExit() {\n return false;\n }",
"@Override\n public boolean isExit() {\n return false;\n }",
"@Override\n public boolean isExit() {\n return false;\n }",
"@Override\n public boolean isExit() {\n return false;\n }",
"@Override\n public void run() {\n exit_int=0;\n }",
"private void closedLoopAlgo() {\n\t\tsimonsSimpleAlgo();\n\t}",
"@Override\n public void abort(RuntimeStep exe) {\n }",
"@Override\n\tprotected void onTermination() throws SimControlException {\n\t\t\n\t}",
"@Override\n\tpublic void retstart() {\n\t\t\n\t}",
"private void quit() {\n\r\n\t}",
"private static boolean killAllWorkersExceptItself() {\n\t\treturn false;\n\t\t\n\t}",
"static public void order66() {\n System.exit(0);\n }",
"private static void giveUp() {\r\n\t\tSystem.out.println(\"The server will now terminate.\");\r\n\t\tthrow(new RuntimeException());\r\n\t}",
"protected void terminate(){\r\n\t\tsetTerminate(true);\r\n\t\tHolder holder = this.getDirectHolder();\r\n\t\tsetHolder(null);\r\n\t\tholder.removeItem(this);\r\n\t}",
"public void quit() {\r\n\t\trunning = false;\r\n\t\tt= null;\r\n\t}",
"@Override\n public void terminate() throws HekateException {\n }",
"public void halt ( )\n\t{\n\t\tthis.running = false;\n\t}",
"public boolean doQuit() {\n return false;\n }",
"private void cancelHeavyLifting()\n {\n }",
"@Override\n\tprotected Object run() {\n\t\treturn null;\n\t}",
"protected void finalize() { \n \tstopSelf(); \n }",
"private void exit() {\n this.isRunning = false;\n }",
"@Override\r\n\tpublic void onTerminate() {\n\t\tsuper.onTerminate();\r\n\t}",
"public void arraiter() {\n \tthis.running = false;\n }",
"@Override\n public boolean exitChecker() {\n return false;\n }",
"@Override\n\t\tpublic boolean shouldContinueExecuting() {\n\t\t\treturn false;\n\t\t}",
"@Override\n public boolean isEnding() {\n return false;\n }",
"@Override\n\tpublic void kill() {\n\n\t}",
"@Override\n protected boolean isFinished() \n {\n return false;\n }",
"@Override\n public boolean isInterruptible() {\n return true;\n }",
"public void terminate() {\n this.terminated = true;\n executor.interrupt();\n this.handler = null;\n this.out = null;\n this.in = null;\n this.logger = null;\n this.buffer = null;\n }",
"@Override\n\tpublic void exit() {\n\t\t//do nothing\n\t}",
"@Override\n\tpublic int exit() {\n\t\treturn 0;\n\t}",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"protected void end() {\n \tpid.disable();\n }",
"protected void end() {\n\r\n\t}",
"public void terminateCollect(){\n\t\t\ttry {\n\t\t\t\tdumpHandler.breakLoop();\t\t\t\t\n\t\t\t\tdumpHandler.close();\n\t\t\t\tlog.info(\"terminate!\");\n\t\t\t\t \n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\t\n\t\t\t\n\n\t}",
"@Override\r\n\tpublic boolean terminate() {\n\t\tString METHOD_NAME = \"::terminate::\";\r\n\t\tlogger.debug(CLASS_NAME + METHOD_NAME + \"Inside...\");\r\n\t\treturn false;\r\n\t}",
"@Override\n public void kill()\n {\n }",
"protected void end()\n\t{\n\t\tstop();\n\t}",
"public void stop() {\n intake(0.0);\n }",
"protected void exit() {\n\t\tSystem.exit(0);\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\t\t\n\t}",
"private void processQuit() {\n System.exit(0);\n }"
] | [
"0.69544613",
"0.6918962",
"0.6918962",
"0.6918962",
"0.6896004",
"0.6718687",
"0.66932184",
"0.66445065",
"0.66445065",
"0.66445065",
"0.66445065",
"0.66445065",
"0.66139823",
"0.6568534",
"0.65579987",
"0.6530413",
"0.65272033",
"0.6526809",
"0.6507576",
"0.65005237",
"0.6475728",
"0.6473116",
"0.64574975",
"0.64272267",
"0.63294095",
"0.6328948",
"0.62960696",
"0.6240981",
"0.62181",
"0.62162185",
"0.6196399",
"0.6155169",
"0.6152767",
"0.61363804",
"0.6115033",
"0.6115033",
"0.6115033",
"0.6115033",
"0.61077946",
"0.6107367",
"0.6105404",
"0.61046433",
"0.6092794",
"0.6092794",
"0.6092794",
"0.6092794",
"0.6092794",
"0.6085827",
"0.6085142",
"0.60839504",
"0.6076164",
"0.6064543",
"0.6062923",
"0.6060774",
"0.6059794",
"0.6054601",
"0.60514027",
"0.60465276",
"0.6045665",
"0.6041443",
"0.60410273",
"0.6029023",
"0.6026473",
"0.60237694",
"0.6022072",
"0.60126245",
"0.5998353",
"0.59927",
"0.59892523",
"0.59885466",
"0.5973603",
"0.5968257",
"0.5961127",
"0.5946034",
"0.59440434",
"0.59436995",
"0.5937732",
"0.5937732",
"0.5937732",
"0.5937732",
"0.5937732",
"0.5937732",
"0.5937732",
"0.5937732",
"0.5937732",
"0.5937732",
"0.5937732",
"0.5937732",
"0.5937732",
"0.5937732",
"0.5937732",
"0.59371734",
"0.5933562",
"0.59304476",
"0.59285647",
"0.59246963",
"0.5920109",
"0.5918267",
"0.5912824",
"0.5904251",
"0.5901798"
] | 0.0 | -1 |
method to search an element using ternary search algorithm | public static int ternarySearch(int[] arr, int low, int high, int data) {
if (low <= high) {
int mid1 = low + (high - low) / 3;
int mid2 = high - (high - low) / 3;
if (data == arr[mid1])
return mid1;
else if (data == arr[mid2])
return mid2;
else if (data < arr[mid1])
return ternarySearch(arr, low, mid1 - 1, data);
else if (data > arr[mid1] && data < arr[mid2])
return ternarySearch(arr, mid1 + 1, mid2 - 1, data);
else
return ternarySearch(arr, mid2 + 1, high, data);
}
// if the element is not present then, return -1
return -1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean search(T element);",
"public T find(T element);",
"public abstract Iter<Boolean> search(T element);",
"int search(E item);",
"private void search(Object value)\r\n\t\t{\n\r\n\t\t}",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public int Search(Element e){\n\tint int_ret_val ;\n\tList aux01 ;\n\tElement var_elem ;\n\tboolean var_end ;\n\tint nt ;\n\n\tint_ret_val = 0 ;\n\taux01 = this ;\n\tvar_end = end;\n\tvar_elem = elem ;\n\twhile (!var_end){\n\t if (e.Equal(var_elem)){\n\t\tint_ret_val = 1 ;\n\t }\n\t else nt = 0 ;\n\t aux01 = aux01.GetNext() ;\n\t var_end = aux01.GetEnd();\n\t var_elem = aux01.GetElem();\n\t}\n\treturn int_ret_val ;\n }",
"public abstract Solution<T> search(Searchable<T> s);",
"public Node<T> findSlow(T element);",
"abstract public void search();",
"public T find (T target);",
"@Override\n\tpublic T find(T targetElement) {\n\t\tif(contains(targetElement))\n\t\t return targetElement;\n\t\telse \n\t\t\treturn null;\n\t\t\n\t}",
"@Override\n\tpublic Etape find(String search) {\n\t\treturn null;\n\t}",
"private boolean search(BTNode r, T val)\r\n {\r\n if (r.getData() == val)\r\n return true;\r\n if (r.getLeft() != null)\r\n if (search(r.getLeft(), val))\r\n return true;\r\n if (r.getRight() != null)\r\n if (search(r.getRight(), val))\r\n return true;\r\n return false; \r\n }",
"String search(int key);",
"public int search(String searchElem) {\n int hi = next-1;\n int lo = 0;\n int mid = 0;\n while (lo <= hi) {\n mid = (lo + hi) / 2;\n if (data[mid].field.equals(searchElem)) break;\n if (data[mid].field.compareTo(searchElem) < 0)\n lo = mid + 1;\n else\n hi = mid - 1;\n }\n if (mid == 0) return -1;\n else if (data[mid].field.equals(searchElem)) return mid;\n else return -1;\n }",
"@In String search();",
"public int ternarySearch(int[] array,int target) {\n return 1;\n }",
"public DLLNode<String> search(String element) {\r\n\tDLLNode<String> temp = (DLLNode<String>) header;\r\n\twhile(temp != null) {\r\n\t\tif (temp.getInfo().contains(element)) {\r\n\t\t\treturn temp;\r\n\t\t}\r\n\t\ttemp = (DLLNode<String>) temp.getLink();\r\n\t}\r\n\treturn null;\r\n}",
"private void searchFunction() {\n\t\t\r\n\t}",
"private Element traverse_search(Element element) {\n \ttry {\n\t \tString userid = profile.getAttributeValue(\"personal\", \"id\");\n\t \tString course = profile.getAttributeValue(\"personal\", \"course\");\n\t \tString context = WOWStatic.config.Get(\"CONTEXTPATH\");\n\n\t \tElement a = doc.createElement(\"a\");\n\t \ta.setAttribute(\"href\", context + \"/Get?wndName=Search\");\n\t \ta.setAttribute(\"target\", userid + \"$\" + course);\n\t \ta.appendChild(doc.createTextNode(\"Search\"));\n\t \treturn (Element)replaceNode(element, a);\n \t}\n \tcatch(Throwable e) {\n \t\te.printStackTrace();\n \t\treturn (Element)replaceNode(element, createErrorElement(\"Error!\"));\n \t}\n }",
"@Override\n public boolean search(E e) {\n \treturn search(e, root);\n\n }",
"public abstract Search defaultSearch(StringBuilder sb);",
"public boolean search(E e){\n boolean blResult = false;\n\n /** TODO: INSERT YOUR CODE HERE\n *\n * SEARCH FOR THE ITEM PASSED AS PARAMETER AND RETURN TRUE IF FOUND\n * ELSE RETURN FALSE\n *\n *\n */\n return blResult;\n }",
"private AvlNode<E> find(Comparable<E> element, AvlNode<E> node){\n if(node == null) {\n return null;\n } else {\n comparisons++;\n if(node.value.compareTo((E)element) > 0){\n return find(element, node.left);\n } else if(node.value.compareTo((E)element) < 0){\n return find(element, node.right);\n } else {\n return node;\n }\n }\n }",
"void search();",
"void search();"
] | [
"0.74570984",
"0.7204477",
"0.70815605",
"0.6707192",
"0.66871214",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.6574042",
"0.65735316",
"0.65735316",
"0.65735316",
"0.65735316",
"0.65735316",
"0.65735316",
"0.65735316",
"0.65735316",
"0.65735316",
"0.65735316",
"0.65735316",
"0.65735316",
"0.65735316",
"0.65735316",
"0.65735316",
"0.65735316",
"0.65735316",
"0.65735316",
"0.65735316",
"0.65735316",
"0.65735316",
"0.65735316",
"0.65735316",
"0.65735316",
"0.65735316",
"0.65298194",
"0.65271527",
"0.64865124",
"0.64715916",
"0.6436579",
"0.63818574",
"0.6348203",
"0.63202465",
"0.6317877",
"0.6265463",
"0.62277395",
"0.62205666",
"0.6216104",
"0.6201471",
"0.62001884",
"0.6196089",
"0.618001",
"0.6166295",
"0.6164082",
"0.6164082"
] | 0.0 | -1 |
Determine whether this course is externally managed | public void init() {
externallyManaged = getCourse().isExternallyManaged();
// Get the default search text
if(StringUtils.trimToNull(searchText) == null) {
searchText = JsfUtil.getLocalizedMessage("roster_search_text");
}
// Get the site enrollments
List siteStudents;
if(searchText.equals(JsfUtil.getLocalizedMessage("roster_search_text"))) {
siteStudents = getSectionManager().getSiteEnrollments(getSiteContext());
} else {
siteStudents = getSectionManager().findSiteEnrollments(getSiteContext(), searchText);
}
// Get the section enrollments
Set studentUids = new HashSet();
for(Iterator iter = siteStudents.iterator(); iter.hasNext();) {
ParticipationRecord record = (ParticipationRecord)iter.next();
studentUids.add(record.getUser().getUserUid());
}
SectionEnrollments sectionEnrollments = getSectionManager().getSectionEnrollmentsForStudents(getSiteContext(), studentUids);
// Construct the decorated enrollments for the UI
List unpagedEnrollments = new ArrayList();
categories = getSectionManager().getSectionCategories(getSiteContext());
for(Iterator iter = siteStudents.iterator(); iter.hasNext();) {
EnrollmentRecord enrollment = (EnrollmentRecord)iter.next();
// Build a map of categories to sections in which the student is enrolled
Map map = new HashMap();
for(Iterator catIter = categories.iterator(); catIter.hasNext();) {
String cat = (String)catIter.next();
CourseSection section = sectionEnrollments.getSection(enrollment.getUser().getUserUid(), cat);
map.put(cat, section);
}
EnrollmentDecorator decorator = new EnrollmentDecorator(enrollment, map);
unpagedEnrollments.add(decorator);
}
// Sort the list
Collections.sort(unpagedEnrollments, getComparator());
// Filter the list
enrollments = new ArrayList();
int lastRow;
int maxDisplayedRows = getPrefs().getRosterMaxDisplayedRows();
if(maxDisplayedRows < 1 || firstRow + maxDisplayedRows > unpagedEnrollments.size()) {
lastRow = unpagedEnrollments.size();
} else {
lastRow = firstRow + maxDisplayedRows;
}
enrollments.addAll(unpagedEnrollments.subList(firstRow, lastRow));
enrollmentsSize = unpagedEnrollments.size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isExternallyManaged();",
"boolean getIsManaged();",
"public boolean isExternal()\n {\n return false;\n }",
"public boolean isCollectorHostExternal(String clusterName);",
"boolean hasExternalAttributionModel();",
"boolean hasExternalAttributionCredit();",
"public boolean isManaged() {\n return managed;\n }",
"public boolean isManaged() throws IOException {\n return getRenewer().isManaged(this);\n }",
"public Boolean external() {\n return this.external;\n }",
"public boolean isProcessExternalEntities() {\n\t\treturn this.processExternalEntities;\n\t}",
"boolean isInternal();",
"private Boolean isExternalBackendRunning() {\n\t\ttry {\n\t\t\tHttpResponse response = this.http.get(this.guid);\n\t\t\tif (HTTP.getCode(response) != 200) {\n\t\t\t\tHTTP.release(response);\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\treturn HTTP.getString(response).equals(Backend.OUTPUT_GUID);\n\t\t} catch (IOException exception) {\n\t\t\treturn false;\n\t\t}\n\t}",
"boolean internal();",
"public boolean isInternalThesis() {\n return hasThesis() && getThesis().isFinalAndApprovedThesis();\n }",
"private boolean isManagedKioskInternal() throws RemoteException {\n return mOwners.hasDeviceOwner()\n && mInjector.getIActivityManager().getLockTaskModeState()\n == ActivityManager.LOCK_TASK_MODE_LOCKED\n && !isLockTaskFeatureEnabled(DevicePolicyManager.LOCK_TASK_FEATURE_SYSTEM_INFO)\n && !deviceHasKeyguard()\n && !inEphemeralUserSession();\n }",
"@ApiModelProperty(value = \"This is an internally managed gift certificate associated with the loyalty cash rewards program.\")\n public Boolean isInternal() {\n return internal;\n }",
"private boolean isAlcoholic(ContentNodeModel m) {\n\t\tfinal ContentNodeModel dept = ContentNodeModelUtil.findDepartment(m);\n\t\tif (dept != null) {\n\t\t\tfinal ContentKey aKey = dept.getContentKey();\n\n\t\t\tif (aKey != null && WineUtil.getWineAssociateId().toLowerCase().equalsIgnoreCase(aKey.getId())) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"public boolean isExternalCommand() {\n Boolean external = KEY_EXTERNAL_OR_FUNCTION.get(this);\n return external != null && external && !isFunctionCall();\n }",
"public Boolean isRunning() {\n\t\t// We don't know if it is an external process or not yet ---------------\n\t\t// (first check in the program or after a stop)\n\n\t\tif (this.isManagedExternally == null) {\n\t\t\tif (this.isExternalBackendRunning()) {\n\t\t\t\tthis.isManagedExternally = true;\n\t\t\t\treturn true; // to avoid unnecessary duplicate request below\n\t\t\t} else {\n\t\t\t\tthis.isManagedExternally = false;\n\t\t\t}\n\t\t}\n\n\t\t// Externally managed --------------------------------------------------\n\n\t\tif (this.isManagedExternally) {\n\t\t\treturn this.isExternalBackendRunning();\n\t\t}\n\n\t\t// We manage the process ourself ---------------------------------------\n\n\t\treturn this.processRunner.isRunning();\n\t}",
"boolean hasJobIDSource();",
"public Boolean getHasInternalDecoy() {\n\t\treturn proteinModeller.getInternalDecoysExist();\n\t}",
"@Override\r\n\t\tpublic boolean isCompanion() {\n\t\t\treturn state.isCompanion();\r\n\t\t}",
"public boolean hasExternalAddressbooks() throws RemoteException;",
"public boolean isPlataformaExterna() {\r\n\t\treturn plataformaExterna;\r\n\t}",
"public boolean isFromAuthoritative()\n {\n if ((this.flag & 0x0400) == 0)\n {\n // not from a authoritative server\n return false;\n }\n\n else return true;\n }",
"public boolean isSelectedPredefinedCourse(){\n if(predefinedCourseName == null) return false;\n else return true;\n }",
"public boolean isSetComparesource()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(COMPARESOURCE$2) != 0;\r\n }\r\n }",
"public abstract boolean isUsable();",
"public boolean isExternalBrowser() {\n return externalBrowserCheckbox.getSelection();\n }",
"boolean isShared();",
"boolean isAllowClusterGet();",
"public static boolean isLearnable(IndustrySpecAPI spec)\n {\n return true;\n }",
"boolean checkCourse (String course){\r\n // If the course either .net or c/c++ or java, then return true\r\n if (course.equalsIgnoreCase(\".net\") \r\n || course.equalsIgnoreCase(\"c/c++\") \r\n || course.equalsIgnoreCase(\"java\"))\r\n return true;\r\n // else if it's not neither, return false\r\n else return false;\r\n \r\n }",
"public boolean isCardToAccuse() {\n\t\treturn (getOwner() == CASE_FILE_PLAYER);\n\t}",
"boolean hasPublicProfile();",
"public boolean isManagedBy(Account account) {\n\t\treturn this.getManagers().contains(account);\n\t}",
"public boolean isProvidingCourse(String userid){\n\t\t\n\t\tboolean courseprovider = false;\n\t\t\n\t\tMongoConnection mongocon = new MongoConnection();\n\t\tDBCursor resultcursor = mongocon.getDBObject(\"userid\", userid, \"Course\");\n\t\tif(resultcursor.hasNext()){\n\t\t\tDBObject theObj = resultcursor.next();\n\t\t\n\t\t\tCourses courses = new Courses();\n\t\t\t\n\t\t\tcourses.setCourseCategory((String)theObj.get(\"courseCategory\"));\n\t\t\tcourses.setCoursecreatedate((String)theObj.get(\"coursecreatedate\"));\n\t\t\tcourses.setCoursecreatelocation((String)theObj.get(\"coursecreatelocation\"));\n\t\t\tcourses.setCourseDescription((String)theObj.get(\"courseDescription\"));\n\t\t\tcourses.setCourseFee((String)theObj.get(\"courseFee\"));\n\t\t\tcourses.setCourseid((String)theObj.get(\"courseid\"));\n\t\t\tcourses.setCourseimageid((String)theObj.get(\"courseimageid\"));\n\t\t\tcourses.setCourselinkid((String)theObj.get(\"courselinkid\"));\n\t\t\tcourses.setCourseName((String)theObj.get(\"courseName\"));\n\t\t\tcourses.setCourseownerid((String)theObj.get(\"courseownerid\"));\n\t\t\tcourses.setCoursepublisheddate((String)theObj.get(\"coursepublisheddate\"));\n\t\t\tcourses.setCoursepublishlocation((String)theObj.get(\"coursepublishlocation\"));\n\t\t\tcourses.setCourseReview((String)theObj.get(\"courseReview\"));\n\t\t\t\n\t\t\tString[] weekids = ((String)theObj.get(\"courseweekids\")).split(\",\");\n\t\t\t\n\t\t\tcourses.setCourseweekids(weekids);\n\t\t\tcourseprovider = true;\n\t\t\t\n\t\t\tcourselist.add(courses);\n\t\t\t\n\t\t}else{\n\t\t\tcourselist.add(\"\");\n\t\t}\n\t\t\n\t\t\n\t\treturn courseprovider;\n\t}",
"boolean supportsExternalTool();",
"Boolean getIsCritical();",
"public boolean isParallizable(CasProcessor aProcessor, String aCpName) throws Exception {\n boolean isConsumer = false;\n if (aProcessor instanceof CasConsumer || aProcessor instanceof CasDataConsumer) {\n isConsumer = true;\n }\n\n // casProcessingConfigMap may not contain configuration for this Cas Processor if this CP has\n // been\n // added dynamically via API. In this case, just go to metadata and determine via its\n // OperationalProperties if this is parallelizable component.\n if (!cpeFactory.casProcessorConfigMap.containsKey(aCpName)) {\n OperationalProperties op = aProcessor.getProcessingResourceMetaData()\n .getOperationalProperties();\n if (op != null) {\n return op.isMultipleDeploymentAllowed();\n }\n\n if (UIMAFramework.getLogger().isLoggable(Level.SEVERE)) {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.SEVERE, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE,\n \"UIMA_CPM_invalid_processor_configuration__SEVERE\",\n new Object[] { Thread.currentThread().getName(), aCpName });\n\n }\n if (isConsumer) {\n return false; // by default the CasConsumer is not parallizable\n }\n return true; // by dafault AEs are parallizable\n }\n // Retrieve Cas Processor's CPE descriptor configuration.\n CpeCasProcessor casProcessorCPEConfig = (CpeCasProcessor) cpeFactory.casProcessorConfigMap\n .get(aCpName);\n\n if (Constants.DEPLOYMENT_LOCAL.equalsIgnoreCase(casProcessorCPEConfig.getDeployment())) {\n // Extract the client service descriptor.\n URL descriptorUrl = cpeFactory.getDescriptorURL(casProcessorCPEConfig);\n Descriptor descriptor = new Descriptor(descriptorUrl.toString());\n // From the client service descriptor extract the actual Cas Processor descriptor\n String aResourceSpecifierPath = descriptor.getResourceSpecifierPath();\n // Determine if this Cas Processor is parallelizable\n boolean is = isMultipleDeploymentAllowed(aResourceSpecifierPath,\n casProcessorCPEConfig.getName(), isConsumer);\n return is;\n } else if (Constants.DEPLOYMENT_INTEGRATED\n .equalsIgnoreCase(casProcessorCPEConfig.getDeployment())) {\n // If OperationalProperties are not defined use defaults based on CasProcessor type\n if (aProcessor.getProcessingResourceMetaData().getOperationalProperties() == null) {\n if (isConsumer) {\n return false; // default for CasConsumer\n }\n return true; // default for AEs\n }\n\n return aProcessor.getProcessingResourceMetaData().getOperationalProperties()\n .isMultipleDeploymentAllowed();\n }\n // Default is parallelizable\n return true;\n }",
"public abstract boolean canUse();",
"boolean hasUserManaged();",
"public boolean isExternalStorageEmulated() throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n boolean _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n mRemote.transact(Stub.TRANSACTION_isExternalStorageEmulated, _data, _reply, 0);\n _reply.readException();\n _result = 0 != _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }",
"boolean isOnlineEvaluation();",
"public boolean isReserved() {\n return target.searchLink(ParentLinkName.ENTERPRISE) != null;\n }",
"public boolean isPrimary() {\n return this.placement.isIsPtlp();\n }",
"boolean hasCustomerManagerLink();",
"boolean isSetIsManaged();",
"public boolean isUnauthored() {\n return this.scientificNameAuthorship == null;\n }",
"public abstract boolean isOwner (String url);",
"public boolean isLocal();",
"public boolean isManaged(T instance) {\r\n\t\tif (instance != null) {\r\n\t\t\tif (instance.getId() > 0) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t} \r\n\t\treturn false;\r\n\t}",
"boolean getIsLocalClient();",
"boolean hasCustomerClientLink();",
"public boolean isWCS();",
"public boolean isOnline()\n\t{\n\t\treturn PlayerManager.getPlayer(name)!=null;\n\t}",
"public static boolean own() {\n return InventoryManager.getAccessibleCount(ItemPool.COMBAT_LOVERS_LOCKET) > 0;\n }",
"public boolean isPrivate()\n {\n ensureLoaded();\n return m_flags.isPrivate();\n }",
"public boolean isUsedByVerifier() {\r\n return usedByVerifier;\r\n }",
"public boolean isPistonACEngine () \n\t{\n\t\tObject oo = get_Value(COLUMNNAME_IsPistonACEngine);\n\t\tif (oo != null) \n\t\t{\n\t\t\t if (oo instanceof Boolean) \n\t\t\t\t return ((Boolean)oo).booleanValue(); \n\t\t\treturn \"Y\".equals(oo);\n\t\t}\n\t\treturn false;\n\t}",
"boolean isNilIsManaged();",
"protected int isExternByAddress(String address) {\n\t\ttry {\n\t\t\tPreparedStatement pstmt = \n\t\t\t\t\tthis.agent.getDatabaseManager().getConnection().prepareStatement(\n\t\t\t\t\t\t\tthis.agent.getDatabaseManager().selectByAddress);\n\t pstmt.setString(1,address);\n\t ResultSet rs = pstmt.executeQuery();\n\t return rs.getInt(\"isExtern\");\n\t\t} catch (Exception e) {\n\t\t\tAgent.errorMessage(\n\t\t\t\t\tString.format(\"ERROR when trying to get isExtern of address %s in the database\\n\",address), e);\n\t\t}\n return 0; // Pas accessible\n\t}",
"@Override\n\tpublic boolean isIsCompile() {\n\t\treturn _scienceApp.isIsCompile();\n\t}",
"@Override\r\n\tpublic boolean isComputer() {\n\t\treturn false;\r\n\t}",
"@DISPID(1611006060) //= 0x6006006c. The runtime will prefer the VTID if present\n @VTID(135)\n boolean externalReferencesAsVisible();",
"boolean isUsed();",
"boolean isUsed();",
"boolean isCanSeeFriendlyInvisibles();",
"public boolean isExternalStorageEmulated() throws RemoteException;",
"public abstract boolean isShared();",
"public boolean isInPlanOfStudy(Course representedCourse) {\n\t\treturn false;\n\t}",
"public boolean isComputer() {\n\t\treturn isComputer;\n\t}",
"public boolean canBeUsed(){\n\t\treturn !(this.isUsed);\n\t}",
"public boolean isPublic()\n {\n ensureLoaded();\n return m_flags.isPublic();\n }",
"boolean hasDataPartner();",
"public boolean isCriticalPath(){\n return this.criticalPath;\n }",
"boolean hasInstructor(){\n\t\treturn instructor == null ? false : true;\n\t}",
"@Override\n\tpublic boolean checkCourse(String code) {\n\t\treturn false;\n\t}",
"public boolean isAccessibilityComputationAreaFromNetwork() {\n return accessibilityComputationAreaFromNetwork;\n }",
"boolean isPrivate();",
"boolean ignoreExternal();",
"public boolean isUseable()\n {\n if (state == 0)\n {\n return true;\n }\n return false;\n }",
"boolean hasIsGoogleCn();",
"public boolean isStoreLeaseEligibilityInd() {\n return storeLeaseEligibilityInd;\n }",
"public final boolean aCL() {\n return false;\n }",
"private boolean isOnline() {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) owner.getBaseContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }",
"public boolean isProgramActive(String programId);",
"boolean isAchievable();",
"public boolean needsExternalStorage() {\n return FileUtil.isExternalStorageUri(this.form, this.resolvedPath);\n }",
"private static boolean isExternal( HtmlBrowser.Factory brow ) {\n FileObject fo = FileUtil.getConfigFile (\"Services/Browsers\"); // NOI18N\n\n DataFolder folder = DataFolder.findFolder (fo);\n DataObject [] dobjs = folder.getChildren ();\n for (int i = 0; i < dobjs.length; i++) {\n Object o = null;\n\n try {\n if (Boolean.TRUE.equals (dobjs[i].getPrimaryFile ().getAttribute (\"hidden\")))\n continue;\n if (!Boolean.TRUE.equals (dobjs[i].getPrimaryFile ().getAttribute (\"internal\")) )\n continue;\n InstanceCookie cookie = (InstanceCookie) dobjs[i].getCookie (InstanceCookie.class);\n\n if (cookie == null)\n continue;\n o = cookie.instanceCreate ();\n if (o != null && o.equals (brow)) {\n return false;\n }\n }\n // exceptions are thrown if module is uninstalled\n catch (java.io.IOException ex) {\n Logger.getLogger (IDESettings.class.getName ()).log (Level.WARNING, null, ex);\n } catch (ClassNotFoundException ex) {\n Logger.getLogger (IDESettings.class.getName ()).log (Level.WARNING, null, ex);\n }\n }\n return false;\n }",
"boolean hasResource();",
"@Override\n public boolean isCommunicte(String addr) {\n return mCommunciation.isCommunicte(addr);\n }",
"public boolean checkPublic(Integer ctId) {\n ContestEntity contestEntity = getContestById(ctId);\n if (contestEntity.getIsAnyoneCanParticipate().equals(1)\n && contestEntity.getShowInforToAll().equals(1)){\n return true;\n }\n return true;\n }",
"boolean hasManagedPlacementView();",
"public boolean isCrossWorldActivationAllowed() {\n return getConfig().getBoolean(\"teleportal.cross-world\", true);\n }",
"@Override\n\tpublic boolean getIsCompile() {\n\t\treturn _scienceApp.getIsCompile();\n\t}",
"public boolean isConnected(){\r\n return (id!=-1 && matlabEng!=null); \r\n }",
"boolean isParallel();",
"boolean hasEnableInlineVm();",
"boolean hasOfflineUserDataJob();",
"private boolean canEnlist() {\n\n return uiStateManager.getState().equals(GameUIState.WAVE_IN_PROGRESS)\n || uiStateManager.getState().equals(GameUIState.STANDBY);\n }"
] | [
"0.6541918",
"0.65183556",
"0.6420811",
"0.6269018",
"0.62395227",
"0.6207387",
"0.6185073",
"0.61838096",
"0.608948",
"0.60257316",
"0.595157",
"0.58435416",
"0.57782555",
"0.57772917",
"0.5771294",
"0.5753364",
"0.5728508",
"0.56668836",
"0.5659413",
"0.56590676",
"0.5655303",
"0.559616",
"0.5587879",
"0.5580017",
"0.55580837",
"0.5557101",
"0.5554412",
"0.5531778",
"0.5530364",
"0.55097723",
"0.5506397",
"0.55001575",
"0.5499342",
"0.5493028",
"0.54850966",
"0.5478243",
"0.5474677",
"0.54688686",
"0.5466098",
"0.5462529",
"0.54524183",
"0.5450259",
"0.5445414",
"0.54449743",
"0.54406714",
"0.5433881",
"0.5433763",
"0.5414094",
"0.5412332",
"0.5411209",
"0.54064935",
"0.540269",
"0.53963274",
"0.53898084",
"0.5382746",
"0.53800637",
"0.53797257",
"0.5370508",
"0.53668314",
"0.5366371",
"0.53579164",
"0.53504723",
"0.53366774",
"0.53357285",
"0.53336245",
"0.5332181",
"0.5332181",
"0.53263426",
"0.53218716",
"0.53207755",
"0.5318532",
"0.5315283",
"0.53059876",
"0.5305388",
"0.5297015",
"0.52970064",
"0.5296931",
"0.5295298",
"0.5294533",
"0.529309",
"0.5292612",
"0.5291514",
"0.5287617",
"0.5286545",
"0.52795196",
"0.5278592",
"0.5272406",
"0.527033",
"0.5270231",
"0.52664894",
"0.5260401",
"0.5260348",
"0.52590847",
"0.52451223",
"0.52434343",
"0.5243344",
"0.5241213",
"0.5237054",
"0.5225449",
"0.5223729",
"0.5221309"
] | 0.0 | -1 |
Created by LeidyZuluaga on 13/06/16. | @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_view_times_manager_detail);
expandableListView = (ExpandableListView) findViewById(R.id.elvCollaborator);
listDetail = new ArrayList<>();
expandableListDetailAdapter = new ExpandableListDetailAdapter(this, listDetail);
expandableListView.setAdapter(expandableListDetailAdapter);
ButterKnife.inject(this);
overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_left);
progressDialog = new ProgressDialog(this);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbarDetail);
setSupportActionBar(toolbar);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
manager = new SecurePreferences(this);
usercode = manager.getString(Constants.USER_CODIGO);
iValidateInternet = new ValidateInternet(ViewTimesManagerDetailActivity.this);
week();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n public void init() {\n\n }",
"public void mo38117a() {\n }",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void interr() {\n\t}",
"public void mo4359a() {\n }",
"public void gored() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n public void init() {\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n void init() {\n }",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n public void init() {}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"private void poetries() {\n\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\n protected void initialize() \n {\n \n }",
"private void m50366E() {\n }",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n protected void init() {\n }",
"public void mo6081a() {\n }",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"Petunia() {\r\n\t\t}",
"private void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"@Override\n public void initialize() { \n }",
"@Override\n\tpublic void afterInit() {\n\t\t\n\t}",
"@Override\n\tpublic void afterInit() {\n\t\t\n\t}",
"public void mo55254a() {\n }",
"protected void mo6255a() {\n }",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n public int getSize() {\n return 1;\n }"
] | [
"0.6211446",
"0.60265297",
"0.5970745",
"0.5923373",
"0.58919007",
"0.58919007",
"0.58873373",
"0.58840567",
"0.5861458",
"0.5851131",
"0.5839344",
"0.5833579",
"0.58219814",
"0.5810128",
"0.57800645",
"0.5775014",
"0.57531816",
"0.57182646",
"0.571392",
"0.56875455",
"0.5682132",
"0.5676193",
"0.567327",
"0.5654848",
"0.56545657",
"0.56465095",
"0.56465095",
"0.56465095",
"0.56465095",
"0.56465095",
"0.56425077",
"0.5624442",
"0.5620189",
"0.5620189",
"0.5605992",
"0.5604679",
"0.5583458",
"0.55833745",
"0.55810535",
"0.55803645",
"0.5575002",
"0.5567825",
"0.555641",
"0.5551557",
"0.5548992",
"0.5548992",
"0.55416185",
"0.55398685",
"0.55398685",
"0.55398685",
"0.55398685",
"0.55398685",
"0.55398685",
"0.55398685",
"0.5537697",
"0.5537697",
"0.5537697",
"0.5537697",
"0.5537697",
"0.5537697",
"0.552648",
"0.5524639",
"0.55217797",
"0.55217797",
"0.55217797",
"0.55202824",
"0.55202425",
"0.55202425",
"0.5510362",
"0.55097574",
"0.5498804",
"0.54945093",
"0.54888034",
"0.54888034",
"0.54888034",
"0.54768157",
"0.5476466",
"0.5476466",
"0.5476466",
"0.54761773",
"0.5475447",
"0.54631317",
"0.54537165",
"0.5450849",
"0.5445828",
"0.54405147",
"0.5434414",
"0.54322094",
"0.5430708",
"0.5427584",
"0.54236966",
"0.54227984",
"0.5419022",
"0.5412744",
"0.5401121",
"0.5401121",
"0.5389513",
"0.5366893",
"0.53660274",
"0.53605914",
"0.53597516"
] | 0.0 | -1 |
navigate to next screen | @Override
public void run() {
Intent intent = new Intent(SplashScreenActivity.this, MainActivity.class);
startActivity(intent);
finish();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void goToNextActivity() {\n startActivity(new Intent(this,NextActivity.class));\n }",
"public void goToNextPage() {\n nextPageButton.click();\n }",
"private void nextScreen() {\n mHandler.post(new Runnable() {\n @Override\n public void run() {\n Intent intent = new Intent(SplashScreenActivity.this, HomeActivity.class);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n //check draw over app permission\n if (!Settings.canDrawOverlays(SplashScreenActivity.this)) {\n intent = new Intent(SplashScreenActivity.this, DrawOverAppActivity.class);\n }\n }\n startActivity(intent);\n }\n });\n }",
"public void setNextScreen(game_screen nextScreen) {\n this.nextScreen = nextScreen;\n }",
"protected void loadNextActivity() {\n\t\tIntent intent = new Intent(this, nextActivityClass);\n\t\tstartActivity(intent);\n\t}",
"private void nextActivity(String id)\n\t{\n\t\tIntent intent=new Intent(kanto_Map, PropertyList.class);\n\t\tintent.putExtra(\"Id\", id);\n\t\tkanto_Map.startActivity(intent);\n\t}",
"@Override\n\t public void onFinish(){\n\t \tIntent nextScreen = new Intent(getApplicationContext(), Main_Menu_2.class);\n\t\t\t // TODO Auto-generated method stub\n\t\t startActivity(nextScreen);\n\t }",
"private void nextLevel() {\n Intent nextLevel = new Intent(GameLevelActivity.this, GameLevelActivity.class);\n nextLevel.putExtra(IGameLevelConstants.INTENT_TYPE, IGameLevelConstants.NEXT_LEVEl);\n startActivity(nextLevel);\n }",
"@Override\n\tpublic void navigateToNext(String phoneNum) {\n\t\t\n\t}",
"public void next() {\n String type = startIntent.getStringExtra(\"type\");\n String mdKey = startIntent.getStringExtra(\"md_key\");\n Intent next = new Intent(activity, MainActivity.class);\n\n if(type != null && !type.isEmpty() ||\n (type != null && !type.isEmpty() &&\n mdKey != null && !mdKey.isEmpty())) {\n next.putExtra(\"type\", type);\n\n if (type.equals(\"order_info\") ||\n type.equals(\"order_chat\")) {\n next.putExtra(\"md_key\", mdKey);\n }\n }\n\n activity.startActivity(next);\n activity.finish();\n }",
"public void nextIntent(){\n \t\n \tIntent y=new Intent();\n \ty.setClass(MainActivity.this, Dashboard.class);\n \t\n \tstartActivity(y);\n \t\n \t\n}",
"public IWizardPage getNextPage();",
"private void nextStep(){\n if(vMaze == null)\n mainMessage.setText(\"You must load a maze first!\");\n else try{\n vMaze.step();\n tileBox.getChildren().clear();\n tileBox.getChildren().add(vMaze.getTiles());\n\n mainMessage.setText(\"You took one step.\");\n if(vMaze.getRouteFinder().isFinished())\n mainMessage.setText(\"You reached the end!\");\n } catch (NoRouteFoundException e){\n mainMessage.setText(e.getMessage());\n }\n }",
"public void gotoScreen(final String screenId) {\r\n nifty.gotoScreen(screenId);\r\n }",
"void navigateToCurrentOrder() {\n Intent gotoCurrentOrder = new Intent(this, CurrentOrderActivity.class);\n startActivity(gotoCurrentOrder);\n }",
"public static void clickNextBtnGame() {\t\n\t\tdriver.findElement(By.id(\"btnnext\")).click();\n\t}",
"public void onClick(View v) {\n Intent nextScreen = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(nextScreen);\n }",
"private void goToMenu() {\n game.setScreen(new MainMenuScreen(game));\n\n }",
"public void Next(){\n Bundle extras = new Bundle();\n extras.putString(\"IdEvento\", IdEvento); // se obtiene el valor mediante getString(...)\n\n Intent intent = new Intent(this, AtendiendoEmergencia.class);\n //Agrega el objeto bundle a el Intne\n intent.putExtras(extras);\n //Inicia Activity\n startActivity(intent);\n }",
"public void toNext(View view) {\n Intent intent = new Intent(this, BonusSpinner.class);\n intent.putExtra(\"player\", player);\n startActivity(intent);\n finish();\n }",
"@Override\r\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tgoNext();\r\n\t\t\t\t}",
"public game_screen getNextScreen() {\n return nextScreen;\n }",
"public abstract void goNext();",
"@Override\r\n\tpublic void navigate() {\n\t\t\r\n\t}",
"private void forwardPage()\n {\n page++;\n open();\n }",
"@Override\n public void goToNextScreen(Home.HomeTo presenter) {\n toMapsState = new MapState();\n toMapsState.shop = presenter.getShop();\n\n Context view = presenter.getManagedContext();\n if (view != null) {\n Log.d(TAG, \"calling startingMapsScreen()\");\n view.startActivity(new Intent(view, MapsView.class));\n Log.d(TAG, \"calling destroyView()\");\n presenter.destroyView();\n }\n }",
"@Override\n public void onNextPressed() {\n }",
"public void nextTurn(){\n\t\tthis.setCurrentElement(this.getCurrentElement().getNext());\n\t}",
"public void navigateToForward() {\n WebDriverManager.getDriver().navigate().forward();\n }",
"private void goToMenu() {\n\t\tgame.setScreen(new MainMenuScreen(game));\n\n\t}",
"private void buttonNext (){\n Intent nextActivity = new Intent(Question_One.this, Question_two.class);\n nextActivity.putExtra(EXTRA_TEXT,scoreCounter);\n startActivity(nextActivity);\n }",
"public void goToSlide() {\t\t\t\t\r\n\t\tString pageNumberStr = JOptionPane.showInputDialog(\"Page number?\");\r\n\t\tint pageNumber = Integer.parseInt(pageNumberStr);\r\n\t\t\r\n\t\tgoToSlide(pageNumber);\r\n\t}",
"public void onClick(View view) {\n Intent nextScreen = new Intent(view.getContext(), Mockup1.class);\n startActivityForResult(nextScreen, 0);\n }",
"public void ClickNext() {\r\n\t\tnext.click();\r\n\t\t\tLog(\"Clicked the \\\"Next\\\" button on the Birthdays page\");\r\n\t}",
"private void moveToLastPage() {\n while (!isLastPage()) {\n click(findElement(next_btn));\n }\n }",
"public void onClick(DialogInterface dialog, int which) {\n Intent nextScreen = new Intent(getApplicationContext(), Mockup1.class);\n startActivityForResult(nextScreen, 0);\n\n }",
"void OnNextButtonClicked(String buttonClicked,StoriesClass currentStor);",
"public void toNextPage(View v) {\n Intent i = new Intent(MainActivity.this, SecondActivity.class);\n i.putExtra(\"is_played\", is_played);\n startActivity(i);\n }",
"public static void next() {\n\t\tsendMessage(NEXT_COMMAND);\n\t}",
"private void goToMainScreen() {\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n Intent mainIntent;\n\n MainActivity act = new MainActivity();\n Intent intent = new Intent(getApplication(), MainActivity.class);\n startActivity(intent);\n finish();\n }\n }, SPLASH_DISPLAY_LENGHT);\n }",
"public void switchToInstructionScreen() {\n \tCardLayout currLayout = (CardLayout) screens.getLayout();\n \tcurrLayout.show(screens, \"insn\");\n }",
"private void goToDetailScreen(int position) {\n// ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation(this,\n// new Pair(mAdapter.getHolderItem(position).getThumbnail(), DetailActivity.IMAGE_TRANSITION_NAME));\n ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation(this,\n mAdapter.getHolderItem(position).getThumbnail(),\n DetailActivity.IMAGE_TRANSITION_NAME);\n\n Intent intent = new Intent(this, DetailActivity.class);\n intent.putExtra(ITEM_CURRENT_POSITION, position);\n intent.putParcelableArrayListExtra(IMAGES_LIST, mAdapter.getData());\n\n startActivity(intent, options.toBundle());\n }",
"public void goOnToNextQuestion(){\n\t\tbtnConfirmOrNext.setText(\"Next Question\");\n\t\tenableAllButtons();// need to be able to click to proceed\n\t\tquizAccuracy.setText(\": \"+spellList.getLvlAccuracy()+\"%\");\n\t\t// if user got answer correct move on immediately, else let user look at the correct answer first\n\t\tif(correctFlag){\n\t\t\t// set it to false initially for the next question\n\t\t\tcorrectFlag = false;\n\t\t\tbtnConfirmOrNext.doClick();\n\t\t}\n\n\t}",
"public void proceedToLetsGo() {\n\t\tBrowser.click(\"xpath=.//*[@id='DisplayNavigatorBrokerLandingPage']/div/div/div/div/div/div/div/div/div[5]/a/img\");\n\t}",
"@OnClick(R.id.nextButton)\n public void onNext(View view){\n Intent intent = new Intent(getApplicationContext(), SettingActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);\n finish();\n database.close();\n }",
"void goMainScreen(){\n\t\tcheckSavePwd();\n\t\tActionEvent e = new ActionEvent();\n\t\te.sender = this;\n\t\te.action = ActionEventConstant.ACTION_SWITH_TO_CATEGORY_SCREEN;\n\t\tUserController.getInstance().handleSwitchActivity(e);\n\t}",
"public void nextButtonClicked()\r\n {\n manager = sond.getManager();\r\n String insertSearchDelete = sond.getInsertSearchDelete();\r\n AnimatorThread animThread = model.getThread();\r\n\r\n // falls der Thread pausiert ist, wird er beim betätigen des\r\n // next-Buttons aufgeweckt\r\n if (button.getPlay() && animThread != null && animThread.isAlive())\r\n {\r\n if (!animThread.getWait())\r\n {\r\n animThread.interrupt();\r\n }\r\n else\r\n {\r\n animThread.wake();\r\n }\r\n }\r\n // Redo muss vor den weiteren if Anweisungen stehen, damit erst alle\r\n // Redo ausgeführt werden, bevor neue Aktionen dem manager hinzugefuegt\r\n // werden\r\n else if (manager.canRedo())\r\n {\r\n manager.redo();\r\n }\r\n else if (!sond.getArrayPosition() && insertSearchDelete.equals(\"insert\"))\r\n {\r\n sond.nextInsertPosition();\r\n UndoRedoSetAnimation command = new UndoRedoSetAnimation(sond);\r\n manager.addEdit(command);\r\n }\r\n else if (!sond.getArrayPosition() && insertSearchDelete.equals(\"search\"))\r\n {\r\n sond.nextSearchPosition();\r\n UndoRedoSetAnimation command = new UndoRedoSetAnimation(sond);\r\n manager.addEdit(command);\r\n }\r\n else if (!sond.getArrayPosition() && insertSearchDelete.equals(\"delete\"))\r\n {\r\n sond.nextSearchPosition();\r\n UndoRedoSetAnimation command = new UndoRedoSetAnimation(sond);\r\n manager.addEdit(command);\r\n }\r\n }",
"@Override\r\n\tpublic void showNext(){\r\n\t\tint currentNotification = this.getDisplayedChild();\r\n\t\tif(currentNotification < this.getChildCount() - 1){\r\n\t\t\tsetInAnimation(inFromRightAnimation());\r\n\t\t\tsetOutAnimation(outToLeftAnimation());\r\n\t\t\t//Update the navigation information on the next view before we switch to it.\r\n\t\t\tfinal View nextView = this.getChildAt(currentNotification + 1);\r\n\t\t\tupdateView(nextView, currentNotification + 1, 0);\r\n\t\t\t//Flip to next View.\r\n\t\t\tsuper.showNext();\r\n\t\t}\r\n\t}",
"public void gotoProfileActivity()\n {\n Log.e(\"next\",\"\"+\"log\");\n startActivity(new Intent(OTPActivity.this, UserProfileActivity.class));\n finish();\n }",
"@Override\n public WorkflowStep next() {\n QQTetris.captureScreenThread.setStarted(true);\n QQTetris.activate();\n return INITIAL_BOARD.execute();\n }",
"@Override\n public void onClick(View v) {\n\n int current = getItem(+1);\n if (current < layouts.length) {\n // move to next screen\n viewPager.setCurrentItem(current);\n } else {\n launchHomeScreen();\n }\n }",
"private void goToRegisterScreen()\n {\n Intent intent = new Intent(this, Register.class);\n startActivity(intent);\n }",
"public void nextQuestion() {\n if (currentq<questionbank.size()-1)\n {\n currentq++;\n }\n else\n {\n currentq=0;\n finished=true;\n\n Intent i = new Intent(MainActivity.this, ScorecardActivity.class);\n //Intent(coming from, where to go)\n i.putExtra(EXTRAMESSAGE1, Integer.toString(score));\n startActivity(i);\n\n }\n question.setText(questionbank.get(currentq).getQuestionText());\n\n\n }",
"public void forwardOnClick(View view){\n while(Integer.parseInt(mazeController.getPercentDone()) < 99) {\n\n }\n Intent newIntent = new Intent(this, Play.class);\n startActivity(newIntent);\n }",
"public void clickNext(View view) {\n Intent viewResultsActivityIntent = new Intent(this, ViewResultsActivity.class);\n Spinner select_transport = findViewById(R.id.select_transport);\n ElectricTransport selectedElectricTransport = (ElectricTransport) select_transport.getSelectedItem();\n // Send time, distance, and selected transport to next intent\n viewResultsActivityIntent.putExtra(DISTANCE, this.distance);\n viewResultsActivityIntent.putExtra(TIME, this.time);\n viewResultsActivityIntent.putExtra(SELECTED_TRANSPORT, selectedElectricTransport);\n viewResultsActivityIntent.putExtra(RESULTS_DESCRIPTION, this.results_description);\n\n startActivity(viewResultsActivityIntent); // Go to next screen\n }",
"private void goToDetailedRune()\n\t{\n\t\tLog.e(\"before pages\", String.valueOf(player.getSummonerID()));\n\t\tRunePages tempPages = player.getPages().get(String.valueOf(player.getSummonerID()));\n\t\tLog.e(\"after pages\", String.valueOf(tempPages.getSummonerId()));\n\t\tSet<RunePage> tempSetPages = tempPages.getPages();\n\t\tRunePage currentPage = new RunePage();\n\t\tfor (RunePage tempPage : tempSetPages)\n\t\t{\n\t\t\tif (tempPage.getName() == player.getCurrentRunePage())\n\t\t\t{\n\t\t\t\tLog.e(\"temp page\", \"page found\");\n\t\t\t\tcurrentPage = tempPage;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t// now we have the page, need to get the runes out of it\n\t\tList<RuneSlot> tempSlots = currentPage.getSlots();\n\t\tArrayList<Integer> tempIDs = new ArrayList<Integer>();\n\t\tLog.e(\"tempSlots size\", String.valueOf(tempSlots.size()));\n\t\tfor (int i = 0; i < tempSlots.size(); i++)\n\t\t{\t\n\t\t\tLog.e(\"tempSlot\", String.valueOf(tempSlots.get(i).getRune()));\n\t\t\ttempIDs.add(tempSlots.get(i).getRune());\n\t\t}\n\t\tfillRuneList(tempIDs);\n\t\t// go to the screen\n\t\tIntent intent = new Intent(activity, RuneDetailActivity.class);\n\t\tactivity.startActivity(intent);\n\t}",
"@Override\n public void onClick(View v) {\n {\n SharedPreferences sharedpreferencesRS= getSharedPreferences(\"SCREENNAME\" , MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedpreferencesRS.edit();\n editor.putString(\"screenname\" , \"roundsetting\");\n editor.commit();\n Intent NextScreen = new Intent(RoundSetting.this, SelectCourse.class);\n // NextScreen.putExtras(bundle);\n startActivity(NextScreen);\n }\n\n\n }",
"public void setNextActivateView(OwView nextView_p) throws Exception\r\n {\n\r\n }",
"@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\tcard.next(bootpanel);\n\t\t\tSystem.out.println(\"next\");\n\t\t}",
"void onClickNextTurn();",
"public void Next(View view)\n {\n increaseNum();\n }",
"public void switchToGameScreen() {\n \tCardLayout currLayout = (CardLayout) screens.getLayout();\n \tcurrLayout.show(screens, \"game\");\n \troom.reset();\n }",
"@Override\n\tpublic BarberMenu advance() {\n\t\treturn barberNextMenu;\n\t}",
"@Nullable\n WizardPage flipToNext();",
"@Override\n public void onClick(View view) {\n int current = getItem(+1);\n if (current < layouts.length) {\n // move to next screen\n binding.activityWelcomeViewPager.setCurrentItem(current);\n } else {\n //Go to sign up\n startActivity(new Intent(WelcomeActivity.this , SignupActivity.class));\n finish();\n }\n }",
"private LoginPage clickOnNext() {\n if (waitForElementDisplayed(By.id(ID_NEXT), 10, 20)) {\n clickOnElementUsingJquery(driver.findElement(By.id(ID_NEXT)));\n return this;\n }\n return null;\n }",
"public void goToNext() {\r\n\t\tif (curr == null)\r\n\t\t\treturn;\r\n\t\tprev = curr;\r\n\t\tcurr = curr.link;\r\n\t}",
"private void goToAuthScreen(){\n this.finish();\n\n Intent intent = new Intent(this, AuthStartActivity.class);\n startActivity(intent);\n }",
"public void NextTurn(){\n\n currentTurn = currentTurn.getSiguiente();\n String turno = (String) currentTurn.getDato();\n String info[] = turno.split(\"#\");\n\n int infoIn = 4;\n for (int i = 0; i < 10; i++, infoIn += 1) {\n label_list[i].setIcon(new ImageIcon(info[infoIn]));\n this.screen.add(label_list[i]);\n }\n HP.setText(\"HP: \"+info[2]);\n action.setText(\"Action: \"+info[1]);\n mana.setText(\"Mana: \"+info[3]);\n game.setText(\"Game \"+String.valueOf(partidaNum)+\", Turn \"+info[0]);\n\n VerifyButtons();\n\n }",
"private void nextLevel(){\n Intent toMainAct2 = new Intent(MainActivity.this, Main2Activity.class);\n toMainAct2.putExtra(\"score\",iScore);\n startActivity(toMainAct2);\n }",
"void clickNextStation();",
"public void nextSlide() {\r\n\t\tpresentation.nextSlide();\r\n\t}",
"private void gotoPlay() {\n Intent launchPlay = new Intent(this, GameConfig.class);\n startActivity(launchPlay);\n }",
"@FXML\n public void goToMult(ActionEvent event) throws IOException, SQLException { //NEXT SCENE\n \tdoChecking();\n \t\n \ttry {\n\t \tif(checkIntPos && checkFloatPos && checkIntPosMatl && checkFloatPosMatl) {\n\t \t\t//store the values\n\t \t\tstoreValues();\n\t \t\t\n\t \t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"Mult.fxml\"));\n\t \t\tParent root = loader.load();\n\t \t\t\n\t \t\tMultController multCont = loader.getController(); //Get the next page's controller\n\t \t\tmultCont.showInfo(); //Set the values of the page \n\t \t\tScene multScene = new Scene(root);\n\t \t\tStage mainWindow = (Stage)((Node)event.getSource()).getScene().getWindow();\n\t \t\tmainWindow.setScene(multScene);\n\t \t\tmainWindow.show();\n\t \t}\n \t}catch(Exception e) {\n\t\t\tValues.showError();\n\t\t}\n }",
"public void nextQuestion(View view){\n\n\n Question = findViewById(R.id.question1);\n // If the current question has been answered, validate & move on to the next question\n if (checkAnswered()){\n // Check for right or wrong answer\n validateQuestion();\n\n // Move on to the new question\n Intent intent = new Intent(getApplicationContext(),Questions2of5Activity.class);\n if (intent.resolveActivity(getPackageManager()) != null) {\n intent.putExtra(\"passedScore\",score);\n intent.putExtra(\"firstName\",firstName);\n intent.putExtra(\"lastName\",lastName);\n startActivity(intent);\n\n // Destroy activity to prevent user from going back\n finish();\n }\n }\n\n // If the question has not been answered, provide a toast message\n else {\n displayToast(\"You need to answer the question before moving on to the next\");\n }\n }",
"public MentorConnectRequestCompose nextTap()\n\t{\n\t\tmentorConnectRequestObjects.nextButtonHeader.click();\n\t\treturn new MentorConnectRequestCompose(driver);\n\t}",
"private void goToLoginScreen()\n {\n Intent intent = new Intent(this, Login.class);\n startActivity(intent);\n }",
"public boolean moveNext(\n )\n {\n // Scanning the current graphics object...\n ContentObject currentObject = getCurrent();\n if(currentObject != null)\n {\n \t\n \tString cmdStr = currentObject.toString();\n \t/*\n \tif(cmdStr.contains(\"f*\") || cmdStr.contains(\"{f }\")) {\n \t\tSystem.out.println(cmdStr);\n \t}\n \t*/\n \tif(!cmdStr.contains(\"{re [36, 270, 540, 720]}, {f }\")) {\n \t\tcurrentObject.scan(state);\n \t}\n }\n\n // Moving to the next object...\n if(index < objects.size())\n {index++; refresh();}\n\n return getCurrent() != null;\n }",
"@RequestMapping(\"/next\")\n public void nextTurn() {\n playerService.nextTurn();\n }",
"private void next() {\n Timeline currentTimeline = simpleExoPlayerView.getPlayer().getCurrentTimeline();\n if (currentTimeline.isEmpty()) {\n return;\n }\n int currentWindowIndex = simpleExoPlayerView.getPlayer().getCurrentWindowIndex();\n if (currentWindowIndex < currentTimeline.getWindowCount() - 1) {\n player.seekTo(currentWindowIndex + 1, C.TIME_UNSET);\n } else if (currentTimeline.getWindow(currentWindowIndex, new Timeline.Window(), false).isDynamic) {\n player.seekTo(currentWindowIndex, C.TIME_UNSET);\n }\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(SuperScouting.this, MatchList.class);\n intent.putExtra(Constants.Intent_Extras.NEXT_PAGE, Constants.Intent_Extras.SUPER_SCOUTING);\n startActivity(intent);\n }",
"void moveNext()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == back) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added cause i was failing the test scripts and forgot to manage the indices \n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.next; //moves cursor toward back of the list\n index++; //added cause i was failing to the test scripts and forgot to manage the indicies\n\t\t\t}\n\t\t}\n\t}",
"public void returnToMenu(){\n client.moveToState(ClientState.WELCOME_SCREEN);\n }",
"private void backToMenu() {\n game.setScreen(new StartScreen(game));\n }",
"@Override\n public void onClick(View v) {\n {\n saveRoundSetting();\n SharedPreferences sharedpreferencesRS= getSharedPreferences(\"SCREENNAME\" , MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedpreferencesRS.edit();\n editor.putString(\"screenname\" , \"roundsetting\");\n editor.commit();\n Intent NextScreen = new Intent(RoundSetting.this, SelectCourse.class);\n // NextScreen.putExtras(bundle);\n startActivity(NextScreen);\n finish();\n }\n\n\n }",
"public void goHome(View view) {\n String toastString = \"go home...\";\n Toast.makeText(FriendsList.this,toastString, Toast.LENGTH_SHORT).show();\n\n //TODO\n // go to list screen....\n Intent goToNextScreen = new Intent (this, AccountAccess.class);\n final int result = 1;\n startActivity(goToNextScreen);\n }",
"public static void checkAndClickNextButton() {\r\n\t\tcheckNoSuchElementExceptionByID(\"nextquest\", \"\\\"Next\\\" button\");\r\n\t\tcheckElementNotInteractableExceptionByID(\"nextquest\", \"\\\"Next\\\" button\");\r\n\t}",
"@Override\n public void onClick(View v) {\n navController.navigate(R.id.two);\n }",
"@FXML\n public void clickNextStep(ActionEvent actionEvent) throws IOException {\n Main.curRoundPlayerIndex++;\n Stage curStage = (Stage) ((Node) actionEvent.getSource()).getScene().getWindow();\n\n if (Main.curRoundPlayerIndex < Main.totalNumOfPlayers) {\n Pane reinforcePane = new FXMLLoader(getClass().getResource(\"../view/ReinforceView.fxml\")).load();\n Scene reinforceScene = new Scene(reinforcePane, 1200, 900);\n reinforceViewInit(Main.curRoundPlayerIndex);\n curStage.setScene(reinforceScene);\n curStage.show();\n } else {\n Main.curRoundPlayerIndex = Main.curRoundPlayerIndex % Main.totalNumOfPlayers;\n Pane attackPane = new FXMLLoader(getClass().getResource(\"../view/AttackView.fxml\")).load();\n Scene attackScene = new Scene(attackPane, 1200, 900);\n\n curStage.setScene(attackScene);\n curStage.show();\n }\n }",
"public void buttonHintNext(View view) {\n //using finish to activity\n finish();\n\n //create a new object to start new activity\n Intent intent = new Intent(this, Hint.class);\n //pass object to startActivity\n startActivity(intent);\n }",
"@Override\n\tpublic void onNextRoadClick() {\n\t\t\n\t}",
"public void forceNavigation(String destination)\r\n \t{\n \t\tif (!this.currentState.isAuthenticated())\r\n \t\t{\r\n \t\t\tdestination = ChooseCasePilot.generateNavigationId(ChooseCasePilot.PageId.login);\r\n \t\t}\r\n \r\n \t\tcurrentState.setCurrentView(destination);\r\n \r\n \t\tString view = this.findViewId(destination);\r\n \t\tString page = this.findPageId(destination);\r\n \r\n \t\t// Get the right pilot to get the right content to show next.\r\n \t\tPilot currentPilot = this.getPilot(view);\r\n \t\tif (currentPilot == null)\r\n \t\t{\r\n \t\t\tthis.swapContent(this.show404Error());\r\n \t\t\treturn;\r\n \t\t}\r\n \t\t\r\n \t\t// Set the current mode to determine whether the user has privelages to\r\n \t\t// access the page they want to go to.\r\n \t\tcurrentPilot.determineAccessRights(page, this.currentState);\r\n \r\n \t\tapplyCloseStepPolicy(currentPilot, view, page);\r\n \r\n \t}",
"public void goToNextLevel(View view) {\n Intent intent = new Intent(this, BoardActivity.class);\n intent.putExtra(MSG_LVL, level+1);\n intent.putExtra(MSG_TELEPORTS, nbSafeTeleports+1);\n intent.putExtra(MSG_SCORE, score);\n startActivity(intent);\n }",
"public EmagHomePage clickonContinueButton()\n {\n continueButton.click();\n return new EmagHomePage(driver);\n }",
"@Override\n public void jumpActivity() {\n startActivity(new Intent(MainActivity.this, MainActivity.class));\n }",
"void openNextFrameSet();",
"public void nextSlide() {\n\t\tif (currentSlideNumber < (showList.size()-1)) {\n\t\t\tsetSlideNumber(currentSlideNumber + 1);\n\t\t}\n\t}",
"@Override\n public void goToEvent() {\n startActivity(new Intent(AddGuests.this, DetailEventRequest.class)); }",
"public void nextBtnClicked(View v) {\r\n//\t\tshowMsg(\"Next Button clicked: \"+ v);\r\n\t\tresetSelection();\r\n\t\tnextQuestion(1);\r\n\t\tshowQuesAndAnswers();\r\n\t}",
"protected abstract Controller initialScreen();",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n goToNextScreen(barcode.getRawValue());\n dialog.dismiss();\n }"
] | [
"0.7420185",
"0.7398687",
"0.713069",
"0.69096273",
"0.6894213",
"0.6688725",
"0.6657274",
"0.6635422",
"0.66185373",
"0.66026694",
"0.6563938",
"0.654127",
"0.6521042",
"0.64876914",
"0.6452152",
"0.6433632",
"0.6426445",
"0.63787395",
"0.6334103",
"0.6331265",
"0.63206303",
"0.6314542",
"0.63140386",
"0.63128",
"0.63042426",
"0.6294867",
"0.6267547",
"0.62330216",
"0.6231402",
"0.6211682",
"0.6210981",
"0.6191265",
"0.618559",
"0.61838675",
"0.6172483",
"0.6169864",
"0.6168261",
"0.6167803",
"0.61561185",
"0.6152305",
"0.6150882",
"0.61255497",
"0.6121861",
"0.61082584",
"0.6106823",
"0.608926",
"0.60873795",
"0.6084774",
"0.60753024",
"0.6074439",
"0.6053387",
"0.60522366",
"0.6050915",
"0.6045576",
"0.60432863",
"0.59937143",
"0.5993521",
"0.59923434",
"0.59879345",
"0.59785676",
"0.59715295",
"0.59712875",
"0.59699774",
"0.5968407",
"0.59674364",
"0.59589297",
"0.5957055",
"0.5954792",
"0.5946943",
"0.59340423",
"0.5930199",
"0.5926251",
"0.591179",
"0.5911049",
"0.5907677",
"0.59044075",
"0.5897076",
"0.58946186",
"0.5890557",
"0.5883004",
"0.58827394",
"0.5869566",
"0.5867426",
"0.5867148",
"0.5865488",
"0.58615774",
"0.5860625",
"0.584035",
"0.5836271",
"0.5833116",
"0.58261037",
"0.58187366",
"0.5811935",
"0.5805554",
"0.58038616",
"0.58008426",
"0.57967323",
"0.5794765",
"0.5793546",
"0.5792498",
"0.5789772"
] | 0.0 | -1 |
general information about offer to grant | public interface Offer {
/**
* information about provider
* @return
*/
OperationUser getOfferProvider();
/**
* short description of offer
* @return
*/
String getOfferSummary();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static int getAcceptDecision(Offer offer) {\n\t\treturn 0;\n\t}",
"public long getStreetCredGain();",
"Offer getOffer();",
"@Override\n\tpublic String getOffer() {\n\t\treturn \"Get 10% of on your next purchase\";\n\t}",
"public int getWorkCredGain();",
"int getPants();",
"@Override\n protected void acceptTrade(Territory offerer, double demand, int typeDemand, double offer, int typeOffer){\n // An example for accepting a trade proposal: I only accept offers of peasants when I have less than 3 peasants\n // I am not checking what I am giving in exchange or how much, so you should work on that\n if (typeOffer == 3 && typeDemand == 2){\n acceptTrade = true;// no matter the amounts\n }\n else acceptTrade = false;\n }",
"@Override\n public String getDescription() {\n return \"Account information\";\n }",
"public void showInfo() {\n\t\tsuper.showInfo();\n\t\tSystem.out.println(\n\t\t\t\t\" Your Savings Account Features: \" +\n\t\t\t\t\"\\n debitCardNumber: \" + debitCardNumber + \n\t\t\t\t\"\\n debitCardPIN: \" + debitCardPIN);\n\t}",
"private void offer() {\n\t\t\t\n\t\t}",
"@Override\n public IOffer getOffer() {\n return offer;\n }",
"String getOfferSummary();",
"@Override\n public boolean isGivingInformation() {\n return true;\n }",
"public void allinfo()\n\t\t{\n\t\t\tsendBroadcast(new Intent(\"android.provider.Telephony.SECRET_CODE\", Uri.parse(\"android_secret_code://4636\")));\n\n\n\t\t}",
"@Override\r\n public String showConsumerLoanInfo(Credit credit) {\n return credit.getCredit();\r\n }",
"public boolean isGivingInformation();",
"boolean CanOfferTrade(Resources offer);",
"@Override\r\n\tpublic void sendTradeOffer(TradeOffer offer) {\n\t\t\r\n\t}",
"public String getProvide() {\n return provide;\n }",
"private TransferPointRequest checkTransferRequestEligibility(TransferPointRequest transferPointRequest) {\n Customer fromAccount = transferPointRequest.getFromCustomer();\n\n //get destination account\n Customer toAccount = transferPointRequest.getToCustomer();\n\n //check if account is linked\n transferPointRequest = isAccountLinked(transferPointRequest);\n\n //set request customer no as from account customer no\n transferPointRequest.setRequestorCustomerNo(fromAccount.getCusCustomerNo());\n\n //if accounts are not linked , requestor is eligible for transfer\n if(!transferPointRequest.isAccountLinked()){\n\n //set transfer eligibility to ELIGIBLE\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n\n } else {\n\n //if linked , get the transfer point settings\n TransferPointSetting transferPointSetting = transferPointRequest.getTransferPointSetting();\n\n //check redemption settings\n switch(transferPointSetting.getTpsLinkedEligibilty()){\n\n case TransferPointSettingLinkedEligibity.NO_AUTHORIZATION:\n\n //if authorization is not needed set eligibity to ELIGIBLE\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n\n return transferPointRequest;\n\n case TransferPointSettingLinkedEligibity.PRIMARY_ONLY:\n\n //check the requestor is primary\n if(!transferPointRequest.isCustomerPrimary()){\n\n //if not primary , then set eligibility to INELIGIBLE\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.INELIGIBLE);\n\n } else {\n\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n }\n\n return transferPointRequest;\n\n case TransferPointSettingLinkedEligibity.SECONDARY_WITH_AUTHORIZATION:\n\n //if customer is secondary , set eligibility to APRROVAL_NEEDED and set approver\n //and requestor customer no's\n if(!transferPointRequest.isCustomerPrimary()){\n\n //set eligibility status as approval needed\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.APPROVAL_NEEDED);\n\n //set approver customer no\n transferPointRequest.setApproverCustomerNo(transferPointRequest.getParentCustomerNo());\n\n } else {\n\n //set eligibility to eligible\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n\n }\n\n return transferPointRequest;\n\n case TransferPointSettingLinkedEligibity.ANY_ACCOUNT_WITH_AUTHORIZATION:\n\n //set eligibility to approval needed\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.APPROVAL_NEEDED);\n\n if(transferPointRequest.isCustomerPrimary()){\n\n //set approver customer no\n transferPointRequest.setApproverCustomerNo(transferPointRequest.getChildCustomerNo());\n\n } else {\n\n //set approver customer no\n transferPointRequest.setApproverCustomerNo(transferPointRequest.getParentCustomerNo());\n\n }\n\n return transferPointRequest;\n\n }\n }\n\n return transferPointRequest;\n\n }",
"@Override\n public void onGranted() {\n }",
"@Override\n public void onGranted() {\n }",
"@Override\n public void onGranted() {\n }",
"private void showGrantPermissionDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Stop!\")\n .setMessage(\"You must grant all the permissions request otherwise you can't use this feature.\")\n .setCancelable(false)\n .setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int i) {\n dialog.dismiss();\n }\n });\n builder.show();\n }",
"public String getDetails() {\r\n\t\treturn \"Loan Id: \" + loanId + \"\\n\\rStock Id: \" + stockId + \" \\n\\rDate of loan: \" + loanDate + \"\\n\\r Has the loan been returned?: \" + isReturned + \" \\n\\rFine owed: \" + loanFine.getFine();\r\n\t}",
"@Override\n public String getDescription() {\n return \"Claim currency reserve\";\n }",
"private void showRequestPermissionsInfoAlertDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(R.string.permission_alert_dialog_title);\n builder.setMessage(R.string.permission_dialog_message);\n builder.setPositiveButton(R.string.action_ok, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n requestReadAndSendSmsPermission();\n }\n });\n builder.show();\n }",
"public String marketplaceOffer() {\n return this.marketplaceOffer;\n }",
"@Override\n public String getDescription() {\n return \"Publish exchange offer\";\n }",
"public void showInfo()\n\t{\n\t\tSystem.out.println(\"Account Number : \"+getAccountNumber());\n\t\tSystem.out.println(\"Balance : \"+getBalance());\n\t\tSystem.out.println(\"Tenure Year : \"+tenureYear);\n\t}",
"public String getGainingmethod() {\r\n\t\treturn gainingmethod;\r\n\t}",
"public void showInfo() {\n\t\t\n\t\tsuper.showInfo();\n\t\tSystem.out.println(\"Your Checking Account features: \"\n\t\t\t\t+ \"\\nDebit Card Number: \" + debitCardNumber\n\t\t\t\t+ \"\\nDebit Card PIN: \" + debitCardPin\n\t\t\t\t+ \"\\n****************\"\n\t\t\t\t);\n\t\t\n\t}",
"String getAdditionalInfo();",
"@Override\n\tpublic void approveAcceptedOffer(String matriculation) {\n\t\tofferman.approveAcceptedOffer(matriculation);\n\t\t\n\t}",
"@Attribute(order = 300, validators = { RequiredValueValidator.class })\n\t\tdefault String transactionDescription() {\n\t\t\treturn \"OpenAM has Requested an Authentication\";\n\t\t}",
"String offer();",
"public java.lang.String getUserAvaibility(int status) throws android.os.RemoteException;",
"java.lang.String getBuyDescribe();",
"public String getLoanInfo(){\n\t\tString info = \"Klientit me id \"+ client_id + \" iu dha nje kredi me nje shume prej \" + principal_amount+\"€.\\n\"\n\t\t\t\t+ \"Shuma prej \" + getAmountOfFixedPayments()+ \" do te paguhet \" + no_payments_yearly + \" here ne vit pergjate nje periudhe\"\n\t\t\t\t\t\t+ \" prej \\n\"+no_years+\" vitesh. Interesi eshte \" + interest_rate+\"%. Kjo do te thote se ne total \"+ \n\t\t\t\t\t\t\"pagesa e interesave \\neshte\"+getTotalAmountOfInterest()+\" €. Ne fund te kredise klienti do te kete paguar \"+getTotalAmountPaid() + \" €.\";\n\t\t\n\t\treturn info;\n\t}",
"@Test\n public void approveGrant() {\n /*\n * Given\n */\n var uid = UID.apply();\n var grantFor = UserAuthorization.random();\n var privilege = DatasetPrivilege.CONSUMER;\n\n var executed = Executed.now(UserId.random());\n var request = AccessRequest.apply(executed, Markdown.lorem());\n var grant = DatasetGrant.createRequested(uid, grantFor, privilege, request);\n\n var approvedBy = UserId.random();\n var approvedAt = Instant.now();\n var justification = Markdown.lorem();\n\n var grantedAuth = GrantedAuthorization.apply(approvedBy, approvedAt, grantFor);\n var member = DatasetMember.apply(grantedAuth, privilege);\n\n /*\n * When\n */\n grant = grant\n .approve(approvedBy, approvedAt, justification)\n .map(g -> g, e -> null);\n\n /*\n * Then\n */\n assertThat(grant.getRequest())\n .as(\"The request should be available in the grant.\")\n .isPresent()\n .satisfies(ro -> ro.ifPresent(r -> {\n assertThat(r).isEqualTo(request);\n }));\n\n assertThat(grant.getRequestResponse())\n .as(\"The request response should be set and it should be approved\")\n .isPresent()\n .satisfies(ro -> ro.ifPresent(r -> {\n assertThat(r)\n .extracting(\n o -> o.getExecuted().getBy(),\n o -> o.getExecuted().getAt(),\n AccessRequestResponse::isApproved)\n .containsExactly(approvedBy, approvedAt, true);\n }));\n\n assertThat(grant)\n .as(\"Since the request is approved, the grant should be active\")\n .satisfies(g -> {\n assertThat(g.asDatasetMember())\n .isPresent()\n .get()\n .isEqualTo(member);\n\n assertThat(g.isOpen()).isFalse();\n assertThat(g.isActive()).isTrue();\n assertThat(g.isClosed()).isFalse();\n });\n }",
"public void askForPermissionsGrant(){\n int res =ContextCompat.checkSelfPermission(this,Manifest.permission.ACCESS_FINE_LOCATION);\n int res2 =ContextCompat.checkSelfPermission(this,Manifest.permission.ACCESS_FINE_LOCATION);\n if (res!= PackageManager.PERMISSION_GRANTED || res2!= PackageManager.PERMISSION_GRANTED) {\n // Permission is not granted\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.ACCESS_FINE_LOCATION)) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"We need to access your location\")\n .setMessage(\"We want to track every breath you take\")\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(MainActivity.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.READ_CONTACTS},\n MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n });\n builder.create().show();\n }\n else {\n // No explanation needed; request the permission\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n } else {\n // Permission has already been granted\n publishLastLocation();\n }\n\n }",
"Object getPurpose();",
"@Override\r\n\tprotected void verificaUtentePrivilegiato() {\n\r\n\t}",
"public String getPrivacy();",
"@Override\n public String getDescription() {\n return \"Digital goods feedback\";\n }",
"@Override\n public void onAdAvailable(Intent intent) {\n offerwallIntent = intent;\n Log.d(TAG, \"OW: Offers are available\");\n Toast.makeText(MainActivity.this, \"OW: Offers are available\", Toast.LENGTH_SHORT).show();\n showOW.setEnabled(true);\n }",
"int getSignatureProviderDetails();",
"protected abstract String getAllowedRequests();",
"@Test\n void checkManagerWithPermissionGetAlert(){\n LinkedList<PermissionEnum.Permission> list=new LinkedList<>();\n list.add(PermissionEnum.Permission.RequestBidding);\n tradingSystem.AddNewManager(EuserId,EconnID,storeID,NofetID);\n tradingSystem.EditManagerPermissions(EuserId,EconnID,storeID,NofetID,list);\n Response Alert=new Response(\"Alert\");\n store.sendAlertOfBiddingToManager(Alert);\n //??\n }",
"public boolean granted(){\n\t\treturn this.granted;\n\t}",
"@GET\n\t\t@Path(\"getGrants\")\n\t\t@Produces(MediaType.TEXT_HTML)\n\t\tpublic String readGrants()\n\t\t{\n\t\t\treturn Obj.readGrants();\n\t\t}",
"private void discoverableRequest() {\n final AlertDialog.Builder dialog_builder = new AlertDialog.Builder(this);\n\n // Sets the title for the popup dialog\n dialog_builder.setTitle(\"Make Host Device Discoverable\");\n dialog_builder.setMessage(\"Top level stuff here. Sadly, you don't have appropriate permissions to do this.\");\n final AlertDialog dialog = dialog_builder.create();\n // Displays the dialogue\n dialog.show();\n }",
"String getPaymentInformation();",
"private void getUserInfo() {\n\t}",
"int getAchieveInfoCount();",
"public String getBalanceInfo(String request,String user);",
"pb4server.GiveRansomAskReq getGiveRansomAskReq();",
"@Override\n public String getDescription() {\n return \"Digital goods purchase\";\n }",
"java.lang.String getPurpose();",
"@Override\n\tpublic void credite() {\n\t\t\n\t}",
"@Override\n public void onPromptAndCollectUserInformationResponse(PromptAndCollectUserInformationResponse arg0) {\n\n }",
"@Override\r\n public String toString() {\r\n return \"(\" + idn + \",\" + this.n + \")\"; //il y avait un rpobleme avec id -> me disait que acces privé dans noeud\r\n }",
"@Test\n public void testGetMinimumGrantParameters() {\n PasswordGrant instance = new PasswordGrant();\n List<String> expResult = new ArrayList<String>();\n expResult.add(\"grant_type\");\n expResult.add(\"username\");\n expResult.add(\"password\");\n List<String> result = instance.getMinimumGrantParameters();\n assertEquals(expResult, result);\n }",
"java.lang.String getDetails();",
"boolean hasPants();",
"long getTotalAcceptCount();",
"public String getMerchantNo();",
"@Override\n\tpublic String toString () {\n\t\tString pUser = \"User: \" + getID();\n\t\tString pPass = \"Pass: \" + getPass();\n\t\treturn pUser + \" \" + pPass;\n\t}",
"@Override\n public String getDescription() {\n return \"Digital goods delisting\";\n }",
"String getPlus4_contestable();",
"public int getCustomInformationTransferRate();",
"@Override\n\tpublic String getMoreInformation() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"private String showKitDetails(HttpServletRequest request, HttpServletResponse response) {\n\t\treturn \"\";\n\t}",
"public String getPermitter() {\n return permitter;\n }",
"protected ACLMessage handleAcceptProposal(ACLMessage cfp, ACLMessage propose,ACLMessage accept) throws FailureException \r\n\t{\r\n\t\tACLMessage inform = accept.createReply();\r\n\t\tinform.setPerformative(ACLMessage.INFORM);\r\n\t\t//TODO: devrementer le nb de trajets disponibles suite a la vente\r\n\t\treturn inform;\r\n\t}",
"private void showRequestDetails() {\n\t\tlblExamID.setText(req.getExamID());\n\t\tlblDuration.setText(String.valueOf(req.getOldDur()));\n\t\tlblNewDuration.setText(String.valueOf(req.getNewDur()));\n\t\ttxtAreaExplanation.setText(req.getExplanation());\n\t}",
"public void actionOffered();",
"public String getPurpose() {return purpose;}",
"private interface Permit {\n\t\t/**\n\t\t * context id\n\t\t */\n\t\tpublic String id();\n\t\t\n\t\t/**\n\t\t * The context which we have a permit to\n\t\t */\n\t\tpublic ColumnContext context();\n\n\t\t/**\n\t\t * Must call release when done with context\n\t\t */\n\t\tpublic void revoke();\n\t}",
"public String getAccess();",
"@Override\n public User getUserInfo() {\n return User.AUTHORIZED_USER;\n }",
"@ApiModelProperty(value = \"Purpose for which the token was requested.\")\n public String getDescription() {\n return description;\n }",
"@Override\n public String getMailetInfo() {\n return \"Sieve Mailbox Mailet\";\n }",
"Pokemon.RequestEnvelop.AuthInfo getAuth();",
"Privilege getPrivilege();",
"@Override\n\tpublic String showTypeCard() {\n\t\treturn \"It's payment by Visa\";\n\t}",
"RequestSender onAgree(Consumer<Message> consumer);",
"private String marketBuyAmounts() {\r\n\t\tint[] amounts= market.getBuyAmounts();\r\n\t\tString out = \"Buy Requests Are: \";\r\n\t\tfor(int i=0; i<amounts.length;i++) {\r\n\t\t\tout=out.concat(i+\": \"+amounts[i]+\" || \");\r\n\t\t}\r\n\t\treturn out;\r\n\t}",
"public void set_info() {\n System.out.println(\"The name of the donor is \" + donor_name);\n System.out.println(\"The rating of the donor is \" + donor_rating); //display\n }",
"boolean hasBuyDescribe();",
"void askServerInfo();",
"public String accountsOfferingLoans(){\n int total = 0;\n double sum = 0;\n for(MicroLoan record : bank.getAccount2MicroloansOffered().values()){\n total++;\n sum += record.getAmount();\n }\n return \"Number of accounts providing micro loans: \" +total +\" worth a value of \"+sum;\n }",
"boolean canAcceptTrade();",
"Information getInfo();",
"pb4server.AskFightInfoAskReq getAskFightInfoAskReq();",
"@JsonIgnore public Offer getExpectsAcceptanceOf() {\n return (Offer) getValue(\"expectsAcceptanceOf\");\n }",
"public String buyOrgOrRet();",
"public Offer addBuyOffer(OfferRequest offerRequest) {\n if (isValidOffer(offerRequest)) {\n\n\n if (isValidUser(offerRequest)) {\n\n Asset offerAsset = assetService.getAssetByName(offerRequest.getAsset());\n OrganisationalUnit offerOrganisationalUnit = organisationalUnitService\n .getOrganisationalUnitByName(offerRequest.getOrganisationalUnit());\n\n double creditsNeeded = offerRequest.getPrice() * offerRequest.getQuantity();\n if (hasSufficientCredits(offerOrganisationalUnit, creditsNeeded)) {\n\n return saveOffer(offerRequest, offerOrganisationalUnit, offerAsset, OfferType.BUY);\n }\n\n throw new BadRequestException(\n \"Insufficient funds to complete BUY offer\");\n }\n throw new NotFoundException(\"Organisational Unit or Asset Type does not exist\");\n } else {\n throw new BadRequestException(\"Invalid BUY Offer\");\n }\n\n\n }",
"private void sharePlan(){\n Intent shareIntent = new Intent(Intent.ACTION_SEND);\n shareIntent.setType(\"text/plain\");\n shareIntent.putExtra(Intent.EXTRA_SUBJECT, \"My Planit Plan\");\n shareIntent.putExtra(Intent.EXTRA_TEXT,\n \"Hi All! This is my plan made using Planit! www.planit.com/10293987\");\n startActivity(Intent.createChooser(shareIntent, \"Share with\"));\n }",
"protected String commandRequestBalanceInfo(Integer connectionId) {\n UserMovieRental user = (UserMovieRental)mapOfLoggedInUsersByConnectedIds.get(connectionId);\n long userBalance = user.getBalance();\n return \"ACK balance \" + userBalance;\n }"
] | [
"0.58651364",
"0.58307767",
"0.5799613",
"0.5702101",
"0.5639372",
"0.5507887",
"0.5427707",
"0.5412484",
"0.53944385",
"0.5366899",
"0.5365294",
"0.5361802",
"0.5353719",
"0.5340032",
"0.53166395",
"0.5312183",
"0.52659243",
"0.5237627",
"0.5229675",
"0.52222866",
"0.5203732",
"0.5203732",
"0.5197117",
"0.51961124",
"0.5190791",
"0.51799387",
"0.5174396",
"0.51568323",
"0.514141",
"0.51299447",
"0.5114253",
"0.509578",
"0.5069896",
"0.5040467",
"0.5033008",
"0.5032142",
"0.5004732",
"0.49961862",
"0.49884114",
"0.49788222",
"0.4978516",
"0.49781236",
"0.49762595",
"0.49733663",
"0.497335",
"0.49586067",
"0.49573588",
"0.4956113",
"0.49374452",
"0.49111268",
"0.49078774",
"0.49048117",
"0.4902049",
"0.49004173",
"0.48850778",
"0.48687622",
"0.48623335",
"0.48604742",
"0.48604196",
"0.48538998",
"0.48535752",
"0.48512247",
"0.48480922",
"0.48467043",
"0.48466435",
"0.48455417",
"0.4844385",
"0.48420492",
"0.48342812",
"0.48336485",
"0.48181117",
"0.48174343",
"0.48172015",
"0.48071662",
"0.48064187",
"0.48021868",
"0.48007014",
"0.47943333",
"0.47895917",
"0.47888467",
"0.47871897",
"0.47827357",
"0.47814113",
"0.4781306",
"0.47778952",
"0.4777174",
"0.4775618",
"0.4773323",
"0.47717366",
"0.47707644",
"0.4767654",
"0.4763945",
"0.47622284",
"0.47618878",
"0.47617579",
"0.47533333",
"0.4746208",
"0.4742995",
"0.47408858",
"0.47396478"
] | 0.5822257 | 2 |
short description of offer | String getOfferSummary(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic String getOffer() {\n\t\treturn \"Get 10% of on your next purchase\";\n\t}",
"@Override\n public String getDescription() {\n return \"Publish exchange offer\";\n }",
"Offer getOffer();",
"@Override\n public String getDescription() {\n return \"Phasing vote casting\";\n }",
"@Override\n public String getDescription() {\n return \"Digital goods listing\";\n }",
"@Override\n public String getDescription() {\n return \"Alias buy\";\n }",
"public String description();",
"@Override\n public String getDescription() {\n return \"Digital goods delivery\";\n }",
"public interface Offer {\r\n\t/**\r\n\t * information about provider \r\n\t * @return\r\n\t */\r\n\tOperationUser getOfferProvider();\r\n\r\n\t/**\r\n\t * short description of offer\r\n\t * @return\r\n\t */\r\n\tString getOfferSummary();\r\n}",
"@Override\n public IOffer getOffer() {\n return offer;\n }",
"String description();",
"String description();",
"String description();",
"String description();",
"String description();",
"String description();",
"String description();",
"String description();",
"String description();",
"String description();",
"String description();",
"String description();",
"@Override\n public String getDescription() {\n return \"Digital goods feedback\";\n }",
"@Override\n public String getDescription() {\n return \"Alias sell\";\n }",
"public String marketplaceOffer() {\n return this.marketplaceOffer;\n }",
"@Override\n public String getDescription() {\n return \"Digital goods delisting\";\n }",
"public abstract String description();",
"public abstract String description();",
"@Override\n\tpublic String getDesription() {\n\t\treturn \"Implemented by Dong Zihe and Huang Haowei based on \\\"Dong Z, Wen L, Huang H, et al. \"\n\t\t\t\t+ \"CFS: A Behavioral Similarity Algorithm for Process Models Based on \"\n\t\t\t\t+ \"Complete Firing Sequences[C]//On the Move to Meaningful Internet Systems: \"\n\t\t\t\t+ \"OTM 2014 Conferences. Springer Berlin Heidelberg, 2014: 202-219.\\\"\";\n\t}",
"@Override\n public String getDescription() {\n return \"Vote casting\";\n }",
"public String getDescription() { return description; }",
"@Override\r\n\tpublic String getDescription() {\n\t\treturn description;\r\n\t}",
"@Override\n public String getDescription() {\n return description;\n }",
"@Override\n\tpublic java.lang.String getDescription() {\n\t\treturn _buySellProducts.getDescription();\n\t}",
"@Override\n public String getDescription() {\n return \"Digital goods purchase\";\n }",
"@Override\n\tpublic String getDescription() {\n\t\treturn description;\n\t}",
"@Override\n public String getDescription() {\n return \"Ask order placement\";\n }",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"@Override\n public String getDescription() {\n return description;\n }",
"java.lang.String getBuyDescribe();",
"private void offer() {\n\t\t\t\n\t\t}",
"String offer();",
"@Override\n\tpublic String getDescription();",
"public String getDescription() {\n return sdesc;\n }",
"public String getDescription() {\n return roomType.getDescription() + \" with a spray-resistant shower\";\n }",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"@Override\r\n\t\tpublic String toString() {\r\n\t\t\treturn description;\r\n\t\t}",
"@Override\n public String getDescription() {\n return \"Bid order placement\";\n }",
"public String getDescription()\r\n {\r\n\treturn desc;\r\n }",
"public String getDescription() {\n return (desc);\n }",
"@Override\n public String getDescription() {\n return String.format(\n \"This is a %s car, its top speed is %.2fkm/h and it can hold %d people\",\n this.getBrand(), this.getSpeed(), this.getNumPassengers()\n );\n }",
"public String shortDescription() {\n return this.shortDescription;\n }",
"@Override\r\n public String toString() {\r\n return String.format(\"%s\",\r\n description);\r\n }",
"@Override\n public String getDescription() {\n return descriptionText;\n }",
"public String getDescription(){return description;}",
"public String getDescription(){return description;}",
"public String getDescription() {\n return desc;\n }",
"java.lang.String getDesc();",
"public String getDescription() {\n return desc;\n }",
"public String describe() { return new String(\"No description.\"); }",
"@Override\r\n\tpublic String getDescription() {\n\t\treturn this.description;\r\n\t}",
"@Override\n public String getDescription() {\n return DESCRIPTION;\n }",
"@Override\r\n\tpublic String getDescription() {\n\t\treturn \"\";\r\n\t}",
"@Override\n public String getDescription() {\n return \"Claim currency reserve\";\n }",
"@Override\n public String getDescription()\n {\n return m_description;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn description;\n\t}",
"public String getDescription ();",
"@Override\n public String getDescription() {\n return this.description;\n }",
"public String getDescription() {return \"Use an item in your inventory\"; }"
] | [
"0.7526069",
"0.73470974",
"0.70044523",
"0.6776733",
"0.67574835",
"0.67462116",
"0.6735456",
"0.6703463",
"0.6678126",
"0.66599476",
"0.66478366",
"0.66478366",
"0.66478366",
"0.66478366",
"0.66478366",
"0.66478366",
"0.66478366",
"0.66478366",
"0.66478366",
"0.66478366",
"0.66478366",
"0.66478366",
"0.66382325",
"0.6628601",
"0.66262037",
"0.65761554",
"0.6545808",
"0.6545808",
"0.65381205",
"0.6533386",
"0.65067893",
"0.6501212",
"0.6487193",
"0.64756113",
"0.64636576",
"0.64536244",
"0.64433956",
"0.64369494",
"0.64369494",
"0.64369494",
"0.64369494",
"0.64369494",
"0.64369494",
"0.64369494",
"0.64369494",
"0.64369494",
"0.6433016",
"0.6431526",
"0.64027894",
"0.6399402",
"0.6384688",
"0.63791376",
"0.6377613",
"0.63723254",
"0.63723254",
"0.63723254",
"0.63723254",
"0.63723254",
"0.63723254",
"0.63723254",
"0.63723254",
"0.63723254",
"0.63723254",
"0.63723254",
"0.63723254",
"0.63723254",
"0.63723254",
"0.63723254",
"0.63723254",
"0.63723254",
"0.63723254",
"0.63723254",
"0.63723254",
"0.63723254",
"0.63723254",
"0.63723254",
"0.63723254",
"0.63678944",
"0.6357738",
"0.63532525",
"0.63526666",
"0.6352414",
"0.6348139",
"0.6345511",
"0.63419926",
"0.6335379",
"0.6335379",
"0.6329194",
"0.6324151",
"0.6319851",
"0.6319101",
"0.63163495",
"0.6315476",
"0.63143027",
"0.63065135",
"0.62968045",
"0.6294717",
"0.6293855",
"0.6291449",
"0.628869"
] | 0.72815746 | 2 |
Creates new JPA Repository with custom Tree Discriminator. | public JpaNestedNodeRepositoryConfiguration(
EntityManager entityManager, Class<N> nodeClass, Class<ID> idClass, JpaTreeDiscriminator<ID, N> treeDiscriminator) {
this.treeDiscriminator = treeDiscriminator;
this.entityManager = entityManager;
this.nodeClass = nodeClass;
this.idClass = idClass;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"RepositoryType createRepositoryType();",
"TypeRepository createTypeRepository();",
"@Repository\npublic interface ItemComboRepository extends Neo4jRepository<ItemCombo, Long> {\n\n ItemRepository findByCode(String code);\n\n}",
"public interface NodeTypeRepository extends CrudRepository<NodeType,Long> {\n}",
"TRepo createRepo();",
"public interface TypeRepositoryCustom extends JpaRepository<Type, Long> {\n\n}",
"public JpaNestedNodeRepositoryConfiguration(EntityManager entityManager, Class<N> nodeClass, Class<ID> idClass) {\n this(entityManager, nodeClass, idClass, new MapJpaTreeDiscriminator<>());\n }",
"SourceBuilder createRepository();",
"DatastoreMetadataFactory<EntityMetadata, Discriminator> getMetadataFactory();",
"@RooJpaRepositoryCustom(entity = Pedido.class)\npublic interface PedidoRepositoryCustom {\n}",
"@RooJpaRepositoryCustom(entity = LoanItem.class)\npublic interface LoanItemRepositoryCustom {\n}",
"private void createNewRepository() {\n\t\tRepositoryConfiguration conf = repositorySettingsJPanel\n\t\t\t\t.getRepositoryConfiguration();\n\n\t\t/*\n\t\t * if (RepositoryType.HTTP.equals(conf.getType())) { new\n\t\t * MessageDialog(this, \"TBD\",\n\t\t * \"The support for HTTP repository is not implemented yet\"\n\t\t * ).setVisible(true); return; }\n\t\t */\n\n\t\tif (!validateRepositoryConfiguration(conf)) {\n\t\t\t// fixme igor; mark what is wrong!!\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tContextHolder.getInstance().getApplicationConfiguration()\n\t\t\t\t\t.addRepositoryConfiguration(conf);\n\t\t} catch (AddRepositoryException e) {\n\t\t\tnew MessageDialog(this, \"Cannot create new repository\",\n\t\t\t\t\te.getMessage()).setVisible(true);\n\t\t\treturn;\n\t\t}\n\n\t\tAppEventsManager.getInstance().fireRepositoriesChanagedEvent(this);\n\t\tdispose();\n\t}",
"@Override\n public CreateRepositoryResult createRepository(CreateRepositoryRequest request) {\n request = beforeClientExecution(request);\n return executeCreateRepository(request);\n }",
"public interface BaseRepository<T> extends GraphRepository<T> {\n}",
"public interface LookupRepository extends JpaRepository<Lookup,Long> {\n\n @Query(value = \"select distinct discriminator from RULES_MANAGER.Lookup l\", nativeQuery = true)\n List<String> findAllTypes();\n\n @Query(value = \"select * from RULES_MANAGER.Lookup where discriminator = ?1 and reference_id = ?2 order by name\", nativeQuery = true)\n List<Lookup> findByTypeAndReferenceId(String type, Long referenceId);\n\n}",
"@Repository\npublic interface ClClassificationSchemeConRepository extends AXBootJPAQueryDSLRepository<ClClassificationSchemeCon, ClClassificationSchemeCon.ClClassificationSchemeId>\n{\n\n}",
"public interface RoleRepository extends GraphRepository<Role> {\n\n}",
"interface NetworkRepository extends JpaRepository<Network, Long> {\n\n}",
"public interface StyleRepository extends NamedRepository<Style> {\n}",
"public interface TagRepository extends BaseRepository<Tag, Integer> {\n}",
"public interface OrderConceptRepository<O extends OrderConcept> extends JpaRepository<O, Long> {\n}",
"@Repository\npublic interface OwnerRepository extends BaseRepository<EOwner,UUID> {\n}",
"@Override\n public TypeDefinition createType(String repositoryId, TypeDefinition type, ExtensionsData extension) {\n CmisSpi spi = CmisBindingsHelper.getSPI(session);\n TypeDefinition result = spi.getRepositoryService().createType(repositoryId, type, extension);\n\n // add the type to cache\n TypeDefinitionCache cache = CmisBindingsHelper.getTypeDefinitionCache(session);\n cache.put(repositoryId, result);\n\n return result;\n }",
"Policy_Repository createPolicy_Repository();",
"private RestTreeNode createRemoteOrVirtualFolderNode(BaseBrowsableItem pathItem, String repoType,\n RepoPath repositoryPath) {\n RestTreeNode child;\n String repoKey = pathItem.getRepoKey();\n repositoryPath = pathItem.getRepoPath();\n if (repoKey.endsWith(\"-cache\")) {\n repoKey = repoKey.replace(\"-cache\", \"\");\n repositoryPath = InternalRepoPathFactory.create(repoKey, pathItem.getRepoPath().getPath());\n }\n child = new VirtualRemoteFolderNode(repositoryPath, pathItem, pathItem.getName(), repoType);\n return child;\n }",
"public ProductoRepository() {}",
"String getRepoType();",
"public interface MediaTypeRepository extends JpaRepository<MediaType, Long> {\n}",
"@Repository\npublic interface BaseRepository {\n}",
"public static <RN extends GenRn, E extends Entity> RN newInstance(Class<E> entity) {\n final StringBuilder classPath = new StringBuilder(\"br.com.rn.\");\r\n classPath.append(entity.getSimpleName());\r\n classPath.append(\"Rn\");\r\n\r\n try {\r\n\r\n // Carrega a classe da Rn especifia da classe passada\r\n final Class rnClass = GenDao.class.getClassLoader().loadClass(classPath.toString());\r\n\r\n // Cria uma instância da Rn\r\n return (RN) rnClass.newInstance();\r\n\r\n } catch (ClassNotFoundException | IllegalAccessException | \r\n IllegalArgumentException | InstantiationException | SecurityException ignore) {\r\n \r\n // Como não foi encontrada uma Rn específica retorna uma genérica\r\n return (RN) new GenRn();\r\n \r\n }\r\n\r\n }",
"@SuppressWarnings(\"unused\")\npublic interface SistemaRepository extends JpaRepository<Sistema, Long> {\n\n /**\n * Get list of systems by organizations\n *\n * @param organizacao\n * @return\n */\n List<Sistema> findAllByOrganizacao(Organizacao organizacao);\n\n @Query( value = \"SELECT count(*) FROM ANALISE WHERE sistema_id = ?1\", nativeQuery = true)\n public Integer quantidadeSistema(Long id);\n\n\n @Query( value = \"Select * FROM SISTEMA WHERE organizacao_id = ?1\", nativeQuery = true)\n public Set<Sistema> findAllSystemOrg(Long id);\n\n @EntityGraph(attributePaths = \"modulos\")\n Sistema findOne(Long id);\n\n}",
"@RooJpaRepository(entity = Room.class)\npublic interface RoomRepository {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface NonConformanceTypeRepository extends JpaRepository<NonConformanceType, Long> {\n\n}",
"@SuppressWarnings(\"unchecked\")\n\t public AbstractHibernateRepository() {\n\t entityClass = (Class<Entity>) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0];\n\t }",
"public JRepositoryDao() {\n super(JRepository.REPOSITORY, JRepositoryPojo.class);\n }",
"@RooJpaRepository(entity = ProductTaxRates.class)\npublic interface ProductTaxRatesRepository {\n}",
"public interface LabelRepository extends JpaRepository<Label, String> {\n}",
"public void testDiscriminator()\r\n\t{\r\n\r\n\t\tEntityManagerInterface entityManagerInterface = EntityManager.getInstance();\r\n\t\tDomainObjectFactory factory = DomainObjectFactory.getInstance();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// Step 1\r\n\t\t\tEntityInterface specimen = factory.createEntity();\r\n\t\t\tspecimen.setName(\"specimen\");\r\n\t\t\tspecimen.setAbstract(true);\r\n\r\n\t\t\tEntityInterface tissueSpecimen = factory.createEntity();\r\n\t\t\ttissueSpecimen.setName(\"tissueSpecimen\");\r\n\t\t\ttissueSpecimen.setParentEntity(specimen);\r\n\t\t\ttissueSpecimen.setDiscriminatorColumn(\"SPECIMEN_CLASS\");\r\n\t\t\ttissueSpecimen.setDiscriminatorValue(\"Tissue\");\r\n\r\n\t\t\tEntityInterface cellSpecimen = factory.createEntity();\r\n\t\t\tcellSpecimen.setName(\"cellSpecimen\");\r\n\t\t\tcellSpecimen.setParentEntity(specimen);\r\n\t\t\tcellSpecimen.setDiscriminatorColumn(\"SPECIMEN_CLASS\");\r\n\t\t\tcellSpecimen.setDiscriminatorValue(\"Cell\");\r\n\r\n\t\t\tspecimen = entityManagerInterface.persistEntity(specimen);\r\n\t\t\ttissueSpecimen = entityManagerInterface.persistEntity(tissueSpecimen);\r\n\t\t\tcellSpecimen = entityManagerInterface.persistEntity(cellSpecimen);\r\n\t\t\tcellSpecimen = entityManagerInterface.persistEntity(cellSpecimen);\r\n\r\n\t\t\tcellSpecimen = entityManagerInterface.getEntityByIdentifier(cellSpecimen.getId());\r\n\t\t\ttissueSpecimen = entityManagerInterface.getEntityByIdentifier(tissueSpecimen.getId());\r\n\r\n\t\t\tassertEquals(\"SPECIMEN_CLASS\", cellSpecimen.getDiscriminatorColumn());\r\n\t\t\tassertEquals(\"Cell\", cellSpecimen.getDiscriminatorValue());\r\n\r\n\t\t\tassertEquals(\"SPECIMEN_CLASS\", tissueSpecimen.getDiscriminatorColumn());\r\n\t\t\tassertEquals(\"Tissue\", tissueSpecimen.getDiscriminatorValue());\r\n\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tLogger.out.debug(DynamicExtensionsUtility.getStackTrace(e));\r\n\t\t\tfail();\r\n\t\t}\r\n\t}",
"void setRepoType(String repoType);",
"Repository getRepository();",
"@NoRepositoryBean\npublic interface GenericTokenRepository<T extends GenericToken, String extends Serializable> extends JpaRepository<T, String> {\n\n @Override\n T findOne(String token);\n}",
"DomainType createDomainType();",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface PartnerTypeRepository extends JpaRepository<PartnerType, Long> {\n\n}",
"public TipoAnimalEntity crearTipoAnimal(TipoAnimalEntity entity){\n persistence.create(entity);\n return entity;\n }",
"public interface Repository {}",
"@Repository\npublic interface EnumTypeRepository extends BaseRepository<EnumTypeBean,Long> {\n}",
"@Repository\npublic interface DistrictCountryRepository extends JpaRepository<DistrictCountry, String> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface CategorieRessourcesRepository extends JpaRepository<CategorieRessources, Long> {\n}",
"public interface OrganisationRepository extends Repository<Organisation, Long> {\n}",
"@Repository\r\npublic interface TbContentCategoryDao extends BaseTreeDao<TbContentCategory> {\r\n\r\n}",
"public interface BranchRepository extends CrudRepository<Branch, Long> {\n\n Branch findOneByUuid(String uuid);\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface SchemeRepository extends JpaRepository<Scheme,Long> {\n\n List<Scheme> findSchemeByDriver(Driver driver);\n\n}",
"public interface MasterSyncLanguageRepository extends BaseRepository<MasterLanguage, String> {\n\n\t\n\n}",
"public Repository<Long, Participation> getParticipationRepository() {\n final String repositoryType = properties.getProperty(\"participationRepositoryType\");\n final String pathToFile = properties.getProperty(\"participationRepositoryPathToFile\");\n final String tableName = properties.getProperty(\"participationRepositoryTableName\");\n\n final Validator<Participation> validator = new ParticipationValidator();\n\n return switch (repositoryType) {\n case IN_MEMORY -> new InMemoryRepository<>(validator);\n case XML -> new ParticipationXmlRepository(validator, Objects.requireNonNull(pathToFile));\n case CSV -> new ParticipationFileRepository(validator, Objects.requireNonNull(pathToFile));\n case JDBC -> new ParticipationJdbcRepository(validator, getDatabaseProvider(), Objects.requireNonNull(tableName));\n default -> throw new IllegalStateException(illegalRepositoryTypeErrorMessage);\n };\n }",
"@Override\n\tprotected IGenericRepo<Estudiante, Integer> getRepo() {\n\t\treturn repo;\n\t}",
"@Repository\npublic interface ClientTypeRepository extends JpaRepository<ClientType, Integer> {\n\n}",
"protected FVResourceNode createDeviceTypesTree(IProgressObserver observer) {\n if (observer == null) {\n observer = new ObserverAdapter();\n }\n\n TreeManagementModel model =\n mgrModels.get(TreeTypeEnum.DEVICE_TYPES_TREE);\n if (model.isValid()) {\n observer.onFinish();\n return model.getTree();\n }\n\n // Create the root node of the tree\n FVResourceNode deviceTypesTree =\n new FVResourceNode(subnet.getName(), TreeNodeType.ALL,\n TreeNodeType.ALL.ordinal());\n\n DeviceTypesTreeSynchronizer treeUpdater =\n new DeviceTypesTreeSynchronizer(mSubnetApi);\n treeUpdater.updateTree(deviceTypesTree, null, observer);\n model.setTree(deviceTypesTree);\n return deviceTypesTree;\n }",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface GIDMonikerRepository extends JpaRepository<GIDMoniker, Long> {\n}",
"public interface CountryRepository extends GraphRepository<Country>, RelationshipOperationsRepository<Country> {\n\t\n\t\n\t@Query(\"start n=node:__types__(className='app.model.Country') where n.name = {0} return n limit 1\")\n\tpublic Country findByName(String name);\n\t\n\t@Query(\"start airport=node({0}) match airport-[:LOCATED_IN]-country return country\")\n\tpublic Country findByAirport(long airportId);\n\t\n\t@Query(\"start n=node:__types__(className='app.model.Country') return n order by n.name skip {1} limit {0}\")\n\tpublic List<Country> findAll(int limit, int skip);\n\t\n\t\n}",
"@Repository\npublic interface AuthorityRepository extends JpaRepository<Authority, String> {\n\n}",
"public interface RimWideRepository extends JpaRepository<RimWide, Long> {\n}",
"public interface SizeCostTypeRepository extends Repository<SizeCostType, Long> {\n}",
"@Repository\npublic interface BaseUserRepository extends JpaRepository<BaseUser,String> {\n\n}",
"public interface UserCustomRepository {\n\n}",
"@Repository\npublic interface EditorRepository extends JpaRepository<Editor, Long> {\n}",
"public interface IPetRepository extends IBaseRepository<Pet> {\n // Will be dinamically implemented (polymorphism style)\n}",
"public interface ManualRepository extends BaseRepository<ManualBo, Long>, ManualRepositoryCustom{\n}",
"@NoRepositoryBean\npublic interface BaseRepository<T,ID> extends Repository<T,ID> {\n\n <S extends T> S save(S entity);\n}",
"public interface AuthorityRepository extends JpaRepository<Authority, String> {\n}",
"public interface AuthorityRepository extends JpaRepository<Authority, String> {\n}",
"public interface AuthorityRepository extends JpaRepository<Authority, String> {\n}",
"public interface AuthorityRepository extends JpaRepository<Authority, String> {\n}",
"public interface AuthorityRepository extends JpaRepository<Authority, String> {\n}",
"public interface AuthorityRepository extends JpaRepository<Authority, String> {\n}",
"public interface AuthorityRepository extends JpaRepository<Authority, String> {\n}",
"public interface AuthorityRepository extends JpaRepository<Authority, String> {\n}",
"public interface RoleRepository extends JpaRepository<Role,Long> {\n\n /**\n * Adnotacja Query - Spring Data dzięki adnotacji udostępnia możliwość definiowania zapytania.\n * Dodatkowa metoda findByName - wyszukuje rekord w bazie danych na podstawie nazwy roli.\n */\n @Query(\"SELECT r FROM Role r WHERE r.name = ?1\")\n public Role findByName(String name);\n}",
"public String treeType();",
"@Repository\npublic interface RidingTerrainRepository extends JpaRepository<RidingTerrain, Long>{\n \n}",
"@Nullable\n public String getRepositoryType() {\n return myRepoType;\n }",
"public interface Repository {\n\n }",
"public interface Repository {\n\n }",
"public interface FeedBackRepositoryCustom extends JpaRepository<FeedBack, Long> {\n\n}",
"private TransactionDiscriminator() {\n }",
"@Repository\npublic interface BiologicalEntityRepository extends MongoRepository<BiologicalEntity, String> {\n}",
"public interface StudentRepository extends JpaRepository<Student,Integer> {\n\n /* @Modifying\n @Query(value = \"INSERT INTO t_student (name,age,comment) VALUES (,?1, ?2)\", nativeQuery=true)\n public Student addStudent(Student student);*/\n\n @Query(value = \"select DATABASE();\",nativeQuery = true)\n public String getDataBaseName();\n}",
"public interface CategoryRepository extends JpaRepository<Category, Long> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface LevelRepository extends JpaRepository<Level,Long> {\n \n}",
"public interface LocatedRepository extends GremlinRepository<Located> { }",
"@Repository\npublic interface AuthorityRepository extends JpaRepository<Authority, String>{\n}",
"@Repository\npublic interface RepositoryMain extends CrudRepository<Roulette, Long>{\n\n}",
"@NoRepositoryBean\npublic interface AbstractEntityRepository<T extends AbstractEntity> extends JpaRepository<T, Long>\n{\n}",
"ISModificationRepository createISModificationRepository();",
"public interface FibreRepository extends Repository<Fibre, String> {\n}",
"H enrichRepo(RepoType repoType);",
"public HierarchyManager createHierarchyManager() throws ServiceException {\t\t\r\n initialize(); \r\n return new HierarchyManager(multiDomainMetaService, multiDomainService); \r\n\t}",
"@EnableJpaRepositories\npublic interface PaymentRepository extends JpaRepository<Payment, String> {\n}",
"@Repository\npublic interface PersonRepository extends JpaRepository<Person, Long> {\n}",
"@Repository\npublic interface DistrictRepository extends JpaRepository<District, Long> {}",
"@Repository\npublic interface SkillRepository extends JpaRepository<Skill, String> {\n}"
] | [
"0.6825506",
"0.65568817",
"0.57375896",
"0.5727925",
"0.56575346",
"0.5470636",
"0.5454329",
"0.5433983",
"0.54021674",
"0.5354381",
"0.5277634",
"0.5265809",
"0.52549374",
"0.52044153",
"0.51732045",
"0.5125251",
"0.5110747",
"0.50715953",
"0.5053443",
"0.5051946",
"0.5041553",
"0.5023455",
"0.50106883",
"0.50040424",
"0.49709338",
"0.4967793",
"0.4959169",
"0.4941015",
"0.4936882",
"0.49050602",
"0.48979005",
"0.4886574",
"0.4879642",
"0.4869104",
"0.486709",
"0.4863024",
"0.48503596",
"0.4838059",
"0.48350748",
"0.48333916",
"0.48256332",
"0.48250952",
"0.48162913",
"0.4804341",
"0.48024598",
"0.47898236",
"0.47882402",
"0.4785777",
"0.47793034",
"0.47755733",
"0.47731495",
"0.47715265",
"0.47645608",
"0.47642165",
"0.4760335",
"0.47600383",
"0.47588673",
"0.47399986",
"0.47330636",
"0.4726446",
"0.47199202",
"0.4719534",
"0.47178376",
"0.47018123",
"0.47000626",
"0.46998665",
"0.4694425",
"0.469287",
"0.46901858",
"0.46901858",
"0.46901858",
"0.46901858",
"0.46901858",
"0.46901858",
"0.46901858",
"0.46901858",
"0.46791244",
"0.4676986",
"0.46724445",
"0.46716934",
"0.4669593",
"0.4669593",
"0.4664334",
"0.46627897",
"0.4661706",
"0.46615395",
"0.46582502",
"0.46573016",
"0.46570075",
"0.4656749",
"0.4653199",
"0.46472698",
"0.4647064",
"0.4646321",
"0.4643532",
"0.46407726",
"0.46351242",
"0.46337545",
"0.4626979",
"0.4626959"
] | 0.5521537 | 5 |
Creates new JPA Repository with no Tree Discriminator. | public JpaNestedNodeRepositoryConfiguration(EntityManager entityManager, Class<N> nodeClass, Class<ID> idClass) {
this(entityManager, nodeClass, idClass, new MapJpaTreeDiscriminator<>());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"RepositoryType createRepositoryType();",
"TypeRepository createTypeRepository();",
"TRepo createRepo();",
"@NoRepositoryBean\npublic interface AbstractEntityRepository<T extends AbstractEntity> extends JpaRepository<T, Long>\n{\n}",
"@Override\n public CreateRepositoryResult createRepository(CreateRepositoryRequest request) {\n request = beforeClientExecution(request);\n return executeCreateRepository(request);\n }",
"private void createNewRepository() {\n\t\tRepositoryConfiguration conf = repositorySettingsJPanel\n\t\t\t\t.getRepositoryConfiguration();\n\n\t\t/*\n\t\t * if (RepositoryType.HTTP.equals(conf.getType())) { new\n\t\t * MessageDialog(this, \"TBD\",\n\t\t * \"The support for HTTP repository is not implemented yet\"\n\t\t * ).setVisible(true); return; }\n\t\t */\n\n\t\tif (!validateRepositoryConfiguration(conf)) {\n\t\t\t// fixme igor; mark what is wrong!!\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tContextHolder.getInstance().getApplicationConfiguration()\n\t\t\t\t\t.addRepositoryConfiguration(conf);\n\t\t} catch (AddRepositoryException e) {\n\t\t\tnew MessageDialog(this, \"Cannot create new repository\",\n\t\t\t\t\te.getMessage()).setVisible(true);\n\t\t\treturn;\n\t\t}\n\n\t\tAppEventsManager.getInstance().fireRepositoriesChanagedEvent(this);\n\t\tdispose();\n\t}",
"SourceBuilder createRepository();",
"public ProductoRepository() {}",
"@NoRepositoryBean\npublic interface HibernateJpaRepository<T, ID extends Serializable>\n extends JpaRepository<T, ID> {\n\n public T saveWithoutFlush(T entity);\n\n public List<T> saveWithoutFlush(Iterable<? extends T> entities);\n\n public List<T> doQueryWithFilter(String filterName, String filterQueryName, Map inFilterParams, Map inQueryParams);\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface NonConformanceTypeRepository extends JpaRepository<NonConformanceType, Long> {\n\n}",
"@NoRepositoryBean\npublic interface BaseRepository<E extends BaseEntity> extends PagingAndSortingRepository<E, String> {\n}",
"public Repository() {\n\n }",
"public interface NodeTypeRepository extends CrudRepository<NodeType,Long> {\n}",
"public JRepositoryDao() {\n super(JRepository.REPOSITORY, JRepositoryPojo.class);\n }",
"@NoRepositoryBean\npublic interface BaseRepository<T,ID> extends Repository<T,ID> {\n\n <S extends T> S save(S entity);\n}",
"@NoRepositoryBean\npublic interface GenericTokenRepository<T extends GenericToken, String extends Serializable> extends JpaRepository<T, String> {\n\n @Override\n T findOne(String token);\n}",
"@Repository\npublic interface BaseRepository {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface PartnerTypeRepository extends JpaRepository<PartnerType, Long> {\n\n}",
"@SuppressWarnings(\"unchecked\")\n\t public AbstractHibernateRepository() {\n\t entityClass = (Class<Entity>) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0];\n\t }",
"interface NetworkRepository extends JpaRepository<Network, Long> {\n\n}",
"public interface Repository {}",
"@Repository\npublic interface ItemComboRepository extends Neo4jRepository<ItemCombo, Long> {\n\n ItemRepository findByCode(String code);\n\n}",
"public interface TypeRepositoryCustom extends JpaRepository<Type, Long> {\n\n}",
"public HawtDBAggregationRepository() {\n }",
"Policy_Repository createPolicy_Repository();",
"@Repository\npublic interface PersonRepository extends JpaRepository<Person, Long> {\n}",
"Repository getFallbackRepository();",
"@NoRepositoryBean\npublic interface BaseDao<T, ID extends Serializable> extends JpaRepository<T, ID>, JpaSpecificationExecutor<T>, MiniBaseDao<T, ID> {\n\n}",
"@Override\n\tprotected CoreEntity createNewEntity() {\n\t\treturn null;\n\t}",
"Repository getRepository();",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface GIDMonikerRepository extends JpaRepository<GIDMoniker, Long> {\n}",
"public TreePositionListJpa() {\n // do nothing\n }",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface AllergyRepository extends JpaRepository<Allergy, Long> {\n\n}",
"public interface IJpaRepository<T, ID extends Serializable> {\n\n public void persist(T entity);\n\n public void persist(Iterable<? extends T> entities);\n\n public <S extends T> S merge(S entity);\n\n public <S extends T> Iterable<S> merge(Iterable<S> entities);\n\n public List<T> findAll();\n\n public List<T> findAll(String entityName);\n\n public Page<T> findAll(PageRequest pageRequest);\n\n public Page<T> findAllByNamedQuery(String queryName,\n Map<String, Object> parameters,\n PageRequest pageRequest);\n\n public Optional<T> findOneByNamedQuery(String queryName,\n Map<String, Object> parameters);\n\n public Optional<T> findOne(ID id);\n\n public Page<T> findByQuery(HashMap<String, Object> parameters, PageRequest pageRequest);\n\n public Page<T> findByQuery(HashMap<String, Object> parameters, PageRequest pageRequest, String entityName);\n\n public Page<T> findByQuery(HashMap<String, Object> parameters, PageRequest pageRequest, String orderBy, String order);\n\n public Page<T> findByQuery(HashMap<String, Object> parameters, PageRequest pageRequest, String orderBy, String order, String entityName);\n\n public Optional<T> findOneByQuery(HashMap<String,Object> parameters);\n\n public Optional<T> findOneByQuery(HashMap<String,Object> parameters, String entityName);\n\n public void delete(T t);\n\n public void delete(Iterable<? extends T> entities);\n\n @Deprecated\n /**\n * Use entity manager instead.\n *\n * Will be removed in the 2.0 release\n */\n public void flushAndClear();\n\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface LibraryRepository extends JpaRepository<Library, Long> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface LeLegalEntityTypesRepository extends JpaRepository<LeLegalEntityTypes, Long> {\n\n}",
"public Repository<Long, Participation> getParticipationRepository() {\n final String repositoryType = properties.getProperty(\"participationRepositoryType\");\n final String pathToFile = properties.getProperty(\"participationRepositoryPathToFile\");\n final String tableName = properties.getProperty(\"participationRepositoryTableName\");\n\n final Validator<Participation> validator = new ParticipationValidator();\n\n return switch (repositoryType) {\n case IN_MEMORY -> new InMemoryRepository<>(validator);\n case XML -> new ParticipationXmlRepository(validator, Objects.requireNonNull(pathToFile));\n case CSV -> new ParticipationFileRepository(validator, Objects.requireNonNull(pathToFile));\n case JDBC -> new ParticipationJdbcRepository(validator, getDatabaseProvider(), Objects.requireNonNull(tableName));\n default -> throw new IllegalStateException(illegalRepositoryTypeErrorMessage);\n };\n }",
"@RooJpaRepository(entity = Room.class)\npublic interface RoomRepository {\n}",
"private EmployeeRepository(){\n\t\t\n\t}",
"public interface Repository {\n\n }",
"public interface Repository {\n\n }",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface SGOffTheTeeRepository extends JpaRepository<SGOffTheTee, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface TipoObraRepository extends JpaRepository<TipoObra, Long> {\n}",
"@Repository\npublic interface PaymentRepository extends CrudRepository<Payment, UUID> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface PRoulRepository extends JpaRepository<PRoul, Long> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface WaPersonalAddressRepository extends JpaRepository<WaPersonalAddress, Long> {\n}",
"@Repository\npublic interface OwnerRepository extends BaseRepository<EOwner,UUID> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface TechnologistRepository extends JpaRepository<Technologist, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface TestDescriptionRepository extends JpaRepository<TestDescription, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface OrganizationalUnitRepository extends JpaRepository<OrganizationalUnit, Long> {\n}",
"public interface BaseRepository<T> extends GraphRepository<T> {\n}",
"@Repository\npublic interface RepositoryMain extends CrudRepository<Roulette, Long>{\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface LevelRepository extends JpaRepository<Level,Long> {\n \n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface PaymentFournisseurRepository extends JpaRepository<PaymentFournisseur, Long> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface ControlCambioRazonRepository extends JpaRepository<ControlCambioRazon, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface ChapitreRepository extends JpaRepository<Chapitre, Long>, JpaSpecificationExecutor<Chapitre> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface MunicipioRepository extends JpaRepository<Municipio, Long> {\n}",
"public ProduktRepositoryImpl() {\n this.conn = DatabaseConnectionManager.getDatabaseConnection();\n }",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface FestivalAllowancePaymentDtlRepository extends JpaRepository<FestivalAllowancePaymentDtl, Long>, JpaSpecificationExecutor<FestivalAllowancePaymentDtl> {\n}",
"public interface PersonRepository extends JpaRepository<Person, Long>, PersonRepositoryQuery {\n}",
"@RooJpaRepositoryCustom(entity = Pedido.class)\npublic interface PedidoRepositoryCustom {\n}",
"public interface MediaTypeRepository extends JpaRepository<MediaType, Long> {\n}",
"public RepositoryImpl(final Class<?> entityClass) {\n this.entityClass = entityClass;\n this.entityClassName = this.entityClass.getSimpleName();\n this.entityTableName = this.entityClass.getAnnotation(Table.class).name();\n repositoryInstances.put(entityClass, this);\n }",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface MGuildRoulettePrizeRepository extends JpaRepository<MGuildRoulettePrize, Long>, JpaSpecificationExecutor<MGuildRoulettePrize> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface ProvaRepository extends JpaRepository<Prova, Long>, JpaSpecificationExecutor<Prova> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface SaleRepository extends JpaRepository<Sale, Long> {}",
"@Repository\npublic interface ProductRepository extends JpaRepository<Product, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface CarerClientRelationRepository extends JpaRepository<CarerClientRelation, Long>, JpaSpecificationExecutor<CarerClientRelation> {\n}",
"@Repository\npublic interface UserRepository extends JpaRepository<User,Integer> {\n //implementation will be provided to run time\n}",
"public static Git createEntity(EntityManager em) {\n Git git = new Git()\n .date(DEFAULT_DATE)\n .mark(DEFAULT_MARK);\n return git;\n }",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface ProfissionalSaudeRepository extends JpaRepository<ProfissionalSaude, Long> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface DisabilityTypeRepository extends JpaRepository<DisabilityType, Long>, JpaSpecificationExecutor<DisabilityType> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface CategorieRessourcesRepository extends JpaRepository<CategorieRessources, Long> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface DishRepository extends JpaRepository<Dish, Long>, JpaSpecificationExecutor<Dish> {}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface MatchRelationRepository extends JpaRepository<MatchRelation, Long> {\n}",
"@Bean\n @RequestScope\n public PersonRepository create(final IESJCEventStore eventStore) {\n return new PersonRepository(eventStore);\n }",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface DDbRepository extends JpaRepository<DDb, Long>, JpaSpecificationExecutor<DDb> {}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface PublisherRepository extends JpaRepository<Publisher, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface CommunityMediaRepository extends JpaRepository<CommunityMedia, Long> {\n\n}",
"public Entity newEntity() { return newMyEntity(); }",
"public Entity newEntity() { return newMyEntity(); }",
"@Repository\npublic interface PersonaRepository extends JpaRepository<Persona, Integer> {\n \n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface TribunalRepository extends JpaRepository<Tribunal, Long> {\n\n}",
"@Query(\"select r from Repository r where r.publicRepository = true\")\n List<Repository> findAllPublicRepositories();",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface DispositivoRepository extends JpaRepository<Dispositivo, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface OrganisationGroupsRepository extends JpaRepository<OrganisationGroups, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface AnuncioHistoricoRepository extends JpaRepository<AnuncioHistorico, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface SocialContactRepository extends JpaRepository<SocialContact, Long> {\n\n}",
"@EnableJpaRepositories\npublic interface PaymentRepository extends JpaRepository<Payment, String> {\n}",
"@Repository\npublic interface RidingTerrainRepository extends JpaRepository<RidingTerrain, Long>{\n \n}",
"@SuppressWarnings(\"unused\")\npublic interface SistemaRepository extends JpaRepository<Sistema, Long> {\n\n /**\n * Get list of systems by organizations\n *\n * @param organizacao\n * @return\n */\n List<Sistema> findAllByOrganizacao(Organizacao organizacao);\n\n @Query( value = \"SELECT count(*) FROM ANALISE WHERE sistema_id = ?1\", nativeQuery = true)\n public Integer quantidadeSistema(Long id);\n\n\n @Query( value = \"Select * FROM SISTEMA WHERE organizacao_id = ?1\", nativeQuery = true)\n public Set<Sistema> findAllSystemOrg(Long id);\n\n @EntityGraph(attributePaths = \"modulos\")\n Sistema findOne(Long id);\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface LancheRepository extends JpaRepository<Lanche, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface LevelDressageHisRepository extends JpaRepository<LevelDressageHis, Long> {\n\n}",
"public interface OrganisationRepository extends Repository<Organisation, Long> {\n}",
"private RepositorySystem newRepositorySystem()\n\t{\n\t\tDefaultServiceLocator locator = MavenRepositorySystemUtils.newServiceLocator();\n\t\tlocator.addService( RepositoryConnectorFactory.class, BasicRepositoryConnectorFactory.class );\n\t\tlocator.addService( TransporterFactory.class, FileTransporterFactory.class );\n\t\tlocator.addService( TransporterFactory.class, HttpTransporterFactory.class );\n\n\t\tlocator.setErrorHandler( new DefaultServiceLocator.ErrorHandler()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void serviceCreationFailed( Class<?> type, Class<?> impl, Throwable exception )\n\t\t\t{\n\t\t\t\texception.printStackTrace();\n\t\t\t}\n\t\t} );\n\n\t\treturn locator.getService( RepositorySystem.class );\n\t}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface HelpFullRepository extends JpaRepository<HelpFull, Long> {\n \n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface HorarioDisponivelRepository extends JpaRepository<HorarioDisponivel, Long> {\n\n}",
"@Repository\npublic interface TestRepository extends JpaRepository<Test, Integer>, JpaSpecificationExecutor<Test> {\n\n}",
"public Person create() {\n\t\treturn personRepository.create();\n\t}",
"@Repository\npublic interface BaseUserRepository extends JpaRepository<BaseUser,String> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface TipoEventoRepository extends JpaRepository<TipoEvento, Long>, JpaSpecificationExecutor<TipoEvento> {\n\n}"
] | [
"0.6694891",
"0.6281815",
"0.60698855",
"0.593791",
"0.5910675",
"0.58754265",
"0.5809769",
"0.5751289",
"0.5557519",
"0.5553921",
"0.55054307",
"0.5445601",
"0.5400149",
"0.5372431",
"0.53646564",
"0.5348607",
"0.5336957",
"0.5330669",
"0.5313077",
"0.5288869",
"0.5287716",
"0.52861154",
"0.5276662",
"0.52764827",
"0.5261272",
"0.525208",
"0.5237924",
"0.5219099",
"0.52098143",
"0.5197473",
"0.5172858",
"0.5157712",
"0.513834",
"0.5122905",
"0.51158047",
"0.5102907",
"0.51011115",
"0.5099652",
"0.50876987",
"0.5087276",
"0.5087276",
"0.5078727",
"0.50733984",
"0.50567895",
"0.5050638",
"0.5047903",
"0.50455725",
"0.5041579",
"0.5039223",
"0.5031955",
"0.50306636",
"0.5029031",
"0.5024933",
"0.5023071",
"0.5008541",
"0.50077116",
"0.5006491",
"0.5005963",
"0.5005919",
"0.50058764",
"0.5002359",
"0.49991438",
"0.4998628",
"0.4993639",
"0.4989398",
"0.49866137",
"0.4981702",
"0.49815676",
"0.49780428",
"0.49759465",
"0.49748588",
"0.4973356",
"0.4970859",
"0.49705282",
"0.4968222",
"0.4966585",
"0.49614885",
"0.49581373",
"0.49578035",
"0.49553245",
"0.49553245",
"0.49539348",
"0.49534476",
"0.49497968",
"0.494556",
"0.49441805",
"0.49424586",
"0.49415752",
"0.49412066",
"0.49391425",
"0.49386552",
"0.49381232",
"0.49324045",
"0.4927072",
"0.49266887",
"0.49251",
"0.49229378",
"0.4922858",
"0.49224532",
"0.49215332",
"0.4917334"
] | 0.0 | -1 |
Get affected by an ability. | @Override
public void accept(final Ability ability) {
ability.affect(this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"AbilityDamage getAbilityDamage();",
"AbilityTarget getAbilityTarget();",
"@Override\n\tpublic Affectation getAffectation(int idAff) {\n\t\treturn dao.getAffectation(idAff);\n\t}",
"public abstract Ability[] getAbilities();",
"public void abilityOne() {\n ability(map.getCurrentTurnHero().getAbilities().get(0));\n }",
"Resource getAbilityResource();",
"int getAbilityValue(Unit source);",
"int getDamage();",
"int getDamage();",
"int getDamage();",
"int getDamage();",
"int getDamage();",
"public static List<Ability> getAbilities() {\n return Collections.unmodifiableList(new ArrayList<>(ABILITIES.values()));\n }",
"public Editable getEditable()\n\t\t{\n\t\t\tTargetType theTarget = new TargetType(Category.Force.RED);\n\t\t\tInvestigate investigate = new Investigate(\"investigating red targets\",\n\t\t\t\t\ttheTarget, DetectionEvent.IDENTIFIED, null);\n\t\t\treturn investigate;\n\t\t}",
"public int getAchievements() {\n return achievements;\n }",
"ArrayList<Ability> getAbilities() throws RemoteException;",
"@Basic @Immutable\n\tpublic int getDamage() {\n\t\treturn this.damage;\n\t}",
"public void getAttackedByDarknessMagicBook(IEquipableItem item){item.strongAttackTo(this.getOwner());}",
"public Ability get_ability(String name) throws IllegalArgumentException{\n if(check_ab_exist(name))\n return ab_store.get(name);\n else\n throw new IllegalArgumentException();\n }",
"@Test\r\n public void GivenAnOrc_WhenCreated_ThenHasNegativeOneIntelligenceModifier() {\r\n Player orc = getPlayer(RaceType.ORC);\r\n assertThat(orc.getAbilityModifier(AbilityType.INTELLIGENCE), is(-1));\r\n }",
"public int getDamage() {\n //TODO\n return 1;\n }",
"@Override\n public double getDamageAmount() {\n return this.getStrength().getAbilityValue();\n }",
"public AbstractAbility getCurrentAbilityCast() {\n return this.currentAbilityCast;\n }",
"int getIndividualAttack();",
"@GetMapping(\"/abilities/{id}\")\n @Timed\n public ResponseEntity<Ability> getAbility(@PathVariable String id) {\n log.debug(\"REST request to get Ability : {}\", id);\n Ability ability = null;\n try {\n ability = api.getAbility(id);\n } catch (Throwable e) {\n if (e instanceof ErrorResponse && ((ErrorResponse) e).getCode() == 404) {\n log.debug(\"Ability : {} not found\", id);\n } else {\n throw e;\n }\n }\n\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(ability));\n }",
"public int getItemEnchantability()\r\n {\r\n return this.toolMaterial.getEnchantability();\r\n }",
"public void getEnemyBattleEffects(Enemy enemy) {\n try {\n Ability chosenAbility = enemy.getLastUsableAbility().clone();\n ArrayList<Entity> players = new ArrayList<>();\n players.add(playerInCombat);\n addEffect(enemy.parse(chosenAbility,players,true));\n } catch (InsufficientResourceException ignored) {\n ;\n }\n }",
"public int getItemEnchantability()\n {\n return this.field_77878_bZ.func_78045_a();\n }",
"public Attack getAttack(int cellID) {\n\t\treturn attacks[cellID];\n\t}",
"public int getAttack() {\n return base.getAttack();\n }",
"public Enemy getEnemy(int whichEnemy);",
"public int giveDamage();",
"public int getAttack() { return this.attack; }",
"public void performAbility() { return; }",
"public boolean getAttack(IEntity enemyUnit){\n return tempUnit.getAttack(enemyUnit);\n }",
"int getArmor();",
"@Test\r\n public void GivenAnOrc_WhenCreated_ThenHasNegativeOneCharismaModifier() {\r\n Player orc = getPlayer(RaceType.ORC);\r\n assertThat(orc.getAbilityModifier(AbilityType.CHARISMA), is(-1));\r\n }",
"@Override\n\tpublic int attack( ){\n\t\treturn enemy.attack();\n\t}",
"public int getDamage()\n\t{\n\t\treturn Damage;\n\t}",
"public void ability(AbstractAbility ability) {\n\n logger.info(abilityInfo(map.getCurrentTurnHero(), ability));\n\n if (selectionX != -1 && !playerPerformingMove && !map.enemyPerformingMove()) {\n AbstractCharacter owner = map.getCurrentTurnHero();\n\n // Check range\n if (!(ability.inRange(owner.getX(), owner.getY(), selectionX, selectionY))) {\n logger.info(\"NOT IN RANGE.\");\n toAbilityInfoDialogue(\"NOT IN RANGE.\");\n return;\n }\n \tif (ability.onCooldown()) {\n \t\tlogger.info(\"ABILITY IS ON COOL-DOWN.\");\n toAbilityInfoDialogue(\"ABILITY IS ON COOL-DOWN.\");\n \t\treturn;\n \t}\n if (ability.getCostAP() > ((AbstractHero)owner).getActionPoints()) {\n \tlogger.info(\"NOT ENOUGH ABILITY POINTS.\");\n toAbilityInfoDialogue(\"NOT ENOUGH ABILITY POINTS.\");\n \treturn;\n }\n\n TargetDesignation targetDesignation;\n if (ability.canUseOnPoint()) {\n \ttargetDesignation = TargetDesignation.POINT;\n } else {\n \ttargetDesignation = getTargetDesignation(owner, selectionX, selectionY);\n }\n Thread abilityAnimationThread = new Thread(() -> playerAbilityHandler(owner, ability, targetDesignation));\n try {\n abilityAnimationThread.join();\n abilityAnimationThread.setDaemon(true);\n } catch (InterruptedException e) {\n logger.info(\"AAAAAAAAAAAAAAAAAAAAAAAAAAA\");\n Platform.exit();\n Thread.currentThread().interrupt();\n }\n\n if (targetDesignation == TargetDesignation.FRIEND && ability.canUseOnFriend()) {\n // Friend Character\n abilityAnimationThread.start();\n }\n else if (targetDesignation == TargetDesignation.FOE && ability.canUseOnFoe()) {\n // Foe Character OR Unknown Entity OR Targetable LiveTile\n\n if (!map.getTile(selectionX, selectionY).getEntities().isEmpty()\n &&!(map.getTile(selectionX, selectionY).getEntities().get(0) instanceof Targetable)) {\n logger.info(\"NOT A VALID TARGET.\");\n toAbilityInfoDialogue(\"NOT A VALID TARGET.\");\n return;\n }\n\n if(isMultiplayer()){\n multiplayerGameManager.enableTemporaryBlock();\n multiplayerGameManager.hookAttack(owner, ability, selectionX, selectionY);\n }\n\n abilityAnimationThread.start();\n }\n else if (ability.canUseOnPoint()){\n // Point\n abilityAnimationThread.start();\n }\n }\n gameChanged = true;\n }",
"public int getDamage() {\n return damage;\n }",
"public interface IAttackAbility\n{\n public void attack(Entity target, EntityLivingBase source);\n}",
"interface Ability {\n\n}",
"@Override\n\tpublic L2CharacterAI getAI()\n\t{\n\t\tif (aiCharacter == null)\n\t\t{\n\t\t\tsynchronized (this)\n\t\t\t{\n\t\t\t\tif (aiCharacter == null)\n\t\t\t\t{\n\t\t\t\t\taiCharacter = new L2AttackableAI(new AIAccessor());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn aiCharacter;\n\t}",
"@Override\n public int getEffectiveDamage(Hero hero){\n return (hero.getDex() + hero.getBonusDex()) * 2 + this.damage;\n }",
"public short getBowDamage();",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n return damage_;\n }",
"pb4client.AchievementInfo getAchieveInfo(int index);",
"int getDefensiveMod(ActionType type);",
"int getOffensiveMod(ActionType type);",
"public int getBonus() {\n throw new UnsupportedOperationException(\"TODO: Implement\");\n\n }",
"@Override\r\n\t\tpublic String getAbilityName() {\n\t\t\treturn \"Death\";\r\n\t\t\t\r\n\t\t}",
"public AbilityEffect() {\n\t\tsuper();\n\t}",
"@java.lang.Override\n public int getIndividualAttack() {\n return individualAttack_;\n }",
"@Override\n public double getDefenseAmount() {\n return this.getDefense().getAbilityValue();\n }",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n return damage_;\n }",
"public int getDamage() {\n return damage_;\n }",
"@Test\r\n public void GivenAnOrc_WhenCreated_ThenHasNegativeOneWisdomModifier() {\r\n Player orc = getPlayer(RaceType.ORC);\r\n assertThat(orc.getAbilityModifier(AbilityType.WISDOM), is(-1));\r\n }",
"public int getPotion() {\n return getStat(potion);\n }",
"proto.Achievement getAchievements(int index);",
"@Override\n\tpublic List<Affectation> getAllAffectation() {\n\t\treturn dao.getAllAffectation();\n\t}",
"private static List<AbilityEffect> getEffectsFor(String abilityName) {\n switch (abilityName) {\n case \"Magic Missile\":\n return Collections.singletonList(AbilityEffect.damage(30, 45));\n case \"Heal\":\n return Collections.singletonList(AbilityEffect.healPercentageOfMaxHp(.5));\n case \"Clairvoyance\":\n return Collections.singletonList(AbilityEffect.modifierBundle(Modifiers.farsight(3)));\n case \"Sacrifice\":\n return Collections.singletonList(AbilityEffect.destroyUnit());\n case \"Research\":\n return Collections.singletonList(AbilityEffect.research(75));\n case \"Cone of Flame\":\n return Collections.singletonList(AbilityEffect.damage(45, 60));\n case \"Strengthen\":\n return Collections.singletonList(AbilityEffect.modifierBundle(Modifiers.strengthened(10)));\n case \"Repair\":\n return Collections.singletonList(AbilityEffect.healPercentageOfMaxHp(1.0));\n case \"Toughen\":\n return Collections.singletonList(AbilityEffect.modifierBundle(Modifiers.toughness(10)));\n case \"Quicken\":\n return Collections.singletonList(AbilityEffect.modifierBundle(Modifiers.quickness(3)));\n case \"Cone of Ice\":\n return Arrays.asList(\n AbilityEffect.damage(45, 60), AbilityEffect.modifierBundle(Modifiers.sluggish(1)));\n case \"Cone of Electricity\":\n return Arrays.asList(\n AbilityEffect.damage(45, 60), AbilityEffect.modifierBundle(Modifiers.weakened(5)));\n case \"Mass Heal\":\n return Collections.singletonList(AbilityEffect.healPercentageOfMaxHp(.5));\n case \"Resolution\":\n return Arrays.asList(\n AbilityEffect.healConstantHp(25), AbilityEffect.modifierBundle(Modifiers.tenacity(25)));\n case \"Refresh\":\n return Collections.singletonList(AbilityEffect.refreshUnit());\n case \"Spacial Shift\":\n return Collections.emptyList();\n case \"Cone of Light\":\n return Arrays.asList(\n AbilityEffect.damage(60, 90), AbilityEffect.modifierBundle(Modifiers.blinded(2)));\n case \"Mana Shield\":\n return Arrays.asList(\n AbilityEffect.modifierBundle(Modifiers.shielded(0.25)),\n AbilityEffect.healPercentageOfMaxHp(0.5));\n case \"Levitation\":\n return Collections.singletonList(\n AbilityEffect.modifierBundle(\n new ModifierBundle(\n Modifiers.flight(), Modifiers.farsight(3), Modifiers.quickness(1))));\n case \"Channel\":\n return Collections.singletonList(AbilityEffect.mana(25));\n default:\n throw new RuntimeException(\"Unknown ability name \" + abilityName);\n }\n }",
"public int getEffect(boolean friendly) {\r\n\t\tif (friendly) {\r\n\t\t\treturn balance;\r\n\t\t}\r\n\t\treturn weight - balance;\r\n\t}",
"@java.lang.Override\n public int getIndividualAttack() {\n return individualAttack_;\n }",
"@Override\n\tpublic Ability[] getAbilities() {\n\t\treturn null;\n\t}",
"public Entity getDamageDealer();",
"public void receiveAttack(Character c,Abilities ability) {\n this.applyEffect(ability.getEffects());\n }",
"public short getSiegeWeaponDamage();",
"public boolean isHere(){ return this.piece.isAffected();}",
"int getMana();",
"public int getDamage() {\r\n\t\treturn myDamage;\r\n\t}",
"int getEffect();",
"public int getAttack(){\r\n return attack;\r\n }",
"public interface IAbility<N extends NBTBase> extends INBTSerializable<N> {\n\n\t@interface Ability {\n\n\t\tString id();\n\n\t}\n\n\tString getName();\n\n\tvoid parseMappingArguments(Object[] args, String entry);\n\n\tString[] encodeMappingArguments();\n\n\tvoid onApplicationTo(EntityLivingBase entity);\n\n\tvoid onUpdate(EntityLivingBase entity);\n\n\tvoid onRemovalFrom(EntityLivingBase entity);\n\n\tboolean hasNBT();\n\n\tvoid deserialize(NBTBase nbt);\n\n\t@SideOnly(Side.CLIENT)\n\tvoid renderPost(EntityLivingBase entity);\n\n\tboolean canTakeDamage(DamageSource source, EntityLivingBase entity);\n\n}",
"@Override\n public int damage() {\n int newDamage=criticalStrike();\n return newDamage;\n }",
"@Override\n public int doDamage() {\n if (difficulty <5)\n return damage;\n else \n return damage*2;\n }",
"public int getGetDamage() {\r\n\t\treturn getDamage;\r\n\t}",
"public int getDamage() {\n\t\treturn (int) (Math.random() * damageVariance) + damage;\n\t}",
"public List<Achievement> getAchievements()\n\t{\n\t\treturn achievements;\n\t}",
"public Achievment getAchievment(int id) {\r\n\t\tAchievment achiev = null;\r\n\t\tDB db = new DB();\r\n\t\tachiev = (Achievment) db.session.get(Achievment.class, id);\r\n\t\treturn achiev;\r\n\t}",
"public Pokemon getEnemyPokemon()\r\n {\r\n return enemyPokemon;\r\n }",
"public int getDamage () {\n\t\treturn (this.puissance + stuff.getDegat());\n\t}",
"public Enemy getEnemy(){\n return enemy;\n }",
"public void ability(LevelManager lm){\n\n int prevDamage = lm.player.getDamage();\n int newDamage = prevDamage+12;\n lm.player.setDamage(newDamage);\n }",
"public int getDamage() {\n \t\treturn damage + ((int) 0.5*level);\n \t}",
"int getBelongToPlayer();",
"public int getDamage() {\n\t\treturn this.damage;\n\t}",
"public void abilityTwo() {\n if(map.getCurrentTurnHero().getAbilities().size() < 2){\n return;\n }\n ability(map.getCurrentTurnHero().getAbilities().get(1));\n }",
"public CallAppAbilityInfo getInfo() {\n return this.mInfo;\n }",
"public int getAttack() {\r\n\t\treturn attack;\r\n\t}",
"@Override\n public Enemy getEnemyPlayer() {\n return batMan.getEnemyPlayer();\n }",
"PreventionEffectData preventDamage(GameEvent damageEvent, Ability source, Game game, int amountToPrevent);",
"public ArrayList<Effect> getEnemyEffects(int index){\n return enemyController.seeEnemyEffect(index);\n }"
] | [
"0.67269295",
"0.62749356",
"0.6039876",
"0.5973703",
"0.5921558",
"0.5717288",
"0.56784785",
"0.55884904",
"0.55884904",
"0.55884904",
"0.55884904",
"0.55884904",
"0.5549514",
"0.55474937",
"0.54896593",
"0.54749346",
"0.54736847",
"0.546263",
"0.5447455",
"0.5420236",
"0.5352984",
"0.53363854",
"0.53009796",
"0.52741194",
"0.52588487",
"0.52530915",
"0.52247965",
"0.5191266",
"0.5150591",
"0.5142762",
"0.51418275",
"0.51273173",
"0.5125246",
"0.51244104",
"0.51062137",
"0.51034874",
"0.5063743",
"0.50623673",
"0.5056403",
"0.5048446",
"0.5047455",
"0.5044922",
"0.5042936",
"0.50351673",
"0.5025955",
"0.5024425",
"0.5015828",
"0.5015828",
"0.5015828",
"0.5015828",
"0.5015828",
"0.5012566",
"0.50048333",
"0.50013274",
"0.50005484",
"0.49971372",
"0.49940553",
"0.49863747",
"0.4985842",
"0.49840757",
"0.49840757",
"0.49840757",
"0.49840757",
"0.49840757",
"0.4983039",
"0.49826267",
"0.49793732",
"0.49782526",
"0.49722403",
"0.49654093",
"0.49645072",
"0.49585328",
"0.49414322",
"0.49283656",
"0.49261332",
"0.49204168",
"0.49195665",
"0.4919179",
"0.49172652",
"0.49134246",
"0.49001378",
"0.48986906",
"0.48953062",
"0.48925734",
"0.48909393",
"0.4888904",
"0.4870238",
"0.48695487",
"0.48684376",
"0.4857897",
"0.4857775",
"0.48536167",
"0.48399344",
"0.48394805",
"0.48382646",
"0.48116308",
"0.48104772",
"0.48085478",
"0.48071778",
"0.4805284"
] | 0.5675975 | 7 |
/ Begin Protected Region [[user]] / End Protected Region [[user]] | private VarietyPackage() {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@BeforeGroups(groups = \"REGION_ADMIN\")\n protected void loginRegionAdmin() throws Exception {\n login(\"region@eos.cz\", \"region\");\n }",
"void tempInRegionUI();",
"private void t2() {\n // read from a super region, write to a sub region: keep both\n readProtected();\n writeDefault();\n }",
"private void t3() {\n // write to a super region, read from a subregion: only keep write\n writeProtected();\n readDefault();\n }",
"@Override\n\tpublic void covidProtection() {\n\t\tSystem.out.println(\"FH---covid protection\");\n\t}",
"public void authenticationProcedure(){\n\t\tthrow new UnsupportedOperationException(\"TODO: auto-generated method stub\");\r\n\t}",
"@Override\n public void beforePhase(PhaseEvent pe) {\n\n AccessController accessController = (AccessController) FacesUtils.getManagedObject(\"access\");\n accessController.doSecurity();\n }",
"private void loggedInUser() {\n\t\t\n\t}",
"private void authorize() {\r\n\r\n\t}",
"private boolean isInstructor(User user)\r\n {\r\n if (LOG.isDebugEnabled())\r\n {\r\n LOG.debug(\"isInstructor(User \" + user + \")\");\r\n }\r\n if (user != null)\r\n return SecurityService.unlock(user, \"site.upd\", getContextSiteId());\r\n else\r\n return false;\r\n }",
"Region region();",
"Region region();",
"Region region();",
"Region region();",
"public void setRegion(String region) {\n this.region = region;\n }",
"public void setRegion(String region) {\r\n this.region = region;\r\n }",
"public void setRegion(String region) {\r\n this.region = region;\r\n }",
"public void setRegion(String region) {\r\n this.region = region;\r\n }",
"public void setRegion(String region) {\n this.region = region;\n }",
"boolean blockUser(User user);",
"public void setRegion(String region);",
"@Override\n protected boolean isCalledForCurrentUserLocked() {\n return true;\n }",
"private void t1() {\n // read and write to the same region: just want the write effect\n writeProtected();\n readProtected();\n }",
"public void setProtected()\n {\n ensureLoaded();\n m_flags.setProtected();\n setModified(true);\n }",
"public boolean isProtected() {\n\t\treturn isProtected;\n\t}",
"public synchronized static void setInsideSecureLocation(boolean flag){\n editor.putBoolean(IN_REGION, flag);\n editor.commit();\n }",
"public void setRegion(String region) {\n this.region = region;\n }",
"public void setRegion(String region) {\n this.region = region;\n }",
"public void setRegion(String region) {\n this.region = region;\n }",
"public void setRegion(Region region) {\n this.region = region;\n }",
"public SuperRegionAccessBean () {\n super();\n }",
"boolean isProtected(String name);",
"public XnRegion sharedRegion(TracePosition trace) {\n\tthrow new SubclassResponsibilityException();\n/*\nudanax-top.st:9681:OrglRoot methodsFor: 'accessing'!\n{XnRegion} sharedRegion: trace {TracePosition}\n\t\"Return a region for all the stuff in this orgl that can backfollow to trace.\"\n\tself subclassResponsibility!\n*/\n}",
"public void setRegion(String region) {\n this.region = region;\n }",
"public void isAllowed(String user) {\n \r\n }",
"public ProtectedRegion regionFromSelection(String regionName) {\n\t Region selection;\n\t LocalSession localSession = this.we.getSession(this.player);\n\t com.sk89q.worldedit.world.World wrappedWorld = BukkitAdapter.adapt(this.player.getWorld());\n\t try {\n\t selection = localSession.getSelection(wrappedWorld);\n\t if (selection == null) {\n\t throw new IncompleteRegionException();\n\t }\n\t } catch (IncompleteRegionException e) {\n\t this.player.sendMessage(ChatColor.RED + \"You must select a region first!\");\n\t return null;\n\t\t}\n\t\t\n\t return new ProtectedCuboidRegion(regionName, selection.getMinimumPoint(), selection.getMaximumPoint());\n\t}",
"@Override\n\tpublic void credite() {\n\t\t\n\t}",
"@Override\n\t\tpublic void onBlock(User arg0, User arg1) {\n\t\t\t\n\t\t}",
"public void setProtected(boolean isProtected) {\n\t\tthis.isProtected = isProtected;\n\t}",
"@Override\r\n\tprotected void verificaUtentePrivilegiato() {\n\r\n\t}",
"public boolean isProtected()\n {\n ensureLoaded();\n return m_flags.isProtected();\n }",
"@Override\r\n\tpublic void login_interviewer() {\n\t\trender(\"interviewer/login.jsp\");\r\n\t}",
"public void flagUser() {\n\t\tsuper.flagUser();\n\t}",
"public void setItuRegion(int param) {\n if (param == java.lang.Integer.MIN_VALUE) {\n localItuRegionTracker = false;\n } else {\n localItuRegionTracker = true;\n }\n this.localItuRegion = param;\n }",
"public void setSuperregion(com.hps.july.persistence.SuperRegion arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().setSuperregion(arg0);\n }",
"String signingRegion();",
"@Override\n\tpublic void onBlock(User source, User blockedUser) {\n\n\t}",
"public String getRegion() {\r\n return region;\r\n }",
"public String getRegion() {\r\n return region;\r\n }",
"public String getRegion() {\r\n return region;\r\n }",
"IRegion getRegion();",
"public void v_Verify_Guest4_Hidden(){\n\t}",
"public ShowRegionElements getShowRegionAccess() {\n\t\treturn pShowRegion;\n\t}",
"public abstract boolean isRestricted();",
"void setUserLocked(boolean b);",
"public String getRegion() {\n return region;\n }",
"public String getRegion() {\n return region;\n }",
"public void viewUser() {\n\t\tsuper.viewUser();\n\t}",
"private void formWindowClosed(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosed\n this.principal.setEnabled(true);\n }",
"void enableSecurity();",
"public abstract void onFirstUserVisible();",
"public SuperRegionAccAccessBean () {\n super();\n }",
"public String getRegion() {\n return region;\n }",
"public String getRegion() {\n return region;\n }",
"public String getRegion() {\n return region;\n }",
"public String getRegion() {\n return region;\n }",
"public String getRegion() {\n return region;\n }",
"@Override\n public void visit(PublicArea s) {}",
"public void LogIn() {\n\t\t\r\n\t}",
"public String getRegion() {\n return this.region;\n }",
"public String getRegion() {\n return region;\n }",
"public int getItuRegion() {\n return localItuRegion;\n }",
"public boolean isProtected() {\n HaFlow haFlow = getHaFlow();\n return haFlow != null && haFlow.isProtectedPath(getHaPathId());\n }",
"@Override\r\n\tpublic void login_student() {\n\t\trender(\"student/login.jsp\");\r\n\t}",
"public void v_Verify_Guest2_Hidden(){\n\t}",
"private static void oneUserExample()\t{\n\t}",
"@Override\n public void onMapRegionChangeStarted(SKCoordinateRegion mapRegion) {\n\n }",
"public Region getRegion() {\n return region;\n }",
"public void Usuarios() {\n\t\r\n}",
"public void v_Verify_Guest3_Hidden(){\n\t}",
"public void authorizeTransaction() {}",
"@Test\n public void regionTest() {\n // TODO: test region\n }",
"public static void main(String args[]) {\n ProtectedClass p = new ProtectedClass();\n p.display();\n }",
"private void signIn() {\n }",
"public ProtectedCuboidRegion saveRegion() {\n\t\t\n\t\tcom.sk89q.worldedit.BlockVector pos1 = \n\t\t\t\tnew com.sk89q.worldedit.BlockVector(position1.getBlockX(), position1.getBlockY(), position1.getBlockZ());\n\t\tcom.sk89q.worldedit.BlockVector pos2 =\n\t\t\t\tnew com.sk89q.worldedit.BlockVector(position2.getBlockX(), position2.getBlockY(), position2.getBlockZ());\n\t\t\n\t\tplayer.sendMessage(\"\" + name + position1.toString() + position2.toString());\n\t\t\n\t\tProtectedCuboidRegion newPlotRegion = new ProtectedCuboidRegion(name, pos1, pos2);\n\t\t\n\t\tRegionManager regionManager = Mcc.worldGuard.getRegionManager(player.getWorld());\n\t\tregionManager.addRegion(newPlotRegion);\n\t\tnewPlotRegion = (ProtectedCuboidRegion) regionManager.getRegion(name);\n\t\t\n\t\tnewPlotRegion.setPriority(2);\n\t\ttry {\n\t\t\tregionManager.save();\n\t\t} catch (ProtectionDatabaseException e) {\n\t\t\tplayer.sendMessage(ChatColor.RED + \"Critical World Guard error! Notify Funonly\");\n\t\t}\n\t\t\n\t\treturn newPlotRegion;\n\t}",
"public void v_Verify_Guest5_Hidden(){\n\t}",
"public Vector findViewBySuperRegion(\n Integer supregid,\n String login,\n Boolean isAdmin)\n throws Exception {\n return findViewBySuperRegion(\n supregid,\n login,\n isAdmin,\n SearchConstants.SEARCH_ALL);\n}",
"public void secondarySetSuperregion(com.hps.july.persistence.SuperRegion arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondarySetSuperregion(arg0);\n }",
"@Override\r\n protected void mayProceed() throws InsufficientPermissionException {\n if (ub.isSysAdmin() || ub.isTechAdmin()) {\r\n return;\r\n }\r\n// if (currentRole.getRole().equals(Role.STUDYDIRECTOR) || currentRole.getRole().equals(Role.COORDINATOR)) {// ?\r\n// ?\r\n// return;\r\n// }\r\n\r\n addPageMessage(respage.getString(\"no_have_correct_privilege_current_study\") + respage.getString(\"change_study_contact_sysadmin\"));\r\n throw new InsufficientPermissionException(Page.MENU_SERVLET, resexception.getString(\"not_allowed_access_extract_data_servlet\"), \"1\");// TODO\r\n // above copied from create dataset servlet, needs to be changed to\r\n // allow only admin-level users\r\n\r\n }",
"public void grantAdministrate(User user) throws ServiceException{\n }",
"public interface AccessControlled {\r\n\r\n}",
"@Override\n \tpublic SipApplicationRoutingRegion getRegion() {\n \t\treturn null;\n \t}",
"@Override\n\tpublic void loginUser() {\n\t\t\n\t}",
"public void setLiveRegion(int mode) {\n/* 1228 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Override\r\n\tpublic String Land() {\n\t\treturn \"SuperMan I Land\";\r\n\t}",
"public ProtectedRegion createRegion(UUID owner, Location location, Material material)\n\t{\n\t\t// Generate new id for the region\n\t\tUUID id = UUID.randomUUID();\n\t\treturn createRegion(id, owner, location, material);\n\t}",
"@AutoEscape\n public String getRegion();",
"protected abstract void runPrivate();",
"public XnRegion simpleDomain() {\n\tthrow new SubclassResponsibilityException();\n/*\nudanax-top.st:9686:OrglRoot methodsFor: 'accessing'!\n{XnRegion} simpleDomain\n\t\"Return a simple region that encloses the domain of the receiver.\"\n\t\n\tself subclassResponsibility!\n*/\n}",
"public synchronized static boolean isInsideSecureLocation() {\n return prefs.getBoolean(IN_REGION, false);\n }",
"public static void main(String[] args) {\n\t\tExercise15 ex15 = new Exercise15();\n\t\tex15.callProtected();\n\t\t\n\t}"
] | [
"0.572606",
"0.5661151",
"0.5541952",
"0.5534831",
"0.53766334",
"0.53282255",
"0.53265214",
"0.53100324",
"0.53019756",
"0.5284465",
"0.5239375",
"0.5239375",
"0.5239375",
"0.5239375",
"0.52314025",
"0.52270883",
"0.52270883",
"0.52270883",
"0.5223046",
"0.5218256",
"0.52155364",
"0.5209587",
"0.5190932",
"0.5157847",
"0.51475596",
"0.5144815",
"0.51361054",
"0.51361054",
"0.51361054",
"0.5118325",
"0.5107851",
"0.5103092",
"0.50863665",
"0.5076972",
"0.50534004",
"0.49991554",
"0.49853802",
"0.49852082",
"0.4981365",
"0.4980984",
"0.4954884",
"0.49420857",
"0.49276632",
"0.49260598",
"0.4919496",
"0.49018198",
"0.48848954",
"0.48782504",
"0.48782504",
"0.48782504",
"0.48729667",
"0.48720053",
"0.48612303",
"0.48536506",
"0.48512",
"0.48404092",
"0.48404092",
"0.48295355",
"0.48274285",
"0.48215148",
"0.48099253",
"0.4801642",
"0.47909254",
"0.47909254",
"0.47909254",
"0.47909254",
"0.47909254",
"0.47902647",
"0.47786915",
"0.4773429",
"0.4772169",
"0.47591302",
"0.47588968",
"0.47539136",
"0.47470465",
"0.47414795",
"0.47385406",
"0.47375718",
"0.47258785",
"0.4724376",
"0.47193265",
"0.4706073",
"0.46949923",
"0.46940118",
"0.46880943",
"0.46712378",
"0.46544522",
"0.4649544",
"0.46474174",
"0.46348625",
"0.46342492",
"0.46326634",
"0.46281004",
"0.46159124",
"0.46125844",
"0.4612307",
"0.4608685",
"0.46078354",
"0.46046582",
"0.46039623",
"0.46033084"
] | 0.0 | -1 |
Spring Data JPA repository for the AtApplicantAcc entity. | @SuppressWarnings("unused")
@Repository
public interface AtApplicantAccRepository extends JpaRepository<AtApplicantAcc, Long> {
List<AtApplicantAcc> findByIdApplicantId(Long id);
AtApplicantAcc findById(Long id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface AtApplicantsSchoolsRepository extends JpaRepository<AtApplicantsSchools, Long> {\n List<AtApplicantsSchools> findByIdApplicantId(Long id);\n AtApplicantsSchools findById(Long id);\n}",
"List<ApplicantDetailsResponse> getAllApplicants() throws ServiceException;",
"@Transactional\n\t@Override\n\tpublic List<ApplicantModel> viewAllApplicants() {\n\t\treturn applicantRepo.findAll().stream().map(course -> parser.parse(course))\n\t\t\t\t.collect(Collectors.toList());\n\t}",
"public interface ApplianceRepository extends JpaRepository<Appliance, Long> {\n\n}",
"@GetMapping(\"applicants\")\n public List<Applicant> readAll() {\n return applicantService.getAll();\n }",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface ApplicantPersonalInfoRepository extends JpaRepository<ApplicantPersonalInfo, Long>, JpaSpecificationExecutor<ApplicantPersonalInfo> {\n}",
"public interface AudienceRepository extends JpaRepository<Audience,Long> {\n\n}",
"@Repository\npublic interface AtletaRepository extends JpaRepository<Atleta, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface ConfigAclRepository extends JpaRepository<ConfigAcl, Long> {\n\n}",
"@Repository\npublic interface AuthorityRepository extends JpaRepository<Authority, String>{\n}",
"@Repository\npublic interface AuthorityRepository extends JpaRepository<Authority, String> {\n\n}",
"public interface IAcquestRepository {\n //createAcquest is used to create a new acquest in database\n boolean createAcquest(Acquest acquest);\n //getAcquest is used for getting selected acquest from database\n Acquest getAcquest(int Acquest_id);\n //getAllAcquests is used to get all acquests from database\n List<Acquest> getAllAcquests();\n}",
"public interface AuthorityRepository extends JpaRepository<Authority, String> {\n}",
"public interface AuthorityRepository extends JpaRepository<Authority, String> {\n}",
"public interface AuthorityRepository extends JpaRepository<Authority, String> {\n}",
"public interface AuthorityRepository extends JpaRepository<Authority, String> {\n}",
"public interface AuthorityRepository extends JpaRepository<Authority, String> {\n}",
"public interface AuthorityRepository extends JpaRepository<Authority, String> {\n}",
"public interface AuthorityRepository extends JpaRepository<Authority, String> {\n}",
"public interface AuthorityRepository extends JpaRepository<Authority, String> {\n}",
"@Repository\npublic interface MedicalAidRepository extends JpaRepository<MedicalAid, String> {\n\n}",
"public interface ApplicationFollowUpRepository extends CrudRepository<ApplicationFollowUp, String> {\n ApplicationFollowUp findByapplicationno(String applicationno);\n}",
"@Repository\r\npublic interface AccounterTypeService extends JpaRepository<AccounterType,Long>{\r\n AccounterType getByKind(String kind);\r\n}",
"@Repository\npublic interface AppointmentRepo extends JpaRepository<AppointmentEntity,Integer>{\n\t@Query(\"select a from AppointmentEntity a where a.testId=:tid and a.dateTime=:dt\")\n\tpublic AppointmentEntity getAppointmentBytestIdAndDateTime(@Param(\"dt\") String dateTime, @Param(\"tid\") String testId);\n\t\n\t@Query(\"FROM AppointmentEntity where centreId =:cid\")\n\tpublic List<AppointmentEntity> findAll(@Param(\"cid\") String centreId);\n\t\n\t@Query(\"FROM AppointmentEntity where userId =:uid\")\n\tpublic List<AppointmentEntity> findAllByUserId(@Param(\"uid\") String userId);\n\t\n\t\n\n\n\n\t\n}",
"@Repository\npublic interface AlliesRepository extends CrudRepository<AlliesDO, Long> {\n\n}",
"@Repository\r\npublic interface AssignmentRepository extends CrudRepository<Assignment, String> {\r\n\r\n}",
"public interface CustomerAuditRepository extends JpaRepository<CustomerAudit, Long>{\n\n}",
"@Component\npublic interface AuthorityJpaRepository extends JpaRepository<Authority, Long> {\n\n}",
"public interface ApplicantService {\r\n\r\n\t/**\r\n\t * Adds a new application or updates an existing application.\r\n\t * \r\n\t * @param addApplicantRequest\r\n\t * @return\r\n\t * @throws ServiceException\r\n\t */\r\n\tApplicantDetailsResponse addOrUpdateApplicant(AddApplicantRequest addApplicantRequest) throws ServiceException;\r\n\r\n\t/**\r\n\t * Gets applicant details along with application details by applicant id.\r\n\t * \r\n\t * @param employeeId\r\n\t * @return\r\n\t * @throws ServiceException\r\n\t */\r\n\tApplicantDetailsResponse getApplicantDetailsById(Integer employeeId) throws ServiceException;\r\n\r\n\t/**\r\n\t * Deletes applicant by its given applicant id.\r\n\t * \r\n\t * @param applicantId\r\n\t */\r\n\tvoid deleteApplicantById(Integer applicantId);\r\n\r\n\t/**\r\n\t * Gets all applicants present.\r\n\t * \r\n\t * @return\r\n\t * @throws ServiceException\r\n\t */\r\n\tList<ApplicantDetailsResponse> getAllApplicants() throws ServiceException;\r\n\r\n\t/**\r\n\t * Gets all applicants by given years of experience and skill.\r\n\t * \r\n\t * @param skill\r\n\t * @param yearsOfExperience\r\n\t * @return\r\n\t * @throws ServiceException\r\n\t */\r\n\tList<ApplicantDetailsResponse> getAllApplicantsByYearsOfExperienceAndSkill(String skill, Integer yearsOfExperience)\r\n\t\t\tthrows ServiceException;\r\n\r\n\t/**\r\n\t * Gets all jobs by given years of experience and skill.\r\n\t * \r\n\t * @param skill\r\n\t * @param yearsOfExperience\r\n\t * @return\r\n\t * @throws ServiceException\r\n\t */\r\n\tList<JobDetailsResponse> getAllJobByYearsOfExperienceAndSkill(String skill, Integer yearsOfExperience)\r\n\t\t\tthrows ServiceException;\r\n\r\n\t/**\r\n\t * Enables applicant to apply for the given job id.\r\n\t * \r\n\t * @param applicantId\r\n\t * @param jobId\r\n\t * @return\r\n\t * @throws ServiceException\r\n\t */\r\n\tApplicantDetailsResponse applyJob(Integer applicantId, Integer jobId) throws ServiceException;\r\n\r\n}",
"@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<ApplicantEntity> getApplicantList() {\n\t\tList<ApplicantEntity> applicantList = new ArrayList<>();\n\t\tStringBuilder builder = new StringBuilder(\"from ApplicantEntity\");\n\t\tQuery statement = entityManager.createQuery(builder.toString());\n\t\tapplicantList = statement.getResultList();\n\t\treturn applicantList;\n\t}",
"public interface AccountRepository extends JpaRepository<Account, Integer>{\n}",
"@Repository(\"emailLogRepository\")\npublic interface EmailLogRepository extends JpaRepository<EmailLogDB, Integer>{\n}",
"@Repository\npublic interface AppUserRepository extends CrudRepository<AppUser, Long> {\n\n AppUser findByUsername(String username);\n}",
"public interface ConferintaRepository extends AppRepository<Conferinta,Long>{\n\n\n}",
"public interface AccountRepository extends JpaRepository<Account, String> {\n}",
"public interface CdTInboundAuthRepository extends JpaRepository<CdTInboundAuthEntity, Long> {\n\n}",
"public interface AccountRoleRepository extends CrudRepository<AccountRole, Long> {\n\n List<AccountRole> findByAccountId(Long accountId);\n\n}",
"ApplicantDetailsResponse addOrUpdateApplicant(AddApplicantRequest addApplicantRequest) throws ServiceException;",
"public interface AclOrgService {\n\n /**\n * 根据ID查询出部门\n */\n AclOrg findById(Long id);\n\n /**\n * 查询出所有部门\n */\n List<AclOrg> findAll();\n\n /**\n * 查询处所有父部门\n */\n List<AclOrg> findAllParent();\n\n /**\n * 保存部门\n */\n @PreAuthorize(\"hasAuthority('ORG_SAVE')\")\n AclOrg save(AclOrg aclOrg);\n\n /**\n * 根据ID删除部门\n */\n @PreAuthorize(\"hasAuthority('ORG_DELETE')\")\n void del(Long id);\n\n /**\n * 分页列表\n */\n @PreAuthorize(\"hasAuthority('ORG_LIST')\")\n Page<AclOrg> selectPageList(int pageNumber, int pageSize, Map<Object, Object> filter);\n}",
"@Repository\npublic interface IPaymentRepository extends JpaRepository<Payment, Long> {\n}",
"public interface AppExtraDao extends JpaRepository<AppExtra,Long> {\n\n}",
"public interface ActionRepository extends JpaRepository<Action, Integer> {\n\n}",
"public interface UserBillingRepository extends CrudRepository<UserBilling, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface CourrierArriveRepository extends JpaRepository<CourrierArrive, Long> {\n\n}",
"public interface PaymentContextRepository extends CrudRepository<PaymentContext, Long> {\n\n}",
"@Repository\npublic interface PaymentRepository extends CrudRepository<Payment, UUID> {\n}",
"@Repository\npublic interface UsersIdentityRepository extends JpaRepository<UsersIdentity, Long> {\n}",
"public interface OfferingRepository extends JpaRepository<Offering, Long>{\r\n\r\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface ChipsAdminRepository extends JpaRepository<ChipsAdmin, Long> {}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface CaptureCollegeRepository extends JpaRepository<CaptureCollege, Long> {\n\n}",
"@Repository\npublic interface PaymentRepository extends CrudRepository<Payment, Long> {\n\n public List<Payment> findByOrganizationId(Long orgId);\n}",
"public interface AuditoriumRepository {\n Collection<Auditorium> getAll();\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface AllergyRepository extends JpaRepository<Allergy, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\n@JaversSpringDataAuditable\npublic interface ReservoirCapacityRepository extends JpaRepository<ReservoirCapacity, Long> {\n\n}",
"public interface AcademicProfileRepo extends CrudRepository<AcademicProfile, Integer> {\n AcademicProfile findBySchoolId(String schoolId);\n}",
"@Override\r\n\tpublic List<AppAccount> findAllAppAccounts() {\r\n\t\tlogger.debug(\"findAllAppAccounts() method started\");\r\n\t\tList<AppAccount> models = new ArrayList<AppAccount>();\r\n\t\ttry {\r\n\t\t\t// call Repository method\r\n\t\t\tList<AppAccountEntity> entities = appAccRepository.findAll();\r\n\r\n\t\t\tif (entities.isEmpty()) {\r\n\t\t\t\tlogger.warn(\"***No Accounts found in Application****\");\r\n\t\t\t} else {\r\n\t\t\t\t// convert Entities to models\r\n\t\t\t\tfor (AppAccountEntity entity : entities) {\r\n\t\t\t\t\tAppAccount model = new AppAccount();\r\n\t\t\t\t\tBeanUtils.copyProperties(entity, model);\r\n\t\t\t\t\tmodels.add(model);\r\n\t\t\t\t}\r\n\t\t\t\tlogger.info(\"All Accounts details loaded successfully\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"Exception occured in findAllAppAccounts()::\" + e.getMessage());\r\n\t\t}\r\n\t\tlogger.debug(\"findAllAppAccounts() method ended\");\r\n\t\treturn models;\r\n\t}",
"public interface AppUserRepository extends JpaRepository<AppUser, Integer> {\n AppUser findOneByUsername(String username);\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface AbilityRepository extends AbilityRepositoryQuery, JpaRepository<Ability, Long> {\n\n}",
"public Account getAccountByAccountNo(int accNo) {\n Account account = accountRepository.findByAccountNo(accNo);\n return account;\n }",
"@Transactional(readOnly = true)\npublic interface AccountRepository extends JpaRepository<Account, Long> {\n\n Optional<Account> findByEmail(String email);\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface SlackAppRepository extends JpaRepository<SlackApp, Long> {\n\n}",
"public interface AppUsersRepositoryInterface extends CrudRepository<AppUsers, Integer> {\n @Query(value=\"Select user_id, userpassword, firstname, lastname, userrole, useremail, newuser from app_users where useremail =?1\", nativeQuery = true)\n AppUsers findByEmail(String email);\n\n}",
"@Repository\npublic interface ContactRepository extends JpaRepository<Contact, Long> {\n}",
"@Repository\npublic interface ContactInformationDAO extends JpaRepository<Contact, Long> {\n\n}",
"public interface AdCreativeRespository extends JpaRepository<AdCreative,Long> {\n\n}",
"public interface UserAccService {\r\n//\tPasswordResetToken getPasswordResetToken(final String token);\r\n//\t\r\n//\tvoid createPasswordResetTokenForUser(final UserAcc userAcc, final String token);\r\n//\t\r\n//\tUserAcc findByUsername(String username);\r\n//\t\r\n//\tUserAcc findByEmail (String email);\r\n//\t\r\n//\tUserAcc findById(Long id);\r\n//\t\r\n//\tUserAcc createUser(UserAcc userAcc, Set<UserRole> userRoles) throws Exception;\r\n//\t\r\n//\tUserAcc save(UserAcc userAcc);\r\n//\t\r\n//\tvoid updateUserBilling(UserBilling userBilling, UserPayment userPayment, UserAcc userAcc);\r\n//\t\r\n//\tvoid updateUserShipping(UserShipping userShipping, UserAcc userAcc);\r\n//\t\r\n//\tvoid setUserAccDefaultPayment(Long userPaymentId, UserAcc userAcc);\r\n//\t\r\n//\tvoid setUserAccDefaultShipping(Long userShippingId, UserAcc userAcc);\r\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface PeopleRoleUserMappingRepository extends JpaRepository<PeopleRoleUserMapping,Long> {\n \n}",
"ApplicantDetailsResponse getApplicantDetailsById(Integer employeeId) throws ServiceException;",
"public interface AnnouncementStatusRepository extends CrudRepository<AnnouncementStatus, Integer>{\n\tpublic AnnouncementStatus findById(int id);\n\tpublic List<AnnouncementStatus> getAnnouncementStatusById(int id);\n}",
"@SuppressWarnings(\"unused\")\n@Repository\n@JaversSpringDataAuditable\n\npublic interface SellContractCustomerRepository extends JpaRepository<SellContractCustomer, Long> {\n\n SellContractCustomer findByCustomer_Id(Long customerId);\n\n List<SellContractCustomer> findAllBySellContract_Id(Long sellContractId);\n\n}",
"public interface ContactRepository extends JpaRepository<Contact, Long> {\n\n}",
"public interface AuthorityRepository extends JpaRepository<Authority, String> {\n\n Authority findByName(String name);\n\n}",
"public interface PreventiveActionRepository extends CrudRepository<PreventiveAction, Long> {\r\n\r\n}",
"@Transactional\n\t@Override\n\tpublic ApplicantModel viewApplicant(Long applicantId) {\n\t\treturn parser.parse(applicantRepo.findById(applicantId).orElse(null));\n\t}",
"@Override\n\tprotected BaseRepository<ConsuApply> getBaseRepository() {\n\t\treturn consuApplyDao;\n\t}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface ListingMailRepository extends JpaRepository<ListingMail, Long> {}",
"@Transactional(readOnly = true)\n\t@Override\n\tpublic List<Object[]> getApplicants() {\n\t\treturn dao.getApplicants();\n\t}",
"public interface GoalRepository extends JpaRepository<Goal,Long> {\n\n}",
"public interface AdUnitDistrictRepository extends JpaRepository<AdUnitDistrict, Long> {\n\n \n}",
"@RequestMapping(value = \"/accompagnants/getAll\", method = RequestMethod.GET, headers = \"Accept=application/json\")\r\n\tpublic List<Accompagnant> getAllAccompagnants() {\r\n\t\tList<Accompagnant> listeAccompagnants = accompagnantService.getAllAccompagnant();\r\n\t\treturn listeAccompagnants;\r\n\t}",
"@Repository\npublic interface PersonaRepository extends JpaRepository<Persona, Integer> {\n \n}",
"public interface AdditionRepository extends CrudRepository<Addition, String> {\r\n\r\n}",
"public interface EmpSubAppraiseRepository extends IRepository<EmpSubAppraise,Long> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface ShipmentActivityRepository extends JpaRepository<ShipmentActivity, Long> {}",
"public interface RoleRepository extends JpaRepository<Role, Long>{\n}",
"public interface MeetingRepository extends JpaRepository<Meeting, Long> {\n}",
"@Repository\npublic interface RoleRepository extends JpaRepository<Role, Long> {\n}",
"@Repository\npublic interface AccountRepo extends JpaRepository<Account, Long> {\n Account findByEmail(String email);\n\n Account findByUsername(String username);\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface FormulaireConsentementRepository extends JpaRepository<FormulaireConsentement, Long> {\n\n}",
"public interface SubscriptionRepository extends CrudRepository<Subscription, Long> {\n\n}",
"@Repository(value = \"competitionRepository\")\ninterface CompetitionRepository extends JpaRepository<CompetitionModel, Long> {\n\n}",
"public interface ShopperPersonRepository extends CrudRepository<ShopperPerson, Long> {\n}",
"public interface RoleRepository extends CrudRepository<Role, Long> {\n}",
"@Repository\npublic interface RepositoryOrgTaskTracker extends JpaRepository<OrgTaskTracker, Integer>{\n}",
"@Repository\npublic interface AdminRepository extends JpaRepository<Admin, String> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface BusinessAccountRepository extends JpaRepository<BusinessAccount, Long> {\n\n}",
"@Repository\npublic interface UserRepository extends JpaRepository<User,Long>{\n public User findByAccountId(String accountId);\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface SocialContactRepository extends JpaRepository<SocialContact, Long> {\n\n}",
"public Account create(CheckingAccDto checkingAccDto) {\n CheckingAcc checkingAcc;\n Optional<AccountHolder> accountHolder = accountHolderRepository.findById(checkingAccDto.getPrimaryOwnerId());\n if (accountHolder.isPresent()){\n if(Utils.calculateYears(accountHolder.get().getDateOfBirth())<24){\n StudentCheckingAcc studentCheckingAcc = new StudentCheckingAcc(\n accountHolder.get(),\n new Money(checkingAccDto.getBalance()),\n checkingAccDto.getSecretKey());\n if (checkingAccDto.getSecondaryOwnerId() != null){\n Optional<AccountHolder> secondaryOwner = accountHolderRepository.findById(checkingAccDto.getSecondaryOwnerId());\n if (secondaryOwner.isPresent()){\n studentCheckingAcc.setSecondaryOwner(secondaryOwner.get());\n }\n }\n return studentCheckingAccRepository.save(studentCheckingAcc);\n } else {\n checkingAcc = new CheckingAcc (accountHolder.get(),\n new Money(checkingAccDto.getBalance()),\n checkingAccDto.getSecretKey());\n if (checkingAccDto.getSecondaryOwnerId() != null){\n Optional<AccountHolder> secondaryOwner = accountHolderRepository.findById(checkingAccDto.getSecondaryOwnerId());\n if (secondaryOwner.isPresent()){\n checkingAcc.setSecondaryOwner(secondaryOwner.get());\n }\n }\n return checkingAccRepository.save(checkingAcc);\n }\n } else {\n throw new ResponseStatusException(HttpStatus.NOT_FOUND, \"Primary owner not found\");\n }\n }",
"public interface RolesRepository extends JpaRepository<RolesEntity, Long> {\n}"
] | [
"0.6500802",
"0.5931544",
"0.5835854",
"0.58022785",
"0.5720909",
"0.56979764",
"0.56847036",
"0.5628011",
"0.5597075",
"0.5574721",
"0.5561313",
"0.5533427",
"0.55125976",
"0.55125976",
"0.55125976",
"0.55125976",
"0.55125976",
"0.55125976",
"0.55125976",
"0.55125976",
"0.54568183",
"0.54425645",
"0.54251075",
"0.5406655",
"0.53959984",
"0.5392231",
"0.5336183",
"0.53108686",
"0.5287412",
"0.5281179",
"0.5262817",
"0.5260068",
"0.5258373",
"0.52305967",
"0.5227886",
"0.522627",
"0.5221477",
"0.52140945",
"0.52135396",
"0.52009296",
"0.51998967",
"0.51842767",
"0.5183909",
"0.5178549",
"0.51772815",
"0.516967",
"0.5169569",
"0.51527894",
"0.51443267",
"0.513938",
"0.5135507",
"0.51349896",
"0.5132514",
"0.51268923",
"0.5121472",
"0.51045233",
"0.51026624",
"0.50976485",
"0.50912887",
"0.5074079",
"0.50560033",
"0.50554",
"0.50525624",
"0.50495124",
"0.504876",
"0.5041981",
"0.50378",
"0.5034346",
"0.50318277",
"0.50103354",
"0.50088817",
"0.5006413",
"0.5005567",
"0.5005135",
"0.50050354",
"0.49892527",
"0.49775603",
"0.4974587",
"0.49696687",
"0.4960907",
"0.4954813",
"0.4943894",
"0.49372843",
"0.49289927",
"0.49280167",
"0.49273807",
"0.49260175",
"0.4925337",
"0.49240682",
"0.49232998",
"0.49203244",
"0.4914713",
"0.491372",
"0.4910296",
"0.49097395",
"0.49091506",
"0.4907859",
"0.49067575",
"0.48981577",
"0.489696"
] | 0.77413017 | 0 |
create a chart set titles | public void createChart(StatisticPreviewChartViewModel statistic, Chart chart){
chart.getTitle().setText(mainUser.getUsername());
chart.getAxisSet().getXAxis(0).getTitle().setText("Dzień");
chart.getAxisSet().getYAxis(0).getTitle().setText("Kwoty");
// create scatter series
ILineSeries series = (ILineSeries) chart.getSeriesSet().createSeries(SeriesType.LINE, "Wartość");
series.setLineStyle(LineStyle.SOLID);
Date[] days = statistic.getDays().stream().toArray(Date[]::new);
series.setYSeries(statistic.getPrices());
series.setXDateSeries(days); // xSeries is an array of java.util.Date
IAxisTick xTick = chart.getAxisSet().getXAxis(0).getTick();
IAxis yAxis = chart.getAxisSet().getYAxis(0);
yAxis.adjustRange();
yAxis.scrollUp();
yAxis.scrollDown();
Color color = new Color(Display.getDefault(), 255, 0, 0);
series.setSymbolColor(color);
DateFormat format = new SimpleDateFormat("dd-MM-yyyy");
xTick.setFormat(format);
// adjust the axis range
chart.getAxisSet().adjustRange();
chart.getParent().layout();
comp.getParent().layout();
comp.getParent().layout();
chart.setVisible(true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Text createTitle() {\n\t\tText title = new Text(\"Selecteer Gasten\");\n\t\ttitle.getStyleClass().add(\"h1\");\n\t\ttitle.setFont(Font.font(22));\n\t\treturn title;\t\t\n\t}",
"private void addTitle() {\n\t\tJXPanel titlePanel = new JXPanel();\n\t\ttitlePanel.setLayout(null);\n\t\ttitlePanel.setSize(180, 60);\n\t\ttitlePanel.setLocation(60, 10);\n\t\ttitlePanel.setToolTipText(\"www.i.hsr.ch\");\n\t\ttitlePanel.setBorder(new DropShadowBorder(new Color(0, 0, 0), 7, 0.5f, 12, true, true, true, true));\n\t\t\n\t\tJLabel title = GUIComponents.createLabel(YAETMMainView.PROGRAM, new Point(45, 12));\n\t\ttitle.setFont(new Font(\"Tahoma\", Font.BOLD, 25));\n\t\t\n\t\tJLabel titleExtend = GUIComponents.createLabel(YAETMMainView.PROGRAMEXT, new Point(10, 33));\n\t\ttitleExtend.setSize(200, 20);\n\t\ttitleExtend.setFont(new Font(\"Arial\", Font.PLAIN, 11));\n\t\t\n\t\ttitlePanel.add(titleExtend);\n\t\ttitlePanel.add(title);\n\t\tpanel.add(titlePanel);\n\t}",
"@JSProperty(\"title\")\n void setTitle(ZAxisTitleOptions value);",
"public void setTitle(String title){\n\t\tplot.setTitle(title);\n\t}",
"@Override\n\tprotected void initArrayTitle() {\n\t\tthis.arrayTitle.add(\"title\");\n\t\tthis.arrayTitle.add(\"td[id=font_title]\");\n\t\tthis.arrayTitle.add(\"tr > td[id=font_title]\");\n\n\t}",
"public void setTitle(String titleTemplate);",
"public SeasonsBuilder title(String... titles) {\n this.field(FIELD_TITLE, titles);\n return this;\n }",
"private void setupTitle(){\n\t\tJLabel title = new JLabel(quiz_type.toString()+\": \"+parent_frame.getDataHandler().getLevelNames().get(parent_frame.getDataHandler().getCurrentLevel())); \n\t\ttitle.setFont(new Font(\"Arial Rounded MT Bold\", Font.BOLD, 65));\n\t\ttitle.setForeground(new Color(254, 157, 79));\n\t\ttitle.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tadd(title);\n\t\ttitle.setBounds(32, 24, 1136, 119);\n\t\ttitle.setOpaque(false);\n\t}",
"private Text createTitle() {\n\t\tText title = new Text(\"S p a c e Y\");\n\t\ttitle.setFont(new Font(\"Minecraftia\", 80));\n\t\ttitle.setStroke(Color.YELLOW);\n\t\ttitle.setStrokeWidth(2);\n\t\ttitle.setStrokeType(StrokeType.OUTSIDE);\n\t\ttitle.getTransforms().add(new Rotate(-50, 300, 200, 20, Rotate.X_AXIS));\n\t\ttitle.setX(canvas.getWidth() / 2);\n\t\ttitle.setY(canvas.getHeight() / 2);\n\t\treturn title;\n\t}",
"public void setChartTitle(String chartTitle) {\r\n this.chartTitle = chartTitle;\r\n }",
"private Label setTitle() {\r\n Label title = new Label(TITLE);\r\n title.setFont(Font.font(null, FontWeight.BOLD, null, TITLESZE));\r\n return title;\r\n }",
"public static String[] getChartTitles(List<PopChart> chartData, boolean addHeader)\n {\n String[] list = new String[!addHeader ? chartData.size() : (1 + chartData.size())];\n int index = 0;\n if (addHeader)\n {\n list[index++] = \"Select a chart\";\n }\n \n for (PopChart chart : chartData)\n {\n list[index++] = chart.getTitle();\n }\n \n return list;\n }",
"public SeriesInstance setTitle( String theString) {\n\t\tmyTitle = new StringDt(theString); \n\t\treturn this; \n\t}",
"TITLE createTITLE();",
"public static void createGraph(String[] xAxisLabels, Rx_DataSet[] values, String xAxisTitle, String yAxisTitle) {\n AxisChart ac = GraphFunctions.createChart(xAxisLabels, values, xAxisTitle, yAxisTitle, 1, 0);\n new GraphWindow(ac).setVisible(true);\n }",
"public String getTitle()\n {\n return \"Test XY Data\";\n }",
"private void constructTitlePanel() {\n titlePanel = new JPanel();\n titlePanel.setPreferredSize(relativeSize(0.8f, 0.03f));\n \n JLabel titleLabel = new JLabel(\"JMarkets Server Interface\");\n titleLabel.setFont(new Font(\"Arial\", Font.BOLD, 18));\n titleLabel.setForeground(new Color(102, 51, 0));\n \n titlePanel.add(titleLabel);\n }",
"public ShowsBuilder title(String... titles) {\n this.field(FIELD_TITLE, titles);\n return this;\n }",
"private void createYourMusicTitle() {\n\t\tjpYourMusic = new JPanel(new GridLayout(1,1));\n\t\tjpYourMusic.setOpaque(false);\n\t\tJLabel jlYourMusic = new JLabel(\"YOUR MUSIC\");\t\t\n\t\tjlYourMusic.setFont(new java.awt.Font(\"Century Gothic\",0, 17));\n\t\tjlYourMusic.setForeground(new Color(250,250,250));\n\t\tjpYourMusic.add(jlYourMusic);\n\t}",
"public void setTitle(String title) {\r\n this.title = title;\r\n impl.setTitle(getElement(),legend, title);\r\n }",
"public void setTitlePanel() {\n\t\ttitleview = new TitlePanelView();\n\t\ttitleview.createView();\n\t\tnorthpanel.add(titleview.getView());\n\t\n\t}",
"public void prepareTitle()\n {\n DuelTitle title = new DuelTitle();\n addObject(title, 539, 186);\n }",
"private void setUpGraph() {\n \tString title;\n\t\ttry {\n\t\t\ttitle = util.readTextFile(new File(UI.UITEXT_DIRECTORY)).get(GRAPHTITLE_DEX);\n\t\t\taCS = new AreaChartSample(cellStateNames,title);\n\t\t} catch (FileNotFoundException e) {\n\t\t\taCS = new AreaChartSample(cellStateNames, \"ERROR ON TITLE\");\n\t\t}\n\t\troot.getChildren().add(aCS.getAreaChart());\n \tplot();\n }",
"public static void readTitles() {\n System.out.println(\"Reading titles...\");\n ConfigurationSection config = plugin.getConfig().getConfigurationSection(\"titles\");\n System.out.println(\"Acquired configuration section \" + (config == null));\n Set<String> keys = config.getKeys(false);\n\n System.out.println(keys.size());\n\n for(String titleName : keys) {\n // System.out.println(titleName);\n String title = config.getString(titleName + \".Title\");\n char icon = ' ';\n int length = config.getInt(titleName + \".Characters\");\n int customModelData = config.getInt(titleName + \".CustomModelData\");\n\n Title t = new Title(titleName, title, icon, length, customModelData);\n\n titles.put(titleName, t);\n\n System.out.println(titles.get(titleName).toString());\n }\n }",
"private Node createTitle() {\n\t\tText titleText = new Text(\" Restaurant Inventory Management \");\n\t\ttitleText.setFont(Font.font(\"Arial\", FontWeight.BOLD, 40));\n\t\ttitleText.setTextAlignment(TextAlignment.CENTER);\n\t\t\n\n\t\treturn titleText;\n\t}",
"public void setTitle(String title);",
"public void setTitle(String title);",
"public void setTitle(String title);",
"void setTitle(String title);",
"void setTitle(String title);",
"void setTitle(String title);",
"void setTitle(String title);",
"void setTitle(String title);",
"public void setTitle(Element fieldset, Element legend, String title) {\r\n if ((title != \"\") && (title != null)) {\r\n DOM.setInnerHTML(legend, title);\r\n DOM.insertChild(fieldset, legend, 0);\r\n } else if (DOM.getParent(legend) != null) {\r\n DOM.removeChild(fieldset, legend);\r\n }\r\n }",
"public JQPlotMultiBar(String title){\n this();\n this.title = title;\n }",
"public void setTitle(String t)\n {\n title = t;\n }",
"private void createLabels() {\n addLabels(\"Dog Name:\", 160);\n addLabels(\"Weight:\", 180);\n addLabels(\"Food:\", 200);\n }",
"public void setDefaultTitlesTimes() {\n this.titleFadeIn = 10;\n this.titleDisplayTime = 70;\n this.titleFadeOut = 20;\n }",
"public void title(){\n textFont(select,30);\n fill(150);\n text(\"PLANE SELECT\",482,72);\n fill(0);\n text(\"PLANE SELECT\",480,70);\n}",
"protected abstract void setTitle();",
"public void setTitle(java.lang.String title);",
"void setTitle(java.lang.String title);",
"private void createChart() {\n\t\tchartSpace = CTChartSpace.Factory.newInstance();\n\t\tchart = chartSpace.addNewChart();\n\t\tCTPlotArea plotArea = chart.addNewPlotArea();\n\n\t\tplotArea.addNewLayout();\n\t\tchart.addNewPlotVisOnly().setVal(true);\n\n\t\tCTPrintSettings printSettings = chartSpace.addNewPrintSettings();\n\t\tprintSettings.addNewHeaderFooter();\n\n\t\tCTPageMargins pageMargins = printSettings.addNewPageMargins();\n\t\tpageMargins.setB(0.75);\n\t\tpageMargins.setL(0.70);\n\t\tpageMargins.setR(0.70);\n\t\tpageMargins.setT(0.75);\n\t\tpageMargins.setHeader(0.30);\n\t\tpageMargins.setFooter(0.30);\n\t\tprintSettings.addNewPageSetup();\n\t}",
"@Override\n\tprotected void initArrayTitle() {\n\t\tthis.arrayTitle.add(\"div[class=lft] > div > h2\");\n\n\t}",
"public void setXAxisTitle(String xAxisTitle) {\n this.xAxisTitle = xAxisTitle;\n }",
"private void createYourListsTitle() {\n\t\tjlYourLists = new JLabel(\"PLAYLISTS\");\t\t\n\t\tjlYourLists.setFont(new java.awt.Font(\"Century Gothic\",0, 17));\n\t\tjlYourLists.setForeground(new Color(250,250,250));\n\t}",
"private HorizontalLayout buildGridTitle() {\n\t\tgridTitle = new HorizontalLayout();\r\n\t\tgridTitle.setImmediate(false);\r\n\t\tgridTitle.setWidth(\"-1px\");\r\n\t\tgridTitle.setHeight(\"100.0%\");\r\n\t\tgridTitle.setMargin(false);\r\n\t\tgridTitle.setSpacing(true);\r\n\t\t\r\n\t\t// labelTitle\r\n\t\tlabelTitle = new Label();\r\n\t\tlabelTitle.setImmediate(false);\r\n\t\tlabelTitle.setWidth(\"-1px\");\r\n\t\tlabelTitle.setHeight(\"-1px\");\r\n\t\tlabelTitle.setValue(\"<h3>Título del libro</h3>\");\r\n\t\tlabelTitle.setContentMode(3);\r\n\t\tgridTitle.addComponent(labelTitle);\r\n\t\tgridTitle.setComponentAlignment(labelTitle, new Alignment(48));\r\n\t\t\r\n\t\t// labelEdition\r\n\t\tlabelEdition = new Label();\r\n\t\tlabelEdition.setImmediate(false);\r\n\t\tlabelEdition.setWidth(\"-1px\");\r\n\t\tlabelEdition.setHeight(\"-1px\");\r\n\t\tlabelEdition.setValue(\"Label\");\r\n\t\tgridTitle.addComponent(labelEdition);\r\n\t\tgridTitle.setComponentAlignment(labelEdition, new Alignment(33));\r\n\t\t\r\n\t\treturn gridTitle;\r\n\t}",
"@Override\r\n public void setTitle(String title) {\r\n this.title = title;\r\n gaugeName.setText(title);\r\n gauge.setTitle(title);\r\n }",
"private void setHeaders(List<String> a){\n\t\tFont hfont = wb.createFont();\n\t\thfont.setBold(true);\n\t\tCellStyle cs = wb.createCellStyle();\n\t\tcs.setFont(hfont);\n\n\t\tRow r=s.createRow(rowcount++);\n\t\tCell c;\n\t\tint colcount=1;\n\n\t\tc = r.createCell(0);\n\t\tc.setCellStyle(cs);\n\t\tc.setCellValue(\"Group\");\n\n\t\tfor(String e :a){\n\t\t\tif(!isSel(e))\n\t\t\t\tcontinue;\n\t\t\tc = r.createCell(colcount++);\n\t\t\tc.setCellStyle(cs);\n\t\t\tc.setCellValue(e);\n\t\t}\n\t}",
"private void renderTitle() {\n this.row = sheet.createRow(INT_ROW_START);\n //se crea titulos de la tabla\n this.addCell(column_++, \"CODIGO DE BARRAS\", this.cellStyleTitle());\n this.addCell(column_++, \"FECHA\", this.cellStyleTitle());\n this.addCell(column_++, \"HORA\", this.cellStyleTitle());\n this.addCell(column_++, \"MARBETE\", this.cellStyleTitle());\n this.addCell(column_++, \"PRODUCTO\", this.cellStyleTitle());\n this.addCell(column_++, \"DESCRIPCIÓN\", this.cellStyleTitle());\n this.addCell(column_++, \"LOTE\", this.cellStyleTitle());\n this.addCell(column_++, \"PESO\", this.cellStyleTitle());\n this.addCell(column_++, \"RESPONSABLE\", this.cellStyleTitle());\n }",
"@Override\r\n public void create() {\r\n super.create();\r\n setTitle(title);\r\n }",
"protected CategorySeries buildCategoryDataset(String title, List<Evenement> values) {\n CategorySeries series = new CategorySeries(title);\n int k = 0;\n for (Evenement value : values) {\n series.add(value.getDescription(), value.getNb_participants());\n }\n\n return series;\n }",
"public void setTitle(String s){\n\t\tJLabel title = new JLabel(s);\r\n\t\tsetLayout(new BorderLayout());\r\n\t\tadd(title, BorderLayout.PAGE_START);\r\n\t}",
"public SeriesInstance setTitle(StringDt theValue) {\n\t\tmyTitle = theValue;\n\t\treturn this;\n\t}",
"public EpisodesBuilder title(String... titles) {\n this.field(FIELD_TITLE, titles);\n return this;\n }",
"@Test\n\tpublic void testSetName() {\n\t\tString first = \"John\";\n\t\tString last = \"Doe\";\n\t\tString middle = \"Joe\";\n\t\tString spouse = \"Jane Doe\";\n\t\tPlot plot = new Plot();\n\t\t\n\t\tplot.setFirstName(\"John\");\n\t\tassertEquals(plot.getFirstName(), first);\n\t\t\n\t\tplot.setMiddleName(\"Joe\");\n\t\tassertEquals(plot.getMiddleName(), middle);\n\t\t\n\t\tplot.setLastName(\"Doe\");\n\t\tassertEquals(plot.getLastName(), last);\n\t\t\n\t\tplot.setSpouse(\"Jane Doe\");\n\t\tassertEquals(plot.getSpouse(), spouse);\n\t\t\n\t\tSystem.out.println(\"First Name, Middle Name, Last Name, Spouse was successful.\");\n\t}",
"public void setTitle(String[] title) {\r\n this.title = title;\r\n fireTableStructureChanged();\r\n }",
"private JPanel getTitlePanel() {\n JPanel main = ProgramPresets.createPanel();\n main.setLayout(new FlowLayout());\n JLabel tron1 = new JLabel(ProgramPresets.TRON);\n JLabel tron2 = new JLabel(ProgramPresets.TRON);\n mainTitle = ProgramPresets.createCenteredTitle(TITLE);\n subTitle = ProgramPresets.createCenteredTitle(SUB_TITLE);\n JPanel mainSub = ProgramPresets.createPanel();\n mainSub.setLayout(new GridLayout(2, 1));\n mainSub.add(mainTitle);\n mainSub.add(subTitle);\n main.add(tron1);\n main.add(Box.createRigidArea(new Dimension(50, 0)));\n main.add(mainSub);\n main.add(Box.createRigidArea(new Dimension(50, 0)));\n main.add(tron2);\n return main;\n }",
"@Override\n\tpublic void setTitle(String title) {\n\t\t\n\t}",
"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 }",
"public void setTitleOptions(String[] titleOptions) {\n\t\tthis.titleOptions = titleOptions;\n\t}",
"@Override\n\tpublic Title makeTitle(Map<String, String> attributes, String data) {\n\t\treturn new Title( attributes, data );\n\t}",
"public void createChart(String titulo, String tituloX, String tituloY, XYSeries series[]){\n dataset = createDataset(series);\n \n chart = ChartFactory.createScatterPlot(\n titulo,\n tituloX, \n tituloY, \n dataset);\n \n plot = (XYPlot) chart.getPlot();\n }",
"private void initHorPageTitle() {\n\t\tLabel pageTitle = new Label(\"Reports\");\n\t\tpageTitle.setSizeFull();\n\t\tpageTitle.setWidth(\"800px\");\n\t\tpageTitle.setHeight(\"45px\");\n\t\tpageTitle.addStyleName(\"posPageTitle\");\n\t\thorPageTitle.addComponent(pageTitle);\n\t\troot.addComponent(horPageTitle);\n\t\troot.setComponentAlignment(horPageTitle, Alignment.TOP_CENTER);\n\t}",
"@Override\r\n\t\tpublic void setTitle(String title)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}",
"public void titleImage(){\r\n\t\tint x = 75;\r\n\t\tint y = 100;\r\n\t\t//Title is displayed\r\n\t\tString title = \"Ticket Master\";\r\n\t\ttitleImage = new GLabel(title,x,y);\r\n\t\ttitleImage.setColor(Color.green);\r\n\t\ttitleImage.setFont(\"Arial-100\");\r\n\t\tcanvas.add(titleImage);\r\n\t}",
"@JSProperty(\"title\")\n @Nullable\n ZAxisTitleOptions getTitle();",
"public void setTitleFormula(String formula) {\n\t CTTitle ctTitle;\n\t if (chart.isSetTitle()) {\n\t ctTitle = chart.getTitle();\n\t } else {\n\t ctTitle = chart.addNewTitle();\n\t }\n\n\t CTTx tx;\n\t if (ctTitle.isSetTx()) {\n\t tx = ctTitle.getTx();\n\t } else {\n\t tx = ctTitle.addNewTx();\n\t }\n\n\t if (tx.isSetRich()) {\n\t tx.unsetRich();\n\t }\n\t \n\t CTStrRef strRef;\n\t if (tx.isSetStrRef()) {\n\t strRef = tx.getStrRef();\n\t } else {\n\t strRef = tx.addNewStrRef();\n\t }\n\t \n\t strRef.setF(formula);\n\t}",
"public DataResourceBuilder _title_(List<TypedLiteral> _title_) {\n this.dataResourceImpl.setTitle(_title_);\n return this;\n }",
"private void initChart() {\r\n /*mCurrentSeries = new XYSeries(\"Sample Data\");\r\n mDataset.addSeries(mCurrentSeries);\r\n mCurrentRenderer = new XYSeriesRenderer();\r\n mRenderer.addSeriesRenderer(mCurrentRenderer);*/\r\n \t\r\n \tList<Integer> MyListValue = new ArrayList<Integer>();\r\n\t\t/*for (int i = 0; i < SpeakingTimeList.size(); i++){\r\n\t\t\tMyListValue.add(SpeakingTimeList.get(i));\r\n\t\t}*/\r\n\t\tfor (int i = 0; i < participantAndSpeakingTimeList.size(); i++){\r\n\t\t\tMyListValue.add(participantAndSpeakingTimeList.get(i).getValue());\r\n\t\t}\r\n\t\t\r\n\t\t/*MyList.add(25);\r\n\t\tMyList.add(10);\r\n\t\tMyList.add(15);\r\n\t\tMyList.add(20);*/\r\n\t\t\t\t\r\n\t\tint[] y = new int[MyListValue.size()];\r\n\t\tfor (int i = 0; i < MyListValue.size(); i++) \r\n\t\t\ty[i] = MyListValue.get(i);\r\n\t\t\r\n\t\t//int y[] = {25,10,15,20};\r\n\t \r\n CategorySeries series = new CategorySeries(\"Speaking time in secondes\");\r\n for(int i=0; i < y.length; i++){\r\n series.add(\"Bar\"+(i+1),y[i]);\r\n }\r\n \r\n dataSet = new XYMultipleSeriesDataset(); // collection of series under one object.,there could any\r\n dataSet.addSeries(series.toXYSeries()); // number of series\r\n \r\n //customization of the chart\r\n \r\n XYSeriesRenderer renderer = new XYSeriesRenderer(); // one renderer for one series\r\n renderer.setColor(Color.parseColor(\"#0099FF\"));\r\n renderer.setDisplayChartValues(true);\r\n renderer.setChartValuesSpacing((float) 5.5d);\r\n renderer.setLineWidth((float) 10.5d);\r\n \r\n \r\n mRenderer = new XYMultipleSeriesRenderer(); // collection multiple values for one renderer or series\r\n mRenderer.addSeriesRenderer(renderer);\r\n mRenderer.setChartTitle(\"Speaking time per participant\");\r\n// mRenderer.setXTitle(\"xValues\");\r\n mRenderer.setYTitle(\"Time in secondes\");\r\n mRenderer.setZoomButtonsVisible(true); mRenderer.setShowLegend(true);\r\n mRenderer.setShowGridX(true); // this will show the grid in graph\r\n mRenderer.setShowGridY(true); \r\n// mRenderer.setAntialiasing(true);\r\n mRenderer.setBarSpacing(.5); // adding spacing between the line or stacks\r\n mRenderer.setApplyBackgroundColor(true);\r\n mRenderer.setBackgroundColor(Color.BLACK);\r\n mRenderer.setXAxisMin(0);\r\n mRenderer.setYAxisMin(0);\r\n //mRenderer.setXAxisMax(5);\r\n /*mRenderer.setXAxisMax(ParticipantsList.size()+1);*/\r\n mRenderer.setXAxisMax(participantAndSpeakingTimeList.size()+1);\r\n //mRenderer.setYAxisMax(100);\r\n mRenderer.setYAxisMax(Math.round(getMaxValue()/10)*10+10);\r\n// \r\n \r\n mRenderer.setXLabels(0);\r\n \r\n mRenderer.setXLabelsAngle(90);\r\n mRenderer.setXLabelsAlign(Align.LEFT);\r\n \r\n /*for (int i = 0; i < ParticipantsList.size(); i++){\r\n\t\t\tmRenderer.addXTextLabel(i+1, ParticipantsList.get(i));\r\n\t\t}*/\r\n for (int i = 0; i < participantAndSpeakingTimeList.size(); i++){\r\n\t\t\tmRenderer.addXTextLabel(i+1, participantAndSpeakingTimeList.get(i).getName());\r\n\t\t}\r\n \r\n /*mRenderer.addXTextLabel(1,\"Income\");\r\n mRenderer.addXTextLabel(2,\"Saving\");\r\n mRenderer.addXTextLabel(3,\"Expenditure\");\r\n mRenderer.addXTextLabel(4,\"NetIncome\");*/\r\n \r\n mRenderer.setPanEnabled(true, true); // will fix the chart position\r\n //Intent intent = ChartFactory.getBarChartIntent(context, dataSet, mRenderer,Type.DEFAULT);\r\n \r\n //return intent;\r\n\r\n\t\r\n\t}",
"public ExcelSimpleWriter<?> header(List<String> titles) {\n this.titles = titles;\n return this;\n }",
"private void redrawTitles(int i, int k, double y) {\n\t\tdouble x = getWidth() / NDECADES * k;\r\n\t\tGLabel titles;\r\n\t\tif (entries.get(i).getRank(k) > 0) {\r\n\t\t\ttitles = new GLabel(entries.get(i).getName() + \" \" + entries.get(i).getRank(k), x, y);\r\n\t\t} else {\r\n\t\t\ttitles = new GLabel(entries.get(i).getName() + \" \" + \"*\", x, y);\r\n\t\t}\r\n\t\tchangeTheColor(titles, i);\r\n\t\tadd(titles);\r\n\t}",
"@Override\r\n\tpublic void getTitle() {\n\t\t\r\n\t}",
"private void createTitleContent(BufferedWriter writer) throws IOException {\r\n\t\tString title = data.getSuiteName();\r\n\t\tString titleTag = \"<div style='height: 50px; width: inherit; box-shadow: 1px 1px 1px #888888;background-color: #616161;'>\";\r\n\t\tString label = \"<label style='font-weight: bold;position: absolute;padding-left: 16px;color: white;padding-top: 8px;\"\r\n\t\t\t\t+ \"font-family: Roboto, sans-serif;'>\"\r\n\t\t\t\t+ title\r\n\t\t\t\t+ \"</label></div>\";\r\n\t\twriter.write(titleTag);\r\n\t\twriter.write(label);\r\n\t}",
"private RGridBagLayoutPane getTitlePane() {\n if (titlePane == null) {\n titlePane = new RGridBagLayoutPane();\n titlePane.setName(\"titlePane\");\n titlePane.setStyleProperties(\"{/fill \\\"HORIZONTAL\\\"/weightY \\\"0\\\"}\");\n titlePane.add(getHeaderPane(), new com.ulcjava.base.application.GridBagConstraints(0, 0, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n }\n return titlePane;\n }",
"public void setTitle(String title) { this.title = title; }",
"public String getXAxisTitle() {\n return xAxisTitle;\n }",
"private static JFreeChart createChart(CategoryDataset dataset) {\n\t\t//the title of the chart depending of the attributes chosen by the user\n\t\tif (queryNumber==0) {domainLabel=\"Per day\";}\n\t\telse if (queryNumber==1) {domainLabel=\"Per hour\";}\n\t\telse if (queryNumber==2) {domainLabel=\"Per minute\";}\n\t\t\n\t\t// setting the title \n\t\tString rangeLabel=\"Average (ms)\";\n\t\t// create the chart...\n\t\tJFreeChart chart = ChartFactory.createBarChart(\n\t\t\t\t\"Static\", // chart title\n\t\t\t\tdomainLabel, // domain axis label\n\t\t\t\trangeLabel, // range axis label\n\t\t\t\tdataset, // data\n\t\t\t\tPlotOrientation.VERTICAL, // orientation\n\t\t\t\tfalse, // include legend\n\t\t\t\ttrue, // tooltips\n\t\t\t\tfalse // URLs\n\t\t\t\t);\n\t\t\n\t\t//setting the title preferences and format\n\t\tchart.getTitle().setFont(fontStatic);\n\t\tchart.getTitle().setPaint(Color.red);\n\t\tchart.setBackgroundPaint(Color.white);\n\t\tCategoryPlot plot = chart.getCategoryPlot();\n\t\tplot.setBackgroundPaint(Color.lightGray);\n\t\tplot.setDomainGridlinePaint(Color.white);\n\t\tplot.setDomainGridlinesVisible(true);\n\t\tplot.setRangeGridlinePaint(Color.white);\n\t\tfinal NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();\n\t\tchart.getCategoryPlot().getRangeAxis().setLabelPaint(Color.RED);\n\t\tchart.getCategoryPlot().getDomainAxis().setLabelPaint(Color.RED);\n\t\trangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());\n\t\tBarRenderer renderer = (BarRenderer) plot.getRenderer();\n\t\trenderer.setDrawBarOutline(false);\n\t\tfor (int i =0;i<25;i++) renderer.setSeriesPaint(i, Color.BLUE);\n\t\treturn chart;\n\t}",
"private JFreeChart createChart(PieDataset dataset, String title) {\n\n\t\tJFreeChart chart = ChartFactory.createPieChart3D(title, // chart title\n\t\t\t\tdataset, // data\n\t\t\t\ttrue, // include legend\n\t\t\t\ttrue, false);\n\n\t\tPiePlot3D plot = (PiePlot3D) chart.getPlot();\n\t\tplot.setStartAngle(290);\n\t\tplot.setDirection(Rotation.CLOCKWISE);\n\t\tplot.setForegroundAlpha(0.5f);\n\t\treturn chart;\n\n\t}",
"protected GuiTestObject title() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"title\"));\n\t}",
"@Override\n\tpublic void setTitle(String type, String name) {\n\t\ttxtTitle.setText(String.format(\"%s:%s\", new String[]{type,name}));\n\t}",
"String getXAxisLabel();",
"@Override\n\tpublic void setTitle(java.lang.String title) {\n\t\t_dictData.setTitle(title);\n\t}",
"public ComponentBuilder<?, ?> createTitleComponent(String label) {\r\n\t\treturn cmp.horizontalList()\r\n\t\t\t\t.add(dynamicReportsComponent,\r\n\t\t\t\t\t\tcmp.text(label).setStyle(normal12LeftStyle)\r\n\t\t\t\t\t\t\t\t.setHorizontalTextAlignment(HorizontalTextAlignment.LEFT))\r\n\t\t\t\t.newRow().add(cmp.line()).newRow().add(cmp.verticalGap(10));\r\n\t}",
"@Override\n\tprotected void createCompHeader() {\n\t\tString headerTxt = \"Cohorts Report\";\n\t\tiDartImage icoImage = iDartImage.PAVAS;\n\t\tbuildCompdHeader(headerTxt, icoImage);\n\t}",
"public MoviesBuilder titles(String... titles) {\n this.field(FIELD_TITLE, titles);\n return this;\n }",
"public void setTitle(String title) {\r\n this.title = title;\r\n }",
"public void setTitle(String title) {\r\n this.title = title;\r\n }",
"void xsetTitle(org.apache.xmlbeans.XmlString title);",
"public void setTitle(String title){\n this.title = title;\n }",
"@Override\n\tprotected void initTitle() {\n\t\tsetTitleContent(R.string.tocash);\n\t\tsetBtnBack();\n\t}",
"protected void addTitlePage(Document doc) throws Exception {\n \n \t\tdoc.add(new Paragraph(\"\\n\\n\\n\\n\"));\r\t\t\t\n // data dictionary\n Font font = FontFactory.getFont(FontFactory.HELVETICA_BOLD, 22);\n \t\tParagraph prg = new Paragraph(\"Data Dictionary\", font);\n prg.setAlignment(Element.ALIGN_CENTER);\n doc.add(prg);\n \n doc.add(new Paragraph(\"\\n\\n\\n\\n\\n\\n\\n\\n\\n\"));\n \n // full definition\n font = FontFactory.getFont(FontFactory.HELVETICA_BOLD, 14);\n prg = new Paragraph(\"Definition of\", font);\n prg.setAlignment(Element.ALIGN_CENTER);\n doc.add(prg);\n \n // dataset name\n font = FontFactory.getFont(FontFactory.HELVETICA_BOLD, 26);\n prg = new Paragraph(dsName, font);\n \t\tprg.setAlignment(Element.ALIGN_CENTER);\n \t\tdoc.add(prg);\n \t\t\n \t\t// dataset word\n font = FontFactory.getFont(FontFactory.HELVETICA, 14);\n \t\tprg = new Paragraph(\"dataset\", font);\n prg.setAlignment(Element.ALIGN_CENTER);\n doc.add(prg);\n \n \t\tdoc.add(new Paragraph(\"\\n\\n\"));\n \t\t\n \t\t// version\n \t\tprg = new Paragraph();\n \t\tprg.add(new Chunk(\"Version: \", font));\n \t\tprg.add(new Chunk(dsVersion, font));\n \t\tprg.setAlignment(Element.ALIGN_CENTER);\n \t\tdoc.add(prg);\n \t\t\n \t\t// date\n \t\t//prg = new Paragraph(getTitlePageDate());\n \t\t//prg.setAlignment(Element.ALIGN_CENTER);\n \t\t//doc.add(prg);\n \n doc.add(new Paragraph(\"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\"));\n \n // European Environment Agency\n font = FontFactory.getFont(FontFactory.TIMES_BOLD, 12);\n prg = new Paragraph(\"European Environment Agency\", font);\n prg.setAlignment(Element.ALIGN_CENTER);\n \n if (!Util.voidStr(logo)){\n Image img = Image.getInstance(logo);\n img.setAlignment(Image.LEFT);\n \n prg.add(new Chunk(img, 0, 0));\n }\n \n doc.add(prg);\n }",
"public ListOfOnixDataComposite<TitleElement, JonixTitleElement> titleElements() {\n _initialize();\n return titleElements;\n }",
"public void createLabels()\n {\n title = new JLabel(\"Game Over\");\n title.setForeground(Color.RED);\n title.setFont(new Font(title.getFont().getName(), Font.PLAIN, 42));\n title.setAlignmentX(Component.CENTER_ALIGNMENT);\n\n roundLabel = new JLabel(\"CPU was infected on round \"+roundLost);\n roundLabel.setForeground(Color.RED);\n roundLabel.setFont(new Font(title.getFont().getName(), Font.PLAIN, 18));\n roundLabel.setAlignmentX(Component.CENTER_ALIGNMENT);\n }",
"public void addTitles(String titles){\n\n String titleSplit[] = titles.split(\",\");\n\n for (String section : titleSplit ) {\n this.titles.add(section);\n }\n }",
"public GMMChart(String title) {\n super(title);\n this.dataset = new GMMDataset(setNum, \"$\");\n }",
"public ToolBarManager initTitle(int toolBarTitleResId,int start,int top,int end,int bottom){\n return initTitle(mContext.getResources().getString(toolBarTitleResId),start,top,end,bottom);\n }",
"@Override\n\tprotected void createShell() {\n\t\tRectangle bounds = new Rectangle(100, 50, 600, 510);\n\t\tString shellTxt = \"Cohorts Report\";\n\t\tbuildShell(shellTxt, bounds);\n\t\t// create the composites\n\t\tcreateMyGroups();\n\t}",
"@Override\r\n\tpublic void getTitle(String title) {\n\t\t\r\n\t}",
"public void generateChart(){\n String[][] contents = retrieveFields();\n\n// String msg = \"test - \";\n// printCells(contents);\n\n String[] houseDisplay = new String[12];\n houseDisplay = new String[]{\"6\",\"4\",\"2\",\"1\",\"4\",\"6\",\"3\",\"5\",\"7/8\",\"\",\"5\",\"3\"};\n display(houseDisplay);\n }",
"public XSSFRichTextString getTitleText() {\n\t\tif(! chart.isSetTitle()) {\n\t\t\treturn null;\n\t\t}\n\n\t\t// TODO Do properly\n\t\tCTTitle title = chart.getTitle();\n\n\t\tStringBuffer text = new StringBuffer();\n\t\tXmlObject[] t = title\n\t\t\t.selectPath(\"declare namespace a='\"+XSSFDrawing.NAMESPACE_A+\"' .//a:t\");\n\t\tfor (int m = 0; m < t.length; m++) {\n\t\t\tNodeList kids = t[m].getDomNode().getChildNodes();\n\t\t\tfinal int count = kids.getLength();\n\t\t\tfor (int n = 0; n < count; n++) {\n\t\t\t\tNode kid = kids.item(n);\n\t\t\t\tif (kid instanceof Text) {\n\t\t\t\t\ttext.append(kid.getNodeValue());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn new XSSFRichTextString(text.toString());\n\t}"
] | [
"0.62829185",
"0.62648445",
"0.62159497",
"0.6181867",
"0.61593777",
"0.6119729",
"0.6102008",
"0.6055335",
"0.6052448",
"0.5984976",
"0.59823",
"0.59557885",
"0.594423",
"0.59059954",
"0.5898253",
"0.58738613",
"0.5848065",
"0.5814709",
"0.58124906",
"0.58069324",
"0.57994556",
"0.57920593",
"0.57854986",
"0.57560885",
"0.5733243",
"0.5730606",
"0.5730606",
"0.5730606",
"0.57167584",
"0.57167584",
"0.57167584",
"0.57167584",
"0.57167584",
"0.5680097",
"0.5677457",
"0.5677213",
"0.5667172",
"0.5661275",
"0.56596345",
"0.5642204",
"0.56394196",
"0.5637765",
"0.56328607",
"0.5632739",
"0.563226",
"0.56315404",
"0.560455",
"0.5597595",
"0.5591415",
"0.5560458",
"0.5550798",
"0.5545012",
"0.5542248",
"0.55380607",
"0.5532311",
"0.55265206",
"0.5526004",
"0.55178344",
"0.55176234",
"0.55142474",
"0.55115783",
"0.54948604",
"0.5493905",
"0.5491583",
"0.548851",
"0.5484965",
"0.54846555",
"0.548044",
"0.54801035",
"0.54763144",
"0.5469838",
"0.5463885",
"0.5457281",
"0.54485387",
"0.5442231",
"0.5435583",
"0.5433097",
"0.5422008",
"0.5407089",
"0.54067814",
"0.5393639",
"0.539117",
"0.5379207",
"0.53745866",
"0.5367711",
"0.5363438",
"0.53633004",
"0.53633004",
"0.5359589",
"0.53595674",
"0.53543526",
"0.5353238",
"0.53507936",
"0.53482425",
"0.53464943",
"0.5346443",
"0.534613",
"0.5345854",
"0.53422487",
"0.5336932",
"0.53365165"
] | 0.0 | -1 |
Generic method to automate | public void checkOtherFooterLinks(String linkText,String url,String finder,String pageText){
WebElement labelLink = driver.findElement(By.xpath(linkText));
labelLink.click();
assertTrue(driver.getCurrentUrl().equals(url), "Page is missing");
if(driver.getCurrentUrl().equals(url)){
WebElement text = driver.findElement(By.xpath(finder));
String ideaPageText = text.getText();
assertEquals(ideaPageText,pageText,"Text mismatch");
}
driver.navigate().back();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testGenericMethod() {\n \n }",
"public abstract Result<T> mo66250a();",
"private void constructionHelper(GenericServiceResult genericServiceResult) {\n\n assertEquals(this.string, genericServiceResult.get(\"string\"));\n assertEquals(this.integer, genericServiceResult.get(\"integer\"));\n assertEquals(this.floats, genericServiceResult.get(\"floats\"));\n\n assertTrue(checkIndices(0, \"string\"));\n assertTrue(checkIndices(1, \"integer\"));\n assertTrue(checkIndices(2, \"floats\"));\n }",
"abstract String applicable(Method[] getters) throws InvalidObjectException;",
"abstract public T doSomething();",
"public interface HttpDriver {\n public <R,T> T execute(HttpMethod method, String uri, R entity, Type expected) throws HttpDriverException;\n}",
"private void init() {\n\t\t// pick to pieces method signature description\n\t\tthis.argTypes = Type.getArgumentTypes(this.desc);\n\t\tthis.newArgTypes = new LinkedList<Type>();\n\t\tfor (Type t : this.argTypes) {\n\t\t\tthis.newArgTypes.add(t);\n\t\t\tif(t.getSort() == Type.OBJECT && !TaintTrackerConfig.isString(t))\n\t\t\t\tcontinue;\n//\t\t\tdetermine proper taint for each argument and append it to newArgTypes\n\t\t\tif (t.getSort() == Type.ARRAY) {\n\t\t\t\tif (t.getElementType().getSort() != Type.OBJECT || TaintTrackerConfig.isString(t.getElementType())) {\n\t\t\t\t\tif (t.getDimensions() > 1) {\n\t\t\t\t\t\tthis.newArgTypes.add(Type.getType(TaintTrackerConfig.TAINT_DESC));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.newArgTypes.add(Type.getType(TaintTrackerConfig.TAINT_DESC_ARR));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.newArgTypes.add(Type.getType(TaintTrackerConfig.TAINT_DESC));\n\t\t\t}\n\t\t}\n\t\tthis.newReturnType = Type.getReturnType(desc);\n\t\tif (this.newReturnType.getSort() != Type.VOID && this.newReturnType.getSort() != Type.OBJECT) {\n\t\t\tTaintWrapper<?,?> returnType = TaintTrackerConfig.wrapReturnType(Type.getReturnType(desc));\n\t\t\tif(returnType != null)\n\t\t\t\tthis.newReturnType = Type.getType(returnType.getClass());\n\t\t}\n\t\telse if( (this.newReturnType.getSort() == Type.OBJECT && TaintTrackerConfig.isString(this.newReturnType))\n\t\t|| (this.newReturnType.getSort() == Type.ARRAY && TaintTrackerConfig.isString(this.newReturnType.getElementType())) ){\n\t\t\tTaintWrapper<?,?> returnType = TaintTrackerConfig.wrapReturnType(Type.getReturnType(desc));\n\t\t\tif(returnType != null)\n\t\t\t\tthis.newReturnType = Type.getType(returnType.getClass());\n\t\t}\n\t\t\n\t\tType[] newArgs = new Type[newArgTypes.size()];\n\t\tnewArgTypes.toArray(newArgs);\n\t\tthis.newDesc = Type.getMethodDescriptor(newReturnType, newArgs);\n\t}",
"public abstract void mo32008e(TemplateInfo templateInfo);",
"public static void main(String[] args)\r\n\t{\n\t\tMyStringBuilder msb;\r\n\t\tStringBuilder sb;\r\n\t\tString s;\r\n\t\t//Loop iterating 3 times testing each method for all types one by one\r\n\t\tfor(int i = 0; i < 3; i++)\r\n\t\t{\r\n\t\t\t//Initialize variables\r\n\t\t\tmsb = new MyStringBuilder(\"\");\r\n\t\t\tsb = new StringBuilder(\"\");\r\n\t\t\ts = new String(\"\");\r\n\t\t\t//Test fill, delete, and insert with each iteration of the loop respectively\r\n\t\t\tswitch(i)\r\n\t\t\t{\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tfill(msb, args[0]);\r\n\t\t\t\t\tfill(sb, args[0]);\r\n\t\t\t\t\tfill(s, args[0]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tdelete(msb, args[0]);\r\n\t\t\t\t\tdelete(sb, args[0]);\r\n\t\t\t\t\tdelete(s, args[0]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tinsert(msb, args[0]);\r\n\t\t\t\t\tinsert(sb, args[0]);\r\n\t\t\t\t\tinsert(s, args[0]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\t\r\n\t}",
"abstract T generate();",
"public interface IStrategy<T extends Object> {\n\n static final String BITCOIN_BASE64 = \"1NwaKCqfb532vVRFmBAixPbGQJhTfwpbzk\";\n static final String BITCOIN = \"BITCOIN\";\n SimpleDateFormat SDF_DDMMYYYY_HHMMSS = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n SimpleDateFormat SDF_DDMMYYYY = new SimpleDateFormat(\"yyyy/MM/dd\");\n\n\n LinkedList<T> getObjects(String dados);\n}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"protected void generar() {\n generar(1, 1);\n }",
"public interface ICommonAction {\n\n void obtainData(Object data, String methodIndex, int status,Map<String, String> parameterMap);\n\n\n}",
"public static void main(String[] args) {\n\t\tTestGeneric t=new TestGeneric();\n\t\tt.testAdd();\n\t\tt.testForEach();\n\t\tt.testChild();\n\t\tt.testForEach();\n\t\tt.testBasicType();\n\t\t\n\n\t}",
"Operations operations();",
"protected abstract Set method_1559();",
"protected abstract void generate();",
"@Test\n public void testGetValue() throws Exception {\n\n Map<String, IMetaData<SampleMark>> name2MetaData;\n name2MetaData = factory.class2MetaDataByFullPath(Person.class);\n\n assertEquals(3, name2MetaData.size());\n\n for (Person p : persons) {\n\n Person.assertPerson(p,\n (String) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Person|lastname\").getValue(p),\n (Float) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Person|weight\").getValue(p),\n (Integer) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Person|age\").getValue(p));\n }\n\n name2MetaData = factory.class2MetaDataByFullPath(Driver.class);\n\n assertEquals(4, name2MetaData.size());\n\n for (Driver d : drivers) {\n\n Driver.assertDriver(d,\n (String) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Driver|lastname\").getValue(d),\n (Float) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Driver|weight\").getValue(d),\n (Integer) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Driver|age\").getValue(d),\n (Boolean) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Driver|hasDrivingLicense\").getValue(d));\n\n }\n\n name2MetaData = factory.class2MetaDataByFullPath(Car.class);\n\n assertEquals(10, name2MetaData.size());\n\n for (Car c : cars) {\n Driver.assertDriver(c.getDriver(),\n (String) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|driver|lastname\").getValue(c),\n (Float) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|driver|weight\").getValue(c),\n (Integer) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|driver|age\").getValue(c),\n (Boolean) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|driver|hasDrivingLicense\").getValue(c));\n Driver.assertDriver((Driver) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|driver\").getValue(c),\n (String) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|driver|lastname\").getValue(c),\n (Float) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|driver|weight\").getValue(c),\n (Integer) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|driver|age\").getValue(c),\n (Boolean) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|driver|hasDrivingLicense\").getValue(c));\n Engine.assertEngine(c.getEngine(),\n (String) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|engine|productName\").getValue(c));\n Engine.assertEngine((Engine) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|engine\").getValue(c),\n (String) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|engine|productName\").getValue(c));\n\n Oil.assertOil(c.getEngine().oil,\n (String) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|engine|oil|vendorName\").getValue(c),\n (String) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|engine|oil|producentName\").getValue(c));\n Oil.assertOil((Oil) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|engine|oil\").getValue(c),\n (String) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|engine|oil|vendorName\").getValue(c),\n (String) name2MetaData.get(\"pl.softech.reflection.SampleDataGenerator$Car|engine|oil|producentName\").getValue(c));\n }\n\n }",
"public interface ToolConverter {\r\n /**\r\n * This method should return a well formed tool\r\n * from the data given.\r\n * <p>\r\n * If is possible to return multiple tools.\r\n * \r\n * @param toolData The data from the lms.\r\n * @return The tool(s) as described in Unipoole.\r\n */\r\n public List<Tool> getTool(Object toolData);\r\n}",
"protected abstract void executeHelper();",
"abstract public T getInfo();",
"protected abstract T mo2623i();",
"public static void main (String[] args) {\n\t\tC_GenericsMethods genericsMethods = new C_GenericsMethods();\n\t\tgenericsMethods.makeArrayList(\"Manish\");\n\t\tgenericsMethods.makeArrayList(\"Kumar\");\n\t\tgenericsMethods.makeArrayList(\"Samrat\");\n\t\tgenericsMethods.makeArrayList(\"Virat\");\n\t\tgenericsMethods.makeArrayList(123);\n\t\tgenericsMethods.restrciedArrayList(123);\n\t//\tgenericsMethods.restrciedArrayList(\"Virat\");\n\n\t}",
"public interface ITestArrays {\n\n /**\n * primitive array method\n *\n * @return double array\n */\n public double[] returnDoubleArray();\n\n /**\n * primitive multi-array method\n *\n * @return multi double array\n */\n public double[][] returnMultiDoubleArray();\n\n /**\n * Method with array/vector return\n *\n * @return list of object names\n */\n public String[] listObjectNames();\n /**\n * Method with array/vector return\n *\n * @param path path to objects\n * @return list of object names\n */\n public String[] listObjectNames(String path);\n /**\n * Method with array/vector return\n *\n * @param path path to objects\n * @param recursive list objects recursively\n * @return list of object names\n */\n public String[] listObjectNames(String path, boolean recursive);\n\n /**\n * Method throwing exception\n *\n * @param path path to create\n * @throws IllegalArgumentException in case of argument error\n */\n public void mkdir(int[] dummy) throws IllegalArgumentException;\n\n /**\n * Method throwing exception\n *\n * @param path path to create\n * @throws IllegalArgumentException in case of argument error\n */\n public void mkdir(int[][] dummy) throws IllegalArgumentException;\n\n /**\n * Method throwing exception\n *\n * @param path path to create\n * @throws IllegalArgumentException in case of argument error\n */\n public void mkdir(String[][] dummy) throws IllegalArgumentException;\n\n /**\n * Method throwing exception\n *\n * @param path path to create\n * @throws IllegalArgumentException in case of argument error\n */\n public void mkdir(String[] dummy) throws IllegalArgumentException;\n\n /**\n * Method throwing exception\n *\n * @param path path to create\n * @throws IllegalArgumentException in case of argument error\n */\n public void mkdir2(String[] dummy) throws IllegalArgumentException;\n}",
"public interface IMostSpecificOverloadDecider\n{\n OverloadRankingDto inNormalMode(\n WorkItemDto workItemDto, List<OverloadRankingDto> applicableOverloads, List<ITypeSymbol> argumentTypes);\n\n //Warning! start code duplication, more or less the same as in inNormalMode\n List<OverloadRankingDto> inSoftTypingMode(\n WorkItemDto workItemDto, List<OverloadRankingDto> applicableOverloads);\n}",
"void mo83699a(T t, int i, int i2, String str);",
"abstract Function get(Object arg);",
"public abstract void userValues();",
"@Override\r\n\tpublic void func01() {\n\t\t\r\n\t}",
"protected abstract void work();",
"public abstract T mo36028b(Context context);",
"public abstract void mo33222b(T t) throws IOException;",
"public interface MasterDataManagementUtil {\n\n\t/**\n\t * Gets the product tags array.\n\t *\n\t * @return the product tags array\n\t */\n\tstatic String[] getProductTagsArray() {\n\n\t\tList<String> productTagsList = new ArrayList<>();\n\t\tproductTagsList.add(\"neutro\");\n\t\tproductTagsList.add(\"veludo\");\n\t\tproductTagsList.add(\"couro\");\n\t\tproductTagsList.add(\"basics\");\n\t\tproductTagsList.add(\"festa\");\n\t\tproductTagsList.add(\"workwear\");\n\t\tproductTagsList.add(\"inverno\");\n\t\tproductTagsList.add(\"boho\");\n\t\tproductTagsList.add(\"estampas\");\n\t\tproductTagsList.add(\"balada\");\n\t\tproductTagsList.add(\"colorido\");\n\t\tproductTagsList.add(\"casual\");\n\t\tproductTagsList.add(\"liso\");\n\t\tproductTagsList.add(\"moderno\");\n\t\tproductTagsList.add(\"passeio\");\n\t\tproductTagsList.add(\"metal\");\n\t\tproductTagsList.add(\"viagem\");\n\t\tproductTagsList.add(\"delicado\");\n\t\tproductTagsList.add(\"descolado\");\n\t\tproductTagsList.add(\"elastano\");\n\n\t\treturn productTagsList.toArray(new String[productTagsList.size()]);\n\t}\n\n}",
"public abstract Object executeGeneric(VirtualFrame frame);",
"protected abstract O getResult();",
"public interface Parsable {\n\n <T, E> List<E> parseObjects(Class<? extends T> entityClass);\n\n}",
"Foreach createForeach();",
"public interface IGenerator {\n\n void execute(List<ClassInfo> classInfos, Map<String, Object> extParam, ZipOutputStream zipOutputStream) throws Exception;\n\n}",
"public abstract String generate(Object... args);",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}",
"@ReflectiveMethod(name = \"t_\", types = {})\n public void t_(){\n NMSWrapper.getInstance().exec(nmsObject);\n }",
"public abstract void mo36027a(Context context, T t);",
"private static void createAnalysisInterface(List<String> genericArguments, String name, String tag, MethodFactory extMf, Environment extEnv, Environment result) {\n \t\tJavaName jname = new JavaName(result.getDefaultPackage(), \"I\"+extEnv.getName()+name);\n \t\tInterfaceDefinition extNewDef = new InterfaceDefinition(jname);\n \t\textNewDef.setTag(tag);\n \t\textNewDef.setGenericArguments(genericArguments);\n \t\tresult.addInterface(extNewDef);\n \t\tIInterfaceDefinition iAnalysis = result.lookUpType(\"IAnalysis\");\n \t\textNewDef.supers.add(iAnalysis);\n \n \t\t// Add methods for the analysis and apply functions for the classes\n \t\tfor(IClassDefinition cdef : result.getClasses())\n \t\t{\n \t\t\tEnvironment env = null;\n \t\t\tIInterfaceDefinition newDef = null;\n \t\t\tMethodFactory mf = null;\n \t\t\tif (extEnv.classToType.containsKey(cdef))\n \t\t\t{\n \t\t\t\tmf = extMf;\n \t\t\t\tnewDef = extNewDef;\n \t\t\t\tenv = extEnv;\n \t\t\t}\n \n \t\t\t// Should it have an apply method and a case in the analysis?\n \t\t\tif (mf != null)\n \t\t\t\tswitch(env.classToType.get(cdef))\n \t\t\t\t{\n \t\t\t\tcase Alternative:\n \t\t\t\tcase Token:\n \t\t\t\t{\n \t\t\t\t\tmf.updateApplyMethod(cdef, jname.getCanonicalName());\n \n \t\t\t\t\tMethod caseMethod = mf.createCaseMethod(cdef);\n \t\t\t\t\tnewDef.addMethod(caseMethod);\n \t\t\t\t\t\n \t\t\t\t\t// remove this case from IAnalysis\n \t\t\t\t\tList<Method> toBeRemoved = new LinkedList<Method>();\n \t\t\t\t\tfor(Method m : iAnalysis.getMethods())\n \t\t\t\t\t{\n \t\t\t\t\t\tif (m.classDefinition == cdef)\n \t\t\t\t\t\t\ttoBeRemoved.add(m);\n \t\t\t\t\t}\n \t\t\t\t\tiAnalysis.getMethods().removeAll(toBeRemoved);\n \n \t\t\t\t}\n \t\t\t\tbreak;\n \t\t\t\tdefault:\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t}\n \n \t}",
"public interface MyDetaResult {\n /**\n * 网络数据结果处理为对象\n * @param objects\n */\n void mysrvserObject(String objects);\n /**\n * 网络数据处理结果为集合\n * @param list\n */\n void myserverList(List<User> list);\n\n void myserverListForTalk(List<Talk> parse);\n}",
"void mo83695a(T t);",
"@Override\n\tpublic void anular() {\n\n\t}",
"public abstract void generate();",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"public interface ExtractorInput {\n int m3230a(int i);\n\n int m3231a(byte[] bArr, int i, int i2);\n\n void m3232a();\n\n boolean m3233a(byte[] bArr, int i, int i2, boolean z);\n\n long m3234b();\n\n void m3235b(int i);\n\n void m3236b(byte[] bArr, int i, int i2);\n\n boolean m3237b(byte[] bArr, int i, int i2, boolean z);\n\n long m3238c();\n\n void m3239c(int i);\n\n void m3240c(byte[] bArr, int i, int i2);\n\n long m3241d();\n}",
"@Override\n\tpublic void test(String t) {\n\t\t\n\t}",
"protected abstract void switchOnCustom();",
"public interface Resolver {\n <T,K>K execSetParam(T src,K goal);\n}",
"static void perform_ora(String passed){\n\t\tint type = type_of_ora(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tora_with_reg(passed);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tora_with_mem(passed);\n\t\t\tbreak;\n\t\t}\n\t}",
"public interface IInputService {\n public int insertHiddenDanger(HiddenDanger hiddenDanger);\n public int insertInput(Input input);\n public int insertCheckTableDetail(CheckTableDetail checkTableDetail);\n public Map<String,Object> getDetailHiddenDanger(Integer hiddenDangerId);\n public Map<String,Object> getDetailInput(String inputId);\n public PageInfo<Map<String,Object>> getListInput(Integer pageNum,Integer pageSize);\n public List<Map<String,Object>> getAllListInput();\n public int toRectify(HiddenDanger hiddenDanger);\n public int rectify(HiddenDanger hiddenDanger);\n public PageInfo<Map<String,Object>> getHiddenDangerList(String status,int pageNum,int pageSize);\n public PageInfo<Map<String, Object>> getHiddenDangerListTimeOut(int pageNum,int pageSize);\n public List<Map<String,Object>> getNumberHiddenDanger();\n public List<Map<String,Object>> getNumberHiddenDangerTimeOut();\n\n //由inputId和二级指标id获得所有二级指标内容\n public Map<String,Object> getAllCheckDetail(@Param(\"inputId\") String inputId, @Param(\"secondId\") Integer secondId);\n\n //撤回隐患\n public int withdrawHiddenDanger(Integer hiddenDangerId);\n}",
"protected abstract void handle(Object... params);",
"abstract int pregnancy();",
"protected abstract T prepareObject(String extracted);",
"public interface DataAccess {\n String USER_PATH = \"user/%s\";\n String CARS_PATH = USER_PATH + \"/cars/%s\";\n String FUELENTRY_PATH = CARS_PATH + \"/fuel_entries/%s\";\n String REPAIRENTRY_PATH = CARS_PATH + \"/repair_entries/%s\";\n String OTHERENTRY_PATH = CARS_PATH + \"/other_entries/%s\";\n String REMINDERENTRY_PATH = USER_PATH + \"/reminders/%s\";\n\n\n void update(String path, Object object);\n void push(String path, Object object);\n void delete(String path);\n\n <T> void getAll(String path, MyList<T> list, Type typeOfT);\n\n String getUid();\n}",
"@Test\n\tpublic abstract void testTransform4();",
"public interface UserDao {\n /**\n * 执行泛型\n * @param userDomain\n */\n void testGeneric(UserDomain userDomain);\n}",
"void mo83696a(T t);",
"public interface AbstractC7641o0oOoO<T> {\n boolean OooO00o(@NonNull T t, @NonNull File file, @NonNull C7648o0oOoOo o0ooooo);\n}",
"abstract void uminus();",
"@Override\n public void testCreateRequestListSomeFilteredBySourceSystem(){\n }",
"public interface IAutonomousRunner {\n <T> void runSingleAutonomousTx(\n RequestContext ctx,\n int expectedTotal, // expected total number of records (Collections.size())\n Iterable<T> iterable, // provider of loop variables\n Function<T, RequestParameters> requestProvider, // converts a loop variable to a request\n Consumer<StatisticsDTO> logEnhancer, // optional (may be null): enhances the statistics output (set info1...)\n String processId // processId of the statistics log\n );\n}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void execute(Scanner sc) {\n\r\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"void mo83698a(T t);",
"public interface MulitiTypeSupport<T> {\n public int getLayoutId(T item);\n}",
"public abstract String mo83558a(Object obj);",
"public void logic(){\r\n\r\n\t}",
"public interface getCpuData {\n public List<CpuDto> get1DaysCpu(String ip);\n\n public List<CpuDto> get15MinCpu(String ip);\n\n public CpuDto get1Cpu(String ip);\n}",
"@Test\npublic void testCalFileUFP() throws Exception { \n//TODO: Test goes here... \n/* \ntry { \n Method method = ResultService.getClass().getMethod(\"calFileUFP\", int.class, int.class, int.class, EstimationFileData.class); \n method.setAccessible(true); \n method.invoke(<Object>, <Parameters>); \n} catch(NoSuchMethodException e) { \n} catch(IllegalAccessException e) { \n} catch(InvocationTargetException e) { \n} \n*/ \n}",
"T mo26439a();",
"public interface TinyurlService {\n\n /**\n * 根据长链接生成短链接\n * @param baseUrl\n * @param rawUrl\n * @return\n */\n BaseResult<String> createTinyurl(String baseUrl, String rawUrl);\n\n /**\n * 根据短连接code查找长地址\n * @param base62Code\n * @return\n */\n BaseResult<String> getLongUrl(String baseUrl,String base62Code);\n\n /**\n * 个性化code\n * @param baseUrl\n * @param base62Code\n * @param rawUrl\n * @return\n */\n BaseResult<String> createTinyurl(String baseUrl,String base62Code, String rawUrl);\n}",
"abstract T build();",
"@Test\npublic void testCalTransactionUTF() throws Exception { \n//TODO: Test goes here... \n/* \ntry { \n Method method = ResultService.getClass().getMethod(\"calTransactionUTF\", int.class, int.class, int.class, EstimationTransactionData.class); \n method.setAccessible(true); \n method.invoke(<Object>, <Parameters>); \n} catch(NoSuchMethodException e) { \n} catch(IllegalAccessException e) { \n} catch(InvocationTargetException e) { \n} \n*/ \n}",
"@Override\n protected void adicionar(Funcionario funcionario) {\n\n }",
"public interface Processor {\n\n /**\n * Common key on the params map that uses/returns the process method\n */\n enum ParameterKeys {\n ID, BODY, LEFT, RIGHT, STOP_FLAG, RESULT\n }\n\n /**\n * It's the entry point to call the business logic execution on each Processor\n * @param params Map of params that is been use inside the Processor\n * @return the new state of the params after the business logic execution\n * @throws NullPointerException if the params is null, or an expected key inside the map\n * @throws IllegalArgumentException id the value of the param is not valid\n */\n Map<ParameterKeys, Object> process(final Map<ParameterKeys, Object> params) throws NullPointerException, IllegalArgumentException;\n}",
"public interface MetaInformationService extends BasicEcomService{\n\n public String listMetaInformationTypesForPage(String page);\n public Integer getTotalPagesForMetaInformationTypes();\n public Integer getTotalPagesForSearchedMetaInformationTypes(String metaType);\n public String listSearchedMetaInformationTypesForPage(String metaType,String page);\n\n\n}",
"public abstract void mo1184a(Object obj);",
"@Override\r\n\tprotected void intializeSpecific() {\n\r\n\t}",
"T getResult();",
"T getResult();",
"public abstract Instances _getTestingFromParams(String params);",
"public interface AdditionalOrderInforCaller {\n\t/*\n\t * Command define from Order Confirmation API Guide\n\t * JSON and XML format\n\t */\n\t@Headers({\"Accept: application/json\",\"Content-Type: application/json\"})\n\t@RequestLine(\"POST /ordermgmt/order/addorderinfo?sellerid={sellerid}\")\n\tGetAdditionalOrderInformationResponse sendAdditionalOrderInforRequestJSON(@Param(\"sellerid\") String sellerID, GetAdditionalOrderInformationRequest body);\n\t\n\t@Headers({\"Accept: application/xml\",\"Content-Type: application/xml\"})\n\t@RequestLine(\"POST /ordermgmt/order/addorderinfo?sellerid={sellerid}\")\n\tGetAdditionalOrderInformationResponse sendAdditionalOrderInforRequestXML(@Param(\"sellerid\") String sellerID, GetAdditionalOrderInformationRequest body);\n\n\t// Implement default method of interface class that according to Variables.MediaType to run at JSON or XML request.\n\tdefault GetAdditionalOrderInformationResponse sendAdditionalOrderInforRequest(GetAdditionalOrderInformationRequest body) {\n\t\tswitch(Variables.MediaType) {\n\t\tcase JSON:\t\t\t\n\t\t\treturn sendAdditionalOrderInforRequestJSON(Content.SellerID, body);\n\t\t\t\n\t\tcase XML:\t\t\t\n\t\t\treturn sendAdditionalOrderInforRequestXML(Content.SellerID, body);\t\n\t\t\t\n\t\tdefault:\n\t\t\tthrow new RuntimeException(\"Never Happened!\");\n\t\t}\n\t\t\t\t\n\t}\n\t\n\tstatic AdditionalOrderInforCaller buildJSON() {\n\t\tVariables.MediaType = MEDIA_TYPE.JSON;\n\t\t\n\t\treturn new CallerFactory<AdditionalOrderInforCaller>()\n\t\t\t.jsonBuild(AdditionalOrderInforCaller.class, Variables.LogLevel, Variables.Retryer, OrderClient.genClient());\t\t\n\t}\n\n\tstatic AdditionalOrderInforCaller buildXML() {\n\t\tVariables.MediaType = MEDIA_TYPE.XML;\n\t\t\n\t\treturn new CallerFactory<AdditionalOrderInforCaller>()\n\t\t\t.xmlBuild(AdditionalOrderInforCaller.class, Variables.LogLevel, Variables.Retryer, OrderClient.genClient());\t\t\n\t}\n\t\n}",
"@Override\n\tpublic void doIt() {\n\t\t\n\t}",
"void mo25968e(TemplateInfo templateInfo);",
"public interface RegistrationDataExtractor {\n\n RegistrationData extractDataFromObjectLinks(Link[] objectLinks, LwM2mVersion lwM2mVersion);\n\n public class RegistrationData {\n private String alternatePath;\n private Set<ContentFormat> supportedContentFormats;\n private Map<Integer, Version> supportedObjects;\n private Set<LwM2mPath> availableInstances;\n\n public String getAlternatePath() {\n return alternatePath;\n }\n\n public void setAlternatePath(String alternatePath) {\n this.alternatePath = alternatePath;\n }\n\n public Set<ContentFormat> getSupportedContentFormats() {\n return supportedContentFormats;\n }\n\n public void setSupportedContentFormats(Set<ContentFormat> supportedContentFormats) {\n this.supportedContentFormats = supportedContentFormats;\n }\n\n public Map<Integer, Version> getSupportedObjects() {\n return supportedObjects;\n }\n\n public void setSupportedObjects(Map<Integer, Version> supportedObjects) {\n this.supportedObjects = supportedObjects;\n }\n\n public Set<LwM2mPath> getAvailableInstances() {\n return availableInstances;\n }\n\n public void setAvailableInstances(Set<LwM2mPath> availableInstances) {\n this.availableInstances = availableInstances;\n }\n }\n}",
"public abstract Result mo5059a(Params... paramsArr);",
"@Override\n\tpublic void test(Object t) {\n\t\t\n\t}",
"@Override\n\tpublic void test(Object t) {\n\t\t\n\t}",
"public interface StepExecutable<T> {\n\n void execute(T object, MigrationReport report) throws RuntimeException;\n\n}",
"public interface StandardTypesLocalService {\n BigInteger getNewBigInteger(BigInteger bi);\n BigInteger[] getNewBigIntegerArray(BigInteger[] bia);\n \n BigDecimal getNewBigDecimal(BigDecimal bd);\n BigDecimal[] getNewBigDecimalArray(BigDecimal[] bda);\n\n Calendar getNewCalendar(Calendar c);\n Calendar[] getNewCalendarArray(Calendar[] ca);\n \n Date getNewDate(Date d);\n Date[] getNewDateArray(Date[] da);\n\n QName getNewQName(QName qname);\n QName[] getNewQNameArray(QName[] qnames);\n \n URI getNewURI(URI uri);\n URI[] getNewURIArray(URI[] uris);\n \n XMLGregorianCalendar getNewXMLGregorianCalendar(XMLGregorianCalendar xgcal);\n XMLGregorianCalendar[] getNewXMLGregorianCalendarArray(XMLGregorianCalendar[] xgcal);\n \n Duration getNewDuration(Duration d);\n Duration[] getNewDurationArray(Duration[] da);\n \n Object getNewObject(Object obj);\n Object[] getNewObjectArray(Object[] objs);\n \n Image getNewImage(Image img);\n Image[] getNewImageArray(Image[] imgs);\n \n DataHandler getNewDataHandler(DataHandler dh);\n DataHandler[] getNewDataHandlerArray(DataHandler[] dha);\n\n Source getNewSource(Source src);\n Source[] getNewSourceArray(Source[] srcs);\n \n UUID getNewUUID(UUID uuid);\n UUID[] getNewUUIDArray(UUID[] uuids);\n}"
] | [
"0.56364334",
"0.5250442",
"0.5167333",
"0.51622844",
"0.5156509",
"0.5141944",
"0.51415616",
"0.5126186",
"0.50984764",
"0.5089112",
"0.50674415",
"0.50648713",
"0.5058034",
"0.50484043",
"0.5038702",
"0.5019149",
"0.5008189",
"0.50071084",
"0.49944994",
"0.49854502",
"0.4984349",
"0.49827152",
"0.4959407",
"0.49568292",
"0.49427998",
"0.4939998",
"0.49198514",
"0.49161622",
"0.49104604",
"0.49092677",
"0.48931354",
"0.48866364",
"0.48855215",
"0.48792747",
"0.48771852",
"0.48739293",
"0.48724735",
"0.48694733",
"0.4858757",
"0.48570144",
"0.48418045",
"0.48418045",
"0.48404086",
"0.48404086",
"0.48363146",
"0.48361328",
"0.48359144",
"0.4835369",
"0.48328465",
"0.48322055",
"0.48309392",
"0.4824347",
"0.4824347",
"0.48216155",
"0.48198378",
"0.48169744",
"0.48150638",
"0.4812113",
"0.48049337",
"0.4798307",
"0.4792326",
"0.47904778",
"0.47843608",
"0.47829768",
"0.47804552",
"0.47794467",
"0.47765762",
"0.47759983",
"0.4775881",
"0.4775266",
"0.47703767",
"0.4768464",
"0.47675666",
"0.4766461",
"0.47614202",
"0.475853",
"0.47580823",
"0.4749966",
"0.4749934",
"0.47469476",
"0.47388765",
"0.47386953",
"0.4735736",
"0.47349927",
"0.4732779",
"0.472993",
"0.4729324",
"0.47283435",
"0.4726708",
"0.47257122",
"0.47257122",
"0.47220737",
"0.472164",
"0.47205558",
"0.47195274",
"0.47164893",
"0.4714689",
"0.471251",
"0.471251",
"0.47116345",
"0.47112736"
] | 0.0 | -1 |
I was able to use a.removeAll(b) instead of this. | public static <E> boolean intersects(Set<E> a, Set<E> b) {
if (!(a.size() < b.size())) {
// The documentation for Sets.intersection() suggests that it's best that the first set be smaller.
// Hopefully they actually tested that! :D
// (Could just use that. But, uh, this code is already written...)
Set<E> c = a;
a = b;
b = c;
}
for (E e : a) {
if (b.contains(e)) return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void testRemoveAll() {\n\t\tSet<Integer> setA = new HashSet<>(Arrays.asList(1, 2, 3, 4, 5));\n\t\tSet<Integer> setB = new HashSet<>(Arrays.asList(9, 8, 7, 6, 5, 4, 3));\n\t\tsetA.removeAll(setB);\n\t\tSet<Integer> union = new HashSet<>(Arrays.asList(1, 2));\n\t\tassertEquals(setA, union);\n\t}",
"public static void main(String[] args) {\nArrayList<String> al1= new ArrayList<String>();\nal1.add(\"a\");\nal1.add(\"b\");\nal1.add(\"a\");\nal1.add(\"d\");\nal1.add(\"e\");\nal1.add(\"e\");\n\nArrayList<String> al2=new ArrayList<String>();\nal2.add(\"a\");\nal2.add(\"e\");\n\n// al1.removeAll(al2); --> b/d\nal1.retainAll(al2);\n\nfor(String a:al1)\nSystem.out.println(a);\n}",
"public void\t\tremoveAll();",
"@Test\n public void testList(){\n ArrayList<Integer> integers = Lists.newArrayList(1, 2, 3, 4);\n ArrayList<Integer> integers2 = Lists.newArrayList(1, 2, 3, 4, 5);\n// integers2.removeAll(integers);\n// System.out.println(integers2);\n integers2.retainAll(integers);\n System.out.println(integers2);\n }",
"private static HashSet<Annotation> setDifference(HashSet<Annotation> setA,\r\n\t\t\tHashSet<Annotation> setB) {\r\n\r\n\t\tHashSet<Annotation> tmp = new HashSet<Annotation>(setA);\r\n\t\ttmp.removeAll(setB);\r\n\t\treturn tmp;\r\n\t}",
"public ZYSet<ElementType> difference(ZYSet<ElementType> otherSet){\n ZYSet<ElementType> result = new ZYArraySet<ElementType>();\n for(ElementType e :this){\n if(!otherSet.contains(e)){\n result.add(e);\n }\n }\n return result;\n }",
"public void removeAll();",
"public void removeAll();",
"public void removeAll();",
"public void removeAll();",
"public void removeAll();",
"public void removeAll();",
"public void removeAll();",
"public void removeAll();",
"public void removeAll();",
"public void removeAll();",
"public void removeAll();",
"public void removeAll();",
"@Test\n public void testRemoveAll() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n boolean expectedResult = true;\n boolean result = instance.removeAll(c);\n\n assertEquals(expectedResult, result);\n\n }",
"abstract public void removeAll();",
"@Test\n public void testRemoveAll_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n boolean expectedResult = true;\n boolean result = instance.removeAll(c);\n\n assertEquals(expectedResult, result);\n\n }",
"public static void main(String[] args) {\n\t\tCollection c=new ArrayList();\n\t\t\n\t\tc.add(23);\n\t\tc.add(34);\n\t\t\n\t\tCollection c1=new ArrayList();\n\t\t\n\tc1.add(45);\n\tc1.add(67);\n\t\n\tc.addAll(c1);\n\tSystem.out.println(c);\n\t\n\t\n\tCollection c2=new ArrayList();\n\tc2.add(12);\n\tc2.add(23);\n\tc2.add(25);\n\t\n\tCollection c3=new ArrayList();\n\tc3.add(34);\n\tc3.add(45);\n\tc3.add(25);\n\tc3.add(25);\n\t\n\tc2.addAll(c3);\n\t\n\tSystem.out.println(c2);\n\tSystem.out.println(\"-------------------\");\n\t\n\t\n\tc2.removeAll(c3);\n\tSystem.out.println(c2);\n\t\n\tSystem.out.println(\"-------------------\");\n\tCollection c4=new ArrayList();\n\tc4.add(25);\n\tc4.add(23);\n\tc4.add(86);\n\tc4.add(98);\n\t\n\t\n\t\n\tCollection c5=new ArrayList();\n\tc5.add(25);\n\tc5.add(23);\n\tc5.add(12);\n\tc5.add(13);\n\t\n\tc4.retainAll(c5);\n\tSystem.out.println(c4);\n\t\n\tSystem.out.println(\"-------------------\");\n\t\n\tCollection c6=new ArrayList();\n\tc6.add(12);\n\tc6.add(23);\n\t\n\tObject a[]= c6.toArray();\n\tfor(int i=0;i < a.length ; i++)\n\t{\n\t\tSystem.out.println(a[i]);\n\t}\n\t\n\t\n\t\n\t\n\t\n\t\n\n\t\n\t\n\tc4.clear();\n\tSystem.out.println(c4);\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t}",
"@Test\n public void testRemoveAll_Not_Empty() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(1);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 1;\n assertEquals(expectedResult, instance.size());\n\n }",
"void removeAll();",
"void removeAll();",
"public static <T> List<T> difference(List<T> a, List<T> b) {\n\t\tList<T> acc = new ArrayList<T>();\n\t\tfor (T t : a)\n\t\t\tif (!b.contains(t))\n\t\t\t\tacc.add(t);\n\t\treturn acc;\n\t}",
"@Test\n public void testRemoveAll_Not_Empty_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(1);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 1;\n assertEquals(expectedResult, instance.size());\n\n }",
"public static void main(String[] args) {\n\t\tInteger [] a= {1,4,7, 9, 2};\n\t\tInteger [] b={1,7,3,4,5};\n\t\tArrayList <Integer> c=new ArrayList<Integer>();\n\t\tfor(int i=0;i<a.length;i++)\n\t\t{\n\t\t\tfor(int j=0;j<b.length;j++)\n\t\t\t{\n\t\t\t\tif(a[i]==b[j])\n\t\t\t\t{\n\t\t\t\t\tif(!c.contains(a[i]))\n\t\t\t\t\t{\n\t\t\t\t\t\tc.add(a[i]);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"First Method : \"+c);\n\t\t//second method\n\t\tList<Integer> arr1=Arrays.asList(a);\n\t\tList<Integer> arr2=Arrays.asList(b);\n\t\tHashSet<Integer> aset=new HashSet<>(arr1);\n\t\taset.retainAll(arr2);\n\t\tSystem.out.println(\"Second Method: \"+aset);\n\t\t\n\t}",
"@Test\r\n public void removeAll() throws Exception {\r\n\r\n TreeSet<Integer> check = new TreeSet<>();\r\n check.addAll(sInt);\r\n ArrayList<Integer> l = new ArrayList<>();\r\n l.add(4);\r\n l.add(2);\r\n check.removeAll(l);\r\n assertFalse(check.containsAll(l));\r\n assertFalse(check.contains(2));\r\n assertFalse(check.contains(4));\r\n assertTrue(check.contains(1));\r\n assertTrue(check.contains(3));\r\n assertTrue(check.contains(5));\r\n }",
"@Test\n public void remove1() {\n RBTree<Integer> tree = new RBTree<>();\n List<Integer> add = new ArrayList<>(List.of(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10));\n List<Integer> rem = new ArrayList<>(List.of(4, 7, 9, 5));\n for (int i : add) {\n tree.add(i);\n }\n int err = 0;\n Set<Integer> remSet = new HashSet<>();\n for (int i : rem) {\n remSet.add(i);\n boolean removed = tree.remove(i);\n if (!removed && add.contains(i)) {\n System.err.println(\"Could not remove element \" + i + \"!\");\n err++;\n }\n if (removed && !add.contains(i)) {\n System.err.println(\"Removed the non-existing element \" + i + \"!\");\n err++;\n }\n for (int a : add) {\n if (!tree.contains(a) && !remSet.contains(a)) {\n System.err.println(\"Removed element \" + a + \" after removing \" + i + \"!\");\n err++;\n }\n }\n }\n for (int i : rem) {\n if (tree.remove(i)) {\n System.err.println(\"Removed a already remove element \" + i + \"!\");\n err++;\n }\n }\n for (int i : rem) {\n if (tree.contains(i)) {\n System.out.println(\"The element \" + i + \" was not removed!\");\n err++;\n }\n }\n \n assertEquals(\"There were \" + err + \" errors!\", 0, err);\n rem.retainAll(add);\n assertEquals(\"Incorrect tree size!\", add.size() - rem.size(), tree.size());\n }",
"@Test\n public void testRemoveAll_Size() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 0;\n assertEquals(expectedResult, instance.size());\n\n }",
"@Test\n public void testRemoveAll_Size_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 0;\n assertEquals(expectedResult, instance.size());\n\n }",
"public static <T> Set<T> diff(final Set<T> a, final Set<T> b) {\n return new Set<T>() {\n public boolean has(final T n) {\n return a.has(n) && ! b.has(n);\n }\n };\n }",
"public boolean disjoint (Set<Block> a, Set<Block> b) {\n\t\tfor (Block block : a) {\n\t\t\tif (b.contains(block)) return false;\n\t\t}\n\t\treturn true;\n\t}",
"@Test\n\tpublic void testRetainAll() {\n\t Set<Integer> setA = new HashSet<>(Arrays.asList(1, 2, 3, 4, 5));\n\t\tSet<Integer> setB = new HashSet<>(Arrays.asList(9, 8, 7, 6, 5, 4, 3));\n\t setA.retainAll(setB);\n\t Set<Integer> intersection = new HashSet<>(Arrays.asList(3, 4, 5));\n\t assertEquals(setA, intersection);\n }",
"@Test\r\n\tpublic void testRemoveAll() {\r\n\t\tDoubleList sample = new DoubleList(new Munitions(2, 3, \"iron\"));\r\n\t\tsample.add(new Munitions(new Munitions(3, 4, \"iron\")));\r\n\t\tAssert.assertTrue(list.removeAll(sample));\r\n\t\tAssert.assertFalse(list.removeAll(sample));\r\n\t\tAssert.assertEquals(13, list.size());\r\n\t}",
"public void removeAllPartOfSet() {\r\n\t\tBase.removeAll(this.model, this.getResource(), PARTOFSET);\r\n\t}",
"protected void removeFromAllSubsets()\r\n {\n if (!m_subsets.isEmpty()) {\r\n List<SubsetImpl> tmp = new ArrayList<SubsetImpl>(m_subsets);\r\n m_subsets.clear();\r\n tmp.forEach(r -> {if (r != null) r.remove(this);});\r\n }\r\n }",
"public void removeAllInterpretedBy() {\r\n\t\tBase.removeAll(this.model, this.getResource(), INTERPRETEDBY);\r\n\t}",
"@Override\n public SetInterface<T> difference(SetInterface<T> rhs) {\n //create return SetInterface\n SetInterface<T> result = new ArraySet();\n //Look through the calling set\n for(int i = 0; i < numItems; i++){\n //if the item is NOT also in the param set, add it to result\n if(!rhs.contains(arr[i]))\n result.addItem(arr[i]);\n }\n return result;\n }",
"@Override\n public boolean retainAll(Collection<?> c) {\n boolean result = true;\n for (Object current : c) {\n if (!contains(current)) {\n result = false;\n }\n }\n for (E current : this) {\n if (!c.contains(current)) {\n result &= remove(current);\n }\n }\n return result;\n }",
"public void removeAllElements();",
"@Override\n public boolean removeAll(Collection<?> c) {\n boolean result = true;\n for (Object current : c) {\n result &= remove(current);\n }\n return result;\n }",
"@Override\r\n\tpublic boolean removeAll(Collection<?> c) {\n\t\treturn set.removeAll(c);\r\n\t}",
"@Override\n public boolean retainAll(Collection<?> c) {\n Set<T> toRemove = new HashSet<>(elements);\n toRemove.removeAll(c);\n return removeAll(toRemove);\n }",
"public void removeAllItems ();",
"void removeContains(WrappedIndividual oldContains);",
"@Override\n public boolean removeAll(Collection<?> c) {\n Object[] newArray = c.toArray();\n for (int i = 0; i < newArray.length; i++) {\n remove(newArray[i]);\n }\n return true;\n }",
"private void cleanIntersectionsFromCommonEndPoints (Coordinate[] endPointsA, Coordinate[] endPointsB, List<Coordinate> intersectionPoints) {\r\n\t\tif (intersectionPoints != null && intersectionPoints.size()>0) {\r\n\t\t\tfor (int i = 0; i<endPointsA.length; i++) {\r\n\t\t\t\tif (endPointsA[i].equals2D(endPointsB[i])) {\r\n\t\t\t\t\tif (intersectionPoints.contains(endPointsA[i])) {\r\n\t\t\t\t\t\tintersectionPoints.remove(intersectionPoints.indexOf(endPointsA[i]));\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}",
"@Test\n public void testContainsAll_Not_Contain() {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(4);\n\n Collection c = Arrays.asList(1, 2, 5);\n\n boolean expResult = false;\n boolean result = instance.containsAll(c);\n assertEquals(expResult, result);\n }",
"public synchronized void removeAllTeamMembers() {\n teamSelection = new HashSet<>();\n }",
"@Override\npublic void removeAll(Collection<Integer> collection) {\n\t\n}",
"public void diff(Value old, StringBuilder b) {\n Value v = new Value(this);\n v.flags &= ~old.flags; // TODO: see Value.remove above (anyway, diff is only used for debug output)\n if (v.object_labels != null) {\n v.object_labels = newSet(v.object_labels);\n if (old.object_labels != null)\n v.object_labels.removeAll(old.object_labels);\n }\n if (v.getters != null) {\n v.getters = newSet(v.getters);\n if (old.getters != null)\n v.getters.removeAll(old.getters);\n }\n if (v.setters != null) {\n v.setters = newSet(v.setters);\n if (old.setters != null)\n v.setters.removeAll(old.setters);\n }\n if (old.excluded_strings != null) {\n v.excluded_strings = newSet(old.excluded_strings);\n if (excluded_strings != null)\n v.excluded_strings.removeAll(excluded_strings);\n }\n if (v.included_strings != null) {\n v.included_strings = newSet(v.included_strings);\n if (old.included_strings != null)\n v.included_strings.removeAll(old.included_strings);\n }\n b.append(v);\n }",
"@Override\n\t\tpublic boolean removeAll(Collection<?> c) {\n\t\t\treturn false;\n\t\t}",
"boolean removeAll(Collection<?> c);",
"public void removeAll(String k1, String k2) {\n java.util.HashMap<String, V> newMap = new java.util.HashMap<String, V>(map);\n for (String key: newMap.keySet()) {\n int ind = key.indexOf(\"|\");\n String a = key.substring(0, ind);\n String b = key.substring(ind + 1, key.length());\n\n // if the current key contains either k1 or k2 remove it\n if (a.equals(k1) || b.equals(k1) || a.equals(k2) || b.equals(k2)) {\n map.remove(a + \"|\" + b);\n map.remove(b + \"|\" + a);\n } // END if\n } // END for key\n }",
"public void deselectAll()\n {\n }",
"public native VertexList removeSubList(VertexNode a, VertexNode b);",
"public void removeAll() {\n this.arrayList = null;\n this.arrayList = new ArrayList<>();\n }",
"public static Set<Doc> not(Set<Doc> set1,Set<Doc> corpus) {\r\n \t\tif(set1 == null)\r\n \t\t\tset1 = new TreeSet<Doc>();\r\n \t\tTreeSet<Doc> result = new TreeSet<Doc>(corpus);\r\n \t\tresult.removeAll(set1);\r\n \t\treturn result;\r\n \t}",
"static public boolean excludesAll(Collection source, Collection arg) {\n\t\tIterator it = arg.iterator();\n\t\twhile ( it.hasNext() ) {\n\t\t\tObject elem = it.next();\n\t\t\tif ( source.contains(elem) ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"@Test\n public void testRetainAll_Empty_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 1, 1, 1, 1, 1);\n instance.addAll(c);\n\n c = Arrays.asList(2, 3);\n instance.retainAll(c);\n\n int expectedResult = 0;\n assertEquals(expectedResult, instance.size());\n\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tArrayList <String> objArray = new ArrayList<String>();\r\n\t\tArrayList <String> objArray2 = new ArrayList<String>();\r\n\t\t\r\n\t\tobjArray2.add(0, \"common1\");\r\n\t\tobjArray2.add(1, \"common2\");\r\n\t\tobjArray2.add(2, \"notcommon0\");\r\n\t\tobjArray2.add(3, \"notcommon1\");\r\n\r\n\t\tobjArray.add(0, \"common1\");\r\n\t\tobjArray.add(1, \"common2\");\r\n\t\tobjArray.add(2, \"notcommon2\");\r\n\t\t\r\n\t\tSystem.out.println(\"Array elements of Array1\"+objArray);\r\n\t\tSystem.out.println(\"Array elements of Array2\"+objArray2);\r\n\t\t\r\n\t\tobjArray.retainAll(objArray2);\r\n\t\t// retainAll : objArray의 객체를 남겨라. 그러나 objArray2 중에서 공통된것만 남기고 나머지는 없애라.\r\n\t\t// 양쪽 배열에 공통적으로 포함되있는 것만을 뽑고 싶을 때, retainAll이라는 메소드펑션을 사용하는 것이다.\r\n\t\t\r\n\t\tSystem.out.println(\"Array1 after retaining common elements of Array1 & Array2\"+objArray);\r\n\r\n//\t\t결과\r\n//\t\tArray elements of Array1[common1, common2, notcommon2]\r\n//\t\tArray elements of Array2[common1, common2, notcommon0, notcommon1]\r\n//\t\tArray1 after retaining common elements of Array1 & Array2[common1, common2]\r\n\t\t\r\n\t\t\r\n\t}",
"public void test_retainAll() {\r\n try {\r\n List<WrongHashCode> retain = new ArrayList<WrongHashCode>();\r\n retain.add(new WrongHashCode(\"1\"));\r\n \r\n Set<WrongHashCode> set = IdentityHashSet.create();\r\n set.add(new WrongHashCode(\"2\"));\r\n \r\n assertTrue(set.retainAll(retain));\r\n assertEquals(0, set.size());\r\n \r\n fail(\"retainAll works now, rewrite test\");\r\n } catch (UnsupportedOperationException e) {\r\n //passed\r\n }\r\n }",
"@Test\r\n public void removeAndContains() throws Exception {\r\n TreeSet<Integer> s = new TreeSet<>();\r\n s.addAll(sInt);\r\n s.remove(2);\r\n assertFalse(s.contains(2));\r\n }",
"@Override\r\n\tpublic boolean removeAll(Collection<?> c) {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic boolean removeAll(Collection<?> c) {\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic boolean removeAll(Collection<?> c) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean removeAll(Collection<?> c) {\n\t\treturn false;\n\t}",
"public void removeAll()\n {\n this.front = null;\n this.rear = null;\n }",
"@Test\n public void testRemove_int_Order() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n List<Integer> expResult = Arrays.asList(1, 1, 1, 1, 1, 1);\n\n assertTrue(isEqual(expResult, instance));\n\n }",
"@Test\n public void testRetainAll_Empty() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n\n instance.add(1);\n instance.add(1);\n instance.add(1);\n instance.add(1);\n\n Collection c = Arrays.asList(2, 3);\n instance.retainAll(c);\n\n int expectedResult = 0;\n assertEquals(expectedResult, instance.size());\n\n }",
"private static Set symmetricSetDifference (Set<Integer> set1, Set<Integer> set2)\n {\n Set<Integer> skæringspunktet = new HashSet<Integer>(set1);\n\n // Holder på set2 også\n skæringspunktet.retainAll(set2);\n\n // Set1 fjerner alt fra Settet\n set1.removeAll(skæringspunktet);\n // Set1 fjerner alt fra Settet\n set2.removeAll(skæringspunktet);\n\n // Tilføjer alt fra set2 til set1\n set1.addAll(set2);\n\n // Returnerer set1\n return set1;\n }",
"public SetSet setDifference(SetSet second){\n\t\tSetSet result = new SetSet();\n\t\tfor(int i=0;i<size();i++){\n\t\t\tif(second.contains(get(i))==-1){\n\t\t\t\tresult.add(get(i));\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"@Override\n public SetI subtract(SetI other) {\n int[] newArr = new int[count];\n int i = 0;\n\n // For each element I have,\n for (Integer e : this) {\n // If you do not...\n if (!other.contains(e)) {\n newArr[i++] = e;\n }\n }\n\n return new Set(newArr, i);\n }",
"@Test\n public void testRemove_int_Order_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.remove(2);\n\n List<Integer> expResult = Arrays.asList(1, 1, 1, 1, 1, 1);\n\n assertTrue(isEqual(expResult, instance));\n\n }",
"public void deleteDoubles() {\r\n\t for (int j = 0; j < this.size()-1; j++) {\r\n\t for (int i = j+1; i < this.size(); i++) {\r\n\t if (this.get(i).equals(this.get(j))) {\r\n\t this.remove(i);\r\n\t i--;\r\n\t }\r\n\t }\r\n\t }\r\n\t }",
"public static void main(String[] args) {\n\t\tArrayList<String> ar = new ArrayList<String>();\n\t\tar.add(\"One\");\n\t\tar.add(\"Two\");\n\t\tSystem.out.println(\"Size of list ar is \"+ar.size());\n\t\t\n\t\tArrayList<String> ar2 = new ArrayList<String>();\n\t\tar2.add(\"Three\");\n\t\tar2.add(\"Four\");\n\t\t\n\t\tar.addAll(ar2);\n\t\tSystem.out.println(\"After performing addll size of ar is\"+ar.size());\n\t\tSystem.out.println(\"Printing elements of ar\");\n\t\tfor(String s:ar) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t\t\n\t\tar.removeAll(ar2);\n\t\tSystem.out.println(\"After performing removeall size of ar is\"+ar.size());\n\t\tSystem.out.println(\"Printing elements of ar\");\n\t\tfor(String s:ar) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t\tar.retainAll(ar2);\n\t\tSystem.out.println(\"After performing retain all size of ar is\"+ar.size());\n\t\tSystem.out.println(\"Printing elements of ar\");\n\t\tfor(String s:ar) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t\tSystem.out.println(ar2.get(1));\n\t\t\n\t}",
"private Set<String> getIntersection( Set<String> a, Set<String> b ) {\n\t\tSet<String> intersection = new HashSet<String>(a);\n\t\tintersection.retainAll(b);\n\t\treturn intersection;\n\t}",
"public static <T> void intersectionToSet1(HashSet<T> set1, HashSet<T> set2) {\n for (T element : set1) {\n if (!set2.contains(element)) {\n set1.remove(element);\n }\n }\n }",
"public static void main(String[] args) {\n\t\tSet<Character> setA = new HashSet<Character>();\n\t\tchar[] carr = \"abcdef\".toCharArray();\n\t\tfor (char c : carr) {\n\t\t\tsetA.add(c);\n\t\t}\n\t\t\n\t\tSet<Character> setB = new HashSet<Character>();\n\t\tchar[] carr2 = \"chdedf\".toCharArray();\n\t\tfor (char c : carr2) {\n\t\t\tsetB.add(c);\n\t\t}\n\t\tsetB.removeAll(setA);\n\t\tSystem.out.println(setA.containsAll(setB));\n\t\tSystem.out.println(setB.isEmpty());\n\t\t\n\t\tSystem.out.println(contains(\"asdfkhas\", \"dfa\"));\n\t\tSystem.out.println(contains1(\"asdfkhas\", \"defa\"));\n\t}",
"public ArrBag<T> difference( ArrBag<T> other )\n {\n // THIS ARRBAG WILL NEVER TRIGGER AN UPSIZE BECUASE YOU MADE IT JUST BIG ENOUGH FOR THE LARGEST POSSIBLE DIFF\n ArrBag<T> diffResult = new ArrBag<T>(this.size() + other.size());\n int differenceCount = 0;\n\n for(int i =0; i<this.size(); i++)\n {\n if(!other.contains(this.get(i)) && !diffResult.contains(this.get(i)))\n {\n diffResult.add(this.get(i));\n }\n // change the 0 to the right value for diff\n }\n return diffResult; \n }",
"public final boolean removeAll(Object... elements) {\n if (elements.length == 0) {\n return false;\n }\n\n synchronized (sync) {\n if (array == null) {\n return false;\n }\n\n boolean result = false;\n for (Object element : elements) {\n final T[] oldArray = array;\n\n\n array = ArrayUtils.remove(array, element);\n\n result |= (oldArray != array);\n }\n\n return result;\n }\n }",
"private static <T> Set<T> union(Collection<T> c1, Collection<T> c2) {\n return Stream.concat(c1.stream(), c2.stream()).collect(Collectors.toUnmodifiableSet());\n }",
"static List<Integer> unique(List<Integer> a, List<Integer> b) {\n\t\t\n\t\t// Base case 01:\n\t\tif (a.isEmpty()) {\n\t\t\t\n\t\t\treturn b;\n\t\t\n\t\t // Base case 02:\n\t\t} else if (b.isEmpty()) {\n\t\t\t\n\t\t\treturn a;\n\t\t\n\t\t // Recursive step:\n\t\t} else if (a.getHead() < b.getHead()) {\n\t\t\t\n\t\t\treturn new List<>(a.getHead(), unique(a.getTail(), b));\n\t\t\t\n\t\t} else if (a.getHead() > b.getHead()) {\n\t\t\t\n\t\t\treturn new List<>(b.getHead(), unique(a, b.getTail()));\n\t\t\t\n\t\t} else { // a.getHead() == b.getHead()\n\t\t\t\n\t\t\treturn unique(a.getTail(), b.getTail());\n\t\t}\n\t}",
"public Set Difference(Set secondSet) {\n\t\t\n\t\tArrayList<String> firstArray = noDuplicates(stringArray);\n\t\t// Taking out duplications out of our sets by calling the noDuplicates private function\n\t\tArrayList<String> secondArray = noDuplicates(secondSet.returnArray());\n\t\t\n\t\tArrayList<String> differenceOfBoth = new ArrayList<String>();\n\t\t// New ArrayList to hold the final values\n\t\t\n\t\tfor (int i=0; i < firstArray.size(); i++) {\n\t\t\tif (secondArray.contains(firstArray.get(i)) == false && differenceOfBoth.contains(firstArray.get(i)) == false && firstArray.get(i).equals(\"emptyElement\") == false) {\n\t\t\t\tdifferenceOfBoth.add(firstArray.get(i));\n\t\t\t\t// If our second array does not contain that same element as our first array, our final ArrayList does not already contain the element, and the element is not\n\t\t\t\t// an empty string (A string containing the phrase \"emptyElement\"), then add the element to our final ArrayList\n\t\t\t}\n\t\t\t\n\t\t\tif (secondArray.contains(firstArray.get(i)) == false && differenceOfBoth.contains(firstArray.get(i)) == false && firstArray.get(i).equals(\"emptyElement\")) {\n\t\t\t\tdifferenceOfBoth.add(\"\");\n\t\t\t\t// If our second array does not contain that same element as our first array, our final ArrayList does not already contain the element, and the element is\n\t\t\t\t// an empty string (A string containing the phrase \"emptyElement\"), then add an empty string to our final ArrayList\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\tSet differenceReturn = new Set(differenceOfBoth); // Initiate a Set object from our final ArrayList\n\t\t\n\t\treturn differenceReturn; // Return the final Set Object\n\t}",
"public static void main(String[] args) {\n\n ArrayList<String> strArray = new ArrayList<>();\n strArray.add(\"man\");\n strArray.add(\"hi\");\n strArray.add(\"yo\");\n strArray.add(\"hi\");\n String strToBeRemoved =\"hi\";\n\n removeAll(strArray, strToBeRemoved);\n\n\n }",
"public static <T> List<T> union(List<T> a, List<T> b) {\n\t\t\n\t\tHashMap<T, Boolean> include = new HashMap<T, Boolean>();\n\t\t\n\t\tfor (T elt : a)\n\t\t\tinclude.put(elt, true);\n\t\tfor (T elt : b)\n\t\t\tinclude.put(elt, true);\n\t\t\n\t\tList<T> toReturn = new ArrayList<T>();\n\t\tfor (T elt : include.keySet())\n\t\t\ttoReturn.add(elt);\n\t\t\n\t\treturn toReturn;\n\t}",
"public Value removeObjects(Set<ObjectLabel> objs) {\n checkNotPolymorphicOrUnknown();\n checkNoGettersSetters();\n if (object_labels == null)\n return this;\n Value r = new Value(this);\n r.object_labels = newSet(r.object_labels);\n r.object_labels.removeAll(objs);\n if (r.object_labels.isEmpty())\n r.object_labels = null;\n return canonicalize(r);\n }",
"@Test\n public void testRetainAll() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n boolean expectedResult = true;\n boolean result = instance.retainAll(c);\n\n assertEquals(expectedResult, result);\n }",
"private static void RemoveEdge(Point a, Point b)\n {\n //Here we use a lambda expression/predicate to express that we're looking for a match in list\n //Either if (n.A == a && n.B == b) or if (n.A == b && n.B == a)\n edges.removeIf(n -> n.A == a && n.B == b || n.B == a && n.A == b);\n }",
"public boolean removeAll(Collection arg0) {\r\n\r\n\t\treturn data.removeAll(arg0);\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n \tprivate void getUnMatched(ArrayList<NameAndListener> oldIn, ArrayList<ContentName> newIn, \n \t\t\tArrayList<NameAndListener> oldOut, ArrayList<ContentName>newOut) {\n \t\tnewOut.addAll(newIn);\n \t\tfor (NameAndListener ial : oldIn) {\n \t\t\tboolean matched = false;\n \t\t\tfor (ContentName name : newIn) {\n \t\t\t\tif (ial.name.equals(name)) {\n \t\t\t\t\tnewOut.remove(name);\n \t\t\t\t\tmatched = true;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (!matched)\n \t\t\t\toldOut.add(ial);\n \t\t}\n \t\t\n \t\t// Make sure no name can be expressed a prefix of another name in the list\n \t\tArrayList<ContentName> tmpOut = (ArrayList<ContentName>)newOut.clone();\n \t\tfor (ContentName cn : tmpOut) {\n \t\t\tfor (ContentName tcn : tmpOut) {\n \t\t\t\tif (tcn.equals(cn))\n \t\t\t\t\tcontinue;\n \t\t\t\tif (tcn.isPrefixOf(cn))\n \t\t\t\t\tnewOut.remove(cn);\n \t\t\t\tif (cn.isPrefixOf(tcn))\n \t\t\t\t\tnewOut.remove(tcn);\n \t\t\t}\n \t\t}\n \t}",
"private static ArrayList<MP> removeOverlap(ArrayList<MP> pOriginal, ArrayList<MP> pOverlap)\n\t{\n\t\tfor (MP mp : pOverlap)\n\t\t{\n\t\t\tpOriginal.remove(mp);\n\t\t}\n\t\treturn pOriginal;\n\t}",
"public void removeAll(Object[] toRemove) {\r\n\t\tAssert.isNotNull(toRemove);\r\n\t\tfor (Object object : toRemove) {\r\n\t\t\tdata.remove(object);\r\n\t\t}\r\n\r\n\t\tfireRemove(toRemove);\r\n\t}",
"@Test\r\n public void retainAll() throws Exception {\r\n TreeSet<Integer> check = new TreeSet<>();\r\n check.addAll(sInt);\r\n ArrayList<Integer> l = new ArrayList<>();\r\n l.add(4);\r\n l.add(2);\r\n check.retainAll(l);\r\n assertTrue(check.containsAll(l));\r\n assertFalse(check.contains(1));\r\n assertFalse(check.contains(3));\r\n assertFalse(check.contains(5));\r\n\r\n }",
"public void removeAll() {\n/* 105 */ this.connectionToTimes.clear();\n/* */ }",
"private boolean done(Complex[] a, Complex[] b) {\n\t\tboolean unchanged = true;\n\t\tComplex delta;\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tdelta = a[i].subtract(b[i]);\n\t\t\tunchanged &= Math.abs(delta.getReal()) < epsilon\n\t\t\t\t\t&& Math.abs(delta.getImaginary()) < epsilon;\n\t\t}\n\t\treturn unchanged;\n\t}",
"public boolean removeAll(OpenERPRecordSet c) {\r\n\t\tboolean allOK = false;\r\n\t\tIterator<OpenERPRecord> i = c.iterator();\r\n\t\twhile (i.hasNext()) {\r\n\t\t\tOpenERPRecord o = i.next();\r\n\t\t\tallOK = this.remove(o) || allOK;\r\n\t\t}\r\n\t\treturn allOK;\r\n\t}",
"void compareDeletion();",
"@Test\n public void testRetainAll_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n boolean expectedResult = true;\n boolean result = instance.retainAll(c);\n\n assertEquals(expectedResult, result);\n\n }"
] | [
"0.7650577",
"0.7585007",
"0.730709",
"0.7101635",
"0.6983502",
"0.685387",
"0.68258953",
"0.68258953",
"0.68258953",
"0.68258953",
"0.68258953",
"0.68258953",
"0.68258953",
"0.68258953",
"0.68258953",
"0.68258953",
"0.68258953",
"0.68258953",
"0.6754357",
"0.6738438",
"0.6727038",
"0.6697935",
"0.6683096",
"0.65873384",
"0.65873384",
"0.65420014",
"0.651866",
"0.6460205",
"0.6403756",
"0.62902546",
"0.6289956",
"0.6248389",
"0.61992353",
"0.6167937",
"0.6092303",
"0.608485",
"0.60222036",
"0.6016171",
"0.5994482",
"0.5976168",
"0.59720707",
"0.59617144",
"0.59235215",
"0.59222907",
"0.5917792",
"0.5867121",
"0.58663636",
"0.58505565",
"0.58349514",
"0.5822611",
"0.5796275",
"0.57864654",
"0.57747746",
"0.57661915",
"0.5749833",
"0.57497424",
"0.5719712",
"0.57160944",
"0.571522",
"0.5709752",
"0.5708731",
"0.57075524",
"0.5707217",
"0.5704352",
"0.56866276",
"0.5681707",
"0.5681707",
"0.5680727",
"0.5680727",
"0.5676345",
"0.5663002",
"0.56568474",
"0.56460106",
"0.5641772",
"0.5641729",
"0.56396943",
"0.5628912",
"0.5627828",
"0.5621857",
"0.5617562",
"0.5610331",
"0.5606028",
"0.559418",
"0.55800515",
"0.5558397",
"0.5557521",
"0.5548174",
"0.55426854",
"0.5542445",
"0.5539748",
"0.5536822",
"0.5533521",
"0.5527094",
"0.5519184",
"0.5502784",
"0.5501308",
"0.54999065",
"0.54991865",
"0.5496391",
"0.5494894",
"0.5492997"
] | 0.0 | -1 |
Sugestao do Daniel Oliveira, de comparacao de objeto mensagem, excelente. | @Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (!(obj instanceof Message))
return false;
Message other = (Message) obj;
if (ip == null) {
if (other.ip != null)
return false;
} else if (!ip.equals(other.ip))
return false;
if (network == null) {
if (other.network != null)
return false;
} else if (!network.equals(other.network))
return false;
if (ownerLogin == null) {
if (other.ownerLogin != null)
return false;
} else if (!ownerLogin.equals(other.ownerLogin))
return false;
if (pcname == null) {
if (other.pcname != null)
return false;
} else if (!pcname.equals(other.pcname))
return false;
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int compare(mess m){\n if (m.get_avail()!=this.get_avail()){\r\n \t//System.out.println(\"yes\");\r\n if (m.get_avail()>this.get_avail())return 1;\r\n else return -1;\r\n }\r\n else if (m.get_nutrition()!=this.get_nutrition()){\r\n \t//System.out.println(m.get_nutrition()+\" \"+this.get_nutrition());\r\n if (m.get_nutrition()>this.get_nutrition())return 1;\r\n else return -1;\r\n }\r\n else if (m.get_hygiene()!=this.get_hygiene()){\r\n if (m.get_hygiene()>this.get_hygiene())return 1;\r\n else return -1;\r\n }\r\n else{\r\n if (m.get_deliv()<this.get_deliv())return 1;\r\n else return -1;\r\n }\r\n }",
"public String comunica() {\r\n// ritorna una stringa\r\n// posso usare il metodo astratto \r\n return msg + AggiungiQualcosa();\r\n }",
"private static String mensagemProvavel(String nuvemVista[]) {\n\t\tString padraoClimas[][] = {\r\n\t\t\t\t{\"tempestade\", \"1\", \"1\", \"1\", \"1\", \"1\"},\r\n\t\t\t\t{\"chuva\",\t \"1\", \"0\", \"1\", \"0\", \"0\"},\r\n\t\t\t\t{\"nublado\",\t \"0\", \"1\", \"0\", \"1\", \"0\"},\r\n\t\t\t\t{\"sol\", \t \"0\", \"0\", \"0\", \"0\", \"1\"}\r\n\t\t};\r\n\t\t\r\n\t\tint iguais[][] = new int[padraoClimas.length][1];\r\n\t\t\r\n\t\t// Realiza comparação das nuvens \"vistas\" com os padroes de nuvens e contaquantas igualdades em cada clima padrao\r\n\t\tfor(int i = 0; i < padraoClimas.length; i++) {\r\n\t\t\tfor(int x = 1; x < padraoClimas[i].length; x++) {\r\n\t\t\t\tif(padraoClimas[i][x] == nuvemVista[x-1]) {\r\n\t\t\t\t\tiguais[i][0]++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tint maiorIgualdade = iguais[0][0];\r\n\t\tString clima = padraoClimas[0][0];\r\n\t\t\r\n\t\t// Checa qual dos climas tem maior igualdades e define o clima\r\n\t\tfor(int l = 0; l < iguais.length; l++) {\r\n\t\t\tif(iguais[l][0] == 5) {\r\n\t\t\t\tclima = padraoClimas[l][0];\r\n\t\t\t} else if (iguais[l][0] > maiorIgualdade) {\r\n\t\t\t\tmaiorIgualdade = iguais[l][0];\r\n\t\t\t\tclima = padraoClimas[l][0];\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn clima;\r\n\t}",
"@Override\n\tpublic boolean verificarMensaje(String mensaje) {\n\t\tboolean reenvio = false;\n\t\tSystem.out.println(mensaje.length());\n\t\tSystem.out.println(\"Mensaje recibido: \"+ mensaje);\n\t\tString lectura = mensaje.substring(0, 12);\n\t\tSystem.out.println(\"Inicio de trama: \"+lectura);\n\t\tif (lectura.equals(inicioTrama)) {\n\t\t\tlectura = mensaje.substring(12, 14);\n\t\t\tSystem.out.println(\"Tpo de trama: \"+lectura);\n\t\t\tif (lectura.equals(\"01\")) {\n\t\t\t\treenvio = tipoTrama01(mensaje);\n\t\t\t}\n\t\t}\n\t\treturn reenvio;\n\t}",
"public String procesarMensaje(String mensaje) {\n int max = 95;//numero maximo de caracteres por mensaje\n String strMenAux = mensaje;\n\n strMenAux = eliminarEspaciosMayoresA1(strMenAux);\n strMenAux = eliminarEspaciosInicialesFinales(strMenAux);\n\n strMenAux = quitarCaracteresNoImprimibles(strMenAux);\n\n int intLonMensaje = strMenAux.length();\n\n if (intLonMensaje <= max) {\n return strMenAux;\n } else {\n strMenAux = limitarTamanoMensaje(mensaje, max);\n return strMenAux;\n }\n }",
"public String mensagemDeRegistros(){//METODO QUE DIZ INICIO E FIM DOS REGISTROS LISTADOS\r\n\t\treturn dao.getMensagemNavegacao();\r\n\t}",
"public String checkMessage() {\n\t\tString userLatestStep = questionBot.get(owner.id());\n\n\t\t//se a amensagem comeca com '/', trata-se de um item de menu sendo acionado\n\t\tif(answerUser != null && answerUser.startsWith(\"/\"))\n\t\t\tuserLatestStep = answerUser;\n\n\t\t//busca no mapa de respostas as opcoes para o usuario\n\t\tObject options = response.get(userLatestStep);\n\n\t\t//obtem a mensagem a ser devolvida para o usuario\n\t\tString result = parseResult(options, answerUser);\n\n\t\t//mantem a ultima resposta do usuario\n\t\tuserLatestAnswer.put(owner.id(), answerUser);\n\n\t\treturn result;\n\t}",
"@Override\n public int compare(Message o1, Message o2)\n {\n String o1Name = o1.to.firstName + o1.to.lastName;\n String o2Name = o2.to.firstName + o2.to.lastName;\n return o1Name.compareTo(o2Name);\n }",
"@Override\n public String getMessage() {\n String chuoi=\"\";\n if (maCD.length()!=5)\n chuoi=\"MaCD bao gom 5 ki tu\";\n else if (soBaiHat<10)\n chuoi=\"So bai hat phai lon hon 10 bai\";\n return\n chuoi;\n }",
"@Override\n public int compareTo(MensagemEleicao o) {\n int i = relogio.compareTo(o.relogio);\n if(i==0){ //se a comparação do relogio for igual\n if(id<o.getId()){ //usa o id maior como criterio de decisão;\n return -1;\n }\n return 1;\n }\n return i;\n }",
"public int compare(Message o1, Message o2)\n {\n\n if (o1.priority <o2.priority)\n {\n return -1;\n }\n if (o1.priority > o2.priority)\n {\n return 1;\n }\n if(o1.priority == o2.priority)\n {\n if (o1.port <= o2.port)\n {\n return -1;\n }\n if (o1.port > o2.port)\n {\n return 1;\n }\n }\n return 0;\n }",
"private String getAlertaPorValor(Evento ultimoEvento)\n\t{\n\t\t// O alerta padrao sera o status OK, dependendo do valor do atraso esse alerta pode ser modificado\n\t\tString alerta = Alarme.ALARME_OK;\n\n\t\t// Verifica se o contador classifica como alerta\n\t\tdouble valor = ultimoEvento.getValorContador();\n\t\t// Verifica se o contador classifica como alerta pelo valor minimo ou maximo\n\t\tif ( valor > alarme.getValorMinFalha() && valor < alarme.getValorMinAlerta() )\n\t\t{\n\t\t\talerta = Alarme.ALARME_ALERTA;\n\t\t\talarme.setMotivoAlarme(Alarme.MOTIVO_VALOR_MIN);\n\t\t}\n\t\telse if ( valor > alarme.getValorMaxAlerta() && valor < alarme.getValorMaxFalha() )\n\t\t\t{\n\t\t\t\talerta = Alarme.ALARME_ALERTA;\n\t\t\t\talarme.setMotivoAlarme(Alarme.MOTIVO_VALOR_MAX);\n\t\t\t}\n\n\t\t// Verifica se o contador classifica como falha. Devido a hierarquia de erro\n\t\t// o teste para falha e feito posterior pois logicamente tem uma gravidade superior\n\t\tif ( valor < alarme.getValorMinFalha() )\n\t\t{\n\t\t\talerta = Alarme.ALARME_FALHA;\n\t\t\talarme.setMotivoAlarme(Alarme.MOTIVO_VALOR_MIN);\n\t\t}\n\t\telse if ( valor > alarme.getValorMaxFalha() )\n\t\t\t{\n\t\t\t\talerta = Alarme.ALARME_FALHA;\n\t\t\t\talarme.setMotivoAlarme(Alarme.MOTIVO_VALOR_MAX);\n\t\t\t}\n\n\t\tlogger.debug(alarme.getIdAlarme()+\" - Contador:\"+valor);\n\t\treturn alerta;\n\t}",
"public int compareTo(Message other) {\n \tif(date.after(other.date)){\n\t\treturn 1;\n \t}\n \telse{\n\t\treturn -1;\n \t}\n }",
"@Override\n public int compareTo(Message m) {\n return this.date.compareTo(m.date);\n }",
"public int getMes();",
"private String geraMensagem(Mensagem msg) {\n\t\treturn new StringBuilder()\n\t\t\t.append(msg.remetente.nome)\n\t\t\t.append(\" enviou para \")\n\t\t\t.append(msg.destinatario.nome)\n\t\t\t.append(\" uma mensagem suspeita.\")\n\t\t\t.toString();\n\t}",
"@Test\n public void testCompareTo() throws InterruptedException {\n Thread.sleep(10); // so we get an older message\n ChatMessage newerChatMessage = new ChatMessage(\"Javache\", \"JaJa!\");\n \n assertEquals(0,chatMessage.compareTo(chatMessage));\n assertTrue(chatMessage.compareTo(newerChatMessage) < 0);\n assertTrue(newerChatMessage.compareTo(chatMessage) > 0);\n }",
"Object getMessage();",
"private String getMessageDaide(){\n\t\tString message;\n\t\tmessage = \"Bonjour et bienvenue dans votre application de Gestion de l'amortissement.\\n\\n\" +\n\t\t\"Pour pouvoir generer un tableau d'amortissement il vous faudra connaitre au\\nminimum \" +\n\t\t\"3 valeurs coherentes les unes avec les autres parmis : \\n\" +\n\t\t\" - le montant emprunte\\n\" +\n\t\t\" - le taux d'emprunt\\n\" +\n\t\t\" - la duree du remboursement\\n\" +\n\t\t\" - l'annuitee maximale\\n\\n\" +\n\t\t\"Cependant, si vous souhaitez generer un tableau a partir de 4 valeurs, \\ncelles-ci devront\" +\n\t\t\" etre strictement exactes, au risque de produire une erreur.\\n\\n\" +\n\t\t\"Veuillez ensuite saisir vos valeurs ainsi que le type de remboursement \\nqui vous \" +\n\t\t\"convient puis cliquez sur valider pour generer le tableau \\nd'amortissement, ainsi que la \" +\n\t\t\"valeur inconnue si vous n'en aviez saisi que 3.\\n\\n\" +\n\t\t\"Vous avez de plus la possibilite d'exporter votre tableau d'amortissement au \\nformat Excel (.xls)\" +\n\t\t\"grace au bouton Export.\";\n\t\treturn message;\n\t}",
"public String pedirDato(String mensaje) \r\n\t{\r\n\t\treturn (JOptionPane.showInputDialog(null, mensaje,\"Elija una opcion\",JOptionPane.INFORMATION_MESSAGE));\r\n\t}",
"public String retirarJugador(Jugador jugadorParaRetirar) {\n\n\t\tboolean retirado = false;\n\n\t\tfor (int i = 0; !retirado && i < this.jugadoresEnMesa.size(); i++) {\n\t\t\tif (this.jugadoresEnMesa.get(i).getId() == jugadorParaRetirar.getId()) {\n\n\t\t\t\tListaJugadores.jugadoresRetirados.add(jugadorParaRetirar);\n\n\t\t\t\tthis.jugadoresEnMesa.remove(i);\n\t\t\t\ti--;\n\t\t\t\tretirado = true;\n\n\t\t\t}\n\t\t}\n\n\t\tString mensajeRetirada;\n\t\tif (retirado) {\n\t\t\tmensajeRetirada = \"%s ha sido retirado.%s\";\n\t\t\tif (jugadorParaRetirar.getCredito() < 0)\n\t\t\t\tEasterEgg.huevoDePascua(jugadorParaRetirar.getNombre());\n\n\t\t\telse {\n\n\t\t\t\tif (jugadorParaRetirar.getCredito() == 0)\n\t\t\t\t\tmensajeRetirada = String.format(mensajeRetirada, jugadorParaRetirar.getNombre(),\n\t\t\t\t\t\t\t\" Se le ha agotado el crédito.\");\n\n\t\t\t\telse if (jugadorParaRetirar.getCredito() >= jugadorParaRetirar.getCreditoObjetivo())\n\t\t\t\t\tmensajeRetirada = String.format(mensajeRetirada, jugadorParaRetirar.getNombre(),\n\t\t\t\t\t\t\t\" Ha alcanzado su crédito objetivo\");\n\n\t\t\t\telse if (jugadorParaRetirar.getRondas() >= jugadorParaRetirar.getRondasMaximas())\n\t\t\t\t\tmensajeRetirada = String.format(mensajeRetirada, jugadorParaRetirar.getNombre(),\n\t\t\t\t\t\t\t\" Ha alcanzado sus rondas máximas\");\n\n\t\t\t\telse\n\t\t\t\t\tmensajeRetirada = String.format(mensajeRetirada, jugadorParaRetirar.getNombre(), \"\");\n\n\t\t\t}\n\n\t\t} else {\n\t\t\tmensajeRetirada = \"No se ha podido retirar al jugador.\";\n\t\t}\n\n\t\treturn mensajeRetirada;\n\n\t}",
"java.lang.String getMsg();",
"public String getMensaje()\r\n/* 633: */ {\r\n/* 634:710 */ return this.mensaje;\r\n/* 635: */ }",
"public int compareTo(Object o)\n {\n EASMessage em = (EASMessage) o;\n return (this.EAS_event_ID < em.EAS_event_ID ? -1 : (this.EAS_event_ID == em.EAS_event_ID ? 0 : 1));\n }",
"public void exibirMsgs() {\n StringBuilder s = new StringBuilder();\n for (MensagemSistema msgSis : mensagens) {\n switch (msgSis.getTipo()) {\n case ConstantsControl.MSG_ALERT:\n s.append(\"[Alerta]: \\n\").append(msgSis.getMsg()).append(\"\\n\");\n break;\n case ConstantsControl.MSG_INFO:\n s.append(\"[Informação]: \\n\").append(msgSis.getMsg()).append(\"\\n\");\n break;\n case ConstantsControl.MSG_ERRO:\n s.append(\"[Erro]: \\n\").append(msgSis.getMsg()).append(\"\\n\");\n break;\n case ConstantsControl.MSG_SUCESSO:\n s.append(\"[Sucesso]: \\n\").append(msgSis.getMsg()).append(\"\\n\");\n break;\n }\n\n }\n JMessageUtil.showMensagensSistema(new javax.swing.JFrame(), s.toString());\n mensagens.clear();\n }",
"public void mensagemErroCadastro() {\n\t\tJOptionPane.showMessageDialog(null, \"Erro!\\nVerifique se todos os campos estão preenchidos.\"\n\t\t\t\t+ \"\\nVerifique se os dados em formato numérico são números.\"\n\t\t\t\t+ \"\\nVerifique se as datas foram inseridas corretamente.\" + \"\\nNão use vírgulas ','. Use pontos!\", null,\n\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t}",
"public abstract String mensajeCrearCelula();",
"private String getAlertaPorStatusExecucao(Evento ultimoEvento)\n\t{\n\t\t// O alerta padrao sera o status atual do alarme, dependendo do valor do atraso esse alerta pode ser modificado\n\t\tString alerta = Alarme.ALARME_OK;\n\t\t// No caso de status de execucao, o alarme possui somente dois estados\n\t\t// Ok ou Nao Ok que entao se classifica como OK ou FALHA\n\t\tif (ultimoEvento.getCodigoRetorno() != Alarme.CODIGO_RETORNO_OK)\n\t\t\talerta = Alarme.ALARME_FALHA;\n\t\t\n\t\t// Define o motivo do Alarme\n\t\talarme.setMotivoAlarme(Alarme.MOTIVO_RETORNO);\n\n\t\tlogger.debug(alarme.getIdAlarme()+\" - CodigoRetorno:\"+ultimoEvento.getCodigoRetorno());\n\t\treturn alerta;\n\t}",
"public String getMessageSort();",
"public void enviarMensagem(String mensagem) {\n //Painel.COMPUTADOR_TRANSMISSOR.limparTextoCamadas();//Limpando texto do Computador Transmissor\n //Painel.COMPUTADOR_RECEPTOR.limparTextoCamadas();//Limpando texto do Computador Receptor\n\n //Painel.COMPUTADOR_TRANSMISSOR.limparTela();//Limpando texto da Tela\n //Painel.COMPUTADOR_RECEPTOR.limparTela();//Limpando texto da Tela\n\n //this.id_temporizador = 1;\n //this.idQuadroEsperado = 1;\n //MeioDeComunicacao.inicarTransmissao();\n\n adicionarMensagem(\"Msg Enviada: \" + mensagem);//Adiciona a mensagem enviada no Computador Transmissor\n\n aplicacaoTransmissora.aplicacaoTransmissora(mensagem);//Enviando a mensagem para aplicacao transmissora\n }",
"public int compareTo(Message other){\n if(time < other.time) {\n return -1;\n } else { // assume one comes before the other in all instances\n return 1;\n }\n }",
"private String pedirCasilla(String mensaje) {\n char columna;\n int fila;\n String casilla;\n do {\n casilla = ManejoInfo.getTextoSimple(\"la casilla \" + mensaje);\n columna = casilla.charAt(0);\n fila = Character.getNumericValue(casilla.charAt(1));\n if (!validarColum(columna) && fila >= 9) {\n System.out.println(\"\\nIngrese una casilla valida!\\n\");\n }\n } while (!validarColum(columna) && fila >= 9);\n return casilla;\n }",
"@Test\n\tpublic void testaGetMensagem() {\n\t\tAssert.assertEquals(\n\t\t\t\t\"Erro no getMensagem()\",\n\t\t\t\t\"Disciplina 1 eh avaliada com 5 minitestes, eliminando 1 dos mais baixos.\",\n\t\t\t\tminitElimBai_1.getMensagem());\n\t\tAssert.assertEquals(\n\t\t\t\t\"Erro no getMensagem()\",\n\t\t\t\t\"Disciplina 2 eh avaliada com 10 minitestes, eliminando 2 dos mais baixos.\",\n\t\t\t\tminitElimBai_2.getMensagem());\n\t}",
"public static void validateTextMessage(WebElement obj, String expectedTextMsg, String objName) throws IOException {\r\n\t\tif (obj.isDisplayed()){\t\t\t\r\n\t\t\tString actualTextMsg = obj.getText().trim();\r\n\t\t\tif( actualTextMsg.equals(expectedTextMsg )){\r\n\t\t\t\t//\t\tSystem.out.println(expectedTextMsg+\" = \"+actualTextMsg);\r\n\t\t\t\tUpdate_Report( \"Pass\", \"validateTextMessage\",\"Expected message : '\" +expectedTextMsg+ \"' matched with actual message : '\" + actualTextMsg +\"'\");\r\n\t\t\t}else{\r\n\t\t\t\tUpdate_Report( \"Fail\", \"validateTextMessage\", \"Expected message '\" + expectedTextMsg + \"' did not match with actual message '\" + actualTextMsg +\"'\");\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tUpdate_Report( \"Fail\", \"validateTextMessage\", objName +\" is not displayed please check your application \");\r\n\t\t}\r\n\t}",
"public void afficherMessage () {\r\n System.out.println(\"(\"+valeur+\", \"+type+\")\"); \r\n }",
"int getObject_nbmsg();",
"public static void main(String[] args) {\n String matriz = \"ABCDEFGHIJLMNOPQRSTUVWXYZ\";\n Ejercicio1 c = new Ejercicio1();\n String retorno;\n String mensaje = JOptionPane.showInputDialog(\"Digite el mensaje\");\n// Convierte el mensaje a mayusculas\n mensaje = mensaje.toUpperCase();\n c.llenaMatriz(matriz);\n retorno = c.aTap(mensaje);\n JOptionPane.showMessageDialog(null, retorno);\n\n //Fin de la Primera parte del examen\n /*\n Inicio de la Segunda parte del examen\n */\n /*\n String[] lista = {\" auto \", \" pato \", \" palo \", \" poto \", \" amar \", \" amor \",\n \" loca \", \" loco \", \" polo \", \" poco \", \" poca \", \" rota \", \" roto \"};\n AdminPalabras admin = new AdminPalabras( lista );\n String[] letras = {\" escalopa \", \" automotor\", \" percatado\"};\n for(int i = 0; i < letras . length ; i ++) {\n int cont = admin .ContarPalabrasPosibles(letras [i ]);\n JOptionPane.showMessageDialog(null,letras [i] + \": \" + cont );\n }*/\n //Fin de la Segunda parte del Examen\n }",
"public DefaultTableModel pedidosMesero(){\r\n List<Pedido> lista =pedidos.listarPedidoTerminado();\r\n return Convertidor.PedidoToTableModelMin(lista);\r\n }",
"public int enAttente() {\n\t\treturn nbmsg;\n\t}",
"public interface Message extends Serializable {\n\t/**\n\t * set current message object\n\t * @param messageObject\n\t * @throws UtilsException\n\t */\n\tpublic void setObjet(Object messageObject) throws UtilsException;\n\t\n\t/**\n\t * return current's message object\n\t * @return\n\t */\n\tpublic Object getObject() ;\n\t\n\t/**\n\t * return true if this message match filter\n\t * @param filter\n\t * @return\n\t */\n\tpublic boolean matchFilter(Map<String,String> filter);\n\t\n\t/**\n\t * add a new text property to current message\n\t * @param propertyName\n\t * @param propertyValue\n\t * @throws UtilsException\n\t */\n\tpublic void setStringProperty(String propertyName,String propertyValue) throws UtilsException;\n\n\tvoid rewriteStringProperty(String propertyName,String propertyValue) throws UtilsException;\n\t\n\t/**\n\t * return value of property propertyName\n\t * @param propertyName\n\t * @return\n\t */\n\tpublic String getStringProperty(String propertyName) ;\n}",
"java.lang.String getTheMessage();",
"@Test\n public void testEquals() {\n assertTrue(chatMessage.equals(chatMessage));\n assertFalse(chatMessage.equals(new ChatMessage(author, \"JaJa!\")));\n assertFalse(chatMessage.equals(new ChatMessage(\"Javache\", text)));\n assertFalse(chatMessage.equals(new ChatMessage(\"Javache\", \"JaJa!\")));\n }",
"public void afficherMessage();",
"@Test\n\t\t\tpublic void getMessageTest() {\n\t\t\t\tString message;\n\t\t\t\tMessage msgjunit = new Message();\n\t\t\t\tString result = msgjunit.getMessage();\n\t\t\t\tif (result == null) {\n\n\t\t\t\t\tmessage = \"Is a Messages which is a String type\";\n\t\t\t\t} else {\n\n\t\t\t\t\tmessage = \"\";\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"Message is not empty: \" + result + \" \" + message);\n\t\t\t\tassertNotNull(\"Message is successfully returned: \" + result + \" \" + message);\n\t\t\t}",
"public boolean marcarMensajeVisto(Mensaje mensaje) {\r\n\t\tmodifyCache(mensaje, \"MensajeLeido\");\r\n\t\treturn true;\r\n\t}",
"public int compareTo(Object o) {\r\n if (o instanceof Noeud) {\r\n Noeud n = (Noeud) o;\r\n if (this.frequence < n.getFrequence()) {\r\n return -1;\r\n } else if (this.frequence > n.getFrequence()) {\r\n return 1;\r\n } else if (this.frequence.equals(n.getFrequence())) {\r\n {\r\n if(this.t!=null && n.getT()!=null){\r\n if ((int) this.t.getLettre() < (int) n.getT().getLettre()){// difference entre String et un caracetere\r\n return -1; }\r\n else if ((int) this.t.getLettre() > (int) n.getT().getLettre()){\r\n return 1;}\r\n else{\r\n return 0;}\r\n\r\n }else{\r\n return 1;}\r\n\r\n }\r\n }\r\n }\r\n return 0;\r\n }",
"public Mensaje calculate (){\n Mensaje msg2 = new Mensaje(((double)this.valor * (double)this.porcentaje / 100) + ((double)this.peso * 0.15));\n return msg2;\n }",
"private void tratarMensagem(Message mensagem) throws Exception {\n\t\tswitch (mensagem.getTipoMensagem()) {\n\t\tcase ENTRADA:\n\t\t\t// Atualiza a lista de chaves públicas\n\t\t\tthis.listaChavesPublicas.put(mensagem.getRemetente(), mensagem.getChavePublica());\n\t\t\t// Atualiza o estado (inicalizado ou não)\n\t\t\tthis.inicializado |= this.listaChavesPublicas.size() + 1 >= NetworkConstants.MINIMUM_PEERS;\n\t\t\t// Responde à mensagens de entrada\n\t\t\tMessage respostaEntrada = new Message(EnumMessageType.RESPOSTA_ENTRADA, this.chavePublica,\n\t\t\t\t\tthis.inicializado, this.identificador);\n\t\t\tthis.enviarMensagem(respostaEntrada);\n\t\t\tbreak;\n\t\tcase RESPOSTA_ENTRADA:\n\t\t\t// Atualiza a lista de chaves públicas\n\t\t\tthis.listaChavesPublicas.put(mensagem.getRemetente(), mensagem.getChavePublica());\n\t\t\t// Atualiza o estado (inicializado ou não)\n\t\t\tthis.inicializado |= mensagem.getInicializado();\n\t\t\tbreak;\n\t\tcase SAIDA:\n\t\t\t// Atualiza a lista de chaves públicas\n\t\t\tthis.listaChavesPublicas.remove(mensagem.getRemetente());\n\t\t\tbreak;\n\t\tcase REQUISICAO:\n\t\t\t// Responde à requisição de recursos\n\t\t\tEnumResourceId recursoRequisitado = mensagem.getRecurso();\n\t\t\tEnumResourceStatus situacaoRecursoRequisiado = situacaoRecursos.get(recursoRequisitado);\n\t\t\tMessage respostaRequisicao = new Message(EnumMessageType.RESPOSTA_REQUISICAO, recursoRequisitado,\n\t\t\t\t\tsituacaoRecursoRequisiado, this.identificador);\n\t\t\tthis.enviarMensagem(respostaRequisicao);\n\t\t\tbreak;\n\t\tcase LIBERACAO_RECURSO:\n\t\t\t// Atualiza a lista de espera do recurso, caso esteja interessado\n\t\t\tEnumResourceId recursoLiberado = mensagem.getRecurso();\n\t\t\tEnumResourceStatus situacaoRecursoLiberado = situacaoRecursos.get(recursoLiberado);\n\n\t\t\tif (situacaoRecursoLiberado.equals(EnumResourceStatus.WANTED)) {\n\t\t\t\tSet<String> listaEsperaRecursoLiberado = this.listasEsperasRecursos.get(recursoLiberado);\n\t\t\t\tlistaEsperaRecursoLiberado.remove(mensagem.getRemetente());\n\n\t\t\t\tif (listaEsperaRecursoLiberado.size() == 0) {\n\t\t\t\t\tthis.situacaoRecursos.put(recursoLiberado, EnumResourceStatus.HELD);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\tDisplayConstants.COMMAND_PREFIX + \"Acesso liberado ao \" + recursoLiberado.toString());\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(DisplayConstants.COMMAND_PREFIX + \"Esperando pela liberação dos peers \"\n\t\t\t\t\t\t\t+ listaEsperaRecursoLiberado.toString());\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}",
"private void mensajeGrow(String mensaje, EntidadDTO entidadDTO) {\r\n\t\tFacesMessage msg = new FacesMessage(mensaje, entidadDTO.getNit() + \" \" + entidadDTO.getNombre());\r\n\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\r\n\t}",
"@Test\n public void testAnalisarMes() throws Exception {\n System.out.println(\"analisarMes\");\n int[][] dadosFicheiro = null;\n int linhas = 0;\n int[] expResult = null;\n int[] result = ProjetoV1.analisarMes(dadosFicheiro, linhas);\n assertArrayEquals(expResult, result);\n\n }",
"@Override\n\tpublic String exibirDados() {\n\t\ttoString();\n\t\tString message = toString() + \"\\nimc: \" + calculaImc();\n\t\treturn message;\n\t}",
"@Test\n\t\t\tpublic void setMessageTest() {\n\t\t\t\tMessage msgjunit = new Message();\n\t\t\t\tString expectedmsg = msgjunit.getMessage();\n\t\t\t\tString actualmsg = msgjunit.getMessage();\n\t\t\t\tassertSame(expectedmsg, actualmsg);\n\t\t\t\tif (expectedmsg == actualmsg) {\n\n\t\t\t\t\tSystem.out.println(\"Both expected message and actual message are equal:\" + \" \" + expectedmsg\n\t\t\t\t\t\t\t+ \" \" + \"=\" + \" \" + actualmsg);\n\t\t\t\t}\n\t\t\t}",
"public Mensagem Mensagems(String msg, String remetente, String destinario) {\n\t\treturn null;\r\n\t}",
"private void receberMensagem() throws Exception {\n\t\ttry {\n\t\t\tbyte[] buffer = new byte[1000];\n\t\t\tMessage mensagem;\n\t\t\tDatagramPacket messageIn = new DatagramPacket(buffer, buffer.length);\n\n\t\t\tthis.socket.receive(messageIn);\n\n\t\t\tmensagem = Message.fromBytes(buffer);\n\n\t\t\tSystem.out.println(mensagem.toString());\n\n\t\t\tif (!mensagem.getRemetente().equals(this.identificador)) {\n\t\t\t\tbyte[] chavePublicaRemetenteBytes = this.listaChavesPublicas.get(mensagem.getRemetente());\n\n\t\t\t\tif (mensagem.getTipoMensagem().equals(EnumMessageType.ENTRADA)\n\t\t\t\t\t\t|| mensagem.getTipoMensagem().equals(EnumMessageType.RESPOSTA_ENTRADA)) {\n\t\t\t\t\tchavePublicaRemetenteBytes = mensagem.getChavePublica();\n\t\t\t\t}\n\n\t\t\t\tmensagem.validar(chavePublicaRemetenteBytes);\n\n\t\t\t\tthis.tratarMensagem(mensagem);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new Exception(\"Erro ao receber mensagem\");\n\t\t}\n\t}",
"@Override\r\n\tpublic String getMessage() {\r\n\t\treturn \"Veuillez entrer un nombre positif\";\r\n\t}",
"private void gestionPriseEnCompte() {\r\n\t\tString raison = new String(\"\");\r\n\t\tDate now = new Date();\r\n\t\tString strSql = \"\";\r\n\t\r\n if (tbAlarme.getRowCount() > 0) {\r\n \tif (tbAlarme.getSelectedRowCount() > 0) {\r\n\t\t int[] selection = tbAlarme.getSelectedRows();\r\n\t\t int indexSelection = selection[0];\r\n\t\t int idCapteur = mdlTpsReelAlarme.getIdCapteur(indexSelection); \r\n\t\t String strTypeAlarme = \"\";\r\n\t\t \r\n\t\t\t\t// Motif Prise En Compte seulement si appel Alert\r\n\t\t strTypeAlarme = (String) mdlTpsReelAlarme.getValueAt(indexSelection, JTABLE_ALARME_TYPE_ALARME);\r\n\t\t if (strTypeAlarme.equals(\"Alarme\")) {\r\n\t\t\t\t\tint idPriseEnCompte = 0;\r\n\t\t \tdo {\r\n\t\t\t\t\t\tObject [] possibilites = new Object[tbPriseEnCompte.size()];\r\n\t\t\t\t\t\tfor(int i = 0; i < tbPriseEnCompte.size(); i++) {\r\n\t\t\t\t\t\t\tpossibilites[i] = tbPriseEnCompte.get(i).getNom();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tString strReponse = (String)JOptionPane.showInputDialog(this, \"Choisir un motif de prise en compte : \", \"Prise en compte\", JOptionPane.QUESTION_MESSAGE, null, possibilites, null);\r\n\t\t\t\t\t\tidPriseEnCompte = 1;\r\n\t\t\t\t\t\tif (strReponse != null) {\r\n\t\t\t\t\t\t\tfor(int i = 0; i < tbPriseEnCompte.size(); i++) {\r\n\t\t\t\t\t\t\t\tif(strReponse.equals(tbPriseEnCompte.get(i).getNom())) {\r\n\t\t\t\t\t\t\t\t\tidPriseEnCompte = (int) tbPriseEnCompte.get(i).getId();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} // fin for\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\traison = \"En attente\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// idPriseEncompte == 1 (Autres)\r\n\t\t\t\t\t\tif(idPriseEnCompte == 1) {\r\n\t\t\t\t\t\t\t// Demande de commentaire\r\n\t\t\t\t\t\t\traison = AE_Fonctions.saisieTexte(\"Veuillez entrer une raison : \", \"Raison commentaire ...\");\r\n\t\t\t\t\t\t\tif (raison == null) raison = \"\";\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\traison = \"---\";\r\n\t\t\t\t\t\t}\r\n\t\t \t} while(raison == \"\");\r\n\t\t \t\r\n\t\t\t\t\tstrSql = \"UPDATE V2_AlarmeEnCours SET idPriseEnCompte = \" + idPriseEnCompte\r\n\t\t\t\t\t\t\t + \" , idUtilisateur = \" + EFS_Client_Variable.idUtilisateur\r\n\t\t\t\t\t\t\t + \" , CommentairePriseEnCompte = '\" + raison + \"'\"\r\n\t\t\t\t\t\t\t + \" WHERE idCapteur = \" + idCapteur;\r\n\t\t\t\t\tctn.fonctionSql(strSql);\r\n\t\t\t\t\tmdlTpsReelAlarme.setMotifIdPriseEncompte(indexSelection, idPriseEnCompte);\r\n\t\t } // fin if appelAlert\r\n\r\n\t\t if(mdlTpsReelAlarme.getValueAt(indexSelection, JTABLE_ALARME_PRISE_EN_COMPTE) == null) {\r\n\t\t\t\t\t// Date prise en compte\r\n\t\t\t\t\tstrSql = \"UPDATE V2_AlarmeEnCours SET DatePriseEnCompte = sysdate, blPriseEnCompte = 1 WHERE idCapteur = \" + idCapteur;\r\n\t\t\t\t\tctn.fonctionSql(strSql);\r\n\t\t\t\t\tmdlTpsReelAlarme.setValueAt(now, indexSelection, JTABLE_ALARME_PRISE_EN_COMPTE);\r\n\t\t } // fin if datePrsieEnCompte\r\n\t\r\n\t\t // Prevenir le programme maitre\r\n\t\t AE_Fonctions.modifierMaitreViaClient(idCapteur, VIA_API_PRISE_EN_COMPTE);\r\n\t\t \r\n\t\t\t\t// Arret klaxon et Alert\r\n//\t\t\t\tgestionKlaxon(false);\r\n//\t\t\t\tgestionAlert(false);\r\n\t\t\t\t\r\n \t} else {\r\n \t JOptionPane.showMessageDialog(this, \"Vous devez sélectionner une ligne pour prendre en compte ...\",\r\n \t \t\t \"GTC Visualize - Programme Maitre\", JOptionPane.WARNING_MESSAGE);\r\n \t}\r\n } else {\r\n//\t\t\tgestionKlaxon(false);\r\n//\t\t\tgestionAlert(false);\r\n }\r\n\t}",
"public int esMejorCarta(Carta c){\r\n return this.numero.compareTo(c.numero);\r\n }",
"private String getStatusAlarme(Evento ultimoEvento)\n\t{\n\t\t// Se o ultimo evento nao existir para um dado alarme entao o novo status \n\t\t// sera o mesmo status atual definido para o alarme. Portanto a analise sera\n\t\t// feita somente se existir um ultimo evento\n\t\tString statusAlarme = alarme.getStatus();\n\t\tif (ultimoEvento != null)\n\t\t{\n\t\t\t// Busca o valor do alarme ALERTA,FALHA ou OK para o alarme em processamento\n\t\t\t// dependendo de suas configuracoes com relacao a \"scheduling\" (agendamento de datas)\n\t\t\tstatusAlarme = getAlertaPorAgendamento(ultimoEvento);\n\t\t\t\n\t\t\t// Se o status for diferente de OK entao ja atualiza este na tabela para indicar o alerta\n\t\t\t// desse alarme. Caso contrario entao as verificacoes por valores e por resposta serao\n\t\t\t// verificados.\n\t\t\tif (statusAlarme.equals(Alarme.ALARME_OK))\n\t\t\t{\n\t\t\t\tstatusAlarme = getAlertaPorValor(ultimoEvento);\n\t\t\t\t// Caso o status por valor seja ok entao verifica por status da ultima execucao.\n\t\t\t\t// No caso do status ser diferente de ok entao este ja vai para a tabela\n\t\t\t\tif (statusAlarme.equals(Alarme.ALARME_OK))\n\t\t\t\t\tstatusAlarme = getAlertaPorStatusExecucao(ultimoEvento);\n\t\t\t}\n\t\t}\n\t\treturn statusAlarme;\n\t}",
"public int compareTo(Object miObjeto) {\n\t\t\n\t\t// REFUNDICION O CASTING\n\t\t\t// TRANSFORMAR miObjeto A UN OBJETO DE LA CLASE EMPLEADO PARA HACER LA COMPARACION\n\t\tEmpleado otroEmpleado = (Empleado) miObjeto;\n\t\t\n\t\t// ORDENAR POR MEDIO DE SUELDO\n\t\tif (this.Id < otroEmpleado.Id) {\n\t\t\treturn -1; // SI EL SUELDO DE UNO ES MENOR QUE OTRO\n\t\t}else if ( this.Id > otroEmpleado.Id) {\n\t\t\treturn 1; // SU EL SUELDO DE UNO ES MAYOR QUE OTRO\n\t\t}else { // SI SON IGUALES\n\t\t\treturn 0;\n\t\t}\n\t}",
"public void testAssertPropertyReflectionEquals_equalsMessage() {\r\n assertPropertyReflectionEquals(\"a message\", \"stringProperty\", \"stringValue\", testObject);\r\n }",
"private int obtenerMensajeDeConfirmacion() {\n String mess = \"¿Seguro que desea \";\n switch (opcionForm) {\n case FormEscOpcion.CREAR:\n mess += \" Guardar?\";\n break;\n case FormEscOpcion.MODIFICAR:\n mess += \" Modificar?\";\n break;\n case FormEscOpcion.ELIMINAR:\n mess += \" Eliminar?\";\n break;\n default:\n break;\n }\n // pedir confirmacion al usuario de la pantalla si desea enviar la informacion o no utilizando un showConfirmDialog\n int input = JOptionPane.showConfirmDialog(this, mess, \"\",\n JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n return input; // retornar la respuesta del usuario de la pantalla al utilizar el showConfirmDialog\n }",
"public String getMessage(){\n return saisieMessage.getText();\n }",
"@Override\n\tpublic String check() throws RemoteException {\n\t\tString msg = \"\";\n\t\tfor (int i = 0; i < chathistory.size(); i++) {\n\t\t\tmsg += chathistory.get(i).getMessage();\n\t\t}\n\t\treturn msg;\n\t}",
"public void majInformation (String typeMessage, String moduleMessage, String corpsMessage) {\n Date date = new Date();\n listMessageInfo.addFirst(dateFormat.format(date)+\" - \"+typeMessage+\" - \"+moduleMessage+\" - \"+corpsMessage);\n }",
"@Override\r\n\tpublic String test(String msg) throws Exception {\n\t\tString rs = msg;\r\n\t\treturn rs;\r\n\t}",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"java.lang.String getMessage();",
"public boolean ponerMsg(String texto)\n\t{\n\t\tif (texto.length() == 0){\n\t\t\tthreadLabel.setBackground(new Color(display, 255,255,255));\n\t\t\treturn true; //salir\n\t\t}else{\n\t\t\tthreadLabel.setBackground(new Color(display, 255,222,173));\n\t\t}\n\n\t\tagregarAHistMsgs(texto);\n\t\t//obtener un lÃmite de 100 cars\n\t\tString msgAct = new String (texto + \" >> \" + threadLabel.getText());\n\t\tif (msgAct.length() > 120){\n\t\t\tmsgAct = new String(msgAct.substring(0, 119));\n\t\t\tmsgAct = msgAct + \"...\";\n\t\t}else{\n\t\t\t// ¿?\n\t\t}\n\t\tthreadLabel.setText(msgAct);\n\t\t//threadLabel.setText(texto);\n\t\treturn true;\n\t}",
"@Override\n\tpublic String GetMsgVal(MsgBean msgBean) {\n\t\tKVContainer kvEntry = ConfirmOrder.GetKeyFromMsg(msgBean.Msg);\n\t\treturn (String)kvEntry.getValue();\n\t}",
"public String getMensaje() {\r\n return mensaje;\r\n }",
"public int compare(Object obj1, Object obj2){\n\t\t\n\t\tString s1 = obj1.toString(); // sudha\n\t\tString s2 = obj2.toString(); // rani\n\t\t\n\t\tif(s1.length()>s2.length()){\n\t\t\treturn 100;\n\t\t}else if(s1.length()<s2.length()){\n\t\t\treturn -10;\n\t\t} else{\n\t\t\treturn s1.compareTo(s2);\n\t\t}\n\t\t\n\t}",
"public boolean jeu() {\n int k;\n\n String compJoueur = \"\";\n String compOrdi = \"\";\n String reponse;\n\n boolean victoireJoueur = false;\n boolean victoireOrdi = false;\n String mystJoueur = challenger.nbMystere(); /**nb que le joueur doit trouver*/\n String mystOrdi = defenseur.nbMystere(); /**nb que l'ordinateur doit trouver*/\n String propOrdi = defenseur.proposition(); /**ordinateur genere un code aleatoire en premiere proposition*/\n log.info(\"Proposition ordinateur : \" + propOrdi); /**afficher proposition ordinateur*/\n String propJoueur = \"\";\n String goodResult = MethodesRepetitives.bonResultat();\n\n\n for (k = 1; !victoireJoueur && !victoireOrdi && k <= nbEssais; k++) { /**si ni le joueur ou l'ordinateur n'ont gagne et si le nombre d'essais n'est pas atteind, relancer*/\n\n compOrdi = MethodesRepetitives.compare(mystOrdi, propOrdi); /**lancer la methode de comparaison du niveau defenseur*/\n log.info(\"Reponse Ordinateur :\" + compOrdi); /**afficher la comparaison*/\n propJoueur = challenger.proposition(); /**demander une saisie au joueur selon le mode challenger*/\n compJoueur = MethodesRepetitives.compare(mystJoueur, propJoueur); /**comparer selon le mode challenger*/\n log.info(\"Reponse Joueur :\" + compJoueur); /**afficher la comparaison*/\n\n if (compOrdi.equals(goodResult)) { /**si l'ordinateur a gagne, changement de la valeur victoireOrdi*/\n victoireOrdi = true;\n }else if(compJoueur.equals(goodResult)) {/**si le joueur a gagne changement de la valeur victoireJoeur*/\n victoireJoueur = true;\n } else if (k < nbEssais) { /**sinon redemander un code a l'ordinateur selon les symboles de comparaison*/\n propOrdi = defenseur.ajuste(propOrdi, compOrdi);\n log.info(\"Proposition Ordinateur :\" + propOrdi);\n }\n }\n\n if (victoireOrdi || !victoireJoueur)/**si l'ordinateur ou le joueur perdent alors perdu sinon gagne*/\n victoireJoueur = false;\n else\n victoireJoueur = true;\n\n return victoireJoueur;\n\n\n }",
"public void assertMsgCheck() {\r\n\t\tassertEquals(successMsg.getText().substring(0,36), \"Success: You have modified products!\");\r\n\t\tSystem.out.println(\"Asserted that the msg has been displayed: \"+ successMsg.getText().substring(0,36));\r\n\t}",
"public static ArrayList<Integer> estadisticasPorPotrero(String nombrePotrero) {\n\n\t\tArrayList<Integer> mensaje = new ArrayList<>();\n\n\t\tArrayList<Res> resess = PotreroCRUD.selectResesNormales(nombrePotrero);\n\n\t\tRes res = null;\n\n\t\tint reses = resess.size();\n\t\tint hembras = 0;\n\t\tint machos = 0;\n\t\tint ch = 0;\n\t\tint hl = 0;\n\t\tint nv = 0;\n\t\tint vh = 0;\n\t\tint vp = 0;\n\t\tint cm = 0;\n\t\tint ml = 0;\n\t\tint mc = 0;\n\t\tint tp = 0;\n\n\t\tfor (int i = 0; i < resess.size(); i++) {\n\n\t\t\tres = resess.get(i);\n\n\t\t\tif (res.getGenero().equalsIgnoreCase(\"H\")) {\n\t\t\t\thembras++;\n\n\t\t\t\tswitch (res.getTipo()) {\n\n\t\t\t\tcase \"CH\":\n\n\t\t\t\t\tch++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"HL\":\n\n\t\t\t\t\thl++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"NV\":\n\n\t\t\t\t\tnv++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"VH\":\n\n\t\t\t\t\tvh++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"VP\":\n\n\t\t\t\t\tvp++;\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif (res.getGenero().equalsIgnoreCase(\"M\")) {\n\t\t\t\tmachos++;\n\n\t\t\t\tswitch (res.getTipo()) {\n\n\t\t\t\tcase \"CM\":\n\n\t\t\t\t\tcm++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"ML\":\n\n\t\t\t\t\tml++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"MC\":\n\n\t\t\t\t\tmc++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"TP\":\n\n\t\t\t\t\ttp++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\tmensaje.add(reses);\n\t\tmensaje.add(hembras);\n\t\tmensaje.add(machos);\n\t\tmensaje.add(ch);\n\t\tmensaje.add(hl);\n\t\tmensaje.add(nv);\n\t\tmensaje.add(vh);\n\t\tmensaje.add(vp);\n\t\tmensaje.add(cm);\n\t\tmensaje.add(ml);\n\t\tmensaje.add(mc);\n\t\tmensaje.add(tp);\n\n\t\treturn mensaje;\n\t}",
"public String getTextMessagesForVehicleAndCurrentDriver();",
"public final String getMessageErreur() {\n\t\tString messageErreur = null;\n\n\t\t// il faut que toutes les taches obligatoires soient accomplies\n\t\tNSMutableArray<I_WorkFlowItem> tachesObligatoiresAbsentes = getTachesObligatoiresAbsentes();\n\t\tif (tachesObligatoiresAbsentes.count() > 0) {\n\t\t\tmessageErreur = \"Tâches non effectuées : \";\n\t\t\tmessageErreur += \"<ul>\";\n\t\t\tfor (int i = 0; i < tachesObligatoiresAbsentes.count(); i++) {\n\t\t\t\tI_WorkFlowItem tache = tachesObligatoiresAbsentes.objectAtIndex(i);\n\t\t\t\tmessageErreur += \"<li>\";\n\t\t\t\tmessageErreur += tache.libelle();\n\t\t\t\tmessageErreur += \"</li>\";\n\t\t\t}\n\t\t\tmessageErreur += \"</ul>\";\n\t\t}\n\n\t\treturn messageErreur;\n\t}",
"public String getMessage(){\n String messageOut=\"Error\";\n if(this.akun instanceof Savings && akun instanceof Investment==false){\n messageOut=\"Savings\";\n }\n else if (this.akun instanceof Investment && akun instanceof Investment==true){\n messageOut=\"Investment\";\n }\n else if (this.akun instanceof LineOfCredit){\n messageOut=\"Line-Of-Credit\";\n }\n else if (this.akun instanceof OverDraftProtection){\n messageOut=\"Overdraft\";\n }\n return super.getMessage()+ messageOut;\n }",
"@Test\n\tpublic void PublicationMessageTest()throws Exception\n\t{\n\t\tPublicationMessage p = new PublicationMessage();\n\t\tp.content = \"Hello\";\n\t\tp.topics = new ArrayList<Integer>();\n\t\tp.topics.add(1);\n\n\t\tPublicationMessage pp = new PublicationMessage();\n\t\tpp.content = \"Hello\";\n\t\tpp.topics = new ArrayList<Integer>();\n\t\tpp.topics.add(1);\n\t\tpp.topics.add(2);\n\n\t\tif(!p.equals(pp))\n\t\t\tthrow new Exception(\"Publication: Equals fails\");\n\t\tif(p.compareTo(pp) != 0)\n\t\t\tthrow new Exception(\"Publication: Compere fails\");\n\n\n\t\tPublicationMessage ppp = new PublicationMessage();\n\t\tppp.content = \"HelloWorld\";\n\t\tppp.topics = new ArrayList<Integer>();\n\t\tppp.topics.add(1);\n\t\tppp.topics.add(2);\n\n\t\tif(p.equals(ppp))\n\t\t\tthrow new Exception(\"Publication: Equals fails\");\n\t\tif(p.compareTo(ppp) == 0)\n\t\t\tthrow new Exception(\"Publication: Compere fails\");\n\n\t}",
"public String getMessage() {\n\t\treturn \" whose content is a\";\n\t}",
"public void test_getMessage() {\n assertEquals(\"'message' value should be properly retrieved.\", message, instance.getMessage());\n }",
"private String getAlertaPorAgendamento(Evento ultimoEvento)\n\t{\n\t\t// Busca o tempo de atraso da ultima execucao com o agendamento especificado\n\t\t// Caso o alarme ainda nao possua eventos registrados entao nao considera este\n\t\t// para o estudo do tempo de atraso\n\t\tDate dtAtual\t\t= Calendar.getInstance().getTime();\n\t\tDate dtUltExecucao\t= ultimoEvento.getDataExecucao();\n\t\tDate dtProxExecucao = alarme.getAgendamento().getProximoAgendamento(dtUltExecucao);\n\t\tlong atraso = (dtAtual.getTime() - dtProxExecucao.getTime())/1000/60;\n\n\t\t// O alerta padrao na verificacao por agendamento e o status OK, se existir atraso\n\t\t// entao verifica a faixa do atraso para identificar a gravidade do alarme (alerta ou falha)\n\t\t// porem sempre que considerado o atraso negativo significa que em relacao a data atual\n\t\t// o proximo agendamento nao esta atrasado\n\t\tString alerta = Alarme.ALARME_OK;\n\n\t\t// Verifica se o atraso se classifica como alerta\n\t\tif (atraso > 0 && atraso > alarme.getAtrasoMaxAlerta() && atraso < alarme.getAtrasoMaxFalha())\n\t\t\talerta = Alarme.ALARME_ALERTA;\n\t\t// Verifica se o atraso se classifica como falha\n\t\tif (atraso > 0 && atraso > alarme.getAtrasoMaxFalha())\n\t\t\talerta = Alarme.ALARME_FALHA;\n\n\t\t// Define o motivo do Alarme\n\t\talarme.setMotivoAlarme(Alarme.MOTIVO_ATRASO);\n\n\t\tlogger.debug(alarme.getIdAlarme()+\" - Atraso:\"+atraso);\n\t\treturn alerta;\n\t}",
"public String getString_entries_receiveEst() { \n char carr[] = new char[Math.min(net.tinyos.message.Message.MAX_CONVERTED_STRING_LENGTH,11)];\n int i;\n for (i = 0; i < carr.length; i++) {\n if ((char)getElement_entries_receiveEst(i) == (char)0) break;\n carr[i] = (char)getElement_entries_receiveEst(i);\n }\n return new String(carr,0,i);\n }",
"private static String getMsg(Object... msgs) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (Object object : msgs) {\n\t\t\tsb.append(object.toString()).append(\"\\n\");\n\t\t}\n\t\treturn sb.toString();\n\t}",
"public String reporteFinMesPre()\n\t{\n\t\tString m = new String();\n\t\tif(!this.clientes.isEmpty())\n\t\t{\n\t\t\tGregorianCalendar ff = new GregorianCalendar();\n\t\t\tCliente c = new Cliente();\n\t\t\tlong dur, durc, durt, totalcliente, totalcuenta, totalt;\n\t\t\tLLamada ll;\n\t\t\tCuenta p;\n\t\t\n\t\t\tListIterator<LLamada> itl;\n\t\t\tRecarga r;\n\t\t\tListIterator<Recarga> itr;\n\t\t\t\n\t\t\tSet<String> llaves = clientes.keySet();\n\t\t\tList<String> li = new ArrayList<String>(llaves);\n\t\t\tListIterator<String> it = li.listIterator();\n\t\t\tListIterator<Cuenta> cu;\n\t\t\tList<Cuenta> lista = new ArrayList<Cuenta>();\n\t\t\tList<Cliente> cli = new ArrayList<Cliente>();\n\t\t\tString s = new String();\n\t\t\t\n\t\t\twhile(it.hasNext())\n\t\t\t{\n\t\t\t\ts = it.next();\n\t\t\t\tif(clientes.get(s).tienePre())\n\t\t\t\t\tcli.add(clientes.get(s));\n\t\t\t}\n\t\t\t\n\t\t\tCollections.sort(cli, new CompararCedulasClientes());\n\n\t\t\t\n\t\t\tListIterator<Cliente> itc = cli.listIterator();\n\t\t\t\n\t\t\tList<LLamada> lisll = new ArrayList<LLamada>();\n\t\t\tList<Recarga> lisr = new ArrayList<Recarga>();\n\t\t\t\n\t\t\ttotalt = 0;\n\t\t\tdurt = 0;\n\t\t\twhile(itc.hasNext())\n\t\t\t{\n\t\t\t\ttotalcliente = 0;\n\t\t\t\tdurc = 0;\n\t\t\t\tc = itc.next();\n\t\t\t\tm += Utils.espacios(\"--CLIENTE: \", 12) + Utils.espacios(c.getNombre(), 15) + Utils.espacios(\", CC \",5) + Utils.espacios(String.valueOf(c.getCedula()), 10) + Utils.espacios(\", \", 3) + Utils.espacios(c.getDireccion(), 20) + \"\\n\";\n\t\t\t\t\n\t\t\t\tcu = c.getCuentas().listIterator(0);\n\t\t\t\tlista.clear();\n\t\t\t\twhile(cu.hasNext())\n\t\t\t\t{\n\t\t\t\t\tp = cu.next();\n\t\t\t\t\tif(p instanceof CuentaPrepago)\n\t\t\t\t\t\tlista.add(p);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcu = lista.listIterator(0);\n\t\t\t\t\n\t\t\t\twhile(cu.hasNext())\n\t\t\t\t{\n\t\t\t\t\tp = cu.next();\n\t\t\t\t\tm += Utils.espacios(\" \", 4)+ Utils.espacios(\"Cuenta Postpago #\", 17) + Utils.espacios(String.valueOf(p.getId()), 5) + Utils.espacios(\": Num \", 6) + Utils.espacios(String.valueOf(p.getNumero()), 10) + Utils.espacios(\", Plan \", 7) + Utils.espacios(p.getPlan().getNombre(), 15) + \"\\n\\n\";\n\t\t\t\t\t//recargas\n\t\t\t\t\tm += Utils.espacios(\" \", 8) + Utils.espacios(\"Recargas: \", 11) + Utils.espacios(\"Fecha\", 15) + \"Valor\\n\";\n\t\t\t\t\ttotalcuenta = 0;\n\n\t\t\t\t\tlisr = ((CuentaPrepago)p).getRecargas();\n\t\t\t\t\tCollections.sort(lisll, new CompararRecargaFecha());\n\t\t\t\t\titr = lisr.listIterator(0);\n\t\t\t\t\t\n\t\t\t\t\twhile(itr.hasNext())\n\t\t\t\t\t{\n\t\t\t\t\t\tr = itr.next();\n\t\t\t\t\t\tif(r.getFechaRecarga().get(Calendar.MONTH) == ff.get(Calendar.MONTH) && r.getFechaRecarga().get(Calendar.YEAR) == ff.get(Calendar.YEAR))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tm += Utils.espacios(\" \", 19) + Utils.espacios(Utils.convertirFechaCadena(r.getFechaRecarga()), 15) + r.getValorRecarga() + \"\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tm += Utils.espacios(\" \", 19) + Utils.espacios(\"TotalRecargas: ----------------------------\", 55) + Utils.espacios(String.valueOf(p.obtenerPagoCuenta(ff)),10) + \"\\n\";\n\n\t\t\t\t\t\n\n\t\t\t\t\ttotalcuenta += p.obtenerPagoCuenta(ff);\n\t\t\t\t\ttotalcliente += totalcuenta;\n\n\n\t\t\t\t\tm += Utils.espacios(\" \", 8) + Utils.espacios(\"Llamadas: \", 11)+ Utils.espacios(\"Fecha\", 15) + Utils.espacios(\"TelefonoDestinatario\", 21) + Utils.espacios(\"Duracion\",10 ) + Utils.espacios(\"Valor\", 8) +\"\\n\\n\";\n\t\t\t\t\tlisll = p.getLlamadas();\n\t\t\t\t\tCollections.sort(lisll, new CompararLLamadasFecha());\n\t\t\t\t\titl = lisll.listIterator(0);\n\t\t\t\t\t\n\t\t\t\t\ttotalcuenta = 0;\n\t\t\t\t\tdur =0;\n\t\t\t\t\twhile(itl.hasNext())\n\t\t\t\t\t{\n\t\t\t\t\t\tll = itl.next();\n\t\t\t\t\t\tif (ll.getFecha().get(Calendar.MONTH) == ff.get(Calendar.MONTH) && ll.getFecha().get(Calendar.YEAR) == ff.get(Calendar.YEAR))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttotalcuenta += ll.getValor();\n\t\t\t\t\t\t\tdur += ll.getDuracion();\n\t\t\t\t\t\t\tm += Utils.espacios(\" \",19) + Utils.espacios(Utils.convertirFechaCadena(ll.getFecha()), 16) + Utils.espacios(String.valueOf(ll.getTelefonoDestinatario()), 20) + Utils.espacios(String.valueOf(ll.getDuracion()), 10) + Utils.espacios(String.valueOf(ll.getValor()), 8) + \"\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tdurc += dur;\n\t\t\t\t\tm += Utils.espacios(\" \", 19) + Utils.espacios(\"TotalLLamadas: ----------------------------\", 55) + Utils.espacios(String.valueOf(dur),10) + totalcuenta + \"\\n\";\n\n\n\n\n\t\t\t\t}\n\t\t\t\ttotalt += totalcliente;\n\t\t\t\tdurt += durc;\n\t\t\t\tm += Utils.espacios(\" \",8) + Utils.espacios(\"Total Cliente: ----------------------------\", 66) + Utils.espacios(String.valueOf(durc),10) + totalcliente + \"\\n\\n\\n\";\n\t\t\t}\n\n\t\t\tm += Utils.espacios(\"TOTAL TODOS LOS CLIENTES: -----------------------\", 64) + Utils.espacios(\"Duracion: \" + String.valueOf(durt),20) + \"Valor: \"+totalt + \"\\n\" + \"\\n\";\n\t\t}\n\t\treturn m;\n\t}",
"void prosegui(String messaggio);",
"@Override\n\tpublic int compare(final ProductConfigMessageData m1, final ProductConfigMessageData m2)\n\t{\n\t\tint returnValue = compareStandardMessagesConsideringSeverity(m1, m2);\n\t\tif (returnValue != -2)\n\t\t{\n\t\t\treturn returnValue;\n\t\t}\n\n\t\t// Handle discount messages considering promo-type\n\t\treturnValue = compareDiscountMessagesConsideringPromoType(m1, m2);\n\t\tif (returnValue != -2)\n\t\t{\n\t\t\treturn returnValue;\n\t\t}\n\n\t\t// Handle standard message vs. discount message\n\t\tif (m1.getPromoType() == null && m2.getPromoType() != null)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn 1;\n\t\t}\n\t}"
] | [
"0.6248364",
"0.6220077",
"0.6194671",
"0.60634005",
"0.5982932",
"0.5943276",
"0.5931574",
"0.5928068",
"0.59236485",
"0.5892046",
"0.579496",
"0.57835627",
"0.5759109",
"0.5752842",
"0.5734437",
"0.5716798",
"0.57076746",
"0.5692751",
"0.56864005",
"0.5683893",
"0.5647009",
"0.5641665",
"0.5633894",
"0.5633104",
"0.56190366",
"0.55926454",
"0.55917513",
"0.5588217",
"0.5584343",
"0.5575055",
"0.55395675",
"0.54989356",
"0.5489625",
"0.5487102",
"0.548605",
"0.5483215",
"0.54827875",
"0.54764706",
"0.5475533",
"0.5468706",
"0.5461151",
"0.5458121",
"0.54526633",
"0.5448702",
"0.5423933",
"0.5421104",
"0.54032314",
"0.540219",
"0.53938025",
"0.5390694",
"0.538366",
"0.5377831",
"0.5368581",
"0.5367389",
"0.53631127",
"0.53602445",
"0.5358466",
"0.5347174",
"0.5337419",
"0.5332345",
"0.53244805",
"0.5319192",
"0.53114176",
"0.5303149",
"0.52932423",
"0.5292216",
"0.5292216",
"0.5292216",
"0.5292216",
"0.5292216",
"0.5292216",
"0.5292216",
"0.5292216",
"0.5292216",
"0.5292216",
"0.5292216",
"0.5292216",
"0.5292216",
"0.5292216",
"0.5292216",
"0.5292216",
"0.5292216",
"0.52892107",
"0.52766496",
"0.5275695",
"0.5273785",
"0.5273724",
"0.52702194",
"0.52678734",
"0.52672493",
"0.526249",
"0.5261833",
"0.5261064",
"0.5260591",
"0.526025",
"0.5256247",
"0.5240271",
"0.5239586",
"0.52343494",
"0.52281755",
"0.5228122"
] | 0.0 | -1 |
Sugestao do Daniel Olivera (Muito boa) de impressao direta do objeto via toString(); | @Override
public String toString() {
return "[" + this.getTimestamp() + "] " + this.getOwnerName() + " -> " + this.getText();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"@Test\n\tpublic void testaToString() {\n\t\tcontato = new Contato(\"Jardely\", \"Maris\", \"984653722\");\n\t\tassertEquals(contato.toString(), \"Jardely Maris - 984653722\");\n\t}",
"public String toString() ;",
"public String toString()\r\n/* 189: */ {\r\n/* 190:321 */ return this.autorizacion;\r\n/* 191: */ }",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"@Override\n public String toString() {\n return ObjectContracts.toString(this, \"objectType\", \"name\", \"atPath\");\n }",
"public String toString(){\n return \"+-----------------------+\\n\" +\n \"| Boleto para el metro |\\n\" +\n \"|derjere0ranfeore |\\n\" +\n \"+-----------------------+\\n\" ;\n }",
"@Override\n public String toString() {\n return ArrayHelper.join(this.toArray(new Part[0]), \"/\");\n }",
"@Override\n public String toString() {\n if (bombe) {\n return \"/\";\n } else if (bombeNaboer == 0) {\n return \" \";\n }\n return \"\" + bombeNaboer;\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\tString texto = String.format(\"+ %s - Luta:\\n\", getNome());\r\n\t\ttexto += super.toString();\r\n\t\treturn texto;\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn path.toString();\n\t}",
"public String toStringWithRelation();",
"public String toString(){\n return \"Salir carcel\";\n }",
"public String toString() { return \"\"; }",
"public String toString() { return \"\"; }",
"public String toString(){\n \treturn \"todo: use serialize() method\";\r\n }",
"@Override\npublic String toString() {// PARA MOSTRAR LOS DATOS DE ESTA CLASE\n// TODO Auto-generated method stub\nreturn MuestraCualquiera();\n}",
"@Override\n\tpublic String toString(){\n\t\treturn origin;\n\t}",
"public String toString() {\n return \"/\" + toIdent(0);\n }",
"public String toString() {\r\n\t\treturn \"Ogirin=\"+this.getOrigin().toString()+\", Direction=\"+this.getDirection().toString();\r\n\t}",
"public String toString() { return stringify(this, true); }",
"@Override\n public String toString(){\n StringBuilder retorno = new StringBuilder(\" ( *\");\n for(INodo descendiente : getDescendientes()){\n retorno.append(descendiente);\n }\n retorno.append(\" )\");\n\n return String.valueOf(retorno);\n }",
"public String toString();",
"public String toString() {\r\n\t\tString tentangCircle;\r\n\t\ttentangCircle = \"Bil objek ialah \" + bilObjekWujud;\r\n\t\t// tentangCircle = \"Jejari = \" + jejari\r\n\t\t// +\"\\nx = \" + x\r\n\t\t// + \"\\nLuas adalah \" + KiraLuas();\r\n\t\treturn tentangCircle;\r\n\r\n\t}",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public String toString(){\r\n\t\t\t\t\treturn \"перший в черзі і шлях вільний\";\r\n\t\t\t\t}",
"public String toString() {\n\t\tif ( giorno == 0 || mese == \"\" || anno == 0 ) {\n\t\t\treturn \"Non definito\";\n\t\t} else {\n\t\t\treturn new String(giorno + \"/\" + mese + \"/\" + anno );\n\t\t}\n\t}",
"public String toString(Object o) { return Objects.toString(o,null); }",
"public String toString()\n {\n return \"(\"+getType()+\")\"+getLocation(); \n }",
"@Override\n\tString toString();",
"@Override\n public String toString() {\n return nome + placa;\n }",
"@Override\n public String toString(){\n return \" Vuelo \"+this.getTipo()+\" \" +this.getIdentificador() +\"\\t \"+ this.getDestino()+ \"\\t salida prevista en \" + timeToHour(this.getTiemposal())+\" y su combustible es de \"+this.getCombustible()+\" litros.( \"+ String.format(\"%.2f\", this.getCombustible()/this.getTankfuel()*100) + \"%).\"; \n }",
"@Override\n String toString();",
"@Override\n String toString();",
"@Override\n public String toString() {\n final ToString ts = new ToString(this);\n\n ts.append(\"path\", getPath());\n\n return ts.toString();\n }",
"public String toString()\n {\n return id() + location().toString() + direction().toString();\n }",
"@Override String toString();",
"public String toString()\n {\n\tString returnString = \"\";\n\treturnString += \"[ \" + cargo + \" ][ * ]--> \";\n\treturn returnString;\n }"
] | [
"0.6895365",
"0.6895365",
"0.6895365",
"0.6895365",
"0.6895365",
"0.6895365",
"0.6895365",
"0.6895365",
"0.6895365",
"0.6895365",
"0.6895365",
"0.6895365",
"0.6895365",
"0.6895365",
"0.6895365",
"0.6895365",
"0.6895365",
"0.6895365",
"0.6895365",
"0.6895365",
"0.6895365",
"0.6895365",
"0.6895365",
"0.6895365",
"0.6895365",
"0.6895365",
"0.6895365",
"0.6895365",
"0.6794015",
"0.6710388",
"0.65930206",
"0.6585688",
"0.6585688",
"0.6585688",
"0.6585688",
"0.6585688",
"0.6585688",
"0.6585688",
"0.6585688",
"0.6585688",
"0.6585688",
"0.6585688",
"0.6585688",
"0.6585688",
"0.6585688",
"0.6585688",
"0.6585688",
"0.6585688",
"0.6585688",
"0.6585688",
"0.6585688",
"0.6585688",
"0.6585688",
"0.6496558",
"0.6444429",
"0.64302313",
"0.6410145",
"0.6404731",
"0.6395872",
"0.6380148",
"0.6379752",
"0.63699865",
"0.63699865",
"0.63683885",
"0.63490677",
"0.63423693",
"0.63260114",
"0.6319645",
"0.63133675",
"0.63089955",
"0.6300372",
"0.62991124",
"0.6289899",
"0.6289899",
"0.6289899",
"0.6289899",
"0.6289899",
"0.6289899",
"0.6289899",
"0.6289899",
"0.6289899",
"0.6289899",
"0.6289899",
"0.6289899",
"0.6289899",
"0.6289899",
"0.6289899",
"0.6289899",
"0.62872624",
"0.6287088",
"0.6283088",
"0.62740505",
"0.62685245",
"0.6268023",
"0.62651604",
"0.6257226",
"0.6257226",
"0.62426466",
"0.6237322",
"0.62331545",
"0.62304896"
] | 0.0 | -1 |
AUTOMATICALLY SETS ITS CREATION TIME | public Message () {
this.setCreationtime(Calendar.getInstance().getTimeInMillis());
setTimestamp();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void setupTime() {\n this.start = System.currentTimeMillis();\n }",
"public long timeOfCreation() {\n\t\treturn timeOfCreation ;\n\t}",
"private void setCreateTime(long createTime) {\n this.createTime = createTime;\n }",
"public void setCreateTime(Date createTime)\n/* */ {\n/* 184 */ this.createTime = createTime;\n/* */ }",
"private void setCreatedTime(int value) {\n \n createdTime_ = value;\n }",
"Instant getCreated();",
"@SuppressWarnings(\"deprecation\")\n private void initTime() {\n //Time time = new Time(System.currentTimeMillis());\n time = new Date().getTime();\n }",
"@Override\n\tpublic double timeToInitialize() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic long getCreationTime() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic long getCreationTime() {\n\t\treturn 0;\n\t}",
"public synchronized int setArrivalTime(){\n\t\t return random.nextInt((30-1)+1)+1;\n\n\t}",
"public void setCreationTime(DateTime creationTime) {\n this.created = creationTime;\n }",
"public void setCreatTime(Date creatTime) {\n this.creatTime = creatTime;\n }",
"public void setCreatTime(Date creatTime) {\n this.creatTime = creatTime;\n }",
"public void setTimeCreate(Date timeCreate) {\n this.timeCreate = timeCreate;\n }",
"public Date getCreateTime()\n/* */ {\n/* 177 */ return this.createTime;\n/* */ }",
"public void setCreationTime(DateTime creationTime) {\n this.creationTime = creationTime;\n }",
"private Long createId() {\n return System.currentTimeMillis() % 1000;\n }",
"int getCreateTime();",
"long getCreateTime();",
"long getCreateTime();",
"@Override\n\tpublic Long updateStartTime() {\n\t\treturn null;\n\t}",
"public int getCreateTime() {\n return createTime_;\n }",
"public void newTimeKey() {\r\n\t\ttimeKeyA = System.nanoTime();\r\n\t}",
"public void setCreateTime(Integer createTime) {\r\n this.createTime = createTime;\r\n }",
"public long getCreateTime() {\n return createTime_;\n }",
"public void makeNow() {\n makeNow(0);\n }",
"public void setCreationTime(Date creationTime) {\n this.creationTime = creationTime;\n }",
"public void setCreationTime(Date creationTime) {\n this.creationTime = creationTime;\n }",
"public void resetTime( long time) {\n nextClusterGenerationTime = time + nextClusterGenerationTime - lastGenerationTime ;\n }",
"public void setCreate_time(Date create_time) {\n this.create_time = create_time;\n }",
"public void setCreate_time(Date create_time) {\n this.create_time = create_time;\n }",
"protected abstract T create(final double idealStartTime);",
"public void setCreateTime(Integer createTime) {\n this.createTime = createTime;\n }",
"public Builder setCreateTime(long value) {\n\n createTime_ = value;\n onChanged();\n return this;\n }",
"public void setCreatetime(Long createtime) {\n this.createtime = createtime;\n }",
"public void setCreationTime( Date creationTime )\n\t{\n\t\tthis.creationTime\t= creationTime;\n\t}",
"public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }",
"public Date getTimeCreate() {\n return timeCreate;\n }",
"public void setTime(){\r\n \r\n }",
"private void setCreateTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(CREATETIME_PROP.get(), value);\n }",
"public int getCreateTime() {\n return createTime_;\n }",
"private void clearCreatedTime() {\n \n createdTime_ = 0;\n }",
"public long getCreateTime() {\n return createTime_;\n }",
"@Test\n public void testCreationTimestamp() {\n Product newProduct = TestUtil.createProduct();\n productCurator.create(newProduct);\n Pool pool = createPoolAndSub(owner, newProduct, 1L,\n TestUtil.createDate(2011, 3, 30),\n TestUtil.createDate(2022, 11, 29));\n poolCurator.create(pool);\n \n assertNotNull(pool.getCreated());\n }",
"public long getCreationTimeSeconds() {\n return creationTimeSeconds;\n }",
"@Override\r\n\tpublic int requiredTime() {\n\t\treturn 0;\r\n\t}",
"long getCreationTime();",
"long getCreationTime();",
"long getCreationTime();",
"public Date getCreateTime() {\r\n return createTime;\r\n }",
"public Date getCreateTime() {\r\n return createTime;\r\n }",
"public Date getCreateTime() {\r\n return createTime;\r\n }",
"public Date getCreateTime() {\r\n return createTime;\r\n }",
"public Date getCreateTime() {\r\n return createTime;\r\n }",
"public Date getCreateTime() {\r\n return createTime;\r\n }",
"public void setCreationTime(LocalDateTime creationTime) {\n\t\tthis.creationTime = creationTime;\n\t}",
"public Builder setCreateTime(int value) {\n bitField0_ |= 0x00000008;\n createTime_ = value;\n onChanged();\n return this;\n }",
"public void setCreateTime(Date createTime) {\r\n this.createTime = createTime;\r\n }",
"public void setCreateTime(Date createTime) {\r\n this.createTime = createTime;\r\n }",
"public void setCreateTime(Date createTime) {\r\n this.createTime = createTime;\r\n }",
"public void setCreateTime(Date createTime) {\r\n this.createTime = createTime;\r\n }",
"public void setCreateTime(Date createTime) {\r\n this.createTime = createTime;\r\n }",
"public void setCreateTime(Date createTime) {\r\n this.createTime = createTime;\r\n }",
"public Long getCreatetime() {\n return createtime;\n }",
"public void setStartTime() {\r\n startTime = System.currentTimeMillis();\r\n }",
"public abstract long getCreated();",
"public DateTime getCreationTime() { return creationTime; }",
"public void setCreateTime(Date createTime) {\n this.createTime = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(createTime);\n }",
"public int getCreatedTime() {\n return createdTime_;\n }",
"public long getCreateTime() {\n return this.createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }"
] | [
"0.71428776",
"0.71060026",
"0.6806087",
"0.67819357",
"0.6620115",
"0.6599305",
"0.65711826",
"0.65645427",
"0.6526878",
"0.6526878",
"0.65093076",
"0.649846",
"0.6465656",
"0.6465656",
"0.6446447",
"0.6436524",
"0.6420416",
"0.6419808",
"0.6388252",
"0.63658535",
"0.63658535",
"0.6337249",
"0.6317526",
"0.63086295",
"0.6305087",
"0.62984776",
"0.62984204",
"0.6267586",
"0.6267586",
"0.6260328",
"0.6259527",
"0.6259527",
"0.62586826",
"0.6255708",
"0.6239223",
"0.62382066",
"0.6238024",
"0.6225123",
"0.622316",
"0.62219334",
"0.62160414",
"0.6215879",
"0.6212911",
"0.61982757",
"0.6188204",
"0.6180504",
"0.6172167",
"0.6172155",
"0.6172155",
"0.6172155",
"0.61706245",
"0.61706245",
"0.61706245",
"0.61706245",
"0.61706245",
"0.61706245",
"0.61650735",
"0.6162306",
"0.61545354",
"0.61545354",
"0.61545354",
"0.61545354",
"0.61545354",
"0.61545354",
"0.61456877",
"0.6143674",
"0.61372113",
"0.6131104",
"0.61202013",
"0.61135966",
"0.6108747",
"0.6107915",
"0.6107915",
"0.6107915",
"0.6107915",
"0.6107915",
"0.6107915",
"0.6107915",
"0.6107915",
"0.6107915",
"0.6107915",
"0.6107915",
"0.6107915",
"0.6107915",
"0.6107915",
"0.6107915",
"0.6107915",
"0.6107915",
"0.6107915",
"0.6107915",
"0.6107915",
"0.6107915",
"0.6107915",
"0.6107915",
"0.6107915",
"0.6107915",
"0.6107915",
"0.6107915",
"0.6107915",
"0.6107915",
"0.6107915"
] | 0.0 | -1 |
send a JS event | public static void sendEvent(final ReactContext context, final String eventName, Object body) {
if (context != null) {
context
.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class)
.emit(eventName, body);
} else {
Log.d(TAG, "Missing context - cannot send event!");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void sendEvent(Event event);",
"private void sendMessageToJs(JSONObject event, CallbackContext callback) {\n final PluginResult result = new PluginResult(PluginResult.Status.OK, event);\n result.setKeepCallback(true);\n callback.sendPluginResult(result);\n }",
"public static void triggerJQ(JavascriptExecutor executor, String event, WebElement element) {\n jQ(executor, String.format(\"trigger('%s')\", event), element);\n }",
"public void trigger(Event event);",
"void sendCommand(CommandEvent event);",
"public void post(Object event);",
"public void simpleEvent() {\n AdGyde.onSimpleEvent(\"SimpleEventID\");\n Toast.makeText(this, \"Simple event clicked\", Toast.LENGTH_SHORT).show();\n }",
"public void setSendEvent(EventOccurrence sendEvent);",
"public static void triggerJQ(String event, WebElement element) {\n triggerJQ(getExecutorFromElement(element), event, element);\n }",
"public void runEvent();",
"void sendM2Event(String event, String data) {\n String command = String.format(\"window.dispatchEvent(new CustomEvent('m2', { detail: { event: '%s', data: %s }}))\",\n event, data);\n runOnUiThread(() -> webView.evaluateJavascript(command, null));\n }",
"@Override\r\n\tpublic void onEvent(Object e) {\n\t}",
"void onEvent (ZyniEvent event, Object ... params);",
"private void sendAsyncEvent(double event_type) {\n\t\tint dsMapIndex = RunnerJNILib.jCreateDsMap(null, null, null);\n\t\tRunnerJNILib.DsMapAddString( dsMapIndex, \"type\", \"kidoz_sdk\" );\n\t\tRunnerJNILib.DsMapAddDouble( dsMapIndex, \"event_type\", event_type);\n\t\tRunnerJNILib.CreateAsynEventWithDSMap(dsMapIndex, EVENT_OTHER_SOCIAL);\n\t}",
"@Override\n\tpublic void handleJs(JavaScriptObject message) {\n\t\t\n\t}",
"void vpaid_fireEvent(String type, String value);",
"RemoteEvent createRemoteEvent();",
"public Response fire(EventI event);",
"public String getEventName();",
"void dispatchEvent(DistributedEvent event);",
"public void sendRegister(ActionEvent actionEvent) {\n }",
"void event(Event e) throws Exception;",
"protected abstract void onEvent(final AjaxRequestTarget target);",
"@Override\n public void fw_javascriptClick() {\n WrapsDriver wd = (WrapsDriver) element;\n ((JavascriptExecutor) wd.getWrappedDriver()).executeScript(\"arguments[0].click();\", element);\n }",
"private void sendMessage() {\n Log.d(\"sender\", \"Broadcasting message\");\n Intent intent = new Intent(\"custom-event-name\");\n // You can also include some extra data.\n double[] destinationArray = {getDestination().latitude,getDestination().longitude};\n intent.putExtra(\"destination\", destinationArray);\n LocalBroadcastManager.getInstance(this).sendBroadcast(intent);\n }",
"public void setEventName(String name);",
"@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\n\t\t\t\tURL url = new URL(\"http://ecshopxax.sinaapp.com/js/index.js\");\n\t\t\t\tURLConnection connection = url.openConnection();\n\t\t\t\tInputStream is = connection.getInputStream();\n\t\t\t\tbyte[] bs = new byte[1024];\n\t\t\t\tint len = 0;\n\t\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\t\twhile ((len = is.read(bs)) != -1) {\n\t\t\t\t\tString str = new String(bs, 0, len);\n\t\t\t\t\tsb.append(str);\n\t\t\t\t}\n\n\t\t\t\tMessage msg = new Message();\n\t\t\t\tmsg.what = 0x15;\n\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\tbundle.clear();\n\n\t\t\t\t// bundle.putString(\"recv_server\", new String(buffer));\n\t\t\t\tbundle.putString(\"text1\", sb.toString());\n\n\t\t\t\tmsg.setData(bundle);\n\n\t\t\t\tmyHandler.sendMessage(msg);\n\n\t\t\t\n\t\t\t} catch (Exception e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"public void sendEvent(int id, int arg) {\n\t\tgetWorld().addBlockEvent(getPos(), getWorld().getBlockState(getPos()).getBlock(), id, arg);\n\t}",
"@Override\n\tpublic void ActOnNotification(String message) {\n\t \tSystem.out.println(\"Sending Event\");\n\t}",
"public void invokeJsCallback(byte[] buffer) {\n getJsContextInfo().postMessage(buffer);\n }",
"public void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\tSystem.out.println(\"Sent\");\n\t\t\t\t\t}",
"public void executeScript(String js) {\n try {\n this.webView.getEngine().executeScript(js);\n } catch (RuntimeException ex) {\n ex.printStackTrace();\n if (!this.pdfJsLoaded) this.toExecuteWhenPDFJSLoaded += String.format(\"%s;\", js);\n }\n }",
"Event () {\n // Nothing to do here.\n }",
"public void onSend(View v){\n Socket msocket;\n try {\n msocket = IO.socket(\"http://10.0.2.2:9080/\");\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n //msocket=cApp.getSocket();\n msocket.connect();\n msocket.emit(\"sendTest\",\"fkg\");\n msocket.on(\"sendTest\",onSendTest);\n }",
"public void onClick(ClickEvent event) {\r\n System.out.println(\"Submit Button geklickt\");\r\n handleEvent();\r\n }",
"private void eventhandler() {\n\r\n\t}",
"void onBusEvent(Event event);",
"public void sendEvent(final String name, final Bundle extras)\n {\n sendEngagementCommand(new Runnable()\n {\n @Override\n public void run()\n {\n try\n {\n mEngagementService.sendEvent(name, extras);\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }\n });\n }",
"public void onClick(ClickEvent event) {\n\t\t\t\tsendNameToServer();\n\t\t\t}",
"public void sendMouseClickEvent(MouseEvent event){\n // Kirim event OnMouseClick ke subs dari MouseClickSubs saat klik\n // Ini dipanggil oleh Avatar Duel pada setOnMouseClicked pada handle()\n // Reference: (1) - Cari bagian mouse click\n System.out.println(\"mouseclick\");\n for (int i = 0; i < mouseClickSubs.size(); i++){\n mouseClickSubs.get(i).onMouseClick(event);\n }\n }",
"protected void clickJs(WebElement elemento) {\n\t\texecuteJavaScript(elemento, \"click()\");\n\t}",
"void onNetworkEvent(NetworkEvent event);",
"abstract public void fireEvent(String eventkey, Object listener, Object event);",
"public void emit(String event, JsonObject jsonObject) {\n//\t\tif (ev == 'newListener') {\n//\t\t\treturn this.$emit.apply(this, arguments);\n//\t\t}\n\n\t\tJsonObject packet = new JsonObject();\n\t\tpacket.putString(\"type\", \"event\");\n\t\tpacket.putString(\"name\", event);\n\n//\t\tif ('function' == typeof lastArg) {\n//\t\t\tpacket.id = ++this.ackPackets;\n//\t\t\tpacket.ack = lastArg.length ? 'data' : true;\n//\t\t\tthis.acks[packet.id] = lastArg;\n//\t\t\targs = args.slice(0, args.length - 1);\n//\t\t}\n\t\tif(jsonObject != null) {\n\t\t\tJsonArray args = new JsonArray();\n\t\t\targs.addObject(jsonObject);\n\t\t\tpacket.putArray(\"args\", args);\n\t\t}\n\t\tthis.packet(packet);\n\t}",
"public void buttonClick(ClickEvent event) {\n\t\t\t\t\t\t JavaScript.getCurrent().execute(\"print();\");\n\t\t\t\t\t\t }",
"@Override\r\n\tpublic void onEvent(Event arg0) {\n\r\n\t}",
"@JavascriptInterface\n public void VIA() {\n sensorManager.registerListener(c, accelerometer, SensorManager.SENSOR_DELAY_NORMAL);\n sensorManager.registerListener(c, giroscopio, SensorManager.SENSOR_DELAY_NORMAL);\n sensorManager.registerListener(c, gravità, SensorManager.SENSOR_DELAY_NORMAL);\n misC=0; // sovrascrivo le vecchie.\n }",
"@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tSendToServer(ph);\n\t\t\t\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"public void runInUi(ElexisEvent ev){}",
"public void send(EventStore es, Template template);",
"public void send(final Map<String, String> json) {\n if (googleAnalyticsEnabled) {\n tracker.send(json);\n }\n\n if (urbanAirshipEnabled) {\n createCustomEvent(json);\n }\n }",
"protected void firePaperJamEvent()\n {\n // construct parameters and signatures\n Object[] parameter = new Object[ 1 ];\n parameter[ 0 ] = new Notification( \n \"PrinterEvent.PAPER_JAM\", this, 0L );\n String[] signature = new String[ 1 ];\n signature[ 0 ] = \"javax.management.Notification\";\n \n // invoke notification\n try {\n mBeanServer.invoke( eventBroadcasterName,\n \"sendNotification\", parameter, signature ); \n } \n\n // handle exception when invoking method\n catch( ReflectionException exception ) {\n exception.printStackTrace();\n }\n\n // handle exception communicating with MBean\n catch( MBeanException exception ) {\n exception.printStackTrace();\n } \n\n // handle exception if MBean not found\n catch( InstanceNotFoundException exception ) {\n exception.printStackTrace();\n } \n\n }",
"public void ajaxListener() {\n System.out.println(\"!ttttt \" );\n }",
"void onNewEvent(Event event);",
"public String execute() {\n\t\ttry {\n\t\t\treturnMsg = MESSAGE_EVENT_ADDED;\n\t\t\tcheckEventClash();\n\t\t\tstoreEvent();\n\t\t\treturn returnMsg;\n\t\t} catch (IOException e) {\n\t\t\treturn MESSAGE_EVENT_ERROR;\n\t\t} finally {\n\t\t\tupdateView();\n\t\t\tMagical.setCurrentTab(\"events\");\n\t\t}\n\t}",
"@Override\n public void onAdClicked(final String target){\n this.cordova.getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n String event = \"javascript:cordova.fireDocumentEvent('onAdClicked', {'zone':'\"+target+\"'})\";\n webView.loadUrl(event);\n }\n });\n }",
"public void actionPerformed(ActionEvent e) {\n\t\tadaptee.botonEnviar_actionPerformed(e);\n\t}",
"public void onEventMainThread(Object event) {\n\n }",
"public static void executeJavaScript(final WebDriver driver, final String js) {\n\t\t((JavascriptExecutor) driver).executeScript(js);\n\t}",
"public void dataSent(LLRPDataSentEvent event);",
"public static native void fireEvent(String name, JavaScriptObject event) /*-{\n\t\tTitanium.XML.fireEvent(name, event);\n\t}-*/;",
"@Override\n\tpublic void fireEvent(EventObject event, boolean blocked) {\n\t\tSystem.out.println(event);\n\t}",
"protected String event2JavaScript(Event event) throws IOException {\n\n\t\t// Convert the event to a comma-separated string.\n\t\tString jsArgs = \"\";\n\t\tfor (Iterator iter = event.getFieldNames(); iter.hasNext();) {\n\t\t\tString name = (String) iter.next();\n\t\t\tString value = event.getField(name);\n\t\t\tString nextArgument = (jsArgs.equals(\"\") ? \"\" : \",\") + \"'\" + name + \"'\" + \", \\\"\" + value + \"\\\"\";\n\t\t\tjsArgs += nextArgument;\n\t\t}\n\n\t\t// Construct and return the function call */\n\t\treturn \"<script language=\\\"JavaScript\\\">parent.push(\" + jsArgs + \");</script>\";\n\t}",
"public void sendSessionEvent(final String name, final Bundle extras)\n {\n sendEngagementCommand(new Runnable()\n {\n @Override\n public void run()\n {\n try\n {\n mEngagementService.sendSessionEvent(name, extras);\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }\n });\n }",
"private void sendToMyself(ProxyEvent event) throws AppiaEventException {\n \t\ttry {\n \t\t\tProxyEvent clone = (ProxyEvent) event.cloneEvent();\n \t\t\tclone.storeMessage();\n \t\t\tclone.setDir(Direction.DOWN);\n \t\t\tclone.setChannel(vsChannel);\n \t\t\tclone.setSourceSession(this);\n \t\t\tclone.init();\n \n \t\t\tEchoEvent echo = new EchoEvent(clone, this.vsChannel, Direction.UP, this);\n \t\t\techo.init();\n \t\t\techo.go();\n \t\t} catch (CloneNotSupportedException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}",
"@Override\n public void publish(Object event) {\n System.out.println(\"Sending Event\");\n\n List<Hub> hubList = hubFacade.findAll();\n Iterator<Hub> it = hubList.iterator();\n while (it.hasNext()) {\n Hub hub = it.next();\n restEventPublisher.publish(hub, event);\n\n\n //Thread.currentThread().sleep(1000);\n }\n System.out.println(\"Sending Event After\");\n }",
"public void executeScript(final String javaScript) {\n\t\tif(Platform.isFxApplicationThread()) {\n\t\t\twebEngine.executeScript(javaScript);\n\t\t}else {\n\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\twebEngine.executeScript(javaScript);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}",
"@ReactMethod\n public void timeEvent(String event){\n mixpanel.timeEvent(event);\n }",
"@Override\r\n\tprotected void onGuiEvent(GuiEvent arg0) {\n\t\taddBehaviour(new SendMessage());\r\n\r\n\t}",
"public void asyncFire(EventI event);",
"public void triggerEvent(Event event, BaseEntity command);",
"void onApplicationEvent(ApplicationEvent e);",
"@Override\r\n public void onEvent(FlowableEvent event) {\n }",
"private void sendEventToServer() throws UnknownHostException, IOException {\n \t\t\n \t\tSocket socket = null; \n \t\t\n \t\tsocket = new Socket(Constants.ServerIp, Constants.Port);\n \t\t\n \t\tObjectOutputStream serializer = null;\n \t\t\n \t\tserializer = new ObjectOutputStream(socket.getOutputStream());\n \t\t//TODO: Send a message to server for new Event\n \t\t\n \t\tMessageType t = MessageType.newPubEventMessage;\n \t\tserializer.writeObject(t);\n \t\tserializer.writeObject(event);\n \t\tserializer.flush();\n \t\t//TODO: Send the event\n \t\t//TODO: Send to Pending Screen\n \t}",
"public void push(Event anEvent) throws IOException {\n\t\tLog.debug(\"BCA event=\" + anEvent.toXML());\n\n\t\t// Check if we should refresh\n\t\tif (anEvent.getEventType().equals(Protocol.E_REFRESH)) {\n\t\t\t// Append refresh and tail of HTML document\n\t\t\t// Construct the JS callback line to be sent as last line of doc.\n\t\t\t// This will refresh the request using the unique id to determine\n\t\t\t// the subscriber instance on the server. The client will wait for\n\t\t\t// a number of milliseconds.\n\t\t\tlong refreshWaitMillis = Long.parseLong(anEvent.getField(P_WAIT));\n\n\t\t\t// Create servlet request for requesting next events (refresh)\n\t\t\tString url = anEvent.getField(P_URL);\n\t\t\tString jsRefreshTrigger = \"\\n<script language=\\\"JavaScript\\\">url=\\'\" + url + \"\\';\\n setTimeout(\\\"refresh()\\\", \" + refreshWaitMillis + \");\\n</script>\";\n\n\n\t\t\tsend(jsRefreshTrigger + END_DOCUMENT);\n\t\t} else {\n\t\t\tsend(event2JavaScript(anEvent));\n\t\t}\n\t}",
"@JsFunction @FunctionalInterface\n interface EventCall {\n void onEvent(NativeEvent e);\n }",
"public EventOccurrence getSendEvent();",
"@JavascriptInterface\n public void sendCommand(String array) {\n Log.d(TAG, \"sendCommand: \" + array);\n if (!connected) {\n Log.e(TAG, \"Attempting to send M2 a command while its not connected: \" + array);\n return;\n }\n try {\n JSONArray json = new JSONArray(array);\n byte[] data = new byte[json.length()];\n for (int i = 0; i < data.length; i++) {\n data[i] = (byte) json.getInt(i);\n }\n EventBus.getDefault().post(new M2Command(data));\n }\n catch (JSONException e) {\n Log.e(TAG, \"Invalid command: \" + array);\n }\n }",
"public void operationStart(BGMEvent e);",
"@Override\n\tpublic void onFinishProcessingWithOptions(SmartEvent smartEvent) {\n\t\tfinal String jsCallback = smartEvent.getJavaScriptNameToCall();\n\t\tfinal String jsCallbackArg = smartEvent.getJavaScriptNameToCallArg();\n\t\trunOnUiThread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tnotifyToJavaScript(jsCallback, jsCallbackArg);\n\t\t\t}\n\t\t});\n\t}",
"@Override\r\n\tprotected void sendInternal(String jsS, HandlerI<String> onfailure) {\r\n\r\n\t\t// not supported failure callback.\r\n\t\tif (onfailure != null) {\r\n\t\t\t//\r\n\t\t}\r\n\t\tthis.socket.send(jsS);\r\n\t}",
"void onClick(AjaxRequestTarget target);",
"@EncoderThread\n protected void onEvent(@NonNull String event, @Nullable Object data) {}",
"@Override\r\n\tpublic void onClick() {\n\t\tif(bSendStatus)\r\n\t\t\tnativeadstatus(E_ONCLICK);\r\n\t}",
"private void send() {\n vertx.eventBus().publish(GeneratorConfigVerticle.ADDRESS, toJson());\n }",
"public static void onEvent(String eventId) {\n\n SimpleDateFormat df = new SimpleDateFormat(\"HH:mm:ss\");\n Date curDate = new Date(System.currentTimeMillis());//获取当前时间\n String currentTime = df.format(curDate);\n\n\n try {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"time\", currentTime);\n\n FlurryAgent.onEvent(eventId, params);\n } catch (Throwable t) {\n }\n\n }",
"private void sendNotification() {\n }",
"public void clientInputEvent(String xml);",
"public native void addEventListener(String name, EventCall f);",
"public void onEventMainThread(MessageEvent event){\n Toast.makeText(this, event.message, Toast.LENGTH_SHORT).show();\n }",
"public void SimAdded(AddSimEvento event);",
"public void callSendEvent(PacketEvent event) {\n\t\tfor(PacketListener l : PACKET_OUT_LISTENER) \n\t\t\tl.onEvent(event);\n\t}",
"@Subscribe\n public void onEvent(Object event) {\n }",
"@Subscribe\n public void onEvent(Object event) {\n }",
"void notifyMouseEvent(int id, long when, int button,\n int x, int y, int absX, int absY,\n int modifiers, int clickCount, boolean popupTrigger,\n byte[] bdata);",
"void eventChanged();",
"protected void fireSimulateEvent ()\n {\n\tJsimEvent evt;\n\tSimulate controlData = collectControlData ();\n\tString SLASH = System.getProperty (\"file.separator\");\n\tString fname = System.getProperty (\"user.home\");\n\tString xmlStr;\n\n\tif (use_xml) {\n try {\n\t\t Vector data = new Vector (); data.add (controlData);\n\t\t if (generate_xml_files) {\n\t\t\tfname += SLASH + \"JSIM\" + SLASH + \"jsim\" + SLASH +\n\t\t\t\t\t\"jmessage\" + SLASH + \"simulate.xml\";\n\t\t\txmlStr = XMLSerializer.serialize (data, fname);\n\t\t } else {\n\t\t\txmlStr = XMLSerializer.serialize (data);\n\t\t }; // if\n evt = new JsimEvent (this, EventMap.SIMULATE_EVT, xmlStr);\n } catch (Exception e) {\n trc.tell (\"fireSimulateEvent \", e.getMessage ());\n e.printStackTrace ();\n return ;\n }\n\t} else {\n\t evt = new JsimEvent (this, EventMap.SIMULATE_EVT, controlData);\n\t}; // if\n\n\tfireJsimEvent (evt);\n\n }",
"@Override\n\tpublic void sendPacket() {\n\t\t\n\t\tStringBuilder theURL = new StringBuilder();\n\t\t\n\t\ttheURL.append(core.modelCore.targetURL);\n\t\ttheURL.append(\"michael/updateevent.php?\");\n\t\ttheURL.append(\"page=\" + \"eleven\" +\"&\"); //page = \"three\"&\n\t\ttheURL.append(\"name=\" + core.modelCore.selectedEvent.eventName +\"&\");\n\t\ttheURL.append(\"answer=\" + yesBox.isChecked() +\"&\");\n\t\ttheURL.append(\"user=\" + core.modelCore.username);\n\t\t\n\t\tSystem.out.println( theURL.toString() );\n\t\t\n\t\tLogic_PHP.getResponseFromURL(core, theURL.toString());\n\t}",
"@Override\n\tpublic void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception {\n\t\tLog.i(\"userEventTriggered\", ((String) msg));\n\t\tsuper.write(ctx, msg, promise);\n\t}",
"public static void sendKeysByJS(WebDriver driver, WebElement element,\n\t\t\tString sData) throws InterruptedException {\n\t\tThread.sleep(750);\n\t\tJavascriptExecutor executor = (JavascriptExecutor) driver;\n\t\texecutor.executeScript(\"arguments[0].value=arguments[1];\", element,\n\t\t\t\tsData);\n\t}",
"@Override\n\t public void onClick(View v) {\n\t \t SendReqToPebble();\n\t }"
] | [
"0.68757355",
"0.62616974",
"0.60600466",
"0.5894746",
"0.582574",
"0.57958806",
"0.5786549",
"0.5761753",
"0.5750387",
"0.5745083",
"0.572015",
"0.5716612",
"0.57065713",
"0.5543319",
"0.5539611",
"0.5534899",
"0.55331296",
"0.55150616",
"0.5514698",
"0.55073285",
"0.5501797",
"0.54971457",
"0.54682493",
"0.5444542",
"0.54090023",
"0.5392138",
"0.53788626",
"0.5377623",
"0.537051",
"0.53488845",
"0.53364193",
"0.53231966",
"0.5313266",
"0.5308808",
"0.5303596",
"0.5302586",
"0.5302071",
"0.5298416",
"0.52977127",
"0.5296828",
"0.52922314",
"0.5286756",
"0.52865463",
"0.5275173",
"0.52623266",
"0.52510935",
"0.52395374",
"0.5223049",
"0.5212184",
"0.5211305",
"0.5208244",
"0.5204934",
"0.5203128",
"0.51941246",
"0.51910603",
"0.5186645",
"0.517993",
"0.5178144",
"0.5172663",
"0.5165236",
"0.51479846",
"0.5136182",
"0.5132877",
"0.51324534",
"0.5113997",
"0.5111417",
"0.5099482",
"0.50953954",
"0.5085821",
"0.5084497",
"0.50790626",
"0.50778383",
"0.50767845",
"0.5075688",
"0.50635546",
"0.5059545",
"0.50583124",
"0.5054208",
"0.5048942",
"0.5048361",
"0.5047406",
"0.5044941",
"0.5042691",
"0.5040345",
"0.50403357",
"0.5039046",
"0.503877",
"0.5026303",
"0.5026176",
"0.5024137",
"0.501785",
"0.50106895",
"0.5007496",
"0.5007496",
"0.5001792",
"0.4995042",
"0.4988981",
"0.49889287",
"0.49819785",
"0.49601084",
"0.4954741"
] | 0.0 | -1 |
We need to check if app is in foreground otherwise the app will crash. | public static boolean isAppInForeground(Context context) {
ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
List<ActivityManager.RunningAppProcessInfo> appProcesses =
activityManager.getRunningAppProcesses();
if (appProcesses == null) {
return false;
}
final String packageName = context.getPackageName();
for (ActivityManager.RunningAppProcessInfo appProcess : appProcesses) {
if (appProcess.importance ==
ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND &&
appProcess.processName.equals(packageName)) {
return true;
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean isAppInForeground() {\n ActivityManager manager = (ActivityManager) this.getSystemService(Context.ACTIVITY_SERVICE);\n\n List<ActivityManager.RunningAppProcessInfo> appProcesses = manager.getRunningAppProcesses();\n\n if (appProcesses == null) {\n return false;\n }\n\n for (ActivityManager.RunningAppProcessInfo appProcess : appProcesses) {\n if (appProcess.importance == ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND\n && appProcess.processName.equals(this.getPackageName())) {\n return true;\n }\n }\n\n return false;\n }",
"public boolean isAppOnForeground() {\n\t\tString packageName = getApplicationContext().getPackageName();\n\t\tActivityManager activityManager = (ActivityManager) getApplicationContext()\n\t\t\t\t.getSystemService(Context.ACTIVITY_SERVICE);\n\t\tList<RunningAppProcessInfo> appProcesses = activityManager.getRunningAppProcesses();\n\t\tif (appProcesses == null)\n\t\t\treturn false;\n\t\tfor (RunningAppProcessInfo appProcess : appProcesses) {\n\t\t\t// The name of the process that this object is associated with.\n\t\t\tif (appProcess.processName.equals(packageName)\n\t\t\t\t\t&& appProcess.importance == RunningAppProcessInfo.IMPORTANCE_FOREGROUND) {\n\t\t\t\tSystem.out.println(\"Tag device Name found: ********success ***** \"+packageName);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public static boolean isAppIsInBackground(Context context) {\n boolean isInBackground = true;\n ActivityManager am = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);\n if (Build.VERSION.SDK_INT > Build.VERSION_CODES.KITKAT_WATCH) {\n List <ActivityManager.RunningAppProcessInfo> runningProcesses = am.getRunningAppProcesses();\n for (ActivityManager.RunningAppProcessInfo processInfo : runningProcesses) {\n if (processInfo.importance == ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND) {\n for (String activeProcess : processInfo.pkgList) {\n if (activeProcess.equals(context.getPackageName())) {\n isInBackground = false;\n }\n }\n }\n }\n } else {\n List <ActivityManager.RunningTaskInfo> taskInfo = am.getRunningTasks(1);\n ComponentName componentInfo = taskInfo.get(0).topActivity;\n if (componentInfo.getPackageName().equals(context.getPackageName())) {\n isInBackground = false;\n }\n }\n \n return isInBackground;\n }",
"public static boolean isAppIsInBackground(Context context) {\n boolean isInBackground = true;\n ActivityManager am = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);\n if (Build.VERSION.SDK_INT > Build.VERSION_CODES.KITKAT) {\n List<ActivityManager.RunningAppProcessInfo> runningProcesses = am.getRunningAppProcesses();\n for (ActivityManager.RunningAppProcessInfo processInfo : runningProcesses) {\n if (processInfo.importance == ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND) {\n for (String activeProcess : processInfo.pkgList) {\n if (activeProcess.equals(context.getPackageName())) {\n isInBackground = false;\n }\n }\n }\n }\n } else {\n List<ActivityManager.RunningTaskInfo> taskInfo = am.getRunningTasks(1);\n ComponentName componentInfo = taskInfo.get(0).topActivity;\n if (componentInfo.getPackageName().equals(context.getPackageName())) {\n isInBackground = false;\n }\n }\n\n return isInBackground;\n }",
"public interface AppForegroundListener extends SystemEventListener {\n /**\n * Called when the app becomes the foreground app.\n * @param e event\n */\n public void appRaisedToForeground(final AppForegroundEvent e);\n\n /**\n * Called when the app becomes the background app and another app becomes\n * the foreground app.\n *\n * @param e event\n */\n public void appMovedToBackground(final AppForegroundEvent e);\n}",
"@Override\n protected void onStop() {\n super.onStop();\n if (!isAppInForeground()) {\n //app 进入后台\n isAppInBackground = true ;//记录当前已经进入后台\n }\n }",
"public static boolean isApplicationInBackground(Context context) {\r\n ActivityManager am = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);\r\n List<RunningTaskInfo> taskList = am.getRunningTasks(1);\r\n if (taskList != null && !taskList.isEmpty()) {\r\n ComponentName topActivity = taskList.get(0).topActivity;\r\n if (topActivity != null && !topActivity.getPackageName().equals(context.getPackageName())) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }",
"@ReactMethod\n public void isAppOnForeground(Promise promise) {\n promise.resolve(Tracking.isAppOnForeground());\n }",
"public void appRaisedToForeground(final AppForegroundEvent e);",
"@Override\n protected void onResume() {\n super.onResume();\n if (!isAppInBackground) {\n // app 从后台唤醒,进入前台\n isAppInBackground = false;\n }\n }",
"public boolean isInBackground(){\n return isInBackground;\n }",
"public boolean isLaunched();",
"public void testForegroundServiceAppOp() throws Exception {\n final ServiceProcessController controller = new ServiceProcessController(mContext,\n getInstrumentation(), STUB_PACKAGE_NAME, mAllProcesses, WAIT_TIME);\n final ServiceConnectionHandler conn = new ServiceConnectionHandler(mContext,\n mServiceIntent, WAIT_TIME);\n final WatchUidRunner uidWatcher = controller.getUidWatcher();\n\n try {\n // First kill the process to start out in a stable state.\n controller.ensureProcessGone();\n\n // Do initial setup.\n controller.makeUidIdle();\n controller.removeFromWhitelist();\n controller.setAppOpMode(AppOpsManager.OPSTR_START_FOREGROUND, \"allow\");\n\n // Put app on whitelist, to allow service to run.\n controller.addToWhitelist();\n\n // We will use this to monitor when the service is running.\n conn.startMonitoring();\n\n // -------- START SERVICE AND THEN SUCCESSFULLY GO TO FOREGROUND\n\n // Now start the service and wait for it to come up.\n mContext.startService(mServiceStartForegroundIntent);\n conn.waitForConnect();\n\n // Also make sure the uid state reports are as expected.\n uidWatcher.waitFor(WatchUidRunner.CMD_UNCACHED, null);\n uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_SERVICE);\n uidWatcher.waitFor(WatchUidRunner.CMD_ACTIVE, null);\n uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_FG_SERVICE);\n\n // Now take it out of foreground and confirm.\n mContext.startService(mServiceStopForegroundIntent);\n uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_SERVICE);\n\n // Good, now stop the service and wait for it to go away.\n mContext.stopService(mServiceStartForegroundIntent);\n conn.waitForDisconnect();\n\n // There may be a transient STATE_SERVICE we don't care about, so waitFor.\n uidWatcher.waitFor(WatchUidRunner.CMD_CACHED, null);\n uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_CACHED_EMPTY);\n\n // We don't want to wait for the uid to actually go idle, we can force it now.\n controller.makeUidIdle();\n uidWatcher.expect(WatchUidRunner.CMD_IDLE, null);\n\n // Make sure the process is gone so we start over fresh.\n controller.ensureProcessGone();\n\n // -------- START SERVICE AND BLOCK GOING TO FOREGROUND\n\n // Now we will deny the app op and ensure the service can't become foreground.\n controller.setAppOpMode(AppOpsManager.OPSTR_START_FOREGROUND, \"ignore\");\n\n // Now start the service and wait for it to come up.\n mContext.startService(mServiceStartForegroundIntent);\n conn.waitForConnect();\n\n // Also make sure the uid state reports are as expected.\n uidWatcher.waitFor(WatchUidRunner.CMD_UNCACHED, null);\n uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_SERVICE);\n\n // Good, now stop the service and wait for it to go away.\n mContext.stopService(mServiceStartForegroundIntent);\n conn.waitForDisconnect();\n\n // THIS MUST BE AN EXPECT: we want to make sure we don't get in to STATE_FG_SERVICE.\n uidWatcher.expect(WatchUidRunner.CMD_CACHED, null);\n uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_CACHED_EMPTY);\n\n // Make sure the uid is idle (it should be anyway, it never went active here).\n controller.makeUidIdle();\n\n // Make sure the process is gone so we start over fresh.\n controller.ensureProcessGone();\n\n // -------- DIRECT START FOREGROUND SERVICE SUCCESSFULLY\n\n controller.setAppOpMode(AppOpsManager.OPSTR_START_FOREGROUND, \"allow\");\n\n // Now start the service and wait for it to come up.\n mContext.startForegroundService(mServiceStartForegroundIntent);\n conn.waitForConnect();\n\n // Make sure it becomes a foreground service. The process state changes here\n // are weird looking because we first need to force the app out of idle to allow\n // it to start the service.\n uidWatcher.waitFor(WatchUidRunner.CMD_ACTIVE, null);\n uidWatcher.waitFor(WatchUidRunner.CMD_UNCACHED, null);\n uidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_FG_SERVICE);\n\n // Good, now stop the service and wait for it to go away.\n mContext.stopService(mServiceStartForegroundIntent);\n conn.waitForDisconnect();\n\n // There may be a transient STATE_SERVICE we don't care about, so waitFor.\n uidWatcher.waitFor(WatchUidRunner.CMD_CACHED, null);\n uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_CACHED_EMPTY);\n\n // We don't want to wait for the uid to actually go idle, we can force it now.\n controller.makeUidIdle();\n uidWatcher.expect(WatchUidRunner.CMD_IDLE, null);\n\n // Make sure the process is gone so we start over fresh.\n controller.ensureProcessGone();\n\n // -------- DIRECT START FOREGROUND SERVICE BLOCKED\n\n // Now we will deny the app op and ensure the service can't become foreground.\n controller.setAppOpMode(AppOpsManager.OPSTR_START_FOREGROUND, \"ignore\");\n\n // But we will put it on the whitelist so the service is still allowed to start.\n controller.addToWhitelist();\n\n // Now start the service and wait for it to come up.\n mContext.startForegroundService(mServiceStartForegroundIntent);\n conn.waitForConnect();\n\n // In this case we only get to run it as a regular service.\n uidWatcher.waitFor(WatchUidRunner.CMD_UNCACHED, null);\n uidWatcher.waitFor(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_SERVICE);\n\n // Good, now stop the service and wait for it to go away.\n mContext.stopService(mServiceStartForegroundIntent);\n conn.waitForDisconnect();\n\n // THIS MUST BE AN EXPECT: we want to make sure we don't get in to STATE_FG_SERVICE.\n uidWatcher.expect(WatchUidRunner.CMD_CACHED, null);\n uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_CACHED_EMPTY);\n\n // Make sure the uid is idle (it should be anyway, it never went active here).\n controller.makeUidIdle();\n\n // Make sure the process is gone so we start over fresh.\n controller.ensureProcessGone();\n\n // -------- XXX NEED TO TEST NON-WHITELIST CASE WHERE NOTHING HAPPENS\n\n } finally {\n mContext.stopService(mServiceStartForegroundIntent);\n conn.stopMonitoringIfNeeded();\n controller.cleanup();\n controller.setAppOpMode(AppOpsManager.OPSTR_START_FOREGROUND, \"allow\");\n controller.removeFromWhitelist();\n }\n }",
"@Override\n protected void onResume() {\n super.onResume();\n MobclickAgent.onResume(this);\n // JPushInterface.onResume(this);\n isForeground = true;\n\n }",
"@OnLifecycleEvent(Lifecycle.Event.ON_START)\n public void onMoveToForeground() {\n Log.i(\"AppLifecycleListener\", \"Foreground\");\n\n }",
"public static final boolean inMessagingApp(Context context) {\r\n \t\t// TODO: move these to static strings somewhere\r\n \t\tfinal String PACKAGE_NAME = \"com.android.mms\";\r\n \t\t// final String COMPOSE_CLASS_NAME =\r\n \t\t// \"com.android.mms.ui.ComposeMessageActivity\";\r\n \t\tfinal String CONVO_CLASS_NAME = \"com.android.mms.ui.ConversationList\";\r\n \r\n \t\tActivityManager mAM = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);\r\n \r\n \t\tList<RunningTaskInfo> mRunningTaskList = mAM.getRunningTasks(1);\r\n \t\tIterator<RunningTaskInfo> mIterator = mRunningTaskList.iterator();\r\n \t\tif (mIterator.hasNext()) {\r\n \t\t\tRunningTaskInfo mRunningTask = mIterator.next();\r\n \t\t\tif (mRunningTask != null) {\r\n \t\t\t\tComponentName runningTaskComponent = mRunningTask.baseActivity;\r\n \r\n \t\t\t\t// //Log.v(\"baseActivity = \" +\r\n \t\t\t\t// mRunningTask.baseActivity.toString());\r\n \t\t\t\t// //Log.v(\"topActivity = \" +\r\n \t\t\t\t// mRunningTask.topActivity.toString());\r\n \r\n \t\t\t\tif (PACKAGE_NAME.equals(runningTaskComponent.getPackageName())\r\n \t\t\t\t\t\t&& CONVO_CLASS_NAME.equals(runningTaskComponent.getClassName())) {\r\n \t\t\t\t\t// Log.v(\"User in messaging app - from running task\");\r\n \t\t\t\t\treturn true;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\t/*\r\n \t\t * List<RecentTaskInfo> mActivityList = mAM.getRecentTasks(1, 0);\r\n \t\t * Iterator<RecentTaskInfo> mIterator = mActivityList.iterator();\r\n \t\t * \r\n \t\t * if (mIterator.hasNext()) { RecentTaskInfo mRecentTask =\r\n \t\t * (RecentTaskInfo) mIterator.next(); Intent recentTaskIntent =\r\n \t\t * mRecentTask.baseIntent;\r\n \t\t * \r\n \t\t * if (recentTaskIntent != null) { ComponentName recentTaskComponentName\r\n \t\t * = recentTaskIntent.getComponent(); if (recentTaskComponentName !=\r\n \t\t * null) { String recentTaskClassName =\r\n \t\t * recentTaskComponentName.getClassName(); if\r\n \t\t * (PACKAGE_NAME.equals(recentTaskComponentName.getPackageName()) &&\r\n \t\t * (COMPOSE_CLASS_NAME.equals(recentTaskClassName) ||\r\n \t\t * CONVO_CLASS_NAME.equals(recentTaskClassName))) {\r\n \t\t * //Log.v(\"User in messaging app\"); return true; } } } }\r\n \t\t */\r\n \r\n \t\t/*\r\n \t\t * These appear to be the 2 main intents that mean the user is using the\r\n \t\t * messaging app\r\n \t\t * \r\n \t\t * action \"android.intent.action.MAIN\" data null class\r\n \t\t * \"com.android.mms.ui.ConversationList\" package \"com.android.mms\"\r\n \t\t * \r\n \t\t * action \"android.intent.action.VIEW\" data\r\n \t\t * \"content://mms-sms/threadID/3\" class\r\n \t\t * \"com.android.mms.ui.ComposeMessageActivity\" package \"com.android.mms\"\r\n \t\t */\r\n \r\n \t\treturn false;\r\n \t}",
"@Override\r\n\tprotected void onPause() {\n\t\tif (SystemCheckTools.isApplicationSentToBackground(AppStartToMainActivity.this) == true) {\r\n\t\t\tExitApp.getInstance().exit();\r\n\t\t}\r\n\t\tsuper.onPause();\r\n\t}",
"public static boolean isSystemApplication(){\n return isSystemApplication(getContext().getPackageName());\n }",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\ttry {\n\t\t\tboolean foregroud = new ForegroundCheckTask().execute(\n\t\t\t\t\tBaseActivity.this).get();\n\t\t\tLog.i(\"onPause\", String.valueOf(foregroud));\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (ExecutionException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void startForeground() {\n Notification notification = new NotificationCompat.Builder(this)\n .setContentTitle(getResources().getString(R.string.app_name))\n .setTicker(getResources().getString(R.string.app_name))\n .setContentText(\"Running\")\n .setSmallIcon(R.mipmap.ic_launcher)\n .setContentIntent(null)\n .setOngoing(true)\n .setAutoCancel(true)\n .build();\n startForeground(9999, notification);\n }",
"@Override\n public void onResume() {\n super.onResume();\n Utility.setupForegroundDispatch(this);\n Utility.startConnectivityCheck(this);\n }",
"public void appMovedToBackground(final AppForegroundEvent e);",
"@Override\n public void addForeground() {\n showNotification();\n Log.d(\"MediaPlayerService\",\"addForeground\");\n }",
"protected boolean isActive(String appName) {\n return appFile(appName, \"active\").exists();\n }",
"public interface BackgroundForegroundDelegate {\n\n void onBackground();\n\n void onForeground();\n}",
"private boolean shouldSmartspaceRecItemOpenInForeground(SmartspaceAction action) {\n if (action == null || action.getIntent() == null\n || action.getIntent().getExtras() == null) {\n return false;\n }\n\n String intentString = action.getIntent().getExtras().getString(EXTRAS_SMARTSPACE_INTENT);\n if (intentString == null) {\n return false;\n }\n\n try {\n Intent wrapperIntent = Intent.parseUri(intentString, Intent.URI_INTENT_SCHEME);\n return wrapperIntent.getBooleanExtra(KEY_SMARTSPACE_OPEN_IN_FOREGROUND, false);\n } catch (URISyntaxException e) {\n Log.wtf(TAG, \"Failed to create intent from URI: \" + intentString);\n e.printStackTrace();\n }\n\n return false;\n }",
"public synchronized void notifyForegroundApp(String packageName) {\n if (packageName != null) {\n if (!packageName.equals(this.mLatestPgName)) {\n NeuronAppRecord app = (NeuronAppRecord) this.mAppUsageMap.get(packageName);\n if (app == null) {\n app = new NeuronAppRecord(packageName);\n app.dataList.pushToHead(new AppDataNode());\n this.mAppUsageMap.put(packageName, app);\n }\n long currentTime = System.currentTimeMillis();\n app.lastestResumeTime.pushToHead(Long.valueOf(currentTime));\n AppDataNode latestAppData = (AppDataNode) app.dataList.getLatest();\n Long latestPause = (Long) app.latestPauseTime.getLatest();\n if (!(latestAppData == null || latestPause == null || latestPause.longValue() <= 0)) {\n long bgTime = currentTime - latestPause.longValue();\n if (bgTime < latestAppData.minBgTime) {\n latestAppData.minBgTime = bgTime;\n }\n if (bgTime > latestAppData.maxBgTime) {\n latestAppData.maxBgTime = bgTime;\n }\n latestAppData.totalBgTime += bgTime;\n }\n NeuronAppRecord removedApp = (NeuronAppRecord) this.mAppUsageList.pushToHead(app);\n if (removedApp != null) {\n this.mAppUsageMap.remove(removedApp.packageName);\n }\n pauseLatestApp(currentTime);\n this.mLatestAppUsage = app;\n this.mLatestPgName = packageName;\n }\n }\n }",
"private boolean canShowFullScreen(Call call) {\n boolean canShowFullScreen = true;\n boolean isCallWaiting = (call.getState() == Call.State.CALL_WAITING ||\n (call.getState() == Call.State.INCOMING &&\n CallList.getInstance().getActiveOrBackgroundCall() != null));\n if (isCallWaiting) {\n if (InCallPresenter.getInstance().getProximitySensor().isScreenReallyOff()\n && InCallPresenter.getInstance().isActivityStarted()) {\n canShowFullScreen = true;\n } else {\n Log.d(this, \"[canShowFullScreen]call waiting, skip fullscreen intent\");\n canShowFullScreen = false;\n }\n }\n return canShowFullScreen;\n }",
"static public boolean isLaunched()\n\t{\n\t\tif (g_currentLaunch == null)\n\t\t return false;\n\t\telse\n\t\t return true;\n\t}",
"private void enableForegroundDispatchSystem() {\n if(ClientConfig.CURRENT_USER==\"\" || ClientConfig.CURRENT_USER.equals(\"\")) {\n Toast.makeText(this,\"Xin đăng nhập trước khi quét thẻ\",Toast.LENGTH_LONG).show();\n return;\n }\n else {\n Intent intent = new Intent(this, InOutActivity.class).addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING);\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent, 0);\n IntentFilter[] intentFilters = new IntentFilter[]{};\n nfcAdapter.enableForegroundDispatch(this, pendingIntent, intentFilters, null);\n }\n }",
"public boolean checkWaitingForWindows() {\n this.mHaveBootMsg = false;\n this.mHaveApp = false;\n this.mHaveWallpaper = false;\n this.mHaveKeyguard = true;\n if (getWindow(new Predicate() {\n /* class com.android.server.wm.$$Lambda$DisplayContent$BgTlvHbVclnASzMrvERWxyMVA */\n\n @Override // java.util.function.Predicate\n public final boolean test(Object obj) {\n return DisplayContent.this.lambda$checkWaitingForWindows$20$DisplayContent((WindowState) obj);\n }\n }) != null) {\n return true;\n }\n boolean wallpaperEnabled = this.mWmService.mContext.getResources().getBoolean(17891452) && this.mWmService.mContext.getResources().getBoolean(17891393) && !this.mWmService.mOnlyCore;\n if (WindowManagerDebugConfig.DEBUG_SCREEN_ON) {\n Slog.i(TAG, \"******** booted=\" + this.mWmService.mSystemBooted + \" msg=\" + this.mWmService.mShowingBootMessages + \" haveBoot=\" + this.mHaveBootMsg + \" haveApp=\" + this.mHaveApp + \" haveWall=\" + this.mHaveWallpaper + \" wallEnabled=\" + wallpaperEnabled + \" haveKeyguard=\" + this.mHaveKeyguard);\n }\n if (!this.mWmService.mSystemBooted && !this.mHaveBootMsg) {\n return true;\n }\n if (!this.mWmService.mSystemBooted || ((this.mHaveApp || this.mHaveKeyguard) && (!wallpaperEnabled || this.mHaveWallpaper))) {\n return false;\n }\n return true;\n }",
"public void enterForeground();",
"public boolean isSetForeground() {\n return EncodingUtils.testBit(__isset_bitfield, __FOREGROUND_ISSET_ID);\n }",
"@Override\n\tprotected void onResume() {\n\t\tisbackground=0;\n\t\tsuper.onResume();\n\t\t\n\t}",
"@SuppressWarnings(\"deprecation\")\n private boolean isBotheringUser(Policy policy) {\n return mPowerManager.isScreenOn() && !policy.allows(Policy.Feature.FOREGROUND); //TODO original: && false\n }",
"@Override\n protected void onResume() {\n super.onResume();\n isVisible = true; //the app is visible\n }",
"private void canOpenApp(String uri, final CallbackContext callbackContext) {\n Context ctx = this.cordova.getActivity().getApplicationContext();\n final PackageManager pm = ctx.getPackageManager();\n\n try {\n pm.getPackageInfo(uri, PackageManager.GET_ACTIVITIES);\n callbackContext.success();\n } catch(PackageManager.NameNotFoundException e) {}\n\n callbackContext.error(\"\");\n }",
"private boolean isNotificationLaunch(Intent intent) {\n if (intent.hasExtra(ServiceTabLauncher.LAUNCH_REQUEST_ID_EXTRA)) {\n return true;\n }\n\n // For now, just assume that a source of ACTIVATE_TAB counts as a notification, as there are\n // many reasons why a tab/webcontents might get Activated by Chrome (and plumbing all\n // sources of tab activation is impractical), but the only ones that should be triggerable\n // while Chrome is in the background (outside of tests) are from media/ServiceWorker\n // notifications.\n @IntentHandler.BringToFrontSource\n int source = getBringTabToFrontSource(intent);\n if (IntentHandler.BringToFrontSource.NOTIFICATION == source\n || IntentHandler.BringToFrontSource.ACTIVATE_TAB == source) {\n return true;\n }\n return false;\n }",
"private boolean ModeCheck() {\n\t\treturn prefs.getBoolean(\"appmode\", false);\n\n\t}",
"@Override\n protected void onResume() {\n super.onResume();\n assert nfcAdapter != null;\n nfcAdapter.enableForegroundDispatch(this, pendingIntent, null, null);\n }",
"private void CheckIfServiceIsRunning() {\n\t\tLog.i(\"Convert\", \"At isRunning?.\");\n\t\tif (eidService.isRunning()) {\n//\t\t\tLog.i(\"Convert\", \"is.\");\n\t\t\tdoBindService();\n\t\t} else {\n\t\t\tLog.i(\"Convert\", \"is not, start it\");\n\t\t\tstartService(new Intent(IDManagement.this, eidService.class));\n\t\t\tdoBindService();\n\t\t}\n\t\tLog.i(\"Convert\", \"Done isRunning.\");\n\t}",
"public List<PackageInfo> getActiveApps() {\n\n ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);\n List<ActivityManager.RunningAppProcessInfo> tasks = activityManager.getRunningAppProcesses();\n\n List<PackageInfo> installedApps = getInstalledApps(true);\n List<String> runningAppProcesses = new ArrayList<>();\n\n List<PackageInfo> activeApps = new ArrayList<>();\n\n //get the running processes\n for(ActivityManager.RunningAppProcessInfo i : tasks){\n runningAppProcesses.add(i.processName);\n }\n\n //Check which ones of those processes correspond to a process of one installed app\n // is excluded this way all the system processes\n for(PackageInfo app : installedApps){\n String pName = app.applicationInfo.processName;\n\n if(runningAppProcesses.contains(pName)){\n activeApps.add(app);\n }\n }\n return activeApps;\n }",
"private boolean isMissingForegroundPermissions() {\n if (mPermissionsManager == null) {\n return true;\n }\n boolean canAccessFineLocation = mPermissionsManager.hasGrantedPermissions(Manifest.permission.ACCESS_FINE_LOCATION);\n boolean canAccessCoarseLocation = mPermissionsManager.hasGrantedPermissions(Manifest.permission.ACCESS_COARSE_LOCATION);\n return !canAccessFineLocation && !canAccessCoarseLocation;\n }",
"public void checkNotificationBroadcastSupport() {\n int i = 0;\n this.mShouldBroadcastNotifications = false;\n WallpaperManager wallpaperManager = (WallpaperManager) this.mContext.getSystemService(WallpaperManager.class);\n if (wallpaperManager != null) {\n WallpaperInfo wallpaperInfo = wallpaperManager.getWallpaperInfo();\n if (wallpaperInfo != null) {\n ComponentName component = wallpaperInfo.getComponent();\n String packageName = component.getPackageName();\n if (NOTIFYABLE_PACKAGES.contains(packageName)) {\n this.mWallpaperPackage = packageName;\n String className = component.getClassName();\n String[] strArr = NOTIFYABLE_WALLPAPERS;\n int length = strArr.length;\n while (true) {\n if (i >= length) {\n break;\n } else if (className.startsWith(strArr[i])) {\n this.mShouldBroadcastNotifications = true;\n break;\n } else {\n i++;\n }\n }\n }\n }\n }\n }",
"public boolean getNeedsMenu(WindowState top, WindowManagerPolicy.WindowState bottom) {\n if (top.mAttrs.needsMenuKey != 0) {\n return top.mAttrs.needsMenuKey == 1;\n }\n this.mTmpWindow = null;\n WindowState candidate = getWindow(new Predicate(top, bottom) {\n /* class com.android.server.wm.$$Lambda$DisplayContent$jJlRHCiYzTPceX3tUkQ_1wUz71E */\n private final /* synthetic */ WindowState f$1;\n private final /* synthetic */ WindowManagerPolicy.WindowState f$2;\n\n {\n this.f$1 = r2;\n this.f$2 = r3;\n }\n\n @Override // java.util.function.Predicate\n public final boolean test(Object obj) {\n return DisplayContent.this.lambda$getNeedsMenu$17$DisplayContent(this.f$1, this.f$2, (WindowState) obj);\n }\n });\n return candidate != null && candidate.mAttrs.needsMenuKey == 1;\n }",
"public static boolean isSystemApplication(Context context) {\n if (context == null) {\n return false;\n }\n return isSystemApplication(context, context.getPackageName());\n }",
"@Override\n public void onScreenStatus(boolean isAs) {\n }",
"private static boolean m61442b() {\n if (Looper.getMainLooper().getThread() == Thread.currentThread()) {\n return true;\n }\n return false;\n }",
"public Boolean isInCurrentHome() throws CallError, InterruptedException {\n return (Boolean)service.call(\"isInCurrentHome\").get();\n }",
"public boolean checkForSnapChat()\n\t{\n\t\tActivityManager activityManager = (ActivityManager) context.getSystemService( ACTIVITY_SERVICE );\n\t\tList<RunningAppProcessInfo> procInfos = activityManager.getRunningAppProcesses();\n\t\tfor(int i = 0; i < procInfos.size(); i++){\n\t\t\tif(procInfos.get(i).processName.equals(\"com.snapchat.android\")) {\n\t\t\t\treturn true;\n\t\t }\n\t\t}\n\t\t \n\t\treturn false;\n\t}",
"public static boolean isSystemApplication(Context context) {\n if (context == null) {\n return false;\n }\n\n return isSystemApplication(context, context.getPackageName());\n }",
"@VisibleForTesting\n boolean isHeartBeatThreadAlive() {\n return scheduler != null && !scheduler.isShutdown();\n }",
"boolean hasApplicationProcessInstance();",
"private boolean shouldAskBackgroundPermissions() {\n return Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q;\n }",
"public void onUidForegroundStateChanged(AppStateTracker sender, int uid) {\n onUidForeground(uid, sender.isUidInForeground(uid));\n }",
"public boolean isAppUpdateInProgress(AppUpdateInfo appUpdateInfo) {\n return appUpdateInfo.updateAvailability()\n == UpdateAvailability.DEVELOPER_TRIGGERED_UPDATE_IN_PROGRESS;\n }",
"boolean isAlwaysOnTop();",
"private boolean isServiceAvailable() {\n if (mComponentName == null) {\n mComponentName = resolveAttentionService(mContext);\n }\n return mComponentName != null;\n }",
"@Override\n public void onPause() {\n Utility.stopForegroundDispatch(this);\n Utility.stopConnectivityCheck();\n super.onPause();\n }",
"public static Boolean isTopActivity(Context context, String packageName) {\n if (context == null || TextUtils.isEmpty(packageName)) {\n return null;\n }\n\n ActivityManager activityManager = (ActivityManager) context\n .getSystemService(Context.ACTIVITY_SERVICE);\n List<RunningTaskInfo> tasksInfo = activityManager.getRunningTasks(1);\n if (tasksInfo==null||tasksInfo.size()==0) {\n return null;\n }\n try {\n return packageName.equals(tasksInfo.get(0).topActivity\n .getPackageName());\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n }",
"@Override\n protected void onPause() {\n super.onPause();\n if (nfcAdapter != null) {\n nfcAdapter.disableForegroundDispatch(this);\n }\n }",
"public boolean isForcedAppStandbyEnabled() {\n return AppStateTracker.this.injectGetGlobalSettingInt(\"forced_app_standby_enabled\", 1) == 1;\n }",
"public boolean isInAppMessageShowing() {\n return false;\n }",
"@Override\n protected void onDetachedFromWindow() {\n super.onDetachedFromWindow();\n Object host = (Object) getContext();\n if (host instanceof Activity) {\n if (((Activity)host).isFinishing()) {\n AppyAdService.getInstance().unRegisterManager(true);\n AppyAdService.getInstance().debugOut(TAG, TAG + \" is detached, stopping Ad service thread.\");\n }\n else {\n AppyAdService.getInstance().unRegisterManager(false);\n AppyAdService.getInstance().debugOut(TAG, TAG + \" is detached, removing from stack, but not stopping Ad service thread.\");\n\n }\n }\n }",
"private void serviceStopForeground() {\n\n if (isForeground) {\n stopForeground(true);\n isForeground = false;\n }\n }",
"public boolean check_Home_Buttom_AppBar_Presence() {\r\n\t\tWebElement bottomMenu_Home_Icon = driver.findElementByAccessibilityId(\"HomeAppBarButton\");\r\n\t\treturn IsElementVisibleStatus(bottomMenu_Home_Icon);\r\n\t}",
"public boolean isInactive();",
"public static final boolean isRunning(Context context){\r\n \t\tmIsRunning = MainPipeline.isEnabled(context);\r\n \t\treturn mIsRunning;\r\n \t}",
"public boolean isHome() {\n return getHomePackageNames().contains(\n mActivityManager.getRunningTasks(1).get(0).topActivity.getPackageName());\n }",
"@Override\n\tpublic boolean isInactive();",
"@Override\n\tprotected void onStop() {\n\t\ttry {\n\n\t\t\tboolean foregroud = new ForegroundCheckTask().execute(\n\t\t\t\t\tBaseActivity.this).get();\n\t\t\tatPrefs.edit().putString(check, String.valueOf(foregroud)).commit();\n\t\t\tLog.i(\"onStop\", String.valueOf(foregroud));\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (ExecutionException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tsuper.onStop();\n\n\t}",
"public static boolean isSystemApplication(Context context,\n String packageName) {\n PackageManager packageManager = context.getPackageManager();\n if (packageManager == null || packageName == null\n || packageName.length() == 0) {\n return false;\n }\n try {\n ApplicationInfo app = packageManager.getApplicationInfo(\n packageName, 0);\n return (app != null && (app.flags & ApplicationInfo.FLAG_SYSTEM) > 0);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return false;\n }",
"void onPlaybackActiveChanged(MediaSession2 mediaSession2, boolean bl) {\n MediaNotification mediaNotification = this.onUpdateNotification(mediaSession2);\n if (mediaNotification == null) {\n return;\n }\n Object object = this.mLock;\n synchronized (object) {\n this.mNotifications.put(mediaSession2, mediaNotification);\n }\n int n = mediaNotification.getNotificationId();\n mediaSession2 = mediaNotification.getNotification();\n if (!bl) {\n this.mNotificationManager.notify(n, (Notification)mediaSession2);\n return;\n }\n this.startForegroundService(this.mStartSelfIntent);\n this.startForeground(n, (Notification)mediaSession2);\n }",
"public void checkNeedNotifyFingerWinCovered() {\n boolean needNotify;\n boolean fingerWinCovered;\n WindowState topAboveAppWindow;\n WindowToken windowToken;\n WindowState windowState = this.mObserveWin;\n if (windowState != null && windowState.isVisibleOrAdding()) {\n for (int i = this.mAboveAppWindowsContainers.getChildCount() - 1; i >= 0; i--) {\n WindowToken windowToken2 = (WindowToken) this.mAboveAppWindowsContainers.getChildAt(i);\n if (windowToken2.mChildren.contains(this.mObserveWin)) {\n this.mObserveToken = windowToken2;\n } else if (!(windowToken2.getTopChild() == null || !((WindowState) windowToken2.getTopChild()).isVisibleOrAdding() || ((WindowState) windowToken2.getTopChild()).getAttrs().type == 2000 || ((WindowState) windowToken2.getTopChild()).getAttrs().type == 2019 || ((windowToken = this.mTopAboveAppToken) != null && windowToken.getLayer() >= windowToken2.getLayer()))) {\n this.mTopAboveAppToken = windowToken2;\n }\n }\n WindowToken windowToken3 = this.mObserveToken;\n if (windowToken3 == null || this.mTopAboveAppToken == null || windowToken3.getLayer() >= this.mTopAboveAppToken.getLayer()) {\n fingerWinCovered = false;\n needNotify = this.mWinEverCovered;\n this.mWinEverCovered = false;\n } else {\n fingerWinCovered = true;\n this.mWinEverCovered = true;\n needNotify = true;\n }\n if (needNotify) {\n Rect winFrame = new Rect();\n WindowToken windowToken4 = this.mTopAboveAppToken;\n if (!(windowToken4 == null || (topAboveAppWindow = (WindowState) windowToken4.getTopChild()) == null)) {\n winFrame = topAboveAppWindow.getVisibleFrameLw();\n }\n this.mWmService.notifyFingerWinCovered(fingerWinCovered, winFrame);\n }\n }\n }",
"public void onPause() {\n super.onPause();\n nfcAdapter.disableForegroundDispatch(this);\n }",
"public abstract boolean killNotDrawnAppsWhenFrozen();",
"public void bringToForeground(boolean showDialpad) {\n // Before we bring the incall UI to the foreground, we check to see if:\n // 1. It is not currently in the foreground\n // 2. We are in a state where we want to show the incall ui (i.e. there are calls to\n // be displayed)\n // If the activity hadn't actually been started previously, yet there are still calls\n // present (e.g. a call was accepted by a bluetooth or wired headset), we want to\n // bring it up the UI regardless.\n if (!isShowingInCallUi() && mInCallState != InCallState.NO_CALLS) {\n showInCall(showDialpad, false /* newOutgoingCall */);\n }\n }",
"private boolean checkForRoaming(Context context) {\n final TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);\n\n PhoneStateListener phoneStateListener = new PhoneStateListener() {\n @Override\n public void onServiceStateChanged(ServiceState serviceState) {\n super.onServiceStateChanged(serviceState);\n // In Roaming\n // Not in Roaming\n assert telephonyManager != null;\n IS_IN_ROAMING = telephonyManager.isNetworkRoaming();\n // You can also check roaming state using this\n // In Roaming\n // Not in Roaming\n IS_IN_ROAMING = serviceState.getRoaming();\n }\n };\n\n return IS_IN_ROAMING;\n }",
"private void callBaseDataParserWhenBackgrounded(final String baseId, final String data, final boolean connectedStateChanged, final boolean connected) {\n Intent survIntent = new Intent();\n survIntent.setAction(BC_FOREGROUND_CHECKER);\n survIntent.putExtra(BC_FOREGROUND_CHECKER_BASEID, baseId);\n // MainActivity will answer when BC_FOREGROUND_CHECKER_CONNSTATECHANGED\n // is true, so that popups about base going online/offline don't show\n // when user is looking at the app\n survIntent.putExtra(BC_FOREGROUND_CHECKER_CONNSTATECHANGED, connectedStateChanged);\n sendOrderedBroadcast(survIntent, null, new BroadcastReceiver() {\n @Override\n public void onReceive(Context context, Intent intent) {\n int result = getResultCode();\n // No activity in foreground\n if (result == Activity.RESULT_CANCELED) {\n Base b = dataSource.getBase(baseId);\n Class<? extends BaseDataParserInterface> bdpi = getDataParserClass(b.getBaseType());\n if (bdpi != null) {\n try {\n bdpi.newInstance().doParse(context, baseId, data, connectedStateChanged, connected);\n }\n catch (InstantiationException e) {\n e.printStackTrace();\n }\n catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n }\n }\n // Yep, activity is in foreground!\n else {\n // Nothing here...\n }\n }\n }, null, Activity.RESULT_CANCELED, null, null);\n }",
"@Override\n public void onForeground(String packageName) {\n if(packageName!=null) {\n if (flag && packageName.equals(\"com.whatsapp\")) {\n flag = false;\n Intent screenShotActivity = new Intent(getApplicationContext(), ScreenCaptureImageActivity.class);\n screenShotActivity.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n getApplicationContext().startActivity(screenShotActivity);\n new Timer().schedule(new TimerTask() {\n @Override\n public void run() {\n flag = true;\n }\n }, 121000);\n }\n }\n\n //setProgressAsync(new Data.Builder().putString(\"package\", packageName).build());\n\n previousPackageName = packageName;\n ForegroundWorker.this.packageName = packageName;\n try {\n ForegroundWorker.this.outputStreamWriter.write(packageName + '\\n');\n } catch (Exception e) {\n Log.e(\"APP\", \"run: \", e);\n }\n }",
"public boolean isSystemApp(String pkg) {\n if (DBG) {\n Slog.d(TAG, \"check system app pkg : \" + pkg);\n }\n if (TextUtils.isEmpty(pkg)) {\n return false;\n }\n\n try {\n return ActivityThread.getPackageManager().isSystemApp(pkg);\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n\n return false;\n }",
"void stopForegroundWrapper() {\n\n if (stopForeground != null) {\n try {\n stopForeground.invoke(this, new Object[]{Boolean.TRUE});\n // We don't want to clear notification bar.\n } catch (InvocationTargetException e) {\n // Should not happen.\n LogManager.w(this, \"Unable to invoke stopForeground\" + e);\n } catch (IllegalAccessException e) {\n // Should not happen.\n LogManager.w(this, \"Unable to invoke stopForeground\" + e);\n }\n } else {\n stopForeground(false);\n }\n }",
"public abstract boolean isIdle();",
"boolean isBackgroundDataEnabled();",
"boolean isIdle();",
"public boolean isInactive() {\n return !nativeInput.get();\n }",
"public boolean checkActive() {\n\t\treturn active;\n\t}",
"@SuppressWarnings(\"SameReturnValue\")\n private boolean isXposedActive() {\n return false;\n }",
"private void showIfPendingPushNotification() {\n if (mIsActivityResumedFromSleep) {\n PushNotificationMessageHandler.getInstance(this).showPendingPushNotification();\n PushNotificationMessageHandler.getInstance(this).clearPushNotificationFromBar();\n }\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tcontext = this;\n\t\tmLocalBcMgr = LocalBroadcastManager.getInstance(this);\n\t\tTruMobiTimerClass.userInteractedTrigger();\n\t\tnew SharedPreferences(this).edit()\n\t\t\t\t.putBoolean(\"appinBG\", false).commit(); // PIN_SCREEN_ISSUE\n\t}",
"public boolean IsAlive() {\n\treturn process != null;\n }",
"public static boolean isRunning()\n {\n synchronized( Lifecycle.class ) {\n return context != null;\n }\n }",
"@OnLifecycleEvent(Lifecycle.Event.ON_STOP)\n public void onMoveToBackground() {\n Log.i(\"AppLifecycleListener\", \"Background\");\n\n }",
"public static boolean isSystemApplication(PackageManager packageManager, String packageName){\n if(packageManager == null || packageName == null || packageName.length() == 0) {\n return false;\n }\n\n try {\n ApplicationInfo app = packageManager.getApplicationInfo(packageName, 0);\n return ( app != null && ( app.flags&ApplicationInfo.FLAG_SYSTEM )>0 );\n }catch(NameNotFoundException e) {\n e.printStackTrace();\n }\n return false;\n }",
"@Override\n public boolean isActive(W window) {\n return true;\n }",
"private boolean isOnline() {\n Context context = getApplicationContext();\n ConnectivityManager cm = (ConnectivityManager) context\n .getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = cm.getActiveNetworkInfo();\n if (netInfo != null && netInfo.isConnectedOrConnecting()) {\n return true;\n }\n return false;\n }",
"public static Boolean isTopActivity(String packageName){\n if(TextUtils.isEmpty(packageName)) {\n return false;\n }\n\n ActivityManager activityManager = (ActivityManager)getContext().getSystemService(Context.ACTIVITY_SERVICE);\n List<RunningTaskInfo> tasksInfo = activityManager.getRunningTasks(1);\n if(!checkLists(tasksInfo)) {\n return false;\n }\n try {\n return packageName.equals(tasksInfo.get(0).topActivity.getPackageName());\n }catch(Exception e) {\n e.printStackTrace();\n return false;\n }\n }",
"@Override\n protected void onPause() {\n super.onPause();\n MobclickAgent.onPause(this);\n // JPushInterface.onPause(this);\n isForeground = false;\n\n }",
"@Override public boolean active() {\n General.sleep(200, 300); // Reduces CPU usage.\n return isAtFish();\n }",
"public static boolean zzcz(Context context) {\n synchronized (zzbhd.class) {\n Context context2 = context.getApplicationContext();\n if (zzgfe != null && zzgff != null && zzgfe == context2) {\n return zzgff;\n }\n zzgff = null;\n if (zzq.isAtLeastO()) {\n zzgff = context2.getPackageManager().isInstantApp();\n } else {\n try {\n context.getClassLoader().loadClass(\"com.google.android.instantapps.supervisor.InstantAppsRuntime\");\n zzgff = true;\n }\n catch (ClassNotFoundException classNotFoundException) {\n zzgff = false;\n }\n }\n zzgfe = context2;\n return zzgff;\n }\n }"
] | [
"0.7934396",
"0.7357652",
"0.7165568",
"0.7070657",
"0.67891836",
"0.66902685",
"0.63056487",
"0.6158254",
"0.60339606",
"0.5944531",
"0.58996564",
"0.58461136",
"0.58330244",
"0.5819071",
"0.58176833",
"0.577469",
"0.573118",
"0.5686236",
"0.56569874",
"0.56527466",
"0.5649539",
"0.5639913",
"0.56134146",
"0.5595361",
"0.5594057",
"0.55830586",
"0.55422",
"0.55369395",
"0.5511645",
"0.5504113",
"0.55004275",
"0.5494944",
"0.5477057",
"0.54518616",
"0.54490876",
"0.5444695",
"0.5428008",
"0.5427319",
"0.5420305",
"0.5383018",
"0.5379321",
"0.5365634",
"0.536007",
"0.5352873",
"0.53526545",
"0.5352482",
"0.5345102",
"0.53409445",
"0.5333729",
"0.5333343",
"0.53285074",
"0.53252435",
"0.53221816",
"0.53179646",
"0.53033376",
"0.5296605",
"0.52925396",
"0.5291632",
"0.5285279",
"0.5280124",
"0.5273949",
"0.5272178",
"0.5269487",
"0.52691615",
"0.5266331",
"0.5264072",
"0.5262425",
"0.5261365",
"0.52609646",
"0.52482855",
"0.524749",
"0.52437",
"0.52435535",
"0.52350974",
"0.5233372",
"0.52329826",
"0.5229945",
"0.5229107",
"0.5221023",
"0.52119994",
"0.52088076",
"0.5206045",
"0.5205106",
"0.5199669",
"0.51990986",
"0.51878774",
"0.5172323",
"0.5164614",
"0.5161564",
"0.51610225",
"0.51592505",
"0.51578796",
"0.5142072",
"0.5140233",
"0.51380277",
"0.5137825",
"0.5133213",
"0.51327676",
"0.5127107",
"0.51227766"
] | 0.741193 | 1 |
Creates the necessary imports for a type. | public static Collection<String> createNecessaryImportsForTypeInClass(final String type) {
final Set<String> imports = new HashSet<String>();
if (TypeUtils.isListOrSet(type)) {
addCollectionImports(type, imports);
}
else {
if (!TypeUtils.isPrimitiveType(type)) {
imports.add(type);
}
}
return imports;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"TypeImport createTypeImport();",
"Imports createImports();",
"Import createImport();",
"Import createImport();",
"TopLevelImport createTopLevelImport();",
"ImportDeclaration createImportDeclaration();",
"@Test\r\n public void testImportRedundancy() throws ClassNotFoundException\r\n {\r\n TypeParser typeParser = TypeParsers.create();\r\n typeParser.addImport(\"java.util.*\");\r\n typeParser.addImport(\"java.util.*\");\r\n Type t1 = typeParser.parse(\"List\");\r\n assertEquals(t1, java.util.List.class);\r\n }",
"ImportConfig createImportConfig();",
"ImportedPackage createImportedPackage();",
"public static Set<String> onlyImports(final String type) {\n\n\t\tfinal Set<String> imports = new HashSet<String>();\n\t\tfinal Matcher matcher = NameUtils.IMPORT_STATEMENT_PATTERN.matcher(type);\n\n\t\twhile (matcher.find()) {\n\t\t\timports.add(matcher.group());\n\t\t}\n\t\treturn imports;\n\t}",
"@Override\n\tprotected void GenerateImportLibrary(String LibName) {\n\n\t}",
"DefaultTypeParser()\r\n {\r\n importPackageNames.add(\"\");\r\n importPackageNames.add(\"java.lang.\");\r\n }",
"Import getImport();",
"void addImports(Set<String> allImports) {\n allImports.add(\"io.ebean.typequery.\" + propertyType);\n }",
"private void fillEmbeddedTypes() {\n List<String> otherClassesNames = new ArrayList<>(PRIMITIVE_TYPES);\n otherClassesNames.add(\"[]\");\n otherClassesNames.add(\"...\");\n\n List<TypeConstructor> otherClasses = new ArrayList<>();\n for (String type : otherClassesNames) {\n Classifier classifier = new Classifier(type, Language.JAVA, \"\", null, new ArrayList<MemberEntity>(), \"\");\n otherClasses.add(classifier);\n QualifiedName name = new QualifiedName(OTHER_PACKAGE, type);\n classes.put(name, classifier);\n parameters.put(name, new ParametersDescription());\n superTypes.put(name, new ArrayList<JavaType>());\n createClassMaps(name);\n }\n\n PackageEntity otherPackage = new PackageEntity(OTHER_PACKAGE, Language.JAVA, otherClasses,\n new ArrayList<MemberEntity>(), new ArrayList<PackageEntity>(), \"\", null);\n packages.put(OTHER_PACKAGE, otherPackage);\n\n for (TypeConstructor otherClass : otherClasses) {\n otherClass.setContainingPackage(otherPackage);\n }\n }",
"Type createType();",
"Type createType();",
"Type createType();",
"ComponentsType createComponentsType();",
"public TypeUtils() {\n\t}",
"@Test\r\n public void testImportStringPriorities() throws ClassNotFoundException\r\n {\r\n TypeParser typeParser0 = TypeParsers.create();\r\n typeParser0.addImport(\"java.awt.List\");\r\n typeParser0.addImport(\"java.util.*\");\r\n\r\n Type t0 = typeParser0.parse(\"List\");\r\n assertEquals(t0, java.awt.List.class);\r\n \r\n TypeParser typeParser1 = TypeParsers.create();\r\n typeParser1.addImport(\"java.awt.*\");\r\n typeParser1.addImport(\"java.util.List\");\r\n\r\n Type t1 = typeParser1.parse(\"List\");\r\n assertEquals(t1, java.util.List.class);\r\n \r\n }",
"public SystemExportGeneratorType() {\n }",
"@Test\r\n public void testNamedImportStringHandling() throws ClassNotFoundException\r\n {\r\n TypeParser typeParser = TypeParsers.create();\r\n typeParser.addImport(\"java.util.List\");\r\n typeParser.addImport(\"java. util . Collection \");\r\n\r\n Type t0 = typeParser.parse(\"List\");\r\n assertEquals(t0, java.util.List.class);\r\n \r\n Type t1 = typeParser.parse(\"Collection\");\r\n assertEquals(t1, java.util.Collection.class);\r\n \r\n }",
"private interface TypeCreator<T> {\n\t\tT createType();\n\t}",
"@Test\r\n public void testOnDemandImportStringHandling() throws ClassNotFoundException\r\n {\r\n TypeParser typeParser = TypeParsers.create();\r\n typeParser.addImport(\"java.util.*\");\r\n\r\n Type t0 = typeParser.parse(\"List\");\r\n assertEquals(t0, java.util.List.class);\r\n }",
"public ClassEntity getTypeImport(String name)\n {\n // See if there is a normal import for the given name\n ClassEntity r = (ClassEntity) normalImports.get(name);\n if (r != null)\n return r;\n \n // There might be a suitable static import\n List l = (List) staticImports.get(name);\n if (l != null) {\n Iterator i = l.iterator();\n while (i.hasNext()) {\n r = (ClassEntity) i.next();\n try {\n r = (ClassEntity) r.getPackageOrClassMember(name);\n return r;\n }\n catch (SemanticException se) { }\n }\n }\n \n return null;\n }",
"@Override\n\tpublic void typeCheck()\n\t{\n\t\t// Check for module name duplication\n\n\t\tboolean nothing = true;\n\t\tboolean hasFlat = false;\n\n\t\tfor (AModuleModules m1 : modules)\n\t\t{\n\t\t\tfor (AModuleModules m2 : modules)\n\t\t\t{\n\t\t\t\tif (m1 != m2 && m1.getName().equals(m2.getName()))\n\t\t\t\t{\n\t\t\t\t\tTypeChecker.report(3429, \"Module \" + m1.getName()\n\t\t\t\t\t\t\t+ \" duplicates \" + m2.getName(), m1.getName().getLocation());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (m1.getIsFlat())\n\t\t\t{\n\t\t\t\thasFlat = true;\n\t\t\t} else\n\t\t\t{\n\t\t\t\tif (hasFlat && Settings.release == Release.CLASSIC)\n\t\t\t\t{\n\t\t\t\t\tTypeChecker.report(3308, \"Cannot mix modules and flat specifications\", m1.getName().getLocation());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!m1.getTypeChecked())\n\t\t\t{\n\t\t\t\tnothing = false;\n\t\t\t}\n\t\t}\n\n\t\tif (nothing)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n \t\t// Mark top level definitions of flat specifications as used\n \t\tnew PDefinitionAssistantTC(new TypeCheckerAssistantFactory());\n \t\t\n \t\tfor (AModuleModules module: modules)\n \t\t{\n \t\t\tif (module instanceof CombinedDefaultModule)\n \t\t\t{\n\t \t\t\tfor (PDefinition definition: module.getDefs())\n\t \t\t\t{\n \t\t\t\t\tassistantFactory.createPDefinitionAssistant().markUsed(definition);\n\t \t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n\t\t// Generate implicit definitions for pre_, post_, inv_ functions etc.\n\n\t\tfor (AModuleModules m : modules)\n\t\t{\n\t\t\tif (!m.getTypeChecked())\n\t\t\t{\n\t\t\t\tEnvironment env = new ModuleEnvironment(assistantFactory, m);\n\t\t\t\tassistantFactory.createPDefinitionListAssistant().implicitDefinitions(m.getDefs(), env);\n\t\t\t}\n\t\t}\n\n\t\t// Exports have to be identified before imports can be processed.\n\n\t\tfor (AModuleModules m : modules)\n\t\t{\n\t\t\tif (!m.getTypeChecked())\n\t\t\t{\n\t\t\t\tassistantFactory.createAModuleModulesAssistant().processExports(m); // Populate exportDefs\n\t\t\t}\n\t\t}\n\n\t\t// Process the imports early because renamed imports create definitions\n\t\t// which can affect type resolution.\n\n\t\tfor (AModuleModules m : modules)\n\t\t{\n\t\t\tif (!m.getTypeChecked())\n\t\t\t{\n\t\t\t\tassistantFactory.createAModuleModulesAssistant().processImports(m, modules); // Populate importDefs\n\t\t\t}\n\t\t}\n\n\t\t// Create a list of all definitions from all modules, including\n\t\t// imports of renamed definitions.\n\n\t\tList<PDefinition> alldefs = new Vector<PDefinition>();\n\t\tList<PDefinition> checkDefs = new Vector<PDefinition>();\n\n\t\tfor (AModuleModules m : modules)\n\t\t{\n\t\t\tfor (PDefinition d : m.getImportdefs())\n\t\t\t{\n\t\t\t\talldefs.add(d);\n\t\t\t\tif (!m.getTypeChecked())\n\t\t\t\t{\n\t\t\t\t\tcheckDefs.add(d);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (AModuleModules m : modules)\n\t\t{\n\t\t\tfor (PDefinition d : m.getDefs())\n\t\t\t{\n\t\t\t\talldefs.add(d);\n\t\t\t\tif (!m.getTypeChecked())\n\t\t\t\t{\n\t\t\t\t\tcheckDefs.add(d);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Attempt type resolution of unchecked definitions from all modules.\n\t\tEnvironment env = new FlatCheckedEnvironment(assistantFactory, alldefs, NameScope.NAMESANDSTATE);\n\t\tTypeCheckVisitor tc = new TypeCheckVisitor();\n\t\tfor (PDefinition d : checkDefs)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tassistantFactory.createPDefinitionAssistant().typeResolve(d, tc, new TypeCheckInfo(new TypeCheckerAssistantFactory(), env));\n\t\t\t} catch (TypeCheckException te)\n\t\t\t{\n\t\t\t\treport(3430, te.getMessage(), te.location);\n\t\t\t} catch (AnalysisException te)\n\t\t\t{\n\t\t\t\treport(3431, te.getMessage(), null);// FIXME: internal error\n\t\t\t}\n\t\t}\n\n\t\t// Proceed to type check all definitions, considering types, values\n\t\t// and remaining definitions, in that order.\n\n\t\tfor (Pass pass : Pass.values())\n\t\t{\n\t\t\tfor (AModuleModules m : modules)\n\t\t\t{\n\t\t\t\tif (!m.getTypeChecked())\n\t\t\t\t{\n\t\t\t\t\tEnvironment e = new ModuleEnvironment(assistantFactory, m);\n\n\t\t\t\t\tfor (PDefinition d : m.getDefs())\n\t\t\t\t\t{\n\t\t\t\t\t\t// System.out.println(\"Number of Defs: \" + m.getDefs().size());\n\t\t\t\t\t\t// System.out.println(\"Def to typecheck: \" + d.getName());\n\t\t\t\t\t\tif (d.getPass() == pass)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttry\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\td.apply(tc, new TypeCheckInfo(assistantFactory, e, NameScope.NAMES));\n\t\t\t\t\t\t\t\t// System.out.println();\n\t\t\t\t\t\t\t} catch (TypeCheckException te)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\treport(3431, te.getMessage(), te.location);\n\t\t\t\t\t\t\t} catch (AnalysisException te)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\treport(3431, te.getMessage(), null);// FIXME: internal error\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// System.out.println(\"Number of Defs: \" + m.getDefs().size());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Report any discrepancies between the final checked types of\n\t\t// definitions and their explicit imported types.\n\n\t\tfor (AModuleModules m : modules)\n\t\t{\n\t\t\tif (!m.getTypeChecked())\n\t\t\t{\n\t\t\t\t// TODO\n\t\t\t\tassistantFactory.createAModuleModulesAssistant().processImports(m, modules); // Re-populate importDefs\n\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\t// TODO\n\t\t\t\t\tassistantFactory.createAModuleModulesAssistant().typeCheckImports(m);\n\t\t\t\t\t// m.typeCheckImports(); // Imports compared to exports\n\t\t\t\t} catch (TypeCheckException te)\n\t\t\t\t{\n\t\t\t\t\treport(3432, te.getMessage(), te.location);\n\t\t\t\t} catch (AnalysisException te)\n\t\t\t\t{\n\t\t\t\t\treport(3431, te.getMessage(), null);// FIXME: internal error\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Any names that have not been referenced or exported produce \"unused\"\n\t\t// warnings.\n\n\t\tfor (AModuleModules m : modules)\n\t\t{\n\t\t\tif (!m.getTypeChecked())\n\t\t\t{\n\t\t\t\tassistantFactory.createPDefinitionListAssistant().unusedCheck(m.getImportdefs());\n\t\t\t\tassistantFactory.createPDefinitionListAssistant().unusedCheck(m.getDefs());\n\t\t\t}\n\t\t}\n\t}",
"@Test\r\n public void testImportStringHandling() throws ClassNotFoundException\r\n {\r\n TypeParser typeParser = TypeParsers.create();\r\n typeParser.addImport(\"java.util.List\");\r\n try\r\n {\r\n typeParser.addImport(\"java.awt.List\");\r\n fail(\"Expected exception\");\r\n }\r\n catch (IllegalArgumentException e)\r\n {\r\n // Expected\r\n }\r\n }",
"IncludeType createIncludeType();",
"TypeDefinition createTypeDefinition();",
"@Override\n\tprotected void generatePkgImports() {\n\t\toutputList.add(new OutputLine(indentLvl, \"import uvm_pkg::*;\"));\n\t\toutputList.add(new OutputLine(indentLvl, \"import ordt_uvm_reg_translate1_pkg::*;\"));\n\t\tif (UVMRdlTranslate1Classes.altModelPackage != null) outputList.add(new OutputLine(indentLvl, \"import \" + UVMRdlTranslate1Classes.altModelPackage + \";\")); // add alt model pkg\n\t\toutputList.add(new OutputLine(indentLvl, \"import jspec::*;\"));\n\t}",
"public TypeRefinition(String pPackageName, String[] pImports, Object pSecretID) {\n\t\t\tsuper(pPackageName, pImports, pSecretID);\n\t\t}",
"private OpenTypeFactory() {\n\t\tcompositeTypes = new ConcurrentHashMap<String, CompositeType>();\n\t\tsimpleTypes = new ConcurrentHashMap<String, SimpleType<?>>();\n\t\tarrayTypes = new ConcurrentHashMap<String, ArrayType<?>>();\n\t\ttabularTypes = new ConcurrentHashMap<String, TabularType>();\n\t\topenTypes = new ConcurrentHashMap<String, OpenType<?>>();\n\t\tmasterIndex = new ConcurrentHashMap<String, Map<String, ? extends OpenType<?>>>();\n\t\tmxBeanMappingFactory = MXBeanMappingFactory.DEFAULT;\n\t\t\n\t\t\n\t\ttry {\n\t\t\tfor(Field f: SimpleType.class.getDeclaredFields()) {\n\t\t\t\tif(!Modifier.isStatic(f.getModifiers())) continue;\n\t\t\t\tif(!f.getType().equals(SimpleType.class)) continue;\n\t\t\t\tSimpleType<?> ot = (SimpleType<?>)f.get(null);\n\t\t\t\tsimpleTypes.put(ot.getClassName(), ot);\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tthrow new RuntimeException(\"Failed to initialize OpenTypeFactory OpenType Cache\", ex);\n\t\t}\n\t}",
"@Override\n public TypeOnDemandImportDeclaration parse(Parser parser) {\n if (!parser.peekPresentAndSkip(\"import\")) {\n return null;\n }\n //whitespace required here\n if (parseWhiteSpaceAndComments(parser).isEmpty()) {\n return null;\n }\n //simple type name\n QualifiedName name = parser.next(QualifiedName.class);\n if (name == null) {\n return null;\n }\n //spacing\n parseWhiteSpaceAndComments(parser);\n //dot\n if (!parser.peekPresentAndSkip('.')) {\n return null;\n }\n //spacing\n parseWhiteSpaceAndComments(parser);\n //asterisk\n if (!parser.peekPresentAndSkip('*')) {\n return null;\n }\n //spacing\n parseWhiteSpaceAndComments(parser);\n //semicolon\n if (!parser.peekPresentAndSkip(';')) {\n return null;\n }\n return new TypeOnDemandImportDeclaration(name);\n }",
"public void init(Type t) throws Exception{\n instanceType = t;\n typeName = instanceType.getClassName();\n typeName = typeName.substring(typeName.lastIndexOf(\".\") + 1);\n\n desc = \"\";\n //fixme, check if it belows to sut\n stmts = new ArrayList<>();\n methods = new ArrayList<>();\n methodArguments = new ArrayList<>();\n\n ClassNode typeClassNode = TypeTableBuilder.classTable.get(instanceType);\n //test if the classNode is buildable\n if(!ClassNodeUtil.isClassNodeBuilderable(typeClassNode))\n throw new HelperCodeException(\"Type: \" + typeClassNode.name + \" is not able to build\");\n\n addImport(classNode.name);//add import for the method/field\n addImport(typeClassNode.name);//add import for the instanceType\n }",
"TypeSystemDefinition createTypeSystemDefinition();",
"public void addStaticImport(String name, ClassEntity importEntity)\n {\n List l = (List) staticImports.get(name);\n if (l == null) {\n l = new ArrayList();\n staticImports.put(name, l);\n }\n l.add(importEntity);\n }",
"StaticIncludeType createStaticIncludeType();",
"StaticFilesType createStaticFilesType();",
"private JdbcTypeRegistry() {\n }",
"TypeDef createTypeDef();",
"private List<JCExpression> makeAdditionalImports(DiagnosticPosition diagPos, List<ClassSymbol> baseInterfaces) {\n ListBuffer<JCExpression> additionalImports = new ListBuffer<JCExpression>();\n for (ClassSymbol baseClass : baseInterfaces) {\n if (baseClass.type != null && baseClass.type.tsym != null &&\n baseClass.type.tsym.packge() != syms.unnamedPackage) { // Work around javac bug. the visitImport of Attr \n // is casting to JCFieldAcces, but if you have imported an\n // JCIdent only a ClastCastException is thrown.\n additionalImports.append(toJava.makeTypeTree(baseClass.type, diagPos, false));\n additionalImports.append(toJava.makeTypeTree(baseClass.type, diagPos, true));\n }\n }\n return additionalImports.toList();\n }",
"void generate(String name, List<String> types, Settings settings);",
"private TypePackage createPackageFrom(PackageDescription description) {\n return TypePackageImpl.create(description);\n }",
"public ImportsCollection()\n {\n normalImports = new HashMap();\n wildcardImports = new ArrayList();\n staticWildcardImports = new ArrayList(); \n staticImports = new HashMap();\n }",
"Type buildType( ClassLoader classloader ) \r\n throws IntrospectionException, IOException;",
"private Map<String, SkylarkModuleDoc> collectTypes() throws ClassPathException {\n return SkylarkDocumentationCollector.collectModules(\n Classpath.findClasses(MODULES_PACKAGE_PREFIX));\n }",
"public static void providePOJOsImports(final FileWriterWrapper writer,\n final Entity entity)\n throws IOException {\n if (entity.hasADateField()) {\n writer.write(\"import java.util.Date;\\n\");\n }\n\n if (entity.hasAManyRelation()) {\n writer.write(\"import java.util.ArrayList;\\n\");\n }\n writer.write(\"\\n\");\n }",
"protected void initializeImportedClasses(ModelClass modelClass, Service service) throws Exception {\n\t}",
"public void addWildcardImport(PackageOrClass importEntity)\n {\n wildcardImports.add(importEntity);\n }",
"private void setupPrimitiveTypes()\n {\n primitiveTypes.add(INTEGER_TYPE);\n primitiveTypes.add(FLOAT_TYPE);\n primitiveTypes.add(DOUBLE_TYPE);\n primitiveTypes.add(STRING_TYPE);\n primitiveTypes.add(BOOL_TYPE);\n primitiveTypes.add(TIMESTAMP_TYPE);\n }",
"public TpImport(){\r\n\t\t\r\n\t}",
"FieldType createFieldType();",
"FieldsType createFieldsType();",
"public ClassEntity getTypeImportWC(String name)\n {\n // Try non-static wildcard imports first\n Iterator i = wildcardImports.iterator();\n \n while (i.hasNext()) {\n PackageOrClass importEntity = (PackageOrClass) i.next();\n try {\n PackageOrClass member = importEntity.getPackageOrClassMember(name);\n if (member.isClass()) {\n return (ClassEntity) member;\n }\n }\n catch (SemanticException se) { }\n }\n \n // Now try static wildcard imports\n i = staticWildcardImports.iterator();\n while (i.hasNext()) {\n ClassEntity importEntity = (ClassEntity) i.next();\n try {\n ClassEntity member = importEntity.getStaticMemberClass(name);\n return member;\n }\n catch (SemanticException se) { }\n }\n \n return null;\n }",
"private void createTableTypeDefinitions(SpaceSystemType rootSystem,\n FileEnvVar importFile,\n ImportType importType,\n TypeDefinition targetTypeDefn) throws CCDDException\n {\n isStructureExists = false;\n isCommandExists = false;\n\n // Step through each table type definition\n for (TypeDefinition tableType : tableTypeHandler.getTypeDefinitions())\n {\n // Check if the type represents a structure\n if (tableType.isStructure())\n {\n // Set the flag to indicate a structure table type exists prior to the import\n // operation\n isStructureExists = true;\n }\n\n // Check if the type represents a command\n if (tableType.isCommand())\n {\n // Set the flag to indicate a command table type exists prior to the import\n // operation\n isCommandExists = true;\n }\n }\n\n // Set the flags to indicate if the target is a structure or command table\n boolean targetIsStructure = importType == ImportType.IMPORT_ALL\n ? true\n : targetTypeDefn.isStructure();\n boolean targetIsCommand = importType == ImportType.IMPORT_ALL\n ? true\n : targetTypeDefn.isCommand();\n\n // Check if a structure table type needs to be defined\n if (targetIsStructure || targetIsCommand)\n {\n // Check if all tables are to be imported\n if (importType == ImportType.IMPORT_ALL)\n {\n List<TableTypeDefinition> tableTypeDefns = new ArrayList<TableTypeDefinition>(1);\n String typeName = \"XTCE Structure\";\n int sequence = 2;\n\n // Create a table type definition for structure tables\n TableTypeDefinition tableTypeDefn = new TableTypeDefinition(typeName,\n \"0XTCE import structure table type\");\n\n // Step through each default structure column\n for (Object[] columnDefn : DefaultColumn.getDefaultColumnDefinitions(TYPE_STRUCTURE,\n false))\n {\n // Add the column to the table type definition\n addImportedTableTypeColumnDefinition(true,\n tableTypeDefn,\n CcddUtilities.convertObjectToString(columnDefn),\n importFile.getAbsolutePath(),\n inputTypeHandler,\n parent);\n }\n\n // Check if a table type definition already exists with this name, but differing properties\n if (tableTypeHandler.updateTableTypes(tableTypeDefn) == TableTypeUpdate.MISMATCH)\n {\n // Alter the name so that there isn't a duplicate\n typeName = \"XTCE Structure \" + sequence;\n tableTypeDefn.setTypeName(typeName);\n sequence++;\n }\n\n // Add the structure table type definition\n tableTypeDefns.add(tableTypeDefn);\n tableTypeHandler.updateTableTypes(tableTypeDefns);\n\n // Store the reference to the structure table type definition\n structureTypeDefn = tableTypeHandler.getTypeDefinition(typeName);\n }\n // Only a single table is to be imported\n else\n {\n structureTypeDefn = targetTypeDefn;\n }\n\n // Get structure table column indices\n variableNameIndex = CcddTableTypeHandler.getVisibleColumnIndex(structureTypeDefn.getColumnIndexByInputType(DefaultInputType.VARIABLE));\n dataTypeIndex = CcddTableTypeHandler.getVisibleColumnIndex(structureTypeDefn.getColumnIndexByInputType(DefaultInputType.PRIM_AND_STRUCT));\n arraySizeIndex = CcddTableTypeHandler.getVisibleColumnIndex(structureTypeDefn.getColumnIndexByInputType(DefaultInputType.ARRAY_INDEX));\n bitLengthIndex = CcddTableTypeHandler.getVisibleColumnIndex(structureTypeDefn.getColumnIndexByInputType(DefaultInputType.BIT_LENGTH));\n enumerationIndex = CcddTableTypeHandler.getVisibleColumnIndex(structureTypeDefn.getColumnIndexByInputTypeFormat(InputTypeFormat.ENUMERATION));\n minimumIndex = CcddTableTypeHandler.getVisibleColumnIndex(structureTypeDefn.getColumnIndexByInputTypeFormat(InputTypeFormat.MINIMUM));\n maximumIndex = CcddTableTypeHandler.getVisibleColumnIndex(structureTypeDefn.getColumnIndexByInputTypeFormat(InputTypeFormat.MAXIMUM));\n descriptionIndex = CcddTableTypeHandler.getVisibleColumnIndex(structureTypeDefn.getColumnIndexByInputType(DefaultInputType.DESCRIPTION));\n unitsIndex = CcddTableTypeHandler.getVisibleColumnIndex(structureTypeDefn.getColumnIndexByInputType(DefaultInputType.UNITS));\n\n // Update the database functions that collect structure table members and\n // structure-defining column data\n dbControl.createStructureColumnFunctions();\n }\n\n // Check if a command table type needs to be defined\n if (targetIsCommand)\n {\n // Check if all tables are to be imported or the target is a structure table\n if (importType == ImportType.IMPORT_ALL || targetIsStructure)\n {\n List<TableTypeDefinition> tableTypeDefns = new ArrayList<TableTypeDefinition>(1);\n String typeName = \"XTCE Command\";\n int sequence = 2;\n\n // Create a table type definition for command tables\n TableTypeDefinition tableTypeDefn = new TableTypeDefinition(typeName,\n \"0XTCE import command table type\");\n\n // Step through each default command column\n for (Object[] columnDefn : DefaultColumn.getDefaultColumnDefinitions(TYPE_COMMAND,\n false))\n {\n // Add the column to the table type definition\n addImportedTableTypeColumnDefinition(true,\n tableTypeDefn,\n CcddUtilities.convertObjectToString(columnDefn),\n importFile.getAbsolutePath(),\n inputTypeHandler,\n parent);\n }\n\n // Check if a table type definition already exists with this name, but differing properties\n if (tableTypeHandler.updateTableTypes(tableTypeDefn) == TableTypeUpdate.MISMATCH)\n {\n // Alter the name so that there isn't a duplicate\n typeName = \"XTCE Structure \" + sequence;\n tableTypeDefn.setTypeName(typeName);\n sequence++;\n }\n\n // Add the command table type definition\n tableTypeDefns.add(tableTypeDefn);\n tableTypeHandler.updateTableTypes(tableTypeDefns);\n\n // Store the reference to the command table type definition\n commandTypeDefn = tableTypeHandler.getTypeDefinition(typeName);\n }\n // A single command table is to be imported into an existing command table\n else\n {\n commandTypeDefn = targetTypeDefn;\n }\n\n // Get the command table column indices\n commandNameIndex = CcddTableTypeHandler.getVisibleColumnIndex(commandTypeDefn.getColumnIndexByInputType(DefaultInputType.COMMAND_NAME));\n cmdFuncCodeIndex = CcddTableTypeHandler.getVisibleColumnIndex(commandTypeDefn.getColumnIndexByInputType(DefaultInputType.COMMAND_CODE));\n cmdArgumentIndex = CcddTableTypeHandler.getVisibleColumnIndex(commandTypeDefn.getColumnIndexByInputType(DefaultInputType.COMMAND_ARGUMENT));\n cmdDescriptionIndex = CcddTableTypeHandler.getVisibleColumnIndex(commandTypeDefn.getColumnIndexByInputType(DefaultInputType.DESCRIPTION));\n }\n }",
"public void addStaticWildcardImport(ClassEntity importEntity)\n {\n staticWildcardImports.add(importEntity);\n }",
"@Override\n public ImmutableSet<String> getAllImports(final Ds3Type ds3Type) {\n return ImmutableSet.of();\n }",
"public void importClass(String klass) throws Exception;",
"public void addNormalImport(String name, JavaEntity importEntity)\n {\n normalImports.put(name, importEntity);\n }",
"private final void ensureBindingImports()\n {\n if (!bindingImportsAdded)\n {\n for (Iterator<BindingExpression> iter = bindingExpressions.iterator(); iter.hasNext(); )\n {\n BindingExpression expr = iter.next();\n addImport(expr.getDestinationTypeName(), expr.getXmlLineNumber());\n }\n bindingImportsAdded = true;\n }\n }",
"protected TypeRelated(String pPackageName, String[] pImports, Object pSecretID) {\n\t\t\tsuper(pPackageName, pImports, pSecretID);\n\t\t}",
"TypePackage getTypePackage();",
"public void clear()\n {\n normalImports.clear();\n wildcardImports.clear();\n }",
"public void install(String fullTypeName) throws ParseException, IOException {\r\n log.info(\"installing {}\", fullTypeName);\r\n\r\n if (!fullTypeName.contains(\".\")) {\r\n fullTypeName = String.format(\"org.myrobotlab.service.%s\", fullTypeName);\r\n }\r\n\r\n Set<Library> unfulfilled = getUnfulfilledDependencies(fullTypeName); // serviceData.getDependencyKeys(fullTypeName);\r\n\r\n for (Library dep : unfulfilled) {\r\n libraries.put(dep.getKey(), dep);\r\n resolveArtifacts(dep.getOrg(), dep.getRevision(), true);\r\n }\r\n }",
"TypeRepository createTypeRepository();",
"private void importType(JTFFile file) {\n if (file.getType() != null) {\n if (typesService.exist(file.getType())) {\n file.getType().setId(typesService.getSimpleData(file.getType().getName()).getId());\n } else {\n typesService.create(file.getType());\n }\n\n file.getFilm().setTheType(file.getType());\n }\n }",
"private void scanAndRegisterTypes() throws Exception {\n ScannedClassLoader scl = ScannedClassLoader.getSystemScannedClassLoader();\n // search annotations\n Iterator<Metadata> it = scl.getAll(MetadataType.class, Metadata.class); //CellFactorySPI.class);\n logger.log(Level.INFO, \"[Metadata Service] about to search classloader\");\n while (it.hasNext()) {\n Metadata metadata = it.next();\n logger.log(Level.INFO, \"[Metadata Service] using system scl, scanned type:\" + metadata.simpleName());\n registerMetadataType(metadata);\n }\n }",
"public TypeRegistration(String pPackageName, String[] pImports, Object pSecretID) {\n\t\t\tsuper(pPackageName, pImports, pSecretID);\n\t\t}",
"void openImportOrCreate(Context context);",
"public TypeManager()\n {\n\tlistModel = new DefaultListModel();\n\tallTypes = new Vector();\n setupPrimitiveTypes();\n }",
"private void addTypeableInstances() {\r\n \r\n if (currentModuleTypeInfo.isExtension()) {\r\n //don't add instances again for an adjunct module.\r\n return;\r\n }\r\n \r\n final ModuleName currentModuleName = currentModuleTypeInfo.getModuleName();\r\n //this uses the fact that Prelude.Typeable is a public class, and all modules must import the Prelude.\r\n final TypeClass typeableTypeClass = currentModuleTypeInfo.getVisibleTypeClass(CAL_Prelude.TypeClasses.Typeable);\r\n \r\n SortedSet<TypeClass> constraintSet = TypeClass.makeNewClassConstraintSet();\r\n constraintSet.add(typeableTypeClass);\r\n constraintSet = Collections.unmodifiableSortedSet(constraintSet);\r\n \r\n for (int i = 0, nTypeConstructors = currentModuleTypeInfo.getNTypeConstructors(); i < nTypeConstructors; ++i) {\r\n \r\n final TypeConstructor typeCons = currentModuleTypeInfo.getNthTypeConstructor(i);\r\n \r\n //we only add a Typeable instance for type constructors all of whose type arguments have arity *.\r\n if (typeCons.getKindExpr().isSimpleKindChain()) {\r\n \r\n final int arity = typeCons.getTypeArity(); \r\n final TypeExpr[] args = new TypeExpr[arity];\r\n \r\n for (int j = 0; j < arity; ++j) {\r\n \r\n args[j] = TypeVar.makeTypeVar(null, constraintSet, false);\r\n }\r\n \r\n final TypeConsApp typeConsApp = new TypeConsApp(typeCons, args);\r\n \r\n final ClassInstance classInstance = new ClassInstance(currentModuleName, typeConsApp, typeableTypeClass, null, ClassInstance.InstanceStyle.INTERNAL);\r\n \r\n currentModuleTypeInfo.addClassInstance(classInstance);\r\n }\r\n } \r\n }",
"Type() {\n }",
"private void createFactTypeDescriptor(ModuleItem pkg, XSDModel xsdModel) throws IOException {\n Map<String, Map<String, String>> concepts = this.getConcepts(xsdModel.getConcepts());\n \n //create the Descriptor file using a template\n StringTemplate template = new StringTemplate(IOUtils.toString(this.getClass().getResourceAsStream(\"/template/factTypesDescriptor.tpl\")));\n \n template.setAttribute(\"concepts\", concepts);\n \n AssetItem asset = pkg.addAsset( \"Fact Types Descriptor\",\n \"<imported from OWL>\" );\n asset.updateFormat( AssetFormats.ATTACHED_MODEL_DESCRIPTOR );\n asset.updateBinaryContentAttachment(new ByteArrayInputStream(template.toString().getBytes()));\n asset.updateExternalSource( \"Imported from external OWL\" );\n asset.getModule().updateBinaryUpToDate( false );\n \n asset.checkin( \"Imported from external OWL\" );\n \n // Special treatment for model and ruleflow attachments.\n ContentHandler handler = ContentManager.getHandler( asset.getFormat() );\n if ( handler != null && handler instanceof ICanHasAttachment ) {\n ((ICanHasAttachment) handler).onAttachmentAdded( asset );\n }\n \n }",
"public TypeScriptWriter addUseImports(SymbolContainer container) {\n for (Symbol symbol : container.getSymbols()) {\n addImport(symbol, symbol.getName(), SymbolReference.ContextOption.USE);\n }\n return this;\n }",
"ModulePackage createModulePackage();",
"Hashtable createTypeMapping()\n {\n Hashtable mapping = new Hashtable();\n \n mapping.put(TypeFactory.getType(\"Double\"), \n new ParameterFactory() \n {\n public Parameter getParameter(Object o) \n {\n StratmasDecimal sObj = (StratmasDecimal) o;\n if (isBadDecimal(sObj)) {\n return null;\n } else {\n return new StratmasDecimalParameter((StratmasDecimal) o);\n }\n }\n });\n mapping.put(TypeFactory.getType(\"double\", \"http://www.w3.org/2001/XMLSchema\"), \n new ParameterFactory() \n {\n public Parameter getParameter(Object o) \n {\n StratmasDecimal sObj = (StratmasDecimal) o;\n if (isBadDecimal(sObj)) {\n return null;\n } else {\n return new StratmasDecimalParameter((StratmasDecimal) o);\n }\n }\n });\n mapping.put(TypeFactory.getType(\"NonNegativeInteger\"), \n new ParameterFactory() \n {\n public Parameter getParameter(Object o) \n {\n return new StratmasIntegerParameter((StratmasInteger) o);\n }\n });\n // Ground type type hiearchy.\n mapping.put(TypeFactory.getType(\"anyType\", \"http://www.w3.org/2001/XMLSchema\"), \n new ParameterFactory() \n {\n public Parameter getParameter(Object o) \n {\n return null;\n }\n });\n\n return mapping;\n }",
"@Test\r\n public void testImportStringAmbiguity() throws ClassNotFoundException\r\n {\r\n TypeParser typeParser = TypeParsers.create();\r\n typeParser.addImport(\"java.util.*\");\r\n typeParser.addImport(\"java.awt.*\");\r\n try\r\n {\r\n typeParser.parse(\"List\");\r\n fail(\"Expected exception\");\r\n }\r\n catch (IllegalArgumentException e)\r\n {\r\n // Expected\r\n }\r\n }",
"public void importPackage(String pack) throws Exception;",
"public org.globus.swift.language.ImportsDocument.Imports addNewImports()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.globus.swift.language.ImportsDocument.Imports target = null;\n target = (org.globus.swift.language.ImportsDocument.Imports)get_store().add_element_user(IMPORTS$0);\n return target;\n }\n }",
"public interface TypeBuilder\r\n{\r\n /**\r\n * Build a part type.\r\n * @param classloader the classloader\r\n * @return the serializable part type.\r\n * @exception IntrospectionException if a introspection occurs during type construction\r\n * @exception IOException if an I/O exception occurs\r\n */\r\n Type buildType( ClassLoader classloader ) \r\n throws IntrospectionException, IOException;\r\n\r\n}",
"private static void createTypeDBHelper(Context context) {\n belongTypeDBHelper = BelongTypeDBHelper.getInstance(context,\n TablesName.TYPE_TABLE_NAME);\n }",
"ImportOption[] getImports();",
"CodeSetsType createCodeSetsType();",
"protected abstract <T extends ReferenceAnnotation> AnnotationImporter<T> getImporter(ReferenceMetadata<T> ref);",
"public static void provideDAOsImports(final FileWriterWrapper writer,\n final String entityCodeName)\n throws IOException {\n writer.write(\"import java.sql.Connection;\\n\");\n writer.write(\"import java.sql.PreparedStatement;\\n\");\n writer.write(\"import java.sql.ResultSet;\\n\");\n writer.write(\"import java.sql.SQLException;\\n\");\n writer.write(\"import java.util.ArrayList;\\n\\n\");\n\n writer.write(\"import pojos.\" + entityCodeName + \";\\n\\n\");\n }",
"public HashMap<String,HashSet<String>> loadTypes(String commonTypeInstanceFile) throws Exception;",
"public Import() {\n this(null, new Name(), null, null, false, false);\n }",
"static boolean Import(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"Import\")) return false;\n if (!nextTokenIs(b, K_IMPORT)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = SchemaImport(b, l + 1);\n if (!r) r = ModuleImport(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }",
"ModuleType type();",
"@Override\n\tpublic void registerPrimaryTypes() {\n\t\tobjectType = registerJavaType(getBuilder().getName(), ClassType.CLASS);\n\t}",
"public final EObject ruleTypeImport() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token lv_importURI_1_0=null;\n\n\n \tenterRule();\n\n try {\n // InternalNgt.g:1345:2: ( (otherlv_0= 'import' ( (lv_importURI_1_0= RULE_STRING ) ) ) )\n // InternalNgt.g:1346:2: (otherlv_0= 'import' ( (lv_importURI_1_0= RULE_STRING ) ) )\n {\n // InternalNgt.g:1346:2: (otherlv_0= 'import' ( (lv_importURI_1_0= RULE_STRING ) ) )\n // InternalNgt.g:1347:3: otherlv_0= 'import' ( (lv_importURI_1_0= RULE_STRING ) )\n {\n otherlv_0=(Token)match(input,15,FOLLOW_5); \n\n \t\t\tnewLeafNode(otherlv_0, grammarAccess.getTypeImportAccess().getImportKeyword_0());\n \t\t\n // InternalNgt.g:1351:3: ( (lv_importURI_1_0= RULE_STRING ) )\n // InternalNgt.g:1352:4: (lv_importURI_1_0= RULE_STRING )\n {\n // InternalNgt.g:1352:4: (lv_importURI_1_0= RULE_STRING )\n // InternalNgt.g:1353:5: lv_importURI_1_0= RULE_STRING\n {\n lv_importURI_1_0=(Token)match(input,RULE_STRING,FOLLOW_2); \n\n \t\t\t\t\tnewLeafNode(lv_importURI_1_0, grammarAccess.getTypeImportAccess().getImportURISTRINGTerminalRuleCall_1_0());\n \t\t\t\t\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getTypeImportRule());\n \t\t\t\t\t}\n \t\t\t\t\tsetWithLastConsumed(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"importURI\",\n \t\t\t\t\t\tlv_importURI_1_0,\n \t\t\t\t\t\t\"org.eclipse.xtext.common.Terminals.STRING\");\n \t\t\t\t\n\n }\n\n\n }\n\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 void convertAll() {\n Document dom = null;\n long beginTime = System.currentTimeMillis();\n try {\n log.info(\" ############################### begin import ######################\");\n dom = XMLParser.parseXMLToDOM(context.getResourceAsStream(IMPORT_FILE));\n // XMLParser.DTDValidator(dom);\n Element element = (Element) dom.getElementsByTagName(\"import\").item(0);\n String encoding = element.getAttribute(\"encoding\");\n DataAccessor.encoding = encoding;\n\n NodeList list = element.getChildNodes();\n\n List<Data> clondSources = new ArrayList<Data>();\n for (int i = 0; i < list.getLength(); i++) {\n // datatype node\n Node itemDatatype = list.item(i);\n List<Data> sources = processDatatype(itemDatatype);\n clondSources.addAll(sources);\n }\n NodeService.insertMigrationMappings(clondSources);\n createRelationDataType(clondSources);\n linkRoot(list);\n log.info(String.format(\n \" ---->#######################finished importing [time:%s mins] #############################\",\n (System.currentTimeMillis() - beginTime) / (1000 * 60)));\n NodeService.insertProperties(properties);\n }\n catch (Exception e) {\n log.error(e.getMessage());\n e.printStackTrace();\n }\n }",
"public static void initLoaderType() {\r\n boolean autoaddBoolean = GrouperLoaderConfig.retrieveConfig().propertyValueBoolean(\"loader.autoadd.typesAttributes\", true);\r\n\r\n if (!autoaddBoolean) {\r\n return;\r\n }\r\n\r\n GrouperSession grouperSession = null;\r\n\r\n try {\r\n\r\n grouperSession = GrouperSession.startRootSession(false);\r\n\r\n GrouperSession.callbackGrouperSession(grouperSession, new GrouperSessionHandler() {\r\n\r\n public Object callback(GrouperSession grouperSession)\r\n throws GrouperSessionException {\r\n try {\r\n \r\n GroupType loaderType = GroupType.createType(grouperSession, \"grouperLoader\", false);\r\n\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderType\", false);\r\n \r\n loaderType.addAttribute(grouperSession,\"grouperLoaderDbName\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderScheduleType\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderQuery\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderQuartzCron\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderIntervalSeconds\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderPriority\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderAndGroups\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderGroupTypes\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderGroupsLike\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderGroupQuery\", false);\r\n\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderDisplayNameSyncBaseFolderName\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderDisplayNameSyncLevels\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderDisplayNameSyncType\", false);\r\n\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderFailsafeUse\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMaxGroupPercentRemove\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMaxOverallPercentGroupsRemove\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMaxOverallPercentMembershipsRemove\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMinGroupSize\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMinManagedGroups\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderFailsafeSendEmail\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMinGroupNumberOfMembers\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMinOverallNumberOfMembers\", false);\r\n \r\n } catch (Exception e) {\r\n throw new RuntimeException(e.getMessage(), e);\r\n } finally {\r\n GrouperSession.stopQuietly(grouperSession);\r\n }\r\n return null;\r\n }\r\n\r\n });\r\n\r\n //register the hook if not already\r\n GroupTypeTupleIncludeExcludeHook.registerHookIfNecessary(true);\r\n \r\n } catch (Exception e) {\r\n throw new RuntimeException(\"Problem adding loader type/attributes\", e);\r\n }\r\n\r\n }",
"HxType createType(final String className);",
"public final EObject entryRuleTypeImport() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleTypeImport = null;\n\n\n try {\n // InternalNgt.g:1332:51: (iv_ruleTypeImport= ruleTypeImport EOF )\n // InternalNgt.g:1333:2: iv_ruleTypeImport= ruleTypeImport EOF\n {\n newCompositeNode(grammarAccess.getTypeImportRule()); \n pushFollow(FOLLOW_1);\n iv_ruleTypeImport=ruleTypeImport();\n\n state._fsp--;\n\n current =iv_ruleTypeImport; \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 HashMap<String,HashSet<String>> loadTypes(String typeFromO1, String typeFromO2) throws Exception;",
"private List<Type> initPersistTypeList(JCas jc) {\r\n\t\tList<Type> pTypes = new ArrayList<Type>();\r\n\t\tTypeSystem typeSystem = jc.getTypeSystem();\r\n\t\tIterator typeIterator = typeSystem.getTypeIterator();\r\n\t\tType t;\r\n\t\twhile (typeIterator.hasNext()) {\r\n\t\t\tt = (Type) typeIterator.next();\r\n\t\t\tif (!t.getName().startsWith(\"uima.\")) {\r\n\t\t\t\tList<Feature> fts = t.getFeatures();\r\n\t\t\t\tif (t.getFeatureByBaseName(pTriggerFeature)!=null) {\r\n\t\t\t\t\tif (!t.getName().contains(\".en.\"))\r\n\t\t\t\t\t\tpTypes.add(t);\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn pTypes;\r\n\t}",
"OurIfcRelDefinesByType createOurIfcRelDefinesByType();",
"UsedTypes getTypes();"
] | [
"0.81787866",
"0.7139646",
"0.6809299",
"0.6809299",
"0.61033875",
"0.6018389",
"0.5751293",
"0.56659293",
"0.54580307",
"0.5446249",
"0.5344641",
"0.53325284",
"0.5324426",
"0.5256486",
"0.52509505",
"0.5239544",
"0.5239544",
"0.5239544",
"0.5192927",
"0.5189482",
"0.51827943",
"0.51436806",
"0.5132985",
"0.5097297",
"0.504041",
"0.5039277",
"0.5026161",
"0.50237405",
"0.50229716",
"0.5020765",
"0.49935365",
"0.4991994",
"0.49752897",
"0.4972519",
"0.49625286",
"0.49520317",
"0.49401215",
"0.49340436",
"0.49176437",
"0.49034935",
"0.48810145",
"0.4868995",
"0.4857599",
"0.4857293",
"0.4848106",
"0.48432484",
"0.4809089",
"0.48035038",
"0.48010924",
"0.48009247",
"0.480088",
"0.48005396",
"0.4798147",
"0.4782347",
"0.4780371",
"0.47724158",
"0.4771791",
"0.47716844",
"0.4767537",
"0.47214076",
"0.4710818",
"0.47037724",
"0.46958408",
"0.46948537",
"0.46861303",
"0.4682692",
"0.46818635",
"0.46705443",
"0.46577016",
"0.46488371",
"0.46065047",
"0.459863",
"0.45960435",
"0.45949966",
"0.45922008",
"0.4591194",
"0.45802534",
"0.4577921",
"0.45759243",
"0.4565736",
"0.45613524",
"0.45469207",
"0.45296413",
"0.45214123",
"0.4517546",
"0.45163673",
"0.451469",
"0.45138422",
"0.45121875",
"0.45104975",
"0.4509183",
"0.45083338",
"0.450399",
"0.45002267",
"0.44943812",
"0.449281",
"0.44915128",
"0.448892",
"0.44863546",
"0.44809964"
] | 0.63188034 | 4 |
Checks if a given String contains import statements and returns them as a Set. | public static Set<String> onlyImports(final String type) {
final Set<String> imports = new HashSet<String>();
final Matcher matcher = NameUtils.IMPORT_STATEMENT_PATTERN.matcher(type);
while (matcher.find()) {
imports.add(matcher.group());
}
return imports;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static List<String> checkImports(CompilationUnit cu) {\n\t\tList<String> list = new ArrayList<>();\n\t\tImportCollector ic = new ImportCollector();\n\t\tic.visit(cu, list);\n\t\treturn list;\n\t}",
"static public String[] parseImport(String value) {\n \treturn value.split(\";\");\n }",
"private static void validateImportString(String importString)\r\n {\r\n String tokens[] = importString.split(\"\\\\.\");\r\n for (int i=0; i<tokens.length; i++)\r\n {\r\n String token = tokens[i];\r\n if (!isValidJavaIdentifier(token) &&\r\n !(i == tokens.length-1 && token.equals(\"*\")))\r\n {\r\n throw new IllegalArgumentException(\r\n \"Invalid import string: \"+importString);\r\n }\r\n }\r\n }",
"ImportOption[] getImports();",
"@Test\r\n public void testImportStringPriorities() throws ClassNotFoundException\r\n {\r\n TypeParser typeParser0 = TypeParsers.create();\r\n typeParser0.addImport(\"java.awt.List\");\r\n typeParser0.addImport(\"java.util.*\");\r\n\r\n Type t0 = typeParser0.parse(\"List\");\r\n assertEquals(t0, java.awt.List.class);\r\n \r\n TypeParser typeParser1 = TypeParsers.create();\r\n typeParser1.addImport(\"java.awt.*\");\r\n typeParser1.addImport(\"java.util.List\");\r\n\r\n Type t1 = typeParser1.parse(\"List\");\r\n assertEquals(t1, java.util.List.class);\r\n \r\n }",
"@Override\n public ImmutableSet<String> getAllImports(final Ds3Type ds3Type) {\n return ImmutableSet.of();\n }",
"@Test\r\n public void testImportStringAmbiguity() throws ClassNotFoundException\r\n {\r\n TypeParser typeParser = TypeParsers.create();\r\n typeParser.addImport(\"java.util.*\");\r\n typeParser.addImport(\"java.awt.*\");\r\n try\r\n {\r\n typeParser.parse(\"List\");\r\n fail(\"Expected exception\");\r\n }\r\n catch (IllegalArgumentException e)\r\n {\r\n // Expected\r\n }\r\n }",
"private String imported(String string) {\n string = IMPORT.matcher(string).replaceAll(\"\");\n string = DOT.matcher(string).replaceAll(\"/\");\n string = SEMICOLON.matcher(string).replaceAll(\"\");\n string = \"/\" + string.trim() + \".java\";\n return string;\n }",
"public Set<String> getVariablesWithin(String exp) {\r\n Set<String> all=new TreeSet<String>(String.CASE_INSENSITIVE_ORDER);\r\n String add=null;\r\n\r\n for(StringTokenizer tkz=new StringTokenizer(exp,SYMBOLS,true); tkz.hasMoreTokens(); ) {\r\n String tkn=tkz.nextToken().trim();\r\n\r\n if (tkn.length()!=0 && Character.isLetter(tkn.charAt(0))) { add=tkn; }\r\n else if(tkn.length()==1 && tkn.charAt(0)=='(' ) { add=null; }\r\n else if(add!=null && !constants.containsKey(add) ) { all.add(add); }\r\n }\r\n if(add!=null && !constants.containsKey(add)) { all.add(add); }\r\n return all;\r\n }",
"public Set getImports(Resource referencer) {\n \n \t\tMap importsMap = getImportsMap(referencer);\n \n \t\tif (importsMap != null) {\n \t\t\treturn Collections.unmodifiableSet(importsMap.keySet());\n \t\t} else {\n \t\t\treturn Collections.EMPTY_SET;\n \t\t}\n \t}",
"public void testPackageMissingSemicolon() throws ParseException {\n SourceFile s = _parseString(\"package edu.rice.cs.drjava\\n\"+\n \"import java.io.*\\n\"+\n \"import java.util.List\\n\"+\n \"package edu.rice.cs.drjava\\n\"+\n \"public class A {\\n\"+\n \"}\");\n assertEquals(\"Number of packages\",2,s.getPackageStatements().length);\n assertEquals(\"Number of imports\",2,s.getImportStatements().length);\n }",
"public static Collection<String> createNecessaryImportsForTypeInClass(final String type) {\n\n\t\tfinal Set<String> imports = new HashSet<String>();\n\t\tif (TypeUtils.isListOrSet(type)) {\n\t\t\taddCollectionImports(type, imports);\n\t\t}\n\t\telse {\n\t\t\tif (!TypeUtils.isPrimitiveType(type)) {\n\t\t\t\timports.add(type);\n\t\t\t}\n\t\t}\n\n\t\treturn imports;\n\t}",
"public static String get_import(String s)\n {\n read_if_needed_();\n \n return (String) _map_imports.get(s);\n \n }",
"@Test\r\n public void testOnDemandImportStringHandling() throws ClassNotFoundException\r\n {\r\n TypeParser typeParser = TypeParsers.create();\r\n typeParser.addImport(\"java.util.*\");\r\n\r\n Type t0 = typeParser.parse(\"List\");\r\n assertEquals(t0, java.util.List.class);\r\n }",
"@Test\r\n public void testNamedImportStringHandling() throws ClassNotFoundException\r\n {\r\n TypeParser typeParser = TypeParsers.create();\r\n typeParser.addImport(\"java.util.List\");\r\n typeParser.addImport(\"java. util . Collection \");\r\n\r\n Type t0 = typeParser.parse(\"List\");\r\n assertEquals(t0, java.util.List.class);\r\n \r\n Type t1 = typeParser.parse(\"Collection\");\r\n assertEquals(t1, java.util.Collection.class);\r\n \r\n }",
"private String importDeclaration()\r\n {\r\n String handle;\r\n\r\n matchKeyword(Keyword.IMPORTSY);\r\n handle = nextToken.string;\r\n matchKeyword(Keyword.IDENTSY);\r\n handle = qualifiedImport(handle);\r\n matchKeyword(Keyword.SEMICOLONSY);\r\n\r\n return handle;\r\n }",
"public String[] getImports (\n String url\n ) {\n DataObject dataObject = getDataObject (url);\n if (dataObject == null) return new String [0];\n JavaFXSource js = JavaFXSource.forFileObject(dataObject.getPrimaryFile());\n if (js == null) return new String [0];\n final List<String> imports = new ArrayList<String>();\n try {\n js.runUserActionTask(new CancellableTask<CompilationController>() {\n public void cancel() {\n }\n public void run(CompilationController ci) throws Exception {\n if (ci.toPhase(Phase.PARSED).compareTo(Phase.PARSED) < 0) {\n ErrorManager.getDefault().log(ErrorManager.WARNING,\n \"Unable to resolve \"+ci.getCompilationUnit().getSourceFile()+\" to phase \"+Phase.PARSED+\", current phase = \"+ci.getPhase()+\n \"\\nDiagnostics = \"/*+ci.getDiagnostics()*/+\n \"\\nFree memory = \"+Runtime.getRuntime().freeMemory());\n return;\n }\n List importDecl = ci.getCompilationUnit().getImports();\n int i = 0;\n for (Iterator it = importDecl.iterator(); it.hasNext(); i++) {\n ImportTree itree = (ImportTree) it.next();\n String importStr = itree.getQualifiedIdentifier().toString();\n imports.add(importStr);\n }\n }\n }, true);\n } catch (IOException ioex) {\n ErrorManager.getDefault().notify(ioex);\n return new String [0];\n }\n return imports.toArray(new String[0]);\n /*\n SourceCookie.Editor sc = (SourceCookie.Editor) dataObject.getCookie \n (SourceCookie.Editor.class);\n if (sc == null) return new String [0];\n Import[] is = sc.getSource ().getImports ();\n int i, k = is.length;\n String[] is2 = new String [k];\n for (i = 0; i < k; i++)\n is2 [i] = is [i].getIdentifier ().getFullName ();\n return is2;\n */\n }",
"@Test\r\n public void testImportStringHandling() throws ClassNotFoundException\r\n {\r\n TypeParser typeParser = TypeParsers.create();\r\n typeParser.addImport(\"java.util.List\");\r\n try\r\n {\r\n typeParser.addImport(\"java.awt.List\");\r\n fail(\"Expected exception\");\r\n }\r\n catch (IllegalArgumentException e)\r\n {\r\n // Expected\r\n }\r\n }",
"boolean hasPlainImport();",
"@Test\r\n public void testImportRedundancy() throws ClassNotFoundException\r\n {\r\n TypeParser typeParser = TypeParsers.create();\r\n typeParser.addImport(\"java.util.*\");\r\n typeParser.addImport(\"java.util.*\");\r\n Type t1 = typeParser.parse(\"List\");\r\n assertEquals(t1, java.util.List.class);\r\n }",
"Set<String> classNames(String packageName, String except) throws Exception;",
"Set<Class<?>> getClassSet(String packageName);",
"public String[] getImports() {\n\t\treturn (this.Imports.length == 0)?this.Imports:this.Imports.clone();\n\t}",
"static public String[] ExtractImports(String $PackageName, ParseResult[] $Imports,\n\t\t\tParseResult $Result, PTypePackage $TPackage, CompileProduct $CProduct) {\n\t\t\n\t\tif(($Imports == null) || ($Imports.length == 0)) return UString.EmptyStringArray;\n\t\t\n\t\tString[] Imports = new String[$Imports.length];\n\t\t// Extract the import\n\t\tfor(int i = 0; i < $Imports.length; i++) {\n\t\t\tParseResult Import = $Imports[i];\n\t\t\t// Check for error\n\t\t\tif(!Import.ensureNoError($TPackage, $CProduct)) continue;\n\t\t\n\t\t\tString[] PNames = Import.textsOf(\"$PackageName\");\n\t\t\tStringBuffer PName = new StringBuffer();\n\t\t\tif(PNames != null) {\n\t\t\t\t// Join the package name\n\t\t\t\tfor(int p = 0; p < PNames.length; p++)\n\t\t\t\t\tPName.append(PNames[p]);\n\t\t\t\t\n\t\t\t\t// Add wildcard\n\t\t\t\tString WildCard = Import.textOf(\"$IsWildCard\");\n\t\t\t\tif(WildCard != null) PName.append(WildCard);\n\t\t\t}\n\t\t\tImports[i] = PName.toString();\n\t\t}\n\t\treturn Imports;\n\t}",
"Set<String> classNames(String packageName, String except, String except2) throws Exception;",
"boolean hasImported();",
"Set<String> getDependencies();",
"public static boolean importStatement(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"importStatement\")) return false;\n if (!nextTokenIs(b, \"<import statement>\", AT, IMPORT)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_, IMPORT_STATEMENT, \"<import statement>\");\n r = importStatement_0(b, l + 1);\n r = r && consumeToken(b, IMPORT);\n r = r && uriElement(b, l + 1);\n p = r; // pin = 3\n r = r && report_error_(b, importStatement_3(b, l + 1));\n r = p && report_error_(b, importStatement_4(b, l + 1)) && r;\n r = p && report_error_(b, importStatement_5(b, l + 1)) && r;\n r = p && consumeToken(b, SEMICOLON) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }",
"public void addImport(String importString) {\n\t\t\tdynamicImports.add(importString);\n\t\t}",
"@VisibleForTesting\n @NonNull\n static List<String> findIncludesInXml(@NonNull String xml) {\n Document document = DomUtilities.parseDocument(xml, false /*logParserErrors*/);\n if (document != null) {\n return findIncludesInDocument(document);\n }\n\n return Collections.emptyList();\n }",
"@Test\r\n public void testRegexpSetInclusion() {\r\n rs.getRegexp(reString);\r\n stringSet.add(reString);\r\n assertTrue(rs.getRegexpSet().containsAll(stringSet));\r\n }",
"Set<String> getBaseTypes();",
"protected static void assertImports(ImportManager importManager, String... importDeclarations) {\n\t\tList<String> imports = importManager.getImports();\n\t\tassertEquals(\"Invalid number of import declarations\", importDeclarations.length, imports.size());\n\t\tfor (String declaration : importDeclarations) {\n\t\t\tassertTrue(\"Expecting import declaration: \" + declaration,\n\t\t\t\t\timports.contains(declaration));\n\t\t}\n\t}",
"protected void checkImport(String[] paths) {\n\n\t\tfor (YANG_Linkage link : getLinkages()) {\n\t\t\tif (link instanceof YANG_Import) {\n\t\t\t\tYANG_Import imported = (YANG_Import) link;\n\t\t\t\tString importedspecname = imported.getImportedModule();\n\t\t\t\tYANG_Revision revision = imported.getRevision();\n\t\t\t\tYANG_Specification importedspec = null;\n\t\t\t\tif (revision != null) {\n\t\t\t\t\tString impname = importedspecname;\n\t\t\t\t\timportedspecname += \"@\" + revision.getDate();\n\t\t\t\t\timportedspec = getExternal(paths, importedspecname,\n\t\t\t\t\t\t\timpname, imported.getLine(), imported.getCol());\n\t\t\t\t} else\n\t\t\t\t\timportedspec = getExternal(paths, importedspecname,\n\t\t\t\t\t\t\timported.getLine(), imported.getCol());\n\t\t\t\tif (importedspec != null)\n\t\t\t\t\timported.setImportedmodule(importedspec);\n\t\t\t\tif (!(importedspec instanceof YANG_Module))\n\t\t\t\t\tYangErrorManager.addError(getFileName(),\n\t\t\t\t\t\t\timported.getLine(), imported.getCol(),\n\t\t\t\t\t\t\t\"not_module\", importedspecname);\n\t\t\t\telse if (!importeds.contains(importedspec))\n\t\t\t\t\timporteds.add((YANG_Module) importedspec);\n\t\t\t}\n\t\t}\n\t}",
"private Set<String> m47c(String str, Context context, AttributeSet attributeSet, boolean z) throws C0414b {\n String b = m45b(str, context, attributeSet, z);\n HashSet hashSet = new HashSet();\n if (b != null) {\n for (String trim : b.split(\",\")) {\n String trim2 = trim.trim();\n if (trim2.length() != 0) {\n hashSet.add(trim2);\n }\n }\n }\n return hashSet;\n }",
"private List<String> getIncludesFrom(String includer) {\n ensureInitialized();\n\n return mIncludes.get(includer);\n }",
"protected String getImportStatement() {\n return \"\";\n }",
"void addImports(Set<String> allImports) {\n allImports.add(\"io.ebean.typequery.\" + propertyType);\n }",
"public List<Antfile> getImports()\n {\n return imports;\n }",
"private List<String> scanFileSet(File sourceDirectory, FileSet fileSet) {\n final String[] emptyStringArray = {};\n\n DirectoryScanner scanner = new DirectoryScanner();\n\n scanner.setBasedir(sourceDirectory);\n if (fileSet.getIncludes() != null && !fileSet.getIncludes().isEmpty()) {\n scanner.setIncludes(fileSet.getIncludes().toArray(emptyStringArray));\n } else {\n scanner.setIncludes(DEFAULT_INCLUDES);\n }\n\n if (fileSet.getExcludes() != null && !fileSet.getExcludes().isEmpty()) {\n scanner.setExcludes(fileSet.getExcludes().toArray(emptyStringArray));\n }\n\n if (fileSet.isUseDefaultExcludes()) {\n scanner.addDefaultExcludes();\n }\n\n scanner.scan();\n\n return Arrays.asList(scanner.getIncludedFiles());\n }",
"@VisibleForTesting\n @NonNull\n static List<String> findIncludes(@NonNull String xml) {\n int index = xml.indexOf(ATTR_LAYOUT);\n if (index != -1) {\n return findIncludesInXml(xml);\n }\n\n return Collections.emptyList();\n }",
"public static Set<Integer> getSetFromString(String str) {\n String[] strArray = str.split(\" \");\n Set<Integer> output = new TreeSet<>();\n for (String number : strArray) {\n output.add(Integer.parseInt(number));\n }\n return output;\n }",
"private boolean hasImport(JsonObject originAst, JsonObject mergePackage) {\n boolean importFound = false;\n\n for (JsonElement node : originAst.getAsJsonArray(\"topLevelNodes\")) {\n JsonObject originNode = node.getAsJsonObject();\n if (importFound) {\n break;\n } else if (originNode.get(\"kind\").getAsString().equals(\"Import\")\n && originNode.get(\"orgName\").getAsJsonObject().get(\"value\").getAsString()\n .equals(mergePackage.get(\"orgName\").getAsJsonObject().get(\"value\").getAsString())\n && originNode.getAsJsonArray(\"packageName\").size() == mergePackage\n .getAsJsonArray(\"packageName\").size()) {\n JsonArray packageName = originNode.getAsJsonArray(\"packageName\");\n for (int i = 0; i < packageName.size(); i++) {\n JsonArray mergePackageName = mergePackage.getAsJsonArray(\"packageName\");\n if (mergePackageName.get(i).getAsJsonObject().get(\"value\").getAsString()\n .equals(packageName.get(i).getAsJsonObject().get(\"value\").getAsString())) {\n importFound = true;\n } else {\n importFound = false;\n break;\n }\n }\n }\n }\n\n return importFound;\n }",
"public static Set<Condition> getConditionSet(String... strings) {\n return Arrays.stream(strings)\n .map(Condition::new)\n .collect(Collectors.toSet());\n }",
"Set<File> getModules();",
"@Test\r\n public void addAllFromSetWithStrings() throws Exception {\r\n TreeSet<String> s = new TreeSet<>();\r\n s.addAll(sStr);\r\n assertTrue(s.contains(\"kek\"));\r\n assertTrue(s.contains(\"lel\"));\r\n assertTrue(s.contains(\"lol\"));\r\n }",
"public List getStaticImports(String name)\n {\n List l = (List) staticImports.get(name);\n if (l == null)\n l = Collections.EMPTY_LIST;\n return l;\n }",
"public ImportsCollection()\n {\n normalImports = new HashMap();\n wildcardImports = new ArrayList();\n staticWildcardImports = new ArrayList(); \n staticImports = new HashMap();\n }",
"public void addImports(Iterable<String> imports) {\n\t\tif (imports != null) {\n\t\t\tfor (String importIRIString : imports) {\n\t\t\t\tadditionalImports.add(IRI.create(importIRIString));\n\t\t\t}\n\t\t}\n\t}",
"@Test\n public void testNonSpecifiedImports() throws Exception {\n final DefaultConfiguration checkConfig =\n createModuleConfig(CustomImportOrderCheck.class);\n checkConfig.addAttribute(\"thirdPartyPackageRegExp\", \"org.\");\n checkConfig.addAttribute(\"customImportOrderRules\",\n \"STATIC###STANDARD_JAVA_PACKAGE###THIRD_PARTY_PACKAGE###SAME_PACKAGE(3)\");\n checkConfig.addAttribute(\"sortImportsInGroupAlphabetically\", \"true\");\n final String[] expected = {\n \"4: \" + getCheckMessage(MSG_LEX, \"java.awt.Button.ABORT\",\n \"java.io.File.createTempFile\"),\n \"5: \" + getCheckMessage(MSG_LEX, \"java.awt.print.Paper.*\",\n \"java.io.File.createTempFile\"),\n \"10: \" + getCheckMessage(MSG_LEX, \"java.awt.Dialog\", \"java.awt.Frame\"),\n \"15: \" + getCheckMessage(MSG_LEX, \"java.io.File\", \"javax.swing.JTable\"),\n \"16: \" + getCheckMessage(MSG_LEX, \"java.io.IOException\", \"javax.swing.JTable\"),\n \"17: \" + getCheckMessage(MSG_LEX, \"java.io.InputStream\", \"javax.swing.JTable\"),\n \"18: \" + getCheckMessage(MSG_LEX, \"java.io.Reader\", \"javax.swing.JTable\"),\n \"20: \" + getCheckMessage(MSG_ORDER, SAME, THIRD, \"com.puppycrawl.tools.*\"),\n \"22: \" + getCheckMessage(MSG_NONGROUP_IMPORT, \"com.google.common.collect.*\"),\n \"23: \" + getCheckMessage(MSG_LINE_SEPARATOR, \"org.junit.*\"),\n };\n\n verify(checkConfig, getPath(\"InputCustomImportOrderDefault.java\"), expected);\n }",
"protected boolean isImport() {\n\t\t// Overrides\n\t\treturn false;\n\t}",
"public boolean select(String element) {\n \t\t\t\tif (element.startsWith(\"import\")) //$NON-NLS-1$\n \t\t\t\t\treturn true;\n \t\t\t\telse\n \t\t\t\t\treturn false;\n \t\t\t}",
"public Vector<YANG_Import> getImports() {\n\t\tVector<YANG_Import> imports = new Vector<YANG_Import>();\n\t\tfor (Enumeration<YANG_Linkage> el = getLinkages().elements(); el\n\t\t\t\t.hasMoreElements();) {\n\t\t\tYANG_Linkage linkage = el.nextElement();\n\t\t\tif (linkage instanceof YANG_Import)\n\t\t\t\timports.add((YANG_Import) linkage);\n\n\t\t}\n\t\treturn imports;\n\t}",
"public Vector<YANG_Specification> getImportedModules(String[] paths) {\n\t\tVector<YANG_Specification> im = new Vector<YANG_Specification>();\n\t\tfor (Enumeration<YANG_Linkage> el = getLinkages().elements(); el\n\t\t\t\t.hasMoreElements();) {\n\t\t\tYANG_Linkage linkage = el.nextElement();\n\t\t\tif (linkage instanceof YANG_Import) {\n\t\t\t\tYANG_Import imported = (YANG_Import) linkage;\n\t\t\t\tString importedspecname = imported.getImportedModule();\n\t\t\t\tYANG_Specification importedspec = getExternal(paths,\n\t\t\t\t\t\timportedspecname, imported.getLine(), imported.getCol());\n\t\t\t\tim.add(importedspec);\n\n\t\t\t}\n\t\t}\n\t\treturn im;\n\t}",
"public static ArrayList<String> getUsedList(String output) throws IOException {\n\t\tImportsList obj1 = new ImportsList();\n\t\tArrayList<String> importsList = obj1.ImportsList(output);\n\t\tArrayList<ArrayList<String>> splitStarStore = new ArrayList<ArrayList<String>>();\n\t\tArrayList<String> splitNonStarStore = new ArrayList<String>();\n\t\tMap<String, Integer> import_values = new HashMap<>();\n\t\tMap<String, Integer> code_values = new HashMap<>();\t\n\t\t\n\t\tfor (Iterator iterator = importsList.iterator(); iterator.hasNext();) {\n\t\t\tString string = (String) iterator.next();\n\t\t\tif(string.contains(\"*\"))\n\t\t\t{\n\t\t\t\tString[] temp = string.split(\"\\\\.\");\n\t\t\t\t//removed java\n\t\t\t\tint count=0;\n\t\t\t\tfor (String s : temp)\n\t\t\t\t{\n\t\t\t\t\tif(s.contains(\"*\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tArrayList<String> inner = new ArrayList<String>();\n\t\t\t\t\t\tinner.add(temp[count-1]);\n\t\t\t\t\t\tFileInputStream fstream1 = new FileInputStream(\"importPackages.txt\");\n\t\t\t\t\t\tBufferedReader br1 = new BufferedReader(new InputStreamReader(fstream1));\n\t\t\t\t\t\tString strLine;\n\t\t\t\t\t\t\n\t\t\t\t\t\twhile ((strLine = br1.readLine()) != null) \n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\tString string1 = temp[count-1];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(strLine.contains(string1))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tString[] temp1 = strLine.split(string1);\n\t\t\t\t\t\t\t\tString[] temp2 = temp1[1].split(\";\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tString[] temp3 = temp2[0].split(\"\\\\.\");\n\t\t\t\t\t\t\t\tint count1=0;\n\t\t\t\t\t\t\t\tfor (String s1 : temp3)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif(count1!=0)\n\t\t\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tinner.add(s1);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tcount1++;\n\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsplitStarStore.add(inner);\n\t\t\t\t/*\t\tfor(ArrayList<String> inner1 : splitStore) {\n\t\t\t\t\t for(String s1 : inner1)\n\t\t\t\t\t {\n\t\t\t\t\t \tSystem.out.println(\"hey\"+s1);\n\t\t\t\t\t }\n\t\t\t\t\t }*/\n\t\t\t\t\t}\n\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tString[] temp = string.split(\"\\\\.\");\n\t\t\t\tint count=0;\n\t\t\t\tString temp1=null;\n\t\t\t\tfor (String s : temp)\n\t\t\t\t{\n\t\t\t\t\t\ttemp1 = s;\n\t\t\t\t}\n\t\t\t splitNonStarStore.add(temp1);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\toutput=output.split(\"<class>\")[1].split(\"</class>\")[0];\n//\t\tSystem.out.println(output);\n\t\t\n\t Pattern pattern = Pattern.compile(\"<name>(.*?)</name>\");\n\t Matcher matcher = pattern.matcher(output);\n\t \n\t while (matcher.find()) {\n\t \tif(matcher.group(1).split(\"<name>\")[0].trim().equals(\"\")) {\n \t//\t\tSystem.out.println(matcher.group(1).split(\"<name>\")[1].trim());\n \t\t\tcode_values.put(matcher.group(1).split(\"<name>\")[1].trim(),0);\n \t\t}\n\t \telse\n\t \t//\tSystem.out.println(matcher.group(1));\n\t \t\tcode_values.put(matcher.group(1),0);\t \t\t\n\t }\n\t \n\t int count=0;\n\t int flag;\n\t ArrayList<String> usedImports = new ArrayList<String>();\n\t for(ArrayList<String> inner : splitStarStore) {\n\t \tflag=0;\n\t for(String s : inner) {\n\t \tfor (Map.Entry<String, Integer> entry1 : code_values.entrySet())\n\t \t\t{\n\t \t\t\tif(s.equals(entry1.getKey()))\n\t \t\t\t{\n\t \t\t\t\tfor (Iterator iterator = importsList.iterator(); iterator.hasNext();) {\n\t \t\t\t\t\tString string = (String) iterator.next();\n\t \t\t\t\t\tString[] temp = string.split(\"\\\\.\");\n \t\t\t\t\t\tfor (String s1 : temp)\n \t\t\t\t\t\t{\n \t\t\t\t\t\t\tif(s1.equals(s))\n \t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\tflag=1;\n \t\t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}\n \t\t\t\t\t\tif(flag==1)\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t\t\n\t \t\t\t\t}\n\t \t\t\t\tfor (Iterator iterator = importsList.iterator(); iterator.hasNext();){\n\t \t\t\t\t\tString string = (String) iterator.next();\n\t \t\t\t\t\tif(string.contains(splitStarStore.get(count).get(0)) && string.contains(\"*\"))\n\t \t\t\t\t\t\tusedImports.add(string);\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t}\n\t }\n\t count++;\n\t }\n\t \n\t for(Iterator iterator = splitNonStarStore.iterator(); iterator.hasNext();)\n\t {\n\t \tString s=(String) iterator.next();\n\t \tfor (Map.Entry<String, Integer> entry1 : code_values.entrySet())\n \t\t{\n \t\t\tif(s.equals(entry1.getKey()))\n \t\t\t{\n \t\t\t\tfor (Iterator iterator1 = importsList.iterator(); iterator1.hasNext();) {\n \t\t\t\t\tString string = (String) iterator1.next();\n \t\t\t\t\tString[] temp = string.split(\"\\\\.\");\n\t\t\t\t\t\tfor (String s1 : temp)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(s1.equals(s))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tusedImports.add(string);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t \t\t\t\t\t\n \t\t\t\t}\n \t\t\t}\n \t\t}\n\t }\n\t return usedImports;\n\t}",
"private final boolean isImportable(InputStream in)\r\n\t{\r\n\t\tboolean ok = false;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tBufferedReader inreader = new BufferedReader(new InputStreamReader(\r\n\t\t\t\tin));\r\n\t\t\tok = false;\r\n\t\t\tString line = new String();\r\n\t\t\tif ((line = inreader.readLine()) != null)\r\n\t\t\t{\r\n\t\t\t\t// Line with 3 columns (float, float, digit)\r\n\t\t\t\tok = Pattern.matches(\"^\\\\d+\\\\.\\\\d*[ \\\\t]\\\\d+\\\\.?\\\\d*[ \\\\t]\\\\d\",\r\n\t\t\t\t\tline);\r\n\t\t\t}\r\n\t\t\tinreader.close();\r\n\t\t}\r\n\t\tcatch (IOException e)\r\n\t\t{\r\n\t\t\tok = false;\r\n\t\t}\r\n\t\treturn ok;\r\n\t}",
"private static boolean isTestSourceSet(SourceSet sourceSet) {\n return TEST_DIR_REGEX.matcher(sourceSet.getName()).find();\n }",
"public static Set<String> commaDelimitedStringToSet(String s) {\n Set<String> set = new HashSet<String>();\n String[] split = s.split(\",\");\n for (String aSplit : split) {\n String trimmed = aSplit.trim();\n if (trimmed.length() > 0)\n set.add(trimmed);\n }\n return set;\n }",
"public Set<String> mo16916b(String str, Set<String> set) {\n try {\n return this.f9119b.getStringSet(str, set);\n } catch (Throwable unused) {\n return set;\n }\n }",
"public static Set<Integer> getSetFromString(String str) {\n SortedSet<Integer> aux = new TreeSet<>();\n String[] palabras = str.split(\" \");\n for (int i = 0; i < palabras.length; i++) {\n aux.add(Integer.parseInt(palabras[i]));\n }\n return aux;\n\n }",
"void reportImport() {\n this.hasImports = true;\n }",
"public void testPackageEndInTrash() throws ParseException {\n SourceFile s = _parseString(\"package edu.rice.cs.drjava;\\n\"+\n \"import java.io.*asdf\\n\"+\n \"import java.util.List#$\\n\"+\n \"package edu.rice.cs.drjava\\n\"+\n \"public class A {\\n\"+\n \"}\");\n assertEquals(\"Number of packages\",2,s.getPackageStatements().length);\n assertEquals(\"Number of imports\",2,s.getImportStatements().length);\n }",
"private Set<String> parseStringToSet(final String data) {\n String[] splits;\n\n if (data != null && data.length() > 0) {\n splits = data.split(\",\");\n } else {\n splits = new String[] {};\n }\n\n Set<String> set = new HashSet<String>();\n if (splits.length > 0) {\n for (String split : splits) {\n set.add(split.trim());\n }\n }\n\n return set;\n }",
"protected boolean needImport(String importStatement) {\r\n\t\treturn DAOServiceConfigurationManager\r\n\t\t\t\t.getBooleanProperty(CODEGEN_HOLD_ANNOTATIONS_FOR_DAO)\r\n\t\t\t\t|| CodeGenUtils.needImportClass(importStatement);\r\n\t}",
"Set<Class<?>> getClassSetBySuperClass(String packageName, Class<?> superClass);",
"java.util.List<java.lang.String>\n getSourceFileList();",
"public Set<String> getJavaSourceListing() {\n Set<String> javasrcs = new TreeSet<String>();\n \n String javasrc;\n for(String classname: classlist) {\n if(classname.contains(\"$\")) {\n continue; // skip (inner classes don't have a direct 1::1 java source file\n }\n \n javasrc = classname.replaceFirst(\"\\\\.class$\", \".java\");\n javasrcs.add(javasrc);\n }\n \n return javasrcs;\n }",
"public final PythonParser.import_stmt_return import_stmt() throws RecognitionException {\n PythonParser.import_stmt_return retval = new PythonParser.import_stmt_return();\n retval.start = input.LT(1);\n\n PythonTree root_0 = null;\n\n PythonParser.import_name_return import_name102 = null;\n\n PythonParser.import_from_return import_from103 = null;\n\n\n\n try {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:769:5: ( import_name | import_from )\n int alt48=2;\n int LA48_0 = input.LA(1);\n\n if ( (LA48_0==IMPORT) ) {\n alt48=1;\n }\n else if ( (LA48_0==FROM) ) {\n alt48=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 48, 0, input);\n\n throw nvae;\n }\n switch (alt48) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:769:7: import_name\n {\n root_0 = (PythonTree)adaptor.nil();\n\n pushFollow(FOLLOW_import_name_in_import_stmt2839);\n import_name102=import_name();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, import_name102.getTree());\n\n }\n break;\n case 2 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:770:7: import_from\n {\n root_0 = (PythonTree)adaptor.nil();\n\n pushFollow(FOLLOW_import_from_in_import_stmt2847);\n import_from103=import_from();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, import_from103.getTree());\n\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (PythonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n\n catch (RecognitionException re) {\n errorHandler.reportError(this, re);\n errorHandler.recover(this, input,re);\n retval.tree = (PythonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n }\n finally {\n }\n return retval;\n }",
"public void addWildcardImport(PackageOrClass importEntity)\n {\n wildcardImports.add(importEntity);\n }",
"Import getImport();",
"@SuppressWarnings(\"unchecked\")\npublic static void set_Import(String s, String v) throws RuntimeException\n {\n read_if_needed_();\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaImportCmd, s, v);\n UmlCom.check();\n \n if ((v != null) && (v.length() != 0))\n _map_imports.put(s, v);\n else\n _map_imports.remove(s);\n }",
"public void addImport(String importVal)\n\t\t\tthrows JavaFileCreateException {\n\t\tif (importVal == null || \"\".equals(\"\")) {\n\t\t\tthrow new JavaFileCreateException(\n\t\t\t\t\tDictionaryOfExceptionMessage.IMPORT_EXCEPTION\n\t\t\t\t\t\t\t.toString());\n\t\t} else {\n\t\t\timportVal = importVal.trim();\n\t\t\tPattern pat = Pattern.compile(\"[^a-zA-Z0-9]*\");\n\t\t\tString[] temp = importVal.trim().split(\"\\\\.\");\n\t\t\tif (temp.length == 0) {\n\t\t\t\tthrow new JavaFileCreateException(\n\t\t\t\t\t\tDictionaryOfExceptionMessage.IMPORT_EXCEPTION\n\t\t\t\t\t\t\t\t.toString());\n\t\t\t} else {\n\t\t\t\tfor (String string : temp) {\n\t\t\t\t\tMatcher mat = pat.matcher(string);\n\t\t\t\t\tboolean rs = mat.find();\n\t\t\t\t\tif (rs) {\n\t\t\t\t\t\tthrow new JavaFileCreateException(\n\t\t\t\t\t\t\t\tDictionaryOfExceptionMessage.IMPORT_EXCEPTION\n\t\t\t\t\t\t\t\t\t\t.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\timports.add(importVal);\n\t}",
"public static Set<String> getParentPackages()\n {\n Set<String> result = new HashSet<String>();\n result.add(Test.class.getPackage().getName());\n result.add(TestSetup.class.getPackage().getName());\n result.add(AbstractTestCaseWithSetup.class.getPackage().getName());\n result.add(Logger.class.getPackage().getName());\n result.add(LoggingPlugin.class.getPackage().getName());\n result.add(PolicyPlugin.class.getPackage().getName());\n result.add(ClassLoaderSystem.class.getPackage().getName());\n result.add(IsolatedClassLoaderTest.class.getPackage().getName());\n \n String pkgString = AccessController.doPrivileged(new PrivilegedAction<String>() \n {\n public String run() \n {\n return System.getProperty(\"jboss.test.parent.pkgs\");\n }}\n );\n\n if (pkgString != null)\n {\n StringTokenizer tok = new StringTokenizer(pkgString, \",\");\n while(tok.hasMoreTokens())\n {\n String pkg = tok.nextToken();\n result.add(pkg.trim());\n }\n }\n \n return result;\n }",
"private final Set<String> m1026d() {\n HashSet hashSet = new HashSet();\n Bundle e = m1027e();\n if (e != null) {\n String string = e.getString(\"com.android.dynamic.apk.fused.modules\");\n if (string == null || string.isEmpty()) {\n f978a.mo34139a(\"App has no fused modules.\", new Object[0]);\n } else {\n Collections.addAll(hashSet, string.split(\",\", -1));\n hashSet.remove(\"\");\n hashSet.remove(\"base\");\n }\n }\n if (Build.VERSION.SDK_INT >= 21) {\n String[] strArr = null;\n try {\n PackageInfo packageInfo = this.f979b.getPackageManager().getPackageInfo(this.f980c, 0);\n if (packageInfo != null) {\n strArr = packageInfo.splitNames;\n }\n } catch (PackageManager.NameNotFoundException unused) {\n f978a.mo34143d(\"App is not found in PackageManager\", new Object[0]);\n }\n if (strArr != null) {\n f978a.mo34139a(\"Adding splits from package manager: %s\", Arrays.toString(strArr));\n Collections.addAll(hashSet, strArr);\n } else {\n f978a.mo34139a(\"No splits are found or app cannot be found in package manager.\", new Object[0]);\n }\n C2074n a = C2075o.m1022a();\n if (a != null) {\n hashSet.addAll(a.mo34289a());\n }\n }\n return hashSet;\n }",
"private boolean startsWithAny(List<String> packagesToTreatAsOpaque, String qualifiedTypeName) {\n for (String packageName : packagesToTreatAsOpaque) {\n if (!Strings.isNullOrEmpty(packageName) && qualifiedTypeName.startsWith(packageName)) {\n return true;\n }\n }\n return false;\n }",
"public static List<String> check(String input){\n\t\treturn SQLInputValidation.traps.stream()\n\t\t\t\t\t\t.filter(input::contains)\n\t\t\t\t\t\t.collect(toList());\n\t}",
"public String[] getIncludes()\n {\n return m_includes;\n }",
"public List getStaticWildcardImports()\n {\n return staticWildcardImports;\n }",
"public boolean isImported();",
"public static Set<String> getWorkingSets() {\n\t\tSet<String> workingSets = new HashSet<>();\n\t\tFile localExtensions = new File(PathUtils.getLocalExtensionsPath());\n\t\ttry {\n\t\t\tDocumentBuilder dBuilder = XmlScannerUtils.newDocumentBuilder();\n\t\t\tDocument doc = dBuilder.parse(localExtensions);\n\t\t\tXPath xPath = XPathFactory.newInstance().newXPath();\n\t\t\tString path = \"//comment()[following-sibling::*[1][self::extension]]\";\n\t\t\tNodeList commentNodes = (NodeList) xPath.compile(path).evaluate(doc, XPathConstants.NODESET);\n\t\t\tfor (int i = 0; i < commentNodes.getLength(); i++) {\n\t\t\t\tNode node = commentNodes.item(i);\n\t\t\t\tString workingSet = node.getNodeValue().trim();\n\t\t\t\tworkingSets.add(workingSet);\n\t\t\t}\n\t\t} catch (ParserConfigurationException | SAXException | IOException | XPathExpressionException e) {\n\t\t\tActivator.logError(\"Couldn't parse working sets file\", e);\n\t\t}\n\t\treturn workingSets;\n\t}",
"public java.lang.String[] getImportArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(IMPORT$0, targetList);\n java.lang.String[] result = new java.lang.String[targetList.size()];\n for (int i = 0, len = targetList.size() ; i < len ; i++)\n result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getStringValue();\n return result;\n }\n }",
"public static Set<String> findTranslatablePackagesInModule(final GeneratorContext context) {\n final Set<String> packages = new HashSet<String>();\n try {\n final StandardGeneratorContext stdContext = (StandardGeneratorContext) context;\n final Field field = StandardGeneratorContext.class.getDeclaredField(\"module\");\n field.setAccessible(true);\n final Object o = field.get(stdContext);\n\n final ModuleDef moduleDef = (ModuleDef) o;\n\n if (moduleDef == null) {\n return Collections.emptySet();\n }\n\n // moduleName looks like \"com.foo.xyz.MyModule\" and we just want the package part\n // for tests .JUnit is appended to the module name by GWT\n final String moduleName = moduleDef.getCanonicalName().replace(\".JUnit\", \"\");\n final int endIndex = moduleName.lastIndexOf('.');\n final String modulePackage = endIndex == -1 ? \"\" : moduleName.substring(0, endIndex);\n\n for (final String packageName : findTranslatablePackages(context)) {\n if (packageName != null && packageName.startsWith(modulePackage)) {\n packages.add(packageName);\n }\n }\n }\n catch (final NoSuchFieldException e) {\n logger.error(\"the version of GWT you are running does not appear to be compatible with this version of Errai\", e);\n throw new RuntimeException(\"could not access the module field in the GeneratorContext\");\n }\n catch (final Exception e) {\n throw new RuntimeException(\"could not determine module package\", e);\n }\n\n return packages;\n }",
"public boolean isSetImport()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(IMPORT$0) != 0;\n }\n }",
"public org.apache.xmlbeans.XmlString[] xgetImportArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(IMPORT$0, targetList);\n org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }",
"public boolean isI_IsImported();",
"public static boolean include(String str, String[] strArray) {\n return in(str, strArray);\n }",
"public List<SchemaInfo> getImportedSchemas() {\n Set<String> importedNamespaces = getImportedNamespaces();\n importedNamespaces.remove(getTargetNamespace()); //the \"associated\" schema is either inlined or included, but not imported.\n List<SchemaInfo> schemas = new ArrayList<SchemaInfo>();\n for (String ns : importedNamespaces) {\n SchemaInfo schema = lookupSchema(ns);\n if (schema != null) {\n schemas.add(schema);\n }\n }\n return schemas;\n }",
"boolean hasImportConfiguration();",
"Set<Path> getDependencies();",
"public void addImport(String importPackage) {\r\n this.imports.add(importPackage);\r\n }",
"public IAstSourceFile findIncludeFile(String string);",
"private List<Resource> getImportedResources(final Resource resource)\n throws IOException {\n // it should be sorted\n final List<Resource> imports = new ArrayList<Resource>();\n String css = EMPTY;\n try {\n css = IOUtils.toString(uriLocatorFactory.locate(resource.getUri()), configuration.getEncoding());\n } catch (IOException e) {\n LOG.warn(\"Invalid import detected: {}\", resource.getUri());\n if (!configuration.isIgnoreMissingResources()) {\n throw e;\n }\n }\n final Matcher m = PATTERN.matcher(css);\n while (m.find()) {\n final Resource importedResource = buildImportedResource(resource, m.group(1));\n // check if already exist\n if (imports.contains(importedResource)) {\n LOG.warn(\"Duplicate imported resource: \" + importedResource);\n } else {\n imports.add(importedResource);\n }\n }\n return imports;\n }",
"public final void imports() throws RecognitionException {\n try {\n // css21.g:46:5: ( IMPORT_SYM ( STRING | URI ) ( medium ( COMMA medium )* )? SEMI )\n // css21.g:46:9: IMPORT_SYM ( STRING | URI ) ( medium ( COMMA medium )* )? SEMI\n {\n match(input,IMPORT_SYM,FOLLOW_IMPORT_SYM_in_imports128); if (state.failed) return ;\n\n if ( input.LA(1)==STRING||input.LA(1)==URI ) {\n input.consume();\n state.errorRecovery=false;\n state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n\n // css21.g:46:33: ( medium ( COMMA medium )* )?\n int alt4=2;\n int LA4_0 = input.LA(1);\n\n if ( (LA4_0==IDENT) ) {\n alt4=1;\n }\n switch (alt4) {\n case 1 :\n // css21.g:46:34: medium ( COMMA medium )*\n {\n pushFollow(FOLLOW_medium_in_imports137);\n medium();\n\n state._fsp--;\n if (state.failed) return ;\n\n // css21.g:46:41: ( COMMA medium )*\n loop3:\n do {\n int alt3=2;\n int LA3_0 = input.LA(1);\n\n if ( (LA3_0==COMMA) ) {\n alt3=1;\n }\n\n\n switch (alt3) {\n \tcase 1 :\n \t // css21.g:46:42: COMMA medium\n \t {\n \t match(input,COMMA,FOLLOW_COMMA_in_imports140); if (state.failed) return ;\n\n \t pushFollow(FOLLOW_medium_in_imports142);\n \t medium();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop3;\n }\n } while (true);\n\n\n }\n break;\n\n }\n\n\n match(input,SEMI,FOLLOW_SEMI_in_imports148); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return ;\n }",
"public static boolean ImportDeclarations(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"ImportDeclarations\")) return false;\n if (!nextTokenIs(b, IMPORT)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeToken(b, IMPORT);\n r = r && Separator(b, l + 1);\n r = r && consumeToken(b, IDENTIFIER);\n r = r && ImportDeclarations_3(b, l + 1);\n r = r && consumeToken(b, NEW_LINE);\n exit_section_(b, m, IMPORT_DECLARATIONS, r);\n return r;\n }",
"public Set<String> getSatisfiedInputs(Set<String> inputs, Set<String> searchSet) {\n\t\tSet<String> satisfied = new HashSet<String>();\n\t\tfor (String input : inputs) {\n\t\t\tSet<String> subsumed = taxonomyMap.get(input).getSubsumedConcepts();\n\t\t\tif (isIntersection( searchSet, subsumed ))\n\t\t\t\tsatisfied.add(input);\n\t\t}\n\t\treturn satisfied;\n\t}",
"public EList<GenClass> getAllStartSymbols() {\n \t\tEList<GenClass> symbols = new BasicEList<GenClass>();\n \t\tsymbols.addAll(getStartSymbols());\n \t\t\n \t\tEList<Import> imports = getImports();\n \t\tfor (Import importedElement : imports) {\n \t\t\tfinal ConcreteSyntax importedSyntax = importedElement.getConcreteSyntax();\n \t\t\tif (importedSyntax != null) {\n \t\t\t\tsymbols.addAll(importedSyntax.getAllStartSymbols());\n \t\t\t}\n \t\t}\n \t\treturn symbols;\n \t}",
"private List<String>getMXMLVersionDependentImports(MXMLDialect dialect) {\n \n List<String> imports = new ArrayList<String>();\n \n if (dialect.isEqualToOrAfter(MXMLDialect.MXML_2009))\n {\n // add \"mx.filters.*\" and \"spark.filters.*\"\n imports.add(\"mx.filters.*\");\n imports.add(\"spark.filters.*\");\n }\n else \n {\n // add \"flash.filters.*\"\n imports.add(\"flash.filters.*\"); \n }\n \n return imports;\n }",
"public Set<String> getImportedNamespaces() {\n Set<EndpointInterface> endpointInterfaces = getEndpointInterfaces();\n if ((endpointInterfaces == null) || (endpointInterfaces.size() == 0)) {\n throw new IllegalStateException(\"WSDL for \" + getTargetNamespace() + \" has no endpoint interfaces!\");\n }\n\n HashSet<String> importedNamespaces = new HashSet<String>();\n //always import the list of known namespaces.\n importedNamespaces.add(\"http://schemas.xmlsoap.org/wsdl/\");\n importedNamespaces.add(\"http://schemas.xmlsoap.org/wsdl/http/\");\n importedNamespaces.add(\"http://schemas.xmlsoap.org/wsdl/mime/\");\n importedNamespaces.add(\"http://schemas.xmlsoap.org/wsdl/soap/\");\n importedNamespaces.add(\"http://schemas.xmlsoap.org/wsdl/soap12/\");\n importedNamespaces.add(\"http://schemas.xmlsoap.org/soap/encoding/\");\n importedNamespaces.add(\"http://www.w3.org/2001/XMLSchema\");\n\n for (EndpointInterface endpointInterface : endpointInterfaces) {\n importedNamespaces.addAll(endpointInterface.getReferencedNamespaces());\n }\n\n if (isInlineSchema()) {\n SchemaInfo associatedSchema = getAssociatedSchema();\n if (associatedSchema != null) {\n importedNamespaces.addAll(associatedSchema.getReferencedNamespaces());\n }\n }\n\n return importedNamespaces;\n }",
"public static boolean SchemaImport(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"SchemaImport\")) return false;\n if (!nextTokenIs(b, K_IMPORT)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_, SCHEMA_IMPORT, null);\n r = consumeTokens(b, 2, K_IMPORT, K_SCHEMA);\n p = r; // pin = 2\n r = r && report_error_(b, SchemaImport_2(b, l + 1));\n r = p && report_error_(b, URILiteral(b, l + 1)) && r;\n r = p && report_error_(b, SchemaImport_4(b, l + 1)) && r;\n r = p && Separator(b, l + 1) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }",
"private boolean getIsImported(String productName) {\n\t\treturn productName.contains(AppConstants.IMPORTED_TOKEN);\n\t}"
] | [
"0.6139017",
"0.610832",
"0.601725",
"0.57967126",
"0.5744882",
"0.55991006",
"0.5574813",
"0.55536777",
"0.5471258",
"0.5436261",
"0.5426482",
"0.53852385",
"0.5368773",
"0.5337675",
"0.53053373",
"0.52950203",
"0.52764666",
"0.5249482",
"0.524187",
"0.5219686",
"0.52179486",
"0.52111036",
"0.51908416",
"0.5169695",
"0.50915855",
"0.50791395",
"0.5070349",
"0.49799156",
"0.49143097",
"0.48977798",
"0.48869726",
"0.4881009",
"0.4872097",
"0.4867256",
"0.48670372",
"0.48574632",
"0.48513913",
"0.48251665",
"0.47872394",
"0.47790956",
"0.47770494",
"0.47744915",
"0.47491696",
"0.47370428",
"0.4729877",
"0.47276214",
"0.4718212",
"0.47172982",
"0.46918014",
"0.46864757",
"0.4678856",
"0.46752414",
"0.46741405",
"0.46627128",
"0.46496493",
"0.4586742",
"0.4585514",
"0.45847625",
"0.45806703",
"0.45788145",
"0.4568347",
"0.4566338",
"0.45640677",
"0.4551749",
"0.4534322",
"0.4525997",
"0.4524551",
"0.45232227",
"0.45165175",
"0.45046157",
"0.4499732",
"0.4498008",
"0.4488643",
"0.44822112",
"0.44679794",
"0.44652545",
"0.44629553",
"0.44619077",
"0.4453799",
"0.4440685",
"0.44391584",
"0.44343197",
"0.4431449",
"0.44256335",
"0.44135207",
"0.44129848",
"0.44020933",
"0.43972048",
"0.4396445",
"0.43916425",
"0.43844998",
"0.43786636",
"0.43758574",
"0.43711764",
"0.43528885",
"0.4349747",
"0.43430078",
"0.43404973",
"0.43372792",
"0.43324968"
] | 0.7177023 | 0 |
Perform tasks when user clicked buttons on the UI, open the browser , save file or cancel | @Override
public void actionPerformed(ActionEvent e) {
if(e.getSource()==browse){
if (chooser == null){
chooser = new JFileChooser();
chooser.setCurrentDirectory(new java.io.File(projectPath));
chooser.setDialogTitle("Find Folder");
chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
chooser.setAcceptAllFileFilterUsed(false);
if (chooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {
saveTo.setText(chooser.getSelectedFile().toString());
}
chooser = null;
}
}else if(e.getSource()== save){
saveFile();
}else if(e.getSource()==cancel){
nameOfFile.setText("");
saveTo.setText("");
thisFrame.dispose();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString url = \"Aide.html\";\r\n\t\t\t\tFile htmlFile = new File(url);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tDesktop.getDesktop().browse(htmlFile.toURI());\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdoOpen();\n\t\t\t}",
"public void actionPerformed(ActionEvent evt) {\r\n Object obj = evt.getSource();\r\n if(obj == closeButton)\r\n \tdispose();\r\n else if(obj == updateButton)\r\n \ttry {\r\n \t\tBrowserLauncher.openURL(downloadURL);\r\n \t\t}\r\n\t\t\tcatch (IOException e) {}\r\n\r\n }",
"private void openPressed(){\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.showOpenDialog(this);\n\t\tFile file = null;\n\t\tif(retunedVal == JFileChooser.APPROVE_OPTION){\n\t\t\tfile = fileChooser.getSelectedFile();\n\t\t}\n\t\t//only continue if a file is selected\n\t\tif(file != null){\n\t\t\tSaveFile saveFile = null;\n\t\t\ttry {\n\t\t\t\t//read in file\n\t\t\t\tObjectInputStream input = new ObjectInputStream(new FileInputStream(file));\n\t\t\t\tsaveFile = (SaveFile) input.readObject();\n\t\t\t\tinput.close();\n\t\t\t\tVariable.setList(saveFile.getVariables());\n\t\t\t\tUserFunction.setFunctions(saveFile.getFunctions());\n\t\t\t\tmenuBar.updateFunctions();\n\t\t\t\tSystem.out.println(\"Open Success\");\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}",
"@Override\n public void click() {\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n int result = fileChooser.showOpenDialog(TurtleFileOpen.this);\n\n if (result == JFileChooser.APPROVE_OPTION) {\n final File selFile = fileChooser.getSelectedFile();\n //the user selects the file\n execute(new Runnable() {\n public void run() {\n openFile(selFile);\n }\n });\n }\n }\n });\n }",
"@FXML\r\n private void handleBrowseBtn(ActionEvent event) {\r\n openFile();\r\n }",
"@Override\r\n\tpublic void onBrowserSelected() {\n\t\tLog.d(TAG, \"onBrowserSelected()\");\r\n\t\t\r\n // Use the GET_CONTENT intent from the utility class\r\n Intent target = FileUtils.createGetContentIntent();\r\n // Create the chooser Intent\r\n Intent intent = Intent.createChooser(\r\n target, getString(R.string.choose_file));\r\n try {\r\n startActivityForResult(intent, 6383);\r\n } catch (ActivityNotFoundException e) {\r\n \tToast.makeText(getApplicationContext(), \"Couldn't open file browser\", Toast.LENGTH_SHORT).show();\r\n }\r\n\t}",
"@Override\n\tpublic void actionPerformed (ActionEvent e)\n\t{\n\t\n\t\ttry\n\t\t{\n\t\t\t//Browser.init();\n\t\t\t//Browser.displayURL(mUrl);\n\t\t\tDesktop.getDesktop().browse(new URI(mUrl));\n\n\t\t}\n\t\tcatch (IOException exc)\n\t\t{\n\t\t\texc.printStackTrace();\n\t\t} catch (URISyntaxException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\n\t\n\t}",
"public void Open() {\r\n\t click();\r\n\t }",
"public void pressOnDownloadBtn() {\n Network.sendMsg(\n new FileRequest(\n serverFilesList.getSelectionModel().getSelectedItem()));\n }",
"public void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource()== openbt) {\n\t\t\topenFile();\n\t\t}\n\t\telse if(e.getSource()== quitbt) {\n\t\t\tSystem.exit(0);\t\n\t\t}\t\t\t\n\t}",
"public void clickOnSave() {\r\n\t\telement(saveButton).waitUntilVisible();\r\n\t\tsaveButton.click();\r\n\t}",
"private void fileBrowserActionPerformed(ActionEvent e) {\n }",
"private void browserMouseClicked(java.awt.event.MouseEvent evt) {\n \n int ret = jfc.showOpenDialog(rootPane);\n if(ret==JFileChooser.APPROVE_OPTION)\n openFile(jfc.getSelectedFile());\n else\n {\n JOptionPane.showMessageDialog(rootPane, \"Not Working!\");\n }\n jPanel1.requestFocusInWindow();\n }",
"public void actionPerformed(ActionEvent e) {\n if (caller != null) {\n String url = fieldURL.getText();\n /* Calls a parsing task in a new thread. */\n caller.extUrlWSDLImport(url);\n }\n setVisible(false);\n dispose();\n }",
"public void browse() {\n btBrowse().push();\n }",
"public void clickOnSubmitButton() throws FileNotFoundException, IOException, ParseException, InterruptedException\n\t{\n\t\twaitForVisibility(sbmnit);\n\t\tsbmnit.click();\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsaveFile();\n\t\t\t}",
"public void launchTrainingAndCloseAsset()\n {\n \ttry {\n\t\t\tif (LaunchTrainingbtn.isDisplayed()) {\n\t\t\t\tclickOn(LaunchTrainingbtn);\n\t\t\t\twaitUntillFinishProcessSpinnerDisable();\n\t\t\t\tSet<String> windows = driver.getWindowHandles();\n\t\t\t\tIterator<String> iterator = windows.iterator();\n\t\t\t\tString parent = iterator.next();\n\t\t\t\tString child = iterator.next();\n\t\t\t\tgetDriver().switchTo().window(child);\n\t\t\t\tdriver.close();\n\t\t\t\tgetDriver().switchTo().window(parent);\n\t\t \treportInfo();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t}\n \t\n }",
"@FXML\n private void btnDownloadClick() {\n\n // Check the menu item to see if it should display a file choose or download the poster instantly\n if (isMenuItemChecked) {\n saveImageInstantly();\n } else {\n displayFileChooser();\n }\n }",
"@Override\r\n public void doAction(ActionEvent e)\r\n {\n NetworkUtil.openURL(NetworkUtil.WEBSITE_URL);\r\n }",
"@Override\n\tpublic void doSaveAs() {\n\t\tMessageDialog.openInformation(Display.getCurrent().getActiveShell(), null,\"doSaveAs\");\n\t}",
"private void viewPageClicked() {\n //--\n //-- WRITE YOUR CODE HERE!\n //--\n try{\n Desktop d = Desktop.getDesktop();\n d.browse(new URI(itemView.getItem().getURL()));\n }catch(Exception e){\n e.printStackTrace();\n }\n\n showMessage(\"View clicked!\");\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(e.getSource()==mniOpen){\r\n\t\t\t\t\topenFile();\r\n\t\t\t\t}\r\n\t\t\t\telse if(e.getSource()==mniSave){\r\n\t\t\t\t\tsaveDoc();\r\n\t\t\t\t}\r\n\t\t\t\telse if(e.getSource() == mniSaveAs){\r\n\t\t\t\t\tsaveDoc();\r\n\t\t\t\t}\r\n\t\t\t\telse if(e.getSource()==mniExit){\r\n\t\t\t\t\tclosewindows();\r\n\t\t\t\t}\r\n\t\t\t\telse if(e.getSource()==mniChangeBgColor){\r\n\t\t\t\t\tchangeBGColor();\r\n\t\t\t\t}\r\n\t\t\t\telse if(e.getSource()==mniChangeFontColor){\r\n\t\t\t\t\tchangeFontColor();\r\n\t\t\t\t}\r\n\t\t\t}",
"public void run(IAction action) {\n\t\tSaveAsDialog saveAsDialog = new SaveAsDialog(shell);\r\n\t\tsaveAsDialog.open();\r\n\t}",
"public void clickOnSaveIcon() {\n if(saveIcon.isDisplayed()) {\n\t waitAndClick(saveIcon);\n\t _normalWait(3000);\n\t }\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"view\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\tUtils.createComicFolder(getApplicationContext(),\n\t\t\t\t\t\tcomicList.get(currentSelector).getId());\n\t\t\t\tnew DownloadFileFromURL(MainActivity.this, comicList.get(\n\t\t\t\t\t\tcurrentSelector).getId(), 0).execute(\n\t\t\t\t\t\tcomicList.get(currentSelector).getContentUrl(),\n\t\t\t\t\t\tcomicList.get(currentSelector).getThumbUrl());\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcontrolleur.executeFirstWindow();\n\t\t\t\tdispose();\n\t\t\t}",
"public void handle(ActionEvent t) {\n\t\t\t\ttry {\n\t\t\t\t\tURL webURL = new URL(\"http://webdevelopmentdev.azurewebsites.net/\");\n\t\t\t\t\tDesktop.getDesktop().browse(webURL.toURI());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (URISyntaxException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"public void onSaveFile(){\n\n\t\t\n\t\tFormUtil.dlg.setText(\"Saving...\");\n\t\tFormUtil.dlg.show();\n\t\tGWT.runAsync(new RunAsyncCallback() {\n\t public void onFailure(Throwable caught) {}\n\t public void onSuccess() {\t \n\t\t\t\t//DeferredCommand.addCommand(new Command() {\n\t \t Scheduler scheduler = Scheduler.get();\n\t \t scheduler.scheduleDeferred(new Command() {\n\t\t\t\t\tpublic void execute() {\n\t\t\t\t\t FormDef form = controller.getSelectedForm();\t\t\t\t \t\t\t\t\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(form != null){\n\t\t\t\t\t\t\t\tsaveFile(false);\n\t\t\t\t\t\t\t\tFormUtil.dlg.hide();\n\t\t\n\t\t\t\t\t\t\t\tString fileName = \"filename\";\n\t\t\t\t\t\t\t\tfileName = form.getName();\n\t\t\t\t\t\t\t\tString xmlFormStr = FormHandler.writeToXML(form);\n\t\t\t\t\t\t\t\tSaveToFileDialog dlg = SaveToFileDialog.getInstnace(xmlFormStr, fileName);\n\t\t\t\t\t\t\t\tdlg.center();\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tFormUtil.dlg.hide();\n\t\t\t\t\t\t\t\tWindow.alert(\"No form to save\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch(Exception ex){\n\t\t\t\t\t\t\tFormUtil.displayException(ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t }\n\t\t});\n\t}",
"@Override\r\n\t\t\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t\t\trefreshFile(informationrequestRaiser.getInformationRequestId(),\r\n\t\t\t\t\t\t\t\tinformationrequestRaiser.getMainFolder());\r\n\t\t\t\t\t\tsaveInformationRequest(informationrequestRaiser, filepath);\r\n\t\t\t\t\t\tpp.getVpnlMain().removeFromParent();\r\n\t\t\t\t\t\tpp.getPopup().removeFromParent();\r\n\t\t\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(path.getAbsolutePath().startsWith(Constants.getAppDirectory())) {\n\t\t\t\t\tshowToast(\"Not implemented for Home dir yet\");\n\t\t\t\t\t//open file browser\n\t\t\t\t}\n\t\t\t\telse {\n//\t\t\t\t\tCopyTask copyTask = new CopyTask();\n//\t\t\t\t\tcopyTask.destination = Constants.getAppDirectory();\n//\t\t\t\t\tcopyTask.execute(selList);\n\t\t\t\t\t// Just copy the files to home directory\n\t\t\t\t\tfor(File sel:selList) {\n\t\t\t\t\t\tUtils.copy(sel, Constants.getAppDirectory());\n\t\t\t\t\t}\n\t\t\t\t\tshowToast(\"Import complete\");\n\t\t\t\t}\n\t\t\t\t// Clean up\n\t\t\t\tcancelAction();\n\t\t\t}",
"@Override\n\t\t\t\tpublic void onClickOk() {\n\t\t\t\t\tnew BrowserWebsiteAsyncTask().execute(url,Boolean.FALSE.toString());\n\t\t\t\t}",
"public void openFileDialog() {\n\tswitch(buttonAction) {\n\t case SELECT_FILES:\n openFileDialog(fileUpload, true);\n break;\n\t case SELECT_FILE:\n default:\n openFileDialog(fileUpload, false);\n break;\n\t}\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tString url = \"file:///C:/Users/J1637009/Desktop/aaaaa.pdf\";\n\t\t\t\tString url2 = \"file:///N:/AE/2017/l[/JPnVAEG[WFgl[/doubLeiNGCeBuEj_18.pdf\";\n\t\t\t\t\n\t\t\t\t\n\t\t try {\n\t\t\t\t\tjava.awt.Desktop.getDesktop().browse(java.net.URI.create(url2));\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"public void run() {\r\n\t\tif (window != null) {\r\n\t\t\tIEditorPart part = window.getActivePage().getActiveEditor();\r\n\t\t\t\r\n\t\t\tboolean write = false;\r\n\t\t\tGraphEditorInput input = null;\r\n\t\t\tString defaultFileName = sdf.format(new Date()) + getDefaultExtension();\r\n\t\t\tif (part != null) {\r\n\t\t\t\tinput = (GraphEditorInput) part.getEditorInput();\r\n\t\t\t\twrite = input != null;\r\n\t\t\t\tif (!GraphEditorInput.LIVE_EDITOR_NAME.equals(part.getTitle())) {\r\n\t\t\t\t\tdefaultFileName = part.getTitle();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tFile f = chooseSaveFile(window.getShell(), defaultFileName);\r\n\t\t\t\r\n\t\t\tif (f != null) {\r\n\t\t\t\tif (write) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tlog.debug(\"writing file..\");\r\n\t\t\t\t\t\tinput.getGXLDocument().write(f);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (Exception e) {\r\n\t\t\t\t\t\tMessageDialog.openError(window.getShell(), \"Error\", \"Error saving to file:\" + e.getMessage());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tMessageDialog.openInformation(window.getShell(), \"File saving failed!\",\r\n\t\t\t\t\t\t\t\"Could not save the file, editor contains no data!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void viewPageClicked(ActionEvent event) {\n\n Item tempItem = new Item();\n String itemURL = tempItem.itemURL;\n Desktop dk = Desktop.getDesktop();\n try{\n dk.browse(new java.net.URI(itemURL));\n }catch(IOException | URISyntaxException e){\n System.out.println(\"The URL on file is invalid.\");\n }\n\n showMessage(\"Visiting Item Web Page\");\n\n }",
"public void onSaveButtonClick(ActionEvent e){\n\t\tsaveFile(false);\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (e.getSource()==mniOpen){\n\t\t\t\t\tOpenFile();\n\t\t\t\t}else if(e.getSource()==mniExit){\n\t\t\t\t\tcloseApplication();\n\t\t\t\t}else if(e.getSource()==mniChangeBgColor){\n\t\t\t\t\tchangeBGColor();\n\t\t\t\t}else if(e.getSource()==mniChangeFontColor){\n\t\t\t\t\tChangeFontColor();\n\t\t\t\t}else if(e.getSource()==mniSaveAs){\n\t\t\t\t\tsaveAs();\n\t\t\t\t}else if(e.getSource()==mniSave){\n\t\t\t\t\tsave();\n\t\t\t\t}\n\t\t\t}",
"public void actionPerformed(java.awt.event.ActionEvent evt) {\n if (!askSave()) {\n return;\n }\n //loop until user choose valid file\n while (true) {\n int result = chooser.showOpenDialog(form);\n //check if user chooser approve option\n if (result == JFileChooser.APPROVE_OPTION) {\n File openFile = chooser.getSelectedFile();\n //check if open file is exist\n if (openFile.exists()) {\n file = openFile;\n text.setText(\"\");\n setSaveTitle(openFile.getName());\n writeToTextArea(openFile);\n saved = true;\n break;\n } else {\n JOptionPane.showMessageDialog(form, \"File not found\", \"Open\", JOptionPane.OK_OPTION);\n }\n } else {\n break;\n }\n\n }\n }",
"@When(\"The User clicks on Create Universal Image button and Enters valid data in the popup and Clicks on Submit Button\")\n\t\tpublic void ee() throws InterruptedException, FileNotFoundException, IOException {\n\t homePage.UIaddpage();\n\t homePage.UTCreate();\n\t // homePage.UIaddsbmitpage();\n\t\t}",
"@Override\n\tpublic void save() throws Exception {\n\t\tVoodooUtils.focusFrame(\"bwc-frame\");\n\t\tgetControl(\"save\").click();\n\t\tVoodooUtils.waitForReady();\n\t\tVoodooUtils.focusDefault();\n\t}",
"public abstract void executeRunButton();",
"@When(\"The User clicks on View button of any specific Universal Images record\")\n\tpublic void b2() throws InterruptedException, FileNotFoundException, IOException {\n homePage.UIviewpage();\n\t}",
"private void activateListeners(){\n\t\t//If user clicked Set Path, then open the file chooser so the user can choose their own path\n\t\tsetPath.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tshowFileChooser();\n\t\t\t}\n\t\t});\n\t\t\n\t\t//If the user clicked Show Hidden Windows this window (main window) will find all child windows and show them\n\t\tshowHidden.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tWindow[] windows = JFrame.getWindows();\n\t\t\t\tfor(Window w : windows){\n\t\t\t\t\tif(w.isEnabled() && w instanceof DownloadingWindow){\n\t\t\t\t\t\tw.setVisible(true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\t//If the user clicked the Download button then the download process will start\n\t\tdownload.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\t//If downloadPath is blank, then set the default path\n\t\t\t\tif(downloadPath.equals(\"\")){\n\t\t\t\t\tsetDefaultPath();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Obtain the text from the imgurURL text field\n\t\t\t\timgurURL = \"https://www.imgur.com/a/\" + imgurURLField.getText().trim();\n\t\t\t\t\n\t\t\t\t//Match the imgurURL to regex\n\t\t\t\tPattern p = Pattern.compile(validURL);\n\t\t\t\tMatcher m = p.matcher(imgurURL);\n\t\t\t\t\n\t\t\t\t//If valid URL\n\t\t\t\tif (m.matches()){\n\t\t\t\t\t//Disable fileType while download process sets up so user cannot interfere\n\t\t\t\t\tfileType.setEnabled(false);\n\t\t\t\t\t//Use the swing event dispatcher to create a new Downloading window which will\n\t\t\t\t\t//execute any download processes\n\t\t\t\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tDownloadingWindow frame = new DownloadingWindow(imgurURL, downloadPath);\n\t\t\t\t\t\t\t\tframe.setVisible(true);\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\t//If invalid URL, show warning message and return to main window\n\t\t\t\telse{\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Invalid URL has been entered.\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\tfileType.setSelectedItem(0);\n\t\t\t\t}\n\t\t\t\t//Reset the text\n\t\t\t\timgurURLField.setText(\"\");\n\t\t\t}\n\t\t});\n\t\t\n\t\t//If user presses \"Enter\" Key on the keyboard, then activate download button\n\t\timgurURLField.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tdownload.doClick();\n\t\t\t}\n\t\t});\n\t\t\n\t\t//If help button was pressed from the menu, then display the help window\n\t\thelp.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\ttry {\n\t\t\t\t\tHelpWindow dialog = new HelpWindow();\n\t\t\t\t\tdialog.setModal(true);\n\t\t\t\t\tdialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);\n\t\t\t\t\tdialog.setVisible(true);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\t//If about button was pressed from the menu, then display the about window\n\t\tabout.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\ttry {\n\t\t\t\t\tAboutWindow dialog = new AboutWindow();\n\t\t\t\t\tdialog.setModal(true);\n\t\t\t\t\tdialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);\n\t\t\t\t\tdialog.setVisible(true);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\t//If user tries to exit, first confirm to prevent any unwanted activity\n//\t\taddWindowListener(new WindowAdapter() {\n//\t\t\tpublic void windowClosing(WindowEvent e) {\n//\t\t \tint confirmed = JOptionPane.showConfirmDialog(null, \"Are you sure you want to exit? \\nAny opened windows will continue downloading.\", \"\", JOptionPane.YES_NO_OPTION);\n//\t\t\t if (confirmed == JOptionPane.YES_OPTION) {\n//\t\t\t \tsetVisible(false);\n//\t\t\t \tdispose();\n//\t\t\t }\n//\t\t\t}\n//\t\t});\n\t}",
"void openFromFileClicked() {\n\t\tif (GeoGebraJSNativeBridge.get() != null) {\n\t\t\tGeoGebraJSNativeBridge.get().openFromFileClickedNative();\n\t\t}\n\t}",
"private void jButton1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton1MouseClicked\n \n SimpleDateFormat df = new SimpleDateFormat(\"yyyyMMdd\");\n String fileNameBase = \n System.getProperty(\"file.separator\") + jComboBox1.getSelectedItem().toString() + separator + df.format(new Date());\n System.out.println(\"Filename \" + fileNameBase); \n \n try {\n \n //inherit env from this launcher, \n //be in the correct working dir first!\n //\n //text editor:\n if(jCheckBox1.isSelected()) {\n Runtime.getRuntime().exec(app1 + \" \"+ workingDir + fileNameBase + \".txt\", null, workingDir); \n }\n //mp3 player:\n if(jCheckBox2.isSelected()) {\n Thread.sleep(timeout); \n Runtime.getRuntime().exec(app2, null, workingDir);\n }\n //Peli.jar:\n if(jCheckBox3.isSelected()) {\n Thread.sleep(timeout);\n Runtime.getRuntime().exec(app3 + \" \"+ workingDir + fileNameBase + \".tnmt\", null, workingDir);\n }\n //Irc-bot:\n if(jCheckBox4.isSelected()) {\n Thread.sleep(timeout);\n //precreate file so ircbot will work, should be non-destructive\n new File(workingDir + fileNameBase + \".txt\").createNewFile();\n new File(workingDir + fileNameBase + \".tnmt\").createNewFile();\n Runtime.getRuntime().exec(app4 + \" \"+ workingDir + fileNameBase + \".tnmt\", null, workingDir); \n }\n } catch (Exception e) {\n System.err.println(\"Problem while launching an application:\");\n e.printStackTrace(); \n }\n \n System.exit(0);\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tinfomation.drawDownload();\n\t\t\t}",
"@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\tJFileChooser jc=new JFileChooser();\n\t\t\t\t\tjc.setFileFilter(new FileNameExtensionFilter(\".xml\", \".xml\"));\n\t\t\t\t\tjc.setFileFilter(new FileNameExtensionFilter(\".json\", \".json\"));\n\t\t\t\t\tint resp=jc.showSaveDialog(null);\n\t\t\t\t\tString url=\"\";\n\t\t\t\t\tString name=\"\";\n\t\t\t\t\tif(resp==jc.APPROVE_OPTION){\n\t\t\t\t\t\tFile file=jc.getSelectedFile();\n\t\t\t\t\t\turl=file.getPath()+jc.getFileFilter().getDescription();\n\t\t\t\t\t\tname=file.getName()+jc.getFileFilter().getDescription();\n\t\t\t\t\tif(name.charAt(name.length()-1)=='l'){\n\t\t\t\t\t\tSaveAndLoadXml.save(url);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnew JasonSave().saveJson(url);\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"public void actionPerformed(ActionEvent event) {\n if (!fileFromWebsite.isEnabled())\n unSelectRightButtons();\n loadDataFromSource(fileFromWebsite);\n }",
"@Override\n public void onClick(View view) {\n if (view == buttonChoose) {\n showFileChooser();\n }\n //if the clicked button is upload\n else if (view == buttonUpload)\n {\n\n\n\n uploadFile();\n\n\n }\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tclickButtonToDownloadFile();\n\t\t\t\t\n\t\t\t}",
"@Override\r\n public void doAction(ActionEvent e)\r\n {\n NetworkUtil.openURL(NetworkUtil.WEBSITE_URL + \"support\");\r\n }",
"public void pressOnUploadBtn() throws IOException {\n FileChooser fileChooser = new FileChooser();\n fileChooser.setTitle(\"Open File\");\n File file = fileChooser.showOpenDialog(this);\n uploadFile(file);\n }",
"public void performAction(ActionEvent e) {\n if (getProjectController() != null && !checkSaveOnClose()) {\n return;\n }\n\n File f = null;\n if (e.getSource() instanceof FileMenuItem) {\n FileMenuItem menu = (FileMenuItem) e.getSource();\n f = menu.getFile();\n }\n else if(e.getSource() instanceof File) {\n f = (File) e.getSource();\n }\n\n if (f == null) {\n try {\n // Get the project file name (always cayenne.xml)\n f = fileChooser.openProjectFile(Application.getFrame());\n }\n catch (Exception ex) {\n logObj.warn(\"Error loading project file.\", ex);\n }\n }\n\n if (f != null) {\n // by now if the project is unsaved, this has been a user choice...\n if (getProjectController() != null && !closeProject(false)) {\n return;\n }\n\n openProject(f);\n }\n }",
"public void clickOnSaveChangesButton() {\r\n\t\tprint(\"Click on Save Changes Button\");\r\n\t\tlocator = Locator.MyTrader.Save_Changes_Button.value;\r\n\t\tclickOn(locator);\r\n\t}",
"public void clickOnSaveButton() {\r\n\t\tsafeJavaScriptClick(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"Save\"));\r\n\t}",
"public void Click_Done()\r\n\t{\r\n\t\tExplicitWait(Specialdone);\r\n\t\tif (Specialdone.isDisplayed()) \r\n\t\t{\r\n\t\t\tJavascriptexecutor(Specialdone);\r\n\t\t\tExplicitWait(Checkavailability);\r\n\t\t\t//System.out.println(\"Clicked on Special Rate plan done button \");\r\n\t\t\tlogger.info(\"Clicked on Special Rate plan done button\");\r\n\t\t\ttest.log(Status.INFO, \"Clicked on Special Rate plan done button\");\r\n\r\n\t\t} else {\r\n\t\t\t//System.out.println(\"Special Rate plan done button not found\");\r\n\t\t\tlogger.error(\"Special Rate plan done button not found\");\r\n\t\t\ttest.log(Status.FAIL, \"Special Rate plan done button not found\");\r\n\r\n\t\t}\r\n\t}",
"public void onOpen() {\n\t\t\n\t\t//if things are dirty, ask if they're sure they want to do this\n\t\tif(FormDesignerController.getIsDirty())\n\t\t{\n\t\t\t//if the use says no, then bounce\n\t\t\tif(!Window.confirm(LocaleText.get(\"newFormConfirm\")))\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\txformsWidget.hideWindow();\n\t\tFormUtil.dlg.setText(\"Opening...\");\n\t\tFormUtil.dlg.show();\n\n\n\t\tScheduler.get().scheduleDeferred(new Command() {\n\t\t\tpublic void execute() {\n\t\t\t\ttry {\n\t\t\t\t\t//openFile();\n\t\t\t\t\txformsWidget.setXform(\"\");\n\t\t\t\t\txformsWidget.showOpenButton(true);\n\t\t\t\t\txformsWidget.showWindow();\n\t\t\t\t\tFormUtil.dlg.hide();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tFormUtil.displayException(ex);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"public void actionPerformed(ActionEvent arg0) {\n\t\t\t\tif(downloadPath.equals(\"\")){\n\t\t\t\t\tsetDefaultPath();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Obtain the text from the imgurURL text field\n\t\t\t\timgurURL = \"https://www.imgur.com/a/\" + imgurURLField.getText().trim();\n\t\t\t\t\n\t\t\t\t//Match the imgurURL to regex\n\t\t\t\tPattern p = Pattern.compile(validURL);\n\t\t\t\tMatcher m = p.matcher(imgurURL);\n\t\t\t\t\n\t\t\t\t//If valid URL\n\t\t\t\tif (m.matches()){\n\t\t\t\t\t//Disable fileType while download process sets up so user cannot interfere\n\t\t\t\t\tfileType.setEnabled(false);\n\t\t\t\t\t//Use the swing event dispatcher to create a new Downloading window which will\n\t\t\t\t\t//execute any download processes\n\t\t\t\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tDownloadingWindow frame = new DownloadingWindow(imgurURL, downloadPath);\n\t\t\t\t\t\t\t\tframe.setVisible(true);\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\t//If invalid URL, show warning message and return to main window\n\t\t\t\telse{\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Invalid URL has been entered.\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\tfileType.setSelectedItem(0);\n\t\t\t\t}\n\t\t\t\t//Reset the text\n\t\t\t\timgurURLField.setText(\"\");\n\t\t\t}",
"@Override\n\t\t\t\tpublic void notifyOnRightButtonClick(Button b)\n\t\t\t\t{\n\t\t\t\t\tfilesBrowser.obtainShowDialog().hide();\n\t\t\t\t}",
"@FXML\n\tvoid downloadBtnClicked(ActionEvent event) {\n\t\tFileChooser fileChooser = new FileChooser();\n\n\t\t// Set extension filter for docx files only\n\t\tFileChooser.ExtensionFilter extFilter = new FileChooser.ExtensionFilter(\"DOCX files (*.docx)\", \"*.docx\");\n\t\tfileChooser.getExtensionFilters().add(extFilter);\n\n\t\t// Show save file dialog\n\t\tStage window = (Stage) ((Node) event.getSource()).getScene().getWindow();\n\t\tFile theFile = fileChooser.showSaveDialog(window);\n\t\tFileOutputStream fos = null;\n\t\ttry {\n\t\t\tfos = new FileOutputStream(theFile);\n\t\t} catch (FileNotFoundException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} // get path\n\t\tBufferedOutputStream bos = new BufferedOutputStream(fos);\n\t\ttry {\n\t\t\tbos.write(examFile.getMybytearray(), 0, examFile.getSize());\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry {\n\t\t\tbos.flush();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry {\n\t\t\tfos.flush();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void openPathButtonActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_openPathButtonActionPerformed\n\tFile savePath = PlatypusGUI.getInstance().getLastSavePath();\n\tif (savePath.isDirectory()) {\n\t try {\n\t\tDesktop.getDesktop().open(savePath);\n\t } catch (IOException ex) {\n\t\tex.printStackTrace();\n\t }\n\t}\n }",
"@When(\"The User clicks on Edit button and modifies data in the Edit popup and Clicks on Submit Button\")\n\tpublic void bbb() throws InterruptedException, FileNotFoundException, IOException {\n homePage.UIeditRecord();\n // homePage.UIaddsbmitpage();\n\t}",
"private void setButtonActions() {\n\t\tbrowseButton.setAction(new AbstractAction(\"Browse\") {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint result = fileChooser.showDialog(ImportAnalysesView.this,\n\t\t\t\t\t\t\"Import\");\n\t\t\t\tif (result == JFileChooser.APPROVE_OPTION) {\n\t\t\t\t\timportFileField.setText(fileChooser.getSelectedFile()\n\t\t\t\t\t\t\t.getAbsolutePath());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\timportButton.setAction(new AbstractAction(\"Import\") {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\timportAnalyses();\n\t\t\t}\n\t\t});\n\t\tloadButton.setAction(new AbstractAction(\"Load\") {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tloadAnalyses();\n\t\t\t}\n\t\t});\n\t\timportButton.getAction().setEnabled(false);\n\t\tloadButton.getAction().setEnabled(false);\n\t\tpathTextBoxChanged();\n\t}",
"@Override\n public void execute () {\n if (Desktop.isDesktopSupported()) {\n try {\n Desktop.getDesktop().browse(new URI(HELP_URL));\n }\n catch (Exception e) {\n\n }\n }\n }",
"public static void executeBrowser() throws Exception{\n\t\tinvokeMyBrowser();\n\t}",
"@Override\n\t public void actionPerformed(ActionEvent arg0) {\n\t\t JFileChooser j = new JFileChooser(FileSystemView.getFileSystemView().getHomeDirectory()); \n\t\t\n\t\t // invoke the showsOpenDialog function to show the save dialog \n\t\t int r = j.showOpenDialog(null); \n\t\t\n\t\t // if the user selects a file \n\t\t if (r == JFileChooser.APPROVE_OPTION) \n\t\t\n\t\t { \n\t\t // set the label to the path of the selected file \n\t\t textfield.setText(j.getSelectedFile().getAbsolutePath()); \n\t\t\n\t\t } \n\t\t // if the user cancelled the operation \n\t\t \n\t\t //\n\t\t \n\t\t }",
"public void actionPerformed(ActionEvent e) {\n \t \tcheckSaveOnExit();\n \t }",
"void open() throws FileNotFoundException, IOException{\r\n \r\n //Call setup to get global settings and check if this is the first run. \r\n File settings = new File(settingsPath);\r\n if (!settings.isDirectory()){\r\n //then this is the first run...call setup\r\n Setup firstrun = new Setup(this, ax);\r\n }else{\r\n //Get the settings from the file, if the file has dissappeared since\r\n //first setup, recreate.\r\n InputStream in = null;\r\n try {\r\n \r\n File sFile = new File(\"c:\\\\AE\\\\settings\\\\setting.txt\");\r\n if (!sFile.exists()){\r\n System.out.println(\"Creating Settings File with defaults.\");\r\n sFile.createNewFile();\r\n Writer w = new FileWriter(sFile);\r\n w.append(\"Password:password:Homepage:www.google.com:Runs:1\\n\");\r\n w.close();\r\n \r\n }\r\n in = new FileInputStream(\"c:/ae/settings/setting.txt\");\r\n } catch (FileNotFoundException fileNotFoundException) {\r\n System.out.println(\"File Not Found!\");\r\n }\r\n \r\n Scanner scanner = new Scanner(in);\r\n \r\n while (scanner.hasNext()){ \r\n \r\n String[] Settings = scanner.nextLine().split(\":\");\r\n password = Settings[1];\r\n setPassword(password);\r\n \r\n String homepage = Settings[3];\r\n System.out.println(homepage);\r\n setHome(homepage);\r\n \r\n in.close();\r\n \r\n }\r\n }\r\n //Ask for password until the correct password is entered.\r\n \r\n Password pw = new Password();\r\n \r\n do {pw.showDialog();}\r\n while (!(pw.pass.getText() == null ? password == null : pw.pass.getText().equals(password)));\r\n \r\n \r\n //Add the browser into the browser Pane\r\n \r\n \r\n SwingUtilities.invokeLater(new Runnable() {\r\n\r\n @Override\r\n public void run() {\r\n \r\n ax.browserPane.add(\"Browser\", ax.browser.getComponent());\r\n \r\n \r\n }\r\n }); \r\n \r\n ///////////////////////////////////\r\n //Action listeners start here. //\r\n ///////////////////////////////////\r\n \r\n /**\r\n * Get the current page status and display in the statusLabel\r\n */\r\n ax.browser.addStatusListener(new StatusListener() {\r\n \r\n @Override\r\n public void statusChanged(final StatusChangedEvent event) {\r\n \r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.statusLabel.setText(event.getStatusText());\r\n }\r\n });\r\n \r\n }\r\n });\r\n \r\n //Action Listener for homeButton\r\n ax.homeButton.addActionListener(new ActionListener(){\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent ae) {\r\n try {\r\n ax.browser.navigate(getHome());\r\n } catch (IOException ex) {\r\n Logger.getLogger(AxBrowser.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n ax.browser.waitReady();\r\n try {\r\n tokenString = (\"<Action Home>::\" + getHome() + delim);\r\n } catch (IOException ex) {\r\n Logger.getLogger(AxBrowser.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.consoleTextArea.setText(tokenString);\r\n }\r\n });\r\n \r\n \r\n } });\r\n \r\n //Action Listener Go to a new http web address\r\n ax.goButton.addActionListener(new ActionListener(){\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent ae) {\r\n \r\n \r\n ax.browser.navigate( ax.addressBar.getText());\r\n ax.browser.waitReady();\r\n tokenString = (\"<Action Navigate>::\" +ax.browser.getCurrentLocation() + delim);\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.consoleTextArea.setText(tokenString);\r\n }\r\n });\r\n \r\n \r\n }});\r\n \r\n\r\n \r\n \r\n //Browser tab and enter listener\r\n \r\n ax.browser.getComponent().addKeyListener(new KeyListener() {\r\n \r\n @Override\r\n public void keyTyped(KeyEvent ke) {\r\n \r\n }\r\n @Override\r\n public void keyPressed(KeyEvent ke) {\r\n }\r\n\r\n @Override\r\n public void keyReleased(KeyEvent ke) {{\r\n if(ke.getKeyCode() == java.awt.event.KeyEvent.VK_ENTER){ \r\n \r\n tokenString = (\"<Action Key>::\" + \"Enter\" + delim);\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.consoleTextArea.setText(tokenString);\r\n }\r\n });\r\n } {\r\n if(ke.getKeyCode() == java.awt.event.KeyEvent.VK_TAB){ \r\n \r\n tokenString = (\"<Action Key>::\" + \"Tab\" + delim);\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.consoleTextArea.setText(tokenString);\r\n }\r\n });\r\n }\r\n }\r\n \r\n }}\r\n });\r\n\r\n \r\n //Address Bar Enter Key listener, same as above but with Enter Key\r\n ax.addressBar.addKeyListener(new java.awt.event.KeyAdapter() {\r\n \r\n @Override\r\n public void keyPressed(java.awt.event.KeyEvent evt) {\r\n if(evt.getKeyCode() == java.awt.event.KeyEvent.VK_ENTER){ \r\n \r\n ax.browser.navigate( ax.addressBar.getText());\r\n ax.browser.waitReady(); \r\n \r\n tokenString = (\"<Action Navigate>::\" +ax.browser.getCurrentLocation() + delim);\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.consoleTextArea.setText(tokenString);\r\n }\r\n });\r\n \r\n }\r\n }});\r\n \r\n //Search Bar Enter Key listener\r\n ax.searchField.addKeyListener(new java.awt.event.KeyAdapter() {\r\n @Override\r\n public void keyPressed(java.awt.event.KeyEvent evt) {\r\n if(evt.getKeyCode() == java.awt.event.KeyEvent.VK_ENTER){\r\n \r\n ax.browser.navigate(\"http://www.google.com/search?q=\" + ax.searchField.getText());\r\n ax.browser.waitReady();\r\n tokenString = (\"<Action Google_Search>::\" +ax.browser.getCurrentLocation() + delim);\r\n \r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.consoleTextArea.setText(tokenString);\r\n }\r\n });\r\n \r\n \r\n }\r\n }});\r\n \r\n //Action Listener Go Back\r\n ax.backButton.addActionListener(new ActionListener(){\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent ae) {\r\n \r\n ax.browser.goBack();\r\n ax.browser.waitReady();\r\n tokenString = (\"<Action Back>::\" +ax.browser.getCurrentLocation() + delim);\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.consoleTextArea.setText(tokenString);\r\n }\r\n });\r\n \r\n \r\n \r\n \r\n \r\n \r\n }});\r\n \r\n //Action go forward\r\n ax.forwardButton.addActionListener(new ActionListener(){\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent ae) {\r\n \r\n ax.browser.goForward();\r\n ax.browser.waitReady();\r\n tokenString = (\"<Action Forward>::\" + ax.browser.getCurrentLocation() + delim);\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.consoleTextArea.setText(tokenString);\r\n }\r\n }); \r\n \r\n }});\r\n \r\n /*Now we need to update the address bar when we go to a new page\r\n * \r\n * Change the navigation text, and most importantly, process clicks \r\n */\r\n \r\n ax.browser.addNavigationListener(new NavigationListener() {\r\n @Override\r\n public void navigationStarted(final NavigationEvent event) {\r\n documentElement.removeEventListener(\"click\", clickEventListener, false); \r\n documentElement.removeEventListener(\"change\", changeEventListener, false); \r\n documentElement.removeEventListener(\"focusin\", inEventListener, false); \r\n documentElement.removeEventListener(\"focusout\", outEventListener, false); \r\n \r\n }\r\n\r\n @Override\r\n public void navigationFinished(NavigationFinishedEvent event) {\r\n \r\n \r\n ax.addressBar.setText(event.getUrl());\r\n \r\n //set the webpage title on the tab\r\n //set the title in its own swing thread\r\n String checkTitle =ax.browser.getTitle();\r\n if (checkTitle.length() > 40){\r\n for (int i = 0; i<=checkTitle.length(); ++i){\r\n checkTitle = checkTitle.substring(0, 30);\r\n }\r\n \r\n \r\n }\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.browserPane.setTitleAt(0,ax.browser.getTitle());\r\n }\r\n });\r\n \r\n \r\n \r\n document = ax.browser.getDocument();\r\n documentElement = (DOMElement) document.getDocumentElement();\r\n EventListener init = new EventListener() {\r\n\r\n @Override\r\n public void handleEvent(Event evt) {\r\n HTMLElement t = (HTMLElement) evt.getTarget();\r\n \r\n \r\n documentElement.addEventListener(\"change\", changeEventListener, captureInput);\r\n \r\n \r\n \r\n \r\n }\r\n };\r\n \r\n documentElement.addEventListener(\"load\",init,false);\r\n \r\n ((EventTarget) documentElement).addEventListener(\"click\", new EventListener() {\r\n public void handleEvent(Event evt) {\r\n HTMLElement t = (HTMLElement) evt.getTarget();\r\n System.out.println(\"Type = \" + t.getNodeName());\r\n \r\n htmlEvent.processThis(ax, t, documentElement);\r\n if (\"textarea\".equals(t.getNodeName().toLowerCase())){\r\n documentElement.addEventListener(\"change\", changeEventListener, captureInput);\r\n }\r\n \r\n }\r\n}, false);\r\n \r\n //Listener for element clicks\r\n \r\n clickEventListener = new EventListener() {\r\n\r\n @Override\r\n public void handleEvent(Event evt) {\r\n \r\n \r\n org.w3c.dom.events.MouseEvent event = (org.w3c.dom.events.MouseEvent) evt;\r\n \r\n HTMLElement target = (HTMLElement) event.getTarget();\r\n \r\n String tagName = target.getNodeName().toLowerCase();\r\n \r\n if (tagName.equals(\"input\")){\r\n documentElement.addEventListener(\"keyup\", keyEventListener, false);\r\n \r\n }\r\n \r\n else {\r\n htmlEvent.processThis(ax, target, documentElement);\r\n }\r\n \r\n \r\n \r\n }\r\n };\r\n \r\n \r\n //Looks for changes in text. \r\n keyEventListener = new EventListener() {\r\n\r\n @Override\r\n public void handleEvent(Event evt) {\r\n \r\n org.w3c.dom.events.Event event = (org.w3c.dom.events.Event) evt;\r\n HTMLElement target = (HTMLElement) event.getTarget();\r\n System.out.println(\"target value: \"+ event.getType()); \r\n \r\n htmlEvent.processThis(ax, target, documentElement);\r\n \r\n \r\n }\r\n };\r\n changeEventListener = new EventListener() {\r\n\r\n @Override\r\n public void handleEvent(Event evt) {\r\n HTMLElement t = (HTMLElement) evt.getTarget();\r\n System.out.println(\"Type = \" + t.getNodeName());\r\n \r\n htmlEvent.processThis(ax, t, documentElement);\r\n \r\n \r\n \r\n }\r\n };\r\n \r\n inEventListener = new EventListener() {\r\n\r\n @Override\r\n public void handleEvent(Event evt) {\r\n \r\n documentElement.addEventListener(\"click\", clickEventListener, false);\r\n \r\n }\r\n };\r\n\r\n documentElement.addEventListener(\"focusin\", inEventListener, false);\r\n\r\n \r\n \r\n outEventListener = new EventListener() {\r\n\r\n @Override\r\n public void handleEvent(Event evt) {\r\n \r\n //Remove Listeners on focus out.\r\n System.out.println(\"Focused out, removing click and change listeners\");\r\n documentElement.removeEventListener(\"change\", changeEventListener, false);\r\n documentElement.removeEventListener(\"click\", clickEventListener, false);\r\n \r\n }\r\n };\r\n\r\n documentElement.addEventListener(\"focusout\", outEventListener, false);\r\n\r\n\r\n \r\n \r\n }\r\n });\r\n \r\n //Navigate to our home screen and wait for it to be ready.\r\n ax.browser.navigate(getHome());\r\n ax.browser.waitReady();\r\n ax.conscriptPane.setVisible(false);\r\n \r\n //Get the history.\r\n /*\r\n HistoryListModel hlm = new HistoryListModel(ax);\r\n ax.HistoryCombo.setModel(hlm);\r\n */\r\n //Change the tab text to current page\r\n SwingUtilities.invokeLater(new Runnable() {\r\n \r\n @Override\r\n public void run() {\r\n \r\n //Setup the ax.browser tab, html tab and addressbar\r\n ax.browserPane.setTitleAt(0,ax.browser.getTitle());\r\n String stringToken1 = null; \r\n try {\r\n stringToken1 = (\"<Navigate Home>::\" + getHome());\r\n } catch (IOException ex) {\r\n Logger.getLogger(AxBrowser.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n ax.consoleTextArea.setText(stringToken1);\r\n //Put the current html address in the addressbar\r\n ax.addressBar.setText(ax.browser.getCurrentLocation());\r\n \r\n }\r\n });\r\n \r\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tTestDownload();\r\n\t\t\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tString cmd = e.getActionCommand();\n\t\tFile file;\n\t\tfile = jfc.getSelectedFile();\n\t\tswitch (cmd) {\n\t\tcase \"저장\":\n\t\t\tsaveFile();\n\t\t\tbreak;\n\t\tcase \"열기\":\n\t\t\t\n\t\t\topenFile();\n\t\t\t\n\t\t\tbreak;\n\t\tcase \"새파일\":\n\t\t\tjta.setText(\"\");\n\t\t\tbreak;\n\t\tcase \"종료\":\n\t\t\tSystem.exit(0);\n\t\t\tbreak;\n\t\t}\n\t\t/*if(cmd.equals(\"저장\"))\n\t\t{\n\t\ttry {\n\t\t\tFileWriter fw = new FileWriter(\"c:/output/notepad.txt\");\n\t\t\tfw.write(jta.getText());\n\t\t\tfw.close();\n\t\t\tSystem.out.println(\"파일을 생성하였습니다\");\n\t\t} catch (Exception e2) {\n\t\t\t// TODO: handle exception\n\t\t\tSystem.out.println(e2.getMessage());\n\t\t}\n\t\t}\n\t\t*/\n\t}",
"public void execute() {\n try {\n final DemoManagerWindow window = new DemoManagerWindow();\n window.setResizable(false);\n window.setDemoManager(this);\n window.setDemoProvider(this);\n window.setVisibleAndWait();\n } catch (final Throwable t) {\n throw new BrowserException(\"\", t);\n }\n }",
"protected void execute() { \t\n// \tboolean toggle=true;\n// \tboolean grab = false;\n// \tif(toggle&&button.get()) {//execute once per button push\n// \t\ttoggle=false;//prevents code from being called again until button is released and pressed again\n// \t\tif(grab){\n// \t\t\tgrab=false;\n// \t\t\tclaw.open();\n// \t\t}else {\n// \t\t\tgrab=true;\n// \t\t\tclaw.close();\n// \t\t}\n// \t}else if(!button.get()) {\n// \t\ttoggle=true;//button has been released\n// \t}\n \tclaw.open();\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tint returnVal = fileChooser.showOpenDialog(panel);\n\n\t\t\t\tif (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\t\t\tFile file = fileChooser.getSelectedFile();\n\n\t\t\t\t\tif (communicationsHandler instanceof Server) {\n\t\t\t\t\t\tFileUserSelectorUI fileUI = new FileUserSelectorUI(file, myMessagePane.getText(),\n\t\t\t\t\t\t\t\tcommunicationsHandler);\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// This is a client, send file request to server.\n\t\t\t\t\t\tcommunicationsHandler.sendFileRequest(file, myMessagePane.getText(), null);\n\t\t\t\t\t}\n\n\t\t\t\t\tmyMessagePane.setText(\"\");\n\t\t\t\t}\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tconfirm_button.setEnabled(false);\n\t\t\t\tthis.startAppium();\n\t\t\t\twhile(!isStarted()){\n\t\t\t\t\tthis.startAppium();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tMyFrame.username=u_field.getText();\n\t\t\t\tMyFrame.password=p_field.getText();\n\t\t\t\tMyFrame.time=(String) year_box.getSelectedItem()+\"-\"+month_box.getSelectedItem()+\"-\"+day_box.getSelectedItem()+\"_\"+hour_box.getSelectedItem()+\":\"+minute_box.getSelectedItem();\n\t\t\t\tHello531.initUser(MyFrame.username, MyFrame.password);\n\t\t\t\tSystem.out.println(MyFrame.time);\n\t\t\t\tconfirm_panel();\n\t\t\t\tnew Call().start(time);\n\t\t\t\t\n\t\t\t}",
"public void actionPerformed(ActionEvent e) \n\t\t\t\t\t{\n\t\t\t\t\t\tcModel.saveData();\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}",
"void startScript() {\n\n\t\tif (UIHANDLER_WS_NAME.equalsIgnoreCase((String) core.readDataPool(\n\t\t\t\tDP_ACTUAL_UIHANDLER, preferences.getString(\n\t\t\t\t\t\tPropName_UIHander, UIHANDLER_WS_NAME)))) {\n\n\t\t\t// startButtonLabel.setIcon(resourceMap.getIcon(\"startButtonLabel.icon\"));\n\t\t\tcore.getSystemIF().openBrowser();\n\t\t} else {\n\t\t\tArchive ActiveArchive = (Archive) mSourceSpinner.getSelectedItem();\n\t\t\tif (ActiveArchive == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tpreferences\n\t\t\t\t\t.edit()\n\t\t\t\t\t.putString(PropName_ScriptName,\n\t\t\t\t\t\t\tActiveArchive.getFileName()).commit();\n\t\t\tcore.writeDataPool(DP_ACTIVE_ARCHIVE, ActiveArchive);\n\t\t\tcore.startScriptArchive(ActiveArchive);\n\n\t\t\t// ----------------------------------------------------------\n\t\t\t// prepare the \"load Script\" message\n\t\t\tDiagnose.showDialog = true;\n\t\t\t// the following trick avoids a recreation of the Diagnose\n\t\t\t// TapActivity as long as the previous created one is still\n\t\t\t// in memory\n\t\t\tIntent i = new Intent();\n\t\t\ti.setClass(MainActivity.this, DiagnoseTab.class);\n\t\t\ti.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);\n\t\t\tstartActivity(i);\n\n\t\t}\n\n\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n JFileChooser j = new JFileChooser(FileSystemView.getFileSystemView().getHomeDirectory());\n\n // invoke the showsSaveDialog function to show the save dialog\n int r = j.showSaveDialog(null);\n\n if (r == JFileChooser.APPROVE_OPTION) {\n // set the label to the path of the selected directory\n dataFile.setText(j.getSelectedFile().getAbsolutePath());\n }\n // if the user cancelled the operation\n else\n dataFile.setText(\"the user cancelled the operation\");\n }",
"@Override\n public void onClick(View v) {\n new UploadFileToServer().execute();\n }",
"@FXML\n\tprivate void generateWaveFile(ActionEvent e) {\n\n\t\tsaveButton.disableProperty().unbind();\n\n\t\tbackButton.setDisable(true);\n\t\tsaveButton.setDisable(true);\n\n\t\t// Run task on different thread.\n\t\tGenerateWaveFileTask backgroundTask = new GenerateWaveFileTask(fileName, loadingGif, userInput, e);\n\t\tVarpedia.bg.submit(backgroundTask);\n\n\t}",
"@Override\n\tpublic void execute() {\n\t\tProjectOpenAllPrompt prompt = new ProjectOpenAllPrompt();\n\t\tprompt.setProceedEvent(ee -> {\n\t\t\tprompt.close();\n\t\t\tString name = ((Button) ee.getSource()).getId();\n\t\t\tIGameRunner gameRunner = new GameRunner();\n\t gameRunner.playGame(name);\n\t\t});\n\t\tprompt.show();\n\t}",
"public static void formSaveButton() throws InterruptedException {\n\t\tif (AndroidLocators.returnUsingId(\"saveForm\").isDisplayed()) {\n\t\t\tAndroidLocators.clickElementusingID(\"saveForm\");\n\t\t\tformSaveAlert();\n\t\t} else if (AndroidLocators.resourceId(\"new UiSelector().resourceId(\\\"in.spoors.effortplus:id/saveForm\\\")\")\n\t\t\t\t.isDisplayed()) {\n\t\t\tAndroidLocators.clickElementusingResourceId(\"in.spoors.effortplus:id/saveForm\");\n\t\t\tformSaveAlert();\n\t\t} else {\n\t\t\tAndroidLocators.clickElementusingXPath(\"//*[@content-desc='Save']\");\n\t\t\tformSaveAlert();\n\t\t}\n\t\tCommonUtils.interruptSyncAndLetmeWork();\n\t\t// verify if popup with i understand message is display then click on it\n\t\ti_understand_alert();\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tResultPage resultPage = new ResultPage(Agent.agentResult);\n\t\t\t\tframe.setVisible(false);\n\t\t\t\tresultPage.setVisible(true);\n\t\t\t}",
"public void callDriver() {\n onView(withId(R.id.fab))\n .perform(click());\n }",
"@Override\n public void onRightIconClick(View view) {\n showLoading();\n getMPresenter().saveFile(saveFileTO);\n }",
"private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\r\n controller.finish();\r\n }",
"public void actionPerformed(ActionEvent arg0) {\n\t\t\t\tGraphVisHandler.saveImageByType(viz, System.getProperty(\"user.dir\") + \"/..\", graphFile, true, pw, 400, 400, CommonDef.ISMAPPING);\n\t\t\t\tSystem.out.println(\"---------\");\n\t\t\t\t\n\t\t\t\t//Upload\n\t\t\t\t\n\t\t\t}",
"public void onClick()\n\t\t\t{\n\t\t\t\t((DccdSession)Session.get()).setRedirectPage(SearchResultDownloadPage.class, getPage());\n\t\t\t\tsetResponsePage(new SearchResultDownloadPage((SearchModel) SearchResultsDownloadPanel.this.getDefaultModel(), \n\t\t\t\t\t\t(DccdSearchResultPanel) callingPanel));\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n \tJFileChooser jfc = new JFileChooser();\n int retValue = jfc.showOpenDialog(KrokiMockupToolApp.getInstance().getKrokiMockupToolFrame());\n if (retValue == JFileChooser.APPROVE_OPTION) {\n File file = jfc.getSelectedFile();\n System.out.println(\"opening from file: \" + file.getAbsolutePath());\n Workspace workspace = null;\n try {\n workspace = (Workspace) SaveUtil.loadXStream(file);\n //KrokiMockupToolApp.getInstance().getWorkspace().addBussinesSubsystem(bussinesSubsystem);\n KrokiMockupToolApp.getInstance().setWorkspace(workspace);\n KrokiMockupToolApp.getInstance().getKrokiMockupToolFrame().getTree().updateUI();\n } catch (Exception ex) {\n \tex.printStackTrace();\n JOptionPane.showMessageDialog(KrokiMockupToolApp.getInstance().getKrokiMockupToolFrame(), \"Opening failed.\");\n }\n\n } else {\n System.out.println(\"opening canceled: \");\n }\n }",
"@FXML \n\tprivate void handleUserDefinedCH0() throws Exception {\n\t\tif(userDefinedButtonCH0.isSelected()){\n\t\t\t//Open a file chooser\n\t\t\tFileChooser fileChooser = new FileChooser();\n\t\t\t//ÎĵµÀàÐ͹ýÂËÆ÷\n\t\t\tExtensionFilter extFilter = new ExtensionFilter(\"wve files (*.wve)\", \"*.wve\");\n\t\t\tfileChooser.getExtensionFilters().add(extFilter);\n\t\t\tfileChooser.showOpenDialog(mainApp.getPrimaryStage());\n\t\t\t\n\t\t\t//check data\n\t\t}\n\t}",
"public void actionPerformed(ActionEvent arg0) {\n\t\t \t \ttry {\n\t\t\t\t\t\tDesktop.getDesktop().open(new File(new File(\"\").getAbsolutePath() + \n\t\t\t\t\t\t\t\t\"\\\\src\\\\pdf\\\\DocumentationUtilisateur.pdf\"));\n\t\t\t\t\t} catch (IOException 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 }",
"public void openFile(ActionEvent e) {\r\n JFileChooser chooser = new JFileChooser();\r\n\r\n int returnVal = chooser.showOpenDialog(null);\r\n if (returnVal == JFileChooser.APPROVE_OPTION) {\r\n this.is_alg_started = false;\r\n this.is_already_renumbered = false;\r\n if (e.getActionCommand().equals(\"nodelist\")) {\r\n this.nodefileText.setText(chooser.getSelectedFile().getAbsolutePath());\r\n }\r\n if (e.getActionCommand().equals(\"edgelist\")) {\r\n this.edgeFileText.setText(chooser.getSelectedFile().getAbsolutePath());\r\n }\r\n }\r\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n if (!askSave()) {\n return;\n }\n System.exit(0);\n }",
"public void actionPerformed(java.awt.event.ActionEvent evt) {\n if (!askSave()) {\n return;\n }\n setSaveTitle(\"*untilted\");\n text.setText(\"\");\n file = null;\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}",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\t\t\tif(completeChoose!=null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcompleteChoose.finalfile(rootnow);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tif(desktop == null) return ;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdesktop.browse(uri);\n\t\t\t\t\t} catch (IOException 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}",
"public void click() {\n\t\tSystem.out.println(\"LinuxButton Click\");\r\n\t}",
"public void MyQuotePage()\n\t{\n\t\tbpmqobj.MyQuotesTab().click();\n\t\ttry { Thread.sleep(10000); } catch (InterruptedException e) {e.printStackTrace();}\n\t\tbpmqobj.MyQuoteResultCheckSingleCheckBox().click();\n\t\tnew Select(bpmqobj.MyQuotesQuoteActionsDropDown()).selectByVisibleText(\"Open\");\n\t\tbpmqobj.MyQuoteGOButton().click();\n\t\tSystem.out.println(\"----> Pass <---- My Quotes Screen checks are done!\");\t\n\t}"
] | [
"0.67830175",
"0.6528472",
"0.6523565",
"0.6498823",
"0.6464747",
"0.6409014",
"0.63940805",
"0.6388375",
"0.6348719",
"0.63475215",
"0.6295525",
"0.6284142",
"0.6256847",
"0.62350667",
"0.62290186",
"0.6209255",
"0.6176667",
"0.6136296",
"0.6099498",
"0.6096245",
"0.6095023",
"0.6071481",
"0.60679185",
"0.60566926",
"0.605226",
"0.60402465",
"0.6039412",
"0.60367864",
"0.603309",
"0.60221565",
"0.6018172",
"0.59996295",
"0.5986726",
"0.5979096",
"0.5969362",
"0.5961554",
"0.59525424",
"0.5950481",
"0.5939799",
"0.5936252",
"0.59358686",
"0.59094113",
"0.5908665",
"0.5903054",
"0.5898794",
"0.58961135",
"0.589538",
"0.58942777",
"0.58865905",
"0.5879884",
"0.58683336",
"0.5854434",
"0.58483213",
"0.5847916",
"0.5830203",
"0.5823875",
"0.5823482",
"0.57929695",
"0.5778053",
"0.5765228",
"0.5761994",
"0.5754816",
"0.5751097",
"0.5748465",
"0.5741689",
"0.57385707",
"0.57382417",
"0.5736369",
"0.57234454",
"0.57202494",
"0.5716946",
"0.57132626",
"0.571015",
"0.5702203",
"0.5701967",
"0.56993",
"0.569635",
"0.56910515",
"0.5679845",
"0.5678239",
"0.56700236",
"0.5663069",
"0.5662078",
"0.5660063",
"0.56449115",
"0.5641226",
"0.5638935",
"0.56339735",
"0.5627384",
"0.5624721",
"0.5624162",
"0.56237924",
"0.5622588",
"0.56176984",
"0.5612269",
"0.5610501",
"0.5600007",
"0.55990654",
"0.55975795",
"0.5595788"
] | 0.57014984 | 75 |
save to the file to selected folder | public void saveFile(){
// the files name
String fileName = nameOfFile.getText();
String folderName = saveTo.getText();
String pattern = "^[a-zA-Z0-9_]*$";
String seperator = System.getProperty("file.separator");
//checks if file name is valid
if (!fileName.matches(pattern)){
if (mf != null){
mf.dispose();
}
mf = new MessageFrame(getX()+368,getY()-150,"Error", "ERROR 7:", "Invalid Name!");
mf.setVisible(true);
return;
}else if (fileName.equals("")){
if (mf != null){
mf.dispose();
}
mf = new MessageFrame(getX()+368,getY()-150,"Error", "ERROR 1:", "Please enter name for new file!");
mf.setVisible(true);
return;
}
// makes sure the file is a .mp3 file
fileName = fileName + ".mp3";
if(!folderName.equals("")){
fileName = folderName + seperator + fileName;
}
// used to check if the file exists
File tmpFile = new File(fileName);
File tmpDir = new File(folderName);
// checks if file already exists or file is a directory
if (tmpFile.exists() && !tmpFile.isDirectory()){
if(mf != null){
mf.dispose();
}
MessageFrame mf = new MessageFrame(getX()+368,getY()-150,"Error", "ERROR 3:", "File Already Exists!");
mf.setVisible(true);
return;
}else if (!tmpDir.exists()){
if(mf != null){
mf.dispose();
}
MessageFrame mf = new MessageFrame(getX()+368,getY()-150,"Error", "ERROR 4", "Folder does not Exists!");
mf.setVisible(true);
return;
}
// Creates the wave file the user requests
SaveSpeech ss = new SaveSpeech(message, fileName,statuslbl,progressBar, voice, rate, pitchStart, pitchEnd);
ss.execute();
thisFrame.dispose();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void save_to_file() {\n\t\tthis.setAlwaysOnTop(false);\n\t\t\n\t\t/**\n\t\t * chose file with file selector \n\t\t */\n\t\t\n\t\tFileDialog fd = new FileDialog(this, \"Choose a save directory\", FileDialog.SAVE);\n\t\t\n\t\t//default path is current directory\n\t\tfd.setDirectory(System.getProperty(\"user.dir\"));\n\t\tfd.setFile(\"*.cmakro\");\n\t\tfd.setVisible(true);\n\t\t\n\t\t\n\t\tString filename = fd.getFile();\n\t\tString path = fd.getDirectory();\n\t\tString file_withpath = path + filename;\n\t\t\n\t\tif (filename != null) {\n\t\t\t System.out.println(\"save path: \" + file_withpath);\n\t\t\t \n\t\ttry {\n\t\t\tObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(file_withpath));\n\n\t\t\tout.writeObject(Key_Lists);\n\t\t\t\n\t\t\tout.close();\n\t\t\t\n\t\t\tinfo_label.setForeground(green);\n\t\t\tinfo_label.setText(\"file saved :D\");\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tthis.setAlwaysOnTop(true);\n\t\t\n\t}",
"void saveAs() {\n writeFile.Export();\n }",
"public void Save(){\n\tJFileChooser j = new JFileChooser(\"\"); \n\t// Invoke the showsSaveDialog function to show the save dialog \n\tint r = j.showSaveDialog(null);\n \n\tif (r == JFileChooser.APPROVE_OPTION) { \n\n\t// Set the label to the path of the selected directory \n File fi = new File(j.getSelectedFile().getAbsolutePath()); \n\n try { \n\t\t// Create a file writer \n\t\tFileWriter wr = new FileWriter(fi, false); \n\n\t\t// Create buffered writer to write \n\t\tBufferedWriter w = new BufferedWriter(wr); \n\n\t\t// Write\n\t\tw.write(t.getText()); \n\n\t\tw.flush(); \n\t\tw.close(); \n } \n catch (Exception evt) { \n\t\tJOptionPane.showMessageDialog(f, evt.getMessage()); \n } \n\t} \n\t// If the user cancelled the operation \n\telse\n JOptionPane.showMessageDialog(f, \"the user cancelled the operation\"); \n\t\t\n }",
"public void save() {\n Path root = Paths.get(storagePath);\n try {\n Files.copy(file.getInputStream(), root.resolve(file.getOriginalFilename()),\n StandardCopyOption.REPLACE_EXISTING);\n } catch (IOException e) {\n e.printStackTrace();\n }\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 saveAs() {\n editorManager.currentFileManager().saveAs();\n mimaUI.fileChanged();\n }",
"public void saveAs() {\n\t\tJFileChooser chooser = new JFileChooser();\n\t\tchooser.setDialogTitle(\"Schaltung speichern...\");\n\t\tchooser.setMultiSelectionEnabled(false);\n\t\tchooser.setAutoscrolls(true);\n\t\tchooser.setFileFilter(new FileFilter() {\n\t\t\t@Override\n\t\t\tpublic String getDescription() {\n\t\t\t\treturn \"Schaltung (*.digi)\";\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic boolean accept(File f) {\n\t\t\t\treturn f.isDirectory() || f.getName().toLowerCase().endsWith(\".digi\");\n\t\t\t}\n\t\t});\n\t\tif (chooser.showSaveDialog(null) != JFileChooser.APPROVE_OPTION || chooser.getSelectedFile() == null) {\n\t\t\treturn;\n\t\t}\n\t\tString path = removeExtension(chooser.getSelectedFile().getPath());\n\t\tFile f = new File(path + \".digi\");\n\t\tif (f.exists()) {\n\t\t\tWindowManager.getDialogs().showMsgBox(\"Datei \\u00FCberschreiben?\",\n\t\t\t\t\t\"M\\u00F6chtest du die Datei \\\"\" + f.getName() + \"\\\" \\u00FCberschreiben?\", EnumDialogType.QUESTION,\n\t\t\t\t\tnew IButton() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getDisplayName() {\n\t\t\t\t\t\t\treturn \"Ja, \\u00FCberschreiben\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onClick() {\n\t\t\t\t\t\t\tWorkPanel panel = Management.getWorkPanel();\n\t\t\t\t\t\t\tpanel.setCurrentFile(f);\n\t\t\t\t\t\t\tsave(panel, f);\n\t\t\t\t\t\t}\n\t\t\t\t\t}, new IButton() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getDisplayName() {\n\t\t\t\t\t\t\treturn \"Nein\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onClick() {\n\t\t\t\t\t\t\t// do nothing\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t} else {\n\t\t\tManagement.getWorkPanel().setCurrentFile(f);\n\t\t\tonClick(); // save the selected file\n\t\t}\n\t}",
"public void saveFile() {\t\n\t\tString fileloc = \"\";\n\t\tif(!prf.foldername.getText().equals(\"\"))\n\t\t\tfileloc += prf.foldername.getText()+\"/\";\n\t\tfileloc += ((MinLFile) tabbedPane.getSelectedComponent()).filename;;\t\t\n\t\tFile fl = new File(fileloc);\n\t\t\n\t\ttry {\n\t\t\tif(fl.exists()) {\n\t\t\t\tint option = JOptionPane.showConfirmDialog(null, \"The file with this name already exists, do you want to overwrite it?\", \"Save File\", JOptionPane.YES_NO_OPTION);\n\t\t\t\tif(option == 0) {\n\t\t\t\t\tFiles.delete(fl.toPath());\n\t\t\t\t\ttry {\n\t\t\t\t\t\t\n\t\t\t\t\t\tFileWriter fw = new FileWriter(fileloc);\n\t\t\t\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\t\t\t\tbw.write(((MinLFile) tabbedPane.getSelectedComponent()).CodeArea.getText());\n\t\t\t\t\t\tbw.close();\n\t\t\t\t\t\tfw.close();\n\t\t\t\t\t\t((MinLFile) tabbedPane.getSelectedComponent()).filechanged = false;\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttry {\n\t\t\t\t\tFileWriter fw = new FileWriter(fileloc);\n\t\t\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\t\t\tbw.write(((MinLFile) tabbedPane.getSelectedComponent()).CodeArea.getText());\n\t\t\t\t\tbw.close();\n\t\t\t\t\tfw.close();\n\t\t\t\t\t((MinLFile) tabbedPane.getSelectedComponent()).filechanged = false;\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"The specified folder doesnt exist.\");\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void saveAs() {\n\t\tJFileChooser fc = new JFileChooser(\"./\");\n\t\tBufferedWriter bw = null;\n\t\tFileWriter fw = null;\n\t\tint returnValue = fc.showSaveDialog(contentPane);\n\t\t\n\t\tif(returnValue == JFileChooser.APPROVE_OPTION) {\n\t\t\ttry {\n\t\t\t\tString path = fc.getCurrentDirectory().getAbsolutePath();\n\t\t\t\tString name = fc.getSelectedFile().getName();\n\t\t\t\tif(!name.endsWith(\".txt\")) {\n\t\t\t\t\tname += \".txt\";\n\t\t\t\t}\n\t\t\t\tFile file = new File(path,name);\n\t\t\t\t\n\t\t\t\tfw = new FileWriter(file);\n\t\t\t\tbw = new BufferedWriter(fw);\n\t\t\t\t//string to hold each line to write on new file\n\t\t\t\tString text = textArea.getText();\n\t\t\t\t//write file\n\t\t\t\tif (text != null) {\n\t\t\t\t\tbw.write(text);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (IOException ie) {\n\t\t\t\tie.printStackTrace();\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\ttry {\n\t\t\t\t\tif (bw != null) {\n\t\t\t\t\t\tbw.close();\n\t\t\t\t\t\tfw.close();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (IOException ie2) {\n\t\t\t\t\tie2.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"void save(File file);",
"void save(String fileName);",
"void save(String filename);",
"public void save()\r\n {\r\n \tfc=new JFileChooser();\r\n\t fc.setCurrentDirectory(new File(\"\"));\r\n\t if(fc.showSaveDialog(this)==JFileChooser.APPROVE_OPTION)\r\n\t \t//Try-Catch Block\r\n\t try\r\n\t {\r\n\t pw=new PrintWriter(new FileWriter(fc.getSelectedFile()+\".txt\")); //Print to the user-selected file\r\n\t\t \tfor(Organism o: e.getTree()) //IN PROGESS\r\n\t\t \t{\r\n\t\t\t\t\tint[] genes=o.getGenes(); //Getting genes from \r\n\t\t\t\t\tfor(int i=0; i<genes.length; i++)\r\n\t\t\t\t\t\tpw.print(genes[i]+\" \"); //Print each gene value in a line\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tpw.println(); //Starts printing on a new line\r\n\t\t\t\t}\r\n\t\t\t\tpw.close(); //Closes the File\r\n\t }\r\n\t catch (Exception ex) //Catch Any Exception\r\n\t {\r\n\t ex.printStackTrace();\r\n\t }\r\n }",
"public static void save() {\n Game.save(UI.askNgetString(\"Filename for this save file?\")+\".xml\");\n }",
"private void saveFile() {\n\t\ttry {\n\t\t\tFile file = jfc.getSelectedFile();\n\t\t\tint c = -1;\n\t\t\tif(file==null)\n\t\t\t{\n\t\t\t\tc = jfc.showSaveDialog(this);\n\t\t\t}\n\t\t\t\n\n\t\t\tif(file!= null || c ==0)\n\t\t\t{\t\n\t\t\t\tFileWriter fw = new FileWriter(jfc.getSelectedFile());\n\t\t\t\tfw.write(jta.getText());\n\t\t\t\tfw.close();\n\t\t\t\tSystem.out.println(\"파일을 저장하였습니다\");\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t\t\n\t\t} catch (Exception e2) {\n\t\t\t// TODO: handle exception\n\t\t\tSystem.out.println(e2.getMessage());\n\t\t}\n\t}",
"@Override\n\tpublic void save() {\n\t\t\n\t\tFile savingDirectory = new File(savingFolder());\n\t\t\n\t\tif( !savingDirectory.isDirectory() ) {\n\t\t\tsavingDirectory.mkdirs();\n\t\t}\n\t\t\n\t\t\n\t\t//Create the file if it's necessary. The file is based on the name of the item. two items in the same directory shouldn't have the same name.\n\t\t\n\t\tFile savingFile = new File(savingDirectory, getIdentifier());\n\t\t\n\t\tif( !savingFile.exists() ) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\tsavingFile.createNewFile();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"the following item couldn't be saved: \" + getIdentifier());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t\t}\n\n\t\t\n\t\t//generate the savingTextLine and print it in the savingFile. the previous content is erased when the PrintWriter is created.\n\t\t\n\t\tString text = generateSavingTextLine();\n\n\t\ttry {\n\t\t\tPrintWriter printer = new PrintWriter(savingFile);\n\t\t\tprinter.write(text);\t\t\t\n\t\t\tprinter.close();\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tsave();\n\t\t} \n\t}",
"public void save(){\n\tif(currentFile == null){\n\t // TODO: add popup to select where to save file and file name\n\t // currentFile = new TextFile(os, title, null);\n\t}else{\n\t currentFile.setBody(textArea.getText());\n\t}\n }",
"@FXML\n public void saveFile(Event e) {\n String outputData = output.getText();\n\n File file = chooser.showSaveDialog(save.getScene().getWindow());\n\n if(file != null) {\n createFile(outputData, file);\n }\n }",
"public boolean SaveAs() {\n chooser = new JFileChooser();\n chooser.setCurrentDirectory(new java.io.File(\".\"));\n chooser.setDialogTitle(path);\n chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n //\n // disable the \"All files\" option.\n //\n chooser.setAcceptAllFileFilterUsed(false);\n if (chooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {\n //System.out.println(\"getCurrentDirectory(): \"+ chooser.getCurrentDirectory());\n //System.out.println(\"getSelectedFile() : \"+ chooser.getSelectedFile());\n try{\n this.setPath(chooser.getSelectedFile().toString() + \"/\");\n this.txtPath.setText(path);\n return true;\n }catch(Exception ex){\n JOptionPane.showMessageDialog(this,\"Veuillez choisir un emplacement de fichier valide\",\"Emplacement invalide\", JOptionPane.ERROR_MESSAGE);\n return false; \n } \n }else{\n JOptionPane.showMessageDialog(this,\"Veuillez choisir un emplacement de fichier valide\",\"Emplacement invalide\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n }",
"private void saveFile() {\n if (fileExisted == false) {\n JFileChooser fChoice = new JFileChooser();\n int choice = fChoice.showSaveDialog(this);\n if (choice == JFileChooser.APPROVE_OPTION) {\n File f = fChoice.getSelectedFile();\n //\n if(!f.getName().contains(\".txt\")){\n File fN=new File(f.getParent(), f.getName()+\".txt\");\n FileDAO.writeFile(fN, txtContent);\n fMain = fN;\n fileExisted = true;\n lastSave=true;\n this.setTitle(fN.getName());\n }\n else{\n \n FileDAO.writeFile(f, txtContent);\n fMain = f;\n fileExisted = true;\n lastSave=true;\n this.setTitle(f.getName());\n } \n \n }\n } else if (fileExisted == true) {\n FileDAO.writeFile(fMain, txtContent);\n lastSave=true;\n }\n\n }",
"void saveFile() {\n\t\tJFileChooser fileChooser = new JFileChooser(desktopPath);\n\t\tint returnVal = fileChooser.showSaveDialog(null);\n\t\tif(returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tFile filePath = fileChooser.getSelectedFile();\n\t\t\ttry {\n\t\t\t\tPrintWriter writer = new PrintWriter(filePath);\n\t\t\t\tScanner out = new Scanner(textEditor.getText());\n\t\t\t\twhile(out.hasNextLine()) {\n\t\t\t\t\twriter.println(out.nextLine());\n\t\t\t\t}\n\t\t\t\tout.close();\n\t\t\t\twriter.close();\n\t\t\t\ttextAreaChanged =false;\n\t\t\t\tsavedFilePath = filePath.getPath();\n\t\t\t\terrorTextArea.setText(\"\");\n\t\t\t} catch (Exception ex) {\n\t\t\t\terrorTextArea.setForeground(Color.RED);\n\t\t\t\terrorTextArea.setText(\"Error saving file\");\n\t\t\t}\n\t\t}\n\t}",
"public void saveFile() {\n\t\tPrintWriter output = null;\n\t\ttry {\n\t\t\toutput = new PrintWriter(\"/Users/katejeon/Documents/Spring_2020/CPSC_35339/avengers_project/game_result.txt\");\n\t\t\toutput.println(textArea.getText());\n\t\t\toutput.flush();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"File doesn't exist.\");\n\t\t} finally {\n\t\t\toutput.close();\n\t\t}\n\t}",
"public void save() {\n // Convert the settings to a string\n String output = readSettings();\n \n try {\n // Make sure the file exists\n if (!settingsFile.exists()) {\n File parent = settingsFile.getParentFile();\n parent.mkdirs();\n settingsFile.createNewFile(); \n }\n \n // Write the data into the file\n BufferedWriter writer = new BufferedWriter(new FileWriter(settingsFile));\n writer.write(output);\n writer.close(); \n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void saveGame(File fileLocation);",
"File getSaveLocation();",
"static String save() {\n JFileChooser fileChooser;\n String path = FileLoader.loadFile(\"path.txt\");\n if (path != null) {\n fileChooser = new JFileChooser(path);\n } else {\n fileChooser = new JFileChooser((FileSystemView.getFileSystemView().getHomeDirectory()));\n }\n\n fileChooser.setDialogTitle(\"Save text file\");\n fileChooser.setDialogType(JFileChooser.SAVE_DIALOG);\n\n if (fileChooser.showSaveDialog(null) == JFileChooser.APPROVE_OPTION) {\n FileLoader.saveFile(\"path.txt\", fileChooser.getSelectedFile().getParent(), false);\n return fileChooser.getSelectedFile().getAbsolutePath() + \".mytxt\" ;\n }\n return null;\n }",
"private void saveAs ()\n {\n\tJFileChooser chooser = new JFileChooser ();\n\tchooser.setFileSelectionMode (chooser.FILES_ONLY);\n\tint result = chooser.showSaveDialog (this);\n\tif (result == chooser.CANCEL_OPTION)\n\t{\n\t return;\n\t}\n\n\tFile f = chooser.getSelectedFile ();\n\tif (f.exists ())\n\t{\n\t try\n\t {\n\t\tresult = \n\t\t JOptionPane.showConfirmDialog (\n this,\n\t\t\t\"Overwrite existing file \\\"\" + f.getCanonicalPath () + \n\t\t\t\"\\\"?\",\n\t\t\t\"File Exists\",\n\t\t\tJOptionPane.YES_NO_OPTION);\n\n\t\tif (result != JOptionPane.YES_OPTION)\n\t\t{\n\t\t return;\n\t\t}\n\n\t\tf.delete ();\n\t }\n\t catch (IOException ex)\n\t {\n\t\tthrow new ShouldntHappenException (ex);\n\t }\n\t}\n\n\tString text;\n\tsynchronized (myDocument)\n\t{\n\t int len = myDocument.getLength ();\n\t try\n\t {\n\t\ttext = myDocument.getText (0, len);\n\t }\n\t catch (BadLocationException ex)\n\t {\n\t\tthrow new ShouldntHappenException (ex);\n\t }\n\t}\n\n\ttry\n\t{\n\t FileWriter fw = new FileWriter (f);\n\t fw.write (text);\n\t fw.flush ();\n\t fw.close ();\n\t}\n\tcatch (IOException ex)\n\t{\n\t JOptionPane.showMessageDialog (null,\n\t\t\t\t\t ex.getMessage (),\n\t\t\t\t\t \"Write Error\",\n\t\t\t\t\t JOptionPane.ERROR_MESSAGE);\n\t}\n }",
"private void saveOutputFile() {\n FileChooser fileChooser = new FileChooser();\n if (textMergeScript.hasCurrentDirectory()) {\n fileChooser.setInitialDirectory (textMergeScript.getCurrentDirectory());\n }\n chosenOutputFile = fileChooser.showSaveDialog (ownerWindow);\n if (fileChooser != null) {\n writeOutput();\n openOutputDataName.setText (tabNameOutput);\n }\n }",
"void selectDirectory(){\n fc.setCurrentDirectory(new java.io.File( \"saved\" + File.separator));\n fc.setDialogTitle(\"FILE CHOOSER!\");\n FileNameExtensionFilter xmlfilter = new FileNameExtensionFilter(\n \"json files (*.json)\", \"json\");\n fc.setFileFilter(xmlfilter);\n int response = fc.showSaveDialog(this);\n if (response == JFileChooser.APPROVE_OPTION) {\n File selectedFile = fc.getSelectedFile();\n System.out.println(\"Save as file: \" + selectedFile.getAbsolutePath());\n } else if (response == JFileChooser.CANCEL_OPTION) {\n System.out.println(\"Cancel was selected\");\n }\n System.out.println(fc.getSelectedFile().getAbsolutePath());\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n JFileChooser j = new JFileChooser(FileSystemView.getFileSystemView().getHomeDirectory());\n\n // set the selection mode to directories only\n j.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n\n // invoke the showsSaveDialog function to show the save dialog\n int r = j.showSaveDialog(null);\n\n if (r == JFileChooser.APPROVE_OPTION) {\n // set the label to the path of the selected directory\n directory.setText(j.getSelectedFile().getAbsolutePath());\n }\n // if the user cancelled the operation\n else\n directory.setText(\"the user cancelled the operation\");\n }",
"@Override\r\n\tpublic void doSaveAs() {\r\n\t\tSaveAsDialog saveAsDialog = new SaveAsDialog(getSite().getShell());\r\n\t\tsaveAsDialog.open();\r\n\t\tIPath path = saveAsDialog.getResult();\r\n\t\tif (path != null) {\r\n\t\t\tIFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(path);\r\n\t\t\tif (file != null) {\r\n\t\t\t\tdoSaveAs(URI.createPlatformResourceURI(file.getFullPath()\r\n\t\t\t\t\t\t.toString(), true), new FileEditorInput(file));\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"void saveToFile(String filename) throws IOException;",
"public void save(String fileName) throws IOException;",
"@FXML\r\n\tpublic void save() {\r\n\t\ttry {\r\n\t\t\tFile copy = new File(fileName.getText());\r\n\t\t\tScanner fileIn = new Scanner(result.getText());\r\n\t\t\tPrintStream fileOut = new PrintStream(copy);\r\n\r\n\t\t\twhile (fileIn.hasNextLine()) {\r\n\t\t\t\tfileOut.print(fileIn.nextLine());\r\n\t\t\t}\r\n\r\n\t\t\tfileIn.close();\r\n\t\t\tfileOut.close();\r\n\t\t}\r\n\t\tcatch (FileNotFoundException e) {\r\n\t\t\te.getMessage();\r\n\t\t}\r\n\t}",
"public void saveAsFile(String path)\n {\n call(\"SaveAsFile\", path);\n }",
"public void save() throws FileNotFoundException, IOException, ClassNotFoundException ;",
"public void saveNewRollManager()\n\t{\n\t JFileChooser chooser = new JFileChooser(); //allows the user to choose a file\n\t chooser.setCurrentDirectory(new File(\"/home/me/Documents\"));\t//sets the directory of where to find the file\n\t int retrival = chooser.showSaveDialog(null);\n\t if (retrival == JFileChooser.APPROVE_OPTION) {\n\t try \n\t {\n\t FileWriter fw = new FileWriter(chooser.getSelectedFile()+\".txt\");\n\t fw.write (getCourseToFileString ( ));\n\t for(Student b : getStudents ( ))\t \t\n\t \tfw.write(b.toFileString ( ));\n\t \tfw.close ( );\n\t \t;\n\t } \n\t catch (Exception ex) \n\t {\n\t ex.printStackTrace();\n\t }\n\t\t\tthis.saveNeed = false;\n\n\t }\n\t \n\t}",
"private void outputFolderButtonActionPerformed(java.awt.event.ActionEvent evt) {\n JFileChooser chooser = new JFileChooser();\n chooser.setDialogTitle(\"Select Output Folder\");\n chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n File workingDirectory = new File(System.getProperty(\"user.dir\"));\n chooser.setCurrentDirectory(workingDirectory);\n if (chooser.showSaveDialog(this) == JFileChooser.APPROVE_OPTION) {\n outputFile = chooser.getSelectedFile();\n outputFolderLabel.setText(getFileName(chooser.getSelectedFile()));\n }\n }",
"public void saveFile(){\n returnValue = this.showSaveDialog(null);\n if (returnValue == JFileChooser.APPROVE_OPTION) {\n new CustomerFileWriter(new File(this.getSelectedFile().getAbsolutePath())).saveCustomer(Bank.customer);\n }\n }",
"private void saveAs() {\n\t\tFileChooser fileChooser = new FileChooser();\n\n\t\t// Set extension filter\n\t\tFileChooser.ExtensionFilter extFilter = new FileChooser.ExtensionFilter(\n\t\t\t\t\"XML files (*.xml)\", \"*.xml\");\n\t\tfileChooser.getExtensionFilters().add(extFilter);\n\n\t\t// Show save file dialog\n\t\tFile file = fileChooser.showSaveDialog(mainApp.getPrimaryStage());\n\n\t\tif (file != null) {\n\t\t\t// Make sure it has the correct extension\n\t\t\tif (!file.getPath().endsWith(\".xml\")) {\n\t\t\t\tfile = new File(file.getPath() + \".xml\");\n\t\t\t}\n\t\t\tmainApp.saveFilmDataToFile(file);\n\t\t}\n\t}",
"public static void saveAs(){\n\t\tFile saveFile;\n\t\tJFileChooser saveChooser = new JFileChooser();\n\t\tFileNameExtensionFilter saveFilter = new FileNameExtensionFilter(\"Sensormap Files (.stuff)\", \"stuff\");\n\t\tFileNameExtensionFilter saveFilter2 = new FileNameExtensionFilter(\"Gzipped Sensormap Files (.stuff.gz)\", \"stuff.gz\");\n\t\tsaveChooser.setFileFilter(saveFilter);\n\t\tsaveChooser.setFileFilter(saveFilter2);\n\t\tint saveReturnVal = saveChooser.showSaveDialog(ControlPanelFrame.getFrame());\n\t\tif(saveReturnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tif(saveChooser.getFileFilter() == saveFilter && saveChooser.getSelectedFile().getName().endsWith(\".stuff\")==false){\n\t\t\t\tsaveFile = new File(saveChooser.getSelectedFile().getAbsolutePath()+\".stuff\");\n\t\t\t} else if(saveChooser.getFileFilter() == saveFilter2 && saveChooser.getSelectedFile().getName().endsWith(\".stuff.gz\")==false){\n\t\t\t\tsaveFile = new File(saveChooser.getSelectedFile().getAbsolutePath()+\".stuff.gz\");\n\t\t\t} else {\n\t\t\t\tsaveFile = saveChooser.getSelectedFile();\n\t\t\t}\n\t\t\tXMLSaver.saveSensorList(saveFile);\n\t\t\tGUIReferences.viewPort.halfTitle = saveFile.getName();\n\t\t\tGUIReferences.viewPort.setTitle(saveFile.getName());\n\t\t\tGUIReferences.currentFile = saveFile;\n\t\t\tGUIReferences.saveMenuItem.setEnabled(false);\n\t\t}\n\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n JFileChooser j = new JFileChooser(FileSystemView.getFileSystemView().getHomeDirectory());\n\n // invoke the showsSaveDialog function to show the save dialog\n int r = j.showSaveDialog(null);\n\n if (r == JFileChooser.APPROVE_OPTION) {\n // set the label to the path of the selected directory\n dataFile.setText(j.getSelectedFile().getAbsolutePath());\n }\n // if the user cancelled the operation\n else\n dataFile.setText(\"the user cancelled the operation\");\n }",
"private void jButtonBrowseOutputFileActionPerformed(ActionEvent e) {\n\t\tJFileChooser fileChooser = new JFileChooser();\n\t\tint result = fileChooser.showSaveDialog(this);\n\t\tif (result == JFileChooser.APPROVE_OPTION) {\n\t\t\tFile file = fileChooser.getSelectedFile();\n\t\t\tjTextFieldOutputFile.setText(file.getAbsolutePath());\n\t\t}\n\t}",
"public void save() {\n\t\tWriteFile data = new WriteFile( this.name + \".txt\" );\n\t\ttry {\n\t\t\t data.writeToFile(this.toString());\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(\"Couldn't print to file\");\n\t\t}\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsaveFile();\n\t\t\t}",
"File getSaveFile();",
"private void saveToFile(){\n this.currentMarkovChain.setMarkovName(this.txtMarkovChainName.getText());\n saveMarkovToCSVFileInformation();\n \n //Save to file\n Result result = DigPopGUIUtilityClass.saveDigPopGUIInformationSaveFile(\n this.digPopGUIInformation,\n this.digPopGUIInformation.getFilePath());\n }",
"@Override\n public void setSaveFile(File file)\n {\n \n }",
"public void save () {\n // Make sure the workspace folder exist\n createFolder(this.pathToWorkspaceFolder);\n\n // Write the serialized Flow object\n System.out.println(\"Saving\");\n try (FileWriter file = new FileWriter(this.pathToWorkspaceFolder.toString() + \"/\" + FLOW_FILE_NAME)) {\n file.write(flow.serialize());\n System.out.println(\"Successfully Copied Flow \" + flow.getId() + \" to File :)\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void saveToFile()\n\t{\t\n\t\tsetCourseToFileString(courseToFileString);\n\t\t\ttry \n\t {\n\t FileWriter fw = new FileWriter(fileName);\n\t fw.write (this.getCourseToFileString ( ));\n\t for(Student b : this.getStudents ( ))\t \t\n\t \tfw.write(b.toFileString ( ));\n\t \tfw.close ( );\n\t } \n\t catch (Exception ex) \n\t {\n\t ex.printStackTrace();\n\t }\n\t\t\tthis.saveNeed = false;\n\n\t}",
"public void save() {\n\t\tBufferedWriter bw = null;\n\t\tFileWriter fw = null;\n\t\ttry {\n\t\t\tFile file = new File(\"fileSave.txt\");\n\t\t\tif(!file.exists()) {\n\t\t\t\tfile.createNewFile();\n\t\t\t}\n\t\t\tfw = new FileWriter(file);\n\t\t\tbw = new BufferedWriter(fw);\n\t\t\t//string to hold text to write on new file\n\t\t\tString text = textArea.getText();\n\t\t\t//write file\n\t\t\tif (text != null) {\n\t\t\t\tbw.write(text);\n\t\t\t}\n\t\t}\n\t\tcatch (IOException ie) {\n\t\t\tie.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\ttry {\n\t\t\t\tif (bw != null) {\n\t\t\t\t\tbw.close();\n\t\t\t\t\tfw.close();\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (IOException ie2) {\n\t\t\t\tie2.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public final void saveToFile() {\n\t\tWrite.midi(getScore(), getName()+\".mid\"); \n\t}",
"private void saveGame() throws FileNotFoundException {\r\n\t\tJFileChooser fileChooser = new JFileChooser();\r\n\t\tFile file = null;\r\n\t\tif (fileChooser.showSaveDialog(gameView) == JFileChooser.APPROVE_OPTION) {\r\n\t\t\tfile = fileChooser.getSelectedFile();\r\n\t\t}\r\n\t\tif (file != null) {\r\n\t\t\tFileWriter fileWriter = new FileWriter(convertToStringArrayList(), file);\r\n\t\t\tfileWriter.writeFile();\r\n\t\t}\r\n\r\n\t}",
"public void saveFile(String pathOfFileSelected, String content){\n FileOutputStream fos = null;\n try {\n final File myFile = new File(pathOfFileSelected);\n\n myFile.createNewFile();\n\n fos = new FileOutputStream(myFile);\n\n fos.write(content.getBytes());\n fos.close();\n Log.d(TAG, \"saveFile: Saved Successfully\");\n\n } catch (IOException e) {\n e.printStackTrace();\n Log.w(TAG, \"saveFile: Unable to save\",e);\n }\n }",
"public void saveFile() {\r\n File savedFile = new File(fileName);\r\n\r\n try (FileWriter fw = new FileWriter(savedFile)) {\r\n fw.write(workSpace.getText());\r\n\r\n fw.close();\r\n } catch (IOException ex) {\r\n JOptionPane.showMessageDialog(null, \"There was an error saving the file\");\r\n }\r\n }",
"@FXML\n\tpublic void saveFile() {\n\t\tif (file == null) {\n\t\t\tFileChooser saveFileChooser = new FileChooser();\n\t\t\tsaveFileChooser.setInitialDirectory(userWorkspace);\n\t\t\tsaveFileChooser.getExtensionFilters().add(new FileChooser.ExtensionFilter(\"Text doc(*.txt)\", \"*.txt\"));\n\t\t\tfile = saveFileChooser.showSaveDialog(ap.getScene().getWindow());\n\t\t}\n\n\t\tif (file.getName().endsWith(\".txt\")) {\n\t\t\ttry {\n\t\t\t\tfilePath = file.getAbsolutePath();\n\t\t\t\tStage primStage = (Stage) ap.getScene().getWindow();\n\t\t\t\tprimStage.setTitle(filePath);\n\t\t\t\tTab tab = tabPane.getSelectionModel().getSelectedItem();\n\t\t\t\ttab.setId(filePath);\n\t\t\t\ttab.setText(file.getName());\n\n\t\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(file));\n\t\t\t\tPrintWriter output = new PrintWriter(writer);\n\t\t\t\toutput.write(userText.getText());\n\t\t\t\toutput.flush();\n\t\t\t\toutput.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(file.getName() + \" has no valid file-extenstion.\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}",
"public void save() {\n final JFileChooser fileChooser =\n new JFileChooser(System.getProperty(\"user.dir\"));\n try {\n fileChooser.setSelectedFile(new File(\"save.ser\"));\n int saveFile = fileChooser.showSaveDialog(GameFrame.this);\n\n if (saveFile == JFileChooser.APPROVE_OPTION) {\n File saveGame = fileChooser.getSelectedFile();\n FileOutputStream fileOut = new FileOutputStream(saveGame);\n ObjectOutputStream objOut = new ObjectOutputStream(fileOut);\n objOut.writeObject(world);\n objOut.close();\n fileOut.close();\n System.out.println(\"Game saved.\");\n } else {\n return;\n }\n } catch (IOException i) {\n i.printStackTrace();\n }\n\n }",
"public boolean save(String file);",
"public void save() {\n\t\tlog.log(\"Attempting to save...\");\n\t\tPath spath = Paths.get(getFullSavePath());\n\t\tPath cpath = Paths.get(getFullSavePath() + \"units/\");\n\t\ttry {\n\t\t\tif(!Files.exists(spath))\n\t\t\t\tFiles.createDirectory(spath);\n\t\t\tif(!Files.exists(cpath))\n\t\t\t\tFiles.createDirectory(cpath);\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tlog.log(\"Save failed.\");\n\t\t\treturn;\n\t\t}\n\n\t\tFile[] files = new File(cpath.toString()).listFiles();\n\t\tfor(File f : files) {\n\t\t\tf.delete();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tBufferedWriter mfestWriter = new BufferedWriter(new FileWriter(getFullSavePath() + \"progress.txt\"));\n\t\t\tmfestWriter.write(name);\n\t\t\tmfestWriter.close();\n\t\t\tfor(MapCharacter mc : getFriendlies()) {\n\t\t\t\tBufferedWriter charWriter = new BufferedWriter(new FileWriter(getFullSavePath() + \"units/\"\n\t\t\t\t\t\t+ mc.getEnclosed().getDirName()));\n\t\t\t\tcharWriter.write(mc.getEnclosed().save());\n\t\t\t\tcharWriter.close();\n\t\t\t}\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tlog.log(\"Save failed.\");\n\t\t\treturn;\n\t\t}\n\t\tlog.log(\"Game saved.\");\n\t}",
"public void saveAs (String directory, String fileName) {\n\t\tthis.directory = directory;\n\t\tthis.fileName = fileName;\n\t\tsave();\n\t}",
"private static void saveActionPerformed(){\r\n JFileChooser chooser = new JFileChooser();\r\n chooser.setDialogType(JFileChooser.OPEN_DIALOG);\r\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"Text files\", \"txt\");\r\n chooser.setFileFilter(filter);\r\n int returnVal = chooser.showOpenDialog(frame);\r\n if (returnVal == JFileChooser.APPROVE_OPTION) { \r\n try(BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(chooser.getSelectedFile()), \"UTF-8\"))){\r\n writeChosenSchedule(bw); \r\n \r\n JOptionPane.showMessageDialog(null, \"The schedule was successfully saved.\",\r\n \"Info\", JOptionPane.INFORMATION_MESSAGE);\r\n }\r\n catch(IOException e){\r\n Logger.getLogger(\"File saving\").log(Level.WARNING, \"Could not write to the file\", e);\r\n JOptionPane.showMessageDialog(null, \"Failed to save the schedule to the chosen file!\",\r\n \"Error\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }\r\n }",
"@Override\n\tpublic void actionPerformed (ActionEvent e)\n\t{\n\t\n\t\t// Create the File Save dialog.\n\t\tFileDialog fd = new FileDialog(\n\t\t\tAppContext.cartogramWizard, \n\t\t\t\"Save Computation Report As...\", \n\t\t\tFileDialog.SAVE);\n\n\t\tfd.setModal(true);\n\t\tfd.setBounds(20, 30, 150, 200);\n\t\tfd.setVisible(true);\n\t\t\n\t\t// Get the selected File name.\n\t\tif (fd.getFile() == null)\n\t\t\treturn;\n\t\t\n\t\tString path = fd.getDirectory() + fd.getFile();\n\t\tif (path.endsWith(\".txt\") == false)\n\t\t\tpath = path + \".txt\";\n\t\t\n\t\t\n\t\t// Write the report to the file.\n\t\ttry\n\t\t{\n\t\t\tBufferedWriter out = new BufferedWriter(new FileWriter(path));\n\t\t\tout.write(AppContext.cartogramWizard.getCartogram().getComputationReport());\n\t\t\tout.close();\n\t\t} \n\t\tcatch (IOException exc)\n\t\t{\n\t\t}\n\n\t\t\n\t\n\t}",
"public void saveNewFile() {\n\t\tJFileChooser choose = new JFileChooser();\n\t\tif(choose.showSaveDialog(null) == JFileChooser.APPROVE_OPTION) {\n\t\ttry {\n\t\t\t\tdir=choose.getCurrentDirectory().toString();\n\t\t\t\tString fileName =dir+ \"\\\\\" + choose.getSelectedFile().getName();\n\t\t\t File file = new File(fileName);\n\t\t\t if(file.exists()) {\n\t\t\t \tint confirm = JOptionPane.showConfirmDialog(null, \n\t\t\t \t\t\t\"File already exists. Do you want to overwrite it?\",\n\t\t\t \t\t\t\"Choose one\",JOptionPane.YES_NO_OPTION);\n\t\t\t \tif(confirm == JOptionPane.NO_OPTION)return;\n\t\t\t }\n\t\t\t\tPrintWriter writer = new PrintWriter(file);\n\t\t\t\twriter.write(frame.textArea.getText());\n\t\t\t\twriter.close();\n\t\t\t\tframe.setTitle(choose.getSelectedFile().getName()+\"-Text Editor\");\n\t\t\t\tframe.originalText=frame.textArea.getText();\n\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public String pathToSave() {\n String path;\n File folder;\n do {\n System.out.print(\"Introduce la ruta en la que quieres guardar el fichero(separando directorios por guiones: directorio1-directorio2-directorio3): \");\n path = Utils.getString();\n path = String.valueOf(System.getProperty(\"user.dir\")).substring(0, 2) + \"\\\\\" + path.replace('-', '\\\\');\n folder = new File(path);\n if (!folder.exists()) {\n System.out.println(\"El directorio introducido no existe intentalo de nuevo...\");\n } else {\n if (!folder.isDirectory()) {\n System.out.println(\"Eso no es un directorio intentalo de nuevo...\");\n }\n }\n } while (!folder.exists() && !folder.isDirectory());\n return path;\n }",
"synchronized public void saveToFile() {\n try {\n saveObjToFile(this, saveFilePath);\n } catch (IOException e) {\n e.printStackTrace();\n log(\"error saving resource to file\");\n }\n }",
"public void save(String path){\t\r\n\t\t\t FMParser.save(this, path);\r\n\t\t\t}",
"@Override\n public void saveFile(Object o, File file, String ext)\n throws IOException {\n dest = file;\n }",
"void saveToFile() {\n\t\ttry {\n\t\t\tFile directory = GameApplication.getInstance().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n\t\t\tFile target = new File(directory, FILE_NAME);\n\t\t\tif (!target.exists()) {\n\t\t\t\ttarget.createNewFile();\n\t\t\t}\n\t\t\tJsonWriter writer = new JsonWriter(new FileWriter(target));\n\t\t\twriter.setIndent(\" \");\n\t\t\twriter.beginArray();\n\t\t\tfor (Scoreboard scoreboard : scoreboards.values()) {\n\t\t\t\twriteScoreboard(writer, scoreboard);\n\t\t\t}\n\t\t\twriter.endArray();\n\t\t\twriter.flush();\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void saveAs() {\n MimsJFileChooser fileChooser = new MimsJFileChooser(ui);\n fileChooser.setSelectedFile(new File(ui.getLastFolder(), ui.getImageFilePrefix() + \".png\"));\n ResourceBundle localizationResources = ResourceBundleWrapper.getBundle(\"org.jfree.chart.LocalizationBundle\");\n ExtensionFileFilter filter = new ExtensionFileFilter(\n localizationResources.getString(\"PNG_Image_Files\"), \".png\");\n fileChooser.addChoosableFileFilter(filter);\n fileChooser.setFileFilter(filter);\n int option = fileChooser.showSaveDialog(chartpanel);\n if (option == MimsJFileChooser.APPROVE_OPTION) {\n String filename = fileChooser.getSelectedFile().getPath();\n if (!filename.endsWith(\".png\")) {\n filename = filename + \".png\";\n }\n try {\n ChartUtils.saveChartAsPNG(new File(filename), chartpanel.getChart(), getWidth(), getHeight());\n } catch (IOException ioe) {\n IJ.error(\"Unable to save file.\\n\\n\" + ioe.toString());\n }\n }\n }",
"public void onSaveButtonClick(ActionEvent e){\n\t\tsaveFile(false);\n\t}",
"@Override\n public void saveFile(String fileString, String filename) throws IOException {\n }",
"public void save() {\n UTILS.write(FILE.getAbsolutePath(), data);\n }",
"private void save() throws FileNotFoundException {\n\t\tm.write(new FileOutputStream(OUTPUT), \"RDF/XML\");\n\t}",
"private void saveViewModel() {\n\t\tJDialog fileDialog = new JDialog(this, \"Open File\", true);\n\t\tFileDialog filePanel = new FileDialog(this, this, true, false, false);\n\t\tfileDialog.getContentPane().add(filePanel);\n\t\tfileDialog.pack();\n\n\t\t// set the location.\n\t\tPoint p1 = this.getLocation();\n\t\tDimension d1 = this.getSize();\n\t\tDimension d2 = fileDialog.getSize();\n\t\tfileDialog.setLocation((p1.x + (d1.width / 2)) - (d2.width / 2),\n\t\t\t\t(p1.y + (d1.height / 2)) - (d2.height / 2));\n\n\t\tfilePanel.setCurrentDirectory(Config.getInstance().getBaseHarvestDir());\n\t\tfileDialog.show();\n\t}",
"@Override\r\n public void saveFolder(Folder folder) {\n this.folderRepository.save(folder);\r\n }",
"@Override\n\tpublic void save(Object o, String file) {\n\t\t\n\t}",
"public abstract void saveToFile(PrintWriter out);",
"public void save(View v,String name) {\n String question = \"Question:\" + mQuestionView.getText().toString();\n String choice1 = \"Choice1:\" + mButtonChoice1.getText().toString();\n String choice2 = \"Choice2:\" + mButtonChoice2.getText().toString();\n String choice3 = \"Choice3:\" + mButtonChoice3.getText().toString();\n String choice4 = \"Choice4:\" + mButtonChoice4.getText().toString();\n String correctAnswer = \"correct answer:\" +mAnswer;\n File file = new File(getFilesDir() + \"/\" + name); //path where it is save\n String lineSeparator = System.getProperty(\"line.separator\"); //new line\n FileOutputStream fos = null;\n try {\n fos = new FileOutputStream(file, true);\n fos = openFileOutput(name, MODE_APPEND);\n fos.write(question.getBytes());//display the questions\n fos.write(lineSeparator.getBytes());//creates a new line\n fos.write(choice1.getBytes());//display the choices\n fos.write(lineSeparator.getBytes());\n fos.write(choice2.getBytes());\n fos.write(lineSeparator.getBytes());\n fos.write(choice3.getBytes());\n fos.write(lineSeparator.getBytes());\n fos.write(choice4.getBytes());\n fos.write(lineSeparator.getBytes());\n fos.write(correctAnswer.getBytes());\n fos.write(lineSeparator.getBytes());\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (fos != null) {\n try {\n fos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }",
"public void saveTodo() {\r\n File file = new File(\"C:\\\\Users\\\\Dalia\\\\Desktop\\\\CPSC 210\\\\Project\\\\project_b2h3b\\\\data\");\r\n JFileChooser chooser = new JFileChooser();\r\n chooser.setDialogTitle(\"Specify a file to save\");\r\n chooser.setCurrentDirectory(file);\r\n int userSelection = chooser.showSaveDialog(null);\r\n if (userSelection == JFileChooser.APPROVE_OPTION) {\r\n File f = chooser.getSelectedFile();\r\n System.out.println(\"Save as file: \" + f.getAbsolutePath());\r\n String tempFileName = f.getAbsolutePath();\r\n writer = new MyTodoJsonWriter(tempFileName);\r\n try {\r\n writer.open();\r\n writer.write(myTodo);\r\n fileName = tempFileName;\r\n playSound(\"c1.wav\");\r\n } catch (IOException ioException) {\r\n JOptionPane.showMessageDialog(null, \"Cannot save todolist!\");\r\n } finally {\r\n writer.close();\r\n JOptionPane.showMessageDialog(null, \"Save successful!\");\r\n }\r\n todoListGui();\r\n }\r\n }",
"private void exportSettings() {\n\t\t\tfinal JFileChooser chooser = new JFileChooser(System.getProperty(\"user.home\"));\n\t\t\tint returnVal = chooser.showSaveDialog(null);\n\t\t\tif(returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\t\tFile saved = chooser.getSelectedFile();\n\t\t\t\ttry {\n\t\t\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(saved));\n\t\t\t\t\twriter.write(mySettings);\n\t\t\t\t\twriter.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t }\n\t}",
"private final void exportAll() {\n\t\tfinal JFileChooser chooser = new JFileChooser(System.getProperty(\"user.home\"));\n\t\tint returnVal = chooser.showSaveDialog(null);\n\t\tif(returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tFile file = chooser.getSelectedFile();\n\t\t\tserializeToFile(file);\n\t }\t\n\t}",
"Saver() throws IOException\n\t\t{\n\t\t\tthis(new File(file.getParentFile(),\n\t\t\t\t\"#\" + file.getName() + \"#save#\"));\n\t\t}",
"@FXML\n private void saveFile() {\n FileHandler.saveFileData(stage, dRegister);\n }",
"private void saveFile() {\r\n\t\tFile file = new File(this.picture.getFileName());\r\n\r\n\t\ttry {\r\n\t\t\tImageIO.write(this.picture.getBufferedImage(),\r\n\t\t\t\t\tthis.picture.getExtension(), file);\r\n\t\t} catch (IOException e) {\r\n\t\t\tJOptionPane.showMessageDialog(this.pictureFrame,\r\n\t\t\t\t \"Could not save file.\",\r\n\t\t\t\t \"Save Error\",\r\n\t\t\t\t JOptionPane.WARNING_MESSAGE);\r\n\t\t}\r\n\r\n\t}",
"protected boolean saveAs() throws IOException {\n String newParentDir = null;\n String newName = null;\n\n /*\n JFileChooser fc = new JFileChooser();\n fc.setDialogTitle(\"Save sketch folder as...\");\n if (isReadOnly() || isUntitled()) {\n // default to the sketchbook folder\n fc.setCurrentDirectory(new File(Preferences.get(\"sketchbook.path\")));\n } else {\n // default to the parent folder of where this was\n fc.setCurrentDirectory(folder.getParentFile());\n }\n // can't do this, will try to save into itself by default\n //fc.setSelectedFile(folder);\n int result = fc.showSaveDialog(editor);\n if (result == JFileChooser.APPROVE_OPTION) {\n File selection = fc.getSelectedFile();\n newParentDir = selection.getParent();\n newName = selection.getName();\n }\n */\n\n // get new name for folder\n FileDialog fd = new FileDialog(editor,\n _(\"Save sketch folder as...\"),\n FileDialog.SAVE);\n if (isReadOnly() || isUntitled()) {\n // default to the sketchbook folder\n fd.setDirectory(Preferences.get(\"sketchbook.path\"));\n } else {\n // default to the parent folder of where this was\n fd.setDirectory(folder.getParent());\n }\n String oldName = folder.getName();\n fd.setFile(oldName);\n\n fd.setVisible(true);\n newParentDir = fd.getDirectory();\n newName = fd.getFile();\n\n // user canceled selection\n if (newName == null) return false;\n newName = Sketch.checkName(newName);\n\n File newFolder = new File(newParentDir, newName);\n// String newPath = newFolder.getAbsolutePath();\n// String oldPath = folder.getAbsolutePath();\n\n// if (newPath.equals(oldPath)) {\n// return false; // Can't save a sketch over itself\n// }\n\n // make sure there doesn't exist a .cpp file with that name already\n // but ignore this situation for the first tab, since it's probably being\n // resaved (with the same name) to another location/folder.\n for (int i = 1; i < codeCount; i++) {\n if (newName.equalsIgnoreCase(code[i].getPrettyName()) &&\n code[i].getExtension().equalsIgnoreCase(\"cpp\")) {\n Base.showMessage(_(\"Nope\"),\n\t\t\t I18n.format(\n _(\"You can't save the sketch as \\\"{0}\\\"\\n\" +\n \"because the sketch already has a .cpp file with that name.\"),\n\t\t\t newName\n\t\t\t ));\n return false;\n }\n }\n\n // check if the paths are identical\n if (newFolder.equals(folder)) {\n // just use \"save\" here instead, because the user will have received a\n // message (from the operating system) about \"do you want to replace?\"\n return save();\n }\n\n // check to see if the user is trying to save this sketch inside itself\n try {\n String newPath = newFolder.getCanonicalPath() + File.separator;\n String oldPath = folder.getCanonicalPath() + File.separator;\n\n if (newPath.indexOf(oldPath) == 0) {\n Base.showWarning(_(\"How very Borges of you\"),\n _(\"You cannot save the sketch into a folder\\n\" +\n \"inside itself. This would go on forever.\"), null);\n return false;\n }\n } catch (IOException e) { }\n\n // if the new folder already exists, then need to remove\n // its contents before copying everything over\n // (user will have already been warned)\n if (newFolder.exists()) {\n Base.removeDir(newFolder);\n }\n // in fact, you can't do this on windows because the file dialog\n // will instead put you inside the folder, but it happens on osx a lot.\n\n // now make a fresh copy of the folder\n newFolder.mkdirs();\n\n // grab the contents of the current tab before saving\n // first get the contents of the editor text area\n if (current.isModified()) {\n current.setProgram(editor.getText());\n }\n\n // save the other tabs to their new location\n for (int i = 1; i < codeCount; i++) {\n File newFile = new File(newFolder, code[i].getFileName());\n code[i].saveAs(newFile);\n }\n\n // re-copy the data folder (this may take a while.. add progress bar?)\n if (dataFolder.exists()) {\n File newDataFolder = new File(newFolder, \"data\");\n Base.copyDir(dataFolder, newDataFolder);\n }\n\n // re-copy the code folder\n if (codeFolder.exists()) {\n File newCodeFolder = new File(newFolder, \"code\");\n Base.copyDir(codeFolder, newCodeFolder);\n }\n\n // copy custom applet.html file if one exists\n // http://dev.processing.org/bugs/show_bug.cgi?id=485\n File customHtml = new File(folder, \"applet.html\");\n if (customHtml.exists()) {\n File newHtml = new File(newFolder, \"applet.html\");\n Base.copyFile(customHtml, newHtml);\n }\n\n // save the main tab with its new name\n File newFile = new File(newFolder, newName + \".ino\");\n code[0].saveAs(newFile);\n\n editor.handleOpenUnchecked(newFile.getPath(),\n currentIndex,\n editor.getSelectionStart(),\n editor.getSelectionStop(),\n editor.getScrollPosition());\n\n // Name changed, rebuild the sketch menus\n //editor.sketchbook.rebuildMenusAsync();\n editor.base.rebuildSketchbookMenus();\n\n // Make sure that it's not an untitled sketch\n setUntitled(false);\n\n // let Editor know that the save was successful\n return true;\n }",
"public void saveArena() {\n //pick name and location\n Thread t1 = new Thread(new Runnable() {\n @Override\n public void run() {\n JFileChooser chooser = new JFileChooser();\n int approve = chooser.showSaveDialog(null);\n if (approve == JFileChooser.APPROVE_OPTION) {\t\t\t//if possible\n File selFile = chooser.getSelectedFile();\t\t\t//get output file\n File currDir = chooser.getCurrentDirectory();\t\t//get directory to save to\n\n //save\n try {\n FileWriter outFileWriter = new FileWriter(selFile);\t\t//create filewriter for selected file\n PrintWriter writer = new PrintWriter(outFileWriter);\n writer.println(saveArenaData());\t\t\t\t\t\t//save arena info to file\n writer.close();\n }\n catch (FileNotFoundException e) {\t\t\t\t\t\t\t\t//if can't find file\n e.printStackTrace();\n }\n catch (IOException e) {\t\t\t\t\t\t\t\t\t\t//if input/output error\n e.printStackTrace();\n }\n }\n }\n });\n t1.start();\n\n\n }",
"public void autoSave(){\n\t\ttry {\n\t\t\t//read in file\n\t\t\tFile file = new File(System.getProperty(\"user.dir\")+\"/Default.scalcsave\");\n\t\t\tObjectOutputStream output = new ObjectOutputStream(new FileOutputStream(file));\n\t\t\toutput.writeObject(SaveFile.getSaveFile());\n\t\t\toutput.close();\n\t\t\tSystem.out.println(\"Save Success\");\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void save() {\n JAXB.marshal(this, new File(fileName));\n }",
"private void saveProject()\n\t{\n\t\t\n\t\tint fileChooserReturnValue =\n\t\t\twindowTemplate\n\t\t\t\t.getFileChooser()\n\t\t\t\t.showSaveDialog(windowTemplate);\n\t\t\n\t\tif(fileChooserReturnValue == JFileChooser.APPROVE_OPTION) {\n\t\t\t\n\t\t\t// Get the file that the user selected\n\t\t\tFile file = windowTemplate.getFileChooser().getSelectedFile();\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t// Open the output streams\n\t\t\t\tFileOutputStream fileOutput = new FileOutputStream(file.getAbsolutePath());\n\t\t\t\tObjectOutputStream objectOutput = new ObjectOutputStream(fileOutput);\n\t\t\t\n\t\t\t\t// Write the objects\n\t\t\t\tfor(int i = 0; i < cards.size(); i++) {\n\t\t\t\t\tobjectOutput.writeObject(cards.get(i));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Close the output streams\n\t\t\t\tobjectOutput.close();\n\t\t\t\tfileOutput.close();\n\t\t\t\t\n\t\t\t\t// Update the title of the frame to reflect the file name\n\t\t\t\twindowTemplate.setTitle(file.getName());\n\t\t\t\t\n\t\t\t} catch (IOException e1) {\n\t\t\t\tJOptionPane.showMessageDialog(windowTemplate, \"Could not save the file.\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}",
"public void save() throws TransformerException {\n\t\tgenerator.saveToFile(saveLocation);\n\t}",
"public void saveFileAs(String text) {\r\n\r\n\t\tFile tempFile;\r\n\t\ttempFile = fileChooser.showSaveDialog(fileChooserDialog);\r\n\t\tsaveFile(tempFile, text);\r\n\t\t\r\n\t\r\n\t\t\r\n\t}",
"private void saveFitex(){\n Element pds = getPDS() ;\n JFileChooser aFileChooser = new JFileChooser();\n aFileChooser.setFileFilter(new MyFileFilterXML());\n if (lastUsedFile != null){\n aFileChooser.setCurrentDirectory(lastUsedFile.getParentFile());\n aFileChooser.setSelectedFile(lastUsedFile);\n }else{\n File file = new File(aFileChooser.getCurrentDirectory(), dataset.getName()+\".xml\");\n aFileChooser.setSelectedFile(file);\n }\n int r = aFileChooser.showSaveDialog(this);\n if (r == JFileChooser.APPROVE_OPTION){\n setCursor(new Cursor(Cursor.WAIT_CURSOR));\n File file = aFileChooser.getSelectedFile();\n if(!MyUtilities.isXMLFile(file)){\n file = MyUtilities.getXMLFile(file);\n }\n lastUsedFile = file;\n OutputStreamWriter fileWriter = null;\n try{\n fileWriter = new OutputStreamWriter(new FileOutputStream(file), \"utf-8\");\n\t\txmlOutputter.output(pds, fileWriter);\n datasetModif = false;\n dataProcessToolPanel.logSaveDataset(dataset);\n }catch (IOException e){\n setCursor(new Cursor(Cursor.DEFAULT_CURSOR));\n displayError(new CopexReturn(getBundleString(\"MSG_ERROR_SAVE\"), false), getBundleString(\"TITLE_DIALOG_ERROR\"));\n }finally{\n if (fileWriter != null){\n try{\n fileWriter.close();\n setCursor(new Cursor(Cursor.DEFAULT_CURSOR));\n }catch (IOException e){\n displayError(new CopexReturn(getBundleString(\"MSG_ERROR_SAVE\"), false), getBundleString(\"TITLE_DIALOG_ERROR\"));\n }\n }\n }\n }\n }",
"public String saveFile( Component parent )\n\t{\n\t\t\n\t JFileChooser fc = new JFileChooser();\n\t fc.setFileSelectionMode( JFileChooser.DIRECTORIES_ONLY);\n\t String s=null;\n\t //if( fc.showSaveDialog( parent ) == JFileChooser.SAVE_DIALOG )\n\t //{\n\t // return fc.getSelectedFile().getAbsolutePath();\n\t //}\n\t int rVal = fc.showSaveDialog(frame);\n\t if (rVal == JFileChooser.APPROVE_OPTION) {\n\t \n\t s=fc.getCurrentDirectory().toString()+\"/\"+fc.getSelectedFile().getName();\n\t }\n\t if (rVal == JFileChooser.CANCEL_OPTION) {\n\t \t JOptionPane.showMessageDialog(frame,\"you have pressed cancel,nothing will get saved\");\n\t }\n\t \n\n\t return s;\n\t}",
"@Override\n\n public void onClick(View arg0) {\n\n File f=new File(e1.getText().toString());\n\n FileWriter fw = null;\n\n try {\n fw = new FileWriter(f);\n } catch (IOException e3) {\n\n//\tTODO Auto-generated catch block\n\n e3.printStackTrace();\n }\n try {\n\n fw.write(e2.getText().toString());\n } catch (IOException e2) {\n// TODO Auto-generated catch block\n e2.printStackTrace();\n }\n try {\n\n fw.close();\n } catch (IOException e2) {\n\n//\tTODO Auto-generated catch block\n\n e2.printStackTrace();\n }\n SharedPreferences.Editor\n\n e=getPreferences(MODE_PRIVATE).edit();\n e.putString(\"fpath\", f.getPath());\n e.commit();\n Toast.makeText(getApplicationContext(), \"Saved Successfully\", Toast.LENGTH_LONG).show();\n\n }",
"public void saveFile(boolean answer) {\n if (answer) {\n userController.saveUserToFile();\n }\n }",
"public void saveIn (String directory) {\n\t\tthis.directory = directory;\n\t\tsave();\n\t}",
"private void saveFileChooser(){\n JFileChooser chooser = new JFileChooser();\n // Note: source for ExampleFileFilter can be found in FileChooserDemo,\n // under the demo/jfc directory in the JDK.\n //ExampleFileFilter filter = new ExampleFileFilter();\n// filter.addExtension(\"jpg\");\n// filter.addExtension(\"gif\");\n// filter.setDescription(\"JPG & GIF Images\");\n // chooser.setFileFilter(new javax.swing.plaf.basic.BasicFileChooserUI.AcceptAllFileFilter());\n int returnVal = chooser.showSaveDialog(this.getContentPane());\n if(returnVal == JFileChooser.APPROVE_OPTION) {\n System.out.println(\"You chose to open this file: \" +\n chooser.getSelectedFile().getName());\n try{\n this.generarReporte(chooser.getSelectedFile().getAbsolutePath());\n }\n catch (Exception e){\n System.out.println(\"Imposible abrir archivo \" + e);\n }\n }\n }",
"public void save() throws FileNotFoundException, IOException\n {\n settings.store(new FileOutputStream(FILE), \"N3TPD Config File\");\n }",
"public void saveNewFile() {\r\n JFileChooser fileChooser = new JFileChooser();\r\n\r\n int status = fileChooser.showSaveDialog(null);\r\n\r\n if (status == JFileChooser.APPROVE_OPTION) {\r\n\r\n fileName = fileChooser.getSelectedFile().toString();\r\n\r\n saveFile();\r\n }\r\n }",
"private File showSaveAsDialog()\n {\n \tJFileChooser fc = new JFileChooser(m_preferences.get(\"path-save-game\"));\n \tif (m_file != null) fc.setSelectedFile(m_file);\n \tint ret = fc.showSaveDialog(this);\n \tif (ret == JFileChooser.APPROVE_OPTION)\n \t return fc.getSelectedFile();\n \treturn null;\n }"
] | [
"0.71206343",
"0.711006",
"0.7017667",
"0.69465923",
"0.6938499",
"0.690592",
"0.689975",
"0.68931025",
"0.6891862",
"0.68658257",
"0.685879",
"0.68467057",
"0.6820723",
"0.67874646",
"0.67833537",
"0.6760197",
"0.6728978",
"0.6718278",
"0.66762716",
"0.6627822",
"0.6617135",
"0.6607671",
"0.6598497",
"0.6578491",
"0.6569957",
"0.65668935",
"0.65623987",
"0.6560727",
"0.65571165",
"0.6552954",
"0.65524405",
"0.6542411",
"0.65351266",
"0.65318996",
"0.65287423",
"0.6519097",
"0.6512203",
"0.65103364",
"0.6501319",
"0.64901227",
"0.6486251",
"0.648063",
"0.64790124",
"0.64702344",
"0.646523",
"0.6446773",
"0.642969",
"0.6426108",
"0.641504",
"0.6414056",
"0.64112973",
"0.6409946",
"0.6407303",
"0.636175",
"0.6355869",
"0.6355006",
"0.63426334",
"0.63213634",
"0.63145137",
"0.6308795",
"0.6306822",
"0.62867016",
"0.62843597",
"0.6266768",
"0.62613004",
"0.6261091",
"0.6252832",
"0.6250078",
"0.6225492",
"0.6224873",
"0.6219759",
"0.6218804",
"0.6203522",
"0.62019205",
"0.6177791",
"0.6175253",
"0.61696047",
"0.6155925",
"0.6150675",
"0.6149922",
"0.6146879",
"0.6136877",
"0.61356544",
"0.6120925",
"0.6119613",
"0.6118382",
"0.6113058",
"0.6109676",
"0.6105974",
"0.60795856",
"0.6074064",
"0.60711807",
"0.60675997",
"0.6059889",
"0.6055117",
"0.60539883",
"0.6046517",
"0.60428315",
"0.6039201",
"0.603911"
] | 0.61701745 | 76 |
Set the properties (rate,pitch etc..) for the synthetic speech | public void setSyntheticSpeechAttributes(String message,JLabel statuslbl,JProgressBar progressBar, String voice, double rate, int pitchStart, int pitchEnd){
this.message = message;
this.progressBar=progressBar;
this.statuslbl=statuslbl;
this.voice=voice;
this.rate=rate;
this.pitchStart=pitchStart;
this.pitchEnd=pitchEnd;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setUpSound() {\n try {\n generateTone();\n setFrequencyLabel();\n } catch(Exception e) {\n e.printStackTrace();\n }\n }",
"public void setSpeechRate(int speechRate) {\n mSelf.setSpeechRate(speechRate);\n }",
"public void setSynth(Synthesizer synth) {\n\t\tthis.synth = synth;\n\t}",
"public void setPitch(int pitch);",
"private void setSynthesizerParam(SettingParams params) {\n if (mSynthesizer == null)\n return;\n //清除所有参数\n mSynthesizer.setParameter(SpeechConstant.PARAMS, null);\n //设置合成引擎\n mSynthesizer.setParameter(SpeechConstant.ENGINE_TYPE, SpeechConstant.TYPE_CLOUD);\n //设置音调\n mSynthesizer.setParameter(SpeechConstant.PITCH, \"50\");\n //设置播放器音频流类型\n mSynthesizer.setParameter(SpeechConstant.STREAM_TYPE, \"3\");\n //设置播放合成音频打断音乐播放,默认为true\n mSynthesizer.setParameter(SpeechConstant.KEY_REQUEST_FOCUS, \"true\");\n //设置合成发言人\n mSynthesizer.setParameter(SpeechConstant.VOICE_NAME, params.getVoiceName());\n //设置语速\n mSynthesizer.setParameter(SpeechConstant.SPEED, params.getVoiceSpeed() + \"\");\n //设置音量\n mSynthesizer.setParameter(SpeechConstant.VOLUME, params.getVoiceVolume() + \"\");\n }",
"public void setSamples(int samples){ \n this.samples = samples; \n }",
"public void setRate();",
"public void setSampleRate(float rate)\n {\n samplingDelay = (int)(ONE_SECOND/rate);\n }",
"public void setSampleRate(Integer sampleRate) {\n this.sampleRate = sampleRate;\n }",
"public void setSampleMode( SampleMode sampleMode );",
"public void setRate(int rate) { this.rate = rate; }",
"public void setSampleRate(int sampleRate) {\r\n\t\tthis.sampleRate = sampleRate;\r\n\t}",
"public abstract void setRate();",
"public void setSamplingRate( int samplingRate ) {\r\n this.samplingRate = samplingRate;\r\n }",
"public void setAudioDescriptor( AudioDescriptor audioDescriptor );",
"public void setFrequency(float speed) { \n \tmouseJointDef.frequencyHz = speed; \n }",
"public void setWavelength(float wavelength) {\n/* 61 */ this.wavelength = wavelength;\n/* */ }",
"public void setAudioDscp(int dscp);",
"private void configureVoice(Voice voice) {\n voice.setPitch(configurator.getPitch());\n voice.setVolume(configurator.getVolume());\n voice.setRate(configurator.getRate());\n }",
"public void setSampleRate(int sR) {\n switch (sR) {\n case 8000:\n sampleRate.setSelectedIndex(0);\n break;\n case 11025:\n sampleRate.setSelectedIndex(1);\n break;\n case 16000:\n sampleRate.setSelectedIndex(2);\n break;\n case 22050:\n sampleRate.setSelectedIndex(3);\n break;\n default:\n }\n }",
"public void setAudioSamplingRate(int audioSamplingRate) {\n this.audioSamplingRate = audioSamplingRate;\n }",
"@Override\r\n\tpublic void setAudioFormat(AudioFormat format) {\r\n\r\n\t}",
"public void setSampleRate(int value) {\n this.sampleRate = value;\n }",
"public void setSoundPitch(float soundPitch) {\n _soundPitch = soundPitch;\n }",
"public void setAmplitude(float amplitude) {\n/* 79 */ this.amplitude = amplitude;\n/* */ }",
"public void setVibrationOn() {\n\n }",
"public void setPitch(int pitch) {\n mSelf.setPitch(pitch);\n }",
"public int getSampleRate() {\n return sampleRate;\n }",
"@Test\n public void sampleRateChangeChangesFrameRate() {\n assertEquals(AudioFormatConfig.frameRate, AudioFormatConfig.sampleRate);\n AudioConfigManager.setSampleRate(16000f);\n assertEquals(AudioFormatConfig.frameRate, AudioFormatConfig.sampleRate);\n AudioConfigManager.setSampleRate(44100f);\n assertEquals(AudioFormatConfig.frameRate, AudioFormatConfig.sampleRate);\n }",
"public void setSpeechmode(Integer speechmode) {\n this.speechmode = speechmode;\n }",
"public void setPitch(float pitch) {\n\t\talSourcef(musicSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(reverseSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(flangeSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(revFlangeSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(wahSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(revWahSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(wahFlangeSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(revWahFlangeSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(distortSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(revDistortSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(distortFlangeSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(revDistortFlangeSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(wahDistortSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(revWahDistortSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(wahDistortFlangeSourceIndex, AL_PITCH, pitch);\n\t\talSourcef(revWahDistortFlangeSourceIndex, AL_PITCH, pitch);\n\t}",
"public void setQuality(float quality);",
"public void changeSamplerateTo(int samplerate) {\n\t\tm_samplerate = samplerate;\n\t\tif( m_privateNotification != null ) {\n\t\t\tString content = \"changeSamplerate:\"+Integer.toString(samplerate)+\";\";\n\t\t\tm_privateNotification.sendMessage(m_parentName+\"TSCanvasMenu\", m_parentName+\"TSCanvas\", content);\n\t\t\tm_privateNotification.sendMessage(m_parentName+\"TSCanvasMenu\", m_parentName+\"TSAbstractCanvas\", content);\n\t\t}\n\t}",
"private void setAudioProfilModem() {\n int ringerMode = mAudioManager.getRingerModeInternal();\n ContentResolver mResolver = mContext.getContentResolver();\n Vibrator vibrator = (Vibrator) mContext\n .getSystemService(Context.VIBRATOR_SERVICE);\n boolean hasVibrator = vibrator == null ? false : vibrator.hasVibrator();\n if (AudioManager.RINGER_MODE_SILENT == ringerMode) {\n if (hasVibrator) {\n Settings.System.putInt(mResolver,\n Settings.System.SOUND_EFFECTS_ENABLED, 0);\n /* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */\n //mAudioManager.setRingerMode(AudioManager.RINGER_MODE_VIBRATE);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_VIBRATE);\n /* @} */\n mAudioManager.setVibrateSetting(\n AudioManager.VIBRATE_TYPE_RINGER,\n AudioManager.VIBRATE_SETTING_ON);\n mAudioManager.setVibrateSetting(\n AudioManager.VIBRATE_TYPE_NOTIFICATION,\n AudioManager.VIBRATE_SETTING_ON);\n } else {\n Settings.System.putInt(mResolver,\n Settings.System.SOUND_EFFECTS_ENABLED, 1);\n /* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */\n //mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_NORMAL);\n /* @} */\n }\n } else if (AudioManager.RINGER_MODE_VIBRATE == ringerMode) {\n Settings.System.putInt(mResolver,\n Settings.System.SOUND_EFFECTS_ENABLED, 1);\n /* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */\n //mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_OUTDOOR);\n /* @} */\n }else if (AudioManager.RINGER_MODE_OUTDOOR == ringerMode) {//add by wanglei for outdoor mode\n Settings.System.putInt(mResolver,Settings.System.SOUND_EFFECTS_ENABLED, 1);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_NORMAL);\n }else {\n Settings.System.putInt(mResolver,\n Settings.System.SOUND_EFFECTS_ENABLED, 0);\n /* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */\n //mAudioManager.setRingerMode(AudioManager.RINGER_MODE_SILENT);\n mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_SILENT);\n /* @} */\n if (hasVibrator) {\n mAudioManager.setVibrateSetting(\n AudioManager.VIBRATE_TYPE_RINGER,\n AudioManager.VIBRATE_SETTING_OFF);\n mAudioManager.setVibrateSetting(\n AudioManager.VIBRATE_TYPE_NOTIFICATION,\n AudioManager.VIBRATE_SETTING_OFF);\n }\n }\n }",
"public void setSound(Boolean sound_on){\n this.sound_on = sound_on;\n }",
"@Override\r\n public void onInit(int status) {\n if(status!=TextToSpeech.ERROR) {\r\n ttobj.setLanguage(Locale.UK);\r\n //ttobj.setPitch(2);\r\n }\r\n }",
"void setValueMixerSound(int value);",
"private void initAudioFormat() {\n\t\tfloat rate = 44100.0f;\n\t\t//float rate = 8000.0f;\n\t\t//int sampleSize = 8;\n\t\tint sampleSize = 16;\n\t\tint channels = 1;\n\t\tboolean bigEndian = true;\n\n\t\taudioFormat = new AudioFormat(rate, sampleSize, channels, bigEndian, bigEndian);\n\t\t// audioFormat = new AudioFormat(encoding, rate, sampleSize, channels, (sampleSize / 8)\n\t\t// * channels, rate, bigEndian);\n\n\t}",
"public Voice() {\n /* Make the utteranceProcessors a synchronized list to avoid\n * some threading issues.\n */\n utteranceProcessors = Collections.synchronizedList(new ArrayList());\n\tfeatures = new FeatureSetImpl();\n\tfeatureProcessors = new HashMap();\n\n\ttry {\n\t nominalRate = Float.parseFloat(\n\t\t Utilities.getProperty(PROP_PREFIX + \"speakingRate\",\"150\"));\n\t pitch = Float.parseFloat(\n\t\t Utilities.getProperty(PROP_PREFIX + \"pitch\",\"100\"));\n\t range = Float.parseFloat(\n\t\t Utilities.getProperty(PROP_PREFIX + \"range\",\"10\"));\n\t volume = Float.parseFloat(\n\t\t Utilities.getProperty(PROP_PREFIX + \"volume\",\"1.0\"));\n\t} catch (SecurityException se) {\n\t // can't get properties, just use defaults\n\t}\n outputQueue = null;\n audioPlayer = null;\n defaultAudioPlayer = null;\n }",
"SpeechAwardPoints(int rating){\n\n currentPoints = rating;\n feedback = \"Your current rating is: \" + currentPoints + \"%\";\n }",
"@Override\n\tprotected void sampleRateChanged()\n\t{\n\t\ttimeStepSize = 1/sampleRate();\n\t}",
"@Override\n\tprotected void sampleRateChanged()\n\t{\n\t\ttimeStepSize = 1/sampleRate();\n\t}",
"public int getSampleRate() {\r\n\treturn SAMPLES_IN_SECOND;\r\n}",
"public void setSamplingRate(int value) {\n this.samplingRate = value;\n }",
"void genTone() {\n for (int i = 0; i < numSamples; ++i) {\n sample[i] = Math.sin(2 * Math.PI * i / (sampleRate / freqOfTone));\n }\n\n // convert to 16 bit pcm sound array\n // assumes the sample buffer is normalised.\n int idx = 0;\n for (final double dVal : sample) {\n // scale to maximum amplitude\n final short val = (short) ((dVal * 32767));\n // in 16 bit wav PCM, first byte is the low order byte\n generatedSnd[idx++] = (byte) (val & 0x00ff);\n generatedSnd[idx++] = (byte) ((val & 0xff00) >>> 8);\n\n }\n }",
"void genTone() {\n for (int i = 0; i < numSamples; ++i) {\n sample[i] = Math.sin(2 * Math.PI * i / (sampleRate / freqOfTone));\n }\n\n // convert to 16 bit pcm sound array\n // assumes the sample buffer is normalised.\n int idx = 0;\n for (final double dVal : sample) {\n // scale to maximum amplitude\n final short val = (short) ((dVal * 32767));\n // in 16 bit wav PCM, first byte is the low order byte\n generatedSnd[idx++] = (byte) (val & 0x00ff);\n generatedSnd[idx++] = (byte) ((val & 0xff00) >>> 8);\n\n }\n }",
"@Test\n public void testSetTrackSmoothing()\n {\n System.out.println(\"TEST: setTrackSmoothing\");\n boolean enabled = true;\n float qFactor = 3.21F;\n TomTomReader instance = TomTomReader.getInstance();\n instance.setTrackSmoothing(enabled, qFactor);\n Activity result=instance.readTtbinFile(new UsbFile(0xFFFFFFFF, this.ttbinFileData.length, this.ttbinFileData));\n assertEquals(3.21, result.getTrackSmoothingQFactor(), 0.0001);\n // The disstance is affectuated by the smoothing\n assertEquals(3.79630, result.getDistance(), 0.0001);\n // The summary originates from teh watch and is not affected\n assertEquals(3773.17798, result.summaryDistance, 0.0001);\n }",
"void setWaveProperties(Map<String, String> waveProperties, Collection<String> elementNamesToSpawn,\n\t\t\tPoint2D spawningPoint);",
"public void generateTone()\n throws LineUnavailableException {\n if ( clip!=null ) {\n clip.stop();\n clip.close();\n } else {\n clip = AudioSystem.getClip();\n }\n boolean addHarmonic = harmonic.isSelected();\n\n int intSR = ((Integer)sampleRate.getSelectedItem()).intValue();\n int intFPW = framesPerWavelength.getValue();\n\n float sampleRate = (float)intSR;\n\n // oddly, the sound does not loop well for less than\n // around 5 or so, wavelengths\n int wavelengths = 20;\n byte[] buf = new byte[2*intFPW*wavelengths];\n AudioFormat af = new AudioFormat(\n sampleRate,\n 8, // sample size in bits\n 2, // channels\n true, // signed\n false // bigendian\n );\n\n int maxVol = 127;\n for(int i=0; i<intFPW*wavelengths; i++){\n double angle = ((float)(i*2)/((float)intFPW))*(Math.PI);\n buf[i*2]=getByteValue(angle);\n if(addHarmonic) {\n buf[(i*2)+1]=getByteValue(2*angle);\n } else {\n buf[(i*2)+1] = buf[i*2];\n }\n }\n\n try {\n byte[] b = buf;\n AudioInputStream ais = new AudioInputStream(\n new ByteArrayInputStream(b),\n af,\n buf.length/2 );\n\n clip.open( ais );\n } catch(Exception e) {\n e.printStackTrace();\n }\n }",
"public void onVoiceStart(int sampleRates) {\n }",
"public void setPitch(float pitch) {\n\t\tthis.pitch = pitch;\n\t\ttargetPitch = pitch;\n\t\tAL10.alSourcef(id, AL10.AL_PITCH, pitch);\n\t}",
"public void updateSamples();",
"public float getSampleRate();",
"void setSampleGain(float gain) {\n if (debugFlag)\n debugPrint(\"JSChannel: setSampleGain must be overridden\");\n }",
"@Test\r\n\tpublic void setFrequency() {\r\n\t\tWeldJoint<Body> wj = new WeldJoint<Body>(b1, b2, new Vector2());\r\n\t\t\r\n\t\twj.setFrequency(0.0);\r\n\t\tTestCase.assertEquals(0.0, wj.getFrequency());\r\n\t\t\r\n\t\twj.setFrequency(1.0);\r\n\t\tTestCase.assertEquals(1.0, wj.getFrequency());\r\n\t\t\r\n\t\twj.setFrequency(29.0);\r\n\t\tTestCase.assertEquals(29.0, wj.getFrequency());\r\n\t}",
"public void genTone() {\n\t\tfor (int i = 0; i < numSamples; ++i) {\n\t\t\tsample[i] = -(Math.sin(2 * Math.PI * i / (sampleRate / freqOfTone)));\n\t\t}\n\n\t\t// convert to 16 bit pcm sound array\n\t\t// assumes the sample buffer is normalised.\n\t\tint idx = 0;\n\t\tfor (final double dVal : sample) {\n\t\t\t// scale to maximum amplitude\n\t\t\tfinal short val = (short) ((dVal * 32767));\n\t\t\t// in 16 bit wav PCM, first byte is the low order byte\n\t\t\tgeneratedSnd[idx++] = (byte) (val & 0x00ff);\n\t\t\tgeneratedSnd[idx++] = (byte) ((val & 0xff00) >>> 8);\n\n\t\t}\n\t}",
"void genTone(){\n for (int i = 0; i < numSamples; ++i) {\n sample[i] = Math.sin(2 * Math.PI * i / (sampleRate/freqOfTone));\n }\n\n // convert to 16 bit pcm sound array\n // assumes the sample buffer is normalised.\n int idx = 0;\n for (final double dVal : sample) {\n // scale to maximum amplitude\n final short val = (short) ((dVal * 32767));\n // in 16 bit wav PCM, first byte is the low order byte\n generatedSnd[idx++] = (byte) (val & 0x00ff);\n generatedSnd[idx++] = (byte) ((val & 0xff00) >>> 8);\n }\n }",
"public void setRate(float rate) {\n\t\tthis.rate = rate;\n\t}",
"@Override\n public void makeSound() {\n\n }",
"@Override\n public void makeSound() {\n\n }",
"private void generateAudio() {\n soundHandler.generateTone();\n }",
"void setPWMRate(double rate);",
"@FXML\r\n void btnspeechClick(MouseEvent event) {\n \t\r\n \t setService();\r\n setHeader();\r\n \r\n System.out.println(service);\r\n \r\n InputStream stream = service.synthesize(\r\n taContent.getText(), // 변경할 문자열\r\n \tVoice.EN_LISA, // voice 선택\r\n \tAudioFormat.WAV // 출력할 오디오 포멧 형식 \r\n ).execute();\r\n // 음성데이터를 저장하기\r\n try {\r\n InputStream in = WaveUtils.reWriteWaveHeader(stream);\r\n //WaveUtils.\r\n \r\n OutputStream os = new FileOutputStream(\"d:/d_other/AIData/test12.wav\");\r\n \r\n byte[] tmp = new byte[1024];\r\n int len = 0;\r\n \r\n while((len = in.read(tmp)) != -1) {\r\n os.write(tmp, 0, len);\r\n }\r\n os.flush();\r\n \r\n os.close();\r\n in.close();\r\n stream.close();\r\n \r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n \r\n music();\r\n\r\n }",
"public final void setSample(Object obj)\n { /* setSample */\n this.sample= obj; \n }",
"private void setRecognizerParam(SettingParams params) {\n if (mRecognizer == null)\n return;\n //清空所以参数\n mRecognizer.setParameter(SpeechConstant.PARAMS, null);\n //设置听写引擎\n mRecognizer.setParameter(SpeechConstant.ENGINE_TYPE, SpeechConstant.TYPE_CLOUD);\n //设置返回结果格式\n mRecognizer.setParameter(SpeechConstant.RESULT_TYPE, \"json\");\n //设置标点符号 0:无标点 1:有标点\n mRecognizer.setParameter(SpeechConstant.ASR_PTT, \"0\");\n //设置语言\n mRecognizer.setParameter(SpeechConstant.LANGUAGE, params.getRecognizerLanguage());\n //设置发音\n mRecognizer.setParameter(SpeechConstant.ACCENT, params.getRecognizerAccent());\n //设置语音前端点:静音超时时间,即用户多长时间不说话则当做超时处理\n mRecognizer.setParameter(SpeechConstant.VAD_BOS, params.getRecognizerBOS() + \"\");\n //设置语音后端点:后端点静音检测时间,即用户停止说话多长时间内即认为不再输入, 自动停止录音\n mRecognizer.setParameter(SpeechConstant.VAD_EOS, params.getRecognizerEOS() + \"\");\n\n //open translate in english mode\n if (isEnglishEnvironment) {\n mRecognizer.setParameter(SpeechConstant.ASR_SCH, \"0\");\n mRecognizer.setParameter(SpeechConstant.ADD_CAP, \"translate\");\n mRecognizer.setParameter(SpeechConstant.TRS_SRC, \"its\");\n mRecognizer.setParameter(SpeechConstant.ORI_LANG, \"en\");\n mRecognizer.setParameter(SpeechConstant.TRANS_LANG, \"cn\");\n }\n }",
"void scaleSampleRate(float scaleFactor) {\n if (debugFlag)\n debugPrintln(\"JSChannel: scaleSampleRate\");\n if (ais == null) {\n if (debugFlag) {\n debugPrint(\"JSChannel: Internal Error scaleSampleRate: \");\n debugPrintln(\"ais is null\");\n }\n return;\n }\n\n AudioFormat audioFormat = ais.getFormat();\n float rate = audioFormat.getSampleRate();\n\n double newRate = rate * scaleFactor;\n if (newRate > 48000.0) // clamp to 48K max\n newRate = 48000.0;\n/****\n// NOTE: This doesn't work...\n/// audioStream.setSampleRate(newRate);\n\n// need to set FloatControl.Type(SAMPLE_RATE) to new value somehow...\n\n if (debugFlag) {\n debugPrintln(\"JSChannel: scaleSampleRate: new rate = \" +\n rate * scaleFactor);\n debugPrintln(\" >>>>>>>>>>>>>>> using scaleFactor = \" +\n scaleFactor);\n }\n****/\n }",
"public void setPitch(float hertz) {\n\tthis.pitch = hertz;\n }",
"private void updateSignal() {\n getGlobals().informationSignal =\n getContext().getPrng().gaussian(0,getGlobals().volatilityInfo).sample();\n\n }",
"public void setRate(Integer rate) {\r\n this.rate = rate;\r\n }",
"public abstract void setSpeed(int sp);",
"public void setSpeechTraff(Float speechTraff) {\n this.speechTraff = speechTraff;\n }",
"public SonicAudioProcessor() {\n speed = 1f;\n pitch = 1f;\n channelCount = Format.NO_VALUE;\n sampleRateHz = Format.NO_VALUE;\n buffer = EMPTY_BUFFER;\n shortBuffer = buffer.asShortBuffer();\n outputBuffer = EMPTY_BUFFER;\n }",
"void setPlaybackSpeed(float speed);",
"public void setSpeechDrpr(Float speechDrpr) {\n this.speechDrpr = speechDrpr;\n }",
"public void setSpeechCssr(Float speechCssr) {\n this.speechCssr = speechCssr;\n }",
"private void setupRecord() {\n\t\tint bufferSize = AudioRecord.getMinBufferSize(SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT);\n\t\taudioRecorder = new AudioRecord(MediaRecorder.AudioSource.MIC,\n\t\t\t\tSAMPLE_RATE, AudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT, bufferSize);\n\n\t\t// Create AudioTrack object to playback the audio.\n\t\tint iMinBufSize = AudioTrack.getMinBufferSize(SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_STEREO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT);\n\t\taudioTracker = new AudioTrack(AudioManager.STREAM_MUSIC, SAMPLE_RATE,\n\t\t\t\tAudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\tAudioFormat.ENCODING_PCM_16BIT, iMinBufSize * 10,\n\t\t\t\tAudioTrack.MODE_STREAM);\n\n\t\taudioTracker.play();\n\t}",
"public int getSampleRate() {\n return 0;\n }",
"@Override\n public void valueChanged(double control_val) {\n samplePlayer.setPosition(control_val);\n setAudioTextPosition(control_val);\n // Write your DynamicControl code above this line \n }",
"public void setSpeakEnable(boolean enable) {\n this.speakEnable = enable;\n if (speakEnable && mSynthesizer == null) {\n mSynthesizer = SpeechSynthesizer.createSynthesizer(context, this);\n setSynthesizerParam(params);\n }\n }",
"private void setup(Command cmd) throws RuntimeException, PropertyException, IOException, EngineException{\n\t\tbaseRec = new BaseRecognizer(((JSGFGrammar) cm.lookup(\"jsgfGrammar\")).getGrammarManager());\n\t\trecognizer = (Recognizer) cm.lookup(\"recognizer\");\n\t\tmicrophone = (Microphone) cm.lookup(\"microphone\");\n\n\t\tbaseRec.allocate();\n\t\trecognizer.allocate();\n\t}",
"private void analyzePitch(java.util.List<Double> samples) {\n \r\n if(samples.isEmpty()) return;\r\n if(samples.size()<=SAMPLE_RATE*MIN_SAMPLE_LENGTH_MS/1000) {\r\n //System.err.println(\"samples too short: \"+samples.size());\r\n return;\r\n }\r\n final Sound pitchSound=Sound.Sound_createSimple(\r\n 1, (double)samples.size() / SAMPLE_RATE, SAMPLE_RATE);\r\n for(int i=1; i < pitchSound.z[1].length; i++) {\r\n pitchSound.z[1][i]=samples.get(i - 1);\r\n }\r\n \r\n final SoundEditor editor=SoundEditor.SoundEditor_create(\"\", pitchSound);\r\n editor.pitch.floor=settings.floor;\r\n editor.pitch.ceiling=settings.ceiling;\r\n //editor.pitch.veryAccurate=1;\r\n \r\n if(DEBUG) System.err.print(\"analyzing \"+samples.size()+\" samples(\"\r\n +editor.pitch.floor+\"-\"+editor.pitch.ceiling+\")...\");\r\n final long start=System.nanoTime();\r\n try {\r\n editor.computePitch();\r\n } catch(Exception e) {\r\n e.printStackTrace();\r\n return;\r\n }\r\n if(DEBUG) System.err.println(\"complete in \"+(System.nanoTime()-start)/1000000.0+\"ms.\");\r\n \r\n \r\n //[ compute average pitch\r\n final java.util.List<Double> pitches=editor.getPitchesInFrequency();\r\n \r\n// diagram.clearData();\r\n// for(double s: pitches) {\r\n// diagram.addData((float)s); \r\n// }\r\n// diagram.setMaximum(500);\r\n// diagram.repaint();\r\n// \r\n double freqSum=0;\r\n int pitchCount=0;\r\n for(double p : pitches) {\r\n if(Double.isNaN(p) || p<=0) continue;\r\n freqSum+=p;\r\n pitchCount++;\r\n }\r\n final double averageFreq=freqSum/pitchCount; \r\n if(Double.isNaN(averageFreq)) {\r\n if(DEBUG) System.err.println(\"can't recognize.\");\r\n return;\r\n }\r\n//System.err.println(averageFreq); \r\n \r\n //[ compute length\r\n final double lengthMs=samples.size()*1000.0/SAMPLE_RATE;\r\n \r\n SwingUtilities.invokeLater(new Runnable() { //>>> not good\r\n public void run() {\r\n for(PitchListener lis: freqListener) {\r\n lis.gotPitch(averageFreq, lengthMs); //notify listeners\r\n }\r\n }\r\n });\r\n \r\n//System.err.println(\"add \"+ DumpReceiver.getKeyName((int) averagePitch));\r\n }",
"private void Scale()\n {\n Song scale = new Song();\n scale.add(new Note(noteA1,WHOLE_NOTE/2));\n scale.add(new Note(noteBB1,WHOLE_NOTE/2));\n scale.add(new Note(noteB1,WHOLE_NOTE/2));\n scale.add(new Note(noteC1,WHOLE_NOTE/2));\n scale.add(new Note(noteCS1,WHOLE_NOTE/2));\n scale.add(new Note(noteD1,WHOLE_NOTE/2));\n scale.add(new Note(noteDS1,WHOLE_NOTE/2));\n scale.add(new Note(noteE1,WHOLE_NOTE/2));\n scale.add(new Note(noteF1,WHOLE_NOTE/2));\n scale.add(new Note(noteFS1,WHOLE_NOTE/2));\n scale.add(new Note(noteG1,WHOLE_NOTE/2));\n scale.add(new Note(noteGS1,WHOLE_NOTE/2));\n\n\n playSong(scale);\n }",
"public void set(float signal);",
"@Override\n protected String produceSound(){\n return \"BauBau\";\n\n }",
"public Rational getAudioSampleRate();",
"public void setSoundAmbience(final boolean sAmbience) { soundAmbience = sAmbience; }",
"public void setWeights(double ACC, double ARM, double EVA, double HP, double INT,\n\t\t\tdouble LCK, double MAG, double MRE, double STR, double SP)\n\t{\n\t\tthis.statWeights = new double[10];\n\t\tstatWeights[0] = ACC;\n\t\tstatWeights[1] = ARM;\n\t\tstatWeights[2] = EVA;\n\t\tstatWeights[3] = HP;\n\t\tstatWeights[4] = INT;\n\t\tstatWeights[5] = LCK;\n\t\tstatWeights[6] = MAG;\n\t\tstatWeights[7] = MRE;\n\t\tstatWeights[8] = STR;\n\t\tstatWeights[9] = SP;\n\t}",
"public static void setSounds() {\r\n\t\tString temp = \"\";\r\n\t\tString[] sa;\r\n\t\tString prefix = \"\";\r\n\t\tString suffix = \"\";\r\n\t\t\r\n\t\tclearSounds();\r\n\t\t\t\t\r\n\t\t//Loop through the entire sounds array list to find all the settings.\r\n\t\tfor (int i = 0; i < sounds.size(); i++) {\r\n\t\t\t//When found, set the variable in main to that string..\r\n\t\t\ttemp = (String) sounds.get(i);\r\n\t\t\tsa = splitString('=', temp);\r\n\r\n\t\t\t//Set the variables to empty if the setting is empty.\r\n\t\t\tif (temp.endsWith(\"=\")) {\r\n\t\t\t\tprefix = sa[0];\r\n\r\n\t\t\t\tif (prefix.equalsIgnoreCase(\"start\")) {\r\n\t\t\t\t\tMain.soundGameStart = \"\";\r\n\t\t\t\t} else if (prefix.equalsIgnoreCase(\"bags\")){\r\n\t\t\t\t\tMain.soundBags = \"\";\r\n\t\t\t\t} else if (prefix.equalsIgnoreCase(\"set\")){\r\n\t\t\t\t\tMain.soundSet = \"\";\r\n\t\t\t\t} else if (prefix.equalsIgnoreCase(\"win\")){\r\n\t\t\t\t\tMain.soundWin = \"\";\r\n\t\t\t\t} else if (prefix.equalsIgnoreCase(\"lose\")){\r\n\t\t\t\t\tMain.soundLose = \"\";\r\n\t\t\t\t}\r\n\t\t\t//Find the properties and set them to the desired values.\r\n\t\t\t} else {\r\n\t\t\t\tprefix = sa[0];\r\n\t\t\t\tsuffix = sa[1];\r\n\t\t\t\r\n\t\t\t\tif (prefix.equalsIgnoreCase(\"start\")) {\r\n\t\t\t\t\tMain.soundGameStart = suffix;\r\n\t\t\t\t} else if (prefix.equalsIgnoreCase(\"bags\")){\r\n\t\t\t\t\tMain.soundBags = suffix;\r\n\t\t\t\t} else if (prefix.equalsIgnoreCase(\"set\")){\r\n\t\t\t\t\tMain.soundSet = suffix;\r\n\t\t\t\t} else if (prefix.equalsIgnoreCase(\"win\")){\r\n\t\t\t\t\tMain.soundWin = suffix;\r\n\t\t\t\t} else if (prefix.equalsIgnoreCase(\"lose\")){\r\n\t\t\t\t\tMain.soundLose = suffix;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@java.lang.Override\n public int getSampleRateHertz() {\n return sampleRateHertz_;\n }",
"public void initEncoderTxData()\n\t{\n\t\tfor(counter_i=0;counter_i<sampleBit;counter_i++)\n\t\t{\n\t\t\thighLevel[counter_i] = (short) (audioAM * (-Math.sin(Math.PI * counter_i /sampleBit * 2)));\n\t\t\tlowLevel[counter_i] = (short) (audioAM * (Math.sin(Math.PI * counter_i /sampleBit * 2)));\n\t\t}\n\t}",
"void setSound(boolean b){\r\n\t\tgc.setSound(b);\r\n\t}",
"@Override\n public void action(HB hb) {\n hb.reset();\n hb.setStatus(this.getClass().getSimpleName() + \" Loaded\");\n\n final float MAX_PLAYBACK_RATE = 2;\n final float START_PLAY_RATE = 1;\n\n\n // define the duration of our sample. We will set this when the sample is loaded\n float sampleDuration = 0;\n /**************************************************************\n * Load a sample and play it\n *\n * simply type samplePLayer-basic to generate this code and press <ENTER> for each parameter\n **************************************************************/\n\n final float INITIAL_VOLUME = 1; // define how loud we want the sound\n Glide audioVolume = new Glide(INITIAL_VOLUME);\n\n // Define our sample name\n final String SAMPLE_NAME = \"data/audio/long/1979.wav\";\n\n // create our actual sample\n Sample sample = SampleManager.sample(SAMPLE_NAME);\n\n // test if we opened the sample successfully\n if (sample != null) {\n // Create our sample player\n SamplePlayer samplePlayer = new SamplePlayer(sample);\n // Samples are killed by default at end. We will stop this default actions so our sample will stay alive\n samplePlayer.setKillOnEnd(false);\n\n // Connect our sample player to audio\n Gain gainAmplifier = new Gain(HB.getNumOutChannels(), audioVolume);\n gainAmplifier.addInput(samplePlayer);\n HB.getAudioOutput().addInput(gainAmplifier);\n\n /******** Write your code below this line ********/\n\n // we need to assign this new samplePlayer to our class samplePlayer\n this.samplePlayer = samplePlayer;\n\n // Create an on Off Control\n\n // type booleanControl to generate this code \n BooleanControl stopPlayControl = new BooleanControl(this, \"Play\", true) {\n @Override\n public void valueChanged(Boolean control_val) {// Write your DynamicControl code below this line \n // if true, we will play\n samplePlayer.pause(!control_val);\n\n // if we are going to play, we will create the updateThread, otherwise we will kill it\n\n if (control_val){\n // create a new thread if one does not exists\n if (updateThread == null) {\n updateThread = createUpdateThread();\n }\n }\n else\n {\n // if we have a thread, kill it\n if (updateThread != null)\n {\n updateThread.interrupt();\n updateThread = null;\n }\n }\n\n // Write your DynamicControl code above this line \n }\n };// End DynamicControl stopPlayControl code \n\n\n // get our sample duration\n sampleDuration = (float)sample.getLength();\n\n // make our sampleplay a looping type\n samplePlayer.setLoopType(SamplePlayer.LoopType.LOOP_FORWARDS);\n\n // Define what our directions are\n final int PLAY_FORWARD = 1;\n final int PLAY_REVERSE = -1;\n\n // define our playbackRate control\n Glide playbackRate = new Glide(START_PLAY_RATE);\n // define our sample rate\n Glide playbackDirection = new Glide(PLAY_FORWARD); // We will control this with yaw\n\n // This function will be used to set the playback rate of the samplePlayer\n // The playbackDirection will have a value of -1 when it is in reverse, and 1 in forward\n // This is multiplied by the playbackRate to get an absolute value\n Function calculatedRate = new Function(playbackRate, playbackDirection) {\n @Override\n public float calculate() {\n return x[0] * x[1];\n }\n };\n\n // now set the rate to the samplePlayer\n samplePlayer.setRate(calculatedRate);\n\n // Use a Buddy control to change the PlaybackRate\n // Simply type floatBuddyControl to generate this code\n FloatControl playbackRateControl = new FloatControl(this, \"Playback Rate\", START_PLAY_RATE) {\n @Override\n public void valueChanged(double control_val) {// Write your DynamicControl code below this line\n playbackRate.setValue((float)control_val);\n // Write your DynamicControl code above this line\n }\n }.setDisplayRange(0, MAX_PLAYBACK_RATE, DynamicControl.DISPLAY_TYPE.DISPLAY_ENABLED_BUDDY);// End DynamicControl playbackRateControl code\n\n\n // create a checkbox to make it play forward or reverse\n // type booleanControl to generate this code\n BooleanControl directionControl = new BooleanControl(this, \"Reverse\", false) {\n @Override\n public void valueChanged(Boolean control_val) {// Write your DynamicControl code below this line\n if (!control_val){\n playbackDirection.setValue(PLAY_FORWARD);\n }\n else{\n playbackDirection.setValue(PLAY_REVERSE);\n }\n // Write your DynamicControl code above this line\n }\n };// End DynamicControl directionControl code\n\n\n\n // display a slider for position\n // Type floatSliderControl to generate this code \n FloatControl audioPosition = new FloatControl(this, \"Audio Position\", 0) {\n @Override\n public void valueChanged(double control_val) {// Write your DynamicControl code below this line \n samplePlayer.setPosition(control_val);\n setAudioTextPosition(control_val);\n // Write your DynamicControl code above this line \n }\n }.setDisplayRange(0, sampleDuration, DynamicControl.DISPLAY_TYPE.DISPLAY_DEFAULT);// End DynamicControl audioPosition code\n\n\n // set our newly created control to the class reference\n audioSliderPosition = audioPosition;\n\n // Type textControl to generate this code \n TextControl audioPositionText = new TextControl(this, \"Audio Position\", \"\") {\n @Override\n public void valueChanged(String control_val) {// Write your DynamicControl code below this line \n // we will decode our string value to audio position\n\n // we only want to do this if we are stopped\n if (samplePlayer.isPaused()) {\n // our string will be hh:mm:ss.m\n try {\n String[] units = control_val.split(\":\"); //will break the string up into an array\n int hours = Integer.parseInt(units[0]); //first element\n int minutes = Integer.parseInt(units[1]); //second element\n float seconds = Float.parseFloat(units[2]); // thirsd element\n float audio_seconds = 360 * hours + 60 * minutes + seconds; //add up our values\n\n float audio_position = audio_seconds * 1000;\n setAudioSliderPosition(audio_position);\n } catch (Exception ex) {\n }\n }\n // Write your DynamicControl code above this line \n }\n };// End DynamicControl audioPositionText code \n\n\n\n // set newly create DynamicControl to our class variable\n\n audioTextPosition = audioPositionText;\n // create a thread to update our position while we are playing\n // This is done in a function\n updateThread = createUpdateThread();\n\n // We will set sample Start and End points\n // define our start and end points\n Glide loop_start = new Glide(0);\n Glide loop_end = new Glide(sampleDuration);\n\n samplePlayer.setLoopStart(loop_start);\n samplePlayer.setLoopEnd(loop_end);\n\n // Simply type floatBuddyControl to generate this code \n FloatControl loopStartControl = new FloatControl(this, \"Loop start\", 0) {\n @Override\n public void valueChanged(double control_val) {// Write your DynamicControl code below this line \n float current_audio_position = (float)samplePlayer.getPosition();\n\n if (current_audio_position < control_val){\n samplePlayer.setPosition(control_val);\n }\n loop_start.setValue((float)control_val);\n // Write your DynamicControl code above this line \n }\n }.setDisplayRange(0, sampleDuration, DynamicControl.DISPLAY_TYPE.DISPLAY_ENABLED_BUDDY);// End DynamicControl loopStartControl code\n\n\n\n // Simply type floatBuddyControl to generate this code \n FloatControl loopEndControl = new FloatControl(this, \"Loop End\", sampleDuration) {\n @Override\n public void valueChanged(double control_val) {// Write your DynamicControl code below this line \n loop_end.setValue((float)control_val);\n // Write your DynamicControl code above this line \n }\n }.setDisplayRange(0, sampleDuration, DynamicControl.DISPLAY_TYPE.DISPLAY_ENABLED_BUDDY);// End DynamicControl loopEndControl code\n\n\n // Add a control to make sample player start at loop start position\n\n // Type triggerControl to generate this code \n TriggerControl startLoop = new TriggerControl(this, \"Start Loop\") {\n @Override\n public void triggerEvent() {// Write your DynamicControl code below this line \n samplePlayer.setPosition(loop_start.getCurrentValue());\n // Write your DynamicControl code above this line \n }\n };// End DynamicControl startLoop code \n\n\n /******** Write your code above this line ********/\n } else {\n HB.HBInstance.setStatus(\"Failed sample \" + SAMPLE_NAME);\n }\n /*** End samplePlayer code ***/\n\n }",
"@Override\n public void valueChanged(double control_val) {\n playbackRate.setValue((float)control_val);\n // Write your DynamicControl code above this line\n }",
"public void SetLearnRate (double alpha) { this.alpha = alpha; }",
"public void start() {\n ToneControl control = null;\n try {\n myPlayer = Manager.createPlayer(Manager.TONE_DEVICE_LOCATOR);\n // do the preliminary set-up:\n myPlayer.realize();\n // set a listener to listen for the end of the tune:\n myPlayer.addPlayerListener(this);\n // get the ToneControl object in order to set the tune data:\n control = (ToneControl) myPlayer.getControl(\"ToneControl\");\n control.setSequence(myTune);\n // set the volume to the highest possible volume:\n VolumeControl vc = (VolumeControl) myPlayer\n .getControl(\"VolumeControl\");\n vc.setLevel(100);\n } catch (Exception e) {\n // the music isn't necessary, so we ignore exceptions.\n }\n }",
"public void setDecayRate(double newDecayRate ){\n\n decayRate= newDecayRate;\n}",
"@Override\n\tprotected float getSoundPitch() {\n\t\t// note: unused, managed in playSound()\n\t\treturn 1;\n\t}",
"public Builder setPitch(float value) {\n bitField0_ |= 0x00000010;\n pitch_ = value;\n onChanged();\n return this;\n }",
"@Override\n\tpublic void setReadSpeed(int bps) {\n\t\t\n\t}",
"@Override\n public void onInit(int status) {\n\n if (status == TextToSpeech.SUCCESS) {\n\n int result = tts.setLanguage(Locale.US);\n\n //tts.setPitch(0.8f); // set pitch level\n tts.setSpeechRate(1); // set speech speed rate\n\n if (result == TextToSpeech.LANG_MISSING_DATA\n || result == TextToSpeech.LANG_NOT_SUPPORTED) {\n Log.e(\"TTS\", \"Language is not supported\");\n } else {\n Log.e(\"TTS\", \"Language is supported\");\n }\n\n } else {\n Log.e(\"TTS\", \"Initilization Failed\");\n }\n\n }"
] | [
"0.6945772",
"0.6478518",
"0.63737905",
"0.63020617",
"0.62552416",
"0.6133293",
"0.60303855",
"0.60195714",
"0.6017611",
"0.59639823",
"0.59345275",
"0.59243906",
"0.59165674",
"0.58480036",
"0.5846578",
"0.58418",
"0.5806842",
"0.57976675",
"0.57910544",
"0.57679856",
"0.57613367",
"0.57573414",
"0.57341146",
"0.57018733",
"0.56823945",
"0.5635486",
"0.5630461",
"0.56265575",
"0.5622589",
"0.55767334",
"0.55678564",
"0.5556236",
"0.55471045",
"0.55422133",
"0.55081654",
"0.550627",
"0.5505913",
"0.54986805",
"0.5498504",
"0.5498129",
"0.5474465",
"0.5474465",
"0.54658324",
"0.545203",
"0.5427624",
"0.5427624",
"0.54263103",
"0.5421186",
"0.54173756",
"0.54006195",
"0.5381825",
"0.53814477",
"0.5379168",
"0.5365301",
"0.5364459",
"0.53604573",
"0.5355115",
"0.5353849",
"0.535279",
"0.535279",
"0.53510857",
"0.53485054",
"0.534716",
"0.53428817",
"0.53408307",
"0.5339204",
"0.5307754",
"0.530339",
"0.5296986",
"0.5296544",
"0.529281",
"0.5291385",
"0.52882576",
"0.52783835",
"0.5267571",
"0.5264588",
"0.52625436",
"0.52604043",
"0.5258458",
"0.5255824",
"0.5245071",
"0.52444327",
"0.5224419",
"0.52234125",
"0.5220168",
"0.5211882",
"0.5209255",
"0.5208447",
"0.5202494",
"0.52013797",
"0.5191458",
"0.5188658",
"0.5184985",
"0.5182124",
"0.5180026",
"0.51766574",
"0.5174409",
"0.51725006",
"0.5164218",
"0.5162143"
] | 0.68112206 | 1 |
add pin in map view with the information of the selected location | @Override
public void onMapReady(GoogleMap googleMap) {
mMap = googleMap;
if(null!=sampleJsonModel){
LatLng sydney = new LatLng(Double.valueOf(sampleJsonModel.getLocation().getLatitude()), Double.valueOf(sampleJsonModel.getLocation().getLongitude()));
mMap.addMarker(new MarkerOptions().position(sydney).title(sampleJsonModel.getName()));
mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));
mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(Double.valueOf(sampleJsonModel.getLocation().getLatitude()), Double.valueOf(sampleJsonModel.getLocation().getLongitude())), 12.0f));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\tpublic void onMapClick(LatLng arg0) {\n\t\t\t\tfinal LatLng location = arg0;\n \tAlertDialog builder = new AlertDialog.Builder(MainActivity.this)\n\t .setMessage(\"Do you want to add your location here?\")\n\t .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t \t setFlag = true;\n\t \t myLocation = location;\n\t \t //use this flag to indicate that we want to see the path from current location or a set point\n\t \t Log.d(\"my location:\", \"\"+myLocation.latitude + myLocation.longitude);\n\t \t if(setFlag == true){\n\t \t\t if(myMarker != null){\n\t\t \t\t myMarker.remove();\n\t\t \t }\n\t\t \t myMarker = mMap.addMarker(new MarkerOptions().position(myLocation).title(\"myLocation\").draggable(true)\n\t\t \t\t\t\t\t\t.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE)));\n\t\t \t\t\t\t landmarks.addMarker(\"myLocation\", myMarker);\n\t \t } \n\t }\n\t })\n\t .setNegativeButton(\"Not now\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t // User cancelled the dialog\n\t }\n\t }).create();\n \tbuilder.show();\n\t\t\t}",
"private void addMarker(MapboxMap mapboxMap) {\n MarkerOptions markerOptions = new MarkerOptions();\n\n IconFactory iconFactory = IconFactory.getInstance(LocateDoctorActivity.this);\n Icon icon = iconFactory.fromResource(R.drawable.mapquest_icon);\n\n markerOptions.position(new com.mapbox.mapboxsdk.geometry.LatLng(Double.parseDouble(selectedLat), Double.parseDouble(selectedLong)));\n markerOptions.snippet(\"Selected Location\");\n markerOptions.setIcon(icon);\n mapboxMap.addMarker(markerOptions);\n }",
"@Override\n public void onMapLongClick(LatLng point){\n location = new cLocation(point, this);\n\n //Open a dialog for the user to allow the user to set the name for the saved location\n DialogFragment dialog = new AddLocationDialog();\n dialog.show(getFragmentManager(), getText(R.string.map_ask_add).toString());\n }",
"public void onMapClick (LatLng point) {\n\t\tmap.clear();\n\t\tdouble lat1 = point.latitude;\n\t\tdouble lng1 = point.longitude;\n\t\tlat=String.valueOf(lat1);\n\t\tlongi=String.valueOf(lng1);\n\t\tGeocoder gcd = new Geocoder(Home.this, Locale.getDefault());\n\t\tList<Address> addresses;\n\t\ttry {\n\t\t\taddresses = gcd.getFromLocation(lat1, lng1, 1);\n\t\t\tif (addresses.size() > 0) \n\t\t\t\t\n\t\t\t\theading.setText(addresses.get(0).getSubAdminArea());\n\t\t\tToast.makeText(Home.this, addresses.get(0).getLocality(),Toast.LENGTH_SHORT).show();\t\t\t\n\t\t\tMarkerOptions options = new MarkerOptions();\n\t\t\toptions.position(point);\n\t\t\tBitmap icon = BitmapFactory.decodeResource(Home.this.getResources(),\n\t\t\t\t\tR.drawable.pin);\n\t\t\tBitmap bhalfsize=Bitmap.createScaledBitmap(icon, icon.getWidth()/5,icon.getHeight()/5, false);\n\t\t\toptions.icon(BitmapDescriptorFactory.fromBitmap(bhalfsize));\n\t\t\toptions.title(addresses.get(0).getLocality());\t\t\n\t\t\tmap.addMarker(options);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"private void addDestination(double lat, double lon) {\n mLatLng = new LatLng(lat,lon);\n mMarker = new MarkerOptions()\n .position(mLatLng)\n .title(\"Location\")\n .snippet(\"Welcome to you\");\n map.addMarker(mMarker);\n\n\n }",
"@Override\n public void onLocationChanged(Location location) {\n LatLng newLocation = new LatLng(location.getLatitude(), location.getLongitude());\n if (marker == null) {\n String address = getAddressFromCoordinates(location.getLatitude(), location.getLongitude());\n textView.setText(\"Your Current Location: \" + address); //For Testing, display coordinates on textView every time it's triggered\n marker = mMap.addMarker(new MarkerOptions().position(newLocation).title(\"Your current location:\"));\n arrayMarker.add(0, marker);\n builder.include(marker.getPosition());\n marker.setSnippet(address);\n } else {\n marker.setPosition(newLocation);\n String address = getAddressFromCoordinates(location.getLatitude(), location.getLongitude());\n// textView.setText(\"\\nCurrent Location: \" + address);\n marker.setTitle(\"Your current location:\");\n marker.setSnippet(address);\n }\n// mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(newLocation, 14.0f));\n renderCamera();\n }",
"@Override\n public void onClick(View view) {\n if (markerPlaced) {\n //Firestore handler method that adds geopoint as a field in database\n setPickupLocation(bookId, lat, lon);\n Toast toast = Toast.makeText(SetLocationActivity.this,\n \"Pickup location has been updated\", Toast.LENGTH_SHORT);\n toast.show();\n } else {\n Toast toast = Toast.makeText(SetLocationActivity.this,\n \"Place a marker first\", Toast.LENGTH_SHORT);\n toast.show();\n }\n }",
"private void showSelectedLocation(String location) {\n DatabaseHelper database = new DatabaseHelper(this);\n double lat = database.getLatitude(location);\n double lng = database.getLongitude(location);\n\n Log.i(\"Called\", lat + \" \" + lng);\n LatLng current = new LatLng(lat, lng);\n\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(current, 18));\n }",
"@Override\n \tpublic void onMapClick(final LatLng point) \n \t{\n \t\t\n \t\t AlertDialog.Builder builder = new AlertDialog.Builder(CrearIncidenteGPS.this);\n \t\t builder.setMessage(\"Desea agregar un incidente en este lugar?\")\n \t\t .setCancelable(false)\n \t\t .setPositiveButton(\"Si\", new DialogInterface.OnClickListener() \n \t\t {\n \t\t public void onClick(DialogInterface dialog, int id) \n \t\t {\n \t\t \t//Agregar el incidente\n// \t\t \tlstLatLngs.add(point);\n \t\t \tinsertarIncidente(point);\n// \t\t \tgMap.addMarker(new MarkerOptions().position(point));\n \t\t }\n \t\t })\n \t\t .setNegativeButton(\"No\", new DialogInterface.OnClickListener() \n \t\t {\n \t\t public void onClick(DialogInterface dialog, int id) \n \t\t {\n \t\t dialog.cancel();\n \t\t }\n \t\t });\n \t\t AlertDialog alert = builder.create();\n \t\t alert.show();\n \t\t\n \t}",
"@Override\n\t\tpublic void onLocationChanged(Location location) {\n\t\t\tString coordinates[] = { \"\" + location.getLatitude(),\n\t\t\t\t\t\"\" + location.getLongitude() };\n\t\t\tdouble lat = Double.parseDouble(coordinates[0]);\n\t\t\tdouble lng = Double.parseDouble(coordinates[1]);\n\n\t\t\tGeoPoint p = new GeoPoint((int) (lat * 1E6), (int) (lng * 1E6));\n\n\t\t\tMyMapOverlays marker = new MyMapOverlays(p, MapDataActivity.this);\n\t\t\tList listOfOverLays = myMap.getOverlays();\n\t\t\tlistOfOverLays.clear();\n\t\t\tlistOfOverLays.add(marker);\n\n\t\t\tmyMap.invalidate();\n\t\t\t// Toast.makeText(MapDataActivity.this,\n\t\t\t// \"lat \"+location.getLatitude()+\"long \"+location.getLongitude(),\n\t\t\t// Toast.LENGTH_SHORT).show();\n\t\t}",
"@Override\n public void onMapLongClick(@NonNull LatLng point) {\n latitude = String.valueOf(point.getLatitude());\n longitude = String.valueOf(point.getLongitude());\n mapboxMap.addMarker(new MarkerOptions()\n .position(point)\n .title(\"New Maintenance Form\")\n .snippet(\"Click to add site\")\n );\n\n\n }",
"@Override\n public void onMapLoaded() {\n mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 13.3f));\n\n // Placing a marker on the touched position\n mMap.addMarker(markerOptions);\n }",
"@Override\n public void onMapLongClick(LatLng latLng) {\n mMap.clear();\n\n //Adding a new marker to the current pressed position we are also making the draggable true\n mMap.addMarker(new MarkerOptions()\n .position(latLng)\n .draggable(true).icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED)));\n\n// Toast.makeText(this, \"longitude=\" + latLng.longitude + \"latitude=\" + latLng.latitude, Toast.LENGTH_LONG).show();\n String msg = latLng.longitude + \", \" + latLng.latitude;\n// marker_address_tv.setText(msg);\n setAddressInTVFromLatlong(latLng.latitude, latLng.longitude);\n\n }",
"public void addMapMarker() {\n if (iLat != null && !iLat.equals(\"\") && iLon != null && !iLon.equals(\"\") && iLatRef != null && !iLatRef.equals(\"\") && iLonRef != null && !iLonRef.equals(\"\")) {\n\n if (iLatRef.equals(\"N\")) {\n //North of equator, positive value\n iLatFloat = toDegrees(iLat);\n } else {\n //South of equator, negative value\n iLatFloat = 0 - toDegrees(iLat);\n }\n\n if (iLonRef.equals(\"E\")) {\n //East of prime meridian, positive value\n iLonFloat = toDegrees(iLon);\n } else {\n //West of prime meridian, negative value\n iLonFloat = 0 - toDegrees(iLon);\n }\n }\n\n final MapView gMap = (MapView) findViewById(R.id.map);\n\n if (addedMarker == false) {\n posMarker = gMap.getMap().addMarker(posMarkerOptions);\n posMarker.setTitle(getString(R.string.map_position));\n addedMarker = true;\n }\n\n posMarker.setVisible(true);\n posMarker.setPosition(new LatLng(iLatFloat, iLonFloat));\n\n GoogleMap gMapObj = gMap.getMap();\n\n gMapObj.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng latLng) {\n posMarker.setPosition(latLng);\n displayCoordsInDegrees();\n\n //Use text view values instead of posMarker values\n iLat = toDMS(posMarker.getPosition().latitude);\n iLon = toDMS(posMarker.getPosition().longitude);\n\n if (posMarker.getPosition().latitude > 0) {\n //North of equator, positive value\n iLatFloat = toDegrees(iLat);\n iLatRef = \"N\";\n } else {\n //South of equator, negative value\n iLatFloat = 0 - toDegrees(iLat);\n iLatRef = \"S\";\n }\n\n if (posMarker.getPosition().longitude > 0) {\n //East of prime meridian, positive value\n iLonFloat = toDegrees(iLon);\n iLonRef = \"E\";\n } else {\n //West of prime meridian, negative value\n iLonFloat = 0 - toDegrees(iLon);\n iLonRef = \"W\";\n }\n }\n });\n }",
"@Override\n public void run() {\n Map<String, Object> m = new HashMap<>();\n m.put(\"mAMapLocation\", \"mAMapLocation\");\n Graphic graphic = new Graphic(tapPoint, m, pinDestinationSymbol);\n\n finalMarkerOverlay.getGraphics().add(graphic);\n }",
"@Override\n public void onMapClick(LatLng point) {\n mMap.clear();\n\n // Add marker on clicked point\n mMap.addMarker(new MarkerOptions().position(point)\n .icon(BitmapDescriptorFactory\n .defaultMarker(BitmapDescriptorFactory.HUE_RED)))\n .setTag(true);\n\n // Set global lat and lng\n lat = point.latitude;\n lng = point.longitude;\n\n // Hide detail view\n hideDetails();\n }",
"@Override\n public void onMapClick(LatLng latLng) {\n map.addMarker(new MarkerOptions().position(latLng));\n }",
"@Override\n public void onMapClick(LatLng point) {\n double lati = point.latitude;\n\n\n // Getting longitude of the current location\n double longi = point.longitude;\n\n\n i = new Intent(MapsActivity.this, addtasks.class);\n\n\n Bundle b = new Bundle();\n b.putDouble(\"latitude\", lati);\n b.putDouble(\"longitude\", longi);\n i.putExtras(b);\n\n startActivity(i);\n\n }",
"@Override\n public void onSuccess(Location location) {\n if (location != null) {\n // Logic to handle location object\n double lat = location.getLatitude();\n double lng = location.getLongitude();\n mMap.addMarker(new MarkerOptions().position(new LatLng(lat, lng)).title(\"Marker at current Location\"));\n // mMap.addMarker(new MarkerOptions().position(new LatLng(lat, lng)).title(\"Marker in NYC\").icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_launcher_round)));\n }\n }",
"@Override\r\n public void onMapClick(LatLng latLng) {\n geocoder1 = new Geocoder(getApplicationContext(), Locale.getDefault());\r\n String State = null;\r\n String City = null;\r\n String Country = null;\r\n try {\r\n\r\n List<Address> Addresses = geocoder1.getFromLocation(latLng.latitude, latLng.longitude, 1);\r\n if (Addresses != null && Addresses.size() > 0) {\r\n\r\n City = Addresses.get(0).getAddressLine(0);\r\n State = Addresses.get(0).getAddressLine(1);\r\n Country = Addresses.get(0).getAddressLine(2);\r\n\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n // Clears the previously touched position\r\n googleMap.clear();\r\n\r\n TextView tvLocation = (TextView) findViewById(R.id.tv_location);\r\n\r\n\r\n // Animating to the touched position\r\n googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 16.0f));\r\n\r\n // Placing a marker on the touched position\r\n googleMap.addMarker(new MarkerOptions().position(latLng).title(City + \",\" + State + \",\" + Country));\r\n\r\n tvLocation.setText(\"Latitude:\" + latitude + \", Longitude:\" + longitude + \"\\n\" + City + \",\" + State + \",\\n\" + Country);\r\n\r\n }",
"public void displayMorton(TextView selectedCoord, MarkerOptions markerOptions, DecimalFormat formater) {\n selectedCoord.setText(\"Selected Park: 41.9427° N, -70.6805° W\");\n locationImage.setImageResource(R.drawable.morton);\n markerOptions\n .position(arrayList.get(2))\n .title(\"Morton Park:\\n\" + formater.format(arrayList.get(2).latitude) + \"° N\" + \", \" + formater.format(arrayList.get(2).longitude) + \"° W\");\n //Zoom the Marker\n gMap.animateCamera(CameraUpdateFactory.newLatLngZoom(arrayList.get(2), 15));\n //Add Marker On Map\n gMap.addMarker(markerOptions);\n }",
"@Override\n public void onMapClick(LatLng latLng) {\n AlertDialog.Builder builder = new AlertDialog.Builder(MapsActivity.this);\n //Set the title of the dialog.\n builder.setTitle(\"Create a new Marker\");\n\n final LatLng markerPoint = latLng;\n\n // Set up the input\n final EditText input = new EditText(MapsActivity.this);\n // Specify the type of input expected; this, for example, sets the input as a password, and will mask the text\n input.setInputType(InputType.TYPE_CLASS_TEXT);\n builder.setView(input);\n\n // Set up the buttons\n builder.setPositiveButton(\"Create\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //Create a new marker with the Latitude and Longitude of the click event.\n MarkerOptions marker = new MarkerOptions().position(\n new LatLng(markerPoint.latitude, markerPoint.longitude)).title(input.getText().toString());\n mMap.addMarker(marker);\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //Cancel\n dialog.cancel();\n }\n });\n\n builder.show();\n\n }",
"private void xxx() {\n LatLng westfieldNJ = new LatLng(40.659, -74.3474);\n mMap.addMarker(new MarkerOptions().position(westfieldNJ).title(\"Westfield, New Jersey\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(westfieldNJ));\n\n }",
"@Override\n public void onMapClick(LatLng latLng) {\n MarkerOptions markerOptions = new MarkerOptions();\n markerOptions.position(latLng);\n\n String address = getMarkerAddress(latLng);\n //if there is a valid address associated with marker\n if (address != null) {\n markerOptions.title(address);\n }\n mMap.clear();\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 15));\n mMap.addMarker(markerOptions);\n markerPlaced = true;\n lat = latLng.latitude;\n lon = latLng.longitude;\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n MarkerOptions markerOptions = new MarkerOptions();\n Log.d(\"Lat\", String.valueOf(clickedBook.getLat()));\n Log.d(\"Lon\", String.valueOf(clickedBook.getLon()));\n markerOptions.position(new LatLng(clickedBook.getLat(), clickedBook.getLon()));\n\n markerOptions.title(Address);\n mMap.clear();\n CameraUpdate location = CameraUpdateFactory.newLatLngZoom(\n new LatLng(clickedBook.getLat(), clickedBook.getLon()), 16f);\n mMap.animateCamera(location);\n mMap.addMarker(markerOptions);\n Log.d(\"status\", \"success\");\n }",
"@Override\r\n public void onLocationSelected(Locations locations) {\r\n coordinates = PreferenceManager.getDefaultSharedPreferences(this);\r\n coordinates.edit().putFloat(\"latP\",Float.parseFloat(locations.getLat().toString())).commit();\r\n coordinates.edit().putFloat(\"lonP\",Float.parseFloat(locations.getLon().toString())).commit();\r\n\r\n Location myLocation = fragList.getMyLocation();\r\n if (fragMap == null) {\r\n fragMap = new FragmentMap();\r\n\r\n Bundle bundle = new Bundle();\r\n bundle.putParcelable(\"locations\", locations);\r\n fragMap.setArguments(bundle);\r\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\r\n\r\n // Replace whatever is in the fragment_container view with this fragment,\r\n // and add the transaction to the back stack so the user can navigate back\r\n transaction.add(R.id.activity_main_smart, fragMap, \"FragmentMap\");\r\n transaction.addToBackStack(null);\r\n // Commit the transaction\r\n transaction.commit();\r\n }else{\r\n fragMap.setLocation(locations);\r\n\r\n }\r\n }",
"private void UpdateMap(){\n Log.d(\"data\", lati + \" \" + longi );\n// sydney = new LatLng(lati, longi);\n// mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n// mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }",
"@Override\n public void onPlaceSelected(Place place) {\n latLng = place.getLatLng();\n locationName = place.getName().toString();\n locationAddress = place.getAddress().toString();\n Log.i(TAG, \"Location:latitude: \" + place.getLatLng().latitude);\n Log.i(TAG, \"Location:Address: \" + place.getAddress());\n Log.i(TAG, \"Location:Web: \" + place.getWebsiteUri());\n Log.i(TAG, \"Location:Place: \" + place.getName());\n mMap.addMarker(new MarkerOptions().position(latLng).title(locationName).snippet(locationAddress)).showInfoWindow();\n mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n }",
"private void addMarker(double lat, double lon) {\n mLatLng = new LatLng(lat,lon);\n mMarker = new MarkerOptions()\n .position(mLatLng)\n .title(\"Location\")\n .setIcon(icon)\n .snippet(\"Welcome to you\");\n map.addMarker(mMarker);\n }",
"private void addMarkerOnMap(double latitude, double longitude) {\n try {\n //System.out.println(\"LAT::: \" + latitude);\n //System.out.println(\"LONG::: \" + longitude);\n mCurrentLocationLat = latitude;\n mCurrentLocationLongitude = longitude;\n if (markerOptions == null)\n markerOptions = new MarkerOptions();\n\n // Creating a LatLng object for the current / new location\n LatLng currentLatLng = new LatLng(latitude, longitude);\n markerOptions.position(currentLatLng).icon(BitmapDescriptorFactory.defaultMarker()).title(\"Current Location\");\n\n if (mapMarker != null)\n mapMarker.remove();\n\n mapMarker = mMap.addMarker(markerOptions);\n\n// if (dlBean.getAddress() != null) {\n// if (!dlBean.getAddress().equals(\"No Location Found\") && !dlBean.getAddress().equals(\"No Address returned\") && !dlBean.getAddress().equals(\"No Network To Get Address\"))\n// mapMarker.setTitle(dlBean.getAddress());\n// }\n\n // Showing the current location in Google Map by Zooming it\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(currentLatLng, 15));\n\n for (TripsheetSOList saleOrder : tripSheetSOList) {\n AgentLatLong agentLatLong = new AgentLatLong();\n double distance;\n\n // We are calculating distance b/w current location and agent location if lat long are not empty\n if (saleOrder.getmTripshetSOAgentLatitude() != null && !saleOrder.getmTripshetSOAgentLatitude().equals(\"\") && saleOrder.getmTripshetSOAgentLongitude() != null && !saleOrder.getmTripshetSOAgentLongitude().equals(\"\")) {\n double agentLatitude = Double.parseDouble(saleOrder.getmTripshetSOAgentLatitude());\n double agentLongitude = Double.parseDouble(saleOrder.getmTripshetSOAgentLongitude());\n\n distance = getDistanceBetweenLocationsInMeters(mCurrentLocationLat, mCurrentLocationLongitude, agentLatitude, agentLongitude);\n\n agentLatLong.setAgentName(saleOrder.getmTripshetSOAgentFirstName());\n agentLatLong.setLatitude(agentLatitude);\n agentLatLong.setLongitude(agentLongitude);\n agentLatLong.setDistance(distance);\n\n agentsLatLongList.add(agentLatLong);\n\n } else {\n distance = 0.0;\n }\n\n saleOrder.setDistance(Math.round(distance / 1000));\n }\n\n // Sorting by distance in descending order i.e. nearest destination\n Collections.sort(agentsLatLongList, new Comparator<AgentLatLong>() {\n @Override\n public int compare(AgentLatLong o1, AgentLatLong o2) {\n return o1.getDistance().compareTo(o2.getDistance());\n }\n });\n\n Collections.sort(tripSheetSOList, new Comparator<TripsheetSOList>() {\n @Override\n public int compare(TripsheetSOList o1, TripsheetSOList o2) {\n return o1.getDistance().compareTo(o2.getDistance());\n }\n });\n\n // to update distance value in list after getting current location details.\n if (mTripsheetSOAdapter != null) {\n mTripsheetSOAdapter.setAllSaleOrdersList(tripSheetSOList);\n mTripsheetSOAdapter.notifyDataSetChanged();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\n public void onSuccess(Location location) {\n if (location != null) {\n LatLng marker = new LatLng(location.getLatitude(), location.getLongitude());\n mMap.addMarker(new MarkerOptions().position(marker).title(\"You\").icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE)));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(location.getLatitude(), location.getLongitude()), 15.0f));\n }\n }",
"public void displayPilgrim(TextView selectedCoord, MarkerOptions markerOptions, DecimalFormat formater) {\n selectedCoord.setText(\"Selected Park: 41.9589° N, -70.6622° W\");\n locationImage.setImageResource(R.drawable.pilgrim);\n markerOptions\n .position(arrayList.get(3))\n .title(\"Pilgrim Memorial State Park:\\n\" + formater.format(arrayList.get(3).latitude) + \"° N\" + \", \" + formater.format(arrayList.get(3).longitude) + \"° W\");\n //Zoom the Marker\n gMap.animateCamera(CameraUpdateFactory.newLatLngZoom(arrayList.get(3), 15));\n //Add Marker On Map\n gMap.addMarker(markerOptions);\n }",
"public void onAddByMapPressed( ) {\n Router.Instance().changeView(Router.Views.AddWithMap);\n }",
"private void addPlaceLocationMarker(LatLng latLng) {\n MarkerOptions markerOptions = new MarkerOptions();\n markerOptions.position(latLng);\n mMap.clear();\n markerOptions.title(\"Current Position\");\n markerOptions.getPosition();\n markerOptions.title(locationName);\n mMap.addMarker(markerOptions);\n }",
"public void onClick(View v){\n \t\ttry {\r\n \t\t\tEditText textLocation = (EditText)findViewById(R.id.edtLocation);\r\n \t\t\tmapLocation = textLocation.getText().toString();\r\n \t\t\t\r\n \t\t\tEditText textDetails = (EditText)findViewById(R.id.edtDetails);\r\n \t\t\tmapSnipper = textDetails.getText().toString();\r\n \t\t\t\r\n \t\t\t\r\n \t\t\tEditText floatLongitude = (EditText)findViewById(R.id.edtLong);\r\n \t\t\tlon = Float.valueOf(floatLongitude.getText().toString());\r\n \t\t\t\r\n \t\t\tEditText floatLatitude = (EditText)findViewById(R.id.edtLat);\r\n \t\t\tlat = Float.valueOf(floatLatitude.getText().toString());\r\n \t\t\t\r\n \t\t\t//Only Lon and Lat between -90 and 90 are allowed\r\n \t\t\tif (lat >=-90 && lat <=90 && lon >=-90 && lon <=90) {\r\n \t\t\tfinal GoogleMap mMap;\r\n \t\t\tmMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();\r\n \t\t\tmMap.addMarker(new MarkerOptions()\r\n \t\t\t .position(new LatLng(lat,lon))\r\n \t\t\t .title(mapLocation)\r\n \t\t\t .snippet(mapSnipper));\r\n \t\t\t}\r\n \t\t\telse\r\n \t\t\t{\r\n \t\t\t\tToast.makeText(getBaseContext(), \"Lonitude and Latitude can only be numbers bewteen -90 to 90 e.g 3.148\", Toast.LENGTH_LONG).show();\r\n \t\t\t}\r\n \t}\r\n \tcatch (Exception e)\r\n \t{\r\n \t\tToast.makeText(getBaseContext(), \"Lonitude and Latitude can only be numbers bewteen -90 to 90 e.g 3.148\", Toast.LENGTH_LONG).show();\r\n \t}\r\n \t}",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n// LatLng sydney = new LatLng(-34, 151);\n// mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n// mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n\n for(int i=0; i<coordinatesStringList.length; i+=2){\n pont = new LatLng(Double.parseDouble(coordinatesStringList[i]), Double.parseDouble(coordinatesStringList[i+1]));\n latLngList.add(pont);\n MarkerOptions markerOptions=new MarkerOptions();\n mMap.addMarker(new MarkerOptions().position(pont).title(\"Marker in Sydney\").icon(BitmapDescriptorFactory.fromResource(R.drawable.pin)));\n\n// mMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {\n// @Override\n// public boolean onMarkerClick(Marker marker) {\n// Geocoder geocoder = new Geocoder(this, Locale.getDefault());\n// ArrayList<String> addresses = geocoder.getFromLocation(marker.getPosition().latitude(), marker.getPosition().longitude(), 1); //1 num of possible location returned\n// String address = addresses.get(0).getAddressLine(0); //0 to obtain first possible address\n// String city = addresses.get(0).getLocality();\n// String state = addresses.get(0).getAdminArea();\n// String country = addresses.get(0).getCountryName();\n// String postalCode = addresses.get(0).getPostalCode();\n// //create your custom title\n// String title = address +\"-\"+city+\"-\"+state;\n// marker.setTitle(title);\n// marker.showInfoWindow();\n// return true;\n// }\n// });\n }\n\n\n PolylineOptions polylineOptions = new PolylineOptions();\n\n// Create polyline options with existing LatLng ArrayList\n polylineOptions.addAll(latLngList);\n polylineOptions\n .width(5)\n .color(Color.RED);\n\n// Adding multiple points in map using polyline and arraylist\n // mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n mMap.addPolyline(polylineOptions);\n }",
"@Override\n public void onClick(View v) {\n pickPointOnMap();\n }",
"private void addCurrentMarker(double lat, double lon) {\n mLatLng = new LatLng(lat, lon);\n marker_inter = map.addMarker(new MarkerViewOptions()\n .position(mLatLng)\n .title(\"Intervention\")\n .snippet(\"Desc inter\")\n .icon(iconUsr));\n run = 1;\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onTap(GeoPoint pt, MapView mapView) {\n\t\t\t\t\t\t\t\tint lastTouchedIndex = poiOverlay\n\t\t\t\t\t\t\t\t\t\t.getLastFocusedIndex();\n\t\t\t\t\t\t\t\tif (lastTouchedIndex > -1) {\n\t\t\t\t\t\t\t\t\tOverlayItem tapped = poiOverlay\n\t\t\t\t\t\t\t\t\t\t\t.getItem(lastTouchedIndex);\n\t\t\t\t\t\t\t\t\tannotation.showAnnotationView(tapped);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tIntent intent = new Intent();\n\t\t\t\t\t\t\t\tintent.setClass(MapActivity.this,\n\t\t\t\t\t\t\t\t\t\tPatientActivity.class);\n\t\t\t\t\t\t\t\tintent.putExtra(\"Id\", poiOverlay\n\t\t\t\t\t\t\t\t\t\t.getItem(lastTouchedIndex).getSnippet());\n\t\t\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t}",
"@Override\n public void onMapReady(final GoogleMap map) {\n map.moveCamera(CameraUpdateFactory.zoomTo(14));\n //map.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n map.setMyLocationEnabled(true);\n map.setOnMyLocationButtonClickListener(new GoogleMap.OnMyLocationButtonClickListener() {\n @Override\n public boolean onMyLocationButtonClick() {\n\n return true;\n }\n });\n map.setOnMyLocationChangeListener(new GoogleMap.OnMyLocationChangeListener() {\n @Override\n public void onMyLocationChange(Location location) {\n Log.d(\"map\", \"onMyLocationChange\");\n if (!isinit) {\n isinit = true;\n if (now_Location == null ||\n now_Location.getLatitude() != location.getLatitude() ||\n now_Location.getLongitude() != location.getLongitude()) {\n now_Location = location;\n initStreetView();\n }\n }\n LatLng sydney = new LatLng(location.getLatitude(), location.getLongitude());\n map.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }\n });\n }",
"public void showLocation(double lat, double lon) {\n IMapController mapController = mapView.getController();\n GeoPoint cl = new GeoPoint(lat, lon);\n mapController.animateTo(cl);\n settings.setZoomLevel(settings.getZoomLevel(), cl.getLatitude(), cl.getLongitude());\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n try{\n Geocoder geo = new Geocoder(this);\n\n //Get address provided for location as Address object\n List<Address> foundAddresses = geo.getFromLocationName(location.getAddress(),1);\n Address address = geo.getFromLocationName(location.getAddress(),1).get(0);\n\n LatLng position= new LatLng(address.getLatitude(),address.getLongitude());\n\n googleMap.addMarker(new MarkerOptions().position(position)\n .title(location.getTitle()));\n googleMap.setMinZoomPreference(12);\n googleMap.setMaxZoomPreference(15);\n googleMap.moveCamera(CameraUpdateFactory.newLatLng(position));\n }\n catch (IOException e){\n e.printStackTrace();\n }\n catch(IndexOutOfBoundsException e){\n e.printStackTrace();\n }\n }",
"@Override\n public void onLocationChanged(Location location) {\n LatLng miUbicacion = new LatLng(location.getLatitude(), location.getLongitude());\n\n //Marcador de la ub. actual\n mMap.addMarker(new MarkerOptions().position(miUbicacion).title(\"Ubicación actual\").icon(BitmapDescriptorFactory.fromResource(R.drawable.marca3)));\n\n //Foco de la camara según la ubicación\n mMap.moveCamera(CameraUpdateFactory.newLatLng(miUbicacion));\n CameraPosition cameraPosition = new CameraPosition.Builder()\n .target(miUbicacion)\n .zoom(14)\n .bearing(90)\n .tilt(45)\n .build();\n mMap.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition));\n\n }",
"@Override\n public void onPlaceSelected(Place place) {\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(place.getLatLng().latitude,\n place.getLatLng().longitude), mMap.getCameraPosition().zoom));\n\n addMarkerAtPoi(place);\n }",
"public void onClick(DialogInterface dialog,int id) {\n LatLng newlatlng = getLatLngFromAddress(userInput.getText().toString());\n if (newlatlng != null) {\n startLocation = newlatlng;\n MarkerOptions marker = new MarkerOptions()\n .position(startLocation)\n .title(\"Start\")\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE));\n markers.add(marker);\n mMap.addMarker(marker);\n zoomMap();\n getEndLocation();\n } else\n {\n TextView alertTxtView = findViewById(R.id.alertTxtView);\n alertTxtView.setText(\"Could not find address\");\n }\n }",
"@Override\n public void onSuccess(Location location) {\n if (location != null) {\n\n\n\n // Logic to handle location object\n MarkerOptions markerOptions = new MarkerOptions().position(new LatLng(location.getLatitude(), location.getLongitude())).title(\"You are Here\").alpha(3);\n Marker currentLocationMarker = mMap.addMarker(markerOptions);\n mMap.moveCamera(CameraUpdateFactory.newLatLng(new LatLng(location.getLatitude(), location.getLongitude())));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(location.getLatitude(), location.getLongitude()) , 17.0f));//9\n\n }\n }",
"@Override\n public void onMapReady(final GoogleMap googleMap) {\n mMap = googleMap;\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n\n\n // Add a marker in Sydney and move the camera\n final LatLng sementeryo = new LatLng(7.063907, 125.585014);\n\n\n\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n\n\n @Override\n public void onMapClick(LatLng point) {\n\n if(destinationMarker != null) {\n\n destinationMarker.remove();\n\n }\n marker = new MarkerOptions().position(new LatLng(point.latitude, point.longitude)).title(\"Grave Location\");\n\n marker.icon(BitmapDescriptorFactory.fromResource(R.mipmap.grave_ic1));\n destinationMarker = mMap.addMarker(marker);\n\n\n System.out.println(point.latitude + \"---\" + point.longitude);\n\n // Toast.makeText(add_map.this, (point.latitude + \"---\" + point.longitude), Toast.LENGTH_LONG).show();\n\n Button button = (Button) findViewById(R.id.addlatlang);\n\n button.setBackgroundResource(R.drawable.blue_btn);\n button.setEnabled(true);\n\n lat=point.latitude;\n lang=point.longitude;\n\n\n }\n });\n\n Location locationf;\n locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n locationf = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\n\n double latitude = locationf.getLatitude();\n double longitude = locationf.getLongitude();\n\n final LatLng coordinate = new LatLng(latitude, longitude); //Store these lat lng values somewhere. These should be constant.\n CameraUpdate location = CameraUpdateFactory.newLatLngZoom(\n coordinate, 15);\n googleMap.animateCamera(location);\n\n googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(coordinate,18));\n\n new Handler().postDelayed(new Runnable() {\n\n @Override\n public void run() {\n\n\n CameraUpdate location = CameraUpdateFactory.newLatLngZoom(\n sementeryo, 17);\n googleMap.animateCamera(location);\n\n }\n }, 5000);\n\n\n\n }",
"@Override\n public void onMapClick(LatLng arg0) {\n try {\n Geocoder geo = new Geocoder(MapsActivity.this, Locale.getDefault());\n List<Address> add = geo.getFromLocation(arg0.latitude, arg0.longitude, 1);\n String selectedCountry;\n if (add.size() > 0) {\n selectedCountry = add.get(0).getCountryName();\n selectedStateOrCountry = selectedCountry;\n\n //Log.d(\"country\", selectedCountry);\n //For usa go with states . All other countries - it gives the capital\n if (selectedCountry.equalsIgnoreCase(\"United States\") ||\n selectedCountry.equalsIgnoreCase(\"US\")) {\n selectedStateOrCountry = add.get(0).getAdminArea();\n }\n //Log.d(\"state\", selectedStateOrCountry);\n ConvertTextToSpeech();\n }\n } catch (Exception e) {\n //Log.e(TAG, \"Failed to initialize map\", e);\n }\n }",
"private void updateLocationUI() {\n mCurrentLocationStr = mCurrentPlace.getAddress().toString();\n mCurrentLatLng = mCurrentPlace.getLatLng();\n if(mCurrentLocationStr.isEmpty())\n mCurrentLocationStr = String.format(\"(%.2f, %.2f)\",mCurrentLatLng.latitude, mCurrentLatLng.longitude);\n\n mAddLocation.setText(mCurrentLocationStr);\n mAddLocation.setTextColor(mSecondaryTextColor);\n mClearLocation.setVisibility(View.VISIBLE);\n }",
"private void showMapAndSendCoordinate(String coordinateMap, String name) {\n showMapFragment = new ShowMapFragment();\n Bundle bundle = new Bundle();\n bundle.putString(\"LatLng\", coordinateMap);\n bundle.putString(\"Name\", name);\n showMapFragment.setArguments(bundle);\n\n getSupportFragmentManager()\n .beginTransaction()\n .replace(R.id.linearMap, showMapFragment)\n .commit();\n }",
"private void populateView(){\n\n //Display image without blocking, and cache it\n ImageView imageView = (ImageView) findViewById(R.id.activity_location_image);\n Picasso.with(this)\n .load(location.getImageURL()).fit().centerCrop().into(imageView);\n\n //Display description\n TextView description = (TextView) findViewById(R.id.activity_location_description);\n description.setText(location.getDescription());\n\n //Display hours\n TextView hours = (TextView) findViewById(R.id.activity_location_hours);\n hours.setText(location.getStringOpenHours());\n\n //Display google maps, map IF address can be found\n SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()\n .findFragmentById(R.id.activity_location_map);\n if (canFindLocationAddress()){\n\n //Set width and height of map\n mapFragment.getView().getLayoutParams().height = getMapHeight();\n mapFragment.getView().offsetLeftAndRight(50);\n mapFragment.getMapAsync(this);\n }\n\n //Hide the map otherwise\n else{\n mapFragment.getView().setVisibility(View.INVISIBLE);\n }\n }",
"@Override\n public void onLocationChanged(MapWidget v, Location location) {\n }",
"public void initMapMarkers() {\n\t\tmyMarkersCollection = new MapMarkersCollection();\n\t\tMapMarkerBuilder myLocMarkerBuilder = new MapMarkerBuilder();\n\t\tmyLocMarkerBuilder.setMarkerId(MARKER_ID_MY_LOCATION);\n\t\tmyLocMarkerBuilder.setIsAccuracyCircleSupported(true);\n\t\tmyLocMarkerBuilder.setAccuracyCircleBaseColor(new FColorRGB(32/255f, 173/255f, 229/255f));\n\t\tmyLocMarkerBuilder.setBaseOrder(-206000);\n\t\tmyLocMarkerBuilder.setIsHidden(true);\n\t\tBitmap myLocationBitmap = OsmandResources.getBitmap(\"map_pedestrian_location\");\n\t\tif (myLocationBitmap != null) {\n\t\t\tmyLocMarkerBuilder.setPinIcon(SwigUtilities.createSkBitmapARGB888With(\n\t\t\t\t\tmyLocationBitmap.getWidth(), myLocationBitmap.getHeight(),\n\t\t\t\t\tSampleUtils.getBitmapAsByteArray(myLocationBitmap)));\n\t\t}\n\t\tmyLocationMarker = myLocMarkerBuilder.buildAndAddToCollection(myMarkersCollection);\n\n\t\tmapView.addSymbolsProvider(myMarkersCollection);\n\n\t\t// Create context pin marker\n\t\tcontextPinMarkersCollection = new MapMarkersCollection();\n\t\tMapMarkerBuilder contextMarkerBuilder = new MapMarkerBuilder();\n\t\tcontextMarkerBuilder.setMarkerId(MARKER_ID_CONTEXT_PIN);\n\t\tcontextMarkerBuilder.setIsAccuracyCircleSupported(false);\n\t\tcontextMarkerBuilder.setBaseOrder(-210000);\n\t\tcontextMarkerBuilder.setIsHidden(true);\n\t\tBitmap pinBitmap = OsmandResources.getBitmap(\"map_pin_context_menu\");\n\t\tif (pinBitmap != null) {\n\t\t\tcontextMarkerBuilder.setPinIcon(SwigUtilities.createSkBitmapARGB888With(\n\t\t\t\t\tpinBitmap.getWidth(), pinBitmap.getHeight(),\n\t\t\t\t\tSampleUtils.getBitmapAsByteArray(pinBitmap)));\n\t\t\tcontextMarkerBuilder.setPinIconVerticalAlignment(MapMarker.PinIconVerticalAlignment.Top);\n\t\t\tcontextMarkerBuilder.setPinIconHorisontalAlignment(MapMarker.PinIconHorisontalAlignment.CenterHorizontal);\n\t\t}\n\t\tcontextPinMarker = contextMarkerBuilder.buildAndAddToCollection(contextPinMarkersCollection);\n\n\t\tmapView.addSymbolsProvider(contextPinMarkersCollection);\n\t}",
"public static void onMapReady() {\n mMap.addMarker(new MarkerOptions().position(new LatLng(latitude, longitude)).title(\"My Home\").snippet(\"Home Address\"));\n // For zooming automatically to the Dropped PIN Location\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(latitude,\n longitude), 12.0f));\n }",
"@Override\n\t\t\tpublic void onLocationSuccess(AMapLocation location) {\n\n\t\t\t\tmLoadingDialog.cancelDialog();\n\t\t\t\tll_mySite = new LatLng(location.getLatitude(), location\n\t\t\t\t\t\t.getLongitude());\n\n\t\t\t\tAppConfigUtil.LocalLocation.Location_latitude = String\n\t\t\t\t\t\t.valueOf(location.getLatitude());\n\t\t\t\tAppConfigUtil.LocalLocation.Location_longitude = String\n\t\t\t\t\t\t.valueOf(location.getLongitude());\n\t\t\t\tLatLng latLng;\n\t\t\t\tif (AppConfigUtil.LocalLocation.Location_latitude.equals(\"0.0\")\n\t\t\t\t\t\t|| AppConfigUtil.LocalLocation.Location_longitude\n\t\t\t\t\t\t\t\t.equals(\"0.0\")) {\n\t\t\t\t\tAppConfigUtil.LocalLocation.Location_latitude = MyApplication.Location_latitude;\n\t\t\t\t\tAppConfigUtil.LocalLocation.Location_longitude = MyApplication.Location_longitude;\n\t\t\t\t\tmNaviStart = new NaviLatLng(Double\n\t\t\t\t\t\t\t.valueOf(MyApplication.Location_latitude), Double\n\t\t\t\t\t\t\t.valueOf(MyApplication.Location_longitude));\n\t\t\t\t\tmStartPoints.add(mNaviStart);\n\t\t\t\t\tlatLng = new LatLng(Double\n\t\t\t\t\t\t\t.valueOf(MyApplication.Location_latitude), Double\n\t\t\t\t\t\t\t.valueOf(MyApplication.Location_longitude));\n\t\t\t\t} else {\n\t\t\t\t\tmNaviStart = new NaviLatLng(location.getLatitude(),\n\t\t\t\t\t\t\tlocation.getLongitude());\n\t\t\t\t\tmStartPoints.add(mNaviStart);\n\t\t\t\t\tlatLng = new LatLng(location.getLatitude(), location\n\t\t\t\t\t\t\t.getLongitude());\n\t\t\t\t}\n\n\t\t\t\t// 初始化当前位置\n\t\t\t\t// aMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n\t\t\t\taMap.moveCamera(CameraUpdateFactory.zoomTo(14));\n\t\t\t\taMap.addMarker(new MarkerOptions()\n\t\t\t\t\t\t.position(latLng)\n\t\t\t\t\t\t.title(\"我的位置\")\n\t\t\t\t\t\t.icon(BitmapDescriptorFactory\n\t\t\t\t\t\t\t\t.fromResource(R.drawable.location_marker))\n\t\t\t\t\t\t.draggable(true));\n\t\t\t}",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n\n\n String[] xy = new String[]{\"37.221900\",\"127.18800\",\"37.221804\",\"127.186695\",\"37.220000\",\"127.186666\"};\n\n ArrayList<LatLng> loc=new ArrayList<LatLng>();\n\n int count = 1;\n for (int i=0;i<xy.length;i++){\n\n double tmp = Double.parseDouble(xy[i]);\n double tmp2 = Double.parseDouble(xy[++i]);\n\n\n LatLng latLng = new LatLng(tmp, tmp2);\n\n loc.add(latLng);\n\n\n mMap.addMarker(new MarkerOptions().position(latLng).title(\"Pin\"+count).icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_pin_purple)));\n count++;\n }\n\n\n\n mMap.moveCamera(CameraUpdateFactory.newLatLng(loc.get(loc.size()-1)));\n\n\n// // 서울 위치\n// LatLng seoul = new LatLng(37.566535, 126.97796919);\n// mMap.addMarker(new MarkerOptions().position(seoul).title(\"Marker in Seoul\"));\n//\n// // 명지대 위치 추가\n// LatLng MJU = new LatLng(37.221804, 127.186695);\n// mMap.addMarker(new MarkerOptions()\n// .position(MJU)\n// .title(\"명지대\"));\n//\n// //핀 연결 확인용 좌표 추가\n// LatLng MJU2 = new LatLng(37.220000, 127.186666);\n// mMap.addMarker(new MarkerOptions()\n// .position(MJU2)\n// .title(\"명지대2\"));\n// mMap.moveCamera(CameraUpdateFactory.newLatLng(MJU2));\n\n // 카메라 줌\n mMap.animateCamera(CameraUpdateFactory.zoomTo(17.0f));\n\n // 인포 윈도우 클릭시 전화 걸기 -> 뭔가 게시물 쓸때 쓸수있을거 같아서 남겨둠\n mMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n @Override\n public void onInfoWindowClick(Marker marker) {\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:0312365043\"));\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }\n });\n\n //arraylist 다시 배열에 넣는거 아직 않마 까먹ㅇ멋어ㅏ\n LatLng[] line = {\n loc.get(0),loc.get(1),loc.get(2)\n };\n //좌표끼리 선 긋기 좌표가 추가 될때마다 새로운 선을 만들어야 하나.. 아니면 그냥 좌표하나씩 추가해야하나 고민\n //일단 좌표에 들어온 순서로 선이 그어짐 -> 시간별로 추가할수 있도록 해야 함\n\n\n //좌표 두개마다 각각의 polyline을 생성해야 각각 화살표로 나올수 있음\n //for문 사용해서 polyline 만들어보기\n// for(int i=0; i<line.length;){\n// Polyline polyline1 = googleMap.addPolyline(new PolylineOptions()\n// .clickable(true)\n// .add( line[i], line[++i]\n// ) .width(10)\n//\n// .geodesic(true));\n//\n//\n// }\n\n\n Polyline polyline1 = googleMap.addPolyline(new PolylineOptions()\n .clickable(true)\n .add( line\n ) .width(10)\n\n .geodesic(true));\n\n polyline1.setEndCap(new CustomCap(BitmapDescriptorFactory.fromResource(R.drawable.ic_arrow), 15));\n polyline1.setStartCap(new CustomCap(BitmapDescriptorFactory.fromResource(R.drawable.ic_circle), 15));\n\n\n\n googleMap.setOnPolylineClickListener(this);\n googleMap.setOnPolygonClickListener(this);\n\n\n\n }",
"private void inicMapComponent() {\n\t\tmapView = ((MapFragment) getFragmentManager()\n\t\t\t\t.findFragmentById(R.id.map)).getMap();\n\t\t\n\n\t\tlocationService = new LocationService(MapPage.this);\n\t\tlocationService.getLocation();\n\t\t\n\t\tmapView.setMyLocationEnabled(true);\n\n\t Location location = mapView.getMyLocation();\n\t LatLng myLocation = null; //new LatLng(44.8167d, 20.4667d);\n\t \n\t\tif (location != null) {\n\t myLocation = new LatLng(location.getLatitude(),\n\t location.getLongitude());\n\t } else {\n\t \tLocationManager service = (LocationManager) getSystemService(LOCATION_SERVICE);\n\t\t\tCriteria criteria = new Criteria();\n\t\t\tString provider = service.getBestProvider(criteria, false);\n\t\t\tLocation lastKnownLocation = service.getLastKnownLocation(provider);\n\t\t\tmyLocation = new LatLng(lastKnownLocation.getLatitude(),lastKnownLocation.getLongitude());\n\t }\n\t\t\n\t\tmapView.animateCamera(CameraUpdateFactory.newLatLngZoom(myLocation, 13));\n\t\t\n\t\tmapView.setPadding(0, 0, 0, 80);\n\t\t\n\t\tmapView.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onInfoWindowClick(Marker marker) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t//onMapWindwosClick(marker.getId(),marker.getTitle());\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t\n\t}",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n MarkerOptions m= new MarkerOptions().position(new LatLng(28.7041,77.1025)).icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE)).title(\"tap to get the alerts\");\n n= mMap.addMarker(m);\n\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng latLng) {\n\n if (!lati.equals(\"false\") && !longi.equals(\"false\")) {\n Double la = Double.parseDouble(lati);\n Double lo = Double.parseDouble(longi);\n // Add a marker in Sydney and move the camera\n n.setPosition(new LatLng(la,lo));\n n.setTitle(level);\n if(level.equals(\"hard\")){\n n.setIcon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_MAGENTA));}\n else\n {\n n.setIcon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));}\n LatLng posi = new LatLng(la, lo);\n mMap.moveCamera(CameraUpdateFactory.newLatLng(posi));\n }\n\n\n }\n });\n\n\n\n }",
"public AddressSetView addToView(ProgramLocation loc);",
"private void moveMap() {\n //String to display current latitude and longitude\n String msg = latitude + \", \" + longitude;\n\n //Creating a LatLng Object to store Coordinates\n LatLng latLng = new LatLng(latitude, longitude);\n\n //Adding marker to map\n mMap.addMarker(new MarkerOptions()\n .position(latLng) //setting position\n .draggable(true) //Making the marker draggable\n .title(\"you are here\")); //Adding a title\n\n //Moving the camera\n mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n\n //Animating the camera\n mMap.animateCamera(CameraUpdateFactory.zoomTo(15));\n\n //Displaying current coordinates in toast\n Toast.makeText(this, msg, Toast.LENGTH_LONG).show();\n// marker_address_tv.setText(msg);\n setAddressInTVFromLatlong(latitude, longitude);\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED){\n mMap.setMyLocationEnabled(true);\n }\n LatLng latLng = new LatLng(currentLocation.getLatitude(),currentLocation.getLongitude());\n MarkerOptions markerOptions = new MarkerOptions().position(latLng).title(\"You are Here\")\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.pin1));\n googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng,16));\n if (CurrentMark!=null)\n CurrentMark.remove();\n CurrentMark=googleMap.addMarker(markerOptions);\n intial();\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n //If the book already has a location set place a marker on that location and zoom in\n if (getIntent().hasExtra(\"lat\")) {\n LatLng currentlySetLocation = new LatLng(lat, lon);\n\n MarkerOptions markerOptions = new MarkerOptions();\n markerOptions.position(currentlySetLocation);\n String address = getMarkerAddress(currentlySetLocation);\n markerOptions.title(address);\n mMap.addMarker(markerOptions);\n mMap.moveCamera(CameraUpdateFactory.newLatLng(currentlySetLocation));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(currentlySetLocation, 15));\n }\n else {\n //if owner has location enabled, place marker on last location\n if (ActivityCompat.checkSelfPermission(SetLocationActivity.this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n fusedLocationProviderClient.getLastLocation()\n .addOnSuccessListener(new OnSuccessListener<Location>() {\n /**\n * Run when onSuccess button is clicked\n * @param location: location to get latitude and longitude for\n */\n @Override\n public void onSuccess(Location location) {\n if (location != null) {\n LatLng currentLocation = new LatLng(location.getLatitude(), location.getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLng(currentLocation));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(currentLocation, 15));\n }\n }\n });\n }\n }\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n /**\n * Run when onMapClick button is clicked to set latitude and longitude\n * @param latLng: set value for latitude and longitude\n */\n @Override\n public void onMapClick(LatLng latLng) {\n MarkerOptions markerOptions = new MarkerOptions();\n markerOptions.position(latLng);\n\n String address = getMarkerAddress(latLng);\n //if there is a valid address associated with marker\n if (address != null) {\n markerOptions.title(address);\n }\n mMap.clear();\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 15));\n mMap.addMarker(markerOptions);\n markerPlaced = true;\n lat = latLng.latitude;\n lon = latLng.longitude;\n }\n });\n\n //Save location button listener\n FloatingActionButton saveButton = findViewById(R.id.saveButton);\n saveButton.setOnClickListener(new View.OnClickListener() {\n /**\n * Run when button to save location is clicked\n * @param view: current view\n */\n @Override\n public void onClick(View view) {\n if (markerPlaced) {\n //Firestore handler method that adds geopoint as a field in database\n setPickupLocation(bookId, lat, lon);\n Toast toast = Toast.makeText(SetLocationActivity.this,\n \"Pickup location has been updated\", Toast.LENGTH_SHORT);\n toast.show();\n } else {\n Toast toast = Toast.makeText(SetLocationActivity.this,\n \"Place a marker first\", Toast.LENGTH_SHORT);\n toast.show();\n }\n }\n });\n }",
"private void setPickupLocation(){\n \t\t// Defines the AutoCompleteTextView pickupText\n \t\tacPickup = (AutoCompleteTextView)findViewById(R.id.pickupText);\n \t\t// Controls if the user has entered an address\n \t\tif(!acPickup.getText().toString().equals(\"\")){\n \t\t\t// Gets the GeoPoint of the written address\n \t\t\tGeoPoint pickupGeo = GeoHelper.getGeoPoint(acPickup.getText().toString());\n \t\t\t// Gets the MapLocation of the GeoPoint\n \t\t\tMapLocation mapLocation = (MapLocation) GeoHelper.getLocation(pickupGeo);\n \t\t\t// Finds the pickup location on the route closest to the given address\n \t\t\tLocation temp = findClosestLocationOnRoute(mapLocation);\n \t\t\n \t\t\t//Controls if the user has entered a NEW address\n \t\t\tif(pickupPoint != temp){\n \t\t\t\t// Removes old pickup point (thumb)\n \t\t\t\tif(overlayPickupThumb != null){\n \t\t\t\t\tmapView.getOverlays().remove(overlayPickupThumb);\n \t\t\t\t\toverlayPickupThumb = null;\n \t\t\t\t}\n \t\t\t\tmapView.invalidate();\n \t\t\t\t\n \t\t\t\t// If no dropoff point is specified, we add the pickup point to the map.\n \t\t\t\tif(dropoffPoint == null){\n \t\t\t\t\tpickupPoint = temp;\n \t\t\t\t\toverlayPickupThumb = drawThumb(pickupPoint, true);\n \t\t\t\t}else{ // If a dropoff point is specified:\n \t\t\t\t\tList<Location> l = getApp().getSelectedJourney().getRoute().getRouteData();\n \t\t\t\t\t// Checks to make sure the pickup point is before the dropoff point.\n \t\t\t\t\tif(l.indexOf(temp) < l.indexOf(dropoffPoint)){\n \t\t\t\t\t\t//makeToast(\"The pickup point has to be before the dropoff point\");\n \t\t\t\t\t\tAlertDialog.Builder ad = new AlertDialog.Builder(MapActivityAddPickupAndDropoff.this); \n \t\t\t\t\t\tad.setMessage(\"The pickup point has to be before the dropoff point\");\n \t\t\t\t\t\tad.setTitle(\"Unable to send request\");\n \t\t\t\t\t\tad.setPositiveButton(\"Ok\",new DialogInterface.OnClickListener() {\n \t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,int id) {\n \t\t\t\t\t\t\t\t\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t });\n \t\t\t\t\t\tad.show();\n \t\t\t\t\t}else{\n \t\t\t\t\t\t// Adds the pickup point to the map by drawing a cross\n \t\t\t\t\t\tpickupPoint = temp;\n \t\t\t\t\t\toverlayPickupThumb = drawThumb(pickupPoint, true);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}else{\n \t\t\t//makeToast(\"Please add a pickup address\");\n \t\t\tAlertDialog.Builder ad = new AlertDialog.Builder(MapActivityAddPickupAndDropoff.this); \n \t\t\tad.setMessage(\"Please add a pickup address\");\n \t\t\tad.setTitle(\"Unable to send request\");\n \t\t\tad.setPositiveButton(\"Ok\",new DialogInterface.OnClickListener() {\n \t\t\t\tpublic void onClick(DialogInterface dialog,int id) {\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t });\n \t\t\tad.show();\n \t\t}\n \t}",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n getDataFromDatabase();\n\n // Add a marker in Sydney and move the camera\n //LatLng hellas = new LatLng(38.311449, 25.022821);\n // mMap.addMarker(new MarkerOptions().position(hellas).title(\"Marker in Aegean Sea\"));\n //mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(hellas,5));\n\n //Initalize MyLocation stuff\n mMap.setMyLocationEnabled(true);\n mMap.setOnMyLocationButtonClickListener(this);\n mMap.setOnMyLocationClickListener(this);\n\n //setMarkersOnMap();\n\n if(mLocationPermissionGranted){\n getDeviceLocation();\n }\n\n\n ic_plus.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n DEFAULT_ZOOM = 17f;\n getDeviceLocation();\n\n //double lat = currentLocation.getLatitude();\n //double lon = currentLocation.getLongitude();\n LatLng currlatlon = new LatLng(currentLocation.getLatitude()+0.0002,currentLocation.getLongitude()+0.0002);\n\n\n curraddmarker = mMap.addMarker(new MarkerOptions().position(currlatlon).draggable(true));\n currentMarkerLat=curraddmarker.getPosition().latitude;\n currentMarkerLon=curraddmarker.getPosition().longitude;\n hideUI();\n showConfirm();\n\n }\n });\n\n addMarker.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n\n showUI();\n addMarker.setVisibility(View.GONE);\n\n //double lat = curraddmarker.getPosition().latitude;\n //double lon = curraddmarker.getPosition().longitude;\n\n //Toast.makeText(AEDMapActivity.this, \"Lat:\"+currentMarkerLat+\" Lon:\"+currentMarkerLon, Toast.LENGTH_SHORT).show();\n Intent i =new Intent(AEDMapActivity.this, addMarkerActivity.class);\n i.putExtra(\"Lat\",curraddmarker.getPosition().latitude);\n i.putExtra(\"Lon\",curraddmarker.getPosition().longitude);\n startActivity(i);\n }\n });\n\n cancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n hideConfirm();\n showUI();\n curraddmarker.remove();\n\n getDeviceLocation();\n\n }\n });\n\n\n\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener()\n {\n @Override\n public void onMapClick(LatLng arg0)\n {\n if(menuUI){\n if(markerInfo){\n hideMarkerInfoIcon();\n return;\n }\n\n if(adminEkav || adminDimos){\n hideReportIcon();\n }\n\n menuUI = false;\n hideUI();\n\n\n }\n else{\n menuUI = true;\n showUI();\n if(adminEkav || adminDimos){\n showReportIcon();\n }\n }\n }\n });\n\n\n\n mMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {\n @Override\n public boolean onMarkerClick(Marker marker) {\n\n showMarkerInfoIcon();\n\n Log.d(TAG,marker.getTag().toString());\n\n if(!markerMap.isEmpty()){\n for(int i=0; i<markerMap.size(); i++) {\n marker_id = (String) markerMap.get(i).get(\"Id\");\n //Log.d(TAG,id);\n if(marker_id.equals(marker.getTag().toString())){\n marker_name = (String) markerMap.get(i).get(\"Name\");\n marker_desc = (String) markerMap.get(i).get(\"Description\");\n marker_pic = (String) markerMap.get(i).get(\"ImageUrl\");\n marker_geo = (GeoPoint) markerMap.get(i).get(\"Geolocation\");\n\n Log.d(TAG,\"Marker Clicked!! - name: \"+marker_name+\" desc: \"+marker_desc+\" geo: \"+marker_geo+ \" imgurl: \"+marker_pic);\n\n ic_info.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent i =new Intent(AEDMapActivity.this, MarkerInfoActivity.class);\n i.putExtra(\"Id\",marker_id);\n i.putExtra(\"Name\",marker_name);\n i.putExtra(\"Description\",marker_desc);\n i.putExtra(\"Lat\",marker_geo.getLatitude());\n i.putExtra(\"Lon\",marker_geo.getLongitude());\n i.putExtra(\"imgUrl\",marker_pic);\n startActivity(i);\n }\n });\n\n break;\n }\n }\n }\n\n return false;\n }\n });\n\n mMap.setOnMarkerDragListener(new GoogleMap.OnMarkerDragListener() {\n\n\n @Override\n public void onMarkerDragStart(Marker marker) {\n\n }\n\n @Override\n public void onMarkerDrag(Marker marker) {\n\n }\n\n @Override\n public void onMarkerDragEnd(Marker marker) {\n currentMarkerLat=curraddmarker.getPosition().latitude;\n currentMarkerLon=curraddmarker.getPosition().longitude;\n }\n });\n\n }",
"private void drawUserMarker(Location location) {\n LatLng current_position = new LatLng(location.getLatitude(), location.getLongitude());\n if(mUserMarker == null) {\n mUserMarker = mMap.addMarker(\n new MarkerOptions()\n .position(current_position)\n .snippet(\"Lat:\" + location.getLatitude() + \" Lng:\" + location.getLongitude())\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE))\n .title(\"My Position\")\n );\n }\n else {\n mUserMarker.setPosition(current_position);\n mUserMarker.setSnippet(\"Lat:\" + location.getLatitude() + \" Lng:\" + location.getLongitude());\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n Log.d(logTag,\"4\");\n mMap = googleMap;\n mMap.getUiSettings().setZoomControlsEnabled(true);\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, LOCATION_REQUEST);\n return;\n }\n mMap.setOnMapLongClickListener(this);\n mMap.setOnInfoWindowClickListener( this );\n mMap.setOnMapClickListener(this);\n mMap.setMyLocationEnabled(true);\n ll=new LatLng(currentLocation.getLatitude(),currentLocation.getLongitude());\n MarkerOptions options = new MarkerOptions().position(ll);\n options.title(getAddressFromLatLng(ll));\n\n Log.d(logTag,\"5\");\n }",
"@Override\n\t\tpublic void onLocationChanged(Location location) {\n\t\t\t\n\t\t\tGeoPoint p = new GeoPoint((int) (location.getLatitude() * 1E6), (int) (location.getLongitude() * 1E6));\n\t\t\toverlayHome = new MyOverlayItem(p, getString(R.string.Casa),getString(R.string.HelloCasa));\n\t\t\titemizedoverlay.addOverlay(overlayHome);\n\t\t\tContentValues initialValues = new ContentValues();\n\t\t\tinitialValues.put(Home.LATITUDE, p.getLatitudeE6());\n\t\t\tinitialValues.put(Home.LONGITUDE, p.getLongitudeE6());\n\t\t\tgetContentResolver().insert(Home.CONTENT_URI, initialValues);\n\t\t\tmapView.invalidate();\n\t\t\tmapView.getController().animateTo(p);\n\t\t\tToast.makeText(Map.this, \"Localização Gps\", Toast.LENGTH_SHORT).show();\n\t\t}",
"private void addMakerToMap() {\n if (mapboxMap != null) {\r\n mapboxMap.removeAnnotations();\r\n if (res.getData().size() > 0) {\r\n for (UserBasicInfo info : res.getData()) {\r\n if (info.getRole().equalsIgnoreCase(\"student\")) {\r\n if (isStudentSwitchOn) {\r\n setMarker(info);\r\n }\r\n }\r\n if (info.getRole().equalsIgnoreCase(\"teacher\")) {\r\n if (isTeacherSwitchOn) {\r\n setMarker(info);\r\n }\r\n }\r\n }\r\n } else {\r\n getMvpView().noRecordFound();\r\n }\r\n }\r\n }",
"@Override\n public void onMapLongClick(LatLng latLng) {\n String newLocation = null;\n Geocoder gcd = new Geocoder(getBaseContext(), Locale.getDefault());\n List<Address> addresses = null;\n try {\n addresses = gcd.getFromLocation(latLng.latitude, latLng.longitude, 1);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (addresses.size() > 0) {\n newLocation = addresses.get(0).getLocality();\n }\n\n // Set new marker attributes\n MapLocation newMarker = new MapLocation();\n newMarker.setLocation(newLocation);\n newMarker.setLatitude(latLng.latitude);\n newMarker.setLongitude(latLng.longitude);\n\n // Add to firebase\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n DatabaseReference dbRef = database.getReference();\n DatabaseReference newRef = dbRef.push();\n newRef.setValue(newMarker);\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n DecimalFormat formater = new DecimalFormat(\"#.####\");\n gMap = googleMap;\n LatLng userCoords = new LatLng(myLatitude, myLongitude);\n gMap.addMarker(new MarkerOptions()\n .position(userCoords)\n .title(\"Your Coordinates: \" + formater.format(myLatitude) + \"° N\" + \", \" + formater.format(myLongitude) + \"° W\"));\n gMap.animateCamera(CameraUpdateFactory.newLatLngZoom(userCoords, 15));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n mMap.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() {\n @Override\n public View getInfoWindow(Marker marker) {\n return null;\n }\n\n @Override\n public View getInfoContents(Marker marker) {\n View v = getLayoutInflater().inflate(R.layout.layout_marker, null);\n\n TextView info= (TextView) v.findViewById(R.id.info);\n TextView hotelname= (TextView) v.findViewById(R.id.info1);\n\n\n hotelname.setText(\"\"+HotelName+\"\");\n info.setText(\"\"+CurrencySymbol+\"\"+TotalFare);\n\n return v;\n }\n });\n int height = 180;\n int width = 200;\n BitmapDrawable bitmapdraw=(BitmapDrawable)getResources().getDrawable(R.drawable.blu_pointer);\n Bitmap b=bitmapdraw.getBitmap();\n Bitmap smallMarker = Bitmap.createScaledBitmap(b, width, height, false);\n\n\n\n\n\n mMap.getUiSettings().setMapToolbarEnabled(false);\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(Lati,Longi);\n mMap.addMarker(new MarkerOptions().position(sydney).\n title(HotelName).\n snippet(\"\"+CurrencySymbol+\" \"+TotalFare).\n icon(BitmapDescriptorFactory.fromBitmap(smallMarker)));\n CameraPosition cameraPosition = new CameraPosition.Builder().target(sydney).zoom(18).build();\n CameraUpdate cameraUpdate = CameraUpdateFactory.newCameraPosition(cameraPosition);\n //googleMap.moveCamera(cameraUpdate);\n mMap.animateCamera(cameraUpdate);\n //mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }",
"private static void setUpMap() {\n onMapReady();\n /*mMap.setMyLocationEnabled(true);\n // For dropping a marker at a point on the Map\n mMap.addMarker(new MarkerOptions().position(new LatLng(latitude, longitude)).title(\"My Home\").snippet(\"Home Address\"));\n // For zooming automatically to the Dropped PIN Location\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(latitude,\n longitude), 12.0f));*/\n }",
"private void drawMarker1(LatLng point){\n MarkerOptions markerOptions=new MarkerOptions();\r\n\r\n // Setting latitude and longitude for the marker\r\n markerOptions.position(point);\r\n\r\n markerOptions.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));\r\n\r\n // Adding marker on the Google Map\r\n mMap.addMarker(markerOptions);\r\n\r\n // marker.showInfoWindow();\r\n }",
"public void displayNelson(TextView selectedCoord, MarkerOptions markerOptions, DecimalFormat formater) {\n selectedCoord.setText(\"Selected Park: 41.9667° N, -70.6715° W\");\n locationImage.setImageResource(R.drawable.nelson);\n markerOptions\n .position(arrayList.get(0))\n .title(\"Nelson Memorial Park:\\n\" + formater.format(arrayList.get(0).latitude) + \"° N\" + \", \" + formater.format(arrayList.get(0).longitude) + \"° W\");\n //Zoom the Marker\n gMap.animateCamera(CameraUpdateFactory.newLatLngZoom(arrayList.get(0), 15));\n //Add Marker On Map\n gMap.addMarker(markerOptions);\n }",
"@Override\n\t\t\tpublic void onLocationChanged(Location location) {\n\t\t\t\t\n\t\t\t\tmLatitude = location.getLatitude();\n\t\t\t\tmLongitude = location.getLongitude();\n\t\t\t\t\n\t\t\t\t LatLng point = new LatLng(mLatitude, mLongitude);\n\t\t\t\t\n\t\t\t\t try {\n\t\t\t\t \taddresses = geocoder.getFromLocation(location.getLatitude(), location.getLongitude(), 1);\n\t\t\t\t } catch (IOException e) {\n\t\t\t\t \t// TODO Auto-generated catch block\n\t\t\t\t \te.printStackTrace();\n\t\t\t\t }\n\t\t\t\t MarkerOptions maker= new MarkerOptions().position(point);\n\n\t\t\t\t address = addresses.get(0).getAddressLine(0);\n\t\t\t\t if(address==null)\n\t\t\t\t {\n\t\t\t\t\t maker.title(\"My Location\");\n\t\t\t\t\t\tgoogleMap.addMarker(maker);\n\t\t\t\t }\n\t\t\t\t else\n\t\t\t\t {\n\t\t\t\t\tmaker.title(\"\"+address);\n\t\t\t\t\tgoogleMap.addMarker(maker);\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t String type = mPlaceType;\n\t\t\t StringBuilder sb = new StringBuilder(\"https://maps.googleapis.com/maps/api/place/nearbysearch/json?\");\n\t\t\t sb.append(\"location=\"+mLatitude+\",\"+mLongitude);\n\t\t\t sb.append(\"&radius=1500\");\n\t\t\t sb.append(\"&types=\"+type);\n\t\t\t sb.append(\"&sensor=true\");\n\t\t\t sb.append(\"&key=AIzaSyAwZSGS1kZG7_UuqxqHH3MdO1hbwB2cjag\"); \n\t\t\t PlacesTask placesTask = new PlacesTask(); \n\t\t\t placesTask.execute(sb.toString());\n\t\t\t \n\t\t\t \n\t\t\t if(zoomm)\n\t\t\t {\n\t\t\t \t googleMap.animateCamera(CameraUpdateFactory.newCameraPosition(new CameraPosition(point, 15, 30, 0)));\n\t\t\t \t zoomm=false;\n\t\t\t }\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onMapReady(GoogleMap map) {\n mMap = map;\n\n // Use a custom info window adapter to handle multiple lines of text in the\n // info window contents.\n mMap.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() {\n\n @Override\n // Return null here, so that getInfoContents() is called next.\n public View getInfoWindow(Marker arg0) {\n return null;\n }\n\n @Override\n public View getInfoContents(Marker marker) {\n // Inflate the layouts for the info window, title and snippet.\n View infoWindow = getLayoutInflater().inflate(R.layout.custom_info_contents,\n (FrameLayout) findViewById(R.id.map), false);\n\n TextView title = ((TextView) infoWindow.findViewById(R.id.title));\n title.setText(marker.getTitle());\n\n TextView snippet = ((TextView) infoWindow.findViewById(R.id.snippet));\n snippet.setText(marker.getSnippet());\n\n return infoWindow;\n }\n });\n\n // Turn on the My Location layer and the related control on the map.\n updateLocationUI();\n\n // Get the current location of the device and set the position of the map.\n getDeviceLocation();\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n Log.d(\"TEST\", \"MAP READY\");\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n\n LatLng curLocation = new LatLng(latitude,longitude);\n CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLngZoom(curLocation,15.0f);\n setPin(latitude,longitude, null);\n mMap.moveCamera(cameraUpdate);\n for(int i = 0; i < restaurantList.size(); i++){\n double lat = restaurantList.get(i).getLatitude();\n double lng = restaurantList.get(i).getLongitude();\n setPin(lat, lng, restaurantList.get(i));\n }\n //Check we have the users permission to access their location\n // if we dont have it, we have to request it\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)== PackageManager.PERMISSION_GRANTED){\n mMap.setMyLocationEnabled(true);\n\n } else {\n //we dont have permission, so we have to ask for it\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_LOCATION_REQUEST_CODE);\n //run asychronously.. show an alert dialog\n //user can choose allow or deny\n }\n }",
"@Override\n public void onMapReady(GoogleMap map) {\n mMap = map;\n\n // Use a custom info window adapter to handle multiple lines of text in the\n // info window contents.\n mMap.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() {\n\n @Override\n // Return null here, so that getInfoContents() is called next.\n public View getInfoWindow(Marker arg0) {\n return null;\n }\n\n @Override\n public View getInfoContents(Marker marker) {\n // Inflate the layouts for the info window, title and snippet.\n View infoWindow = getLayoutInflater().inflate(R.layout.custom_info_contents,\n (FrameLayout) findViewById(R.id.map), false);\n\n TextView title = ((TextView) infoWindow.findViewById(R.id.title));\n title.setText(marker.getTitle());\n\n TextView snippet = ((TextView) infoWindow.findViewById(R.id.snippet));\n snippet.setText(marker.getSnippet());\n\n return infoWindow;\n }\n });\n\n // Turn on the My Location layer and the related control on the map.\n updateLocationUI();\n\n // Get the current location of the device and set the position of the map.\n getDeviceLocation();\n\n initializeOtherSettlements(new LatLng(mLastKnownLocation.getLatitude(), mLastKnownLocation.getLongitude()));\n initializeQuestLocations(new LatLng(mLastKnownLocation.getLatitude(), mLastKnownLocation.getLongitude()));\n\n mMap.setOnMarkerClickListener(this);\n mMap.setOnMapClickListener(this);\n mMap.setOnPoiClickListener(this);\n mMap.setOnInfoWindowClickListener(this);\n\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(mLastKnownLocation.getLatitude(),\n mLastKnownLocation.getLongitude()), 9));\n\n final PlaceAutocompleteFragment autocompleteFragment = (PlaceAutocompleteFragment)\n getFragmentManager().findFragmentById(R.id.place_autocomplete_fragment);\n\n autocompleteFragment.getView().setBackgroundColor(Color.WHITE);\n autocompleteFragment.getView().setVisibility(View.GONE);\n autocompleteFragment.setOnPlaceSelectedListener(new PlaceSelectionListener() {\n @Override\n public void onPlaceSelected(Place place) {\n //Bias results towards the user's current location\n /*autocompleteFragment.setBoundsBias(new LatLngBounds(\n new LatLng(place.getLatLng().latitude, place.getLatLng().longitude),\n new LatLng(place.getLatLng().latitude, place.getLatLng().longitude)));*/\n\n //Get info about the selected place.\n //Log.i(TAG, \"Place: \" + place.getName());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(place.getLatLng().latitude,\n place.getLatLng().longitude), mMap.getCameraPosition().zoom));\n\n addMarkerAtPoi(place);\n }\n\n @Override\n public void onError(Status status) {\n // TODO: Handle the error.\n Log.i(TAG, \"An error occurred: \" + status);\n }\n });\n\n updateMapHistory();\n updateCustomTimeUI();\n }",
"public void displayEllis(TextView selectedCoord, MarkerOptions markerOptions, DecimalFormat formater) {\n selectedCoord.setText(\"Selected Park: 41.8453° N, -70.5413° W\");\n locationImage.setImageResource(R.drawable.ellisville);\n markerOptions\n .position(arrayList.get(1))\n .title(\"Ellisville Harbor State Park:\\n\" + formater.format(arrayList.get(1).latitude) + \"° N\" + \", \" + formater.format(arrayList.get(1).longitude) + \"° W\");\n //Zoom the Marker\n gMap.animateCamera(CameraUpdateFactory.newLatLngZoom(arrayList.get(1), 15));\n //Add Marker On Map\n gMap.addMarker(markerOptions);\n }",
"@Override\n public void onSuccess(Location location) {\n if (location != null) {\n LatLng myLocation = new LatLng(location.getLatitude(), location.getLongitude());\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(myLocation, 15));\n }\n }",
"@Override\n public void onLocationChanged(Location location) {\n\n try {\n Geocoder geocoder = new Geocoder(getActivity(), Locale.getDefault());\n List<Address> addresses = geocoder.getFromLocation(location.getLatitude(), location.getLongitude(), 1);\n address.setText(address.getText() + \"\\n\"+addresses.get(0).getAddressLine(0));\n }catch(Exception e)\n {\n\n }\n\n }",
"@Override\n public void onLocationChanged(Location location) {\n //Log.i(TAG, \"New Location: \" + location.getLatitude() + \" \" + location.getLongitude());\n if (isDrawing) {\n //We are drawing so add a point and move the camera accordingly\n currentDrawing.addPoint(new LatLng(location.getLatitude(), location.getLongitude()), currentColor);\n LatLng userLocation = new LatLng(location.getLatitude(), location.getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(userLocation, 20));\n }\n }",
"private void agregarMarcador(double lat, double lon) {\n LatLng coord = new LatLng(lat, lon);\n CameraUpdate miUbi = CameraUpdateFactory.newLatLngZoom(coord, 16);\n if (mPrueba != null) mPrueba.remove();\n mPrueba = mMap.addMarker(new MarkerOptions()\n .position(coord)\n .title(\"Reporte\")\n .snippet(\"Reportar\"));\n mPrueba.setDraggable(true);\n mPrueba.setTag(0);\n mMap.animateCamera(miUbi);\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n\n final LatLng[] myLoc = {new LatLng(1, 1)};\n mMap.setMyLocationEnabled(true);\n// mMap.setOnMyLocationChangeListener(new GoogleMap.OnMyLocationChangeListener() {\n// @Override\n// public void onMyLocationChange(Location location) {\n// myLoc[0] = new LatLng(location.getLatitude(), location.getLongitude());\n// mMap.addCircle(new CircleOptions().center(myLoc[0]));\n// mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(myLoc[0], 15));\n// }\n// });\n\n mMap.addCircle(new CircleOptions().center(new LatLng(lat, lng)));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(lat, lng), 18));\n\n mMap.setOnPoiClickListener(new GoogleMap.OnPoiClickListener() {\n @Override\n public void onPoiClick(PointOfInterest poi) {\n\n }\n });\n\n mMap.getUiSettings().setMapToolbarEnabled(true);\n\n // Add a marker in Sydney and move the camera\n\n\n showItems(lat, lng, radius);\n }",
"private void showMarker() {\n\n if (myMarker == null) {\n MarkerOptions options = new MarkerOptions();//1 option co 2 thu k thieu vi tri ,hinh anh\n options.position(new LatLng(myLocation.getLatitude(), myLocation.getLongitude()));//vi tri kinh do vi do,no tra ve vi tri cuoi cung gps nhan dc ,neu\n options.title(\"dung123\");\n options.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));\n //newu chua co thif sedc sinh ra bang cach add\n googleMap.addMarker(options);\n// myMarker.setTag(\"Hello\");//co the truyen doi tuig vao duoi window marker getTag\n } else {\n myMarker.setPosition(new LatLng(myLocation.getLatitude(), myLocation.getLongitude()));\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n Intent intent = getIntent();\n String title=intent.getStringExtra(\"title\");\n Double lat = intent.getExtras().getDouble(\"latitude\");\n Double lng = intent.getExtras().getDouble(\"longitude\");\n LatLng latLng= new LatLng(lat,lng);\n MarkerOptions markerOptions = new MarkerOptions()\n .position(latLng)\n .title(title)\n .anchor((float) 0.5, (float) 0.5);\n //.snippet(\"Время: \" + MainActivity.time.get(MainActivity.position));\n markerOptions.icon(BitmapDescriptorFactory.fromResource(R.drawable.marker));\n mMap.addMarker(markerOptions);\n mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (checkLocationPermission()) {\n getLocation();\n mMap.setMyLocationEnabled(true);\n\n }\n } else {\n getLocation();\n }\n mMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);\n\n mMap.getUiSettings().setZoomControlsEnabled(true);\n\n\n mMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {\n @Override\n public boolean onMarkerClick(Marker marker) {\n VoterPojo mPojo = (VoterPojo) marker.getTag();\n if (mPojo != null) {\n // Toast.makeText(getApplicationContext(), mPojo.getVoterName(), Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(getApplicationContext(), marker.getTitle(), Toast.LENGTH_LONG).show();\n\n }\n return false;\n }\n });\n\n mDialog.show();\n\n mReference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n mDialog.dismiss();\n\n mVotersList = new ArrayList<>();\n\n for (DataSnapshot indi : dataSnapshot.getChildren()) {\n\n VoterPojo mPojo = indi.getValue(VoterPojo.class);\n mVotersList.add(mPojo);\n }\n\n placeMarkers(mMap, mVotersList);\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n mDialog.dismiss();\n\n }\n });\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n\n Intent intent = getIntent();\n String postCode = intent.getStringExtra(\"Postcode\");\n\n Geocoder geocoder1 = new Geocoder(this);\n // try {\n\n // List<Address> addresses1 = geocoder1.getFromLocationName(postCode, 1);\n // if (addresses1 != null && !addresses1.isEmpty()) {\n // Address address1 = addresses1.get(0);\n // Use the address as needed\n // latitude_start = address1.getLatitude();\n // longitude_start = address1.getLongitude();\n // String message = \"Latitude: \"+address1.getLatitude()+\", Longitude: \"+address1.getLongitude();\n // Toast.makeText(this, message, Toast.LENGTH_LONG).show();\n//\n\n // } else {\n // Display appropriate message when Geocoder services are not available\n // Toast.makeText(this, \"Unable to geocode zipcode\", Toast.LENGTH_LONG).show();\n // latitude_start = 0;\n // longitude_start = 0;\n // }\n\n // LatLng latLng = new LatLng(latitude_start, longitude_start);\n\n // } catch (IOException e) {\n // // handle exception\n // }\n\n //mMap.addMarker(new MarkerOptions().position(new LatLng(currentLatitude, currentLongitude)).title(\"Current Location\"));\n // MarkerOptions options = new MarkerOptions()\n // .position(latLng)\n // .title(\"I am here!\");\n // mMap.addMarker(options);\n // mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n\n // Moving Camera to a Location with animation\n\n // CameraPosition cameraPosition = new CameraPosition.Builder()\n // .target(latLng).zoom(12).build();\n\n // mMap.animateCamera(CameraUpdateFactory\n // .newCameraPosition(cameraPosition));\n\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n // Add a marker in Sydney and move the camera\n LatLng loc = new LatLng(v, v1);\n mMap.addMarker(new\n MarkerOptions().position(loc).title(\"0000000000\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(loc));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n googleMap.setOnMapClickListener(new OnMapClickListener() {\n\n @Override\n public void onMapClick(LatLng arg0) {\n\n\n // TODO Auto-generated method stub\n try {\n Geocoder geo = new Geocoder(MapsActivity.this, Locale.getDefault());\n List<Address> add = geo.getFromLocation(arg0.latitude, arg0.longitude, 1);\n String selectedCountry;\n if (add.size() > 0) {\n selectedCountry = add.get(0).getCountryName();\n selectedStateOrCountry = selectedCountry;\n\n //Log.d(\"country\", selectedCountry);\n //For usa go with states . All other countries - it gives the capital\n if (selectedCountry.equalsIgnoreCase(\"United States\") ||\n selectedCountry.equalsIgnoreCase(\"US\")) {\n selectedStateOrCountry = add.get(0).getAdminArea();\n }\n //Log.d(\"state\", selectedStateOrCountry);\n ConvertTextToSpeech();\n }\n } catch (Exception e) {\n //Log.e(TAG, \"Failed to initialize map\", e);\n }\n }\n });\n mMap = googleMap;\n\n // Add a marker in California and move the camera\n LatLng californiaMarker = new LatLng(37, -122);\n mMap.addMarker(new MarkerOptions().position(californiaMarker).title(\"Click anywhere to get more info\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(californiaMarker));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng korea = new LatLng(0,0);\n LatLng busan = new LatLng(ListOfLat[0], ListOfLong[0]);\n mMap.addMarker(new MarkerOptions().position(busan).icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE)).title(\"Point : 1\"));\n for(int i=1; i<=size; i++){\n korea = new LatLng(ListOfLat[i-1], ListOfLong[i-1]);\n busan = new LatLng(ListOfLat[i], ListOfLong[i]);\n PolylineOptions aa = new PolylineOptions().add(korea).add(busan);\n mMap.addMarker(new MarkerOptions().position(busan).icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE)).title(\"Point : \"+(i+1)));\n mMap.addPolyline(aa);\n }\n\n mMap.moveCamera(CameraUpdateFactory.newLatLng(busan));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n gpsTracker = new GPSTracker(this);\n\n // TODO Cek Permission >= Marshmellow\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED\n &&\n ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M &&\n checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION\n }, 110);\n return;\n }\n }\n\n if (gpsTracker.canGetLocation()) {\n latawal = gpsTracker.getLatitude();\n lonawal = gpsTracker.getLongitude();\n namelocationawal = myLocation(latawal, lonawal);\n }\n\n // Add a marker in Sydney and move the camera\n LatLng myLocation = new LatLng(latawal, lonawal);\n locawal.setText(namelocationawal);\n mMap.addMarker(new MarkerOptions().position(myLocation).title(namelocationawal));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(myLocation, 14));\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\n mMap.setPadding(30, 80, 30, 80);\n }",
"@Override\n public void onClick( View v ) {\n SharedPreferences sp = Objects.requireNonNull( getActivity() )\n .getSharedPreferences( Weather_Preference, 0 );\n SharedPreferences.Editor e = sp.edit();\n float curLat;\n float curLon;\n if ( cLocate != null ) {\n curLat = ( float ) cLocate.latitude;\n curLon = ( float ) cLocate.longitude;\n e.putString( MAP_LAT_KEY, String.valueOf( curLat ) );\n e.putString( MAP_LON_KEY, String.valueOf( curLon ) );\n Toast.makeText( mMaster, \"Latitude: \"\n .concat( String.valueOf( curLat ) )\n .concat( \" and Longitude: \" )\n .concat( String.valueOf( curLon ) )\n .concat( \" have been applied\" ),\n Toast.LENGTH_SHORT )\n .show();\n } else {\n /*Toast.makeText( mMaster, \"Error setting the location, check your GPS settings and permissions\", Toast.LENGTH_SHORT ).show();*/\n Toast.makeText( mMaster, \"Error setting the location; tap a location to drop a pin\", Toast.LENGTH_LONG ).show();\n }\n e.apply();\n }",
"@Override\n public void onLocationChanged(Location loc)\n {\n \t\n \tint lat = (int) (loc.getLatitude() * 1E6);\n\t\t\tint lng = (int) (loc.getLongitude() * 1E6);\n\t\t\t point = new GeoPoint(lat, lng);\n\t\t\t \n\t\t\t /** remove the previous overlay so the another\n\t\t\t can be added **/\n\t\t\t itemizedOverlay.removeOverlay(0);\n\t\t\t \n\t\t\n\t\t\t //this follows the same steps in the OnCreate function at start up.\n\t\t\t // //Initialize a normal MapOVerlay item with new point.\n\t\t\t OverlayItem overlayitem = new OverlayItem(point, \"kiddda!\", \"sasri kal!\");\n\t\t \n\t\t itemizedOverlay.addOverlay(overlayitem);\n\t\t mapOverlays.add(itemizedOverlay);\n\t\t // move to new point.\n\t\t\tcontroller.animateTo(point); \n\t\t\t \n\t\n\t\t\t//debug message to say the location has been read.\n\t\t\tLog.i(\"Listener\", \"location read\");\n\t\t\t \n\t\t\n\n\t\t \n // String Text = \"My current location is: \" +\n\t\t\tLog.i(\"service check\",\" Latitude = \" + loc.getLatitude() +\n \" Longitude = \" + loc.getLongitude());\n \n // Toast.makeText( getApplicationContext(), Text, Toast.LENGTH_LONG).show();\n \n }",
"@Override\n public void onLocationChanged(Location location) {\n double latitude = location.getLatitude();\n double longitude = location.getLongitude();\n ArrayList<LatLng> list = new ArrayList<LatLng>();\n //get the location name from latitude and longitude\n Geocoder geocoder = new Geocoder(getApplicationContext());\n /*CameraUpdate center =\n CameraUpdateFactory.newLatLng(new LatLng(10.339012, 123.911545));\n CameraUpdate zoom = CameraUpdateFactory.zoomTo(18);\n\n mMap.moveCamera(center);\n mMap.animateCamera(zoom);*/\n try {\n List<Address> addresses =\n geocoder.getFromLocation(latitude, longitude, 1);\n String result = addresses.get(0).getSubLocality() + \":\";\n result += addresses.get(0).getLocality() + \":\";\n result += addresses.get(0).getCountryCode();\n latLng = new LatLng(latitude, longitude);\n pos=latLng;\n //Marker.remove();\n mMap.clear();\n\n points.add(latLng); //added\n\n if(active)\n {\n latitLong(pos);\n }\n redrawLine(); //added\n\n /*Polyline line = mMap.addPolysline(new PolylineOptions()\n .add(pos)\n .width(5)\n .color(Color.RED));*/\n\n //===============memarker\n /*mMap.addMarker(new MarkerOptions().position(latLng).title(result).icon(BitmapDescriptorFactory\n .fromResource(R.drawable.memarker)));*/\n\n\n\n //list.add(latLng);\n //drawPolyLineOnMap(list);\n /* PolylineOptions options = new PolylineOptions().width(5).color(Color.BLUE).geodesic(true);\n for (int z = 0; z < list.size(); z++) {\n LatLng point = list.get(z);\n options.add(point);\n }\n polyline = mMap.addPolyline(options);*/\n\n //polylines.setPoints(list);\n\n //PolylineOptions polylines = new PolylineOptions().width(5).color(Color.BLUE).geodesic(true).add(list);\n //mMap.setOnPolylineClickListener(this);\n //=====================\n /*polyline = new PolylineOptions();\n polyline.color(ORANGE);\n polyline.width(5);\n list.add(latLng);\n polyline.addAll(list);\n //mMap.addPolyline(polyline);\n mMap.addPolyline(polyline);*/\n //=====================\n\n\n //==========\n profileMarker(latLng);\n //===============\n //mMap.setMaxZoomPreference(18);\n\n\n //Toast.makeText(getBaseContext(),\n //range+\"\", Toast.LENGTH_LONG).show();\n CircleOptions circleOptions = new CircleOptions()\n .center(latLng)\n .radius(range)\n .strokeWidth(2)\n .strokeColor(ORANGE)\n .fillColor(Color.parseColor(\"#500084d3\")); //\n // Supported formats are: #RRGGBB #AARRGGBB\n // #AA is the alpha, or amount of transparency\n\n mMap.addCircle(circleOptions);\n\n //----------setMapUI();\n //=============//mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n\n //mMap.moveCamera(CameraUpdateFactory.newLatLngBounds(latLng, 0));\n //====================================================rotunda\n\n\n /*Location mepzLocation = new Location(\"mepzlocation\");\n mepzLocation.setLatitude(10.348958);//10.348958, 123.903147\n mepzLocation.setLongitude(123.903147);\n mepszone = mMap.addMarker(new MarkerOptions()\n .position(TWENTYKPH)\n .title(\"20KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.twentyk)));\n\n mepszone.setTag(0);\n\n Location paseoLocation = new Location(\"paseolocation\");\n paseoLocation.setLatitude(10.345268);\n paseoLocation.setLongitude(123.907426);\n paseostr = mMap.addMarker(new MarkerOptions()\n .position(THIRTYKPH)\n .title(\"30KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.thirtyk)));\n\n paseostr.setTag(0);\n*/ if(!explore)\n {\n resetCamera();\n }\n\n //==============================\n final LatLng baniladFOURTYKPH = new LatLng(baniladlat, baniladlong);//10.339012, 123.911545//baniladlat, baniladlong\n Marker baniladstr;\n\n Location baniladLocation = new Location(\"baniladlocation\");\n baniladLocation.setLatitude(baniladlat);\n baniladLocation.setLongitude(baniladlong);\n\n baniladstr = mMap.addMarker(new MarkerOptions()\n .position(baniladFOURTYKPH)\n .title(baniladLimit+\"KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitch(baniladLimit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.fourtyk)));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n baniladstr.setTag(0);\n\n //=================================\n final LatLng banilad2FOURTYKPH = new LatLng(banilad2lat, banilad2long);//10.339012, 123.911545//baniladlat, baniladlong\n //Marker banilad2str;\n\n Location banilad2Location = new Location(\"banilad2location\");\n banilad2Location.setLatitude(banilad2lat);\n banilad2Location.setLongitude(banilad2long);\n\n banilad2str = mMap.addMarker(new MarkerOptions()\n .position(banilad2FOURTYKPH)\n .title(banilad2Limit+\"KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitch(banilad2Limit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n banilad2str.setTag(0);\n\n //=================================\n final LatLng maboloFOURTYKPH = new LatLng(mabololat, mabololong);//10.339012, 123.911545//baniladlat, baniladlong\n Marker mabolostr;\n\n Location maboloLocation = new Location(\"mabololocation\");\n maboloLocation.setLatitude(mabololat);\n maboloLocation.setLongitude(mabololong);\n\n mabolostr = mMap.addMarker(new MarkerOptions()\n .position(maboloFOURTYKPH)\n .title(maboloLimit+\"KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitch(maboloLimit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n mabolostr.setTag(0);\n //=================================\n final LatLng mabolo2TWENTYKPH = new LatLng(mabolo2lat, mabolo2long);//10.339012, 123.911545//baniladlat, baniladlong\n Marker mabolo2str;\n\n Location mabolo2Location = new Location(\"mabolo2location\");\n mabolo2Location.setLatitude(mabolo2lat);\n mabolo2Location.setLongitude(mabolo2long);\n\n mabolo2str = mMap.addMarker(new MarkerOptions()\n .position(mabolo2TWENTYKPH)\n .title(mabolo2Limit+\"KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitch(mabolo2Limit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n mabolo2str.setTag(0);\n //=================================\n final LatLng smFOURTYKPH = new LatLng(smlat, smlong);//10.339012, 123.911545//baniladlat, baniladlong\n Marker smstr;\n\n Location smLocation = new Location(\"smlocation\");\n smLocation.setLatitude(smlat);\n smLocation.setLongitude(smlong);\n\n smstr = mMap.addMarker(new MarkerOptions()\n .position(smFOURTYKPH)\n .title(smLimit+\"KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitch(smLimit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n smstr.setTag(0);\n //=================================\n final LatLng sm2FOURTYKPH = new LatLng(sm2lat, sm2long);//10.339012, 123.911545//baniladlat, baniladlong\n Marker sm2str;\n\n Location sm2Location = new Location(\"sm2location\");\n sm2Location.setLatitude(sm2lat);\n sm2Location.setLongitude(sm2long);\n\n sm2str = mMap.addMarker(new MarkerOptions()\n .position(sm2FOURTYKPH)\n .title(sm2Limit+\"KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitch(sm2Limit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n sm2str.setTag(0);\n //=================================\n final LatLng sm3FOURTYKPH = new LatLng(sm3lat, sm3long);//10.339012, 123.911545//baniladlat, baniladlong\n Marker sm3str;\n\n Location sm3Location = new Location(\"sm3location\");\n sm3Location.setLatitude(sm3lat);\n sm3Location.setLongitude(sm3long);\n\n sm3str = mMap.addMarker(new MarkerOptions()\n .position(sm3FOURTYKPH)\n .title(sm3Limit+\"KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitch(sm3Limit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n sm3str.setTag(0);\n //=================================\n final LatLng sergioFOURTYKPH = new LatLng(sergiolat, sergiolong);//10.339012, 123.911545//baniladlat, baniladlong\n Marker sergiostr;\n\n Location sergioLocation = new Location(\"sergiolocation\");\n sergioLocation.setLatitude(sergiolat);\n sergioLocation.setLongitude(sergiolong);\n\n sergiostr = mMap.addMarker(new MarkerOptions()\n .position(sergioFOURTYKPH)\n .title(sergioLimit+\"KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitch(sergioLimit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n sergiostr.setTag(0);\n //=================================\n final LatLng sergio2FOURTYKPH = new LatLng(sergio2lat, sergio2long);//10.339012, 123.911545//baniladlat, baniladlong\n Marker sergio2str;\n\n Location sergio2Location = new Location(\"sergio2location\");\n sergio2Location.setLatitude(sergio2lat);\n sergio2Location.setLongitude(sergio2long);\n\n sergio2str = mMap.addMarker(new MarkerOptions()\n .position(sergio2FOURTYKPH)\n .title(sergio2Limit+\"KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitch(sergio2Limit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n sergio2str.setTag(0);\n //=================================\n final LatLng tunnelMinSixty = new LatLng(tunnellat, tunnellong);\n Marker tunnelstr;\n\n Location tunnelLocation = new Location(\"tunnellocation\");\n tunnelLocation.setLatitude(tunnellat);\n tunnelLocation.setLongitude(tunnellong);\n\n tunnelstr = mMap.addMarker(new MarkerOptions()\n .position(tunnelMinSixty)\n .title(tunnelLimit+\"KPH\")\n .snippet(\"minimum \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitchGreen(tunnelLimit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n tunnelstr.setTag(0);\n //=================================\n final LatLng tunnel2MinSixty = new LatLng(tunnel2lat, tunnel2long);\n Marker tunnel2str;\n\n Location tunnel2Location = new Location(\"tunnel2location\");\n tunnel2Location.setLatitude(tunnel2lat);\n tunnel2Location.setLongitude(tunnel2long);\n\n tunnel2str = mMap.addMarker(new MarkerOptions()\n .position(tunnel2MinSixty)\n .title(tunnel2Limit+\"KPH\")\n .snippet(\"minimum \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitchGreen(tunnel2Limit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n tunnel2str.setTag(0);\n //=================================\n final LatLng cscrMinSixty = new LatLng(cscrlat, cscrlong);\n Marker cscrstr;\n\n Location cscrLocation = new Location(\"cscrlocation\");\n cscrLocation.setLatitude(cscrlat);\n cscrLocation.setLongitude(cscrlong);\n\n cscrstr = mMap.addMarker(new MarkerOptions()\n .position(cscrMinSixty)\n .title(cscrLimit+\"KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitch(cscrLimit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n cscrstr.setTag(0);\n //=================================\n final LatLng cscr2MinSixty = new LatLng(cscr2lat, cscr2long);\n Marker cscr2str;\n\n Location cscr2Location = new Location(\"cscr2location\");\n cscr2Location.setLatitude(cscr2lat);\n cscr2Location.setLongitude(cscr2long);\n\n cscr2str = mMap.addMarker(new MarkerOptions()\n .position(cscr2MinSixty)\n .title(cscr2Limit+\"KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitch(cscr2Limit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n cscr2str.setTag(0);\n //=================================\n final LatLng cscr3MinSixty = new LatLng(cscr3lat, cscr3long);\n Marker cscr3str;\n\n Location cscr3Location = new Location(\"cscr3location\");\n cscr3Location.setLatitude(cscr3lat);\n cscr3Location.setLongitude(cscr3long);\n\n cscr3str = mMap.addMarker(new MarkerOptions()\n .position(cscr3MinSixty)\n .title(cscr3Limit+\"KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitch(cscr3Limit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n cscr3str.setTag(0);\n //=================================\n final LatLng cscr4MinSixty = new LatLng(cscr4lat, cscr4long);\n Marker cscr4str;\n\n Location cscr4Location = new Location(\"cscr4location\");\n cscr4Location.setLatitude(cscr4lat);\n cscr4Location.setLongitude(cscr4long);\n\n cscr4str = mMap.addMarker(new MarkerOptions()\n .position(cscr4MinSixty)\n .title(cscr4Limit+\"KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitch(cscr4Limit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n cscr4str.setTag(0);\n //=================================\n final LatLng cscr5MinSixty = new LatLng(cscr5lat, cscr5long);\n Marker cscr5str;\n\n Location cscr5Location = new Location(\"cscr5location\");\n cscr5Location.setLatitude(cscr5lat);\n cscr5Location.setLongitude(cscr5long);\n\n cscr5str = mMap.addMarker(new MarkerOptions()\n .position(cscr5MinSixty)\n .title(cscr5Limit+\"KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitch(cscr5Limit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n cscr5str.setTag(0);\n //=================================\n final LatLng rizalMinSixty = new LatLng(rizallat, rizallong);\n Marker rizalstr;\n\n Location rizalLocation = new Location(\"rizallocation\");\n rizalLocation.setLatitude(rizallat);\n rizalLocation.setLongitude(rizallong);\n\n rizalstr = mMap.addMarker(new MarkerOptions()\n .position(rizalMinSixty)\n .title(rizalLimit+\"KPH\")\n .snippet(\"allowable \\nspeed limit\")\n .icon(BitmapDescriptorFactory.fromResource(getIconUsingSwitch(rizalLimit))));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n rizalstr.setTag(0);\n\n\n /*if (location.distanceTo(paseoLocation) < range) {\n minimum=false;\n marker=paseostr;\n //Toast.makeText(MapView.this, \"Max speed is 30KPH\", Toast.LENGTH_LONG).show();\n limit.setText(baniladLimit);\n paseostr.showInfoWindow();\n mLastShownInfoWindowMarker = paseostr;\n success=false;\n click(paseostr);\n } else if (location.distanceTo(mepzLocation) < range) {\n minimum=false;\n //Toast.makeText(MapView.this, \"Paghinay sa pangpang!...\", Toast.LENGTH_LONG).show();\n limit.setText(\"20\");\n marker=mepszone;\n mepszone.showInfoWindow();\n mLastShownInfoWindowMarker = mepszone;\n success=false;\n click(mepszone);\n } else*/\n if (location.distanceTo(baniladLocation) < range) {\n minimum=false;\n //Toast.makeText(MapView.this, \"You are in banilad...\", Toast.LENGTH_LONG).show();\n success=false;\n limit.setText(baniladLimit);\n marker=baniladstr;\n baniladstr.showInfoWindow();\n mLastShownInfoWindowMarker =baniladstr;\n click(baniladstr);\n } else if (location.distanceTo(banilad2Location) < range) {\n minimum=false;\n //Toast.makeText(MapView.this, \"You are in banilad...\", Toast.LENGTH_LONG).show();\n limit.setText(banilad2Limit);\n success=false;\n marker=banilad2str;\n banilad2str.showInfoWindow();\n mLastShownInfoWindowMarker = banilad2str;\n click(banilad2str);\n } else if (location.distanceTo(maboloLocation) < range) {\n minimum=false;\n //Toast.makeText(MapView.this, \"You are in banilad...\", Toast.LENGTH_LONG).show();\n limit.setText(maboloLimit);\n success=false;\n marker= mabolostr;\n mabolostr.showInfoWindow();\n mLastShownInfoWindowMarker = mabolostr;\n click(mabolostr);\n } else if (location.distanceTo(mabolo2Location) < range) {\n minimum=false;\n //Toast.makeText(MapView.this, \"You are in banilad...\", Toast.LENGTH_LONG).show();\n limit.setText(mabolo2Limit);\n success=false;\n marker= mabolo2str;\n mabolo2str.showInfoWindow();\n mLastShownInfoWindowMarker = mabolo2str;\n click(mabolo2str);\n } else if (location.distanceTo(smLocation) < range) {\n minimum=false;\n //Toast.makeText(MapView.this, \"You are in banilad...\", Toast.LENGTH_LONG).show();\n limit.setText(smLimit);\n success=false;\n marker= smstr;\n smstr.showInfoWindow();\n mLastShownInfoWindowMarker = smstr;\n click(smstr);\n } else if (location.distanceTo(sm2Location) < range) {\n //Toast.makeText(MapView.this, \"You are in banilad...\", Toast.LENGTH_LONG).show();\n limit.setText(sm2Limit);\n success=false;\n marker= sm2str;\n sm2str.showInfoWindow();\n mLastShownInfoWindowMarker = sm2str;\n click(sm2str);\n } else if (location.distanceTo(sm3Location) < range) {\n minimum=false;\n //Toast.makeText(MapView.this, \"You are in banilad...\", Toast.LENGTH_LONG).show();\n limit.setText(sm3Limit);\n success=false;\n marker= sm3str;\n sm3str.showInfoWindow();\n mLastShownInfoWindowMarker = sm3str;\n click(sm3str);\n } else if (location.distanceTo(sergioLocation) < range) {\n minimum=false;\n //Toast.makeText(MapView.this, \"You are in banilad...\", Toast.LENGTH_LONG).show();\n limit.setText(sergioLimit);\n success=false;\n marker= sergiostr;\n sergiostr.showInfoWindow();\n mLastShownInfoWindowMarker = sergiostr;\n click(sergiostr);\n } else if (location.distanceTo(sergio2Location) < range) {\n minimum=false;\n //Toast.makeText(MapView.this, \"You are in banilad...\", Toast.LENGTH_LONG).show();\n limit.setText(sergio2Limit);\n success=false;\n marker= sergio2str;\n sergio2str.showInfoWindow();\n mLastShownInfoWindowMarker = sergio2str;\n click(sergio2str);\n } else if (location.distanceTo(tunnelLocation) < range) {\n minimum=true;\n limit.setText(tunnelLimit);\n success=false;\n marker= tunnelstr;\n tunnelstr.showInfoWindow();\n mLastShownInfoWindowMarker = tunnelstr;\n click(tunnelstr);\n //if below 60kph\n if (location.distanceTo(tunnelLocation) < range)\n {\n String speedo = blueKph.getText().toString();\n speed = Integer.parseInt(speedo);\n String limitation = limit.getText().toString();\n speedlimit = Integer.parseInt(limitation);\n if(speed<speedlimit){\n /*LayoutInflater inflater = getLayoutInflater();\n View layout = inflater.inflate(R.layout.toast,\n (ViewGroup) findViewById(R.id.toast_layout_root));\n\n ImageView image = (ImageView) layout.findViewById(R.id.image);\n image.setImageResource(R.drawable.sixtygreen);\n TextView text = (TextView) layout.findViewById(R.id.text);\n text.setText(\"Speed must be minimum of 60KPH!\");\n\n Toast toast = new Toast(getApplicationContext());\n toast.setGravity(Gravity.CENTER_VERTICAL, 0, 0);\n toast.setDuration(Toast.LENGTH_LONG);\n toast.setView(layout);\n toast.show();*/\n\n Context context=getApplicationContext();\n LayoutInflater inflater=getLayoutInflater();\n\n View customToastroot =inflater.inflate(R.layout.toast, null);\n\n Toast customtoast=new Toast(context);\n\n customtoast.setView(customToastroot);\n customtoast.setGravity(Gravity.CENTER_HORIZONTAL | Gravity.CENTER_VERTICAL,0, 0);\n customtoast.setDuration(Toast.LENGTH_LONG);\n customtoast.show();\n }\n }\n } else if (location.distanceTo(tunnel2Location) < range) {\n minimum=true;\n limit.setText(tunnel2Limit);\n success=false;\n marker= tunnel2str;\n tunnel2str.showInfoWindow();\n mLastShownInfoWindowMarker = tunnel2str;\n click(tunnel2str);\n //if below 60kph\n if (location.distanceTo(tunnel2Location) < range)\n {\n String speedo = blueKph.getText().toString();\n speed = Integer.parseInt(speedo);\n String limitation = limit.getText().toString();\n speedlimit = Integer.parseInt(limitation);\n if(speed<speedlimit)\n {\n /*LayoutInflater inflater = getLayoutInflater();\n View layout = inflater.inflate(R.layout.toast,\n (ViewGroup) findViewById(R.id.toast_layout_root));\n\n ImageView image = (ImageView) layout.findViewById(R.id.image);\n image.setImageResource(R.drawable.sixtygreen);\n TextView text = (TextView) layout.findViewById(R.id.text);\n text.setText(\"Speed must be minimum of 60KPH!\");\n\n Toast toast = new Toast(getApplicationContext());\n toast.setGravity(Gravity.CENTER_VERTICAL, 0, 0);\n toast.setDuration(Toast.LENGTH_LONG);\n toast.setView(layout);\n toast.show();*/\n\n Context context=getApplicationContext();\n LayoutInflater inflater=getLayoutInflater();\n\n View customToastroot =inflater.inflate(R.layout.toast, null);\n\n Toast customtoast=new Toast(context);\n\n customtoast.setView(customToastroot);\n customtoast.setGravity(Gravity.CENTER_HORIZONTAL | Gravity.CENTER_VERTICAL,0, 0);\n customtoast.setDuration(Toast.LENGTH_LONG);\n customtoast.show();\n }\n }\n } else if (location.distanceTo(cscrLocation) < range) {\n minimum=false;\n //Toast.makeText(MapView.this, \"Minimum of 60kph speed.\", Toast.LENGTH_LONG).show();\n limit.setText(cscrLimit);\n success=false;\n marker= cscrstr;\n cscrstr.showInfoWindow();\n mLastShownInfoWindowMarker = cscrstr;\n click(cscrstr);\n } else if (location.distanceTo(cscr2Location) < range) {\n minimum=false;\n //Toast.makeText(MapView.this, \"Minimum of 60kph speed.\", Toast.LENGTH_LONG).show();\n limit.setText(cscr2Limit);\n success=false;\n marker= cscr2str;\n cscr2str.showInfoWindow();\n mLastShownInfoWindowMarker = cscr2str;\n click(cscr2str);\n } else if (location.distanceTo(cscr3Location) < range) {\n minimum=false;\n //Toast.makeText(MapView.this, \"Minimum of 60kph speed.\", Toast.LENGTH_LONG).show();\n limit.setText(cscr3Limit);\n success=false;\n marker= cscr3str;\n cscr3str.showInfoWindow();\n mLastShownInfoWindowMarker = cscr3str;\n click(cscr3str);\n } else if (location.distanceTo(cscr4Location) < range) {\n minimum=false;\n //Toast.makeText(MapView.this, \"Minimum of 60kph speed.\", Toast.LENGTH_LONG).show();\n limit.setText(cscr4Limit);\n success=false;\n marker= cscr4str;\n cscr4str.showInfoWindow();\n mLastShownInfoWindowMarker = cscr4str;\n click(cscr4str);\n } else if (location.distanceTo(cscr5Location) < range) {\n minimum=false;\n //Toast.makeText(MapView.this, \"Minimum of 60kph speed.\", Toast.LENGTH_LONG).show();\n limit.setText(cscr5Limit);\n success=false;\n marker= cscr5str;\n cscr5str.showInfoWindow();\n mLastShownInfoWindowMarker = cscr5str;\n click(cscr5str);\n } else if (location.distanceTo(rizalLocation) < range) {\n minimum=false;\n //Toast.makeText(MapView.this, \"Minimum of 60kph speed.\", Toast.LENGTH_LONG).show();\n limit.setText(rizalLimit);\n success=false;\n marker= rizalstr;\n rizalstr.showInfoWindow();\n mLastShownInfoWindowMarker = rizalstr;\n click(rizalstr);\n } else {\n minimum=false;\n //successs=false;\n /*marker= driver_marker;\n //successs=false;\n while (!successs) {\n try {\n Timer timer = new Timer();\n TimerTask updateProfile = new CustomTimerTask(MapView.this);\n timer.scheduleAtFixedRate(updateProfile, 10,5000);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n successs = true;\n }*/\n //Toast.makeText(MapView.this, \"NONE SPEEDLIMIT ZONE...\", Toast.LENGTH_LONG).show();\n //limit.setText(\"0\");\n if (mLastShownInfoWindowMarker != null && mLastShownInfoWindowMarker.isInfoWindowShown()) {\n mLastShownInfoWindowMarker.hideInfoWindow();\n }\n }\n\n }catch (java.lang.SecurityException ex) {\n Log.i(TAG, \"fail to request location update, ignore\", ex);\n } catch (IllegalArgumentException ex) {\n Log.d(TAG, \"gps provider does not exist \" + ex.getMessage());\n } catch (IOException e) {\n e.printStackTrace();\n }\n while (!success) {\n try {\n fab.setEnabled(true);\n fab2.setEnabled(true);\n //progressDialogs.show();\n /*final Animation myAnim = AnimationUtils.loadAnimation(MapView.this, R.anim.bounce);\n // Use bounce interpolator with amplitude 0.2 and frequency 20\n MyBounceInterpolator interpolator = new MyBounceInterpolator(0.2, 20);\n myAnim.setInterpolator(interpolator);\n\n fab.startAnimation(myAnim);*/\n resetCamera();\n success = true;\n mProgressBar.setVisibility(View.GONE);\n load.setVisibility(View.GONE);\n /* click(paseostr);\n click(mepszone);\n click(baniladstr);\n click(banilad2str);\n click(mabolostr);\n click(mabolo2str);\n click(smstr);\n click(sm2str);\n click(sm3str);\n click(sergiostr);\n click(sergio2str);\n click(tunnelstr);\n click(tunnel2str);\n click(cscrstr);\n click(cscr2str);\n click(cscr3str);\n click(cscr4str);\n click(cscr5str);\n click(rizalstr);*/\n //progressDialogs.dismiss();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n }",
"@Override\n public void onMapReady(final GoogleMap map) {\n mMap = map;\n\n mMap.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() {\n\n @Override\n // Return null here, so that getInfoContents() is called next.\n public View getInfoWindow(Marker arg0) {\n return null;\n }\n\n @Override\n public View getInfoContents(Marker marker) {\n // Inflate the layouts for the info window, title and snippet.\n @SuppressLint(\"InflateParams\") View infoWindow = getLayoutInflater().inflate(R.layout.custom_info_contents, null);\n\n TextView title = infoWindow.findViewById(R.id.title);\n title.setText(marker.getTitle());\n\n TextView snippet = infoWindow.findViewById(R.id.snippet);\n snippet.setText(marker.getSnippet());\n\n return infoWindow;\n }\n });\n\n mMap.setOnMapLongClickListener(new GoogleMap.OnMapLongClickListener() {\n @Override\n public void onMapLongClick(LatLng point) {\n mMap.clear();\n buildMarker(\"User Tap\", \"This is snippet\", point, true);\n @SuppressLint(\"DefaultLocale\") String latLong = String.format(\"%f,%f\", point.latitude, point.longitude);\n String endPoint = String.format(placesURL,latLong, String.valueOf(distance), BuildConfig.API_KEY);\n Location locationSelected = new Location(mLastKnownLocation);\n locationSelected.setLatitude(point.latitude);\n locationSelected.setLongitude(point.longitude);\n showPlacesNearby(locationSelected, endPoint);\n }\n });\n\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng latLng) {\n mMap.clear();\n }\n });\n\n mMap.setOnMyLocationButtonClickListener(new GoogleMap.OnMyLocationButtonClickListener() {\n @Override\n public boolean onMyLocationButtonClick() {\n mMap.clear();\n updateLocationUI();\n getDeviceLocation();\n return true;\n }\n });\n\n\n // Prompt the user for permission.\n getLocationPermission();\n\n // Turn on the My Location layer and the related control on the map.\n updateLocationUI();\n\n // Get the current location of the device and set the position of the map.\n getDeviceLocation();\n }",
"@Override\n public void onSuccess(Location location) {\n if (location != null) {\n\n MyLat = location.getLatitude();\n MyLong = location.getLongitude();\n\n Log.e(TAG, \"MyLat = \" + MyLat);\n Log.e(TAG, \"MyLong = \" + MyLong);\n\n\n LatLng latLng = (new LatLng(location.getLatitude(), location.getLongitude()));\n mMap.clear();\n\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 17.0f));\n\n MarkerOptions markerOptions = new MarkerOptions();\n markerOptions.position(latLng);\n markerOptions.draggable(true);\n\n BitmapDescriptor markerIcon = vectorToBitmap(R.drawable.ic__fill_placeholder,\n ContextCompat.getColor(getApplicationContext(),\n R.color.rv_hader));\n\n markerOptions.icon(markerIcon);\n markerOptions.title(\"My Location\");\n if (session.getMobileNumber() != null) {\n markerOptions.snippet(session.getMobileNumber());\n }\n mMap.addMarker(markerOptions);\n\n String add = getAddress(location.getLatitude(), location.getLongitude());\n Log.e(getClass().getSimpleName(), \"getAddress : \" + add);\n currentAddress = add;\n if (add != null)\n tv_current_locName.setText(add);\n else\n tv_current_locName.setText(\"Not Find\");\n } else {\n Log.d(TAG, \"onComplete: current location is null\");\n TastyToast.makeText(getApplicationContext(), getString(R.string.unable_toget_current_location), TastyToast.LENGTH_LONG, TastyToast.ERROR);\n Intent mIntent = new Intent(getApplicationContext(), MetaDataList.class); // the activity that holds the fragment\n Bundle mBundle = new Bundle();\n\n mBundle.putSerializable(\"metaDataItem\", metaDataItem);\n mIntent.setAction(\"UpdateLatLong\");\n mIntent.putExtra(\"SelectedNameDetail\", mBundle);\n startActivity(mIntent);\n finish();\n }\n }",
"public void onClick(DialogInterface dialog,int id) {\n LatLng newlatlng = getLatLngFromAddress(userInput.getText().toString());\n if (newlatlng != null) {\n endLocation = newlatlng;\n MarkerOptions marker = new MarkerOptions()\n .position(endLocation)\n .title(\"End\")\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE));\n markers.add(marker);\n mMap.addMarker(marker);\n zoomMap();\n } else\n {\n TextView alertTxtView = findViewById(R.id.alertTxtView);\n alertTxtView.setText(\"Could not find address\");\n }\n }",
"public void onLocationChanged(Location argLocation) {\n\t GeoPoint myGeoPoint = new GeoPoint(\r\n\t (int)(argLocation.getLatitude()*1000000),\r\n\t (int)(argLocation.getLongitude()*1000000));\r\n\t /*\r\n\t * it will show a message on \r\n\t * location change\r\n\t Toast.makeText(getBaseContext(),\r\n\t \"New location latitude [\" +argLocation.getLatitude() +\r\n\t \"] longitude [\" + argLocation.getLongitude()+\"]\",\r\n\t Toast.LENGTH_SHORT).show();\r\n\t */\r\n\r\n\t mapController.animateTo(myGeoPoint);\r\n\r\n\t }",
"@Override\n public void onLocationChanged(Location location) {\n mMap.clear();\n\n // To hold location\n LatLng latLng = new LatLng(location.getLatitude(), location.getLongitude());\n\n // To create marker in map\n MarkerOptions markerOptions = new MarkerOptions();\n markerOptions.position(latLng);\n markerOptions.title(\"My Location\");\n\n // Add marker to the map\n mMap.addMarker(markerOptions);\n\n // Opening position with some zoom level in the map\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 17.0f));\n }"
] | [
"0.68978363",
"0.67660695",
"0.67410755",
"0.664748",
"0.66069275",
"0.6585642",
"0.6538931",
"0.6500783",
"0.64980197",
"0.64110106",
"0.6406645",
"0.6369001",
"0.6363023",
"0.6349982",
"0.6292427",
"0.62585783",
"0.62545353",
"0.6215206",
"0.6210322",
"0.6203957",
"0.61921173",
"0.6188882",
"0.61619276",
"0.615751",
"0.6140151",
"0.6118159",
"0.6111477",
"0.60851115",
"0.60761994",
"0.60727257",
"0.6071751",
"0.6067834",
"0.6053493",
"0.604793",
"0.6040179",
"0.6029933",
"0.6029144",
"0.60128194",
"0.5993267",
"0.5992317",
"0.596957",
"0.59510696",
"0.5945724",
"0.5943511",
"0.5940465",
"0.5930711",
"0.5927262",
"0.5925793",
"0.5922188",
"0.5917659",
"0.5911485",
"0.59073377",
"0.5902267",
"0.5901845",
"0.58997077",
"0.589176",
"0.58890885",
"0.58848053",
"0.5884715",
"0.58721906",
"0.5866231",
"0.5864874",
"0.58641934",
"0.58626515",
"0.58621037",
"0.58615565",
"0.58594733",
"0.58590835",
"0.58567095",
"0.5852084",
"0.5821237",
"0.58153236",
"0.58111554",
"0.580722",
"0.58057296",
"0.58023036",
"0.57999164",
"0.579796",
"0.5797038",
"0.5796036",
"0.5796023",
"0.5789187",
"0.578882",
"0.57881296",
"0.57866323",
"0.5784326",
"0.57840776",
"0.5783659",
"0.57821095",
"0.57813674",
"0.57811314",
"0.57760817",
"0.577526",
"0.5774414",
"0.5768928",
"0.5765425",
"0.5760515",
"0.5756582",
"0.57550126",
"0.57546526",
"0.57539153"
] | 0.0 | -1 |
TODO Autogenerated method stub | public int compare(Object o1, Object o2) {
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Takes an Readable object and an EnhancedImageModel object to setup the controller in order to process the inputs specified in the Readable object using the EnhancedImageModel. | public ControllerImpl(Readable in, EnhancedImageModel model) {
super(model);
this.in = in;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface ImageRenderer {\n /** Set displayed image from ImageProvider. This method is recommended,\n * because it allows the Rendered to choose the most efficient transfer\n * format. \n */\n void setImageFromSpec(ImageProvider spec);\n\n /** Set displayed image from buffered image. */\n void setImage(BufferedImage i);\n \n /** \n * Specify whether rendering should keep the aspect ratio of the image. \n * If no, it well be stretched to the display surface. If yes, borders\n * may occur, if the aspect ratio of surface and source image are different.\n * The default is false.\n */\n public void setKeepAspectRatio(boolean keepAspect);\n \n /**\n * Setter for property imageLocation.\n * @param imageLocation New value of property imageLocation.\n */\n void setImageLocation(URL imageLocation) throws IOException;\n\n /**\n * Setter for property imageResource.\n * @param imageResource New value of property imageResource.\n */\n void setImageResource(String imageResource) throws IOException;\n\n}",
"void setImage(IViewModel image);",
"@Override\n public ProcessedImage process(ImageProcessRequest imageProcessRequest, BufferedImage img) throws IOException {\n\n if(img.getColorModel().hasAlpha() && imageProcessRequest.preset.format == FileFormat.JPG) {\n // Perform PNG -> JPG alpha fix\n // https://github.com/thebuzzmedia/imgscalr/issues/59#issuecomment-3743920\n BufferedImage tmpImg = new BufferedImage(img.getWidth(), img.getHeight(), BufferedImage.TYPE_INT_RGB);\n\n Graphics g = tmpImg.getGraphics();\n g.drawImage(img, 0, 0, null);\n g.dispose();\n\n img.flush();\n img = tmpImg;\n }\n\n img = resize(img, getScalrMethod(imageProcessRequest.preset), getScalrMode(imageProcessRequest.preset), imageProcessRequest.preset.width, imageProcessRequest.preset.height);\n\n ProcessedImage processedImage = new ProcessedImage(\n write(img, imageProcessRequest.preset),\n img.getWidth(),\n img.getHeight()\n );\n\n return processedImage;\n }",
"public ImageToObjectRequest(ImageToObjectRequest source) {\n if (source.ImageInfoList != null) {\n this.ImageInfoList = new ImageInfo[source.ImageInfoList.length];\n for (int i = 0; i < source.ImageInfoList.length; i++) {\n this.ImageInfoList[i] = new ImageInfo(source.ImageInfoList[i]);\n }\n }\n if (source.HandleParam != null) {\n this.HandleParam = new HandleParam(source.HandleParam);\n }\n if (source.Type != null) {\n this.Type = new Long(source.Type);\n }\n if (source.IsUsedClassify != null) {\n this.IsUsedClassify = new Boolean(source.IsUsedClassify);\n }\n if (source.UserType != null) {\n this.UserType = new Long(source.UserType);\n }\n if (source.ReportTypeVersion != null) {\n this.ReportTypeVersion = new ReportTypeVersion[source.ReportTypeVersion.length];\n for (int i = 0; i < source.ReportTypeVersion.length; i++) {\n this.ReportTypeVersion[i] = new ReportTypeVersion(source.ReportTypeVersion[i]);\n }\n }\n }",
"private void setupImageReader() {\n mImageReader = ImageReader.newInstance(mPreviewSize.getWidth(), mPreviewSize.getHeight(),\n ImageFormat.JPEG, 2);\n mImageReader.setOnImageAvailableListener(new ImageReader.OnImageAvailableListener() {\n @Override\n public void onImageAvailable(ImageReader reader) {\n mCameraHandler.post(new imageSaver(reader.acquireNextImage()));\n }\n }, mCameraHandler);\n }",
"public void setup(SourceResolver resolver, Map objectModel, String src, Parameters parameters) \n throws ProcessingException, SAXException, IOException\n { \n super.setup(resolver,objectModel,src,parameters);\n \n // If this page for editing an uploaded file's information\n // was requested, then we need to load EditFileStep instead!\n if(this.errorFlag==org.dspace.submit.step.UploadWithEmbargoStep.STATUS_EDIT_BITSTREAM)\n {\n this.editFile = new EditFileStep();\n this.editFile.setup(resolver, objectModel, src, parameters); \n }\n else if(this.errorFlag==org.dspace.submit.step.UploadWithEmbargoStep.STATUS_EDIT_POLICIES\n || this.errorFlag==org.dspace.submit.step.UploadWithEmbargoStep.STATUS_EDIT_POLICIES_ERROR_SELECT_GROUP\n || this.errorFlag==org.dspace.submit.step.UploadWithEmbargoStep.STATUS_EDIT_POLICIES_DUPLICATED_POLICY){\n this.editBitstreamPolicies = new EditBitstreamPolicies();\n this.editBitstreamPolicies.setup(resolver, objectModel, src, parameters);\n }\n else if(this.errorFlag==org.dspace.submit.step.AccessStep.STATUS_EDIT_POLICY\n || this.errorFlag==org.dspace.submit.step.UploadWithEmbargoStep.STATUS_EDIT_POLICY_ERROR_SELECT_GROUP\n || this.errorFlag==org.dspace.submit.step.UploadWithEmbargoStep.STATUS_EDIT_POLICY_DUPLICATED_POLICY){\n this.editPolicy = new EditPolicyStep();\n this.editPolicy.setup(resolver, objectModel, src, parameters);\n }\n else\n {\n this.editFile = null;\n editBitstreamPolicies = null;\n editPolicy=null;\n }\n\n isAdvancedFormEnabled=ConfigurationManager.getBooleanProperty(\"webui.submission.restrictstep.enableAdvancedForm\", false);\n }",
"public ImageController() {\n em = EMF.createEntityManager();\n }",
"public interface Features {\n /**\n * Loads the image at the given filename into the controller's model.\n *\n * @param filename the location of the image to load\n * @throws IOException if the provided file path is invalid\n */\n void loadPhoto(String filename) throws IOException;\n\n /**\n * Loads a generated rainbow image into the controller's model.\n *\n * @param width width of image to generate in pixels\n * @param height height of image to generate in pixels\n * @param isHorizontal True for horizontal stripes, else vertical stripes\n */\n void loadRainbow(int width, int height, boolean isHorizontal);\n\n /**\n * Loads a generated checker board image into the controller's model.\n *\n * @param tileSize the side length of tiles for the generated image in pixels.\n */\n void loadCheckerBoard(int tileSize);\n\n /**\n * Saves the current state of the image in the controller's model to the specified file location.\n *\n * @param filename the location to save the image\n * @throws IOException if the provided file path is invalid\n */\n void saveToFile(String filename) throws IOException;\n\n /**\n * Applies the blur effect to the image loaded in the controller's model.\n */\n void blur();\n\n /**\n * Applies the sharpen effect to the image loaded in the controller's model.\n */\n void sharpen();\n\n /**\n * Applies the greyscale effect to the image loaded in the controller's model.\n */\n void greyscale();\n\n /**\n * Applies the sepia effect to the image loaded in the controller's model.\n */\n void sepia();\n\n /**\n * Applies the dither effect to the image loaded in the controller's model.\n */\n void dither();\n\n /**\n * Applies the Mosaic effect to the image loaded in the controller's model.\n *\n * @param seeds number of panes to generate in mosaic\n */\n void mosaic(int seeds);\n\n /**\n * reverts the controller's model to the image prior to the most recent effect.\n *\n * @throws IllegalStateException if no changes yet to undo\n */\n void undo();\n\n /**\n * reverts the controller's model to the image after the most recent effect.\n *\n * @throws IllegalStateException if no undos yet to restore\n */\n void redo();\n\n /**\n * Retrieves a copy of the image data stored in the controller's model image.\n *\n * @return a copy of the image data stored in the controller's model image\n */\n BufferedImage outputImage();\n\n /**\n * Runs the batch script commands provided in the given readable.\n *\n * @throws IOException if any issues with accessing the Readable\n */\n void executeScript(Readable script) throws IOException;\n}",
"public AugmentedImageNode(Context context, String[] imageList, Integer augmentedImageIndex) {\n\n // we check if sushi is null\n // sushi is used in order to check if the renderables are null\n // because the renderables are built using the same block of code all at once, if sushi (or any other completable future) is null,\n // then they all are null\n if (sushi == null) {\n\n if (!(AugmentedImageFragment.imagePlaysVideoBooleanList[augmentedImageIndex])) {\n currentRenderable = renderableList.get(augmentedImageIndex);\n currentRenderable =\n // build the renderable using the image that is detected\n ModelRenderable.builder()\n .setSource(context, Uri.parse(\"models/\" + imageList[augmentedImageIndex] + \".sfb\"))\n .build();\n Log.d(\"modelrenderable\", (\"conditional is running! filepath: \" + Uri.parse(\"models/\" + imageList[augmentedImageIndex] + \".sfb\")));\n\n } else {\n\n frame_ul =\n ModelRenderable.builder()\n .setSource(context, Uri.parse(\"models/frame_upper_left.sfb\"))\n .build();\n Log.d(\"running\", (\"running\"));\n frame_ur =\n ModelRenderable.builder()\n .setSource(context, Uri.parse(\"models/frame_upper_right.sfb\"))\n .build();\n frame_ll =\n ModelRenderable.builder()\n .setSource(context, Uri.parse(\"models/frame_lower_left.sfb\"))\n .build();\n frame_lr =\n ModelRenderable.builder()\n .setSource(context, Uri.parse(\"models/frame_lower_right.sfb\"))\n .build();\n\n }\n\n\n }\n\n // Checks if videoRenderable is null, if it is, videoRenderable is loaded from models.\n // Will be used as the thing that the video is placed on.\n if (AugmentedImageActivity.videoRenderable == null) {\n AugmentedImageActivity.videoRenderable =\n ModelRenderable.builder()\n .setSource(context, Uri.parse(\"models/chroma_key_video.sfb\"))\n .build();\n }\n }",
"private void enhanceImage(){\n }",
"public interface IImageInputBoundary {\n\n List<ImageResponseModel> GetImagesByCategory(ImageRequestModel requestModel);\n List<ImageResponseModel> GetImagesByComposition(ImageRequestModel requestModel);\n}",
"@SuppressWarnings(\"OverridableMethodCallInConstructor\")\n public Model(BufferedImage image) {\n this.image = image;\n resetcontrols();\n }",
"protected abstract void setupImages(Context context);",
"@SuppressWarnings({\"AndroidApiChecker\", \"FutureReturnValueIgnored\"})\n // setImage is used to place an animated file.\n // setImage takes arguments image, and augmentedImageIndex, which is used to index the list of renderables.\n public void setImage(AugmentedImage image, Integer augmentedImageIndex) {\n this.augmentedImage = image;\n\n if (!currentRenderable.isDone()) {\n CompletableFuture.allOf(currentRenderable)\n // in the case that more than one renderable is used to create a scene,\n // use CompletableFuture.allOf(currentRenderable, other renderables needed for the scene)\n .thenAccept((Void aVoid) -> setImage(image, augmentedImageIndex))\n .exceptionally(\n throwable -> {\n Log.e(TAG, \"Exception loading\", throwable);\n return null;\n });\n }\n\n // Set the anchor based on the center of the image.\n setAnchor(image.createAnchor(image.getCenterPose()));\n\n\n // creates the node\n // in the case that there is more than one renderable in the scene, run the code again, replacing\n // currentRenderable with the other renderables\n\n Node fullnode;\n\n fullnode = new Node();\n fullnode.setParent(this);\n fullnode.setWorldPosition(new Vector3((this.getWorldPosition().x + (nodePosition[augmentedImageIndex].x)), (this.getWorldPosition().y + (nodePosition[augmentedImageIndex].y)), (this.getWorldPosition().z + (nodePosition[augmentedImageIndex].z))));\n fullnode.setLocalScale(new Vector3(0.1f, 0.1f, 0.1f));\n Quaternion newQuaternion = Quaternion.axisAngle(new Vector3(nodeRotation[augmentedImageIndex].x, nodeRotation[augmentedImageIndex].y, nodeRotation[augmentedImageIndex].z), nodeRotation[augmentedImageIndex].q);\n fullnode.setLocalRotation(Quaternion.multiply(fullnode.getLocalRotation(), newQuaternion));\n fullnode.setRenderable(currentRenderable.getNow(null));\n\n }",
"public interface ProfileController extends BaseController {\n\n void updateUser(String name, String age,Bitmap photo);\n}",
"public void mo38841a(ImagesRequest imagesRequest) {\n }",
"private void setupController() {\n setupWriter();\n Controller controller1 = new Controller(writer);\n controller = controller1;\n }",
"@FXML\n public void initialize() {\n if(Controller.processedImg == null) {\n ImageViewTri.setImage(OriginalImage);\n }\n else ImageViewTri.setImage(Controller.processedImg);\n\n pixelReader = OriginalImage.getPixelReader();\n }",
"public interface ImageReader {\n}",
"public abstract BufferedImage applyTo(BufferedImage image);",
"public void renderInputImageManager()\n {\n background(background);\n if(resized != null)\n {\n imageMode(CENTER);\n image(resized,(width-150)/2+140,height/2);\n imageMode(CORNERS);\n }\n }",
"void setSourceImage(BufferedImage mySourceImage);",
"void registerObserver(AchieveImageController controller);",
"private void createImageModel(final Resource resource) {\n this.createImageModel(resource, false);\n }",
"public interface ImageEngine {\n\n //采用责任链模式\n\n void init();\n\n ImageEngine with(Context context);\n\n ImageEngine load(String path);\n\n ImageEngine into(ImageView target);\n\n\n}",
"public abstract void initController();",
"public void setup (SourceResolver sourceResolver, Map objectModel, String source,\n\t\t Parameters parameters)\n throws ProcessingException, SAXException, IOException\n {\n final String METHOD_NAME = \"setup\";\n this.logDebug(METHOD_NAME + \" 1/3: started\");\n\n try\n {\n // Ensure services are released:\n this.releaseServices();\n\n super.setup(sourceResolver, objectModel, source, parameters);\n \n\t// Document type:\n int type = ParamUtil.getAsDocType(this.parameters, \"type\", \"type-name\");\n\n\t// Document id:\n int id = ParamUtil.getAsId(this.parameters, \"id\");\n\n\tthis.logDebug(METHOD_NAME + \" 2/3: type = \" + type + \", id = \" + id);\n\n // Get a document selector wrapper if necessary:\n if ( this.documentSelector == null )\n {\n this.logDebug(METHOD_NAME + \" 2/3.1: Instanciating a ServiceSelectorWrapper\");\n String label = \"DocumentReader#\" + this.instanceStatus.getInstanceId();\n this.documentSelector = new ServiceSelectorWrapper\n (label, this.getLogger().getChildLogger(label));\n }\n\n // Get a document selector and wrap it:\n\tthis.documentSelector.wrap\n\t ((ServiceSelector)this.serviceManager.lookup(Document.ROLE + \"Selector\"));\n\n\t// Get a document from the pool:\n\tthis.document = (Document)this.documentSelector.select(DocType.hintFor[type]);\n\n // Set id and use mode:\n this.document.setId(id);\n\tthis.document.setUseMode(UseMode.SERVE);\n\n\tthis.logDebug\n (METHOD_NAME + \" 4/5: Done. this.document = \" + LogUtil.identify(this.document));\n }\n catch (Exception exception)\n {\n\tthrow new ProcessingException(exception);\n }\n\n this.logDebug(METHOD_NAME + \" 5/5: finished\");\n }",
"public interface FaroProfileImageDo {\n URL getPublicUrl();\n ImageProvider getImageProvider();\n boolean isThumbnail();\n}",
"void ProcessImage() {\n DoDescribe();\n }",
"public interface ImageSearchService {\n\n /**\n * Register an image into the search instance.\n *\n * @param imageData Image data in JPEG or PNG format.\n * @param imageType Image format.\n * @param uuid Unique identifier of the image.\n */\n void register(byte[] imageData, ObjectImageType imageType, String uuid);\n\n /**\n * Un-register an image from the search instance.\n *\n * @param uuid Unique identifier of the image.\n */\n void unregister(String uuid);\n\n /**\n * Find all images similar to the given one.\n *\n * @param imageData Image to match with registered ones in the search instance.\n * @param objectRegion object region to search.\n * @return Found images UUIDs and raw response.\n */\n ImageSearchResponse findAllBySimilarImage(byte[] imageData, ImageRegion objectRegion);\n\n /**\n * Check the image search configuration is correct by making a fake search request.\n *\n * @param configuration Configuration to check.\n */\n void checkImageSearchConfiguration(Configuration configuration) throws InvalidConfigurationException;\n}",
"@Override\n public boolean prepareImage(Image img, int w, int h, ImageObserver o) {\n return Toolkit.getDefaultToolkit().prepareImage(img, w, h, o);\n }",
"public interface ImageUpload {\n void imageUploadToServer(int selectedImageResourceId);\n}",
"Builder addImage(ImageObject.Builder value);",
"public Image call() throws IOException;",
"private <T extends AbstractController> T configureController(T controller)\n {\n // Configuring the controller\n controller.setEventManager(eventManager);\n\n if (controller instanceof PropertiesAwareInterface) {\n ((PropertiesAwareInterface) controller).setProperties(settings);\n }\n\n controller.completeSetup();\n\n return controller;\n }",
"@RequestMapping(\"/images/{title}/edit\")\n public String editImage(@PathVariable String title, Model model) {\n // Finding the image based upon its title by using joins because we need only those instances which contain the tags as we have to pass the tags to the view\n Image image = imageService.getByTitleWithJoin(title);\n\n // Get the tag list and convert the list into a single string using \"convertTagsToString\" method defined below,\n // then add it as an attribute and pass it onto the view as the name \"tags\"\n\n model.addAttribute(\"image\", image);\n return \"images/edit\";\n }",
"private void setUpAndConfigureCamera() {\n\t\t// Open and configure the camera\n\t\tmCamera = selectAndOpenCamera();\n\n\t\tCamera.Parameters param = mCamera.getParameters();\n\n\t\t// Smaller images are recommended because some computer vision operations are very expensive\n\t\tList<Camera.Size> sizes = param.getSupportedPreviewSizes();\n\t\tCamera.Size s = sizes.get(closest(sizes,640,360));\n\t\tparam.setPreviewSize(s.width,s.height);\n\t\tmCamera.setParameters(param);\n\n\t\t// start image processing thread\n\n\t\t// Start the video feed by passing it to mPreview\n\t\tmPreview.setCamera(mCamera);\n\t}",
"@FXML\n /**\n * use initialize method to get the metadata of the image file and set the metadata properties on the UI display\n */\n public void initialize() {\n messaging.onMessage(MessageObject.SubjectEnum.ImageIdToShow, (file) -> {\n\n if (this.imageViewContainer == null) {\n return;\n }\n\n //get image and restrict the maximum width to 400\n Image image = ImageUtil.getImageFromFile((File) file);\n //get imageView and set its width and height\n ImageView imageView = ImageUtil.getImageViewByImage(image, \"\", 400, 400);\n //clear the HBox imageViewContainer\n this.imageViewContainer.getChildren().clear();\n //add imageView to the HBox imageViewContainer\n this.imageViewContainer.getChildren().add(\n imageView\n );\n //set an hgrow constraint on the imageView\n this.imageViewContainer.setHgrow(imageView, Priority.NEVER);\n //get metadata from the image file\n Metadata metadata = null;\n try {\n metadata = ImageMetadataReader.readMetadata((File) file);\n } catch (ImageProcessingException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n //get the width and height of the image\n int width = (int)image.getWidth();\n int height = (int)image.getHeight();\n //set text of Label width and height on the UI display\n this.width.setText(\"\" + width);\n this.height.setText(\"\" + height);\n //get ExifIFD0Directory from metadata\n ExifIFD0Directory exifIFD0Directory = metadata.getFirstDirectoryOfType(ExifIFD0Directory.class);\n //initialize make and model of camera\n String NA = MsIsConstant.NAPlaceholder;\n String make = NA;\n String model = NA;\n if (exifIFD0Directory != null) {\n //get the value of make and model properties\n make = exifIFD0Directory.getString(ExifIFD0Directory.TAG_MAKE);\n model = exifIFD0Directory.getString(ExifIFD0Directory.TAG_MODEL);\n if (make == null || model == null) {\n make = NA;\n model = NA;\n }\n }\n //set text of Label make and model of camera on the UI display\n this.cameraMakeAndModel.setText(String.format(\"%s, %s\", make, model));\n\n GpsDirectory gpsDirectory = metadata.getFirstDirectoryOfType(GpsDirectory.class);\n showGeo(gpsDirectory);\n\n });\n }",
"public interface ControllerInt {\n\n public boolean isCorrect(int image);\n public void updateScore(boolean isCorrect);\n //public void generateView();\n}",
"public Model(Controller controller)\r\n {\r\n // initialise instance variables\r\n setFiles(new ArrayList<>());\r\n setController(controller);\r\n }",
"public MagickImage(ImageInfo imageInfo) throws MagickException {\n\t\treadImage(imageInfo);\n\t}",
"Builder addImage(ImageObject value);",
"@RequestMapping(\"/images/{title}\")\n public String showImage(@PathVariable String title, Model model) {\n // Finding the image based upon its title by using joins because we need only those instances which contain the tags as we have to pass the tags to the view\n Image image = imageService.getByTitleWithJoin(title);\n // Incrementing the numview by 1 if this page is open\n image.setNumView(image.getNumView() + 1);\n // Saving the image details to update the image\n imageService.update(image);\n model.addAttribute(\"image\", image);\n model.addAttribute(\"tags\", image.getTags());\n\n return \"images/image\";\n }",
"void setImage(BufferedImage i);",
"public interface ImageServer extends Remote {\n\n /**\n * Returns the identifier of the remote image. This method should be\n * called to return an identifier before any other methods are invoked.\n * The same ID must be used in all subsequent references to the remote\n * image.\n */\n Long getRemoteID() throws RemoteException;\n\n /**\n * Disposes of any resouces allocated to the client object with\n * the specified ID.\n */\n void dispose(Long id) throws RemoteException;\n\n /**\n * Increments the reference count for this id, i.e. increments the\n * number of RMIServerProxy objects that currently reference this id.\n */\n void incrementRefCount(Long id) throws RemoteException;\n\n\n /// Methods Common To Rendered as well as Renderable modes.\n\n\n /**\n * Gets a property from the property set of this image.\n * If the property name is not recognized, java.awt.Image.UndefinedProperty\n * will be returned.\n *\n * @param id An ID for the source which must be unique across all clients.\n * @param name the name of the property to get, as a String.\n * @return a reference to the property Object, or the value\n * java.awt.Image.UndefinedProperty.\n */\n Object getProperty(Long id, String name) throws RemoteException;\n\n /**\n * Returns a list of names recognized by getProperty(String).\n *\n * @return an array of Strings representing proeprty names.\n */\n String [] getPropertyNames(Long id) throws RemoteException;\n\n /**\n * Returns a list of names recognized by getProperty().\n *\n * @return an array of Strings representing property names.\n */\n String[] getPropertyNames(String opName) throws RemoteException;\n\n\n /// Rendered Mode Methods\n\n\n /** Returns the ColorModel associated with this image. */\n SerializableState getColorModel(Long id) throws RemoteException;\n\n /** Returns the SampleModel associated with this image. */\n SerializableState getSampleModel(Long id) throws RemoteException;\n\n /** Returns the width of the image on the ImageServer. */\n int getWidth(Long id) throws RemoteException;\n\n /** Returns the height of the image on the ImageServer. */\n int getHeight(Long id) throws RemoteException;\n\n /**\n * Returns the minimum X coordinate of the image on the ImageServer.\n */\n int getMinX(Long id) throws RemoteException;\n\n /**\n * Returns the minimum Y coordinate of the image on the ImageServer.\n */\n int getMinY(Long id) throws RemoteException;\n\n /** Returns the number of tiles across the image. */\n int getNumXTiles(Long id) throws RemoteException;\n\n /** Returns the number of tiles down the image. */\n int getNumYTiles(Long id) throws RemoteException;\n\n /**\n * Returns the index of the minimum tile in the X direction of the image.\n */\n int getMinTileX(Long id) throws RemoteException;\n\n /**\n * Returns the index of the minimum tile in the Y direction of the image.\n */\n int getMinTileY(Long id) throws RemoteException;\n\n /** Returns the width of a tile in pixels. */\n int getTileWidth(Long id) throws RemoteException;\n\n /** Returns the height of a tile in pixels. */\n int getTileHeight(Long id) throws RemoteException;\n\n /** Returns the X offset of the tile grid relative to the origin. */\n int getTileGridXOffset(Long id) throws RemoteException;\n\n /** Returns the Y offset of the tile grid relative to the origin. */\n int getTileGridYOffset(Long id) throws RemoteException;\n\n /**\n * Returns tile (x, y). Note that x and y are indices into the\n * tile array, not pixel locations. Unlike in the true RenderedImage\n * interface, the Raster that is returned should be considered a copy.\n *\n * @param id An ID for the source which must be unique across all clients.\n * @param x the x index of the requested tile in the tile array\n * @param y the y index of the requested tile in the tile array\n * @return a copy of the tile as a Raster.\n */\n SerializableState getTile(Long id, int x, int y) throws RemoteException;\n\n /**\n * Compresses tile (x, y) and returns the compressed tile's contents\n * as a byte array. Note that x and y are indices into the\n * tile array, not pixel locations.\n *\n * @param id An ID for the source which must be unique across all clients.\n * @param x the x index of the requested tile in the tile array\n * @param y the y index of the requested tile in the tile array\n * @return a byte array containing the compressed tile contents.\n */\n byte[] getCompressedTile(Long id, int x, int y) throws RemoteException;\n\n /**\n * Returns the entire image as a single Raster.\n *\n * @return a SerializableState containing a copy of this image's data.\n */\n SerializableState getData(Long id) throws RemoteException;\n\n /**\n * Returns an arbitrary rectangular region of the RenderedImage\n * in a Raster. The rectangle of interest will be clipped against\n * the image bounds.\n *\n * @param id An ID for the source which must be unique across all clients.\n * @param bounds the region of the RenderedImage to be returned.\n * @return a SerializableState containing a copy of the desired data.\n */\n SerializableState getData(Long id, Rectangle bounds) \n\tthrows RemoteException;\n\n /**\n * Returns the same result as getData(Rectangle) would for the\n * same rectangular region.\n */\n SerializableState copyData(Long id, Rectangle bounds)\n\tthrows RemoteException;\n\n /**\n * Creates a RenderedOp on the server side with a parameter block\n * empty of sources. The sources are set by separate calls depending\n * upon the type and serializabilty of the source.\n */\n\n void createRenderedOp(Long id, String opName,\n\t\t\t ParameterBlock pb,\n\t\t\t SerializableState hints) throws RemoteException;\n\n /**\n * Calls for Rendering of the Op and returns true if the RenderedOp\n * could be rendered else false\n */\n boolean getRendering(Long id) throws RemoteException;\n\n /**\n * Retrieve a node from the hashtable.\n */\n RenderedOp getNode(Long id) throws RemoteException;\n\n /**\n * Sets the source of the image as a RenderedImage on the server side\n */\n void setRenderedSource(Long id, RenderedImage source, int index)\n\tthrows RemoteException;\n\n /**\n * Sets the source of the image as a RenderedOp on the server side\n */\n void setRenderedSource(Long id, RenderedOp source, int index)\n\tthrows RemoteException;\n\n /**\n * Sets the source of the image which is on the same\n * server\n */\n void setRenderedSource(Long id, Long sourceId, int index)\n\tthrows RemoteException;\n\n /**\n * Sets the source of the image which is on a different\n * server\n */\n void setRenderedSource(Long id, Long sourceId, String serverName,\n\t\t\t String opName, int index) throws RemoteException;\n\n\n /// Renderable mode methods\n\n\n /** \n * Gets the minimum X coordinate of the rendering-independent image\n * stored against the given ID.\n *\n * @return the minimum X coordinate of the rendering-independent image\n * data.\n */\n float getRenderableMinX(Long id) throws RemoteException;\n\n /** \n * Gets the minimum Y coordinate of the rendering-independent image\n * stored against the given ID.\n *\n * @return the minimum X coordinate of the rendering-independent image\n * data.\n */\n float getRenderableMinY(Long id) throws RemoteException;\n\n /** \n * Gets the width (in user coordinate space) of the \n * <code>RenderableImage</code> stored against the given ID.\n *\n * @return the width of the renderable image in user coordinates.\n */\n float getRenderableWidth(Long id) throws RemoteException;\n \n /**\n * Gets the height (in user coordinate space) of the \n * <code>RenderableImage</code> stored against the given ID.\n *\n * @return the height of the renderable image in user coordinates.\n */\n float getRenderableHeight(Long id) throws RemoteException;\n\n /**\n * Creates a RenderedImage instance of this image with width w, and\n * height h in pixels. The RenderContext is built automatically\n * with an appropriate usr2dev transform and an area of interest\n * of the full image. All the rendering hints come from hints\n * passed in.\n *\n * <p> If w == 0, it will be taken to equal\n * Math.round(h*(getWidth()/getHeight())).\n * Similarly, if h == 0, it will be taken to equal\n * Math.round(w*(getHeight()/getWidth())). One of\n * w or h must be non-zero or else an IllegalArgumentException \n * will be thrown.\n *\n * <p> The created RenderedImage may have a property identified\n * by the String HINTS_OBSERVED to indicate which RenderingHints\n * were used to create the image. In addition any RenderedImages\n * that are obtained via the getSources() method on the created\n * RenderedImage may have such a property.\n *\n * @param w the width of rendered image in pixels, or 0.\n * @param h the height of rendered image in pixels, or 0.\n * @param hints a RenderingHints object containg hints.\n * @return a RenderedImage containing the rendered data.\n */\n RenderedImage createScaledRendering(Long id, \n\t\t\t\t\tint w, \n\t\t\t\t\tint h, \n\t\t\t\t\tSerializableState hintsState) \n\tthrows RemoteException;\n \n /** \n * Returnd a RenderedImage instance of this image with a default\n * width and height in pixels. The RenderContext is built\n * automatically with an appropriate usr2dev transform and an area\n * of interest of the full image. The rendering hints are\n * empty. createDefaultRendering may make use of a stored\n * rendering for speed.\n *\n * @return a RenderedImage containing the rendered data.\n */\n RenderedImage createDefaultRendering(Long id) throws RemoteException;\n \n /** \n * Creates a RenderedImage that represented a rendering of this image\n * using a given RenderContext. This is the most general way to obtain a\n * rendering of a RenderableImage.\n *\n * <p> The created RenderedImage may have a property identified\n * by the String HINTS_OBSERVED to indicate which RenderingHints\n * (from the RenderContext) were used to create the image.\n * In addition any RenderedImages\n * that are obtained via the getSources() method on the created\n * RenderedImage may have such a property.\n *\n * @param renderContext the RenderContext to use to produce the rendering.\n * @return a RenderedImage containing the rendered data.\n */\n RenderedImage createRendering(Long id, \n\t\t\t\t SerializableState renderContextState) \n\tthrows RemoteException;\n\n /**\n * Creates a RenderableOp on the server side with a parameter block\n * empty of sources. The sources are set by separate calls depending\n * upon the type and serializabilty of the source.\n */\n void createRenderableOp(Long id, String opName, ParameterBlock pb)\n\tthrows RemoteException;\n\n /**\n * Calls for rendering of a RenderableOp with the given SerializableState\n * which should be a RenderContextState.\n */\n Long getRendering(Long id, SerializableState rcs) throws RemoteException;\n\n /**\n * Sets the source of the image which is on the same\n * server\n */\n void setRenderableSource(Long id, Long sourceId, int index)\n\tthrows RemoteException;\n\n /**\n * Sets the source of the image which is on a different\n * server\n */\n void setRenderableSource(Long id, Long sourceId, String serverName,\n\t\t\t String opName, int index) throws RemoteException;\n\n /**\n * Sets the source of the operation refered to by the supplied \n * <code>id</code> to the <code>RenderableRMIServerProxy</code>\n * that exists on the supplied <code>serverName</code> under the\n * supplied <code>sourceId</code>. \n */\n void setRenderableRMIServerProxyAsSource(Long id,\n\t\t\t\t\t Long sourceId, \n\t\t\t\t\t String serverName,\n\t\t\t\t\t String opName,\n\t\t\t\t\t int index) throws RemoteException;\n\n /**\n * Sets the source of the image as a RenderableOp on the server side.\n */\n void setRenderableSource(Long id, RenderableOp source,\n\t\t\t int index) throws RemoteException;\n\n /**\n * Sets the source of the image as a RenderableImage on the server side.\n */\n void setRenderableSource(Long id, SerializableRenderableImage source,\n\t\t\t int index) throws RemoteException;\n\n /**\n * Sets the source of the image as a RenderedImage on the server side\n */\n void setRenderableSource(Long id, RenderedImage source, int index)\n\tthrows RemoteException;\n\n /**\n * Maps the RenderContext for the remote Image\n */\n SerializableState mapRenderContext(int id, Long nodeId,\n\t\t\t\t String operationName,\n\t\t\t\t SerializableState rcs)\n\tthrows RemoteException;\n\n /**\n * Gets the Bounds2D of the specified Remote Image\n */\n SerializableState getBounds2D(Long nodeId, String operationName)\n\tthrows RemoteException;\n\n /**\n * Returns <code>true</code> if successive renderings with the same\n * arguments may produce different results for this opName\n *\n * @return <code>false</code> indicating that the rendering is static.\n */\n public boolean isDynamic(String opName) throws RemoteException;\n\n /**\n * Returns <code>true</code> if successive renderings with the same\n * arguments may produce different results for this opName\n *\n * @return <code>false</code> indicating that the rendering is static.\n */\n public boolean isDynamic(Long id) throws RemoteException;\n\n /**\n * Gets the operation names supported on the Server\n */\n String[] getServerSupportedOperationNames() throws RemoteException;\n\n /**\n * Gets the <code>OperationDescriptor</code>s of the operations\n * supported on this server.\n */\n List getOperationDescriptors() throws RemoteException;\n\n /**\n * Calculates the region over which two distinct renderings\n * of an operation may be expected to differ.\n *\n * <p> The class of the returned object will vary as a function of\n * the nature of the operation. For rendered and renderable two-\n * dimensional images this should be an instance of a class which\n * implements <code>java.awt.Shape</code>.\n *\n * @return The region over which the data of two renderings of this\n * operation may be expected to be invalid or <code>null</code>\n * if there is no common region of validity.\n */\n SerializableState getInvalidRegion(Long id,\n\t\t\t\t ParameterBlock oldParamBlock,\n\t\t\t\t SerializableState oldHints,\n\t\t\t\t ParameterBlock newParamBlock,\n\t\t\t\t SerializableState newHints)\n\tthrows RemoteException;\n\n /**\n * Returns a conservative estimate of the destination region that\n * can potentially be affected by the pixels of a rectangle of a\n * given source. \n *\n * @param id A <code>Long</code> identifying the node for whom\n * the destination region needs to be calculated .\n * @param sourceRect The <code>Rectangle</code> in source coordinates.\n * @param sourceIndex The index of the source image.\n *\n * @return A <code>Rectangle</code> indicating the potentially\n * affected destination region, or <code>null</code> if\n * the region is unknown.\n */\n Rectangle mapSourceRect(Long id, Rectangle sourceRect, int sourceIndex)\n\tthrows RemoteException;\n\n /**\n * Returns a conservative estimate of the region of a specified\n * source that is required in order to compute the pixels of a\n * given destination rectangle. \n *\n * @param id A <code>Long</code> identifying the node for whom\n * the source region needs to be calculated .\n * @param destRect The <code>Rectangle</code> in destination coordinates.\n * @param sourceIndex The index of the source image.\n *\n * @return A <code>Rectangle</code> indicating the required source region.\n */\n Rectangle mapDestRect(Long id, Rectangle destRect, int sourceIndex)\n\tthrows RemoteException;\n\n /**\n * A method that handles a change in some critical parameter.\n */\n Long handleEvent(Long renderedOpID, \n\t\t String propName,\n\t\t Object oldValue, \n\t\t Object newValue) throws RemoteException;\n\n /**\n * A method that handles a change in one of it's source's rendering,\n * i.e. a change that would be signalled by RenderingChangeEvent.\n */\n Long handleEvent(Long renderedOpID, \n\t\t int srcIndex,\n\t\t SerializableState srcInvalidRegion, \n\t\t Object oldRendering) throws RemoteException;\n\n /**\n * Returns the server's capabilities as a\n * <code>NegotiableCapabilitySet</code>. Currently the only capabilities\n * that are returned are those of TileCodecs.\n */\n NegotiableCapabilitySet getServerCapabilities() throws RemoteException;\n\n /**\n * Informs the server of the negotiated values that are the result of\n * a successful negotiation.\n *\n * @param id An ID for the node which must be unique across all clients.\n * @param negotiatedValues The result of the negotiation.\n */\n void setServerNegotiatedValues(Long id, \n\t\t\t\t NegotiableCapabilitySet negotiatedValues)\n\tthrows RemoteException; \n}",
"public interface CaptureImgService {\n\n String captureImg(HttpServletRequest re, String url, String size) throws IOException;\n}",
"@Override\r\n public T apply(BufferedImage image);",
"@Override\n\tpublic void readImages() {\n\t\t\n\t}",
"public ReorientImageFilter() {\n }",
"public ImageProcessor(Pic a) {\n image = a;\n }",
"public interface LinkReadingController extends AbstractControllerInterface {\n\n public void add(final LinkReading reading);\n\n\n public void delete(final int readingId);\n\n public LinkReading getByID(final int id);\n\n public List<LinkReading> list();\n\n public List<LinkReading> list(final Link link);\n\n public List<LinkReading> list(final Link link, final Capability capability, final int limit);\n\n public void insertReading(final String sourceId, final String targetId, final String capabilityName,\n final Double doubleReading, final String stringReading,\n final Date timestamp) throws UnknownTestbedException;\n\n public Long count();\n\n public int count(final Link link);\n}",
"public interface ProductProcessorMP0 extends ProductProcessor {\n\n\n\n\n void processFile(MultipartFile file, ContractImage contractImage, Contract contract) throws IOException, IllegalDataException;\n}",
"public interface ImageService {\n\n void saveImageFile(Long recipeId, MultipartFile imageFile);\n}",
"void setRenderableSource(Long id, SerializableRenderableImage source,\n\t\t\t int index) throws RemoteException;",
"public void loadInputImage()\n{\n selectInput(\"Select a file to process:\", \"imageLoader\"); // select image window -> imageLoader()\n}",
"public interface Model {\n /**\n * Generate a image of checker board pattern (8 X 8) of the given size.\n *\n * @param size the size of the image\n * @return the 3D array of the generated checkerboard.\n */\n int[][][] generateChecker(int size);\n\n /**\n * Generate a image if rainbow stripes (7 colors) with the given size.\n *\n * @param height the height of the image\n * @param width the width of the image\n * @param vOrH the stripes should be vertical of horizontal.\n * @return the 3D array of the generated rainbow stripes.\n */\n int[][][] generateRainbow(int height, int width, VOrH vOrH);\n\n /**\n * Generate the appropriate-sized flags of a country with the given ratio.\n *\n * @param ratio the given ratio of the flag.\n * @param country the country whose flag will be generated.\n * @return the 3D array of the generated flag.\n */\n int[][][] generateFlags(int ratio, String country);\n\n /**\n * Blur the image using the image processor.\n *\n * @param imageArray the 3D array of the image\n * @param height the height of the image\n * @param width the width of the image\n * @return the 3D array of the blurred image\n */\n int[][][] blurImage(int[][][] imageArray, int height, int width);\n\n /**\n * Sharpen the image using the image processor.\n *\n * @param imageArray the 3D array of the image\n * @param height the height of the image\n * @param width the width of the image\n * @return the 3D array the sharpened image\n */\n int[][][] sharpenImage(int[][][] imageArray, int height, int width);\n\n /**\n * Grey scale the image using the image processor.\n *\n * @param imageArray the 3D array of the image\n * @param height the height of the image\n * @param width the width of the image\n * @return 3D array of the greyscale image\n */\n int[][][] greyscaleImage(int[][][] imageArray, int height, int width);\n\n /**\n * Sepia- tone the image using the image processor.\n *\n * @param imageArray the 3D array of the image\n * @param height the height of the image\n * @param width the width of the image\n * @return the 3D array of the sepia-tone image\n */\n int[][][] sepiaToneImage(int[][][] imageArray, int height, int width);\n\n /**\n * Dither the image using the image processor.\n *\n * @param imageArray the 3D array of the image\n * @param height the height of the image\n * @param width the width of the image\n * @return 3D array of the dithered image\n */\n int[][][] ditheringImage(int[][][] imageArray, int height, int width);\n\n /**\n * Mosaic the image using the image processor.\n *\n * @param imageArray the 3D array of the image\n * @param height the height of the image.\n * @param width the width of the image.\n * @param seedNum the number of seeds.\n * @return the 3D array of mosaic image.\n */\n int[][][] mosaicingImage(int[][][] imageArray, int height, int width, int seedNum);\n\n /**\n * Undo. Return a previous result before the operation.\n *\n * @return a previous result.\n * @throws EmptyStackException when there is no previous one.\n */\n int[][][] undo() throws EmptyStackException;\n\n /**\n * Redo. Return a previous result before an undo.\n *\n * @return a previous result before an undo.\n * @throws EmptyStackException when there is no previous one.\n */\n int[][][] redo() throws EmptyStackException;\n\n /**\n * Set the stacks for undo and redo. Add a new element to the undo stack, and clear the redo\n * stack.\n * @param add the image in 3D array to be added to the stack.\n */\n void setStack(int[][][] add);\n}",
"public void setImage(Image itemImg) \n {\n img = itemImg;\n }",
"public abstract ModelAndView handleInit(HttpServletRequest req, HttpServletResponse res, Object inputCommand, BindException be) throws Throwable;",
"private void initAreaImageFilm() {\n\n }",
"private void processAndSetImage() {\n\n // Resample the saved image to fit the ImageView\n mResultsBitmap = resamplePic(this, mTempPhotoPath);\n\n// tv.setText(base64conversion(photoFile));\n//\n// Intent intent = new Intent(Intent.ACTION_SEND);\n// intent.setType(\"text/plain\");\n// intent.putExtra(Intent.EXTRA_TEXT, base64conversion(photoFile));\n// startActivity(intent);\n\n /**\n * UPLOAD IMAGE USING RETROFIT\n */\n\n retroFitHelper(base64conversion(photoFile));\n\n // Set the new bitmap to the ImageView\n imageView.setImageBitmap(mResultsBitmap);\n }",
"public interface AuthoringModelController {\n\n\t/**\n\t * Save the current state of the current level a game being authored.\n\t *\n\t * @param saveName\n\t * the name to assign to the save file\n\t */\n\tvoid saveGameState(File saveName);\n\n\t/**\n\t * Load the detailed state of a game for a particular level, including\n\t * high-level information and elements present.\n\t *\n\t * @param saveName\n\t * the name used to save the game authoring data\n\t * @param level\n\t * the level of the game which should be loaded\n\t * @throws IOException\n\t * if the save name does not refer to existing files\n\t */\n\tvoid loadOriginalGameState(String saveName, int level) throws IOException;\n\n\t/**\n\t * Export a fully authored game, including all levels, into an executable file.\n\t */\n\tvoid exportGame();\n\n\t/**\n\t * Create a new level for the game being authored. Saves the state of the\n\t * current level being authored when the transition occurs.\n\t *\n\t * @param level\n\t * the number associated with the new level\n\t */\n\tvoid createNewLevel(int level);\n\n\t/**\n\t * Delete the previously created level.\n\t *\n\t * @param level\n\t * the level to delete\n\t * @throws IllegalArgumentException\n\t * if level does not exist\n\t */\n\tvoid deleteLevel(int level) throws IllegalArgumentException;\n\n\t/**\n\t * Get the top-level configuration options for a game element definition.\n\t *\n\t * @return a map from the name of the configuration option to set to a list of\n\t * choices for that option\n\t */\n\tMap<String, List<String>> getElementBaseConfigurationOptions();\n\n\t/**\n\t * Get auxiliary configuration elements for a game element, based on top-level\n\t * configuration choices.\n\t *\n\t * @return a map from the name of the configuration option to its class type\n\t */\n\tMap<String, Class> getAuxiliaryElementConfigurationOptions(Map<String, String> baseConfigurationChoices);\n\n\t/**\n\t * Define a new type of element for the game being authored. Elements of this\n\t * type will be created by the model based on its properties, assuming defaults\n\t * where necessary. This method should not be used for updating properties of an\n\t * existing template, the updateElementDefinition method should be used for that\n\t * instead.\n\t *\n\t * @param elementName\n\t * the template name assigned to this element, for future reuse of\n\t * the properties\n\t * @param properties\n\t * a map containing the properties of the element to be created\n\t * @throws IllegalArgumentException\n\t * if the template already exists.\n\t */\n\tvoid defineElement(String elementName, Map<String, String> properties) throws IllegalArgumentException;\n\n\t/**\n\t * Update an existing template by overwriting the specified properties to their\n\t * new specified values. Should not be used to create a new template, the\n\t * defineElement method should be used for that.\n\t * \n\t * @param elementName\n\t * the name of the template to be updated\n\t * @param propertiesToUpdate\n\t * the properties to update\n\t * @param retroactive\n\t * whether previously created elements of this type must have their\n\t * properties updated\n\t * \n\t * @throws IllegalArgumentException\n\t * if the template does not already exist\n\t */\n\tvoid updateElementDefinition(String elementName, Map<String, String> propertiesToUpdate, boolean retroactive)\n\t\t\tthrows IllegalArgumentException;\n\n\t/**\n\t * Delete a previously defined template\n\t * \n\t * @param elementName\n\t * name of the template to delete\n\t * @throws IllegalArgumentException\n\t * if the template does not already exist\n\t */\n\tvoid deleteElementDefinition(String elementName) throws IllegalArgumentException;\n\n\t/**\n\t * Place a game element of previously defined type within the game.\n\t *\n\t * @param elementName\n\t * the template name for the element\n\t * @param startCoordinates\n\t * the coordinates at which the element should be placed\n\t * @return a unique identifier for the sprite abstraction representing the game\n\t * element\n\t */\n\tint placeElement(String elementName, Point2D startCoordinates);\n\n\t/**\n\t * Add element of given name\n\t * \n\t * @param elementName\n\t */\n\tvoid addElementToInventory(String elementName);\n\n\t/*\n\t * Place a game element of previously defined type within the game which follows\n\t * a path defined in the authoring environment as it moves.\n\t *\n\t * @param elementName the template name for the element\n\t * \n\t * @param pathList a list of points the object should target as it moves\n\t * \n\t * @return a unique identifier for the sprite abstraction representing the game\n\t * element\n\t */\n\tint placePathFollowingElement(String elementName, PathList pathList);\n\n\t/**\n\t * Retrieve the inventory for the current level\n\t * \n\t * @return set of element names that can be placed in the current level\n\t */\n\tSet<String> getInventory();\n\n\t/**\n\t * Get the ImageView corresponding to a particular spriteId\n\t * \n\t * @param spriteId\n\t * id of the sprite whose image is to be retrieved, previously\n\t * generated by controller\n\t * @return ImageView representing the GameElement\n\t */\n\tImageView getRepresentationFromSpriteId(int spriteId);\n\n\t/**\n\t * Get the high-level status of a game in-progress, notably points, lives, etc\n\t * \n\t *\n\t * @return a map of relevant details to display or modify about the game\n\t */\n\tMap<String, Double> getStatus();\n\n\t/**\n\t * Retrieve information on the cost of each element in terms of the various\n\t * resources\n\t * \n\t * @return map of element name to its cost in terms of each resource\n\t */\n\tMap<String, Map<String, Double>> getElementCosts();\n\n\t/**\n\t * Move a previously created game element to a new location.\n\t *\n\t * @param elementId\n\t * elementId the unique identifier for the element\n\t * @param xCoordinate\n\t * the new horizontal position of the element within the game\n\t * @param yCoordinate\n\t * the new vertical position of the element within the game\n\t */\n\tvoid moveElement(int elementId, double xCoordinate, double yCoordinate);\n\n\t/**\n\t * Update the properties of a particular game element, without changing the\n\t * definition of its type.\n\t *\n\t * @param elementId\n\t * the unique identifier for the element\n\t * @param propertiesToUpdate\n\t * a map containing the new properties of the element\n\t */\n\tvoid updateElementProperties(int elementId, Map<String, String> propertiesToUpdate);\n\n\t/**\n\t * Delete a previously created game element.\n\t *\n\t * @param elementId\n\t * the unique identifier for the element\n\t */\n\tvoid deleteElement(int elementId);\n\n\t/**\n\t * Fetch all available game names and their corresponding descriptions\n\t * \n\t * @return map where keys are game names and values are game descriptions\n\t */\n\tMap<String, String> getAvailableGames();\n\n\t/**\n\t * Get a map of properties for a particular game element, so as to allow for\n\t * their displaying in a modification area of the display.\n\t *\n\t * @param elementId\n\t * the unique identifier for the game element\n\t * @return a map of properties for the element with this identifier\n\t * @throws IllegalArgumentException\n\t * if the element ID does not refer to a created element\n\t */\n\tMap<String, String> getElementProperties(int elementId) throws IllegalArgumentException;\n\n\t/**\n\t * Get a map of properties for an element template / model, so as to allow for\n\t * their displaying in a modification area of the display\n\t * \n\t * @param elementName\n\t * the template name for the element\n\t * @return a map of properties for the template with this identifier\n\t * @throws IllegalArgumentException\n\t * if the element name does not refer to a defined template\n\t */\n\tMap<String, String> getTemplateProperties(String elementName) throws IllegalArgumentException;\n\n\t/**\n\t * Get map of all defined template names to their properties\n\t * \n\t * @return map of template names to properties of each template\n\t */\n\tMap<String, Map<String, String>> getAllDefinedTemplateProperties();\n\n\tMap<String, Double> getResourceEndowments();\n\n\t/**\n\t * Set the name of the game being authored.\n\t *\n\t * @param gameName\n\t * the name of the game\n\t */\n\tvoid setGameName(String gameName);\n\n\t/**\n\t * Set the description of a game being authored.\n\t *\n\t * @param gameDescription\n\t * the description authored for the game\n\t */\n\tvoid setGameDescription(String gameDescription);\n\n\t/**\n\t * Set the victory condition for the current level of the game being authored\n\t * \n\t * @param conditionIdentifier\n\t * the description of the victory condition, which can be mapped to a\n\t * boolean state function\n\t */\n\tvoid setVictoryCondition(String conditionIdentifier);\n\n\t/**\n\t * Set the defeat condition for the current level of the game being authored\n\t * \n\t * @param conditionIdentifier\n\t * the description of the defeat condition, which can be mapped to a\n\t * boolean state function\n\t */\n\tvoid setDefeatCondition(String conditionIdentifier);\n\n\t/**\n\t * Set a top-level game status property (e.g. lives, starting resources, etc)\n\t *\n\t * @param property\n\t * name of the property to set\n\t * @param value\n\t * string representation of the property's new value\n\t */\n\tvoid setStatusProperty(String property, Double value);\n\n\t/**\n\t * Set the resource endowments for the current level\n\t * \n\t * @param resourceEndowments\n\t * map of resource name to amount of that resource to begin that\n\t * level with\n\t */\n\tvoid setResourceEndowments(Map<String, Double> resourceEndowments);\n\n\t/**\n\t * Set the resource endowment of a specific resource name\n\t * @param resourceName\n\t * @param newResourceEndowment\n\t */\n\tvoid setResourceEndowment(String resourceName, double newResourceEndowment);\n\t\n\t/**\n\t * Set the cost of an element in terms of various resources\n\t * \n\t * @param elementName\n\t * the template name for the element\n\t * @param unitCosts\n\t * map of resource name to cost in terms of that resource for this\n\t * element\n\t */\n\tvoid setUnitCost(String elementName, Map<String, Double> unitCosts);\n\n\t/**\n\t * Set the behavior and parameters of the wave\n\t * \n\t * @param waveProperties\n\t * a map containing the properties of the wave to be created\n\t * @param elementNames\n\t * name of elements to spawn\n\t * @param spawningPoint\n\t * the point at which to spawn the wave\n\t */\n\tvoid setWaveProperties(Map<String, String> waveProperties, Collection<String> elementNamesToSpawn,\n\t\t\tPoint2D spawningPoint);\n\n\t/**\n\t * Retrieve a collection of descriptions of the possible victory conditions\n\t * \n\t * @return a collection of strings describing the possible victory conditions\n\t * that can be assigned for a given level\n\t */\n\tCollection<String> getPossibleVictoryConditions();\n\n\t/**\n\t * Retrieve a collection of descriptions of the possible defeat conditions\n\t * \n\t * @return a collection of strings describing the possible defeat conditions\n\t * that can be assigned for a given level\n\t */\n\tCollection<String> getPossibleDefeatConditions();\n\n}",
"public ActionForward populateImages(ActionMapping mapping, ActionForm form, HttpServletRequest request,\n HttpServletResponse response) throws Exception {\n setCancerModel(request);\n \n setComments(request, Constants.Pages.IMAGES);\n \n return mapping.findForward(\"viewImages\");\n }",
"public interface Recognition {\n\n /**\n * Recognition class to implement. Should do the image recognition on the image and return the found classes.\n *\n * @param image image to process.\n * @return List of Result objects.\n */\n public List<Result> recognize(IplImage image);\n\n}",
"public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par)\n throws ProcessingException, SAXException, IOException {\n this.resolver=resolver;\n this.objectModel=objectModel;\n this.source=src;\n this.parameters=par;\n }",
"@Override\n\tpublic final IRenderable load() {\n\t\tImage img = loadImage();\n\t\tassertImageIsValid(img);\n\t\treturn new ImageRenderable(img);\n\t}",
"public ImageModel(final String pathToImageInDAM, final ResourceResolver resolver) {\n final Dimension imgDimensions = MediaUtil.getImgDimensions(pathToImageInDAM, resolver);\n if (imgDimensions != null) {\n if (imgDimensions.getWidth() >= 0.0) {\n setWidth(Integer.toString(imgDimensions.width));\n }\n if (imgDimensions.getHeight() >= 0.0) {\n setHeight(Integer.toString(imgDimensions.height));\n }\n }\n this.url = pathToImageInDAM;\n\n }",
"@Override\n\tprotected void initForInspect(AWRequestContext requestContext) {\n\n\t}",
"public void setInput(byte[] acImageR, byte[] acImageG, byte[] acImageB, byte[] acImageA) {\r\n super.setInput(acImageR, acImageG, acImageB, acImageA);\r\n\r\n // Reset the intensity image which corresponds to the RGB channels\r\n // so that it can be recomputed.\r\n m_acImageI = null;\r\n\r\n // Input color values are scaled by alpha values representing opacity.\r\n for (int i = 0; i < acImageA.length; i++) {\r\n m_acImageR[i] = (byte) ( ( (int) (m_acImageR[i] & 0x0ff)) * ( (int) (m_acImageA[i] & 0x0ff)) / 255);\r\n m_acImageG[i] = (byte) ( ( (int) (m_acImageG[i] & 0x0ff)) * ( (int) (m_acImageA[i] & 0x0ff)) / 255);\r\n m_acImageB[i] = (byte) ( ( (int) (m_acImageB[i] & 0x0ff)) * ( (int) (m_acImageA[i] & 0x0ff)) / 255);\r\n }\r\n }",
"public interface IMediaController {\n}",
"@EventMapping\n\tpublic void handleImageMessageEvent(MessageEvent<ImageMessageContent> event) throws IOException {\n\t\tfinal MessageContentResponse response;\n\t\tString replyToken = event.getReplyToken();\n\t\tString messageId = event.getMessage().getId();\n\t\ttry {\n\t\t\tresponse = lineMessagingClient.getMessageContent(messageId).get();\n\t\t} catch (InterruptedException | ExecutionException e) {\n\t\t\treply(replyToken, new TextMessage(\"Cannot get image: \" + e.getMessage()));\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t\t\n//\t\tint index = -1;\n//\t\tfor(int i=0;i<userList.size();i++) {\n//\t\t\tif(userList.get(i).equals(event.getSource().getUserId())) {\n//\t\t\t\tindex = i;\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t}\n//\t\tif(index == -1) {\n//\t\t\tcategories = null;\n//\t\t\tprofile = null;\n//\t\t\tmenu = null;\n//\t\t\tindex = userList.size();\n//\t\t\tuserList.add(event.getSource().getUserId());\n//\t\t\tcatList.add(categories);\n//\t\t\tprofList.add(profile);\n//\t\t\tmenuList.add(menu);\n//\t\t}\n//\t\telse {\n//\t\t\tcategories = catList.get(index);\n//\t\t\tprofile = profList.get(index);\n//\t\t\tmenu = menuList.get(index);\n//\t\t}\n\t\tListSingleton singleton = ListSingleton.getInstance();\n\t\tindex = singleton.initiate(event.getSource().getUserId());\n\t\tcategories = singleton.getCategories();\n\t\tprofile = singleton.getProfile();\n\t\tmenu = singleton.getMenu();\n\t\t\n\t\tif (categories == Categories.CAMPAIGN) {\n\t\t\tInputStream initialStream = response.getStream();\n\t\t\tuser.uploadCouponCampaign(initialStream);\n\t\t\tcategories = Categories.MAIN_MENU;\n\t\t\tList<Message> messages = new ArrayList<Message>();\n\t\t\tTextMessage reply = new TextMessage(\"Uploaded successful\");\n\t\t\tmessages.add(reply);\n\t\t\tmessages.add(getMenuTemplate());\n\t\t\tthis.reply(replyToken, messages);\n\t\t}\n\t\t\n\t\telse if (categories == Categories.MENU && menu == Menu.JPEG) {\n\t\t\tDownloadedContent jpg = saveContent(\"jpg\", response);\n\t\t\tString menuStr = inputToFood.readFromJPEG(jpg); // Use this menu string for features\n\t\t\tmenuStr = inputToFood.readFromText(\"\"+event.getSource().getUserId(), menuStr);\n\t\t\tcategories = Categories.MAIN_MENU;\n\t\t\tmenu = null;\n\t\t\treply(((MessageEvent) event).getReplyToken(), new TextMessage(menuStr));\n\t\t}\n\t\telse {\n\t\t\tString message = \"What is this image for?\";\n\t\t\treply(((MessageEvent) event).getReplyToken(), new TextMessage(message));\n\t\t}\n\t\t\t\t\n\t\tsingleton.setValues(index, categories, profile, menu);\n\n\t}",
"public RawReader(/*int indexArg,*/ ImageLoadedNotified clientArg) {\n System.out.println(\"____Création RawReader\");\n client = clientArg;\n \n init_decode();\n }",
"public interface IBagItUploadController {\n\n /**\n * Handle upload of file (zipped BagIt container)\n *\n * @param file Instance holding content of file and attributes of the file.\n * @param redirectAttributes Attributes storing internal information.\n *\n * @return Website displaying information about uploaded files.\n * @throws IOException Error during upload.\n */\n @ApiOperation(value = \"Upload zipped BagIt container.\",\n notes = \"This endpoint allows to upload zipped BagIt container holding\"\n + \"OCR-D data.\")\n @RequestMapping(path = \"\", method = RequestMethod.POST)\n @ResponseBody\n ResponseEntity<?> handleFileUpload(@ApiParam(value = \"Zipped BagIt container.\")@RequestParam(value = \"file\") MultipartFile file, \n RedirectAttributes redirectAttributes) throws IOException, ApiException;\n\n\n /**\n * Listing of uploaded files.\n *\n * @param model Model holding information about uploaded files.\n *\n * @return Website displaying information about uploaded files.\n * @throws IOException Error while storing/reading file.\n */\n @ApiOperation(value = \"List all uploaded containers.\",\n notes = \"List of all zipped BagIt containers with Form to upload new BagIt container.\")\n @RequestMapping(path = \"\", method = RequestMethod.GET, produces = \"text/html\")\n String listUploadedFilesAsHtml(Model model) throws IOException;\n /**\n * Listing of uploaded files.\n *\n * @param model Model holding information about uploaded files.\n *\n * @return List with URLs of all zipped BagIt containers.\n * @throws IOException Error while storing/reading file.\n */\n @ApiOperation(value = \"List all uploaded containers.\",\n notes = \"List with URLs of all zipped BagIt containers.\")\n @RequestMapping(path = \"\", method = RequestMethod.GET, produces = \"application/json\")\n @ResponseBody\n ResponseEntity<List<String>> listUploadedFiles(Model model) throws IOException;\n\n /**\n * Filtered listing of uploaded files.\n *\n * @param model Model holding information about filtered files.\n *\n * @return Website displaying information about uploaded files.\n * @throws IOException Error while storing/reading file.\n */\n @ApiOperation(value = \"List find containers.\",\n notes = \"List filtered zipped BagIt containers with Form to search for BagIt container.\")\n @RequestMapping(path = \"search\", method = RequestMethod.GET, produces = \"text/html\")\n String listFilteredFilesAsHtml(Model model) throws IOException;\n\n /**\n * Get all METS documents with given ocrd identifier.\n *\n * @param ocrdIdentifier OCRD identifier of the METS document.\n *\n * @return List of resourceIDs with given ocrd identifier.\n */\n @ApiOperation(value = \"Get all resourceIds with given ocrd identifier.\")\n @RequestMapping(path = \"ocrdidentifier\", method = RequestMethod.GET)\n @ResponseBody\n ResponseEntity<List<String>> getResourceIdByOcrdIdentifier(@ApiParam(value = \"The ocrd identifier of the METS document.\", required = true)@RequestParam(value = \"ocrdidentifier\") String ocrdIdentifier);\n\n /**\n * Get all METS documents with given ocrd identifier.\n *\n * @param ocrdIdentifier OCRD identifier of the METS document.\n *\n * @return List of resourceIDs with given ocrd identifier.\n */\n @ApiOperation(value = \"Get all resourceIds with given ocrd identifier.\")\n @RequestMapping(path = \"ocrdidentifier\", method = RequestMethod.GET, produces = \"text/html\")\n String getResourceIdByOcrdIdentifierAsHtml(@ApiParam(value = \"The ocrd identifier of the METS document.\", required = true)@RequestParam(value = \"ocrdidentifier\") String ocrdIdentifier, Model model);\n\n \n}",
"public native MagickImage enhanceImage() throws MagickException;",
"public interface Image {\n\n /**\n * Get number of pixels horizontally\n *\n * @return int number of pixels horizontally\n */\n int getWidth();\n\n /**\n * Get number of pixels vertically\n *\n * @return int number of pixels vertically\n */\n int getHeight();\n\n /**\n * Get the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the red value\n */\n int getRed(int x, int y);\n\n\n /**\n * Get the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the green value\n */\n int getGreen(int x, int y);\n\n /**\n * Get the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the blue value\n */\n int getBlue(int x, int y);\n\n /**\n * Set the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setRed(int x, int y, int value);\n\n\n /**\n * Set the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setGreen(int x, int y, int value);\n\n /**\n * Set the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setBlue(int x, int y, int value);\n}",
"protected void augmentModel(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\t\n\t}",
"public\r\n AERenderImgAction()\r\n {\r\n super(\"AERenderImg\", new VersionID(\"2.4.23\"), \"Temerity\",\r\n \"Renders an image or image sequence from an After Effects scene using aerender.\");\r\n \r\n {\r\n ActionParam param = \r\n new StringActionParam\r\n (aCompName,\r\n \"The name of the After Effects Comp to create.\",\r\n \"Comp1\");\r\n addSingleParam(param);\r\n }\r\n \r\n {\r\n ActionParam param =\r\n new LinkActionParam\r\n (aAfterFXScene, \r\n \"The source After Effects scene node.\", \r\n null);\r\n addSingleParam(param);\r\n }\r\n \r\n {\r\n LayoutGroup layout = new LayoutGroup(true);\r\n layout.addEntry(aAfterFXScene);\r\n layout.addEntry(aCompName);\r\n setSingleLayout(layout);\r\n }\r\n \r\n /*\r\n * Support for OS X should work, but it untested. \r\n */\r\n addSupport(OsType.MacOS);\r\n addSupport(OsType.Windows);\r\n removeSupport(OsType.Unix);\r\n }",
"public interface IImaeView<T> extends IView<T> {\n\n void getImageRandom(ImageRes imageRes);\n}",
"public imageProcessor(BufferedImage img, int h) {\n records = null;\n\n this.untouchedImage = img;\n this.orig = img;\n maxHeight = h;\n dataPath = \"\";\n\n }",
"void lSetImage(Image img);",
"public interface ImageLoader {\n\n}",
"public RenderedImage create(ParameterBlock args,\n RenderingHints renderHints) {\n \n // Get the source image and the data type parameter.\n RenderedImage src = args.getRenderedSource(0);\n Integer datatype = (Integer)args.getObjectParameter(0);\n int type = datatype.intValue();\n\n // Get ImageLayout from renderHints if any.\n ImageLayout layout = RIFUtil.getImageLayoutHint(renderHints);\n\n // If there is no change return the source image directly.\n if(layout == null && type == src.getSampleModel().getDataType()) {\n return src;\n }\n\n // Create or clone the ImageLayout.\n if(layout == null) {\n layout = new ImageLayout(src);\n } else {\n layout = (ImageLayout)layout.clone();\n }\n\n\tboolean isDataTypeChange = false;\n\n // Get prospective destination SampleModel.\n SampleModel sampleModel = layout.getSampleModel(src);\n\n // Create a new SampleModel if the type is not as desired.\n if (sampleModel.getDataType() != type) {\n int tileWidth = layout.getTileWidth(src);\n int tileHeight = layout.getTileHeight(src);\n int numBands = src.getSampleModel().getNumBands();\n\n SampleModel csm =\n RasterFactory.createComponentSampleModel(sampleModel,\n type,\n tileWidth,\n tileHeight,\n numBands);\n\n layout.setSampleModel(csm);\n\t isDataTypeChange = true;\n }\n\n\n // Check ColorModel.\n ColorModel colorModel = layout.getColorModel(null);\n if(colorModel != null &&\n !JDKWorkarounds.areCompatibleDataModels(layout.getSampleModel(src),\n colorModel)) {\n // Clear the mask bit if incompatible.\n layout.unsetValid(ImageLayout.COLOR_MODEL_MASK);\n }\n\n // Check whether anything but the ColorModel is changing.\n if (layout.getSampleModel(src) == src.getSampleModel() &&\n layout.getMinX(src) == src.getMinX() &&\n layout.getMinY(src) == src.getMinY() &&\n layout.getWidth(src) == src.getWidth() &&\n layout.getHeight(src) == src.getHeight() &&\n layout.getTileWidth(src) == src.getTileWidth() &&\n layout.getTileHeight(src) == src.getTileHeight() &&\n layout.getTileGridXOffset(src) == src.getTileGridXOffset() &&\n layout.getTileGridYOffset(src) == src.getTileGridYOffset()) {\n\n if(layout.getColorModel(src) == src.getColorModel()) {\n // Nothing changed: return the source directly.\n return src;\n } else {\n // Remove TileCache hint from RenderingHints if present.\n RenderingHints hints = renderHints;\n if(hints != null && hints.containsKey(JAI.KEY_TILE_CACHE)) {\n hints = new RenderingHints((Map)renderHints);\n hints.remove(JAI.KEY_TILE_CACHE);\n }\n\n // Only the ColorModel is changing.\n return new NullOpImage(src, layout, hints,\n OpImage.OP_IO_BOUND);\n }\n }\n\n\tif (isDataTypeChange == true) {\n\n\t // Add JAI.KEY_REPLACE_INDEX_COLOR_MODEL hint to renderHints\n\t if (renderHints == null) {\n\t\trenderHints = \n\t\t new RenderingHints(JAI.KEY_REPLACE_INDEX_COLOR_MODEL,\n\t\t\t\t Boolean.TRUE);\n\t\t\n\t } else if (!renderHints.containsKey(\n\t\t\t\t\tJAI.KEY_REPLACE_INDEX_COLOR_MODEL)) {\n\t\t// If the user specified a value for this hint, we don't\n\t\t// want to change that\n\t\trenderHints.put(JAI.KEY_REPLACE_INDEX_COLOR_MODEL, \n\t\t\t\tBoolean.TRUE);\n\t }\n\t}\n\n return new CopyOpImage(src, renderHints, layout);\n }",
"@Override\n public void initialize(UimaContext aUimaContext) {\n try {\n chunker = (NBestChunker) AbstractExternalizable.readResourceObject((String) aUimaContext\n .getConfigParameterValue(\"LingpipeModel\"));\n /*\n * chunker = (ConfidenceChunker) AbstractExternalizable.readResourceObject(\n * LingPipeAnnotator.class, (String)\n * aUimaContext.getConfigParameterValue(\"LingPipeNERModel\"));\n */\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"public interface ImageView {\n void addImages(List<ImageBean> list);\n void showProgress();\n void hideProgress();\n void showLoadFailMsg();\n}",
"public interface VisionPipeline {\n /**\n * Processes the image input and sets the result objects. Implementations should make these\n * objects accessible.\n *\n * @param image The image to process.\n */\n void process(Mat image);\n}",
"void cameraSetup();",
"public ImageFile(BufferedImage img) throws ImageException{\r\n\tloadImage(img);\r\n}",
"public abstract Builder setImageProcessingOptions(ImageProcessingOptions value);",
"public interface UploadFileService {\r\n Map upLoadPic(MultipartFile multipartFile);\r\n}",
"@Override\r\n\tpublic void init() {\n\t\timg = new ImageClass();\r\n\t\timg.Init(imgPath);\r\n\t}",
"public interface FileUploadService {\n\n /**\n *\n * @param form\n * @param path\n * @param fileName\n * @throws Exception\n */\n void uploadBase64Image(Base64ImageForm form, String path, String fileName) throws Exception;\n}",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n homeScreen = HomeScreenController.getInstance();\n User u = homeScreen.getCurrentUser();\n CRUDUser cr = new CRUDUser();\n this.username.setText(u.getUserInfoIdId().getUserFirstName());\nBufferedImage image = null;\n\n if(u.getUserInfoIdId().getUserImage()!=null){\n try {\n image = ImageIO.read(new URL(\"http://127.0.0.1:8000/Files/podcastFiles/\" + u.getUserInfoIdId().getUserImage()));\n } catch (MalformedURLException ex) {\n Logger.getLogger(GestionUsersController.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(GestionUsersController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }else{\n try {\n image = ImageIO.read(new URL(\"http://127.0.0.1:8000/Files/podcastFiles/avatar.jpg\"));\n } catch (MalformedURLException ex) {\n Logger.getLogger(GestionUsersController.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(GestionUsersController.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }\n WritableImage img = SwingFXUtils.toFXImage(image, null);\n this.imageUser.setFill(new ImagePattern(img));\n \n this.showUsers();\n }",
"public interface Image {\n void display();\n}",
"@Autowired\r\n\tpublic RecipeImageController(ServletContext servletContext, IRecipeService recipeService) {\r\n\t\tthis.servletContext = servletContext;\r\n\t\tthis.recipeService = recipeService;\r\n\t}",
"public interface ImageMetadataService {\n\n List<ArtistDTO> getArtistsByPrediction(String name, String name2, String surname);\n\n List<ImageTypeDTO> getImageTypesByPrediction(String name);\n\n UploadImageMetadataDTO saveMetadata(UploadImageMetadataDTO uploadImageMetadataDTO);\n\n List<ImageDTO> getTop10Images(String username, String title);\n\n List<ImageDTO> getAllUserImages(String username);\n\n List<ImageDTO> searchImagesByCriteria(SearchImageCriteriaDTO searchImageCriteriaDTO);\n\n ImageDTO updateImageMetadata(ImageDTO imageDTO);\n\n List<ImageDTO> getImagesTop50();\n\n void rateImage(RateImageDTO rateImageDTO);\n\n List<ImageDTO> getAllImages();\n}",
"@RequestMapping(value = \"/updateImageForProfile\", method = RequestMethod.POST)\n\tpublic String updateImageForProfile(ModelMap model, @ModelAttribute EndUserForm endUserForm)\n\t\t\tthrows CustomException {\n\n\t\ttry {\n\t\t\tEndUser userProfile = endUserDAOImpl.findId(endUserForm.getId());\n\t\t\tuserProfile.setImage(endUserForm.getFile().getBytes());\n\t\t\tuserProfile.setImageName(endUserForm.getFile().getOriginalFilename());\n\t\t\tendUserDAOImpl.update(userProfile);\n\n\t\t} catch (Exception e) {\n\t\t\te.getMessage();\n\t\t}\n\t\treturn \"redirect:editAdminProfile?id=\" + endUserForm.getId();\n\t}",
"public interface UploadsImService {\n @Multipart\n @POST(\"/api\")\n Single<ResponseBody> postImage(@Part MultipartBody.Part image);\n}",
"@Override\n \tpublic Representation putResource(Representation representation)\n \t\t\tthrows Exception {\n \t\tString interId = (String) this.getRequestAttributes().get(\"interId\");\n \n \t\t// Rcupre la reprsentation JSON du source\n \t\tJsonRepresentation jsonRepr = new JsonRepresentation(representation);\n \t\t// System.out.println(\"JsonRepresentation : \" + jsonRepr.getText());\n \n \t\t// Transforme la representation en objet java\n \t\tJSONObject jsObj = jsonRepr.getJsonObject();\n \t\tSource source = new Source(jsObj);\n \t\t// System.out.println(\"Source : \" + source.toJSON());\n \n \t\t// Ajoute l'source a la base de donne\n \t\tIntervention i = Interventions.getInstance().getIntervention(interId);\n \t\tList<Source> lm = i.getSources();\n \t\tlm.add(source);\n \t\t// Sources.getInstance().addSource(source);\n \t\t// Pas besoin de retourner de reprsentation au client\n \t\treturn null;\n \t}",
"public Builder withImage(ImageInfo image) {\n assertNotInvalidated(getClass(),object);\n object.image = image;\n return this;\n }",
"public interface IModelCamera {\n void saveImageIntoDatabase(ArrayList<String> data);\n\n PanoramicImage getImage(String path);\n\n void saveTagIntoDatabase(String id, String imagePath, String name);\n\n void deleteTagFromDatabase(String id);\n\n List<CustomTag> getImageTagsFromDatabase(String imagePath);\n\n List<PanoramicImage> getImages();\n\n void deleteImageFromDatabase(String path);\n\n}",
"@Test\n void readImage() throws Exception {\n ResultActions resultActions = mockMvc.perform(get(\"/v1/file/image-byte\")\n .param(\"name\", \"icon.jpg\")\n .contentType(MediaType.TEXT_PLAIN_VALUE))\n .andDo(resultHandler -> {\n String path = writeFile(resultHandler.getResponse().getContentAsByteArray(), \".jpg\");\n logger.debug(\"Image File recorded locally at: \" + path);\n }\n );\n\n resultActions\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.IMAGE_JPEG_VALUE))\n ;\n }"
] | [
"0.56721485",
"0.55056745",
"0.54911476",
"0.54064727",
"0.5368156",
"0.53535306",
"0.528575",
"0.52835125",
"0.52517337",
"0.52394927",
"0.5151989",
"0.51517636",
"0.50891554",
"0.5087392",
"0.5015852",
"0.5006236",
"0.5006081",
"0.49708876",
"0.49559772",
"0.4951963",
"0.49381116",
"0.49280488",
"0.4903006",
"0.48940444",
"0.48859432",
"0.48857933",
"0.48826376",
"0.48668835",
"0.48542595",
"0.48263988",
"0.48020333",
"0.47747388",
"0.47683784",
"0.4767481",
"0.47599608",
"0.47544408",
"0.47485554",
"0.4738969",
"0.47360486",
"0.47326708",
"0.47206604",
"0.47168422",
"0.47102067",
"0.471015",
"0.46915737",
"0.46881625",
"0.46846405",
"0.46842718",
"0.4684062",
"0.46821412",
"0.4673876",
"0.4667889",
"0.4666773",
"0.4662312",
"0.4661484",
"0.46596155",
"0.46345007",
"0.4632624",
"0.46299767",
"0.46233734",
"0.46186823",
"0.4614234",
"0.46127433",
"0.461138",
"0.46090823",
"0.45992193",
"0.45965326",
"0.45908225",
"0.45798144",
"0.45789465",
"0.4575031",
"0.45702326",
"0.45690656",
"0.45671028",
"0.4562963",
"0.4550609",
"0.45302236",
"0.45263687",
"0.45245683",
"0.4523563",
"0.45211133",
"0.4518935",
"0.45169532",
"0.4502728",
"0.4497661",
"0.4496374",
"0.44946244",
"0.44886887",
"0.44885927",
"0.44830483",
"0.44804695",
"0.4477313",
"0.4476569",
"0.44764757",
"0.44758448",
"0.44758132",
"0.44699195",
"0.4468939",
"0.44646648",
"0.44569266"
] | 0.7597842 | 0 |
Processes the input present in the readable object to execute the commands by calling appropriate command. | @Override
public void processInput() throws IllegalArgumentException, InputMismatchException,
FileNotFoundException {
Scanner scanner = new Scanner(this.in);
while (scanner.hasNext()) {
String input = scanner.next();
switch (input) {
case "q":
return;
case "load:":
File imageFile = new File(scanner.next());
if (imageFile.exists()) {
this.model = this.model.fromImage(load(imageFile));
} else {
throw new FileNotFoundException("File does not exist");
}
break;
case "save:":
String path = scanner.next();
this.save(this.model.getModelImage(), getImageFormat(path), path);
break;
default:
Function<Scanner, EnhancedImageModel> getCommand = knownCommands.getOrDefault(
input, null);
if (getCommand == null) {
throw new IllegalArgumentException("command not defined.");
} else {
this.model = getCommand.apply(scanner);
}
break;
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void acceptCommands() {\n\t\tScanner input = new Scanner(System.in);\n\t\tInteractiveCommandParser commandParser = new InteractiveCommandParser(\n\t\t\t\tinput, this);\n\t\tcommandParser.readCommands(); // blocking command reader\n\t}",
"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 processCommand()\n {\n String vInput = this.aEntryField.getText();\n this.aEntryField.setText(\"\");\n\n this.aEngine.interpretCommand( vInput );\n }",
"public void processInput() {\n\n\t}",
"public void read() {\n try {\n pw = new PrintWriter(System.out, true);\n br = new BufferedReader(new InputStreamReader(System.in));\n input = br.readLine();\n while (input != null) {\n CM.processCommand(input, pw, true);\n input = br.readLine();\n }\n } catch (IOException ioe) {\n pw.println(\"ERROR: Problem with reading user input.\");\n } finally {\n try {\n br.close();\n } catch (IOException ioe) {\n pw.println(\"ERROR: Buffer DNE\");\n }\n }\n }",
"public void run()\n\t {\n\t stdin = new Scanner(System.in);\n\t boolean done = false;\n\t while ( !done )\n\t {\n\t String command = stdin.next();\n\t char ccommand=command.charAt(0);\n\t switch (ccommand) \n\t { \n\t case 'I': add('I');\n\t\t\t break; \n\t case 'O': add('O');\n\t break;\n\t case 'N': add('N');\n\t break;\n\t case 'R': remove();\n\t break;\n\t case 'P': print();\n\t break;\n\t case 'Q': \n\t System.out.println(\"Program terminated\");\n\t done = true;\n\t break;\n\t default: //deal with bad command here \n\t System.out.println(\"Command\"+\"'\"+command+\"'\"+\"not supported!\");\t\t\n\t } \n\t }\n\t }",
"private void processInput() {\r\n\t\ttry {\r\n\t\t\thandleInput(readLine());\r\n\t\t} catch (WrongFormatException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void processInput(CommandLineInput commandLineInput) {\n\t\t\n\t}",
"private void runCmd(String input) {\n CommandDetails cmd = cmdParser.parse(input);\n if (cmd != null) {\n switch (cmd.getAction()) {\n case LIST:\n listAll(cmd.getType());\n break;\n case SEARCH:\n search(cmd);\n break;\n case SEND_HELP:\n sendHelp(cmd);\n break;\n case SEND_USAGE:\n sendUsage(cmd.getType());\n break;\n case EXIT:\n closeStreams();\n break;\n }\n }\n sendMsgToClient(END_TRANSMISSION);\n }",
"private void processInput(String command) {\r\n\r\n if (command.equals(\"1\")) {\r\n displayListings();\r\n } else if (command.equals(\"2\")) {\r\n listYourCar();\r\n } else if (command.equals(\"3\")) {\r\n removeYourCar(user);\r\n } else if (command.equals(\"4\")) {\r\n checkIfWon();\r\n } else if (command.equals(\"5\")) {\r\n saveCarListings();\r\n } else if (command.equals(\"6\")) {\r\n exitApp = true;\r\n } else {\r\n System.out.println(\"Invalid selection\");\r\n }\r\n }",
"public void getCommand() {\n\t\t\n\t\tSystem.out.println(\"Enter a command:\");\n\t\tString Input = reader.nextLine(); //takes the user's input and places it in String Input\n\t\t\n\t\t//in the collection of commands, will run loop once for each item in that collection and \n\t\t//stores the item it is looking in the variable created\n\t\tfor (Commandable command : Commands) { \n\t\t\t\n\t\t\tif (command.matchCommand(Input)) {\n\t\t\t\t\n\t\t\t\tcommand.doCommand();\n\t\t\t\treturn;\t//this ends the method to break out of the loop\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Command not recognized\");\n\t}",
"private void handleCommand(String input) throws ClientOfflineException, ServerException {\n String[] params = input.split(\" \");\n Command command = this.availableCommandMap.get(params[0]);\n String argument = (params.length <= 1) ? null : params[1];\n command.execute(this, argument);\n }",
"@Override\n\tprotected void processInput() {\n\t}",
"@Override\n public void execute() {\n if(state.getState()!=1) {\n client.printParseMessage();\n return;\n } else if(inputArgs.length < 1) {\n System.out.println(client.strings.getString(\"manage_command_message\"));\n return;\n }\n try {\n client.setDraftTag(inputArgs[0]);\n channel.send(new ReadRequest(client.getDraftTag()));\n ReadReply reply = (ReadReply) channel.receive();\n if(!reply.lines.isEmpty()) {\n String replyLine = reply.lines.get(reply.lines.size() - 1);\n if(Push.CLOSE_LINE.equals(replyLine)) {\n System.out.println(client.strings.getString(\"manage_close_command_message\"));\n return;\n }\n }\n } catch (IOException | ClassNotFoundException ex) {\n Logger.getLogger(ReadCommand.class.getName())\n .log(Level.SEVERE, null, ex);\n }\n state.setState(2);\n }",
"@Override\n public CommandResult execute(String userInput) throws DukeException {\n Command c;\n if (EditorManager.isActive()) {\n logger.log(Level.INFO, \"editing...\");\n c = EditorManager.edit(userInput);\n } else {\n try {\n c = Parser.parseComplexCommand(userInput);\n conversationManager.clearContext();\n } catch (ChronologyAfterPresentException | ChronologyBeforePresentException\n | ChronologyInconsistentException | ApiException e) {\n throw e;\n } catch (ParseException e) {\n c = getCommandFromConversationManager(userInput);\n }\n }\n return (CommandResult) c.execute(model);\n }",
"protected abstract void execute(INPUT input);",
"public void handleCommand(String command);",
"@Override\n public void process() throws IOException {\n outputPrinter.welcome();\n final BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n while (true) {\n final String input = reader.readLine();\n final ExecutableCommand command = new ExecutableCommand(input);\n processCommand(command);\n if (command.getCommandName().equals(ExitCommand.COMMAND_NAME)) {\n break;\n }\n }\n }",
"public interface CommandHandler {\n void handleInput(String msg, DataInputStream input, DataOutputStream output);\n}",
"private void standByForMessages() throws IOException {\n if (reader.readLine() != null) {\n try {\n JSONObject j = (JSONObject) jps.parse(reader.readLine());\n sequence = Integer.valueOf(j.get(\"sequence\").toString());\n String cmd = (String) j.get(\"command\");\n JSONArray parameter = (JSONArray) j.get(\"parameter\");\n cmdHandler(parameter, cmd);\n } catch (ParseException ex) {\n }\n }\n }",
"@Override\n public void process(Serializable msg) {\n ((Command) msg).execute(arg);\n }",
"public void execute() {\n\t\ttry {\n\t\t\tMethod method = this.getClass().getMethod(parseMethod(), new Class[0]);\n\t\t\tmethod.invoke(this, new Object[0]);\n\t\t} catch (NoSuchMethodException | SecurityException e) {\n\t\t\tSystem.out.println(\"Unknown option: \" + command);\n\t\t} catch (IllegalAccessException | IllegalArgumentException e) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"Invalid usage of: \" + command + \", the following error \" + \"was given: \" + e.getMessage());\n\t\t} catch (InvocationTargetException e) {\n\t\t\tSystem.out.println(\"An error occurred while executing '\" + command + \"'. The \"\n\t\t\t\t\t+ \"following error was given: \" + e.getCause());\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void startProcessing(Scanner input) {\n logger = Logger.getInstance();\n CommandsHandler handler = new CommandsHandler();\n while(input.hasNextLine()) {\n String command = input.nextLine();\n logger.log(\"startProcessing \" + command);\n String key = null;\n if(command.startsWith(\"SET\")) {\n key = command.substring(4, command.indexOf(' ', 4));\n Integer value = Integer.parseInt(command.substring(command.indexOf(' ', 4) + 1));\n handler.set(key, value, command);\n } else if(command.startsWith(\"GET\")) {\n key = command.substring(4);\n handler.get(key);\n } else if(command.startsWith(\"UNSET\")) {\n key = command.substring(6);\n handler.unset(key, command);\n } else if(command.startsWith(\"NUMEQUALTO\")) {\n key = command.substring(11);\n handler.numEqualsTo(key, command);\n } else if(command.startsWith(\"END\")) {\n handler.endProgram();\n } else if(command.startsWith(\"BEGIN\")) {\n handler.begin(command);\n } else if(command.startsWith(\"ROLLBACK\")) {\n handler.rollback();\n } else if(command.startsWith(\"COMMIT\")) {\n handler.commit(command);\n }\n }\n }",
"void readCommand(String command) throws IOException, ClassNotFoundException, InterruptedException;",
"private static void command() {\n Scanner reader = new Scanner(System.in);\n System.out.print(\"Write action (buy, fill, take):\\n> \");\n String input = reader.next();\n\n switch (input) {\n case \"buy\" :\n buy();\n break;\n case \"fill\" :\n fill();\n break;\n case \"take\" :\n take();\n break;\n default:\n System.out.println(\"not accepted command\");\n }\n }",
"private Command parseCommand(String input) {\r\n\r\n String[] splittedInput = input.toUpperCase().split(\" \");\r\n String command = splittedInput[0];\r\n\r\n switch (command) {\r\n case \"PLACE\":\r\n return new PlaceCommand(input);\r\n case \"MOVE\":\r\n return new MoveCommand();\r\n case \"LEFT\":\r\n return new RotateLeftCommand();\r\n case \"RIGHT\":\r\n return new RotateRightCommand();\r\n case \"REPORT\":\r\n return new ReportCommand();\r\n default:\r\n return new IgnoreCommand();\r\n }\r\n }",
"private void processCommand(String command) {\n if (command.equals(\"1\")) {\n insertItem();\n } else if (command.equals(\"2\")) {\n removeItem();\n } else if (command.equals(\"3\")) {\n viewList();\n } else if (command.equals(\"4\")) {\n saveToDoList();\n } else if (command.equals(\"5\")) {\n loadToDoList();\n } else {\n System.out.println(\"Selection not valid...\");\n }\n }",
"private DecoderState readCommand(ByteBuf in) {\n\n DecoderState nextState = DecoderState.READ_COMMAND;\n String line = readLine(in);\n\n if (line != null) {\n command = Command.valueOf(line);\n nextState = DecoderState.READ_HEADERS;\n }\n\n return nextState;\n }",
"public void run() {\n\t\tsetupReadline();\n\n\t\tif (Options.cmdFilename != null) {\n\t\t\tcmdOpen(Options.cmdFilename);\n\t\t} else {\n\t\t\tLog.verbose(\"Enter `help' for a list of available commands.\");\n\t\t\t\n\t\t\tif (Options.doPLUGIN) {\n\t\t\t\tLog.verbose(\"Enter `plugins' for a list of available plugin commands.\");\n\t\t\t}\n\t\t}\n\n while (!fFinished) {\n Thread.yield();\n Log.resetOutputFlag();\n\n String line = \"\";\n\n // get current readline (may be e.g. console or file)\n fReadline = fReadlineStack.getCurrentReadline();\n try {\n if (fMultiLineMode) {\n while (true) {\n // use special prompt to emphasize multi-line input\n String oneLine = fReadline.readline(CONTINUE_PROMPT);\n // end of input or a single dot terminates the input\n // loop\n if (oneLine == null || oneLine.equals(\".\"))\n break;\n line += oneLine + Options.LINE_SEPARATOR;\n }\n fMultiLineMode = false;\n } else {\n line = fReadline.readline(PROMPT);\n }\n } catch (IOException ex) {\n Log.error(\"Cannot read line: \" + ex.getMessage());\n }\n if (line != null) {\n \tif (!fReadline.doEcho())\n \t\tUSEWriter.getInstance().protocol(line);\n \t\n processLineSafely(line);\n } else {\n fFinished = fReadlineStack.popCurrentReadline();\n setFileClosed();\n \n if (fFinished && Options.quiet)\n processLineSafely(\"check\");\n }\n }\n cmdExit();\n }",
"private void doOperation(String[] separatedInput) {\n\t\tswitch (separatedInput.length) {\n\t\tcase 1 -> {\n\t\t\tswitch (separatedInput[0]) {\n\t\t\tcase \"P\" -> display();\n\t\t\tcase \"C\" -> checkout();\n\t\t\tdefault -> System.out.println(\"Invalid command!\");\n\t\t\t}\n\t\t}\n\t\tcase 4 -> {\n\t\t\tString itemName = separatedInput[1];\n\t\t\tdouble itemPrice = Double.parseDouble(separatedInput[2]);\n\t\t\tboolean itemTaxable = Boolean.parseBoolean(separatedInput[3]);\n\t\t\tGroceryItem itemObj = new GroceryItem(itemName, itemPrice, itemTaxable);\n\t\t\tswitch (separatedInput[0]) {\n\t\t\tcase \"A\" -> add(itemObj, itemName);\n\t\t\tcase \"R\" -> remove(itemObj, itemName, itemPrice);\n\t\t\tdefault -> System.out.println(\"Invalid command!\");\n\t\t\t}\n\t\t}\n\t\tdefault -> System.out.println(\"Invalid command!\");\n\t\t}\n\t}",
"@Override\r\n public void getInput() { \r\n \r\n String command;\r\n Scanner inFile = new Scanner(System.in);\r\n \r\n do {\r\n \r\n this.display();\r\n \r\n command = inFile.nextLine();\r\n command = command.trim().toUpperCase();\r\n \r\n switch (command) {\r\n case \"B\":\r\n this.helpMenuControl.displayBoardHelp();\r\n break;\r\n case \"C\":\r\n this.helpMenuControl.displayComputerPlayerHelp();\r\n break;\r\n case \"G\":\r\n this.helpMenuControl.displayGameHelp();\r\n break; \r\n case \"Q\": \r\n break;\r\n default: \r\n new Connect4Error().displayError(\"Invalid command. Please enter a valid command.\");\r\n }\r\n } while (!command.equals(\"Q\")); \r\n }",
"protected void channelRead0(ChannelHandlerContext channelHandlerContext, CommandMessage command) throws Exception {\r\n\r\n final Op cmd = command.op;\r\n\r\n // now do the real work\r\n if (this.verbose) {\r\n final StringBuilder log = new StringBuilder(1024);\r\n log.append(cmd);\r\n if (command.element != null) {\r\n log.append(\" \").append(command.element.getKey());\r\n }\r\n log.append(\" \").append(command.key);\r\n logger.info(log.toString());\r\n }\r\n\r\n final Channel channel = channelHandlerContext.channel();\r\n if (cmd == null) {\r\n handleNoOp(command, channel);\r\n } else {\r\n switch (cmd) {\r\n case GET:\r\n handleGet(command, channel);\r\n break;\r\n case GETS:\r\n handleGets(command, channel);\r\n break;\r\n case APPEND:\r\n handleAppend(command, channel);\r\n break;\r\n case PREPEND:\r\n handlePrepend(command, channel);\r\n break;\r\n case DELETE:\r\n handleDelete(command, channel);\r\n break;\r\n case DECR:\r\n handleDecr(command, channel);\r\n break;\r\n case INCR:\r\n handleIncr(command, channel);\r\n break;\r\n case REPLACE:\r\n handleReplace(command, channel);\r\n break;\r\n case ADD:\r\n handleAdd(command, channel);\r\n break;\r\n case SET:\r\n handleSet(command, channel);\r\n break;\r\n case CAS:\r\n handleCas(command, channel);\r\n break;\r\n case STATS:\r\n handleStats(command, channel);\r\n break;\r\n case VERSION:\r\n handleVersion(command, channel);\r\n break;\r\n case QUIT:\r\n handleQuit(channel);\r\n break;\r\n case FLUSH_ALL:\r\n handleFlush(command, channel);\r\n break;\r\n case VERBOSITY:\r\n handleVerbosity(command, channel);\r\n break;\r\n default:\r\n throw new UnknownCommandException(\"unknown command\");\r\n }\r\n }\r\n }",
"public static Command parse(String input) throws DukeException {\r\n String[] inputArr = input.split(\" \", 2);\r\n String command = inputArr[0];\r\n\r\n switch (command) {\r\n case \"bye\":\r\n return new ExitCommand();\r\n case \"list\":\r\n return new ListCommand();\r\n case \"done\":\r\n try {\r\n return new DoneCommand(inputArr[1]);\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n throw new DukeException(\"Please specify the task number you wish to\\n mark as done!\");\r\n }\r\n case \"delete\":\r\n try {\r\n return new DeleteCommand(inputArr[1]);\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n throw new DukeException(\"Please specify the task number you wish to\\n delete!\");\r\n }\r\n case \"todo\":\r\n try {\r\n return new AddCommand(new Todo(inputArr[1]));\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n throw new DukeException(\"The description of a todo cannot be empty.\");\r\n }\r\n case \"deadline\":\r\n try {\r\n String[] detailsArr = inputArr[1].split(\" /by \");\r\n return new AddCommand(new Deadline(detailsArr[0], detailsArr[1]));\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n throw new DukeException(\r\n \"Please follow the format:\\n deadline <description> /by <DD/MM/YYYY HHMM>\");\r\n }\r\n case \"event\":\r\n try {\r\n String[] detailsArr = inputArr[1].split(\" /at \");\r\n return new AddCommand(new Event(detailsArr[0], detailsArr[1]));\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n throw new DukeException(\r\n \"Please follow the format:\\n event <description> /at <DD/MM/YYYY HHMM>\");\r\n }\r\n case \"find\":\r\n try {\r\n return new FindCommand(inputArr[1]);\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n throw new DukeException(\"Please specify what you are searching for!\");\r\n }\r\n default:\r\n throw new DukeException(\"I'm sorry, but I don't know what that means!\");\r\n }\r\n }",
"private void interactive() {\r\n\t\tBufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in));\r\n\t\t\r\n\t\twhile (true) {\r\n\t\t\tSystem.out.print(\"Enter Command: \");\r\n\t\t\ttry {\r\n\t\t\t\tprocessCommandSet(tokenizeInput(keyboard.readLine()));\r\n\t\t\t\tif (quit == true) {\r\n\t\t\t\t\tSystem.out.println(\"Terminated at users request.\");\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tSystem.err.println(\"An IO Error Occured. \" + e.getMessage());\r\n\t\t\t\tSystem.exit(1);\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}",
"public void processCommand(String userInput){\n if (userInput.contains(\" \")){ \n processSingleToken(userInput.split(\" \")); //Splits strings based on \" \" \n }\n \n else{\n List<String> tempStore = new ArrayList<String>();\n tempStore.add(userInput);\n String[] token = tempStore.toArray(new String[tempStore.size()]);\n processSingleToken(token);\n }\n }",
"protected void mainTask() {\n\t logger.log(1, CLASS, \"-\", \"impl\",\n\t\t \"About to read command\");\n\t try { \n\t\tcommand = (COMMAND)connection.receive();\n\t\tlogger.log(1,CLASS, \"-\", \"impl\",\n\t\t\t \"Received command: \"+(command == null ? \"no-command\" : command.getClass().getName()));\n\t } catch (IOException e) {\n\t\tinitError(\"I/O error while reading command:[\"+e+\"]\",command);\n\t\treturn;\n\t } catch (ClassCastException ce) {\n\t\tinitError(\"Garbled command:[\"+ce+\"]\", command);\n\t\treturn;\n\t } \n\t \n\t // 2. Create a handler.\n\t if (command == null) {\n\t\tinitError(\"No command set\", null);\n\t\treturn;\n\t }\n\n\t if (handlerFactory != null) {\n\t\thandler = handlerFactory.createHandler(connection, command);\n\t\tif (handler == null) {\n\t\t initError(\"Unable to process command [\"+command.getClass().getName()+\"]: No known handler\", command);\n\t\t return;\n\t\t}\n\t \n\t\t// 3. Handle the request - handler may send multiple updates to client over long period\n\t\thandler.handleRequest();\n\t }\t \n\t}",
"private void processCommands() {\n while (!commandQueue.isEmpty()) {\n var msg = commandQueue.remove();\n treatCommand.parseCommand(msg);\n }\n }",
"protected void handleInput(String input) {}",
"public void process() {\n \n//System.out.println(\"UndoCommand.undo()\");\n//System.out.println(\" command: \" + command.getDescription());\n//System.out.println(\" isTransient: \" + command.isTransient());\n//System.out.println(\" isUndoable: \" + command.isUndoable());\n\n try {\n \n command.undo();\n\n // Move the command to the top of the redo stack\n redoCommands.push(command);\n\n // Trim the redo stack\n if (redoCommands.size() > maxSize) {\n redoCommands.setSize(maxSize);\n } \n \n // finally, notify listeners of the change\n for (int i = 0; i < commandListeners.size(); i++) {\n CommandListener l = commandListeners.get(i);\n l.commandExecuted(command);\n }\n\n } catch (Exception e) {\n errorReporter.errorReport(\"Undo of \" + command.getDescription() + \" command failed.\", e);\n }\n\n }",
"public void readCommands() {\n\t\t\n\t\tif(this.initialPoint.getOrientation() == 'N' ||\n\t\t\t\tthis.initialPoint.getOrientation() == 'E' ||\n\t\t\t\tthis.initialPoint.getOrientation() == 'W' ||\n\t\t\t\tthis.initialPoint.getOrientation() == 'S') {\n\n\t\t\tfor(char letter : commands) {\n\t\t\t\tswitch (letter) {\n\t\t\t\tcase 'D':\n\t\t\t\t\tturnRight();\n\t\t\t\t\tprintPosition();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'G':\n\t\t\t\t\tturnLeft();\n\t\t\t\t\tprintPosition();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'A':\n\t\t\t\t\tmoveForward();\n\t\t\t\t\tprintPosition();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t// If the sequence of commands contains a letter which is not recognized\n\t\t\t\t\t// the mower will process the next command/letter.\n\t\t\t\t\tSystem.out.println(\"Command not recognized. Admissible values: [D, G, A].\");\n\t\t\t\t\tSystem.out.println(\"Processing next command.\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\telse {\n\t\t\tSystem.out.println(\"Orientation not admissible. Stopping program.\");\n\t\t\treturn;\n\t\t}\n\n\t}",
"private void handleCommand() throws IOException {\n\t\tboolean commandHasParameter = false;\n\t\tboolean parameterIsNegative = false;\n\t\tint parameterValue = 0;\n\t\tStringBuilder commandText = new StringBuilder();\n\t\tStringBuilder parameterText = new StringBuilder();\n\n\t\tint ch = source.read();\n\t\tif (ch == -1) {\n\t\t\tthrow new EOFException();\n\t\t}\n\n\t\tcommandText.append((char) ch);\n\n\t\tif (!Character.isLetter(ch)) {\n\t\t\thandleCommand(commandText, 0, commandHasParameter);\n\t\t\treturn;\n\t\t}\n\n\t\twhile (true) {\n\t\t\tch = source.read();\n\t\t\tif (ch == -1 || !Character.isLetter(ch)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcommandText.append((char) ch);\n\t\t\tif (commandText.length() > MAX_COMMAND_LENGTH) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (ch == -1) {\n\t\t\tthrow new EOFException();\n\t\t}\n\n\t\tif (commandText.length() > MAX_COMMAND_LENGTH) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid keyword: \"\n\t\t\t\t\t+ commandText.toString());\n\t\t}\n\n\t\tif (ch == '-') {\n\t\t\tparameterIsNegative = true;\n\t\t\tch = source.read();\n\t\t\tif (ch == -1) {\n\t\t\t\tthrow new EOFException();\n\t\t\t}\n\t\t}\n\t\tif (Character.isDigit(ch)) {\n\t\t\tcommandHasParameter = true;\n\t\t\tparameterText.append((char) ch);\n\t\t\twhile (true) {\n\t\t\t\tch = source.read();\n\t\t\t\tif (ch == -1 || !Character.isDigit(ch)) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tparameterText.append((char) ch);\n\t\t\t\tif (parameterText.length() > MAX_PARAMETER_LENGTH) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (parameterText.length() > MAX_PARAMETER_LENGTH) {\n\t\t\t\tthrow new IllegalArgumentException(\"Invalid parameter: \"\n\t\t\t\t\t\t+ parameterText.toString());\n\t\t\t}\n\n\t\t\tparameterValue = Integer.parseInt(parameterText.toString());\n\t\t\tif (parameterIsNegative) {\n\t\t\t\tparameterValue = -parameterValue;\n\t\t\t}\n\t\t}\n\n\t\tif (ch != ' ') {\n\t\t\tsource.canselRead(ch);\n\t\t}\n\n\t\thandleCommand(commandText, parameterValue, commandHasParameter);\n\t}",
"protected void readAndProcessInFile() throws IOException {\r\n\r\n\t\tfinal String LINE_PROMPT = \"\\nPlease enter a line; a command must start with a \"\r\n\t\t\t\t+ Editor.COMMAND_START + \".\";\r\n\r\n\t\tString result = new String();\r\n\r\n\t\tfileWriter.println(LINE_PROMPT);\r\n\t\tString line = fileReader.readLine();\r\n\t\twhile (line != null) {\r\n\r\n\t\t\ttry {\r\n\r\n\t\t\t\tfileWriter.println(line);\r\n\t\t\t\tresult = editor.interpret(line);\r\n\r\n\t\t\t} // try\r\n\t\t\tcatch (RuntimeException e) {\r\n\r\n\t\t\t\tfileWriter.println(e);\r\n\r\n\t\t\t} // catch\r\n\t\t\tif (line.equals(Editor.DONE_COMMAND))\r\n\t\t\t\tfileWriter.println(result);\r\n\t\t\telse\r\n\t\t\t\tfileWriter.println(LINE_PROMPT);\r\n\t\t\tline = fileReader.readLine();\r\n\t\t} // while\r\n\t\tfileWriter.close();\r\n\r\n\t}",
"@Override\n\tpublic void run() {\n\t\twhile (receivingCommands) {\n\t\t\ttry {\n\t\t\t\tCommandHandler commandHandler = new CommandHandler(readNextLine());\n\t\t\t\tswitch (commandHandler.getCommand()) {\n\t\t\t\tcase REGISTER:\n\t\t\t\t\tString username = commandHandler.getParam(1);\n\t\t\t\t\tString password = commandHandler.getParam(2);\n\t\t\t\t\tfileCatalog.register(username, password);\n\t\t\t\t\tbreak;\n\t\t\t\tcase LOGIN:\n\t\t\t\t\tString username1 = commandHandler.getParam(1);\n\t\t\t\t\tString password1 = commandHandler.getParam(2);\n\t\t\t\t\tjwtToken = fileCatalog.login(username1, password1);\n\t\t\t\t\tbreak;\n\t\t\t\tcase LIST:\n\t\t\t\t\tList<? extends FileDTO> files = fileCatalog.list(jwtToken);\n\t\t\t\t\tfor (FileDTO file : files) {\n\t\t\t\t\t\tprintDetails(file);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase DETAILS:\n\t\t\t\t\tString fileName = commandHandler.getParam(1);\n\t\t\t\t\tFileDTO file = fileCatalog.details(jwtToken, fileName);\n\t\t\t\t\tprintDetails(file);\n\t\t\t\t\tbreak;\n\t\t\t\tcase UPR:\n\t\t\t\t\tString pathFileToUploadReadOnly = commandHandler.getParam(1);\n\t\t\t\t\tString newFileNameOnServerReadOnly = commandHandler.getParam(2);\n\t\t\t\t\tfileCatalog.upload(jwtToken, newFileNameOnServerReadOnly, false);\n\t\t\t\t\t// TODO\n\t\t\t\t\tbreak;\n\t\t\t\tcase UPW:\n\t\t\t\t\tString pathFileToUpload = commandHandler.getParam(1);\n\t\t\t\t\tString newFileNameOnServer = commandHandler.getParam(2);\n\t\t\t\t\tfileCatalog.upload(jwtToken, newFileNameOnServer, true);\n\t\t\t\t\t// TODO\n\t\t\t\t\tbreak;\n\t\t\t\tcase DOWN:\n\t\t\t\t\tString fileNameToDL = commandHandler.getParam(1);\n\t\t\t\t\tString targetDirectory = commandHandler.getParam(2);\n\t\t\t\t\tString newNameDL = commandHandler.getParam(3);\n\t\t\t\t\tfileCatalog.download(jwtToken, fileNameToDL, targetDirectory, newNameDL);\n\t\t\t\t\t// TODO\n\t\t\t\t\tbreak;\n\t\t\t\tcase DELETE:\n\t\t\t\t\tString fileNameToDelete = commandHandler.getParam(1);\n\t\t\t\t\tfileCatalog.delete(jwtToken, fileNameToDelete);\n\t\t\t\t\t// TODO\n\t\t\t\t\tbreak;\n\t\t\t\tcase LOGOUT:\n\t\t\t\t\tjwtToken = null;\n\t\t\t\t\tsafePrintln(\"You have been logged out.\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase QUIT:\n\t\t\t\t\treceivingCommands = false;\n\t\t\t\t\tsafePrintln(\"Good bye!\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase HELP:\n\t\t\t\t\tfor (Command command : Command.values()) {\n\t\t\t\t\t\tif (command == Command.UNKNOWN) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsafePrintln(command.toString().toLowerCase());\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tsafePrintln(\"Unrecognized command.\");\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tniceErrorPrint(e);\n\t\t\t}\n\t\t}\n\t}",
"public static CommandElements ProcessInput(String command) throws CommandNotFound, EditFieldNotFound {\n\t\tCommandNotFound command_exception = new CommandNotFound(CMD_NOT_FOUND);\n\t\tEditFieldNotFound edit_exception = new EditFieldNotFound(EDIT_NOT_FOUND);\n\t\tCommand_Type type;\n\t\tString name;\n\t\tTaskDate date[] = new TaskDate[2];\n\t\tTaskTime time[] = new TaskTime[2];\n\t\tCommand_Priority priority;\n\t\tCommand_Field field;\n\t\tint object;\n\t\ttype = CommandSplitter.findType(command);\n\t\tname = CommandSplitter.findName(command);\n\t\tdate = CommandSplitter.extractDate(command);\n\t\ttime = CommandSplitter.extractTime(command);\n\t\tpriority = CommandSplitter.findPriority(command);\n\t\tfield = CommandSplitter.findField(command);\n\t\tswitch (type) {\n\t\tcase ADD_TASK:\n\t\t\treturn new CommandElements(type, name, date, priority, time);\n\t\tcase EDIT_TASK:\n\t\t\tobject = CommandSplitter.findObject(command);\n\t\t\tswitch (field) {\n\t\t\tcase NAME:\n\t\t\t\treturn new CommandElements(type, object, field, name);\n\t\t\tcase START_DATE:\n\t\t\tcase END_DATE:\n\t\t\t\treturn new CommandElements(type, object, field, date[SINGLE]);\n\t\t\tcase START_TIME:\n\t\t\tcase END_TIME:\n\t\t\t\treturn new CommandElements(type, object, field, time[SINGLE]);\n\t\t\tdefault:\n\t\t\t\tthrow edit_exception;\n\t\t\t}\n\t\tcase SEARCH_TASK:\n\t\t\tobject = CommandSplitter.findObject(command);\n\t\t\tCommandElements thisC = new CommandElements(type, name, date, priority, time);\n\t\t\tthisC.setID(object);\n\t\t\treturn thisC;\n\t\tcase DELETE_TASK:\n\t\tcase FINISH_TASK:\n\t\tcase UNFINISH_TASK:\n\t\tcase FLAG_TASK:\n\t\tcase UNFLAG_TASK:\n\t\t\tobject = CommandSplitter.findObject(command);\n\t\t\treturn new CommandElements(type, object);\n\t\tcase UNDO:\n\t\tcase REDO:\n\t\tcase VIEW_COMPLETED:\n\t\tcase HELP:\n\t\t\treturn new CommandElements(type);\n\t\tcase DIRECTORY:\n\t\t\treturn new CommandElements(type, name);\n\t\tdefault:\n\t\t\tthrow command_exception;\n\t\t}\n\t}",
"public interface Command {\n /**\n * Executes command, which reads from inputStream, with given arguments.\n *\n * @param args list of arguments for the command.\n * @param inputStream InputStream where Command reads from.\n * @param environment Shell environment with all current variables.\n *\n * @return result of command execution as InputStream.\n */\n InputStream execute(List<String> args, InputStream inputStream, Environment environment)\n throws SyntaxErrorException, IOException;\n}",
"public void run(){\n\t\t\ttry{\n\t\t\t\twhile(true){\n\t\t\t\t\tScanner keyboard = new Scanner(System.in);\n\t\t\t\t\tString line = keyboard.nextLine();\n\t\t\t\t\tString[] command = line.split(\" \");\n\t\t\t\t\tSystem.out.println(execute(line));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}catch(Exception ex){\n\t\t\t\tSystem.err.println(\"Incorrect command \\\"help\\\" for info\");\n\t\t\t\tex.printStackTrace();\n\t\t\t\trun();\n\t\t\t}\n\t\t\t\n\t\t}",
"@Override\n protected void executeCommands(ITextTokenStream<BasicTextTokenType> stream) {\n TextToken<BasicTextTokenType> object = stream.getFirstObject();\n String token = object == null ? null : object.getStandardToken();\n if (token != null) {\n if (stream.getVerb() != null){\n switch (stream.getVerb().getType()) {\n case ATTACK:\n attackMob(token, object);\n break;\n case LOOK:\n lookAt(token, object);\n break;\n case MOVE:\n movePlayer(token, object);\n break;\n case GET:\n getItemFromRoom(token, object);\n break;\n case LOOT:\n lootAll(token, object);\n break;\n case DROP:\n dropItem(token, object);\n break;\n case EQUIP: // effect replaced with LOCK\n lock(token, object);\n //equipItem(token, object);\n break;\n case UNEQUIP: // effect replaced with UNLOCK\n unlock(token, object);\n //unequipItem(token, object);\n break;\n case INFO:\n info(token, object);\n break;\n case QUIT:\n quitGame();\n break;\n default:\n return;\n }\n }\n // For objects that can also be used to infer their verbs\n else {\n switch (object.getType()) {\n case DIRECTION:\n movePlayer(token, object);\n break;\n case INVENTORY:\n info(token, object);\n break;\n case HEALTH:\n info(token, object);\n break;\n default:\n return;\n }\n }\n\n } else {\n return;\n }\n\n }",
"public void processInput(String command) {\r\n\t\t//begin\r\n\t\tString word = \"\";\r\n\t\tint i = 0;\r\n\t\tboolean processingInput = true;\r\n\t\t\r\n\t\t//loop that runs through whole command and breaks it apart\r\n\t\twhile(processingInput == true && i < command.length()) {\r\n\t\t\t\r\n\t\t\tif(command.charAt(i) == ',' && i < command.length()) {\r\n\t\t\t\t\r\n\t\t\t\ti += 2;\r\n\t\t\t\tword = word.toLowerCase();\r\n\t\t\t\t//word = word.trim();\r\n\t\t\t\tboolean hasError = false;\r\n\t\t\t\t\r\n\t\t\t\tif(word.compareTo(\"publish\") == 0 && checkIfHasCorrectFormat(command, \"publish\") == true) {\r\n\t\t\t\t\tString producer = \"\";\r\n\t\t\t\t\tString prodCat = \"\";\r\n\t\t\t\t\tString brandName = \"\";\r\n\t\t\t\t\t//loop that gets producer name from command line\r\n\t\t\t\t\twhile(i < command.length() && command.charAt(i) != ',') {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tproducer += command.charAt(i);\r\n\t\t\t\t\t\ti++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tproducer = producer.toLowerCase();\r\n\t\t\t\t\t//producer = producer.trim();\r\n\t\t\t\t\ti += 2;\r\n\t\t\t\t\t\r\n\t\t\t\t\t//loop that gets the product category from command line\r\n\t\t\t\t\twhile(i < command.length() && command.charAt(i) != ',') {\t\r\n\t\t\t\t\t\tprodCat += command.charAt(i);\r\n\t\t\t\t\t\ti++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tprodCat = prodCat.toLowerCase();\r\n\t\t\t\t\t//prodCat = prodCat.trim();\r\n\t\t\t\t\ti += 2;\r\n\t\t\t\t\t\r\n\t\t\t\t\t//loop that gets brand name from command line\r\n\t\t\t\t\twhile(i < command.length()) {\r\n\t\t\t\t\t\tif(command.charAt(i) != ',') {\r\n\t\t\t\t\t\t\tbrandName += command.charAt(i);\r\n\t\t\t\t\t\t i++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\thasError = true;\r\n\t\t\t\t\t\t\ti++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbrandName = brandName.toLowerCase();\r\n\t\t\t\t\t//brandName = brandName.trim();\r\n\t\t\t\t\tif(hasError == false) {\r\n\t\t\t\t\t\t//adds producer to producerList\r\n\t\t\t\t\t\taddProducer(producer);\r\n\t\t\t\t\t\t//performs a publish for the given producer\r\n\t\t\t\t\t\ti = 0;\r\n\t\t\t\t\t\tboolean foundMatch = false;\r\n\t\t\t\t\t\twhile(i < producerList.size() && foundMatch == false) {\r\n\t\t\t\t\t\t\tProducer tempProducer = producerList.get(i);\r\n\t\t\t\t\t\t\tif(producer.compareTo(tempProducer.getPublisherName()) == 0) {\r\n\t\t\t\t\t\t\t\tfoundMatch = true;\r\n\t\t\t\t\t\t\t\ttempProducer.publish(brandName, prodCat);\r\n\t\t\t\t\t\t\t\tproducerList.set(i, tempProducer); \r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ti++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if(word.compareTo(\"subscribe\") == 0 && checkIfHasCorrectFormat(command, \"subscribe\") == true) { \r\n\t\t\t\t\tString retailer = \"\";\r\n\t\t\t\t\tString prodCat = \"\";\r\n\t\t\t\t\t\r\n\t\t\t\t\t//loop that gets the retailer name\r\n\t\t\t\t\twhile(i < command.length() && command.charAt(i) != ',') {\t\r\n\t\t\t\t\t\tretailer += command.charAt(i);\r\n\t\t\t\t\t\ti++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tretailer = retailer.toLowerCase();\r\n\t\t\t\t\t//retailer = retailer.trim();\r\n\t\t\t\t\ti += 2;\r\n\t\t\t\t\t\r\n\t\t\t\t\t//loop that gets the product category\r\n\t\t\t\t\twhile(i < command.length() && i < command.length()) {\r\n\t\t\t\t\t\tif(command.charAt(i) != ',') {\r\n\t\t\t\t\t\t\tprodCat += command.charAt(i);\t\r\n\t\t\t\t\t\t i++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\thasError = true;\r\n\t\t\t\t\t\t\ti++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tprodCat = prodCat.toLowerCase();\r\n\t\t\t\t\t//prodCat = prodCat.trim();\r\n\t\t\t\t\tif(hasError == false) {\r\n\t\t\t\t\t\taddRetailer(retailer);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\ti = 0;\r\n\t\t\t\t\t\tboolean foundMatch = false;\r\n\t\t\t\t\t\twhile(i < retailerList.size() && foundMatch == false) {\r\n\t\t\t\t\t\t\tRetailer tempRetailer = retailerList.get(i);\r\n\t\t\t\t\t\t\tif(retailer.compareTo(tempRetailer.getSubscriberName()) == 0) {\r\n\t\t\t\t\t\t\t\tfoundMatch = true;\r\n\t\t\t\t\t\t\t\ttempRetailer.subscribe(prodCat);\r\n\t\t\t\t\t\t\t\tretailerList.set(i, tempRetailer); //NOT SURE IF I OR I + 1 OR I - 1 ****************************************8\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ti++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t//broker.subscribeCommand(retailer, prodCat);\r\n\t\t\t\t}\r\n\t\t\t\telse if(word.compareTo(\"unsubscribe\") == 0 && checkIfHasCorrectFormat(command, \"unsubscribe\") == true) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tString retailer = \"\";\r\n\t\t\t\t\tString prodCat = \"\";\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t//loop that gets the retailer name\r\n\t\t\t\t\twhile(i < command.length() && command.charAt(i) != ',') {\r\n\t\t\t\t\t\tretailer += command.charAt(i);\t\t\t\t\t\t\r\n\t\t\t\t\t\ti++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tretailer = retailer.toLowerCase();\r\n\t\t\t\t\tretailer = retailer.trim();\r\n\t\t\t\t\ti += 2;\r\n\t\t\t\t\t\r\n\t\t\t\t\t//loop that gets the product category\r\n\t\t\t\t\twhile(i < command.length()) {\r\n\t\t\t\t\t\tif(command.charAt(i) != ',') {\r\n\t\t\t\t\t\t\tprodCat += command.charAt(i);\t\r\n\t\t\t\t\t\t i++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\thasError = true;\r\n\t\t\t\t\t\t\ti++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tprodCat = prodCat.toLowerCase();\r\n\t\t\t\t\t//prodCat = prodCat.trim();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(hasError == false) {\r\n\t\t\t\t\t\ti = 0;\r\n\t\t\t\t\t\tboolean foundMatch = false;\r\n\t\t\t\t\t\twhile(i < retailerList.size() && foundMatch == false) {\r\n\t\t\t\t\t\t\tRetailer tempRetailer = retailerList.get(i);\r\n\t\t\t\t\t\t\tif(retailer.compareTo(tempRetailer.getSubscriberName()) == 0) {\r\n\t\t\t\t\t\t\t\tfoundMatch = true;\r\n\t\t\t\t\t\t\t\ttempRetailer.unsubscribe(prodCat);\r\n\t\t\t\t\t\t\t\tretailerList.set(i, tempRetailer); //NOT SURE IF I OR I + 1 OR I - 1 ****************************************8\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ti++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tprocessingInput = false;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tword += command.charAt(i);\t\t\t\t\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t\t\r\n\t\t//end\r\n\t}",
"private void processCommand(String command) {\n switch (command) {\n case \"reserve\":\n doReserve();\n break;\n case \"view\":\n doView();\n break;\n case \"deposit\":\n doDeposit();\n break;\n }\n }",
"private void handleCommandEntered(String input) {\n try {\n commandExecutor.execute(input);\n commandTextField.commitAndFlush();\n } catch (CommandException | ParseException | UnmappedPanelException e) {\n setStyleToIndicateCommandFailure();\n }\n }",
"private void processInputUntilRoomChange() {\n while (true) {\n // Get the user input\n System.out.print(\"> \");\n String input = scan.nextLine();\n\n // Determine which command they used and act accordingly\n if (input.startsWith(\"help\")) {\n this.displayCommands();\n } else if (input.startsWith(\"look\")) {\n this.displayDescription(input.substring(input.indexOf(\" \") + 1));\n } else if (input.startsWith(\"get\")) {\n this.acquireItem(input.substring(input.indexOf(\" \") + 1));\n } else if (input.startsWith(\"go\")) {\n if (this.movePlayer(input.substring(input.indexOf(\" \") + 1))) {\n break;\n }\n } else if (input.startsWith(\"use\")) {\n this.useItem(input.substring(input.indexOf(\" \") + 1));\n } else if (input.startsWith(\"inventory\")) {\n System.out.print(player.listInventory());\n } // The player did not enter a valid command.\n else {\n System.out.println(\"I don't know how to \" + input);\n }\n }\n }",
"boolean processCommand() throws IOException\n\t{\n\t\tString[] commands = in.readLine().split(\" \");\n\t\tif (commands[0].equalsIgnoreCase(\"F\") && isNum(commands[1]) && isNum(commands[2])) {\n\t\t\tprocessFireCmd(new String[] {commands[1], commands[2]});\n\t\t} else if (commands[0].equalsIgnoreCase(\"C\")) {\n\t\t\tprocessChatCmd (Arrays.copyOfRange(commands, 1, commands.length).toString());\n\t\t} else if (commands[0].equalsIgnoreCase(\"D\")) {\n\t\t\tout.println(\"My board: \\n\");\n\t\t\tboard.draw();\n\t\t\tout.println(\"Target's board: \\n\");\n\t\t\ttargets.draw();\n\t\t\tout.flush();\n\t\t} else {\n\t\t\tout.println(\"Unknown command.\");\n\t\t\tout.flush();\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public static void processCommand(String command) {\n\n\t\tString commandType = command.substring(0, command.indexOf(\" \"));\n\n\t\tswitch (commandType) {\n\t\t\n\t\tcase COMMAND_ADD:\n\t\t\tFileStorage.addEvent(command);\n\t\t\tbreak;\n\n\t\tcase COMMAND_DELETE:\n\t\t\tFileStorage.deleteEvent(command);\n\t\t\tbreak;\n\n\t\tcase COMMAND_EDIT:\n\t\t\tFileStorage.editEvent(command);\n\t\t\tbreak;\n\t\t\n\t\tcase COMMAND_RECUR:\n\t\t\tFileStorage.recurEvent(command);\n\t\t\tbreak;\n\t\t\t\n\t\tcase COMMAND_NAVIGATE:\n\t\t\tFileStorage.navigateDay(command);\n\t\t\tbreak;\n\t\t\t\n\t\tdefault:\n\t\t\tSystem.out.println(MESSAGE_INVALID);\n\t\t\tbreak;\n\t\t\t\n\t\t}\n\t}",
"private void command(){\n out.println(\"Enter command: \");\n String comInput = in.nextLine();\n\n if (comInput.toLowerCase().equals(\"vote\")) {\n voteCommand();\n }else if (comInput.toLowerCase().equals(\"trade\")){\n tradeCommand();\n }else if (comInput.toLowerCase().equals(\"next\")){\n out.println(waitPrint());\n await();\n// nextRound();\n }else if(comInput.toLowerCase().equals(\"logout\")){\n// login = false;\n logout();\n }\n }",
"public void processCommand(String command, MessageReceivedEvent event){\n command = command.toLowerCase();\n String[] parsing = command.split(\" \");\n switch(parsing[1]){\n case \"new\":\n validateNewCraftEntry(parsing, event);\n break;\n case \"list\":\n generateCraftingList(event);\n break;\n case \"help\":\n showHelp(event);\n break;\n case \"listall\":\n listall(event);\n break;\n case \"cancel\":\n cancelCraft(event);\n break;\n }\n }",
"public void execute(Command command){\n command.run(field);\n }",
"public void process() {\n int command;\n menu();\n while ((command = getCommand()) != EXIT) {\n switch (command) {\n case ADD_CLIENT: addClient();\n break;\n case ADD_PRODUCT: addProduct();\n break;\n case ADD_SUPPLIER: addSupplier();\n break;\n case ASSIGN_PRODUCT: linkProduct();\n break;\n case UNASSIGN_PRODUCT: unlinkProduct();\n break;\n case ACCEPT_SHIPMENT: acceptShipment();\n break;\n case ACCEPT_ORDER: acceptOrder();\n break;\n case PROCESS_ORDER: processOrder();\n break;\n case CREATE_INVOICE: createInvoice();\n break;\n case PAYMENT: payment();\n break;\n case SHOW_CLIENTS: showClients();\n break;\n case SHOW_PRODUCTS: showProducts();\n break;\n case SHOW_SUPPLIERS: showSuppliers();\n break;\n case SHOW_ORDERS: showOrders();\n break;\n case GET_TRANS: getTransactions();\n break;\n case GET_INVOICE: getInvoices();\n break;\n case SAVE: save();\n break;\n case MENU: menu();\n break;\n case TEST: test();\n break;\n }\n }\n }",
"public Command parse(String userInput, TaskList taskList) throws CommandException {\n String fullInput = parseShortcutCommandAndDetails(userInput);\n String[] commandAndDetails = fullInput.split(COMMAND_WORD_DELIMITER, 2);\n String commandType = commandAndDetails[0];\n String taskInfo = \"\";\n if (commandAndDetails.length > 1) {\n taskInfo = commandAndDetails[1];\n }\n int namePos = taskInfo.indexOf(NAME_DELIMITER);\n int timePos = taskInfo.indexOf(TIME_DELIMITER);\n int durationPos = taskInfo.indexOf(DURATION_DELIMITER);\n int deadlinePos = taskInfo.indexOf(DEADLINE_DELIMITER);\n int recurrencePos = taskInfo.indexOf(RECURRENCE_DELIMITER);\n int importancePos = taskInfo.indexOf(IMPORTANCE_DELIMITER);\n int addNotesPos = taskInfo.indexOf(ADDITIONAL_NOTES_DELIMITER);\n int forecastPos = taskInfo.indexOf(FORECAST_DELIMITER);\n switch (commandType) {\n case \"add\": {\n return parseAddCommand(taskInfo, namePos, timePos, durationPos, deadlinePos,\n recurrencePos, importancePos, addNotesPos);\n }\n case \"edit\": {\n return parseEditCommand(taskInfo, namePos, timePos, durationPos, deadlinePos,\n recurrencePos, importancePos, addNotesPos, taskList);\n }\n case \"list\": {\n return parseListCommand(taskInfo, importancePos, forecastPos);\n }\n case \"done\": {\n return parseDoneCommand(taskInfo);\n }\n case \"delete\": {\n return parseDeleteCommand(taskInfo);\n }\n case \"view\": {\n return parseViewCommand(taskInfo);\n }\n case \"help\": {\n return new HelpCommand();\n }\n case \"exit\": {\n return new ExitCommand();\n }\n default: {\n throw new InvalidCommandException();\n }\n }\n }",
"private void processContents(String key, Object value ) {\n\t\tif ( key.equals(\"class\") ) {\n\t\t\tprocessClass( (String) value );\n\t\t}\n\n\t\tif ( key.equals(\"inputs\") ) {\n\t\t\tfor( Object inputPairs : (ArrayList<String>) value ){\n\t\t\t\tprocessInputs( (Map) inputPairs );\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tCOMMAND_LINE_TOOL.setinputs( INPUTS );\n\t\t}\n\n\t\tif ( key.equals(\"outputs\") ) {\n\t\t\tfor( Object outputPairs : (ArrayList<String>) value ){\n\t\t\t\tprocessOutputs( (Map) outputPairs );\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tCOMMAND_LINE_TOOL.setoutputs( OUTPUTS );\n\t\t}\n\n\t\tif ( key.equals(\"baseCommand\") ) {\n\t\t\tCOMMAND_LINE_TOOL.setbaseCommand( removeBrackets( getFirstElementOfArrayList( (ArrayList) value ) ) );\n\t\t}\n\n\t\tif ( key.equals(\"stdin\") ) {\n\t\t\tCOMMAND_LINE_TOOL.setstdin( cleanStandardInput( (String) value ) );\n\t\t}\n\n\t\tif ( key.equals(\"stdout\") ) {\n\t\t\tCOMMAND_LINE_TOOL.setstdout( (String) value );\n\t\t}\n\n\n\t}",
"private ConsoleCommand mapConsoleCommand( String[] parsedString ){\r\n\t\t\r\n\t\tFileSystemService fileSysSrv = new FileSystemService();\r\n\t\tStringBuilder errorSB = new StringBuilder();\r\n\t\tConsoleCommand consoleCommand = new ConsoleCommand();\r\n\t\t\r\n\t\tconsoleCommand.setCommand( parsedString[ AppConstanst.COMMAND_IDX ] );\r\n\t\t\t\t\r\n\t\tif ( parsedString.length < AppConstanst.MIN_SCAN_PARAM ){\r\n\t\t\terrorSB.append( AppConstanst.NOT_ALL_REQ_COMMAND_SET ) ;\r\n\t\t} else {\r\n\t\t\t// VALIDATE INPUTDIR COMMAND\r\n\t\t\tconsoleCommand.setInputDir( parsedString[ AppConstanst.INPUT_DIR_IDX ] );\r\n\t\t\tif ( !AppConstanst.SCAN_INPUT_DIR.equals( consoleCommand.getInputDir() ) ){\r\n\t\t\t\terrorSB.append( AppConstanst.WRONG_REQ_COMMAND+\" \"+consoleCommand.getInputDir()+AppConstanst.MUST_BE+AppConstanst.SCAN_INPUT_DIR+\"\\n\" );\r\n\t\t\t}\r\n\t\t\tconsoleCommand.setInputDirValue( parsedString[ AppConstanst.INPUT_DIR_VALUE_IDX ] );\r\n\t\t\tif ( ! consoleCommand.getInputDirValue().matches( AppConstanst.ABS_PATH) ){\r\n\t\t\t\terrorSB.append( AppConstanst.ILLEGAL_INPUT_PATH + consoleCommand.getInputDirValue()+\"\\n\");\r\n\t\t\t}\r\n\t\t\t//CHECK IS INPUT DIR EXIST, IF NOT TRY CREATE IT\r\n\t\t if ( !fileSysSrv.isDirectoryExist( consoleCommand.getInputDirValue() ) ){\r\n\t\t \tif ( !fileSysSrv.makeDirectory( consoleCommand.getInputDirValue() ) ){\r\n\t\t \t\terrorSB.append( AppConstanst.INPUT_DIR_NOT_EXISTS + consoleCommand.getInputDirValue()+\"\\n\");\r\n\t\t \t};\r\n\t\t }\r\n\t\t\t// VALIDATE OUTPUTDIR COMMAND\r\n\t\t\tconsoleCommand.setOutPutDir( parsedString[ AppConstanst.OUTPUT_DIR_IDX ] );\r\n\t\t\tif ( !AppConstanst.SCAN_OUTPUT_DIR.equals( consoleCommand.getOutPutDir() ) ){\r\n\t\t\t\terrorSB.append( AppConstanst.WRONG_REQ_COMMAND+\" \"+consoleCommand.getOutPutDir()+AppConstanst.MUST_BE+AppConstanst.SCAN_OUTPUT_DIR+\"\\n\" );\r\n\t\t\t}\r\n\t\t\tconsoleCommand.setOutPutDirValue( parsedString[ AppConstanst.OUTPUT_DIR_VALUE_IDX ] );\r\n\t\t\tif ( ! consoleCommand.getOutPutDirValue().matches( AppConstanst.ABS_PATH) ){\r\n\t\t\t\terrorSB.append( AppConstanst.ILLEGAL_OUTPUT_PATH + consoleCommand.getOutPutDirValue()+\"\\n\" );\r\n\t\t\t}\r\n\t\t\t//CHECK IS OUTPUT DIR EXIST, IF NOT TRY CREATE IT\r\n\t\t if ( !fileSysSrv.isDirectoryExist( consoleCommand.getOutPutDirValue() ) ){\r\n\t\t \tif ( !fileSysSrv.makeDirectory( consoleCommand.getOutPutDirValue() ) ){\r\n\t\t \t\terrorSB.append( AppConstanst.OUTPUT_DIR_NOT_EXISTS + consoleCommand.getOutPutDirValue()+\"\\n\");\r\n\t\t \t};\r\n\t\t }\r\n\t\t\t// VALIDATE MASK COMMAND\r\n\t\t\tconsoleCommand.setMask( parsedString[ AppConstanst.MASK_IDX ] );\r\n\t\t\tif ( !AppConstanst.SCAN_MASK.equals( consoleCommand.getMask() ) ){\r\n\t\t\t\terrorSB.append( AppConstanst.WRONG_REQ_COMMAND+\" \"+consoleCommand.getMask()+AppConstanst.MUST_BE+AppConstanst.SCAN_MASK+\"\\n\" );\r\n\t\t\t}\r\n\t\t\tconsoleCommand.setMaskValue( parsedString[ AppConstanst.MASK_VALUE_IDX ]);\r\n\t\t\tif ( ! AppUtils.isMaskCorrect( consoleCommand.getMaskValue() ) ){\r\n\t\t\t\terrorSB.append( AppConstanst.ILLEGAL_MASK + consoleCommand.getMaskValue()+\"\\n\" );\r\n\t\t\t}\r\n\t\t\t// VALIDATE WAIT INTERVAL COMMAND\r\n\t\t\tconsoleCommand.setWaitInterval( parsedString[ AppConstanst.WAIT_INTERVAL_IDX ] );\r\n\t\t\tif ( !AppConstanst.SCAN_WAIT_INTERVAL.equals( consoleCommand.getWaitInterval() ) ){\r\n\t\t\t\terrorSB.append( AppConstanst.WRONG_REQ_COMMAND+\" \"+consoleCommand.getWaitInterval()+AppConstanst.MUST_BE+AppConstanst.SCAN_WAIT_INTERVAL+\"\\n\" );\r\n\t\t\t}\r\n\t\t\tLong interval= null;\r\n\t\t\ttry{\r\n\t\t\t\tinterval = Long.parseLong( parsedString[ AppConstanst.WAIT_INTERVAL_VALUE_IDX ] );\r\n\t\t\t} catch (NumberFormatException e) {} \r\n\t\t\tconsoleCommand.setWaitIntervalValue( interval );\r\n\t\t\tif ( interval == null || interval < 0){\r\n\t\t\t\terrorSB.append( AppConstanst.INCORECT_WAIT_INTERVAL + parsedString[ AppConstanst.WAIT_INTERVAL_VALUE_IDX ]+AppConstanst.POSITIVE_INT+\"\\n\" );\r\n\t\t\t}\r\n\t\t\t// VALIDATE NOT REQUIRED COMMAND\r\n\t\t\t\r\n\t\t\t\tfor (int idx = AppConstanst.MIN_SCAN_PARAM+1; idx < parsedString.length; idx += 2){\r\n\t\t\t\t\tif ( AppConstanst.SCAN_INCLUDE_SUB.equals( parsedString[ idx ] ) ){\r\n\t\t\t\t\t\tconsoleCommand.setIncludeSubs( parsedString[ idx ] );\r\n\t\t\t\t\t\tconsoleCommand.setIncludeSubsValue( parsedString[ idx+1 ] );\r\n\t\t\t\t\t\tif ( !AppConstanst.TRUE.equals( parsedString[ idx+1 ]) && !AppConstanst.FALSE.equals( parsedString[ idx+1 ] ) ){\r\n\t\t\t\t\t\t\terrorSB.append( AppConstanst.INCORECT_INCLUDE_SUBFOLDERS+\" \"+parsedString[ idx+1 ]+AppConstanst.TRUE_OR_FALSE+\"\\n\" );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ( AppConstanst.SCAN_AUTO_DELETE.equals( parsedString[ idx ] ) ){\r\n\t\t\t\t\t\tconsoleCommand.setAutoDelete( parsedString[ idx ] );\r\n\t\t\t\t\t\tconsoleCommand.setAutoDeleteValue( parsedString[ idx+1 ] );\r\n\t\t\t\t\t\tif ( !AppConstanst.TRUE.equals( parsedString[ idx+1 ]) && !AppConstanst.FALSE.equals( parsedString[ idx+1 ] ) ){\r\n\t\t\t\t\t\t\terrorSB.append( AppConstanst.INCORECT_AUTODELETE+\" \"+parsedString[ idx+1 ]+AppConstanst.TRUE_OR_FALSE+\"\\n\" );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t}\r\n\t\tif ( errorSB.length() > 0 ){\r\n\t\t\tSystem.out.println(AppConstanst.ERROR_IN_SCAN_COMMAND+ errorSB.toString());\r\n\t\t\tconsoleCommand.setCommand( AppConstanst.UNKNOWN);\r\n\t\t} \r\n\t\treturn consoleCommand;\r\n\t}",
"public void process () {\n consoleListenerAndSender.execute(() -> {\n String message = null;\n DataInputStream reader = null;\n try {\n reader = new DataInputStream(new BufferedInputStream(console.getInputStream()));\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n while (!isServerAvailable()) {\n message = reader.readUTF();\n\n if (Objects.equals(message, \"/quit\")){\n close();\n setQuitCommandAppear(true);\n break;\n }\n\n sender.sendMessage(message);\n message = null;\n\n }\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n\n serverListenerAndConsoleWriter.execute(() -> {\n try {\n while (!isServerAvailable()) {\n System.out.println(getter.getInputMessage());\n }\n } catch (IOException e) {\n if (!isQuitCommandAppear()) {\n System.out.println(\"[SERVER ISSUE] server is down.\");\n close();\n setServerAvailable(true);\n }\n else {\n System.out.println(\"Quit...\");\n }\n }\n });\n }",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n List<String> inputs = new InputsReader().read(scanner);\n\n List<Command> commands = new CommandsFactory().build(inputs);\n\n new CommandsProcessor().execute(commands);\n }",
"@Override\n\tpublic String processCommand(String command) {\n\t\tif (this.isValid(\"c\", command)) {\n\t\t\t// structure matches the quit command, check to see if\n\t\t\t// the first\n\t\t\t// char is right\n\t\t\tif (command.charAt(0) == 'Q') {\n\t\t\t\trunning = false;\n\t\t\t} else {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.print((testing) ? \"\" : \"Invalid command!\");\n\t\t\t}\n\t\t} else if (this.isValid(\"c| |c| |n\", command)) {\n\t\t\t// structure matches the insert command, check to see if\n\t\t\t// the first\n\t\t\t// char is right\n\t\t\tif (command.charAt(0) == 'a') {\n\t\t\t\tchar insertChar = command.charAt(2);\n\t\t\t\tint index = Integer.parseInt(command.substring(4));\n\t\t\t\tif (linkedList.insert(insertChar, index)) {\n\t\t\t\t\tunMixCode = \"r\" + (index + 1) + unMixCode;\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Invalid index!\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.print((testing) ? \"\" : \"Invalid command!\");\n\t\t\t}\n\t\t} else if (this.isValid(\"c| |c\", command)) {\n\t\t\t// structure matches the remove command, check to see if\n\t\t\t// the first\n\t\t\t// char is right\n\t\t\tif (command.charAt(0) == 'r') {\n\t\t\t\tchar removeChar = command.charAt(2);\n\t\t\t\tlinkedList.remove(removeChar);\n\t\t\t\tfor (int i = curMessage.length() - 1; i >= 0; i--) {\n\t\t\t\t\tif (removeChar == curMessage.charAt(i)) {\n\t\t\t\t\t\tunMixCode = \"a\" + removeChar + (i - 1)\n\t\t\t\t\t\t\t\t+ unMixCode;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.print((testing) ? \"\" : \"Invalid command!\");\n\t\t\t}\n\t\t} else if (this.isValid(\"c| |n| |n| |n\", command)) {\n\t\t\t// structure matches the cut command, check to see if\n\t\t\t// the first char\n\t\t\t// is right\n\t\t\tif (command.charAt(0) == 'c') {\n\t\t\t\tcommand = command.substring(2);\n\t\t\t\tint space1 = command.indexOf(\" \");\n\t\t\t\tint space2 = command.indexOf(\" \", space1 + 1);\n\t\t\t\tint startIndex = Integer\n\t\t\t\t\t\t.parseInt(command.substring(0, space1));\n\t\t\t\tint endIndex = Integer.parseInt(\n\t\t\t\t\t\tcommand.substring(space1 + 1, space2));\n\t\t\t\tint clipboardIndex = Integer\n\t\t\t\t\t\t.parseInt(command.substring(space2 + 1));\n\t\t\t\tboolean ok = true;\n\t\t\t\tif (startIndex < 0\n\t\t\t\t\t\t|| startIndex >= curMessage.length()) {\n\t\t\t\t\tok = false;\n\t\t\t\t}\n\t\t\t\tif (endIndex < startIndex || endIndex < 0\n\t\t\t\t\t\t|| endIndex >= curMessage.length()) {\n\t\t\t\t\tok = false;\n\t\t\t\t}\n\t\t\t\tif (clipboardIndex < 0 || clipboardIndex >= 1000) {\n\t\t\t\t\tok = false;\n\t\t\t\t}\n\t\t\t\tif (ok) {\n\t\t\t\t\tLinkedList temp = new LinkedList();\n\t\t\t\t\ttemp.setToString(linkedList.toString()\n\t\t\t\t\t\t\t.substring(startIndex, endIndex + 1));\n\t\t\t\t\tclipboards.add(clipboardIndex, temp.getTop());\n\t\t\t\t\tfor (int i = endIndex; i >= startIndex; i--) {\n\t\t\t\t\t\tunMixCode = \"a\"\n\t\t\t\t\t\t\t\t+ curMessage.toString().charAt(i)\n\t\t\t\t\t\t\t\t+ (i - 1) + unMixCode;\n\t\t\t\t\t\tlinkedList.removeAt(i);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\n\t\t\t\t\t\t\t(testing) ? \"\" : \"Invalid command!\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.print((testing) ? \"\" : \"Invalid command!\");\n\t\t\t}\n\t\t} else if (this.isValid(\"c| |n| |n\", command)) {\n\t\t\t// structure matches the paste command, check to see if\n\t\t\t// the first\n\t\t\t// char is right\n\t\t\tif (command.charAt(0) == 'p') {\n\t\t\t\tcommand = command.substring(2);\n\t\t\t\tint spc1 = command.indexOf(' ');\n\t\t\t\tint startIndex = Integer\n\t\t\t\t\t\t.parseInt(command.substring(0, spc1));\n\t\t\t\tint clipboardIndex = Integer\n\t\t\t\t\t\t.parseInt(command.substring(spc1 + 1));\n\t\t\t\tboolean ok = true;\n\t\t\t\tif (startIndex < 0\n\t\t\t\t\t\t|| startIndex >= curMessage.length()) {\n\t\t\t\t\tif (startIndex != -1) {\n\t\t\t\t\t\tok = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (clipboardIndex < 0 || clipboardIndex >= 1000) {\n\t\t\t\t\tok = false;\n\t\t\t\t}\n\t\t\t\tLinkedList temp = new LinkedList();\n\t\t\t\ttemp.setTop(clipboards.get(clipboardIndex));\n\t\t\t\tif (temp.getTop() == null) {\n\t\t\t\t\tok = false;\n\t\t\t\t}\n\t\t\t\tif (ok) {\n\t\t\t\t\tfor (char c : temp.toString().toCharArray()) {\n\t\t\t\t\t\tif (linkedList.insert(c, startIndex)) {\n\t\t\t\t\t\t\tunMixCode = \"r\" + (startIndex + 1)\n\t\t\t\t\t\t\t\t\t+ unMixCode;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tstartIndex++;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\n\t\t\t\t\t\t\t(testing) ? \"\" : \"Invalid command!\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.print((testing) ? \"\" : \"Invalid command!\");\n\t\t\t}\n\t\t} else if (this.isValid(\"c| |s\", command)) {\n\t\t\t// structure matches the save command, check to see if\n\t\t\t// the first\n\t\t\t// char is right\n\t\t\tif (command.charAt(0) == 's') {\n\t\t\t\tString fileName = command.substring(2,\n\t\t\t\t\t\tcommand.length());\n\t\t\t\ttry {\n\t\t\t\t\tPrintWriter saver = new PrintWriter(\n\t\t\t\t\t\t\tnew BufferedWriter(\n\t\t\t\t\t\t\t\t\tnew FileWriter(fileName)));\n\t\t\t\t\tsaver.print(unMixCode);\n\t\t\t\t\tsaver.close();\n\t\t\t\t\tif (!testing) {\n\t\t\t\t\t\tSystem.out.println(\"Saved successfully\");\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.print((testing) ? \"\" : \"Invalid command!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.print((testing) ? \"\" : \"Invalid command!\");\n\t\t}\n\t\tcurMessage = linkedList.toString();\n\t\treturn curMessage;\n\t}",
"void processCommand (String command, ZMsg msg);",
"public void processCommand(Object\tsource,\n\t\t\t\t\t\t\t String\tcommandOriginal,\n\t\t\t\t\t\t\t String\tp1,\n\t\t\t\t\t\t\t String\tp2,\n\t\t\t\t\t\t\t String\tp3,\n\t\t\t\t\t\t\t String\tp4,\n\t\t\t\t\t\t\t String\tp5,\n\t\t\t\t\t\t\t String\tp6,\n\t\t\t\t\t\t\t String\tp7,\n\t\t\t\t\t\t\t String\tp8,\n\t\t\t\t\t\t\t String\tp9,\n\t\t\t\t\t\t\t String\tp10)\n\t{\n\t\tXml xml;\n\t\tString command = commandOriginal.trim().toLowerCase();\n\t\tif (command.isEmpty())\n\t\t\treturn;\t// Nothing to do\n\n//////////\n// Quit\n\t\tif (command.equals(\"quit\")) {\n\t\t\t// Exiting the system\n\t\t\tSystem.exit(0);\n\n\n//////////\n// Back\n\t\t} else if (command.equals(\"back\")) {\n\t\t\t// Navigating back through chain\n\t\t\tm_opbm.navigateBack();\n\t\t\t// Note: For rawedits and edits, use the rawedit_* and edit_* commands below\n\n\n//////////\n// Home\n\t\t} else if (command.equals(\"home\")) {\n\t\t\t// Navigating back through chain\n\t\t\tm_opbm.navigateHome();\n\n\n//////////\n// LeftPanel\n\t\t} else if (command.equals(\"leftpanel\")) {\n\t\t\t// Navigating to a leftpanel\n\t\t\tm_opbm.navigateToLeftPanel(m_opbm.expandMacros(p1));\n\n\n//////////\n// Raw Edit related\n\t\t} else if (command.equals(\"rawedit\")) {\n\t\t\t// Raw editing (full-page edit box) of whatever file is specified\n\t\t\tm_opbm.rawedit(m_opbm.expandMacros(p1));\n\n\t\t} else if (command.equals(\"rawedit_save\")) {\n\t\t\t// Saving the current contents of the active rawedit\n\t\t\tm_opbm.rawEditSave();\n\n\t\t} else if (command.equals(\"rawedit_save_and_close\")) {\n\t\t\t// Saving the current contents of the active rawedit, and returning to the previous panel\n\t\t\tm_opbm.rawEditSaveAndClose();\n\t\t\tm_opbm.navigateBack();\n\n\t\t} else if (command.equals(\"rawedit_close\") || command.equals(\"rawedit_back\")) {\n\t\t\t// Saving the current contents of the active rawedit, and returning to the previous panel\n\t\t\tm_opbm.rawEditClose();\n\t\t\tm_opbm.navigateBack();\n\n\t\t} else if (command.equals(\"rawedit_home\")) {\n\t\t\t// Navigating back through chain\n\t\t\tm_opbm.rawEditClose();\n\t\t\tm_opbm.navigateHome();\n\n\n//////////\n// Edit related\n\t\t} else if (command.equals(\"edit\")) {\n\t\t\t// Raw editing (full-page edit box) of whatever file is specified\n\t\t\tm_opbm.edit(m_opbm.expandMacros(p1));\n\n\t\t} else if (command.equals(\"edit_save\")) {\n\t\t\t// Saving the current contents of the active rawedit\n\t\t\tm_opbm.editSave();\n\n\t\t} else if (command.equals(\"edit_save_and_close\")) {\n\t\t\t// Saving the current contents of the active rawedit, and returning to the previous panel\n\t\t\tm_opbm.editSave();\n\t\t\tm_opbm.editClose();\n\t\t\tm_opbm.navigateBack();\n\n\t\t} else if (command.equals(\"edit_close\") || command.equals(\"edit_back\")) {\n\t\t\t// Saving the current contents of the active rawedit, and returning to the previous panel\n\t\t\tm_opbm.editClose();\n\t\t\tm_opbm.navigateBack();\n\n\t\t} else if (command.equals(\"edit_home\")) {\n\t\t\t// Navigating back through chain\n\t\t\tm_opbm.editClose();\n\t\t\tm_opbm.navigateHome();\n\n\n//////////\n// LISTBOX BUTTONS\n\t\t} else if (command.equals(\"listbox_add\")) {\n\t\t\t// User clicked on the \"add\" listbox button on the flow control input\n\t\t\tm_opbm.listBoxAddCommand();\n\n\t\t} else if (command.equals(\"listbox_delete\")) {\n\t\t\t// User clicked on the \"delete\" listbox button on the flow control input\n\t\t\tm_opbm.listBoxDeleteCommand();\n\n\t\t} else if (command.equals(\"listbox_clone\")) {\n\t\t\t// User clicked on the \"clone\" listbox button on the flow control input\n\t\t\tm_opbm.listBoxCloneCommand();\n\n\t\t} else if (command.equals(\"listbox_move_up\")) {\n\t\t\t// User clicked on the \"Up\" listbox button\n\t\t\tm_opbm.listBoxCommand(\"up\", (PanelRightListbox)source);\n\n\t\t} else if (command.equals(\"listbox_move_down\")) {\n\t\t\t// User clicked on the \"Down\" listbox button\n\t\t\tm_opbm.listBoxCommand(\"down\", (PanelRightListbox)source);\n\n\n//////////\n// LOOKUPBOX BUTTONS\n\t\t} else if (command.equals(\"lookupbox_add\")) {\n\t\t\t// User clicked on the \"add\" listbox button on the flow control input\n\t\t\t// p1 = whereTo\n\t\t\t// p2 = after\n\t\t\t// p3 = whereFrom\n\t\t\t// p4 = allow customs?\n\t\t\tm_opbm.lookupboxAddCommand((PanelRightLookupbox)source, p1, p2, p3, Utils.interpretBooleanAsYesNo(p4, true).equalsIgnoreCase(\"yes\"));\n\n\t\t} else if (command.equals(\"lookupbox_subtract\")) {\n\t\t\t// User clicked on the \"subtract\" listbox button\n\t\t\tm_opbm.lookupboxCommand(\"subtract\", (PanelRightLookupbox)source);\n\n\t\t} else if (command.equals(\"lookupbox_move_up\")) {\n\t\t\t// User clicked on the \"Up\" listbox button\n\t\t\tm_opbm.lookupboxCommand(\"up\", (PanelRightLookupbox)source);\n\n\t\t} else if (command.equals(\"lookupbox_move_down\")) {\n\t\t\t// User clicked on the \"Down\" listbox button\n\t\t\tm_opbm.lookupboxCommand(\"down\", (PanelRightLookupbox)source);\n\n\t\t} else if (command.equals(\"lookupbox_zoom\")) {\n\t\t\t// User clicked on the \"zoom\" listbox button\n\t\t\t// p1 = name of edit to use for display\n\t\t\t// p2 = reference in \"zoom\" field in edit to only show those fields which contain that portion\n\t\t\t// p3 = override for data source (if present)\n\t\t\tp3 = \"\";\n\t\t\tif (p1.equalsIgnoreCase(\"relativeto\"))\n\t\t\t{\n\t\t\t\t// The name isn't a hard-coded name, because it is one of a list.\n\t\t\t\t// We have to find out which name belongs here based on whatever\n\t\t\t\t// one of the list is currently selected.\n\t\t\t\txml = m_opbm.getListboxOrLookupboxSelectedItem((PanelRightLookupbox)source);\n\t\t\t\tif (xml == null)\n\t\t\t\t{ // Cannot execut the command because nothing is selected, or there is no data\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tp1 = m_macroMaster.parseMacros(((PanelRightLookupbox)source).getEditForXml(xml.getName()));\n\t\t\t\tif (p1.contains(\":\"))\n\t\t\t\t{\n\t\t\t\t\t// We have to separate out the edit from the location where the data source is specified\n\t\t\t\t\tp3 = p1.substring(p1.indexOf(\":\") + 1);\n\t\t\t\t\tp1 = p1.substring(0, p1.indexOf(\":\"));\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tp1 = m_macroMaster.parseMacros(p1);\n\n\t\t\t}\n\n\t\t\tif (!p1.isEmpty()) {\n\t\t\t\tm_opbm.lookupboxZoomCommand((PanelRightLookupbox)source, p1, p2, p3);\n\n\t\t\t} else {\n\t\t\t\t// An error, we need an edit to display content\n\t\t\t\tif (p2.isEmpty())\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"No p1 or edits parameter was found for lookupbox_zoom \\\"\" + ((PanelRightLookupbox)source).getName() + \"\\\"\");\n\t\t\t\telse\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"No p1 or edits was found for lookupbox_zoom(\" + p2 +\") \\\"\" + ((PanelRightLookupbox)source).getName() + \"\\\"\");\n\t\t\t}\n\n\t\t} else if (command.equals(\"save_custom\")) {\n\t\t\t// User clicked on the \"zoom\" listbox button on the flow control input\n\t\t\t// p1 = uuid of tupel containing everything to update\n\t\t\tm_opbm.saveCustomCommand(p1);\n\n\t\t} else if (command.equals(\"cancel_custom\")) {\n\t\t\t// User clicked on the \"zoom\" listbox button on the flow control input\n\t\t\t// p1 = uuid of tupel containing everything to update\n\t\t\tm_opbm.cancelCustomCommand(p1);\n\n\n//////////\n// LOOKUPBOX UPDATE\n\t\t} else if (command.equals(\"lookupbox_update\")) {\n\t\t\t// User clicked on a listbox that's related to a lookupbox that needs\n\t\t\t// to have its information updated after the change in entry\n\t\t\tm_opbm.lookupboxUpdateCommand(p1);\n\n\n//////////\n// WEB_BROWSER\n\t\t} else if (command.equals(\"web_browser\")) {\n\t\t\t// Wants to link to the specified web browser address\n\t\t\tm_opbm.webBrowser(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10);\n\n//////////\n// BENCHMARKS\n\t\t} else if (command.equals(\"run_atom_benchmark\")) {\n\t\t\tm_opbm.benchmarkRunAtom(null, 1, true, (PanelRightItem)source, m_opbm, m_macroMaster, m_settingsMaster, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10);\n\n//////////\n// RESULTS VIEWER\n\t\t} else if (command.equals(\"run_results_viewer_sample\")) {\n\t\t\tm_opbm.createAndShowResultsViewer(\"results_sample.xml\");\n\t\t} else if (command.equals(\"run_results_viewer\")) {\n\t\t\tm_opbm.createAndShowResultsViewer(\"output.xml\");\n\n\n//////////\n// CLOSING BRACE\n\t\t}\n\n\n\t}",
"public void processMessage()\n {\n \tif(messageContents.getMessage().containsCommand())\n {\n \tCommand command = new Command(messageContents);\n CommandProcessor commandProcessor = new CommandProcessor(joeBot, command);\n commandProcessor.processCommand();\n }\n else\n {\n Speech speech = new Speech(messageContents);\n SpeechProcessor speechProcessor = new SpeechProcessor(joeBot, speech);\n speechProcessor.processSpeech();\n }\n }",
"private void chimeraCommandRead(String command) throws IOException {\n\t\tList<String> reply = new ArrayList<String>();\n\t\tboolean updateModels = false;\n\t\tboolean updateSelection = false;\n\t\tString line = null;\n\n\t\tsynchronized (replyLog) {\n\t\t\twhile ((line = lineReader.readLine()) != null) {\n\t\t\t\t// System.out.println(\"From Chimera (\"+command+\") -->\"+line);\n\t\t\t\tif (line.startsWith(\"CMD\")) {\n\t\t\t\t\tlogger.error(\"Got unexpected command from Chimera: \"+line);\n\n\t\t\t\t} else if (line.startsWith(\"END\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (line.startsWith(\"ModelChanged: \")) {\n\t\t\t\t\tupdateModels = true;\n\t\t\t\t} else if (line.startsWith(\"SelectionChanged: \")) {\n\t\t\t\t\tupdateSelection = true;\n\t\t\t\t} else if (line.length() == 0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (!line.startsWith(\"CMD\")) {\n\t\t\t\t\treply.add(line);\n\t\t\t\t}\n\t\t\t}\n\t\t\treplyLog.put(command, reply);\n\t\t}\n\t\tif (updateModels)\n\t\t\t(new ModelUpdater()).start();\n\t\tif (updateSelection)\n\t\t\t(new SelectionUpdater()).start();\n\n\t\treturn;\n\t}",
"public Command parse(String inputCommand) {\n Matcher matcher = BASIC_COMMAND_FORMAT.matcher(inputCommand.trim());\n if (!matcher.matches()) {\n return new IncorrectCommand(\"This is a incorrect format, \"\n + \" you may type the list to see all the commands.\"\n + \" the command should not contain the separator '|'\");\n }\n\n String commandWord = matcher.group(\"commandWord\");\n String arguments = matcher.group(\"arguments\");\n\n switch (commandWord) {\n case AddCommand.COMMAND_WORD:\n return prepareAdd(arguments);\n case ListCommand.COMMAND_WORD:\n return prepareList(arguments);\n\n case DoneCommand.COMMAND_WORD:\n return prepareDone(arguments);\n case DueCommand.COMMAND_WORD:\n return prepareDue(arguments);\n case DeleteCommand.COMMAND_WORD:\n return prepareDelete(arguments);\n\n case SetCommand.COMMAND_WORD:\n return prepareSet(arguments);\n\n case ExitCommand.COMMAND_WORD:\n return new ExitCommand();\n\n case ProjModeCommand.COMMAND_WORD:\n return new ProjModeCommand();\n\n // case HelpCommand.COMMAND_WORD:\n // default:\n // return new HelpCommand();\n\n default:\n return new IncorrectCommand(\"IncorrectCommand\");\n }\n\n }",
"public interface CommandExecutor {\n /**\n * This method parse a commands from string and call it\n *\n * @param sender ource of the commands\n * @param connectionCommand commands\n * @return true if a valid commands, otherwise false\n */\n default boolean onCommand(CommandSender sender, ConnectionCommand connectionCommand) {\n String[] split = connectionCommand.getCommand().split(\" \");\n\n return onCommand(sender, split[0], Arrays.copyOfRange(split, 1, split.length), connectionCommand.getArgs());\n }\n\n /**\n * Executes the given commands, returning its success\n *\n * @param sender ource of the commands\n * @param command Command which was executed\n * @param args Passed commands arguments\n * @param objects Objects\n * @return true if a valid commands, otherwise false\n */\n boolean onCommand(CommandSender sender, String command, String[] args, Object... objects);\n\n}",
"public Command parseCommand(String userInput) throws ParseException {\n final Matcher matcher = BASIC_COMMAND_FORMAT.matcher(userInput.trim());\n if (!matcher.matches()) {\n throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT, HelpCommand.MESSAGE_USAGE));\n }\n\n final String commandWord = matcher.group(\"commandWord\");\n final String arguments = matcher.group(\"arguments\");\n switch (commandWord) {\n\n // ========================== Easy Travel Commands =========================\n case HelpCommand.COMMAND_WORD:\n return new HelpCommand();\n\n case ExitCommand.COMMAND_WORD:\n return new ExitCommand();\n\n // ========================== Trip Commands =========================\n case SetTripCommand.COMMAND_WORD:\n return new SetTripCommandParser().parse(arguments);\n\n case DeleteTripCommand.COMMAND_WORD:\n return new DeleteTripCommand();\n\n case CheckStatusCommand.COMMAND_WORD:\n return new CheckStatusCommand();\n\n case EditBudgetCommand.COMMAND_WORD:\n return new EditBudgetCommandParser().parse(arguments);\n\n case RenameCommand.COMMAND_WORD:\n return new RenameCommandParser().parse(arguments);\n // ========================== Schedule Commands =========================\n case ScheduleCommand.COMMAND_WORD:\n return new ScheduleCommandParser().parse(arguments);\n\n case UnscheduleCommand.COMMAND_WORD:\n return new UnscheduleCommandParser().parse(arguments);\n\n case ListScheduleCommand.COMMAND_WORD:\n return new ListScheduleCommand();\n\n // ========================== Fixed Expense Commands =========================\n case AddFixedExpenseCommand.COMMAND_WORD:\n return new AddFixedExpenseCommandParser().parse(arguments);\n\n case ClearFixedExpenseCommand.COMMAND_WORD:\n return new ClearFixedExpenseCommand();\n\n case DeleteFixedExpenseCommand.COMMAND_WORD:\n return new DeleteFixedExpenseCommandParser().parse(arguments);\n\n case EditFixedExpenseCommand.COMMAND_WORD:\n return new EditFixedExpenseCommandParser().parse(arguments);\n\n case CheckBudgetStatus.COMMAND_WORD:\n return new CheckBudgetStatus();\n\n case SortFixedExpenseCommand.COMMAND_WORD:\n return new SortFixedExpenseCommandParser().parse(arguments);\n\n case ListFixedExpenseCommand.COMMAND_WORD:\n return new ListFixedExpenseCommand();\n\n // ========================== Transport Booking Commands =========================\n case AddTransportBookingCommand.COMMAND_WORD:\n return new AddTransportBookingCommandParser().parse(arguments);\n\n case EditTransportBookingCommand.COMMAND_WORD:\n return new EditTransportBookingCommandParser().parse(arguments);\n\n case DeleteTransportBookingCommand.COMMAND_WORD:\n return new DeleteTransportBookingCommandParser().parse(arguments);\n\n case ClearTransportBookingCommand.COMMAND_WORD:\n return new ClearTransportBookingCommand();\n\n case SortTransportBookingCommand.COMMAND_WORD:\n return new SortTransportBookingCommandParser().parse(arguments);\n\n case ListTransportBookingCommand.COMMAND_WORD:\n return new ListTransportBookingCommand();\n\n // ========================== Packing List Commands =========================\n case AddItemCommand.COMMAND_WORD:\n return new AddItemCommandParser().parse(arguments);\n\n case AddPresetCommand.COMMAND_WORD:\n return new AddPresetCommandParser().parse(arguments);\n\n case CheckItemCommand.COMMAND_WORD:\n return new CheckItemCommandParser().parse(arguments);\n\n case ClearItemCommand.COMMAND_WORD:\n return new ClearItemCommand();\n\n case DeleteItemCommand.COMMAND_WORD:\n return new DeleteItemCommandParser().parse(arguments);\n\n case EditItemCommand.COMMAND_WORD:\n return new EditItemCommandParser().parse(arguments);\n\n case FindItemCommand.COMMAND_WORD:\n return new FindItemCommandParser().parse(arguments);\n\n case FindItemCategoryCommand.COMMAND_WORD:\n return new FindItemCategoryCommandParser().parse(arguments);\n\n case UncheckItemCommand.COMMAND_WORD:\n return new UncheckItemCommandParser().parse(arguments);\n\n case ListItemCommand.COMMAND_WORD:\n return new ListItemCommand();\n\n case ListPresetCommand.COMMAND_WORD:\n return new ListPresetCommand();\n\n case SortItemCommand.COMMAND_WORD:\n return new SortItemCommandParser().parse(arguments);\n\n\n // ========================== Activity Commands =========================\n case AddActivityCommand.COMMAND_WORD:\n return new AddActivityCommandParser().parse(arguments);\n\n case DeleteActivityCommand.COMMAND_WORD:\n return new DeleteActivityCommandParser().parse(arguments);\n\n case ClearActivityCommand.COMMAND_WORD:\n return new ClearActivityCommand();\n\n case EditActivityCommand.COMMAND_WORD:\n return new EditActivityCommandParser().parse(arguments);\n\n case FindActivityCommand.COMMAND_WORD:\n return new FindActivityCommandParser().parse(arguments);\n\n case FindActivityTagCommand.COMMAND_WORD:\n return new FindActivityTagCommandParser().parse(arguments);\n\n case ListActivityCommand.COMMAND_WORD:\n return new ListActivityCommand();\n\n case SortActivityCommand.COMMAND_WORD:\n return new SortActivityCommandParser().parse(arguments);\n\n // ========================== Accommodation Commands =========================\n case AddAccommodationBookingCommand.COMMAND_WORD:\n return new AddAccommodationBookingCommandParser().parse(arguments);\n\n case ClearAccommodationBookingCommand.COMMAND_WORD:\n return new ClearAccommodationBookingCommand();\n\n case DeleteAccommodationBookingCommand.COMMAND_WORD:\n return new DeleteAccommodationBookingCommandParser().parse(arguments);\n\n case EditAccommodationBookingCommand.COMMAND_WORD:\n return new EditAccommodationBookingCommandParser().parse(arguments);\n\n case SortAccommodationBookingCommand.COMMAND_WORD:\n return new SortAccommodationBookingParser().parse(arguments);\n\n case ListAccommodationBookingCommand.COMMAND_WORD:\n return new ListAccommodationBookingCommand();\n\n // ========================== Invalid Commands =========================\n default:\n throw new ParseException(MESSAGE_UNKNOWN_COMMAND);\n }\n }",
"public void sendCommands (String input, String language) {\n myController.parseCommand(input, language);\n }",
"public String[] readCommand();",
"public void doCommand(String input) {\r\n\r\n if (input == null || input.isEmpty()) {\r\n return;\r\n }\r\n\r\n Command command = parseCommand(input);\r\n\r\n if (!activated && !isPlaceCommand(command)) {\r\n return;\r\n }\r\n command.execute(this);\r\n }",
"private void processCommand(Command command) {\n if (command.commandIsUnknown()) {\n System.out.println(\"I don't know what you mean...\");\n } else {\n String commandWord = command.getCommandWord();\n // process all possible commands\n if (commandWord.equals(\"help\")) {\n printHelp();\n } else if (commandWord.equals(\"go\")) {\n if (!command.hasSecondWord()) {\n System.out.println(\"Go where?\");\n } else {\n goDirection(command);\n }\n } else if (commandWord.equals(\"quit\")) {\n if (command.hasSecondWord()) {\n System.out.println(\"Quit what?\");\n } else {\n finished = true;\n }\n }\n }\n }",
"@Override\n @SneakyThrows\n public void nextRound() {\n Interpreter interpreter = Zuul.getInstance().getInterpreter();\n /*\n Getting player's input\n */\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n interpreter.handleCommand(this, reader.readLine());\n }",
"@Override\n\tsynchronized void execute() {\n\t\t_dataOUTPipe.dataIN(op1.getText());\n\t\t_dataOUTPipe.dataIN(op2.getText());\n\t\t_dataOUTPipe.dataIN(op.getText());\n\t}",
"synchronized void processCommandQueue() throws IOException {\n\t\tuserMgr.readUserListIfNeeded();\n\t\tuserMgr.clearExpiredPasswords();\n\t\tCommandProcessor.processCommands(this);\n\t}",
"Command handleExecute(CommandExecute commandExecute);",
"public void run() throws IOException {\n String EXIT_COMMAND = \"7\";\n ui.printIntro();\n ui.printExeType();\n String exeCommand = ui.getStringInput();\n while (!exeCommand.equals(EXIT_COMMAND)) {\n Parser parser = new Parser(ui, tasks);\n parser.parseCommand(exeCommand); //to select the exeType and execute it\n ui.printExeType(); //user guide after execution of command\n exeCommand = ui.getStringInput(); //get the next command\n }\n ui.printExit();\n }",
"public static void inputs() {\n Core.init(true);\n\n while (running) {\n String input = Terminal.readLine();\n String[] groups = REG_CMD.createGroups(input);\n String[] groupsAdmin = REG_ADMIN.createGroups(input);\n String[] groupsLogin = REG_LOGIN.createGroups(input);\n String arg;\n\n //Set the regex type depending on input\n if (groups[1] == null && groupsAdmin[1] != null && groupsLogin[1] == null)\n arg = groupsAdmin[1];\n else if (groups[1] == null && groupsAdmin[1] == null && groupsLogin[1] != null)\n arg = groupsLogin[1];\n else\n arg = groups[1];\n\n if (arg != null && (REG_CMD.isValid(input) || REG_ADMIN.isValid(input) || REG_LOGIN.isValid(input))) {\n if (Core.getSystem().adminActive()) {\n inputsLogin(arg, groups);\n } else {\n inputsNoLogin(arg, groups, groupsAdmin, groupsLogin);\n }\n }\n else {\n Terminal.printError(\"command does not fit pattern.\");\n }\n }\n }",
"private void handleCommand(String commands) throws IOException {\n String[] command = commands.split(String.valueOf(Command.DELIMITER));\n String cmdResult;\n if (command[0].equalsIgnoreCase(String.valueOf(Command.PLAYER_JOINED))) {\n // handlePlayerJoined\n handlePlayerJoined(command[1]);\n } else if (command[0].equalsIgnoreCase(String.valueOf(Command.UPDATE_COLOR))) {\n // handleUpdateColor\n handleColorUpdate(Color.fromString(command[1]));\n } else if (command[0].equalsIgnoreCase(String.valueOf(Command.SYNC_BOARD))) {\n // handleSyncBoard\n updateBoard(command);\n } else if (command[0].equalsIgnoreCase(String.valueOf(Command.MAKE_MOVE))) {\n // handleMakeMove\n handleMove();\n\n\n// } else if (command.equals(Character.toString(ProtocolMessages.EXIT))) {\n// in.close();\n// out.close();\n// sock.close();\n } else {\n clientTUI.showMessage(\"Check your parameters\");\n try {\n sendMessage(\"Unknown Command\");\n } catch (ServerUnavailableException e) {\n e.printStackTrace();\n }\n }\n }",
"private void executeCommand(String c) {\n // split command and arguments\n int index = c.indexOf(' ');\n String command = ((index == -1) ? c.toUpperCase() : (c.substring(0, index)).toUpperCase());\n String args = ((index == -1) ? null : c.substring(index + 1));\n\n debugOutput(\"Command: \" + command + \" Args: \" + args);\n\n // dispatcher mechanism for different commands\n switch (command) {\n case \"USER\":\n handleUser(args);\n break;\n\n case \"PASS\":\n handlePass(args);\n break;\n\n case \"CWD\":\n handleCwd(args);\n break;\n\n case \"LIST\":\n handleNlst(args);\n break;\n\n case \"NLST\":\n handleNlst(args);\n break;\n\n case \"PWD\":\n case \"XPWD\":\n handlePwd();\n break;\n\n case \"QUIT\":\n handleQuit();\n break;\n\n case \"PASV\":\n handlePasv();\n break;\n\n case \"EPSV\":\n handleEpsv();\n break;\n\n case \"SYST\":\n handleSyst();\n break;\n\n case \"FEAT\":\n handleFeat();\n break;\n\n case \"PORT\":\n handlePort(args);\n break;\n\n case \"EPRT\":\n handleEPort(args);\n break;\n\n case \"RETR\":\n handleRetr(args);\n break;\n\n case \"MKD\":\n case \"XMKD\":\n handleMkd(args);\n break;\n\n case \"RMD\":\n case \"XRMD\":\n handleRmd(args);\n break;\n\n case \"TYPE\":\n handleType(args);\n break;\n\n case \"STOR\":\n handleStor(args);\n break;\n\n default:\n sendMsgToClient(\"501 Unknown command\");\n break;\n\n }\n\n }",
"@Override\n public void recordCommandExecution(String commandInputString) {\n\n }",
"public abstract void doCommand(String command);",
"public void processUserInput(String input) {\n\t\tString[] request = this.getArguments(input); \n\t\tString command = request[0]; \n\n\t\ttry {\n\t\t\tswitch (command) {\n\t\t\t\tcase TUICommands.START_SESSION:\n\t\t\t\t\tif (!this.sessionActive) {\n\t\t\t\t\t\tthis.showNamedMessage(\"Initiating session with server...\");\n\t\t\t\t\t\twhile (!this.requestSession()) {\n\t\t\t\t\t\t\ttextUI.getBoolean(\"Try again?\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.showNamedMessage(\"Session is already active\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\t\n\n\t\t\t\tcase TUICommands.LIST_FILES: \n\t\t\t\t\tthis.showNamedMessage(\"Requesting list of files...\");\n\t\t\t\t\tif (!this.requestListFiles()) { \n\t\t\t\t\t\tthis.showNamedError(\"Retrieving list of files failed\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase TUICommands.LIST_FILES_LOCAL: \n\t\t\t\t\tthis.showNamedMessage(\"Making list of local files...\");\n\t\t\t\t\tthis.printArrayOfFile(this.getLocalFiles()); \n\t\t\t\t\tbreak;\n\n\t\t\t\tcase TUICommands.DOWNLOAD_SINGLE:\n\t\t\t\t\tFile fileToDownload = this.selectServerFile();\n\t\t\t\t\tif (!this.downloadSingleFile(fileToDownload)) {\n\t\t\t\t\t\tthis.showNamedError(\"Downloading file failed\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase TUICommands.UPLOAD_SINGLE:\n\t\t\t\t\tFile fileToUpload = this.selectLocalFile();\n\t\t\t\t\tif (!this.uploadSingleFile(fileToUpload)) { \n\t\t\t\t\t\tthis.showNamedError(\"Uploading file failed\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase TUICommands.DELETE_SINGLE:\n\t\t\t\t\tFile fileToDelete = this.selectServerFile();\n\t\t\t\t\tif (!this.deleteSingleFile(fileToDelete)) { \n\t\t\t\t\t\tthis.showNamedError(\"Deleting file failed\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase TUICommands.CHECK_INTEGRITY:\n\t\t\t\t\tFile fileToCheck = this.selectLocalFile();\n\t\t\t\t\tif (!this.checkFile(fileToCheck)) { \n\t\t\t\t\t\tthis.showNamedError(\"Checking file failed\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase TUICommands.UPLOAD_MANAGER:\n\t\t\t\t\tif (!this.helperManager(this.uploads)) { \n\t\t\t\t\t\tthis.showNamedError(\"Upload manager failed!\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase TUICommands.DOWNLOAD_MANAGER:\n\t\t\t\t\tif (!this.helperManager(this.downloads)) {\n\t\t\t\t\t\tthis.showNamedError(\"Download manager failed!\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase TUICommands.HELP:\n\t\t\t\t\tthis.textUI.printHelpMenu();\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase TUICommands.EXIT:\n\t\t\t\t\tthis.shutdown();\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tthis.showNamedError(\"Unknow command received (and ignoring it)\"); \n\t\t\t}\n\t\t\tthis.showNamedMessage(\"... done!\");\n\t\t} catch (IOException | PacketException | UtilDatagramException e) {\n\t\t\tthis.showNamedError(\"Something went wrong: \" + e.getLocalizedMessage());\n\t\t}\n\t}",
"@Override\n\tpublic void execute(String[] command) throws SLogoException {\n\t\tString filteredString = filterComments(command);\n\t\tcodeReader = new Scanner(filteredString);\n\t\twhile (codeReader.hasNext()) {\n\t\t\tCommand c = parseCommand(codeReader.next());\n\t\t\tc.run();\n\t\t}\n\n\t}",
"private void handleReadable(@NotNull SelectionKey selectionKey) throws IOException, InvalidQueryException,\n InvalidMessageException {\n logger.debug(\"handling readable\");\n MessageReader reader = (MessageReader) selectionKey.attachment();\n\n if (reader.isDisconnected()) {\n logger.debug(\"Client {} was disconnected\", selectionKey.channel());\n selectionKey.channel().close();\n return;\n }\n\n Optional<Message> message = reader.readMessage();\n\n if (message.isPresent()) {\n logger.debug(\"Message is read\");\n SocketChannel userChannel = (SocketChannel) selectionKey.channel();\n Writer writer = handleUserTask(message.get(), userChannel);\n selectionKey.channel().register(selectionKey.selector(), SelectionKey.OP_WRITE);\n selectionKey.attach(writer);\n }\n }",
"public void\n\t\t\thandleCommand(/*@ non_null */ String command);",
"protected abstract String executeCommandAndModifyOutput(List<String> args, String originalInput);",
"protected String interpretCommand(final String line)\n throws IOException\n {\n return executeCommand(line);\n }",
"public void processInput(String text);",
"public interface IObjectInput {\r\n\r\n\t/**\r\n\t * Reads a boolean.\r\n\t *\r\n\t * @return The next boolean.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic boolean readBoolean() throws IOException;\r\n\r\n\t/**\r\n\t * Reads a char.\r\n\t *\r\n\t * @return The next char.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic char readChar() throws IOException;\r\n\r\n\t/**\r\n\t * Reads a 32 bit integer.\r\n\t *\r\n\t * @return The next 32 bit integer.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic int readInt() throws IOException;\r\n\r\n\t/**\r\n\t * Reads a 64 bit integer.\r\n\t *\r\n\t * @return The next 64 bit integer.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic long readLong() throws IOException;\r\n\r\n\t/**\r\n\t * Reads a 16 bit integer.\r\n\t *\r\n\t * @return The next 16 bit integer.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic short readShort() throws IOException;\r\n\r\n\t/**\r\n\t * Reads a utf encoded string.\r\n\t *\r\n\t * @return The next utf encoded string.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic String readUTF() throws IOException;\r\n\t\r\n\t/**\r\n\t * Reads a byte.\r\n\t *\r\n\t * @return The next byte.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic byte readByte() throws IOException;\r\n\r\n\t/**\r\n\t * Reads a number of bytes and writes them into the buffer.\r\n\t * The number of bytes read is defined by the lenght of the\r\n\t * buffer.\r\n\t * \r\n\t * @param buffer The buffer to fill.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic void readBytes(byte[] buffer) throws IOException;\r\n\t\r\n\t/**\r\n\t * Reads a number of bytes and writes them into the buffer\r\n\t * starting from the specified offset. The number of bytes\r\n\t * read is defined by the length parameter.\r\n\t * \r\n\t * @param buffer The buffer to fill.\r\n\t * @param offset The offset to start from.\r\n\t * @param length The number of bytes to fill.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic void readBytes(byte[] buffer, int offset, int length) throws IOException;\r\n\r\n\t/**\r\n\t * Reads an object.\r\n\t * \r\n\t * @return The object that has been read.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic Object readObject() throws IOException;\r\n\r\n}",
"public void processCommand() {\n if (cam != null) {\n // No commands if no draw canvas to retrieve them from!\n if (this.cam.getDr().isKeyPressed(KeyEvent.VK_UP) || StdDraw.isKeyPressed(KeyEvent.VK_UP))\n this.setR(this.getR().minus(this.getFacingVector().times(1e8)));\n if (this.cam.getDr().isKeyPressed(KeyEvent.VK_DOWN) || StdDraw.isKeyPressed(KeyEvent.VK_DOWN)) \n this.setR(this.getR().plus(this.getFacingVector().times(1e8)));\n if (this.cam.getDr().isKeyPressed(KeyEvent.VK_LEFT) || StdDraw.isKeyPressed(KeyEvent.VK_LEFT)) \n this.rot += FOV_INCREMENT;\n if (this.cam.getDr().isKeyPressed(KeyEvent.VK_RIGHT) || StdDraw.isKeyPressed(KeyEvent.VK_RIGHT)) \n this.rot -= FOV_INCREMENT; \n }\n }",
"private void processInputData() throws IOException {\n\t\tout.write(Protocol.PC_READY.value);\n\t\tout.flush();\n\t\tInputBuffer buffer = InputBuffer.readFrom(in);\n\t\tdispatcher.dispatch(buffer.entries);\n\t}",
"@Override\n public void execute(String commandText) throws Exception {\n parse(commandText);\n }",
"protected void processCommand(String command) throws EmptyException {\n if (command.equals(\"a\")) {\n doAddTask();\n } else if (command.equals(\"r\")) {\n doRemoveTask();\n } else if (command.equals(\"p\")) {\n doViewList();\n } else if (command.equals(\"m\")) {\n //doMarkComplete();\n } else if (command.equals(\"n\")) {\n doCount();\n } else if (command.equals(\"s\")) {\n doSave();\n } else if (command.equals(\"c\")) {\n doClear();\n } else {\n System.out.println(\"Selection not valid...\");\n }\n }",
"public static void handle ( String input, JTextPane console ) {\r\n GUI.commandHistory.add ( input ) ;\r\n GUI.commandHistoryLocation = GUI.commandHistory.size ( ) ;\r\n\r\n GUI.write ( \"Processing... [ \"\r\n + console.getText ( ).replaceAll ( \"\\r\", \"\" ).replaceAll ( \"\\n\", \"\" )\r\n + \" ]\" ) ;\r\n console.setText ( \"\" ) ;\r\n\r\n input = input.replaceAll ( \"\\r\", \"\" ).replaceAll ( \"\\n\", \"\" ) ;\r\n try {\r\n if ( input.equalsIgnoreCase ( \"quit\" )\r\n || input.equalsIgnoreCase ( \"exit\" )\r\n || input.equalsIgnoreCase ( \"close\" ) ) {\r\n Core.fileLogger.flush ( ) ;\r\n System.exit ( 0 ) ;\r\n } else {\r\n final String inp[] = input.split ( \"(\\\\s)+\" ) ;\r\n if ( inp.length == 0 ) { return ; }\r\n final Class<?> cmdClass = Class.forName ( \"net.mokon.scrabble.cmd.CMD_\"\r\n + inp[ 0 ].toLowerCase ( ) ) ;\r\n final Constructor<?> cmdConstructor = cmdClass\r\n .getDeclaredConstructors ( )[ 0 ] ;\r\n final Command toRun = (Command) cmdConstructor.newInstance ( inp,\r\n console, Core.scrabbleBoard, Core.main, Core.moves,\r\n Core.scrabbleBoard.bag ) ;\r\n if ( inp[ 0 ].equalsIgnoreCase ( \"word\" ) ) {\r\n final Method method = cmdClass.getMethod ( \"setFrame\", JFrame.class ) ;\r\n method.invoke ( toRun, Core.showWorkingScreen ( ) ) ;\r\n }\r\n toRun.start ( ) ;\r\n }\r\n } catch ( final ClassNotFoundException e ) {\r\n GUI.write ( \"Unknown Command - Valid are [ help, word, use, draw,\"\r\n + \" place, set, unset, grid, size, fill, lookup ]\" ) ;\r\n } catch ( final Throwable e ) {\r\n GUI.write ( \"An error has been enountered [ \" + e.toString ( )\r\n + \" ]. Attempting to continue...\" ) ;\r\n e.printStackTrace ( ) ;\r\n e.printStackTrace ( Core.fileLogger ) ;\r\n }\r\n }",
"public Command parseCommand(String userInput, Model model,\n seedu.address.person.model.CheckAndGetPersonByNameModel personModel) throws Exception {\n final Matcher matcher = BASIC_COMMAND_FORMAT.matcher(userInput.trim());\n if (!matcher.matches()) {\n throw new ParseException(CashierMessages.MESSAGE_NO_COMMAND);\n }\n\n final String commandWord = matcher.group(\"commandWord\");\n final String arguments = matcher.group(\"arguments\");\n\n switch (commandWord) {\n\n case AddCommand.COMMAND_WORD:\n return new AddCommandParser().parse(arguments, model, personModel);\n\n case DeleteCommand.COMMAND_WORD:\n return new DeleteCommandParser().parse(arguments, model, personModel);\n\n case EditCommand.COMMAND_WORD:\n return new EditCommandParser().parse(arguments, model, personModel);\n\n case SetCashierCommand.COMMAND_WORD:\n return new SetCashierCommandParser().parse(arguments, model, personModel);\n\n case CheckoutCommand.COMMAND_WORD:\n return new CheckoutCommandParser().parse(arguments, model, personModel);\n\n case ClearCommand.COMMAND_WORD:\n return new ClearCommandParser().parse(arguments, model, personModel);\n\n default:\n logger.info(\"There is no such command.\");\n throw new ParseException(CashierMessages.MESSAGE_NO_COMMAND);\n\n }\n }",
"@Override\n\tpublic void processCommand(String s)\n\t{\n\t\tif (s.contentEquals(\"atStart\"))\n\t\t{\n\t\t\tprinttest(s);\n\t\t\tSystem.out.println(isAtStart());\n\t\t}\n\t\telse if (s.contentEquals(\"atEnd\"))\n\t\t{\n\t\t\tprinttest(s);\n\t\t\tSystem.out.println(isAtEnd());\n\t\t}\n\t\telse if (s.contentEquals(\"moveToStart\"))\n\t\t{\n\t\t\tmoveToStart();\n\t\t\tprinttest(s);\n\t\t}\n\t\telse if (s.contentEquals(\"moveToEnd\"))\n\t\t{\n\t\t\tmoveToEnd();\n\t\t\tprinttest(s);\n\t\t}\n\t\telse if (s.contentEquals(\"toString\"))\n\t\t{\n\t\t\tprinttest(s);\n\t\t}\n\t\telse if (s.startsWith(\"toStringCursor\"))\n\t\t{\n\t\t\tprinttest(s);\n\t\t}\n\t\telse if (s.contentEquals(\"moveLeft\"))\n\t\t{\n\t\t\tmoveLeft();\n\t\t\tprinttest(s);\n\t\t}\n\t\telse if (s.contentEquals(\"moveRight\"))\n\t\t{\n\t\t\tmoveRight();\n\t\t\tprinttest(s);\n\t\t}\n\t\t\n\t\t//ERROR CHECKING\n\t\telse if(left.isEmpty() && right.isEmpty())\n\t\t{\n\t\t\t//we have no inputted characters\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Now executing the command \" + s + \"...\");\n\t\t\tSystem.out.println(\"The Results of this command are:\");\n\t\t\tSystem.out.println(\"Sorry but you need to input something before using that command...\");\n\t\t}\n\t\telse if (s.startsWith(\"insertChar\"))\n\t\t{\n\t\t\tinsertChar(s.charAt(s.length() - 1));\n\t\t\tprinttest(s);\n\t\t}\n\t\telse if (s.contentEquals(\"backspace\"))\n\t\t{\n\t\t\tbackspace();\n\t\t\tprinttest(s);\n\t\t}\n\t\telse if (s.contentEquals(\"delete\"))\n\t\t{\n\t\t\tdelete();\n\t\t\tprinttest(s);\n\t\t}\n\t\telse if (s.startsWith(\"search\"))\n\t\t{\n\t\t\tsearch(s.charAt(s.length() - 1));\n\t\t\tprinttest(s);\n\t\t}\n\t\t\n\t\t//ERORR CHECKING\n\t\telse\n\t\t{\n\t\t\t//it is an unaccepted command, doing it this way since we cant pass two strings to printtest\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Now executing the command \" + s + \"...\");\n\t\t\tSystem.out.println(\"The Results of this command are:\");\n\t\t\tSystem.out.println(\"Sorry but this is not valid command...\");\n\t\t}\n\n\t}",
"void processGUIInput(String cmd){\n try{\n debugWriter.write(cmd);\n debugWriter.flush();\n //}\n }catch(IOException e){\n //Eat it\n e.printStackTrace();\n //throw new InvalidInteractionsException();\n }\n }"
] | [
"0.66213965",
"0.6578318",
"0.6469232",
"0.6417695",
"0.637724",
"0.6358706",
"0.6326564",
"0.6294905",
"0.62633985",
"0.62458694",
"0.6244996",
"0.6166739",
"0.61587393",
"0.61339164",
"0.6105946",
"0.60699904",
"0.6068059",
"0.60595745",
"0.6009329",
"0.59925354",
"0.5984608",
"0.59818137",
"0.5975066",
"0.5940174",
"0.5937806",
"0.59313023",
"0.5908901",
"0.59018683",
"0.58908963",
"0.58526355",
"0.5846406",
"0.5833259",
"0.58244115",
"0.58194995",
"0.580347",
"0.5787536",
"0.57578474",
"0.5748705",
"0.57403994",
"0.57383364",
"0.57367307",
"0.5735883",
"0.5735159",
"0.5732138",
"0.57266146",
"0.5725842",
"0.57231903",
"0.5703034",
"0.5698104",
"0.5690746",
"0.5685419",
"0.5683934",
"0.56549233",
"0.5653652",
"0.5652232",
"0.5646838",
"0.56440353",
"0.56409746",
"0.563898",
"0.5638134",
"0.56342787",
"0.56156147",
"0.56146663",
"0.56017274",
"0.55897003",
"0.55883324",
"0.5587489",
"0.55816704",
"0.55810446",
"0.5576069",
"0.5565647",
"0.5561733",
"0.5558397",
"0.5557062",
"0.5552165",
"0.55502695",
"0.5541087",
"0.55400604",
"0.5534531",
"0.55340904",
"0.55306613",
"0.5523427",
"0.55196273",
"0.5513505",
"0.5508391",
"0.5507965",
"0.55079585",
"0.55074817",
"0.5507353",
"0.55057204",
"0.5500505",
"0.549656",
"0.5492802",
"0.5488674",
"0.54867643",
"0.5483391",
"0.54771614",
"0.54730123",
"0.5471139",
"0.5464355"
] | 0.67383605 | 0 |
Handle the request to "/basket" URL to go to the basket page. | @GetMapping("/basket")
public String getBasket(HttpServletRequest request, Model model) {
Map<Product, Integer> productsInBasket = basketService.getProductsInBasket(request);
model.addAttribute("items", productsInBasket);
try {
Client clientForView = clientService.getClientForView();
model.addAttribute("addresses", clientForView.getAddressList());
model.addAttribute("client", clientForView);
model.addAttribute("addressesSelf", orderService.getAllShops());
} catch (ClassCastException ex) {
logger.info("Not authorized attempt to go to the basket page");
}
logger.info("Go to basket page");
return "basket";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Then(\"^view basket$\")\r\n\tpublic void view_basket() throws Throwable {\n\t\tverbose(\"***********************************************************\");\r\n\t\tAssert.assertTrue(navigate_rsc.viewbasket());\r\n\t\tverbose(\"***********************************************************\");\r\n\t \r\n\t}",
"@Test \n\tpublic void testGetBasket() throws Exception {\n\t\tBBBRequest request = BBBRequestFactory.getInstance().createGetBasketRequest();\n\t\t\n\t\tString expectedUrl = AccountHelper.constructUrl(BBBRequestFactory.getInstance().getHostBasket(), PATH_MY_BASKETS);\n\t\tassertEquals(expectedUrl, request.getUrl());\n\t\t\n\t\tBBBResponse response = BBBRequestManager.getInstance().executeRequestSynchronously(request);\n\t\tbasketHandler.receivedResponse(response);\n\t}",
"@Then(\"^click on add to basket$\")\r\n\tpublic void click_on_add_to_basket() throws Throwable {\n\t\tverbose(\"***********************************************************\");\r\n\t\tAssert.assertTrue(navigate_rsc.addbasket());\r\n\t\tverbose(\"***********************************************************\");\r\n\t \r\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tHashSet<CartItem> shoppingCart = (HashSet<CartItem>)request.getSession().getAttribute(\"shoppingCart\");\n\t\tint userID = (Integer)request.getSession().getAttribute(\"userID\");\n\t\t\n//\t\tfor (CartItem item : shoppingCart) {\n//\t\t\tSystem.out.println(\"item id in cart right before calling insert method: \" + item.getItemID());\n//\t\t}\n\t\t\n\t\t// user's personal previous shopping cart (if any, stored from previous uses of the website) is deleted\n\t\t// then the user's personal current shopping cart is inserted into ShoppingList table via shoppingCartDAO\n\t\tShoppingCartDAO shoppingCartDAO = new ShoppingCartDAO();\n\t\tshoppingCartDAO.deleteCart(userID);\n\t\tshoppingCartDAO.insertCart(userID, shoppingCart);\n\t\t\n\t\t// after cart is inserted into database, user is redirected to finalize.jsp to configure their location, ranking, and travel preferences\n\t\tresponse.sendRedirect(\"finalize.jsp\");\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n //3.切換畫面(同步GET請求:redirect to /vgb/products_list.jsp | 非同步請求:forward to /cart_total_quantity.jsp)\n response.sendRedirect(\"products_list.jsp\");\n //request.getRequestDispatcher(\"/cart_total_quantity.jsp\").forward(request, response);\n }",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n request.setAttribute(\"p\", new CartViewModel(request));\n String userPath = \"/cart\";\n forwardToJsp(request, response, userPath);\n }",
"public void doShopping(IBasket basket,IArchiveBasket archiveBasket);",
"@Override\r\n\tpublic MvcForward execute(HttpServletRequest request, HttpServletResponse response) {\n\t\t\r\n\t\ttry {\r\n\t\t\trequest.setCharacterEncoding(\"utf-8\");\r\n\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tString basketID = request.getParameter(\"basketID\");\r\n\t\tString id = ((SignUpDTO)(request.getSession().getAttribute(\"mem\"))).getId();\r\n\t\tString bstatus = \"r\";\r\n\t\t\r\n\t\tnew ChangeBstatus(basketID, bstatus);\r\n\t\t\r\n\t\tnew DetailReserveGo(id, request, response);\r\n\t\trequest.setAttribute(\"msg\", \"환불완료\");\r\n\t\trequest.setAttribute(\"goUrl\", \"DetailReserveInfo?mypage=in\");\r\n\t\trequest.setAttribute(\"mainUrl\", \"purchase/alert.jsp\");\r\n\t\t\r\n\t\treturn null;\r\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String pageId = request.getParameter(\"pageid\");\n\n // return the pageId if number or return 0\n long id = pageId != null && Helper.isNumber(pageId) ? Long.parseLong(pageId) : 0;\n\n if (id != 0) {\n // get categoryItems with dessending order\n List<Item> categoryItems = new CategoryDaoImpl(getServletContext()).getCategoryItems(id, \"DESC\");\n\n // set categoryItems to request\n request.setAttribute(\"categoryItems\", categoryItems);\n\n // forword request to show category items page\n Helper.forwardRequest(request, response, ViewPath.show_category);\n } else {\n Helper.redriectToPrevPage(request, response, \"You Must Add Page ID\", true);\n }\n }",
"public static void goToCart() {\n click(SHOPPING_CART_UPPER_MENU);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n Intent intent = new Intent(this, DisplayBasketActivity.class);\n\n //Select what happens when menu item selected (basket/checkout/empty)\n switch (item.getItemId()) {\n case R.id.action_basket:\n startActivity(intent);\n return true;\n case R.id.action_checkout:\n\n // PayPalConfiguration payPalConfiguration = new PayPalConfiguration().\n //Calculate Costs\n BigDecimal subtotal = PayPalItem.getItemTotal(Basket.getBasketPayPalItems());\n BigDecimal shipping = new BigDecimal(\"9.99\");\n BigDecimal tax = shipping.multiply(new BigDecimal(\"1.2\"));\n PayPalPaymentDetails paymentDetails = new PayPalPaymentDetails(shipping, subtotal, tax);\n BigDecimal amount = subtotal.add(shipping).add(tax);\n\n //Set top level Payment details\n PayPalPayment payment = new PayPalPayment(amount, \"GBP\", \"DipsSausageShop Order\", PayPalPayment.PAYMENT_INTENT_SALE);\n\n\n //Set Address\n ShippingAddress shippingAddress = new ShippingAddress();\n shippingAddress.city(\"Whitchurch\");\n shippingAddress.countryCode(\"GB\");\n shippingAddress.line1(\"38 Micheldever Road\");\n shippingAddress.state(\"Hampshire\");\n shippingAddress.postalCode(\"RG28 7JH\");\n payment.providedShippingAddress(shippingAddress);\n payment.enablePayPalShippingAddressesRetrieval(true);\n //PaymentAc\n\n //Set Details of Payment\n payment.items(Basket.getBasketPayPalItems()).paymentDetails(paymentDetails);\n\n Intent intentPay = new Intent(this, PaymentActivity.class);\n intentPay.putExtra(PaymentActivity.EXTRA_PAYMENT, payment);\n startActivityForResult(intentPay, 0);\n\n return true;\n case R.id.action_empty:\n Basket.emptyBasket();\n startActivity(intent);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n //order history\n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n\n String txtProductID = request.getParameter(\"txtProductID\");\n String image = request.getParameter(\"image\");\n String txtDescription = request.getParameter(\"txtDescription\");\n float price = Float.parseFloat(request.getParameter(\"priceItem\"));\n String txtProductName = request.getParameter(\"txtProductName\");\n int quantity = Integer.parseInt(request.getParameter(\"quantity\"));\n// String url = SHOPPING_PAGE;\n String getCurrentPage = request.getParameter(\"pageIndex\");\n String url = \"HomePageServlet?btnAction=Add&pageIndex=\" + getCurrentPage;\n try {\n HttpSession session = request.getSession();\n Object checkUser = session.getAttribute(\"customer\");\n if (checkUser == null) {\n url = LOGIN_PAGE;\n }\n\n CartObject cart = (CartObject) session.getAttribute(\"CART\");\n if (cart == null) {\n cart = new CartObject();\n }\n\n ProductDTO dto = new ProductDTO(txtProductID, txtProductName, image, txtDescription, price, 1);\n\n if (quantity <= 0) {\n url = SOUT_OUT;\n } else {\n cart.addItemToCart(dto);\n session.setAttribute(\"CART\", cart);\n }\n } finally {\n response.sendRedirect(url);\n out.close();\n }\n }",
"@Test \n\tpublic void testGetBasketItem() throws Exception {\n\t\tBBBBasket basket = AccountHelper.getInstance().getBasket();\n\t\t\n\t\tif(basket == null || basket.items == null || basket.items.length < 1) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tString id = basket.items[0].id;\n\t\t\n\t\tBBBRequest request = BBBRequestFactory.getInstance().createGetBasketItemRequest(id);\n\t\tString expectedUrl = AccountHelper.constructUrl(BBBRequestFactory.getInstance().getHostBasket(), String.format(PATH_MY_BASKETS_ITEMS_, id) );\n\t\tassertEquals(expectedUrl, request.getUrl());\n\t\t\n\t\tBBBResponse response = BBBRequestManager.getInstance().executeRequestSynchronously(request);\n\t\tbasketItemHandler.receivedResponse(response);\n\t}",
"@GetMapping(\"/{id}\")\n public ResponseEntity<JsonResponse<OrderDTO>> getBasketById(@PathVariable Long id) throws Exception {\n log.info(\"REST request to get order: {}\", id);\n return new ResponseEntity<>(new JsonResponse<>(this.orderService.getOrderById(id)), HttpStatus.OK);\n }",
"@RequestMapping(\"/pizza/buy.html\")\r\n public ModelAndView buy(\r\n @CookieValue(value = \"v\", defaultValue = \"\") String visitorId,\r\n HttpServletResponse response) throws Exception {\n visitorManager.setCookieValue(visitorId);\r\n \r\n // Get the current order\r\n Order order = shoppingCart.getOrder();\r\n ModelAndView result = new ModelAndView(\"/pizza/buy\");\r\n result.addObject(\"order\", order);\r\n\r\n // Remember the visitor\r\n response.addCookie(new Cookie(\"v\", visitorManager.getCookieValue()));\r\n return result;\r\n }",
"@Override\n\tprotected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t logger.error(\"BISHUNNN CALLED\");\n\t\tString category = request.getParameter(\"category\").trim();\n\t\tGetHttpCall getHttpCall = new GetHttpCall();\n\t\turl = APIConstants.baseURL+category.toLowerCase();\n\t\tresponseString = getHttpCall.execute(url);\n\t\tresponse.getWriter().write(responseString);\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException\n {\n// HttpSession session = request.getSession();\n// cartBean.init(session.getId());\n//\n//\n// System.out.println(\"---------->>>>>>> \" + session.getId());\n//\n// request.setAttribute(\"books\", (cartBean.getBooks()));\n// RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(\"/jsp/cart.jsp\");\n// dispatcher.forward(request, response);\n }",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tint i = request.getRequestURI().lastIndexOf(\"/\") + 1;\n\t\tString action = request.getRequestURI().substring(i);\n\t\tSystem.out.println(action);\n\t\t\n\t\tString view = \"Error\";\n\t\tObject model = \"service Non disponible\";\n\t\t\n\t\tif (action.equals(\"ProductsList\")) {\n\t\t\tview = productAction.productsList();\n\t\t\tmodel = productAction.getProducts();\n\t\t}\n\t\t\n\t\trequest.setAttribute(\"model\", model);\n\t\trequest.getRequestDispatcher(prefix + view + suffix).forward(request, response); \n\t}",
"public void doGet(HttpServletRequest request,\r\n HttpServletResponse response)\r\n throws ServletException, IOException {\n\t\t \r\n HttpSession session = request.getSession();\r\n ShoppingCart cart;\r\n\t\r\n synchronized(session) {\r\n\t\tString userid = (String)session.getAttribute(\"userid\");\r\n cart = (ShoppingCart)session.getAttribute(\"shoppingCart\");\r\n\t String itemID1 = request.getParameter(\"itemID1\");\r\n\t if(itemID1 != null)\r\n\t\t cart.deleteFromCart(itemID1);\r\n\t \r\n String itemID = request.getParameter(\"itemID\");\r\n if (itemID != null) {\r\n String numItemsString = request.getParameter(\"numItems\");\r\n if (numItemsString == null) {\r\n \r\n } else {\r\n \r\n int numItems;\r\n try {\r\n numItems = Integer.parseInt(numItemsString);\r\n } catch(NumberFormatException nfe) {\r\n numItems = 1;\r\n }\r\n cart.setNumOrdered(itemID, numItems);\r\n }\r\n }\r\n \r\n response.setContentType(\"text/html\");\r\n PrintWriter out = response.getWriter();\r\n String docType =\r\n \"<!DOCTYPE HTML>\\n\";\r\n out.println(docType +\r\n \"<HTML>\\n\" +\r\n \"<HEAD><TITLE>Checkout</TITLE>\\n\" +\r\n\t\t\t\t\"<meta http-equiv=\"+\"Content-Type\"+\" content=\"+\"text/html; charset=utf-8\"+\" />\\n\" +\r\n\t\t\t\t\"<link rel=\"+\"stylesheet\"+\" href=\"+\"styles.css\"+\" type=\"+\"text/css\"+\" />\\n\" +\r\n\t\t\t\t\"</head>\" +\r\n\t\t\t\t\"<body>\"+\r\n\t\t\t\t\"<div id=\"+\"container\"+\">\\n\");\r\n\t\t\t\t\r\n\t\t\t\tout.println(\"<nav>\");\t\r\n\t\t out.println(\"<ul>\");\t\r\n out.println(\"<li class=\"+\"start selected\"+\"><a href=\"+\"/BestDealHome/HomeServlet\"+\">Home</a></li>\" +\r\n\t\t\t\"<li class=\"+\"\"+\"><a href=\"+\"/BestDealHome/Phones\"+\">Phones</a></li>\" + \r\n\t\t \"<li class=\"+\"\"+\"><a href=\"+\"/BestDealHome/Tablets\"+\">Tablets</a></li>\" + \r\n\t\t \"<li class=\"+\"\"+\"><a href=\"+\"/BestDealHome/Laptops\"+\">Laptops</a></li>\" + \r\n\t\t \t\"<li class=\"+\"\"+\"><a href=\"+\"/BestDealHome/TvPage\"+\">TvPage</a></li>\"+\r\n\t\t\t\r\n\t\t\t\"<div style=float:\"+\"right\"+\">\" +\r\n\t\t\t\"<li class=\"+\"\"+\"><a >Hi,\"+userid+\"</a></li>\"+\r\n\t\t\t\"<li class=\"+\"\"+\"><a href=\"+\"/BestDealHome/\"+\" >Logout</a></li>\"+\r\n\t\t\t\r\n\t\t\t\"<li class=\"+\"\"+\"><a href=\"+\"/BestDealHome/\"+\">Cart(\"+cart.getItemsOrdered().size()+\")</a></li></div>\");\r\n out.println(\"</nav>\");\r\n\t\t\r\n\t\tout.println(\"<header><h3>Place the order<h3></header>\");\r\n\t\t out.println(\"<div id=\"+\"body\"+\">\\n\" );\r\n\t\r\n\t\tList itemsOrdered = cart.getItemsOrdered(); \r\n\t\t out.println\r\n (\"<TABLE BORDER=1 ALIGN=\\\"CENTER\\\">\\n\" +\r\n \"<TR BGCOLOR=\\\"#FFAD00\\\">\\n\" +\r\n \" <TH>Item ID<TH>Description\\n\" +\r\n \" <TH>Unit Cost<TH>Quantity<TH>Total Cost\");\r\n ItemOrder order;\r\n double Total=0;\r\n\t \r\n NumberFormat formatter =\r\n NumberFormat.getCurrencyInstance();\r\n \r\n for(int i=0; i<itemsOrdered.size(); i++) {\r\n order = (ItemOrder)itemsOrdered.get(i);\r\n out.println\r\n (\"<TR>\\n\" +\r\n \" <TD>\" + order.getItemID() + \"\\n\" +\r\n \" <TD>\" + order.getName() + \"\\n\" +\r\n \" <TD>\" +\r\n formatter.format(order.getUnitCost()) + \"\\n\" +\r\n \" <TD>\" +\r\n \"<FORM>\\n\" + // Submit to current URL\r\n \"<INPUT TYPE=\\\"HIDDEN\\\" NAME=\\\"itemID\\\"\\n\" +\r\n \" VALUE=\\\"\" + order.getItemID() + \"\\\">\\n\" +\r\n\t\t //\"VALUE=\\\"\" + order.getName()+ \"\\\">\\n\" +\r\n \"<INPUT TYPE=\\\"TEXT\\\" NAME=\\\"numItems\\\"\\n\" +\r\n \" SIZE=3 VALUE=\\\"\" + \r\n order.getNumItems() + \"\\\">\\n\" +\r\n \"</FORM>\\n\" +\r\n \" <TD>\" +\r\n formatter.format(order.getTotalCost()));\r\n\t\t\t Total = Total + order.getTotalCost();\r\n }\r\n\t\t//out.println(\"<section id=\"+\"content\"+\">\\n\");\r\n\t\tsession.setAttribute(\"Total\", Total); \r\n\t\t \t\t \r\n\t\t String checkoutOrderURL =\r\n response.encodeURL(\"/BestDealHome/CompleteOrderServlet\");\r\n // \"Proceed to Checkout\" button below table METHOD=\"+\"GET\"+\"\r\n\t\t\r\n out.println\r\n (\"</TABLE>\\n\" +\r\n \"<FORM METHOD='POST' ACTION=\\\"\" + checkoutOrderURL + \"\\\">\\n\" +\r\n\t\t \r\n \"<table cellpadding=\"+'2'+\" cellspacing=\"+'1'+\">\\n\" +\r\n\t\t \"<div align='right'><a ><h5>Total Payable: $\"+Total+\"</h5></a></div>\"+\r\n\r\n\t\t \r\n\t\t \"<tr><td>CreditCard Number</td>\"+\r\n\t\t \"<td><INPUT TYPE=\\\"TEXT\\\"\\n\" +\r\n \" NAME=\\\"cardnumber\\\"></td></tr>\\n\" +\r\n\t\t \"<td>Customer Address</td>\"+\r\n\t\t\t\r\n \"<td><INPUT TYPE=\\\"TEXT\\\"\\n\" +\r\n \" NAME=\\\"address\\\"></td></tr>\\n\" +\r\n\t\t \"<td><centre><INPUT TYPE=\\\"SUBMIT\\\"\\n\" +\r\n \" VALUE=\\\"SUBMIT\\\"></center></td>\\n\" +\r\n \" </tr></table></FORM>\");\r\n \r\n\t//out.println(\"</section>\");\r\n\tout.println(\"<div class=\"+\"clear\"+\"></div> \\n\");\r\n\tout.println(\"</div>\");\r\n\t out.println(\"\\n</BODY></HTML>\");\r\n }\r\n }",
"@Test \n\tpublic void testAddItemToBasket() throws Exception {\n\t\tBBBRequest request = BBBRequestFactory.getInstance().createAddBasketItemRequest(BOOK_BASKET_ITEM_ISBN);\n\t\t\n\t\tString expectedUrl = AccountHelper.constructUrl(BBBRequestFactory.getInstance().getHostBasket(), PATH_MY_BASKETS_ITEMS);\n\t\tassertEquals(expectedUrl, request.getUrl());\n\t\t\n\t\tBBBResponse response = BBBRequestManager.getInstance().executeRequestSynchronously(request);\n\t\t\n\t\tif(response.getResponseCode() != HttpURLConnection.HTTP_OK) {\n\t\t\tfail(\"Error: \"+response.toString());\n\t\t}\n\t}",
"@GetMapping(value = \"/basket\", produces = {MediaType.APPLICATION_JSON_VALUE})\n @ResponseBody\n public ResponseEntity<Integer> addToBasketAjax(@RequestParam(name = \"item\") int id,\n HttpSession session) {\n Integer shop_basket = basketService.prepareProductsForBasket(id, session);\n return new ResponseEntity<>(shop_basket, HttpStatus.OK);\n }",
"public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\tsession = request.getSession(true);\n\t\t\tVector productList = new Vector();;\n\t\t\tif(session.getAttribute(\"ProductList\")!=null)\n\t\t\t{\n\t\t\t\tproductList=(Vector) session.getAttribute(\"ProductList\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\t\t\t\t\t\n\t\t\t\tcartBLL=new ShoppingCartBLL();\t\t\t\t\t\n\t\t\t\tproductList=cartBLL.productList;\n\t\t\t\tsession.setAttribute(\"ProductList\", productList);\n\t\t\t\tsession.setAttribute(\"cartBLL\", cartBLL);\n\t\t\t}\n\t\t\t\n\t\t\tRequestDispatcher dispatcher = null;\n\t\t\n\t\t\tdispatcher = request.getRequestDispatcher(\"ShowProductList.jsp\");\n\t\t\trequest.setAttribute(\"Title\", \"All-Time Best Selling Books\");\n\t\t\trequest.setAttribute(\"ProductList\", productList);\n\t\t\tdispatcher.forward(request, response);\t\t\n\t}",
"private void goToShop() {\n shopMenu.runMenu();\n }",
"public void buyNow(View view) {\n String itemURL = null;\n try {\n itemURL = basic.getString(\"viewItemURL\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n Intent viewIntent = new Intent(\"android.intent.action.VIEW\", Uri.parse(itemURL));\n startActivity(viewIntent);\n }",
"private void goShopping(User user, Scanner sc) {\n\t\tboolean run = true;\n\t\tdo {\n\t\t\tlog.info(\"Store Inventory\\n\");\n\t\t\tList<Item> items = cService.seeItemsOnSale();\n\t\t\titems.stream().forEach(item -> log.info(item));\n\n\t\t\tlog.info(\"Welcome to the NYC Grocery Store\\n\");\n\n\t\t\tlog.info(\"Choose an option:\");\n\t\t\tlog.info(\"\t\tPress 1 to Make an Offer on an Item\");\n\t\t\tlog.info(\"\t\tPress anything else to go to the MAIN CUSTOMER DASHBOARD\");\n\t\t\tString choice = sc.nextLine();\n\t\t\tswitch (choice) {\n\t\t\tcase \"1\":\n\t\t\t\tmakeAnOffer(user, sc);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tlog.info(\"\\nGoing back to the CUSTOMER DASHBOARD\\n\");\n\t\t\t\trun = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} while (run);\n\n\t}",
"@Override\n\tpublic void browseItems(Session session){\n\t\t//exception handling block\n\t\ttry{\n\t\t\tbrowseItem=mvc.browseItems(session);\n\t\t\t//displaying items from database\n\t\t\tSystem.out.println(\"<---+++---Your shopping items list here----+++--->\");\n\t\t\tSystem.out.println(\"ItemId\"+\" \"+\"ItemName\"+\" \"+\"ItemType\"+\" \"+\"ItemPrice\"+\" \"+\"ItemQuantity\");\n\t\t\tfor(int i = 0; i < browseItem.size(); i++) {\n\t System.out.println(browseItem.get(i)+\"\\t\"+\"\\t\");\n\t }\n\t System.out.println(\"<------------------------------------------------>\");\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App Exception- Browse Items: \" +e.getMessage());\n\t\t}\n\t}",
"public void ClickShoppingcart(View view){\n MainActivity.redirectActivity(this,Shopping_cart_MainActivity.class);\n }",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n\t\t/*\r\n\t\tList<?> products =getBusinessService().getProducts ();\r\n\t\treq.setAttribute(\"products\", products);\r\n\t\t*/\r\n\t\tList<Product> products = getProductService().listAllProducts(1, Constants.MAX_PRODUCTS_PER_HTML_PAGE);\r\n\t\treq.setAttribute(\"products\", products);\r\n\t\tint totalCount = getProductService().countAllProducts();\r\n\t//\treq.setAttribute(\"pageCount\", getPageCount(totalCount, Constants.MAX_PRODUCTS_PER_HTML_PAGE));\r\n\t\tRoutingUtils.forwardToPage(\"products.jsp\", req, resp);\r\n\t}",
"public static int checkout(Basket basket) {\n\t\tfor (Map.Entry<StockItem, Integer> item : basket.Items().entrySet()) {\n\t\t\tString itemName = item.getKey().getName();\n\t\t\tStockItem stockItem = stockList.get(itemName);\n\t\t\tif (stockItem == null) {\n\t\t\t\tSystem.out.println(\"We don't sell \" + itemName);\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t\tstockList.sellStock(itemName);\n\t\t}\n\t\tbasket.clear();\n\t\treturn 0;\n\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String button = request.getParameter(\"button\");\n HomeControler data = new HomeControler();\n request.setAttribute(\"test\", data.getListCategories());\n HttpSession session = request.getSession();\n switch (button) {\n case \"account\":\n if (session.getAttribute(\"user\") != null) {\n\n }\n request.setAttribute(\"data\", data.getListCategories());\n doGet(request, response);\n break;\n case \"selectedProduct\":\n session.setAttribute(\"productId\", request.getParameter(\"selectedProduct\"));\n response.sendRedirect(response.encodeRedirectURL(request.getContextPath() + \"/productInfo\"));\n doGet(request, response);\n break;\n case \"employe\":\n request.setAttribute(\"data\", data.getListCategories());\n request.getRequestDispatcher(\"/listEmployes.jsp\").forward(request, response);\n break;\n case \"client\":\n request.setAttribute(\"data\", data.getListCategories());\n request.getRequestDispatcher(\"/listClients.jsp\").forward(request, response);\n break;\n default:\n doGet(request, response);\n }\n }",
"private void handleRequestPlacingBook(HttpServletRequest request, HttpServletResponse response, HttpSession session, RequestDispatcher dispatcher) throws ServletException, IOException {\n\t\t\n\t\tString bookItemId = (String) session.getAttribute(\"valueBookItemIdStore\");\n\t\t//Get value of book item\n\t\t\n\t\tthis.bookItem.getValueInformations(bookItemId, BookItem.BOOK_ITEM_ID);\n\t\t//Set some attribute to session\n\t\t\n\t\tsession.setAttribute(\"nameBookResultPlaceBook\", this.bookItem.getValueProperties()[BookItem.BOOK_ITEM_TITLE]);\n\t\t//Create dispatcher and forward to main.jsp\n\t\t\n\t\tdispatcher = getServletContext().getRequestDispatcher(\"/main.jsp\");\n\t\tdispatcher.forward(request, response);\n\t\t\n\t\treturn;\n\t}",
"public void ClickShoppingcart(View view){\n redirectActivity(this,SummaryActivity.class);\n }",
"@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\n req.setAttribute(\"title\", \"Transaction\");\n\n String action = req.getParameter(\"action\");\n action = StringUtils.capitalize(action);\n req.setAttribute(\"action\", action);\n\n page.getPage(\"view/transaction/doTransaction.jsp\", req, resp);\n\n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n try (PrintWriter out = response.getWriter()) {\n int productId=Integer.valueOf(request.getParameter(\"productId\"));\n String name=request.getParameter(\"name\");\n int quantity=Integer.valueOf(request.getParameter(\"quantity\"));\n double price=Double.valueOf(request.getParameter(\"price\"));\n String image = request.getParameter(\"image\");\n int shopId=Integer.valueOf(request.getParameter(\"shopId\"));\n CartItem ci=new CartItem(productId, name,quantity, price,image,shopId);\n HttpSession session=request.getSession();\n if(session.getAttribute(\"cart\")==null)\n session.setAttribute(\"cart\", new Cart());\n Cart c=(Cart)session.getAttribute(\"cart\");\n c.addCartItem(ci);\n// c.addCartItem(new CartItem(1, \"Com\",1, 50000,\"zxc.jpg\",2));\n// c.addCartItem(new CartItem(2, \"Bun\",1, 70000,\"zxc.jpg\",2));\n// c.addCartItem(new CartItem(3, \"Kem\",1, 30000,\"zxc.jpg\",3));\n// c.addCartItem(new CartItem(4, \"Cong\",1, 700000,\"zxc.jpg\",3));\n// c.addCartItem(new CartItem(5, \"Van\",1, 30000,\"zxc.jpg\",4));\n session.setAttribute(\"cart\", c);\n response.sendRedirect(\"/ProjectJavaWeb/container/user/checkout.jsp\");//xoa het trang cu mat res,req ||con forward van nhan dc res,req\n }\n }",
"public void goToFootballBetPage() {\n driver.findElement(By.xpath(BettingFootballPageConstants.FOOTBALL_TAB)).click();\n TestHelper.waitForAjax();\n }",
"@Override\n public void doPost(HttpServletRequest request, HttpServletResponse response)\n throws IOException, ServletException\n {\n HashMap<Integer, CartItem> cart = (HashMap<Integer, CartItem>) request.getSession().getAttribute(\"cart\");\n\n // If cart is null or empty, should not have reached this page, return home\n if (cart == null || cart.isEmpty()) {\n response.sendRedirect(request.getContextPath() + \"/home\");\n return;\n }\n else {\n // Move the contents of the cart to a request variable and empty the session cart\n request.setAttribute(\"purchased\", cart);\n request.getSession().setAttribute(\"cart\", new HashMap<Integer, CartItem>());\n }\n\n request.getRequestDispatcher(\"/WEB-INF/confirmation.jsp\").forward(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (BackException ex) {\n Logger.getLogger(GestionProductosServlet.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n try (PrintWriter out = response.getWriter()) {\n /* TODO output your page here. You may use following sample code. */\n HttpSession session=request.getSession();\n String cat=request.getParameter(\"category\");\n String subcat=request.getParameter(\"sub_category\");\n String url=\"Sidenavbar11?category=\"+request.getParameter(\"category\")+\"&sub_category=\"+request.getParameter(\"sub_category\");\n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet AddToCart</title>\"); \n // out.println(\"<script src=\\\"https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js\\\"></script>\");\n //out.println(\"\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n if(session.getAttribute(\"firstname\")==null)\n {\n RequestDispatcher rd=request.getRequestDispatcher(\"login123.jsp\");\n rd.forward(request, response);\n }\n else\n {\n String prid=request.getParameter(\"prid\");\n System.out.println(prid);\n int productid=Integer.parseInt(request.getParameter(\"prid\"));\n int customerid=Integer.parseInt(session.getAttribute(\"custid\").toString());\n int qty=1;\n Session sess=new Configuration().configure(\"hibernate.cfg.xml\").buildSessionFactory().openSession();\n Transaction tx=sess.beginTransaction();\n //check in-stock or not \n \n //check if prduct already in customer's cart\n Query query= sess.createQuery(\"from Cart c where c.customerMaster.customerId = \"+customerid+ \" and c.productMaster.productId=\"+productid);\n if(query.uniqueResult()!=null)\n { \n \n //out.println(\"window.location=\"+url+\";\");\n \n// out.println(\"<script>alert('Product Already added to Cart');<br> <a href='Cart.jsp'>Cart Page</a>'</script>\");\n out.println(\"<script type=\\\"text/javascript\\\">alert(\\\"Product is already in Cart\\\");window.location=\\\"\"+url+\"\\\";</script>\");\n// RequestDispatcher rd1=request.getRequestDispatcher(\"Sidenavbar11?category=\"+cat+\"&sub_category=\"+subcat);\n// rd1.forward(request, response);\n //response.wait();\n // response.sendRedirect(url);\n //out.println(\"</body>\");\n }\n else\n {\n Cart cr=(Cart)new Cart();\n CustomerMaster customerMaster=new CustomerMaster();\n customerMaster.setCustomerId(customerid);\n cr.setCustomerMaster(customerMaster);\n ProductMaster pm=new ProductMaster();\n pm.setProductId(productid);\n cr.setProductMaster(pm);\n cr.setQuantity(qty); \n if(sess.save(cr)!=null)\n {\n sess.flush();\n tx.commit(); \n// out.println(\"<script language='text/javascript'>alert('Product Successfully added to Cart. <br> <a href='Cart.jsp'>Cart Page</a>');</script>\");\n \n out.println(\"<script type=\\\"text/javascript\\\">alert(\\\"Product Successfully added to Cart\\\");window.location=\\\"\"+url+\"\\\";</script>\");\n //out.println(\"window.location=\"+url+\";\");\n \n }\n else\n { \n \n// out.println(\"<script language='text/javascript'>alert('Product adding to Cart Failed. <br> <a href='Cart.jsp'>Cart Page</a>');</script>\");\n out.println(\"<script type=\\\"text/javascript\\\">alert(\\\"Product adding to Cart Failed\\\");window.location=\\\"\"+url+\"\\\";</script>\");\n \n //out.println(\"window.location=\"+url+\";\");\n \n }\n //String url=\"Sidenavbar11?category=\"+cat+\"&sub_category=\"+subcat; \n// RequestDispatcher rd2=request.getRequestDispatcher(\"Sidenavbar11?category=\"+cat+\"&sub_category=\"+subcat);\n// rd2.forward(request, response);\n // response.sendRedirect(\"Sidenavbar11?category=\"+cat+\"&sub_category=\"+subcat);\n // response.sendRedirect(url);\n sess.close();\n }\n }\n out.println(\"</body>\");\n out.println(\"</html>\");\n }\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n HomeControler data = new HomeControler();\n //request.setAttribute(\"produits\", data.getVendeurProduits(new Vendeur(1)));\n request.setAttribute(\"listCategories\", data.getSousCategoriesByCategorie());\n HttpSession session = request.getSession();\n request.setAttribute(\"produit\", data.getUnitProduit((String) session.getAttribute(\"productId\")));\n AsyncContext asynContext = request.startAsync(request, response);\n asynContext.dispatch(\"/productInfo.jsp\");\n }",
"private void checkout(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws IOException {\n\t\tHttpSession hs = request.getSession();\n\t\t\n\t\tString quantity[] = request.getParameterValues(\"qty_name\");\n\t\ths.setAttribute(\"quantity\", quantity);\n\t\tList lqty = new ArrayList();\n\t\tfor(int i=0;i<quantity.length;i++)\n\t\t{\n\t\t\tSystem.out.println(quantity[i]);\n\t\t\t\n\t\t}\n\t\t\n\t\tint loginId=Integer.parseInt(hs.getAttribute(\"userID\").toString());\n\t\tloginVO logVo=new loginVO();\n\t\tlogVo.setLogin_id(loginId);\n\t\t\n\t\tcityDAO cityDao=new cityDAO();\n\t\tList country=cityDao.search_country();\n\t\t\n\t\tUaddToCartDAO cartDao=new UaddToCartDAO();\n\t\tList user_data=cartDao.search_user_id(logVo);\n\t\t\n\t\ths.setAttribute(\"udata\", user_data);\n\t\ths.setAttribute(\"country\", country);\n\t\tresponse.sendRedirect(\"user/checkout.jsp\");\n\t\t\n\t\t\n\t\t\n\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n //3.切換畫面(同步GET請求:redirect to /vgb/member/cart.jsp | 非同步POST請求:forward to /cart_total_quantity.jsp)\n //response.sendRedirect(request.getContextPath() + \"/member/cart.jsp\");\n request.getRequestDispatcher(\"/cart_total_quantity.jsp\").forward(request, response);\n }",
"@Override\n public void onSuccess(Response<BasketModel> response) {\n\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException\n {\n String str = request.getParameter(\"quantity\");\n if (str == null || str.equals(\"\") || Integer.parseInt(str) <= 0) {\n System.out.println(\"Invalid input quantity!\");\n response.sendRedirect(\"/pages/detail.jsp\");\n return;\n }\n Integer quantity = Integer.parseInt(str);\n HttpSession hs = request.getSession();\n BookEntity book = (BookEntity) hs.getAttribute(\"detailinfo\");\n String bookId = book.getBookid();\n UserEntity userEntity = (UserEntity) hs.getAttribute(\"user\");\n int userId = userEntity.getId();\n\n ShoppingCartEntity shoppingCartEntity = new ShoppingCartEntity();\n shoppingCartEntity.setBookid(bookId);\n shoppingCartEntity.setQuantity(quantity);\n shoppingCartEntity.setUserid(userId);\n //get book information from DB to display\n // and get quantity from detail page,\n // update the new quantity for this book in the DB\n // and the shoppingcartlist httpsession\n OrderProcessService orderProcessService = new OrderProcessService();\n boolean flag = orderProcessService.AddItemtoCart(shoppingCartEntity);\n if (flag) { // Add to cart is successful\n List<ShoppingCartEntity> shoppingCartEntityList = orderProcessService.DisplayShoppingCart(userId);\n hs.setAttribute(\"shoppingcartlist\", shoppingCartEntityList);\n response.sendRedirect(\"/DisplayShoppingCartServlet\");\n } else {\n response.sendRedirect(\"/pages/detail.jsp\");\n }\n\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\t\n\t\tHttpSession session = request.getSession();\n\t\tsession.setAttribute(\"shoppingCart\", null);\n\n\t\t//Dispatch results to view JSP\n\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(response.encodeURL(\"FlightSearch.jsp\"));\n\t\tdispatcher.forward(request, response);\n\t}",
"public void startBuying(View view) {\n\n startActivity(new Intent(this, Shopping_List.class));\n\n }",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t\tString bab=request.getParameter(\"unique\");\n\t\tString top=request.getParameter(\"bab\");\n\t\tif(\"36\".equals(top))\n\t\t{ \n\t\tcar.clear();\n \n\t\tRequestDispatcher d=request.getRequestDispatcher(\"/logoutServlet\");\n\t\tSystem.out.println(\"moving to Logout page\");\n\t\td.forward(request, response); \n\t }\n\t\t\n\t\t\n\t\telse if(\"35\".equals(bab))\n\t\t{ HttpSession session=request.getSession();\n\t\t\n\t\t session.setAttribute(\"cartData\",car);\n \n\t\t\tRequestDispatcher d=request.getRequestDispatcher(\"editcart.jsp\");\n\t\t\tSystem.out.println(\"moving to editcart page\");\n\t\t\td.forward(request, response); \n\t\t}\n\t\t\n\t\telse {\n\t\n\t\tString st=(String)request.getParameter(\"url\");\n\t\tString name=(String)request.getParameter(\"name\");\n\t\tString Quantity=(String)request.getParameter(\"quantity\");\n\t\tString price=(String)request.getParameter(\"price\");\n\t\tString e=st+\" \"+Quantity+\" \"+price+\" \"+name;\n\t\tSystem.out.println(\"doGet of cart Servlet \"+e);\n\t\tcar.add(e);\n\t\t\n\t\tresponse.sendRedirect(\"mainpage.jsp\");\n\t\t\n\t\t}\n\t\t\n\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n initiateOrder(request, response);\n }",
"private void orderItem(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}",
"@GetMapping(\"/shoescart\")\n\tString basket(Model model) {\n\t\tList<Product> exceedsShoes = new ArrayList<Product>();\n\t\tmodel.addAttribute(\"exceedsShoes\", exceedsShoes);\n\t\treturn \"shoescart\";\n\t}",
"@RequestMapping(\"/\")\n public String order(){\n return \"redirect:/order/list\";\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\treq.setAttribute(\"category\", new CategoryServiceImpl().getAll());\n\t\tRequestDispatcher dispatcher = req.getRequestDispatcher(\"/view/client/view/index.jsp\");\n\t\t\n\t\treq.setAttribute(\"phoneList\", listProduct(1, 10));\n\t\treq.setAttribute(\"laptopList\", listProduct(2, 10));\n\t\treq.setAttribute(\"tvList\", listProduct(3, 10));\n\t\treq.setAttribute(\"watchList\", listProduct(4, 10));\n\t\t\n\t\tdispatcher.forward(req, resp);\n\t}",
"@GetMapping(\"/\")\n public String index(Model model, HttpServletRequest request) {\n\n List<Product> listtop = productService.getTopProducts();\n List<Product> productListFollow = listtop;//new ArrayList<>();\n if (listtop.size() >= 4)\n productListFollow = listtop.subList(0, 4);\n if (listtop.size() > 7)\n listtop = listtop.subList(1, 9);\n\n model.addAttribute(\"productlistFlow\", productListFollow);\n model.addAttribute(\"productlistTop\", listtop);\n model.addAttribute(\"cats\", categoryService.getAll());\n\n return \"buyer/home\";\n }",
"public static void goToCheckout() {\n click(CHECKOUT_UPPER_MENU);\n }",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n String idbook = request.getParameter(\"book\");\r\n request.setAttribute(\"book\", BookManager.getById(Integer.parseInt(idbook)));\r\n RequestDispatcher rd = request.getRequestDispatcher(\"borrow.jsp\");\r\n rd.forward(request, response);\r\n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n String id = request.getParameter(\"id\");\n if (id != null && id.matches(\"\\\\d+\")) {\n int pid = Integer.parseInt(id);\n try {\n ProductService service = new ProductService();\n Product p = service.get(pid);\n ToppingService tservice = new ToppingService();\n if (p != null) {\n ShoppingCart cart = (ShoppingCart) request.getSession().getAttribute(\"cart\");\n if (cart == null) {\n cart = new ShoppingCart();\n request.getSession().setAttribute(\"cart\", cart);\n }\n p.setIce(request.getParameter(\"Ice\"));\n p.setSugar(request.getParameter(\"Sugar\"));\n p.setTopping(request.getParameter(\"Topping\"));\n double price = tservice.get(request.getParameter(\"Topping\")).getPrice();\n p.setUntiPrice(p.getUntiPrice()+price);\n int amount = Integer.parseInt(request.getParameter(\"amount\"));\n \n cart.add(p ,amount);\n cart.keySet().toString();\n }\n } catch (Exception ex) {\n System.out.println(\"加入購物車失敗!\");\n }\n }\n response.sendRedirect(request.getContextPath() + \"/Order.jsp\");\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (EntityNotFoundException ex) {\n Logger.getLogger(Trash.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public void buySausage(View view) {\n Intent intent = new Intent(this, DisplayBasketActivity.class);\n String itemDescription=view.getContentDescription().toString();\n int itemNumber;\n double itemPrice;\n if (itemDescription.equals(\"Sausage Rolls\")) {itemNumber=20293847; itemPrice=25.63;} else {itemNumber=18475843; itemPrice=10.59;}\n BasketItem myItem= new BasketItem(itemNumber,itemDescription,itemPrice);\n Basket.addItem(myItem);\n startActivity(intent);\n }",
"@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n String input = req.getParameter(\"id\");\n if (input == null) {\n // redirect the user to \"/product-list\" page\n redirect(resp); // adds a response header Location: ./product-list\n return;\n }\n try {\n Integer id = new Integer(input);\n // 2. Get a suitable service/dao object and call appropriate methods\n ProductDao dao = DaoFactory.getProductDao();\n Product p = dao.getById(id);\n // 3. Store the model data in a place which is accessible to JSP\n req.setAttribute(\"prd\", p);\n // 4. Redirect the request to the JSP for presenting the model data\n req.getRequestDispatcher(\"/product-details.jsp\").forward(req, resp);\n } catch (Exception e) {\n redirect(resp); // adds a response header Location: ./product-list\n return;\n }\n\n }",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tString path = request.getServletPath();\n\t\t\n\t\tif(path.equals(\"/home.do\")){\n\t\t\tList<Product> listeDeProduits = productDaoImpl.listeDeproduits();\n\t\t\trequest.setAttribute(\"products\", listeDeProduits);\t\t\t\n\t\t\tthis.getServletContext().getRequestDispatcher(\"/WEB-INF/views/pages/home.jsp\").forward(request, response);;\n\t\t\t\n\t\t\n\t\t}else if(path.equals(\"/about.do\")){\n\t\t\tthis.getServletContext().getRequestDispatcher(\"/WEB-INF/views/pages/aboutUs.jsp\").forward(request, response);;\n\n\t\t\n\t\t}else if(path.equals(\"/category.do\")){\n\t\t\tList<Product> listeDeProduits = productDaoImpl.listeDeproduits();\n\t\t\trequest.setAttribute(\"produits\", listeDeProduits);\n\t\t\tthis.getServletContext().getRequestDispatcher(\"/WEB-INF/views/pages/pets.jsp\").forward(request, response);;\n\n\t\t\n\t\t}else if(path.equals(\"/myaccount.do\")){\n\t\t\tthis.getServletContext().getRequestDispatcher(\"/WEB-INF/views/pages/myAccount.jsp\").forward(request, response);;\n\n\n\t\t}else if(path.equals(\"/register.do\")){\n\t\t\t\tthis.getServletContext().getRequestDispatcher(\"/WEB-INF/views/pages/register.jsp\").forward(request, response);\n\t\t\t\n\t\t}else if(path.equals(\"/details.do\")){\n\t\t\tint id = Integer.parseInt(request.getParameter(\"id\"));\n\t\t\tProduct produit = productDaoImpl.getProductByID(id);\n\t\t\trequest.setAttribute(\"produit\", produit);\n\t\t\trequest.setAttribute(\"id\", id);\n\t\t\tthis.getServletContext().getRequestDispatcher(\"/WEB-INF/views/pages/prices.jsp\").forward(request, response);;\n\n\t\t}else if(path.equals(\"/addProduct.do\")){\n\t\t\tif(request.getParameter(\"id\") != null){\n\t\t\t\tint id = Integer.parseInt(request.getParameter(\"id\"));\n\t\t\t\tProduct produit = productDaoImpl.getProductByID(id);\n\t\t\t\tCard card;\n\t\t\t\tList<Product> produits;\n\t\t\t\tHttpSession session = request.getSession();\n\t\t\t\tif(session.getAttribute(\"card\") == null){\n\t\t\t\t\tcard = new Card();\n\t\t\t\t\tproduits = new ArrayList<Product>();\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tcard = (Card) session.getAttribute(\"card\");\n\t\t\t\t\tproduits = card.getAddedToCardProducts();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\tproduits.add(produit);\n\t\t\t\t\tcard.setAddedToCardProducts(produits);\n\t\t\t\t\tint totalPrice = 0;\n\t\t\t\t\tfor(Product p : produits){\n\t\t\t\t\t\ttotalPrice += p.getPrice();\n\t\t\t\t\t}\n\t\t\t\t\tcard.setTotalPrice(totalPrice);\n\t\t\t\t\t\n\t\t\t\t\tif(produits.isEmpty()){\n\t\t\t\t\t\tcard.setShippingPrice(0);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tcard.setShippingPrice(10);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tsession.setAttribute(\"card\", card);\n\t\t\t}\n\t\t\tresponse.sendRedirect(\"/PetShopProject/card.do\");\n\n\t\t}else if(path.equals(\"/contact.do\")){\n\t\t\tthis.getServletContext().getRequestDispatcher(\"/WEB-INF/views/pages/contact.jsp\").forward(request, response);;\n\n\n\t\t}else if(path.equals(\"/card.do\")){\n\t\t\tthis.getServletContext().getRequestDispatcher(\"/WEB-INF/views/pages/card.jsp\").forward(request, response);\n\t\t\n\t\t}else if(path.equals(\"/specialPets.do\")){\n\t\t\tList<Product> listeDeProduits = productDaoImpl.listeDeproduits();\n\t\t\trequest.setAttribute(\"products\", listeDeProduits);\n\t\t\tthis.getServletContext().getRequestDispatcher(\"/WEB-INF/views/pages/specialPets.jsp\").forward(request,response);\n\n\t\t}else{\n\t\t\tthis.getServletContext().getRequestDispatcher(\"/WEB-INF/views/pages/home.jsp\").forward(request,response);\n\t}}",
"@Override\n protected void execute() throws Exception\n {\n loadPageByClick(viewCartLink);\n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n String service = request.getParameter(\"service\");\n if (service.equals(\"checkOut\")) {\n //Session controller for account\n HttpSession session=request.getSession();\n Account account = (Account)session.getAttribute(\"account\");\n ShoppingCart shopCart = (ShoppingCart) session.getAttribute(\"shopCart\");\n\n if (session.getAttribute(\"i\") == null) {\n session.setAttribute(\"i\", 0);\n }\n int i = (Integer) session.getAttribute(\"i\") + 1;\n session.setAttribute(\"i\", i);\n\n //System.out.println(\"i=\" + i);\n String id = createOrder(\"PROCESSED\", account.getId(), String.valueOf(shopCart.getSubtotal()), shopCart.getAllProductsFromCart());\n if (i % 5 == 0) {\n confirmOrder(id, \"DENIED\");\n } else {\n confirmOrder(id, \"ORDERED\");\n }\n ArrayList<Order> orders = getOrdersByAccountId(account.getId());\n request.setAttribute(\"orders\", orders);\n\n RequestDispatcher rd = request.getRequestDispatcher(\"/order.jsp\");\n rd.forward(request, response);\n } else if (service.equals(\"signin\")) {\n //Session controller for account\n Account account = getAccount((String) request.getParameter(\"name\"),\n (String) request.getParameter(\"password\"));\n if (account == null) {\n request.setAttribute(\"errorMsg\", \"User name does not exist!\");\n RequestDispatcher rd = request.getRequestDispatcher(\"/error.jsp\");\n rd.forward(request, response);\n } else {\n HttpSession session=request.getSession();\n session.setAttribute(\"account\", account);\n RequestDispatcher rd = request.getRequestDispatcher(\"/accountinfo.jsp\");\n rd.forward(request, response);\n }\n } else if (service.equals(\"signup\")) {\n createAccount((String) request.getParameter(\"name\"), (String) request.getParameter(\"password\"),\n (String) request.getParameter(\"lname\"), (String) request.getParameter(\"fname\"),\n (String) request.getParameter(\"payment\"), (String) request.getParameter(\"street\"),\n (String) request.getParameter(\"city\"), (String) request.getParameter(\"province\"),\n (String) request.getParameter(\"zip\"), (String) request.getParameter(\"phone\"));\n\n request.setAttribute(\"errorMsg\", \"Create account successfully!\");\n RequestDispatcher rd = request.getRequestDispatcher(\"/error.jsp\");\n rd.forward(request, response);\n } else if (service.equals(\"getAccountInfo\")) {\n RequestDispatcher rd = request.getRequestDispatcher(\"/accountinfo.jsp\");\n rd.forward(request, response);\n } else if (service.equals(\"getOrders\")) {\n HttpSession session=request.getSession();\n Account account = (Account) session.getAttribute(\"account\");\n ArrayList<Order> orders = getOrdersByAccountId(account.getId());\n request.setAttribute(\"orders\", orders);\n RequestDispatcher rd = request.getRequestDispatcher(\"/order.jsp\");\n rd.forward(request, response);\n } else {\n request.setAttribute(\"errorMsg\", \"Invalid Request\");\n RequestDispatcher rd = request.getRequestDispatcher(\"/error.jsp\");\n rd.forward(request, response);\n }\n } catch (Exception e) {\n e.printStackTrace();\n request.setAttribute(\"errorMsg\", \"Unknown Error: \" + e.getStackTrace());\n RequestDispatcher rd = request.getRequestDispatcher(\"/error.jsp\");\n rd.forward(request, response);\n }\n }",
"private void getItemsInBasket(){\n Disposable disposable = mViewModel.getItemsInBasket()\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .doOnError(throwable -> Log.e(\"BasketFragment\",throwable.getMessage()))\n .subscribe(basketItems -> basketListAdapter.submitList(basketItems));\n mDisposable.add(disposable);\n }",
"private void basketData() {\n basketViewModel.setBasketListObj(selectedShopId);\n basketViewModel.getAllBasketList().observe(this, resourse -> {\n if (resourse != null) {\n basketViewModel.basketCount = resourse.size();\n if (resourse.size() > 0) {\n setBasketMenuItemVisible(true);\n } else {\n setBasketMenuItemVisible(false);\n }\n }\n });\n }",
"@Override\n\tpublic void sendBuyRequest() {\n\t\ttry {\n\t\t\tString result = \"\";\n\t\t\tif (this.servType.equals(SERVICE_TYPE_SOAP)){\n\t\t\t\tresult = server.checkOutCart(clientId);\n\t\t\t} else {\n\t\t\t\tWebResource checkOutService = service.path(URI_CHECKOUT).path(String.valueOf(clientId));\n\t\t\t\tresult = checkOutService.accept(MediaType.TEXT_XML).get(String.class);\n\t\t\t}\n\t\t\n\t\t\tStatusMessageObject status = XMLParser.parseStatusMessage(result);\n\t\t\tif (status.getStatusCode() == 1){\n\t\t\t\tgui.setupCart(null);\t\n\t\t\t}\n\t\t\tsendItemListRequest();\n\t\t\tgui.setStatus(status.getMessage());\n\t\t\tsetOKDialog(\"Check out confirmation!\", status.getMessage());\n\t\t} catch (ParserConfigurationException | SAXException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (ClientHandlerException ex){\n\t\t\tex.printStackTrace();\n\t\t\tsetOKDialog(\"Error\", \"The RESTFul server is not responding!!\");\n\t\t} catch (WebServiceException ex){\n\t\t\tex.printStackTrace();\n\t\t\tsetOKDialog(\"Error\", \"The SOAP-RPC server is not responding!!\");\n\t\t}\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tString string= request.getParameter(\"action\");\n\t\tif(string.equals(\"listingPage\")) {\n\t\t\tlistingPage(request, response);\n\t\t}\n\t\telse if(string.equals(\"viewImage\")) {\n\t\t\t\n\t\t\tviewImage(request, response);\n\t\t}\n\t\telse if(string.equals(\"deleteImage\")) {\n\t\t\tdeleteImage(request, response);\n\t\t}\n\t\telse {\n\t\t\trequest.getRequestDispatcher(\"index.jsp\").forward(request, response);\n\t\t}\n\t}",
"public void run() {\n\t\tSystem.out.println(\"Let's start shopping!\");\n\t\tScanner in = new Scanner(System.in);\n\t\tString input = in.nextLine();\n\t\twhile (!input.equals(\"Q\")) {\n\t\t\tString[] separatedInput = input.split(\" \");\n\t\t\tdoOperation(separatedInput);\n\t\t\tinput = in.nextLine();\n\t\t}\n\n\t\tif (bag.getSize() != 0) {\n\t\t\tcheckoutNotEmptyBag();\n\t\t}\n\n\t\tSystem.out.println(\"Thanks for shopping with us!\");\n\t\tin.close();\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n String id = request.getParameter(\"id\");\n int productId = Integer.parseInt(id);\n DBOperations dbOps = new DBOperations(); //instantiate dboperations object\n Product product = dbOps.getProductDetailsByID(productId);//retrieved product\n ArrayList<Product> products = dbOps.getRelatedProductsList(productId, 4);\n //attaches product info to jsp\n if (product == null) {\n request.setAttribute(\"product\", new Product(-1, \"No Such Product found\", 0, \"\", \"notfound.jpg\"));\n //products = dbOps.getAllProductsList();\n } else {\n request.setAttribute(\"product\", product);\n \n }\n //attach related products list\n request.setAttribute(\"products\", products);\n request.getRequestDispatcher(\"purchase.jsp\").forward(request, response);\n }",
"public void goToCart() throws IOException {\n logic.switchScene(\"fxml/CartFxml.fxml\", cartBtn, fxmlLoader);\n ((CartController) fxmlLoader.getController()).init();\n }",
"public void ViewCart() {\r\n\t\tthis.ViewCart.click();\r\n\t}",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n String payment = request.getParameter(\"payment\");\n String address = request.getParameter(\"address\");\n HttpSession session = request.getSession(true);\n Cart cart = (Cart) session.getAttribute(\"cart\");\n String username = \"\";\n String password = \"\";\n Cookie[] cookies = request.getCookies();\n for (Cookie cooky : cookies) {\n if (cooky.getName().equals(\"customer\")) {\n username = cooky.getValue();\n } else if (cooky.getName().equals(\"password\")) {\n password = cooky.getValue();\n }\n }\n CustomerDAO db1 = new CustomerDAO();\n\n Customer customer = db1.get(username, password);\n int ID = (int) new Date().getTime();\n Bill bill = new Bill();\n bill.setId(ID);\n bill.setAddress(address);\n bill.setPayment(payment);\n bill.setCustomerID(customer.getId());\n LocalDate todayLocalDate = LocalDate.now(ZoneId.of(\"America/Montreal\"));\n bill.setDate(java.sql.Date.valueOf(todayLocalDate));\n bill.setTotal(cart.totalCart());\n BillDAO db = new BillDAO();\n db.insertBill(bill);\n for (Map.Entry<Integer, Item> list : cart.getCartItems().entrySet()) {\n new BillDetailDAO().insertBillDetail(new BillDetail(ID,\n list.getValue().getProduct().getId(),\n list.getValue().getProduct().getPrice(),\n list.getValue().getQuantity()));\n }\n cart = new Cart();\n session.setAttribute(\"cart\", cart);\n response.sendRedirect(\"home\");\n } catch (SQLException ex) {\n response.sendRedirect(\"viewcart\");\n Logger.getLogger(CheckoutController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"protected void processOrder(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException \r\n {\r\n \t//Get the valid user id from the session\r\n// \tint cid = (int) request.getSession(false).getAttribute(\"customerid\");\r\n// \tString customerid = Integer.toString(cid);\r\n// \t\r\n// \t//Get the items in the cart\r\n// \tCart cartItems = (Cart) request.getSession(false).getAttribute(\"items_in_cart\");\r\n// \tdouble cart_total = cartItems.getTotalPrice();\r\n \t\r\n \tresponse.setContentType(\"application/json;charset=UTF-8\");\r\n\t\t \r\n\t\tresponse.setHeader(\"Cache-Control\", \"no-cache\");\r\n\t\t// get the PrintWriter object to write the html page\r\n\t\tPrintWriter out = response.getWriter();\r\n \t\r\n \t\r\n \tString customerid = request.getParameter(\"customerid\");\r\n \tString cart_total = request.getParameter(\"cart_total\");\r\n \tSystem.out.println(\"ID : \" + customerid + \" cartTOTAl : \" + cart_total);\r\n \t\r\n \t\r\n \tSslConfig sslconf= new SslConfig();\r\n \tClient client = sslconf.ssl(); \r\n \t\r\n\t\tString URL= \"https://localhost:8443/OnlineBookStore/rest/OrderProcess\";\r\n\t\tWebTarget target = client.target(URL).path(\"/order\").queryParam(\"customerid\", customerid).queryParam(\"cart_total\", cart_total);\r\n\t\tInvocation.Builder ib = target.request(MediaType.APPLICATION_JSON);\r\n\t\tResponse res = ib.get();\r\n\t\t\r\n\t\tPurchaseOrder PO = res.readEntity(PurchaseOrder.class); \r\n\t\t\r\n\t\tAddress addr = PO.getAddr();\r\n\t\tGson gsonBuilder = new GsonBuilder().create();\r\n\t\tString address = gsonBuilder.toJson(addr);\r\n\t\t\r\n\t\t//HttpSession session = request.getSession(false);\r\n\t\t//session.setAttribute(\"Address\", addr);\r\n\t\t//session.setAttribute(\"POID\", PO.getId());\r\n\t\t\r\n\t\t//response.sendRedirect(\"order_details.jsp\");\r\n\t\t\r\n\t\tJSONObject orderObj = new JSONObject();\r\n\t\ttry {\r\n\t\t\torderObj.put(\"Address\", address);\r\n\t\t\torderObj.put(\"Poid\", PO.getId());\r\n\t\t\t\r\n\t\t} catch (JSONException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\" Order ::: \" + orderObj.toString());\r\n\t\tout.print(orderObj.toString());\r\n\t\t\r\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n // This servlet shouldn't be reached via GET\n response.sendRedirect(\"index.jsp\");\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(generatepayslip.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"@Override\n\tpublic Basket addBasket(Basket basket) {\n\t\treturn br.save(basket);\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t\tint buy_id = Integer.parseInt(request.getParameter(\"Buy_ID\"));\n\t\t\t\t\n\t\tDouble price= Double.parseDouble(request.getParameter(\"price\"));\n\t\tString color= request.getParameter(\"colour\");\n\t\tint customerID= Integer.parseInt(request.getParameter(\"customer_id\"));\n\t\tString itemname= request.getParameter(\"itemName\");\n\t\t\n\t\t\t\n\t\tBuying m = new Buying();\n\t\t\n\t\tm.setBuyid(buy_id);\n\t\tm.setPrice(price);\n\t\tm.setColor(color);\n\t\tm.setCusID(customerID);\n\t\tm.setItemName(itemname);\n\t\t\t\t\n\t\tbuying_services buying = new buying_services();\n\t\tbuying.updatebuyingItem(m);\n\t\tRequestDispatcher dispatcher = getServletContext().getRequestDispatcher(\"/buyRETRIVE.jsp\") ;\n\t\tdispatcher.forward(request, response);\n\t\tdoGet(request, response);\n\t\t\n\t}",
"private void pageProduct(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException, SQLException {\n\t\tloadProduct(request, response);\n\t\t\n\t}",
"public ModelAndView handleAddToCart(Request req, Response res) throws SQLException {\n Product prod = productDaoJdbc.find(Integer.parseInt(req.params(\":prodID\")));\n Integer qty = Integer.parseInt(req.queryParams(\"prodQty\"));\n ShoppingCart cart = new ShoppingCart();\n if (req.session().attribute(\"cart\") != null) {\n cart = req.session().attribute(\"cart\");\n }\n cart.addToCart(prod, qty);\n req.session().attribute(\"cart\", cart);\n res.redirect(UrlController.getLastURL(req));\n return null;\n }",
"private static void viewItems() {\r\n\t\tdisplayShops();\r\n\t\tint shopNo = getValidUserInput(scanner, shops.length);\r\n\t\tdisplayItems(shopNo);\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Please enter the ID of the element to add to cart. \\\"0\\\" for exit\");\r\n\t\tSystem.out.println();\r\n\t\tint productNo = getValidUserInput(scanner, shops[shopNo].getAllSales().length + 1);\r\n\t\tif (productNo > 0) {\r\n\t\t\tProduct productToBeAdd = shops[shopNo].getAllSales()[productNo - 1];\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.print(\" Please enter the number of the item you would like to buy: \");\r\n\t\t\tint numberOfTheItems = getUserIntInput();\r\n\t\t\tcart.addProduct(productToBeAdd, numberOfTheItems);\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Purchase done, going back to the menu.\");\r\n\t\tSystem.out.println();\r\n\t}",
"private String doGoBack( HttpServletRequest request )\r\n {\r\n String strJspBack = request.getParameter( StockConstants.MARK_JSP_BACK );\r\n\r\n return StringUtils.isNotBlank( strJspBack ) ? ( AppPathService.getBaseUrl( request ) + strJspBack )\r\n : ( AppPathService.getBaseUrl( request ) + JSP_MANAGE_CATEGORYS );\r\n }",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\trequest.setCharacterEncoding(\"UTF-8\");\n\t\tresponse.setContentType(\"text/html;charset=utf-8\");\n\t\tbooks b= null;\n\t\tString bid = request.getParameter(\"id\");\n\t\tString des = request.getParameter(\"des\");\n\t\tString count = request.getParameter(\"count\");\n\t\tString url = request.getParameter(\"url\");\n\t\t\n\t\tHttpSession session = request.getSession();\n\t\t\n\t\tString isLogin = (String)session.getAttribute(\"isLogin\");\n\t\tbooksShare_user user = (booksShare_user)session.getAttribute(\"name\");\n\t\t\n\t\t\tif(user!=null && isLogin.equals(\"1\")) {\n\t\t\t\t\n\t\t\t\tString uid = (String)user.getUser_id();\n\t\t\t\t\n\t\t\t\t//通过用户ID和购物车中的商品ID 查看有没有这条记录\n\t\t\t\t\n\t\t\t\tbooks_cart srcbooks = books_cartDao.getCartShop(uid, bid);\n\t\t\t\t\n\t\t\t\tif(srcbooks != null) {\n\t\t\t\t\tint srccount = srcbooks.getCart_quantity();\n\t\t\t\t\t\n\t\t\t\t\tint newcount = srccount + Integer.parseInt(count);\n\t\t\t\t\t\n\t\t\t\t\tif(newcount >=5) {\n\t\t\t\t\t\tnewcount =5;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbooks_cartDao.updatenum(srcbooks.getCart_id(), newcount);\n\t\t\t\t}else {\n\t\t\t\tif(bid !=null) {\n\t\t\t\t\tb = booksDao.selectById(Integer.parseInt(bid));\n\t\t\t\t}\n\t\t\t\tbooks_cart cart =new books_cart(\n\t\t\t\t\t\t0,\n\t\t\t\t\t\tb.getBooks_filename(),\n\t\t\t\t\t\tb.getBooks_name(),\n\t\t\t\t\t\tb.getBooks_description(),\n\t\t\t\t\t\tb.getBooks_user(),\n\t\t\t\t\t\tInteger.parseInt(count),\n\t\t\t\t\t\tb.getBooks_stock(),\n\t\t\t\t\t\tb.getBooks_id(),\n\t\t\t\t\t\tuid,\n\t\t\t\t\t\t1\n\t\t\t\t\t\t);\n\t\t\t\tbooks_cartDao.insert(cart);\n\t\t\t\t}\n\t\t\t }else {\n\t\t\t\tPrintWriter out = response.getWriter();\n\t\t\t\t\n\t\t\t\tout.write(\"<script>\");\n\t\t\t\tout.write(\"alert('请登录后,在享用');\");\n\t\t\t\tout.write(\"location.href='login.jsp';\");\n\t\t\t\tout.write(\"</script>\");\n\t\t\t\tout.close();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif(url.equals(\"z\")) {\n\t\t\t\tresponse.sendRedirect(\"showcart\");\n\t\t\t}else{\n\t\t\t\tresponse.sendRedirect(\"selectbooksview?id=\"+bid);\n\t\t\t}\n\t}",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n try (PrintWriter out = response.getWriter()) {\n /* TODO output your page here. You may use following sample code. */\n String idbook = request.getParameter(\"idbook\");\n String quantity = request.getParameter(\"quantity\");\n String title = request.getParameter(\"titlebook\");\n HttpSession session = request.getSession(true);\n Cart cart = (Cart) session.getAttribute(GetId.CART);\n \n if (cart == null) {\n //create cart\n //tao session luu trang thai gio hang\n int idCart = GetId.getValueId();\n cart = new Cart();\n cart.setIdcart(idCart);\n //add cart\n cartFacade.create(cart);\n }\n int idBookOrder = GetId.getValueId();\n Book book = (Book) bookFacade.find(Integer.parseInt(idbook));\n BookOrder bookOrder = new BookOrder();\n bookOrder.setIdbookOrder(idBookOrder);\n bookOrder.setQuantity(Integer.parseInt(quantity));\n bookOrder.setIdbook(book);\n bookOrder.setIdcart(cart);\n //them book order vao csdl\n bookOrderFacade.create(bookOrder);\n if(cart.getBookOrderList() == null){\n cart.setBookOrderList(new ArrayList<BookOrder>());\n }\n \n cart.getBookOrderList().add(bookOrder);\n// //end set session\n session.setAttribute(\"CART\", cart);\n \n RequestDispatcher dis = getServletContext().getRequestDispatcher(\"/DetailBook?id=\"+idbook+\"&quantity=\"+quantity);\n dis.forward(request, response);\n }\n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n long millis = System.currentTimeMillis();\n java.sql.Date date = new java.sql.Date(millis);\n String url = SEARCH_SERVLET;\n try {\n Tbl_OrderDAO orderDao = new Tbl_OrderDAO();\n HttpSession session = request.getSession(false);\n if (session != null) {\n String userId = (String) session.getAttribute(\"USERID\");\n String code = (String) session.getAttribute(\"VALIDCODE\");\n if (code == null) {\n code = \"\";\n }\n float total = Float.parseFloat(request.getParameter(\"txtTotal\"));\n\n int row = orderDao.getRowTable();\n int orderId = ++row;\n\n CartObj cart = (CartObj) session.getAttribute(\"CART\");\n\n if (cart != null) {\n\n Map<String, Book> items = cart.getItems();\n if (items != null) {\n String outOfStock = \"\";\n for (Map.Entry item : items.entrySet()) {\n\n Tbl_BookDAO bookDao = new Tbl_BookDAO();\n int quantity = bookDao.getQuantity((String) item.getKey());\n int amount = ((Book) (item.getValue())).getAmount();\n if (amount > quantity) {\n outOfStock = outOfStock + ((Book) (item.getValue())).getTitle() + \" available: \" + quantity + \"\\\\n\";\n\n }\n\n }\n if (outOfStock.isEmpty()) {\n orderDao.insertOrder(orderId, userId, date.toString(), total, code);\n for (Map.Entry item : items.entrySet()) {\n Tbl_BookDAO bookDao = new Tbl_BookDAO();\n Tbl_OrderDetailDAO detailDao = new Tbl_OrderDetailDAO();\n int quantity = bookDao.getQuantity((String) item.getKey());\n int amount = ((Book) (item.getValue())).getAmount();\n detailDao.insertOrderDetail(orderId, (String) item.getKey(), ((Book) (item.getValue())).getAmount(), ((Book) (item.getValue())).getTotal());\n bookDao.updateQuantity((String) item.getKey(), quantity - amount);\n }\n Tbl_DiscountDAO discountDao = new Tbl_DiscountDAO();\n discountDao.updateCode(code, userId);\n session.removeAttribute(\"VALIDCODE\");\n session.removeAttribute(\"PERCENT\");\n session.removeAttribute(\"CART\");\n } else {\n request.setAttribute(\"OUTOFSTOCK\", \"Out of stock: \\\\n\" + outOfStock);\n url = VIEW_CART;\n }\n\n }\n\n }\n }\n\n } catch (NamingException ex) {\n log(\"ConfirmServlet _ NamingException:\" + ex.getMessage());\n } catch (SQLException ex) {\n log(\"ConfirmServlet _ SQLException:\" + ex.getMessage());\n } finally {\n RequestDispatcher rd = request.getRequestDispatcher(url);\n rd.forward(request, response);\n out.close();\n }\n }",
"@Given(\"I am on the product page\")\n\t\tpublic void i_am_on_the_product_page() {\n\t\t\tdriver.get(ExpectedUrl);\n\t\t}",
"@Override\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString page = (String)request.getParameter(\"page\");\n\t\tSystem.out.println(\"page = \" + page);\n\t\ttry{\n\t\t\tif(conn == null)\n\t\t\t\tconn = new DBConnection();\n\t\t\t\n\t\t\tint prodId = Integer.parseInt((String)request.getParameter(\"id\"));\n\n\t\t\tSystem.out.println(\"id = , \" + prodId);\n\t\t\tProduct prod = conn.getProductById(prodId);\n\n\t\t\tif(prod != null)\n\t\t\t{\n\t\t\t\tresponse.setContentType(\"image/gif\");\n\t\t\t\tOutputStream os = response.getOutputStream();\n\t\t\t\tos.write(prod.getImage());\n\t\t\t\tos.flush();\n\t\t\t\tos.close();\n\t\t\t}\n\t\t\telse if(page != null)\n\t\t\t\tresponse.sendRedirect(page + \"?status=\" + StatusHandler.ERR_NOT_FOUND);\n\t\t} catch(SQLException | NumberFormatException ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t\tif(page != null)\n\t\t\t\tresponse.sendRedirect(page + \"?status=\" + StatusHandler.ERR_DB_CONN);\n\t\t}\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n CartsDAO cartsDAO = new CartsDAO(); //create a new object of CartsDAO\n double total = 0;\n String message = \"\";\n \n //get user from session\n User user = (User)request.getSession().getAttribute(\"LoginUser\");\n \n //get product of user\n ArrayList<CartProduct> productCart = cartsDAO.getProductFromCart(user.getuId());\n \n \n //check quantity\n for (CartProduct cart : productCart) {\n total = cart.getpPrice() * cart.getCartQuantity();\n \n //number of order greater than available\n if(cart.getCartQuantity() > cart.getpQuantity()) {\n message += \"* you order\" + cart.getCartQuantity() + \" of product\" + cart.getpId()\n + \" which we have only \" + cart.getpQuantity() + \" pice <br/>\";\n }\n }\n \n //check money\n if(total > user.getuCash()) {\n message += \" * Your cash less than total require please charge your cash<br/>\";\n request.getSession().setAttribute(\"message\", message);\n response.sendRedirect(\"Failed.jsp\");\n return;\n }\n \n //an error occure\n if(!message.trim().equals(\"\")) {\n request.getSession().setAttribute(\"message\", message);\n response.sendRedirect(\"Failed.jsp\");\n return;\n }\n \n //-------------- Payment proccess ------------------\n \n //reduce balance in user\n user.setuCash(user.getuCash() - total);\n \n //call transaction\n if(new PaysDAO().startPayment(user, productCart)) {\n //send mail of success\n message = \"Thanks for buying from KVT Shop ^_^ <br/>\"\n + \"your product will delivered in two days ..\";\n \n new MailModel(user.getuEmail(), \"Successfull Payment\", message).sendMail();\n HttpSession session = request.getSession();\n session.setAttribute(\"message\", message);\n response.sendRedirect(\"Success.jsp\");\n } else { //if have error in process then show message and move to Failed.jsp\n request.getSession().setAttribute(\"message\", \"Error in proccess please try agine later :( \"); \n response.sendRedirect(\"Failed.jsp\");\n }\n }",
"public static void viewCart() {\n click(CART_BUTTON);\n click(VIEW_CART_BUTTON);\n }",
"public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t\tUser user=(User) request.getSession().getAttribute(\"user\");;\n\t\tString amount=(Integer)request.getAttribute(\"amount\")+\"\";\n\t\t//System.out.println(amount);\n\t\tString cartID=(String) request.getAttribute(\"cartID\");\n\t\tHistoryService hs=new HistoryService();\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tString date=df.format(new Date());\n\t\ttry {\n\t\t\ths.addHistory(user.getUsername(), date, \"Ïû·Ñ\", amount);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//System.out.println(cartID);\n\t\trequest.setAttribute(\"cartID\", cartID);\n\t\trequest.setAttribute(\"money\", amount);\n\t\trequest.getRequestDispatcher(\"./ReduceMoneyCtrl\").forward(request, response);\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n HttpSession session = request.getSession();\n\n //Put user in session\n SessionUser sessionUser = new SessionUser();\n session.setAttribute(\"user\",sessionUser.getSessionUser(request));\n\n //Get request action\n String action = request.getParameter(\"action\");\n\n if (action != null) {\n switch (action) {\n case \"insert\":\n insertCar(request, response);\n break;\n case \"delete\":\n deleteCar(request, response);\n break;\n default:\n listCar(request, response);\n break;\n }\n }else{\n //Back to index page page\n RequestDispatcher dispatcher = request.getRequestDispatcher(\"index.jsp\");\n dispatcher.forward(request, response);\n }\n }",
"public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t\tString address = request.getParameter(\"address\");\n\t\taddress = new String(address.getBytes(StringUtil.getEncoding(address)), \"UTF-8\");\n\t\tint goods_id = Integer.parseInt(request.getParameter(\"goods_id\"));\n\t\tString username = (String)request.getSession().getAttribute(\"name\");\n\t\tDate dt = new Date(System.currentTimeMillis());\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMddHHmmssSSS\");\n String datetime = sdf.format(dt);\n int r = (int)(Math.random()*89)+10;\n String code = r+datetime;\n GoodsService s2 = new GoodsService();\n Goods goods = s2.getGoods(goods_id);\n s2.buy(username, goods.getValue());\n Order order = new Order();\n order.setAddress(address);\n order.setCode(code);\n order.setUsername(username);\n order.setGoods_id(goods_id);\n OrderService service = new OrderService();\n if(service.addOrder(order)){\n \trequest.getRequestDispatcher(\"/success.jsp\").forward(request, response);\n }else{\n \trequest.getRequestDispatcher(\"/error.jsp\").forward(request, response);\n }\n\t\t\n\t}",
"@Override\n protected void doGet\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"protected void goTo(String url) {\n \t\tcontext.goTo(url);\n \t}",
"@RequestMapping(\"/pizza/index.html\")\r\n public ModelAndView index() throws Exception {\n List<Product> products = catalogueManager.getProducts();\r\n ModelAndView result = new ModelAndView(\"/pizza/index\");\r\n result.addObject(\"products\", products);\r\n return result;\r\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\ttry {\n\t\tHttpSession session = req.getSession(false);\n\t\tif(session == null)\n\t\t{\n\t\t\tlogger.info(\"Session expired when user clicked on products link from admin page\");\n\t\t\tRequestDispatcher rd = req.getRequestDispatcher(\"adminlogout/sessionexp_logout.jsp\");\n\t\t\trd.include(req, resp);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tresp.setHeader(\"resultfor\", \"configure\");\n\t\t\tRequestDispatcher rd = req.getRequestDispatcher(\"jsps/products.jsp\");\n\t\t\trd.include(req, resp);\n\t\t}\n\t\t\n\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tlogger.error(\"Exception in ProductViewhandler\",e);\n\t\t}\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tint price = Integer.parseInt(request.getParameter(\"price\"));\n\t\tint status = Integer.parseInt(request.getParameter(\"status\"));\n\t\tint id = Integer.parseInt(request.getParameter(\"id\"));\n\t\tOrder o = new Order();\n\t\to.setPrice(price);\n\t\to.setStatus(status);\n\t\tboolean check = OrderDAO.updateOder(id, o);\n\t\tif (check) {\n\t\t\trequest.getRequestDispatcher(\"adminorder.jsp\").forward(request, response);\n\t\t}\n\t}",
"@Override\n public void doGet(HttpServletRequest req, HttpServletResponse resp)\n throws ServletException, IOException {\n Map<String, String> messages = new HashMap<String, String>();\n req.setAttribute(\"messages\", messages);\n\n List<Products> products = new ArrayList<>();\n \n // Retrieve and validate name.\n // product name is retrieved from the URL query string.\n String productName = req.getParameter(\"productname\");\n if (productName == null || productName.trim().isEmpty()) {\n messages.put(\"success\", \"Please enter a valid name.\");\n } else {\n // Retrieve Products, and store as a message.\n try {\n products = productsDao.getProductByProductName(productName);\n } catch (SQLException e) {\n e.printStackTrace();\n throw new IOException(e);\n }\n messages.put(\"success\", \"Displaying results for \" + productName);\n // Save the previous search term, so it can be used as the default\n // in the input box when rendering FindUsers.jsp.\n messages.put(\"previousProductName\", productName);\n }\n req.setAttribute(\"products\", products);\n \n req.getRequestDispatcher(\"/FindProducts.jsp\").forward(req, resp);\n }",
"@FXML\r\n\tpublic void goToCheckout() {\r\n\t\tViewNavigator.loadScene(\"Checkout\", ViewNavigator.CHECKOUT_SCENE);\r\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException \n {\n String act = request.getParameter(\"act\");\n \n if (act!=null && act.equalsIgnoreCase(\"doAddTransaction\")){// show page with form to obtain client name\n doPost(request, response);\n }else{// put client name into a bean\n RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(\"/addtransaction.jsp\");\n dispatcher.forward(request, response);\n }\n }",
"@Override\n public void onClick(View v){\n Intent intent = new Intent(MainMenu.this, basketballMenu.class);\n startActivity(intent);\n }",
"public void perform(HttpServletRequest req, HttpServletResponse resp) {\n HttpSession session = req.getSession(true);\r\n\r\n //information needed to proccess the updatecart action\r\n ShoppingCart carrito = (ShoppingCart) session.getAttribute(\"carrito\");\r\n Product product = productModel.retrieve(Integer.parseInt(req.getParameter(\"productid\")));\r\n int newQuantity = Integer.parseInt(req.getParameter(\"itemQuantity\"));\r\n\r\n //if the quantity is set to zero we need to delete the product from the cart\r\n if (newQuantity == 0) {\r\n carrito.deleteItem(product);\r\n } else {//if not, we just update the quantity\r\n carrito.update(product, Integer.toString(newQuantity));\r\n }\r\n\r\n \r\n //in case we have deleted the last item of the cart, we need to remove the cart from the session because there isn't any product in it.\r\n if (carrito.isEmpty() == true) {\r\n session.removeAttribute(\"carrito\");\r\n \r\n //if the cart is empty we will forward the request to category page\r\n req.setAttribute(\"productsById\", productModel.retrieveByCategory(product.getCategoryid()));\r\n req.setAttribute(\"categorySelected\", categoryModel.retrieve(product.getCategoryid()));\r\n req.setAttribute(\"categories\", categoryModel.retrieveAll());\r\n\r\n ViewManager.nextView(req, resp, \"/view/category.jsp\");\r\n } else {\r\n //otherwise we will show the cart updated\r\n req.setAttribute(\"carrito\", session.getAttribute(\"carrito\"));\r\n ViewManager.nextView(req, resp, \"/view/viewcart.jsp\");\r\n }\r\n }"
] | [
"0.6599431",
"0.5862584",
"0.562068",
"0.55725986",
"0.5416117",
"0.5401285",
"0.5344774",
"0.5331036",
"0.52810633",
"0.5279256",
"0.5220957",
"0.52203304",
"0.5203084",
"0.520185",
"0.5198865",
"0.51872206",
"0.51617295",
"0.5149296",
"0.5133208",
"0.5131469",
"0.5107609",
"0.5086553",
"0.50821877",
"0.50562054",
"0.5055654",
"0.50435704",
"0.5026301",
"0.5008097",
"0.4991965",
"0.4974746",
"0.49553683",
"0.4954613",
"0.49359894",
"0.49338886",
"0.49289316",
"0.49243864",
"0.49216866",
"0.4919986",
"0.49157247",
"0.49111003",
"0.4905983",
"0.48972243",
"0.4893488",
"0.4892515",
"0.4882904",
"0.4880284",
"0.48791844",
"0.4877845",
"0.48724735",
"0.48673412",
"0.48397675",
"0.48383984",
"0.482811",
"0.48271912",
"0.48201588",
"0.48060918",
"0.47862634",
"0.4780945",
"0.47804326",
"0.4776647",
"0.47659817",
"0.47581866",
"0.47557798",
"0.47536698",
"0.47520584",
"0.47487175",
"0.47323778",
"0.47286665",
"0.4712629",
"0.47075456",
"0.470688",
"0.46982858",
"0.469422",
"0.46939376",
"0.4692591",
"0.46888217",
"0.46782854",
"0.46666318",
"0.46649846",
"0.46643576",
"0.4661201",
"0.46574533",
"0.4645554",
"0.46451294",
"0.4644224",
"0.46438447",
"0.46421516",
"0.46272242",
"0.4626038",
"0.46193528",
"0.4616571",
"0.46063647",
"0.45972776",
"0.45938045",
"0.4589538",
"0.45893782",
"0.4588358",
"0.458485",
"0.45810503",
"0.45789468"
] | 0.64770997 | 1 |
Handle the AJAX request to "/basket" URL to add one item of the particular product to the basket. | @GetMapping(value = "/basket", produces = {MediaType.APPLICATION_JSON_VALUE})
@ResponseBody
public ResponseEntity<Integer> addToBasketAjax(@RequestParam(name = "item") int id,
HttpSession session) {
Integer shop_basket = basketService.prepareProductsForBasket(id, session);
return new ResponseEntity<>(shop_basket, HttpStatus.OK);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@RequestMapping(\n method = RequestMethod.POST,\n consumes = MediaType.APPLICATION_JSON_VALUE,\n path = \"{productId}\"\n )\n public void addProductToShoppingCart(@PathVariable(\"productId\") UUID productId){\n shoppingCartService.insertProduct(productId);\n }",
"private void addProductToCart(HttpServletRequest request, HttpServletResponse response) throws IOException {\n String productID = request.getParameter(\"ProductID\");\n\n HttpSession session = request.getSession();\n\n List<Product> cartProducts = (List<Product>) session.getAttribute(\"cartProducts\");\n\n if (productID != null) {\n\n int id = Integer.parseInt(productID);\n\n if (cartProducts != null) {\n\n if (getCartSize(cartProducts) < Constants.CART_LIMIT) {\n\n if (!productIsAlreadyInCart(id, cartProducts))\n cartProducts.add(productDAO.getProduct(id));\n else\n increaseProductCountInCart(id, cartProducts);\n\n logger.info(\"Product (ID=\" + productID + \") has been added to the cart\");\n response.sendRedirect(Constants.PATH_CATALOG);\n } else\n response.getWriter().write(notifyCartIsFull());\n\n } else {\n cartProducts = new ArrayList<>();\n cartProducts.add(productDAO.getProduct(Integer.parseInt(productID)));\n\n logger.info(\"Product (ID=\" + productID + \") has been added to the cart\");\n session.setAttribute(\"cartProducts\", cartProducts);\n response.sendRedirect(Constants.PATH_CATALOG);\n }\n }\n }",
"@Then(\"^click on add to basket$\")\r\n\tpublic void click_on_add_to_basket() throws Throwable {\n\t\tverbose(\"***********************************************************\");\r\n\t\tAssert.assertTrue(navigate_rsc.addbasket());\r\n\t\tverbose(\"***********************************************************\");\r\n\t \r\n\t}",
"@GetMapping(value = \"/editOrderPlus\", produces = {MediaType.APPLICATION_JSON_VALUE})\n @ResponseBody\n public ResponseEntity<List> editOrderFromBasketPlusAjax(@RequestParam(name = \"editOrderPlus\") int id,\n HttpSession session) {\n List<Number> result = basketService.editOrderPlus(id, session);\n logger.info(\"Item of product added to basket\");\n return new ResponseEntity<>(result, HttpStatus.OK);\n }",
"public void addProduct(Product product);",
"public void addToBasket(Product product){\n\n Purchaseitem purchaseitem = new Purchaseitem();\n purchaseitem.setProduct(product.getId());\n purchaseitem.setProductByProduct(product);\n boolean toAdd = false;\n if(basket.isEmpty()){\n purchaseitem.setQuantity(1);\n basket.add(purchaseitem);\n }else {\n for(int i = 0; i < basket.size(); i++){\n if(basket.get(i).getProduct() == product.getId()){\n basket.get(i).setQuantity(basket.get(i).getQuantity() + 1);\n return;\n } else {\n purchaseitem.setQuantity(1);\n toAdd = true;\n }\n }\n }\n if(toAdd){\n basket.add(purchaseitem);\n }\n }",
"@RequestMapping(method=RequestMethod.POST, value = \"/item/{id}\", produces = \"application/json\")\n public void addItem(@RequestBody Item itemToAdd)\n {\n this.itemRepository.addItem(itemToAdd);\n }",
"@Test \n\tpublic void testAddItemToBasket() throws Exception {\n\t\tBBBRequest request = BBBRequestFactory.getInstance().createAddBasketItemRequest(BOOK_BASKET_ITEM_ISBN);\n\t\t\n\t\tString expectedUrl = AccountHelper.constructUrl(BBBRequestFactory.getInstance().getHostBasket(), PATH_MY_BASKETS_ITEMS);\n\t\tassertEquals(expectedUrl, request.getUrl());\n\t\t\n\t\tBBBResponse response = BBBRequestManager.getInstance().executeRequestSynchronously(request);\n\t\t\n\t\tif(response.getResponseCode() != HttpURLConnection.HTTP_OK) {\n\t\t\tfail(\"Error: \"+response.toString());\n\t\t}\n\t}",
"public static String handleAddToCart(Request req, Response res) {\n\n int quantity = Integer.parseInt(req.queryParams(\"quantity\"));\n int productId = Integer.parseInt(req.queryParams(\"product_id\"));\n int userId = req.session().attribute(\"user_id\");\n\n Order order = DaoFactory.getOrderDao().findOpenByUserId(userId);\n if (order == null) {\n order = DaoFactory.getOrderDao().createNewOrder(userId);\n }\n\n Product product = DaoFactory.getProductDao().find(productId);\n if (product == null || quantity < 1 || quantity > 99) {\n return \"invalid_params\";\n }\n\n LineItem lineItemToAdd = DaoFactory.getOrderDao().findLineItemInCart(productId, order);\n if (lineItemToAdd == null) {\n\n lineItemToAdd = new LineItem(\n order.getId(),\n productId,\n product.getName(),\n product.getImageFileName(),\n quantity,\n product.getDefaultPrice(),\n product.getDefaultCurrency()\n );\n\n DaoFactory.getOrderDao().addLineItemToCart(lineItemToAdd, order);\n return \"new_item\";\n }\n\n DaoFactory.getOrderDao().increaseLineItemQuantity(order, lineItemToAdd, quantity);\n return \"quantity_change\";\n }",
"void addProduct(Product product);",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n String id = request.getParameter(\"id\");\n if (id != null && id.matches(\"\\\\d+\")) {\n int pid = Integer.parseInt(id);\n try {\n ProductService service = new ProductService();\n Product p = service.get(pid);\n ToppingService tservice = new ToppingService();\n if (p != null) {\n ShoppingCart cart = (ShoppingCart) request.getSession().getAttribute(\"cart\");\n if (cart == null) {\n cart = new ShoppingCart();\n request.getSession().setAttribute(\"cart\", cart);\n }\n p.setIce(request.getParameter(\"Ice\"));\n p.setSugar(request.getParameter(\"Sugar\"));\n p.setTopping(request.getParameter(\"Topping\"));\n double price = tservice.get(request.getParameter(\"Topping\")).getPrice();\n p.setUntiPrice(p.getUntiPrice()+price);\n int amount = Integer.parseInt(request.getParameter(\"amount\"));\n \n cart.add(p ,amount);\n cart.keySet().toString();\n }\n } catch (Exception ex) {\n System.out.println(\"加入購物車失敗!\");\n }\n }\n response.sendRedirect(request.getContextPath() + \"/Order.jsp\");\n }",
"public void handleAddProducts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/product.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n // Get controller and configure controller settings\n ProductController productController = fxmlLoader.getController();\n productController.setModifyProducts(false);\n productController.setInventory(inventory);\n productController.setHomeController(this);\n productController.updateParts();\n\n // Spin up product form\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.DECORATED);\n stage.setTitle(\"Add Products\");\n stage.setScene(new Scene(root));\n stage.show();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void addProduct(Product item)\n {\n stock.add(item);\n }",
"@PostMapping(path = \"cart\")\n ShoppingCart addProductToCart(@RequestHeader(HttpHeaders.AUTHORIZATION) String token, @RequestBody ShoppingCartEntry entry);",
"@PutMapping(value = \"/{productId}/add/{quantity}\")\n @ApiOperation(value = \"Add Product To Basket\",response = CustomResponseEntity.class)\n public ResponseEntity<Object> addProductToBasket(@NotNull @PathVariable(value = \"productId\") @ApiParam(value = \"ID of Product\") String productId,\n @PathVariable(value = \"quantity\") @ApiParam(value = \"Quantity\") Long quantity, @RequestHeader(value = \"userId\") @ApiParam(value = \"ID of User\") Long userId) throws UserException, ProductException, SQLException {\n userService.findUserById(userId);\n CustomResponseEntity customResponseEntity = basketService.addProductToBasket(productId, userId, quantity);\n return new ResponseEntity(customResponseEntity, HttpStatus.CREATED);\n\n }",
"private void addProduct()\n {\n System.out.println(\"|➕| Add new Product:\\n\");\n System.out.println(\"|➕| Enter ID\\n\");\n int id = Integer.parseInt(reader.getInput());\n System.out.println(\"|➕| Enter Name\\n\");\n String name = reader.getInput();\n manager.addProduct(id, name);\n }",
"@PostMapping(\"/add\")\n public String addToCart(@RequestHeader(\"Authorization\") String authorizationToken,@RequestParam Integer userId,@RequestParam Integer productId,@RequestParam Integer quantity){\n \tProductDTO pDTO = productMS.getProductById(authorizationToken,productId);\n \t CartDTO cartDTO = new CartDTO();\n \tBeanUtils.copyProperties(pDTO,cartDTO);\n \tcartDTO.setUserId(userId);\n \tcartDTO.setQuantity(quantity);\n return cartService.addToCart(cartDTO);\n }",
"public void addProductToBuyBasket(int productId, int count) {\n if (buyBasket.containsKey(productId))\n buyBasket.replace(productId, buyBasket.get(productId + count));\n else\n buyBasket.put(productId, count);\n }",
"public ModelAndView handleAddToCart(Request req, Response res) throws SQLException {\n Product prod = productDaoJdbc.find(Integer.parseInt(req.params(\":prodID\")));\n Integer qty = Integer.parseInt(req.queryParams(\"prodQty\"));\n ShoppingCart cart = new ShoppingCart();\n if (req.session().attribute(\"cart\") != null) {\n cart = req.session().attribute(\"cart\");\n }\n cart.addToCart(prod, qty);\n req.session().attribute(\"cart\", cart);\n res.redirect(UrlController.getLastURL(req));\n return null;\n }",
"@RequestMapping(value = {\"/add_product\"}, method = RequestMethod.POST)\n public String createProduct(Model model, HttpServletRequest request) {\n boolean isSuccess = addProductByRest(request);\n if (isSuccess) {\n ProductController controller = new ProductController();\n List<Product> productList = controller.getProductList(request, \"products\");\n model.addAttribute(\"products\", productList);\n return \"product_list\";\n } else {\n return \"product_detail_new\";\n }\n }",
"public void add(int index){\n int i = 0;\n boolean isFound = false;\n for (Product product:inventory.getProducts().keySet())\n {\n i++;\n if (i == index && inventory.getProducts().get(product) > 0)\n {\n if (myBasket.containsKey(product))\n {\n System.out.println(\"One more of this product added.\");\n myBasket.replace(product , myBasket.get(product) + 1);\n }\n else {\n System.out.println(\"Product added to your basket.\");\n myBasket.put(product , 1);\n }\n totalCost = totalCost + product.getPrice();\n isFound = true;\n inventory.updateStock(product , '-');\n }\n }\n if (!isFound)\n System.out.println(\"Sorry. Invalid index or not enough product in stock!\");\n }",
"@Override\n\tpublic Basket addBasket(Basket basket) {\n\t\treturn br.save(basket);\n\t}",
"@POST\n @Path(\"{id}\")\n @Produces(MediaType.APPLICATION_XML)\n @Consumes(MediaType.APPLICATION_FORM_URLENCODED)\n public ShoppingList addItemToShoppingList(@PathParam(\"id\") Long id, @QueryParam(\"idItem\") Long idItem, @QueryParam(\"nameItem\") String nameItem, @QueryParam(\"quantityItem\") int quantityItem) throws WebApplicationException {\n boolean b = sls.addItemShoppingList(id, idItem, nameItem, quantityItem);\n if (b == true) {\n return sls.getShoppingList(id);\n } else {\n throw new WebApplicationException(Response.Status.BAD_REQUEST);\n\n }\n }",
"@RequestMapping(value = \"/savedItems/add/{userId}\", method = RequestMethod.POST)\n //@PostMapping(path = \"/cartItems/add/{userId}\", consumes = \"application/json\")\n public void addSavedItem(@RequestBody Cart cartItem,@PathVariable(\"userId\") int userId) {\n \n cartService.addSavedItem(cartItem,userId);\n\n \n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(AddProduct.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(AddProduct.class.getName()).log(Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n Logger.getLogger(AddProduct.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n Logger.getLogger(AddProduct.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public void onAddButtonClick(View view) {\n\n if (view.getId() == R.id.Badd) {\n\n EditText a = (EditText) findViewById(R.id.TFenterName);\n\n String b = a.getText().toString();\n product.setProductName(b);\n\n a = (EditText) findViewById(R.id.TFenterPrice);\n b = a.getText().toString();\n product.setPrice(b);\n\n a = (EditText) findViewById(R.id.TFenterQuantity);\n b = a.getText().toString();\n product.setQuantity(b);\n\n a = (EditText) findViewById(R.id.TFLocation);\n b = a.getText().toString();\n product.setLocation(b);\n\n a = (EditText) findViewById(R.id.TFExpiration);\n b = a.getText().toString();\n product.setExpiration(b);\n\n helper.insertProduct(product);\n\n Intent i = new Intent(AddProduct.this, WasAdded.class);\n i.putExtra(\"product\", product.getProductName());\n startActivity(i);\n\n }\n }",
"@PostMapping(\"/add\")\r\n\tpublic ProductDetails addProduct(@Valid @RequestBody AddProduct request) {\r\n\r\n\t\tProduct product = productUtil.getProduct();\r\n\t\tproduct.setProduct_Id(productUtil.generateId());\r\n\t\tproduct.setProduct_Name(request.getProduct_Name());\r\n\t\tproduct.setProduct_Price(request.getProduct_Price());\r\n\t\tproduct.setProduct_Quantity(request.getProduct_Quantity());\r\n\t\tproduct.setProduct_Availability(request.isProduct_Availability());\r\n\t\tproduct = productService.addProduct(product);\r\n\t\treturn productUtil.toProductDetails(product);\r\n\r\n\t}",
"public void add() {\n\t\tcart.add(item.createCopy());\n\t}",
"Product postProduct(Product product);",
"@POST(\"V1/carts/mine/items\")\n Observable<CartProductItem> addItemToCart(@Body CartItemRequest CartItemRequest);",
"@RequestMapping(value = \"/cartItems/add/{userId}\", method = RequestMethod.POST)\n //@PostMapping(path = \"/cartItems/add/{userId}\", consumes = \"application/json\")\n public void addCartItem(@RequestBody Cart cartItem,@PathVariable(\"userId\") int userId) {\n \n cartService.addCartItem(cartItem,userId);\n\n \n }",
"@Override\n public void onAddToCart(Product product) {\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n String Attribute = request.getParameter(\"Attribute\");\n String Itemname = request.getParameter(\"Itemname\");\n String Description = request.getParameter(\"Description\");\n Float Price = Float.valueOf(request.getParameter(\"Price\")); \n\n // create the Item object\n Item item = new Item();\n item.setAttribute(Attribute);\n item.setItemname(Itemname);\n item.setDescription(Description);\n item.setPrice(Price);\n //staff.setPassWord(passWord);\n\n String url = \"\";\n String message = \"\";\n \n if(ItemsDB.itemExists(Itemname)){\n url=\"/adminaddproduct.jsp\";\n message=\"This item has already existed\";\n }\n else{\n ItemsDB.insert(item);\n url=\"/adminviewproducts.jsp\";\n message=\"Has added a new item sucessfully!\"; \n }\n \n HttpSession session = request.getSession();\n session.setAttribute(\"Item\", item);\n request.setAttribute(\"message\", message);\n \n //processRequest(request, response);\n RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(url); \n dispatcher.forward(request, response); \n }",
"public synchronized void pdp_AddToBag() throws Exception {\n\n\t\t// Code to remove focus from zoomed image on page load\n\t\tif (!Utils.isDeviceMobile()) {\n\t\t\tActions actions = new Actions(driver);\n\t\t\tactions.moveToElement(productPrice()).build().perform();\n\t\t}\n\n\t\tutils.scrollToViewElement(driver, pdp_btn_AddToBag());\n\n\t\t// Handling Pop-Up that sometimes over shadows the ADD TO BAG button in mobile\n\t\tif (Utils.isDeviceMobile())\n\t\t\thandleBounceXOnPDP();\n\n\t\tpdp_btn_AddToBag().click();\n\t\t// Thread.sleep(3000);\n\n\t\tif (!utils.brand.equals(\"LGFP\"))\n\t\t\tAssert.assertTrue(utils.isElementPresent(driver, \"PDP_continueShopping\"),\n\t\t\t\t\t\"Item Added To Bag modal not displayed in mobile\");\n\t}",
"@Override\n\t@RequestMapping(value=ZuelControllerValue.Manage+\"addItem\")\n\tpublic ZuelResult addItem(TbItem item) {\n\t\treturn service.addItem(item);\n\t}",
"public void onClick(View v)\n {\n // Add to cart model\n for (int i = 0; i < productQuantity; i++)\n {\n dbManager.addToCart(activeProduct.getID());\n }\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException\n {\n String str = request.getParameter(\"quantity\");\n if (str == null || str.equals(\"\") || Integer.parseInt(str) <= 0) {\n System.out.println(\"Invalid input quantity!\");\n response.sendRedirect(\"/pages/detail.jsp\");\n return;\n }\n Integer quantity = Integer.parseInt(str);\n HttpSession hs = request.getSession();\n BookEntity book = (BookEntity) hs.getAttribute(\"detailinfo\");\n String bookId = book.getBookid();\n UserEntity userEntity = (UserEntity) hs.getAttribute(\"user\");\n int userId = userEntity.getId();\n\n ShoppingCartEntity shoppingCartEntity = new ShoppingCartEntity();\n shoppingCartEntity.setBookid(bookId);\n shoppingCartEntity.setQuantity(quantity);\n shoppingCartEntity.setUserid(userId);\n //get book information from DB to display\n // and get quantity from detail page,\n // update the new quantity for this book in the DB\n // and the shoppingcartlist httpsession\n OrderProcessService orderProcessService = new OrderProcessService();\n boolean flag = orderProcessService.AddItemtoCart(shoppingCartEntity);\n if (flag) { // Add to cart is successful\n List<ShoppingCartEntity> shoppingCartEntityList = orderProcessService.DisplayShoppingCart(userId);\n hs.setAttribute(\"shoppingcartlist\", shoppingCartEntityList);\n response.sendRedirect(\"/DisplayShoppingCartServlet\");\n } else {\n response.sendRedirect(\"/pages/detail.jsp\");\n }\n\n }",
"Cart addToCart(String productCode, Long quantity, String userId);",
"@RequestMapping(\"/addOrderItem\")\n public OrderItem addOrderItem(@RequestParam(\"order_id\")int order_id,\n @RequestParam(\"cart_id\")int cart_id){\n System.out.println(\"addOrderItem\");\n System.out.println(\"cart_id = \" + cart_id);\n return orderService.addOrderItem(order_id, cart_id);\n }",
"@RequestMapping(method = RequestMethod.POST)\n\tpublic ResponseEntity<?> addCatalogItem(@RequestBody Catalog info) {\n\t\tBraveSpanContext openTracingContext = getTracingContext();\n\t\tio.opentracing.Span span = tracer.buildSpan(\"AddCatalogService\").asChildOf(openTracingContext)\n\t\t\t\t.withTag(\"Description\", \"Create Catalog\")\n\t\t\t\t.withTag(\"http_request_url\", request.getRequestURI()).start();\n\t\tbrave.Span braveSpan = ((BraveSpan) span).unwrap();\n\t\tbraveSpan.kind(Kind.SERVER);\n\t\tif (info == null) {\n\t\t\treturn new ResponseEntity<String>(HttpStatus.BAD_REQUEST);\n\t\t}\n\t\tString errorMsg = info.validate();\n\t\tif (errorMsg != null) {\n\t\t\treturn new ResponseEntity<String>(HttpStatus.BAD_REQUEST);\n\t\t}\n\t\tSummary.Timer requestTimer = Prometheus.requestLatency.startTimer();\n\t\ttry {\n\t\t\tPrometheus.createCounters.inc();\n\t\t\tPrometheus.inProgressRequests.inc();\n\t\t\tio.opentracing.Span mongospan = tracer.buildSpan(\"GetCatalogsFromMongoService\").asChildOf(span)\n\t\t\t\t\t.withTag(\"Description\", \"MongoDB Service Call\").start();\n\t\t\tbrave.Span braveMongoSpan = ((BraveSpan) mongospan).unwrap();\n\t\t\tCatalog catalogItem = service.getCatalogItem(info.getSkuNumber(), mongospan);\n\t\t\tbraveMongoSpan.finish();\n\t\t\tif (catalogItem != null) {\n\t\t\t\treturn new ResponseEntity<String>(HttpStatus.CONFLICT);\n\t\t\t} else {\n\t\t\t\tio.opentracing.Span addCatalogSpan = tracer.buildSpan(\"AddCatalogToDB\").asChildOf(span)\n\t\t\t\t\t\t.withTag(\"Description\", \"MongoDB Service Call\").start();\n\t\t\t\tbrave.Span braveaddCatalogSpan = ((BraveSpan) addCatalogSpan).unwrap();\n\t\t\t\tCatalog result = service.createCatalog(info, addCatalogSpan);\n\t\t\t\tbraveaddCatalogSpan.finish();\n\n\t\t\t\tif (result != null) {\n\t\t\t\t\treturn new ResponseEntity<String>(HttpStatus.CREATED);\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} catch (Exception exc) {\n\t\t\tPrometheus.requestFailures.inc();\n\t\t\tlog.error(\"Error in addCatalogItem\", exc);\n\t\t\tspan.setTag(\"error\", exc.getMessage());\n\t\t\treturn new ResponseEntity<String>(HttpStatus.INTERNAL_SERVER_ERROR);\n\t\t} finally {\n\t\t\trequestTimer.observeDuration();\n\t\t\tPrometheus.inProgressRequests.dec();\n\t\t\tspan.finish();\n\t\t}\n\t\treturn null;\n\t}",
"public void addItemToSale(String productId, int quantity) {\r\n if (productId.isEmpty()) {\r\n System.out.println(\"Class CashRegister, method addItemToSale\");\r\n System.out.println(\"product id is missing - enter valid product id\");\r\n System.exit(1);\r\n }\r\n if (quantity <= 0) {\r\n System.out.println(\"Class CashRegister, method addItemToSale\");\r\n System.out.println(\"quantity is less than or equal to 0 - enter valid quantity\");\r\n System.exit(1);\r\n }\r\n FakeDatabase db = new FakeDatabase();\r\n Product product = db.findProduct(productId);\r\n\r\n if (product != null) { //product found in database\r\n receipt.addLineItem(product, quantity);\r\n } else {\r\n System.out.println(\"Class CashRegister, method addItemToSale\");\r\n System.out.println(\"product id not found in database - enter valid product id\");\r\n System.exit(1);\r\n }\r\n }",
"public void addItems(Product product, JSpinner spinner, JLayeredPane pane, JTable table) throws IllegalArgumentException {\n int qty = (int) spinner.getValue(); //get the added quantity from table\n\n if (qty > 0) {\n if (qty <= product.getQuantity()) {\n for (int i = 0; i < qty; i++) {\n this.setRequestValue(getRequestValue() + product.getPrice()); //update request value\n requestItems.add(product);\n product.setQuantity(product.getQuantity() - 1); //update product in stock\n }\n } else {\n \tDefaultTableModel model = (DefaultTableModel) table.getModel();\n int rowCount = model.getRowCount();\n for (int i = rowCount - 1; i >= 0; i--) {\n \tmodel.removeRow(i);\n }\n table.setModel(model);\n \tJOptionPane.showMessageDialog(pane, \"There is not enough in stock.\");\n throw new IllegalArgumentException(\"There is not enough in stock\");\n }\n } else {\n throw new IllegalArgumentException(\"The amount has to be positive\");\n }\n }",
"public void addProductToBuyBasket(Product product, int count) {\n if (buyBasket.containsKey(product.getId()))\n buyBasket.replace(product.getId(), buyBasket.get(product.getId() + count));\n else\n buyBasket.put(product.getId(), count);\n }",
"public void addButtonClicked(){\n Products products = new Products(buckysInput.getText().toString());\n dbHandler.addProduct(products);\n printDatabase();\n }",
"public void addBasketItem(BasketItem newItem) {\n \n // If the sku already exists in the basket then update the quantity\n for(BasketItem item : basketItems) {\n if(item.getVariant().getSku().equals(newItem.getVariant().getSku())) {\n item.setQuantity(newItem.getQuantity() + item.getQuantity());\n return;\n }\n }\n \n // If the sku wasn't found above then add it to the basket\n basketItems.add(newItem);\n }",
"Product addNewProductInStore(Product newProduct);",
"ResponseEntity<Cart> addCartItem(CartFormData formData);",
"public void addProduct(Product item){\n inventory.add(item);\n }",
"public void add(Product product) {\r\n sessionFactory.getCurrentSession()\r\n .save(product);\r\n }",
"public void addButtonClicked(View view) {\n\n Products product = new Products(johnsInput.getText().toString());\n\n dbHandler.addProduct(product);\n printDatabase();\n }",
"@Override\n public void addProductToFavorites(View view, Intent intent) {\n try {\n if(iProduct != null && view != null && intent != null){\n Context context = view.getContext();\n String jsonProduct = intent.getStringExtra(CommonPresenter.DETAIL_PRODUCT);\n Product product = CommonPresenter.getProductFromJSON(jsonProduct);\n CRUDFavorite crudFavorite = new CRUDFavorite(context);\n boolean isProductExists = crudFavorite.isProductExists(product.getProductId());\n if(isProductExists){\n crudFavorite.deleteByProductId(product.getProductId());\n CommonPresenter.showSnackBarMessage(view, context.getString(R.string.lb_product_delete_to_favorite));\n iProduct.changeImageRightResource(R.drawable.ic_add_to_favorite_32dp);\n }\n else{\n crudFavorite.add(new Favorite(0, product));\n CommonPresenter.showSnackBarMessage(view, context.getString(R.string.lb_product_add_to_favorite));\n iProduct.changeImageRightResource(R.drawable.ic_favorite_32dp);\n }\n }\n }\n catch (Exception ex){\n Log.e(\"TAG_ERROR\", \"ProductPresenter-->addProductToFavorites() : \"+ex.getMessage());\n }\n }",
"@RequestMapping(value = \"/addProduct\", method = RequestMethod.POST)\r\npublic ModelAndView addProduct(ModelAndView model,\r\n\t\t@RequestParam(\"productid\") String productid,\r\n\t\t@RequestParam(\"sellerid\") String sellerid,\r\n\t\t@RequestParam(\"categoryid\") String categoryid,\r\n\t\t@RequestParam(\"productname\") String productname,\r\n\t\t@RequestParam(\"shortdescription\") String shortdescription,\r\n\t\t@RequestParam(\"detailedescription\") String detailedescription,\r\n\t\t@RequestParam(\"startingprice\") String startingprice,\r\n\t\t@RequestParam(\"bidstartdate\") String bidstartdate,\r\n\t\t@RequestParam(\"bidenddate\") String bidenddate) {\r\n\t Product product = new Product();\r\n\t product.setProductId(productid);\r\n\t product.setSellerId(sellerid);\r\n\t product.setCategoryId(categoryid);\r\n\t product.setProductName(productname);\r\n\t product.setShortDescription(shortdescription);\r\n\t product.setDetailedDescription(detailedescription);\r\n\t product.setStartingPrice(startingprice);\r\n\t product.setBidStartDate(bidstartdate);\r\n\t product.setBidEndDate(bidenddate);\r\n\t userService.addProduct(product);\r\n\t model.setViewName(\"productSuccess\");\r\n return model;\r\n\t \r\n}",
"public void addProduct(String product, int quantity) {\n if (shoppingBasket.containsKey(product) != true) {\n shoppingBasket.put(product, quantity);\n } else {\n shoppingBasket.put(product, shoppingBasket.get(product) + quantity);\n }\n }",
"public void adding() {\n\t\t By cr=By.xpath(\"//a[@href=\\\"/cart?add&itemId=EST-2\\\"]\"); \r\n\t\tWebElement we_cr=wt.ElementToBeClickable(cr, 20);\r\n\t\twe_cr.click();\r\n\t}",
"@PostMapping(\"/add-item\")\n ItemEntity addItem(@RequestParam String itemName, Float itemPrice, Long userId, Long storeId) {\n return ownerService.addItem(userId, storeId, itemName, itemPrice);\n }",
"public static int addToBasket(Basket basket, String item, int quantity) {\n StockItem stockItem = stockList.get(item);\n if(stockItem == null) {\n System.out.println(\"We don't sell \" + item);\n return 0;\n }\n if(stockList.reserveStock(item, quantity) != 0) {\n basket.addToBasket(stockItem, quantity);\n return quantity;\n }\n return 0;\n }",
"public void addProduct() {\n Product result;\n String prodName = getToken(\"Enter product name: \");\n double price = getDouble(\"Enter price per unit: $\");\n result = warehouse.addProduct(prodName, price);\n if (result != null) {\n System.out.println(result);\n }\n else {\n System.out.println(\"Product could not be added.\");\n }\n }",
"@RequestMapping(value = \"/add\")\n\tpublic String addItem(Model model) {\n\t\tmodel.addAttribute(\"item\", new Item());\n\t\tmodel.addAttribute(\"shops\", srepository.findAll());\n\t\treturn \"additem\";\n\t}",
"@PostMapping(\"/addproduct\")\n\t\tpublic ResponseEntity<List<Product>> insertProduct(@RequestBody Product product) {\n\t\t\tlogger.info(\"product inserted\");\n\t\t\tList<Product> sq = productService.saveProduct(product);\n\n\t\t\treturn new ResponseEntity<List<Product>>(sq, HttpStatus.OK);\n\t\t}",
"@GetMapping(\"/addToInventory\")\n public String addToInventory(HttpServletRequest request, Model model){\n Map<String, String[]> productRequestParam = request.getParameterMap();\n String productId[] = productRequestParam.get(\"productId\");\n String productName[] = productRequestParam.get(\"productName\");\n String productManufacturer[] = productRequestParam.get(\"productManufacturer\");\n String productSize[] = productRequestParam.get(\"productSize\");\n String productFor[] = productRequestParam.get(\"productFor\");\n Product productDetails = new Product();\n productDetails.setProductId(productId[0]);\n productDetails.setProductName(productName[0]);\n productDetails.setProductManufacturer(productManufacturer[0]);\n productDetails.setProductSize(productSize[0]);\n productDetails.setProductFor(productFor[0]);\n String addedProductName = sportyShoesService.addToInventory(productDetails);\n\n model.addAttribute(\"appName\", appName);\n model.addAttribute(\"addedProductName\", addedProductName);\n return \"productAdded\";\n }",
"@RequestMapping(path = \"/carta/add\", method = RequestMethod.POST)\n public ModelAndView addCarta(@ModelAttribute(\"carta\") CartaViewModel model) {\n\n Restaurant restaurant = restaurantServicio.get(model.getRestaurantId());\n TipoProducto tipoProducto = tipoProductoServicio.get(model.getTipoProductoId());\n\n cartaServicio.create(model.toCarta(new Carta(), tipoProducto, restaurant));\n\n return new ModelAndView(\"redirect:/carta/\" + model.getRestaurantId());\n }",
"@Override\r\n\tpublic ResponseData addProduct(ProductModel productModel) {\n\t\tProduct product = (Product) productConverter.convert(productModel);\r\n\t\tlong i = productRepositoryImpl.addProduct(product).getId();\r\n\t\tif (i > 0) {\r\n\t\t\treturn new ResponseData(product.getId(), true, \"Save Data Success full\");\r\n\t\t} else {\r\n\t\t\treturn new ResponseData(0, false, \"Failed\");\r\n\t\t}\r\n\r\n\t}",
"public String addProduct() throws Exception {\r\n\t\t\r\n\t\t//content spot entity\r\n\t\tSpotBean spotBean = new SpotBean();\r\n\t\tspotBean.setId(this.getContentSpot().getId());\r\n\t\tspotBean = contentSpotService.load(spotBean);\r\n\t\t\r\n\t\t//main content spot\r\n\t\tContentSpot content = spotBean.getContentSpot();\r\n\t\tthis.products = content.getProducts();\r\n\r\n\t\t//configure products list attribute\r\n\t\tcontent.setProducts(extractProducts());\r\n\t\t\r\n\t\treturn update(spotBean);\r\n\t}",
"@RequestMapping(\"/addnewproduct\")//, method=RequestMethod.POST)\n\tpublic String addProduct()\n\t{\n\t\treturn \"addproduct\";\n\t}",
"@ResponseStatus(HttpStatus.CREATED)\r\n @PostMapping(\"/products\")\r\n public Product addProduct(@RequestBody ProductDTO productDto) {\r\n return productService.addNewProduct(productDto);\r\n }",
"@PostMapping(value = \"/addcart\")\n public ResponseEntity<String> addCart(@RequestBody @Valid OrderProduct orderProduct, final HttpSession session) throws Exception {\n\n //Get the initial cart\n log.info(session.getId() + \" : Reviewing the initial cart\");\n Map<String, CartProduct> initialCart = (Map<String, CartProduct>) session.getAttribute(CART_SESSION_CONSTANT);\n\n Integer quantity = orderProduct.getQuantity();\n\n //Check if cart is empty and instantiate it, if product is already there in the cart, update them\n if (CollectionUtils.isEmpty(initialCart)) {\n log.info(\"No Items added yet\");\n initialCart = new HashMap<>();\n } else {\n if (initialCart.containsKey(orderProduct.getProductName()))\n quantity = quantity + initialCart.get(orderProduct.getProductName()).getQuantity();\n }\n\n //check if the store has the available quantity and update the cart\n log.info(session.getId() + \" : Processing the addition of product to the cart\");\n Product product = prodService.getProd(orderProduct.getProductName());\n if (product.getQuantity() >= quantity) {\n CartProduct cartProduct = ControllerUtils.buildCartProduct(product, quantity);\n initialCart.put(orderProduct.getProductName(), cartProduct);\n session.setAttribute(CART_SESSION_CONSTANT, initialCart);\n return ResponseEntity.status(HttpStatus.OK).body(\"Product \" + orderProduct.getProductName() + \" added to the cart\");\n } else {\n log.error(session.getId() + \" : Error updating cart for products unavailable\");\n throw new AvailabilityException(orderProduct.getProductName());\n }\n\n }",
"public void addProduct() throws Throwable\r\n\t{\r\n\t\tgoToProductsSection();\r\n\t\tverifyProduct();\r\n\t\tselPproductBtn.click();\r\n\t\twdlib.verify(wdlib.getPageTitle(),flib.getPropKeyValue(PROP_PATH, \"ProductsPage\") , \"Products Page \");\r\n\t\tProductsPage pdpage=new ProductsPage();\r\n\t\tpdpage.selectProducts();\r\n\t}",
"@PostMapping(\"/addToCart\")\n @PermissionStoreItemRead\n public String addToCart(@RequestParam long id,\n @RequestParam(required = false) int numberOfItems,\n HttpSession session,\n HttpServletRequest request,\n Model model,\n RedirectAttributes redirectAttributes,\n HttpServletRequest httpServletRequest) {\n String previousPage = PageUtilities.getPreviousPageByRequest(httpServletRequest).orElseThrow(() -> new RuntimeException(\"Previous page not found\"));\n ShoppingCart cart = (ShoppingCart) session.getAttribute(\"cart\");\n var item = itemService.findById(id).orElseThrow(() -> new RuntimeException(\"Item not found\"));\n if ( item.getStock() < numberOfItems ||\n item.getStock() < cart.getItemQuantity(item) + numberOfItems) {\n redirectAttributes.addFlashAttribute(\"error\", \"Not enough items\");\n return previousPage;\n //return \"redirect:/item/\" + id + \"/show\";\n }\n cart.addItem(item, numberOfItems);\n redirectAttributes.addFlashAttribute(\"success\", \"Item added to cart successfully\");\n log.debug(\"Total size of cart : \" + cart.numberOfItems());\n //return \"redirect:/item/\" + id + \"/show\";\n return previousPage;\n\n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n\n DBConnection dbconn = new DBConnection();\n DAO dao = new DAO(dbconn);\n Product last = dao.getLast();\n\n int pid = last.getPid() + 1;\n String name = request.getParameter(\"name\");\n String price = request.getParameter(\"price\");\n String amount = request.getParameter(\"amount\");\n String des = request.getParameter(\"description\");\n String img = request.getParameter(\"img\");\n String cid = request.getParameter(\"category\");\n\n if (dao.addProduct(new Product(\n pid, name, Double.parseDouble(price),\n Integer.parseInt(amount), img,\n Integer.parseInt(cid), des))) {\n// request.setAttribute(\"mess1\", \"Add product \" + name + \" Successfull!\");\n request.getRequestDispatcher(\"manager\").forward(request, response);\n } else {\n// request.setAttribute(\"mess2\", \"Add product \" + name + \" FAIL !\");\n request.getRequestDispatcher(\"manager\").forward(request, response);\n }\n }",
"public boolean addProductToBasket(Product product, Order order) {\n \tint quantity = orderService.getQuanity(product);\n \treturn orderService.addProductToBasket(order, product, quantity);\n }",
"public void enterItem(String productId) {\r\n\t\tproduct = ProductCatalog.getProductCatalogMap().get(productId);\r\n\t\tBigDecimal subTotal = fetchSaleLineItem();\r\n\t\ttaxModel.setTaxTypeModelList(TaxCalculationHelper.fetchAllTaxTypes());\r\n\t\ttaxModel.setProductPriceIncludingTax(TaxCalculationHelper.calculatePriceWithTax(subTotal));\r\n\t\tpublishPropertyEventBeforeSale();\r\n\t}",
"@RequestMapping(value = \"/add\", method = RequestMethod.POST)\n\t@ResponseBody\n\tString addItems(HttpServletRequest request, HttpServletResponse response) {\n\n\t\t// Get the Logged in User\n\t\tString name = getLoggedUser();\n\n\t\tString guide = request.getParameter(\"guide\");\n\t\tString description = request.getParameter(\"description\");\n\t\tString status = request.getParameter(\"status\");\n\t\tInjectWorkService iw = new InjectWorkService(env);\n\n\t\t// Create a Work Item object to pass to the injestNewSubmission method\n\t\tWorkItem myWork = new WorkItem();\n\t\tmyWork.setGuide(guide);\n\t\tmyWork.setDescription(description);\n\t\tmyWork.setStatus(status);\n\t\tmyWork.setName(name);\n\n\t\tiw.injestNewSubmission(myWork);\n\t\treturn \"Item added\";\n\t}",
"@Override\n\tpublic void addItems(Session session){\n\t\ttry{\n\t\t\tSystem.out.print(\"+++++++++++Add items here+++++++++++\\n\");\n\t\t\t//scanner class allows the admin to enter his/her input\n\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\t//read input item id, name, price and quantity\n\t\t\tSystem.out.print(\"Enter Item Id: \");\n\t\t\tint itemId = scanner.nextInt();\n\n\t\t\tSystem.out.print(\"Enter Item Name without space: \");\n\t\t\tString itemName = scanner.next();\n\n\t\t\tSystem.out.print(\"Enter Item Type without space: \");\n\t\t\tString itemType = scanner.next();\n\n\t\t\tSystem.out.print(\"Enter Item Price: \");\n\t\t\tString itemPrice = scanner.next();\n\n\t\t\tSystem.out.print(\"Enter Item Quantity: \");\n\t\t\tint itemQuantity = scanner.nextInt();\n\t\t\t//pass these input items to client controller\n\t\t\tsamp=mvc.addItems(session,itemId,itemName,itemType,itemPrice,itemQuantity);\n\t\t\tSystem.out.println(samp);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App- Add Items Exception: \" +e.getMessage());\n\t\t}\n\t}",
"public synchronized void addItem(Product product){\n \n ShoppingCartItem item = carrito.get(product.getId());\n int new_quantity;\n \n if(item==null){\n carrito.set(product.getId(), new ShoppingCartItem(product));\n new_quantity = 1;\n }else{\n new_quantity = item.getQuantity()+1;\n }\n //even if it's added or not, we call update method to update the quantity of the product\n this.update(product,Integer.toString(new_quantity));\n }",
"public void btnAddClicked(View view){\n List list = new List(input.getText().toString());\n dbHandler.addProduct(list);\n printDatabase();\n }",
"public abstract void addItem(AbstractItemAPI item);",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(req.getInputStream()));\n\n String json = \"\";\n if(br != null){\n json = br.readLine();\n System.out.println(json);\n }\n\n // 2. initiate jackson mapper\n ObjectMapper mapper = new ObjectMapper();\n\n // 3. Convert received JSON to Article\n Product product = mapper.readValue(json, Product.class);\n\n // 4. Set response type to JSON\n resp.setContentType(\"application/json\");\n\n ProductService productService = new ProductService();\n productService.addProduct(product);\n\n String productsJsonString = this.gson.toJson(productService.getAllProducts());\n PrintWriter out = resp.getWriter();\n resp.setContentType(\"application/json\");\n resp.setCharacterEncoding(\"UTF-8\");\n out.print(productsJsonString);\n out.flush();\n\n }",
"@FXML\r\n\tpublic void addToShoppingCart() {\r\n\t\t\r\n\t\tWatch w = listView.getSelectionModel().getSelectedItem();\r\n\t\tboolean add = controller.addWatchToShoppingCart(w);\r\n\t\tcontroller.deleteWishlistItem(w.getId());\r\n\t\tlistView.setItems(controller.getWishlistWatchesForCurrentUser());\r\n\t\tlistView.getSelectionModel().select(-1);\r\n\t\tcheckSelected();\r\n\t}",
"public static void addToCart() {\n List<WebElement> buttonsAddItem = Browser.driver.findElements(ADD_TO_CART_BUTTON);\n buttonsAddItem.get(0).click();\n Browser.driver.navigate().refresh();\n }",
"public void add(WebSite website, int nProductID, int nQuantity) {\r\n\t\tfor (int i = 0; i < orderedItems.size(); i++) {\r\n\t\t\tOrderedItem oi = (OrderedItem) orderedItems.elementAt(i);\r\n\t\t\tif (oi.nProductID == nProductID) {\r\n\t\t\t\toi.nQuantity += nQuantity;\r\n\t\t\t\tcalculate(website);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tOrderedItem oi = new OrderedItem();\r\n\t\toi.nProductID = nProductID;\r\n\t\toi.nQuantity = nQuantity;\r\n\t\tProduct product = website.products.get(nProductID);\r\n\t\toi.dblPrice = product.dblPrice;\r\n\t\toi.dblCost = product.dblCost;\r\n\t\torderedItems.addElement(oi);\r\n\r\n\t\tcalculateCart(website);\r\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tHashSet<CartItem> shoppingCart = (HashSet<CartItem>)request.getSession().getAttribute(\"shoppingCart\");\n\t\tint userID = (Integer)request.getSession().getAttribute(\"userID\");\n\t\t\n//\t\tfor (CartItem item : shoppingCart) {\n//\t\t\tSystem.out.println(\"item id in cart right before calling insert method: \" + item.getItemID());\n//\t\t}\n\t\t\n\t\t// user's personal previous shopping cart (if any, stored from previous uses of the website) is deleted\n\t\t// then the user's personal current shopping cart is inserted into ShoppingList table via shoppingCartDAO\n\t\tShoppingCartDAO shoppingCartDAO = new ShoppingCartDAO();\n\t\tshoppingCartDAO.deleteCart(userID);\n\t\tshoppingCartDAO.insertCart(userID, shoppingCart);\n\t\t\n\t\t// after cart is inserted into database, user is redirected to finalize.jsp to configure their location, ranking, and travel preferences\n\t\tresponse.sendRedirect(\"finalize.jsp\");\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(AddProduct.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(AddProduct.class.getName()).log(Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n Logger.getLogger(AddProduct.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n Logger.getLogger(AddProduct.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"Product addOneProduct(String name, String imgNameBarcode, String imgName, String barcode) throws Exception;",
"@GetMapping(\"/add/{id}\")\r\n\tpublic String add(@PathVariable(\"id\") int theId, HttpSession theSession, Model theModel,\r\n\t\t\t@RequestParam(value = \"cartPage\", required = false) String cartPage) {\r\n\r\n\t\tProduct theProduct = prodRepo.getOne(theId);\r\n\r\n\t\t/*\r\n\t\t * Check the session whether it exists or not if not setted, then add the\r\n\t\t * product and set the session.\r\n\t\t */\r\n\t\tif (theSession.getAttribute(\"cart\") == null) {\r\n\r\n\t\t\tHashMap<Integer, Cart> cart = new HashMap<>();\r\n\t\t\tcart.put(theId, new Cart(theId, theProduct.getName(), theProduct.getPrice(), 1, theProduct.getImage()));\r\n\t\t\ttheSession.setAttribute(\"cart\", cart);\r\n\r\n\t\t} else {\r\n\r\n\t\t\t/*\r\n\t\t\t * get the session first, if the same product is added again, dont add rather\r\n\t\t\t * increase the quantity. if not, simply add the product to the cart and set the\r\n\t\t\t * session.\r\n\t\t\t */\r\n\t\t\tHashMap<Integer, Cart> cart = (HashMap<Integer, Cart>) theSession.getAttribute(\"cart\");\r\n\r\n\t\t\tif (cart.containsKey(theId)) {\r\n\r\n\t\t\t\tint qty = cart.get(theId).getQuantity();\r\n\t\t\t\tcart.put(theId,\r\n\t\t\t\t\t\tnew Cart(theId, theProduct.getName(), theProduct.getPrice(), ++qty, theProduct.getImage()));\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\tcart.put(theId, new Cart(theId, theProduct.getName(), theProduct.getPrice(), 1, theProduct.getImage()));\r\n\t\t\t\ttheSession.setAttribute(\"cart\", cart);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tHashMap<Integer, Cart> cart = (HashMap<Integer, Cart>) theSession.getAttribute(\"cart\");\r\n\r\n\t\tint size = 0;\r\n\t\tdouble total = 0;\r\n\r\n\t\tfor (Cart value : cart.values()) {\r\n\t\t\tsize += value.getQuantity();\r\n\t\t\ttotal += value.getQuantity() * Double.parseDouble(value.getPrice());\r\n\t\t}\r\n\r\n\t\ttheModel.addAttribute(\"size\", size);\r\n\t\ttheModel.addAttribute(\"total\", total);\r\n\r\n\t\tif (cartPage != null) {\r\n\r\n\t\t\treturn \"redirect:/cart/view\";\r\n\r\n\t\t}\r\n\t\treturn \"cart_view\";\r\n\r\n\t}",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n ejbCategoria = new EJBCategoria();\n if (request.getMethod().equals(\"GET\")) { \n ejbCategoria.getAll();\n request.setAttribute(\"ejbCategoria\", ejbCategoria);\n out.print(ejbCategoria.getListaCategorias().get(0).getNombre());\n request.getRequestDispatcher(\"producto/insert.jsp\").forward(request, response);\n }\n if (request.getMethod().equals(\"POST\")) {\n Integer id=Integer.valueOf(request.getParameter(\"item\"));\n ejbProducto = new EJBProducto();\n ejbCategoria = new EJBCategoria();\n ejbCategoria.getCategoria().setIdCategoria(id);\n ejbCategoria.getCategoria().setNombre(request.getParameter(\"txtcategoria\"));\n ejbProducto.getProducto().setDescripcion(request.getParameter(\"txtdescripcion\"));\n ejbProducto.getProducto().setMarca(request.getParameter(\"txtmarca\"));\n ejbProducto.getProducto().setCategoria(ejbCategoria.getCategoria());\n ejbProducto.getProducto().setPrecio(Double.parseDouble(request.getParameter(\"txtprecio\")));\n ejbProducto.getProducto().setStock(Integer.valueOf(request.getParameter(\"txtstock\")));\n boolean retorno = ejbProducto.insert();\n request.setAttribute(\"resultado\", retorno ? \"Correcto\" : \"Incorrecto\");\n request.getRequestDispatcher(\"producto/resultado.jsp\").forward(request, response);\n }\n }",
"public addproduct() {\n\t\tsuper();\n\t}",
"@PostMapping(value = { \"\", \"/cart\" })\n\tpublic void addCarItem(@RequestBody CarDto car) {\n\t\tLOGGER.info(\"ShoppingCartRestController.addCarItem() invocation started\");\n\t\ttheShoppingCartService.addToCart(car);\n\t}",
"public void addProduct(Product p){\n stock.add(p);\n }",
"private void save_to_wishlist(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws Exception {\n\t\t\n\t\tSystem.out.println(\"inside save to wishlist\");\n\t\tString cart_type = request.getParameter(\"cart_type\");\n\t\tSystem.out.println(cart_type);\n\t\tString quantity[] = request.getParameterValues(\"qty_name\");\n\t\tList lqty = new ArrayList();\n\t\tfor(int i=0;i<quantity.length;i++)\n\t\t{\n\t\t\tSystem.out.println(quantity[i]);\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tUaddToCartMstVO mstVO = new UaddToCartMstVO();\n\t\tSystem.out.println(\"cart typw3333333333333333333333333333333\"+cart_type);\n\t\tmstVO.setCart_type(cart_type);\n\t\t\n\t\tHttpSession hs = request.getSession();\n\t\tint user_id=Integer.parseInt(hs.getAttribute(\"userID\").toString());\n\t\tSystem.out.println(\"User............\"+user_id);\n\t\t\n\t\tUaddToCartDAO addCartDAO;\n\t\taddCartDAO=new UaddToCartDAO();\n\n\t\tint BuyerregId = -1;\n\t\tloginVO logVo=new loginVO();\n\t\tlogVo.setLogin_id(user_id);\n\t\tList luser=addCartDAO.search_user_id(logVo);\n\t\tif(luser!=null && luser.size()>0)\n\t\t{\n\t\t\tUregistrationVO regVo=(UregistrationVO)luser.get(0);\n\t\t\tBuyerregId=regVo.getBuyer_user_id();\n\t\t\tSystem.out.println(\"Buyer user Id======================================================\"+BuyerregId);\n\t\t}\n\t\t\n\t\tUregistrationVO regVo=new UregistrationVO();\n\t\tregVo.setBuyer_user_id(BuyerregId);\n\t\t//System.out.println(\"User login id....\"+ regVo.getLoginVoObj().getLogin_id());\n\t\t\n\t\tmstVO.setBuyer_user_id(regVo);\n\t\t\n\t\t\t\t\n\t\taddCartDAO.save_to_wishlist(mstVO);\n\t\t\n\t\tSystem.out.println(\"--------------------------------------------------child Data insertion---------------------------------\");\n\t\t\n\t\t\n\t\tList l= (List)hs.getAttribute(\"product_data_wishlist\");\n\t\t\n\t\tSystem.out.println(\"LIST value::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::\"+l.toString());\n\t\t\n\t\t\n\t\tUaddToCartVO addCartVO[]=new UaddToCartVO[l.size()];\n\t\t\n\t\tUaddToCartVO temp=new UaddToCartVO();\n\t\t\n\t\t\n\t\t\n\t\tfor(int i=0;i<l.size();i++)\n\t\t{\n\t\t\t\n\t\t\ttemp=(UaddToCartVO)l.get(i);\n\t\t\taddCartVO[i]=new UaddToCartVO();\n\t\t\taddCartVO[i].setCloth_id(temp.getCloth_id());\n\t\t\taddCartVO[i].setColor_code(temp.getColor_code());\n\t\t\taddCartVO[i].setPrice(temp.getPrice());\n\t\t\taddCartVO[i].setProduct_name(temp.getProduct_name());\n\t\t\taddCartVO[i].setSize(temp.getSize());\n\t\t\taddCartVO[i].setQuantity(Integer.parseInt(quantity[i]));\n\t\t\taddCartVO[i].setDesigner_user_id(temp.getDesigner_user_id());\n\t\t\taddCartVO[i].setCartMstVOObj(mstVO);\n\t\t\taddCartDAO.save_to_cart(addCartVO[i]);\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t/*String type=mstVO.getCart_type();\n\t\tint userId=((UregistrationVO)mstVO.getBuyer_user_id()).getBuyer_user_id();\n\t\t\n\t\tSystem.out.println(\"---------------------------------------------------------------------------------------------------------------\");\n\t\tSystem.out.println(\"TYPE value is ::::::::::::::\"+type);\n\t\tSystem.out.println(\"USERID value is ::::::::::::::\"+userId);\n\n\t\tSystem.out.println(\"---------------------------------------------------------------------------------------------------------------\");\n\t\t\n*/\t\t\n\t\tresponse.sendRedirect(request.getContextPath()+\"/user/add_to_wishlist.jsp\");\n\t}",
"public void AddSpecificProduct(String productName) {\n\t\t\n\t\ttest = report.startTest(\"TC: AddSpecificProduct\");\n\t\t\n\t\t// -- Step 1: Ensure we're in the right page after login\n\t\tif (!verifyInProductPage()) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// -- Step 2: Construct Dynamic XPath & Add the item\n\t\t\n\t\t// construct dynamic xpath\n\t\tString dynXpath = new String();\n\n\t\t/* method 1\n\t\t\t// Example: //button[@data-test=\"add-to-cart-sauce-labs-bike-light\"]\n\t\t\tproductName.toLowerCase();\n\t\t\tdynXpath=\"//button[@data-test=\\\"add-to-cart-\" + productName.toLowerCase().replace(\" \", \"-\") +\"\\\"]\";\n\t\t*/\n\n\t\t/* method 2 */\n\t\tdynXpath=\"//*[text()='\"+ productName +\"']//following::button[1]\";\n\n\t\t\n\t\t// Check if product listed in the page? If yes, click ADD TO CART button\n\t try {\n\t \twait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(dynXpath)));\n\t \tdriver.findElement(By.xpath(dynXpath)).click();\n\t\t\ttest.log(LogStatus.INFO, \"Product [\" + productName + \"] found, clicked ADD TO CART button.\");\t\n\t } catch (TimeoutException e) {\n\t\t\ttest.log(LogStatus.FAIL, \"Product [\" + productName + \"] not found\");\n\t\t\treturn;\n\t }\n\t\t\n\n\t\t// -- Step 3: Verify item added via number(s) of item in Cart Badge\n\t \n\t\t// Perform simple verification using the Cart Badge on Top Right of the page\n\t\t// Now we update the dynXpath to remove pattern\n\t\tdynXpath=\"//button[@data-test=\\\"remove-\" + productName.toLowerCase().replace(\" \", \"-\") +\"\\\"]\";\n\t\t\n\t\twait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(dynXpath)));\n\t try {\n\t \tdriver.findElement(By.xpath(dynXpath));\n\t\t\ttest.log(LogStatus.PASS, \"Successful added [\" + productName + \"] to cart\");\t\n\t } catch (TimeoutException e) {\n\t\t\ttest.log(LogStatus.FAIL, \"Fail to add [\" + productName + \"] to cart\");\n\t\t\tsoft.fail(\"Failed to add item to cart!\");\t\n\t }\n\t\t\n\t\t\n\t}",
"public void insertIntoProduct() {\n\t\ttry {\n\t\t\tPreparedStatement statement = connect.prepareStatement(addProduct);\n\t\t\tstatement.setString(1, productName);\n\t\t\tstatement.setString(2, quantity);\n\t\t\t\n\t\t\tstatement.executeUpdate();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n\n String txtProductID = request.getParameter(\"txtProductID\");\n String image = request.getParameter(\"image\");\n String txtDescription = request.getParameter(\"txtDescription\");\n float price = Float.parseFloat(request.getParameter(\"priceItem\"));\n String txtProductName = request.getParameter(\"txtProductName\");\n int quantity = Integer.parseInt(request.getParameter(\"quantity\"));\n// String url = SHOPPING_PAGE;\n String getCurrentPage = request.getParameter(\"pageIndex\");\n String url = \"HomePageServlet?btnAction=Add&pageIndex=\" + getCurrentPage;\n try {\n HttpSession session = request.getSession();\n Object checkUser = session.getAttribute(\"customer\");\n if (checkUser == null) {\n url = LOGIN_PAGE;\n }\n\n CartObject cart = (CartObject) session.getAttribute(\"CART\");\n if (cart == null) {\n cart = new CartObject();\n }\n\n ProductDTO dto = new ProductDTO(txtProductID, txtProductName, image, txtDescription, price, 1);\n\n if (quantity <= 0) {\n url = SOUT_OUT;\n } else {\n cart.addItemToCart(dto);\n session.setAttribute(\"CART\", cart);\n }\n } finally {\n response.sendRedirect(url);\n out.close();\n }\n }",
"public void Addproduct(Product objproduct) {\n\t\t\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html\");\n Utilities utility = new Utilities();\n PrintWriter out = response.getWriter();\n\t\t\t\tIMySqlDataStoreUtilities dsutils = new MySqlDataStoreUtilities();\n String productId = request.getParameter(\"prodId\");\n String type = request.getParameter(\"prodCategory\");\n String brandName = request.getParameter(\"brandName\");\n String model = request.getParameter(\"model\");\n String price = request.getParameter(\"price\");\n String discount = request.getParameter(\"discount\");\n String rebate = request.getParameter(\"rebate\");\n String quantity = request.getParameter(\"quantity\");\n String imagePath = request.getParameter(\"imagePath\");\n String action = request.getParameter(\"action\");\n\n Product product = new Product();\n SalesManager manager = new SalesManager();\n\n if (!action.equals(\"3\")) {\n Logger.getLogger(SaxParserUtility.class.getName()).log(Level.INFO, \"entering action 3\");\n\n if(productId.isEmpty() || productId==null){\n Logger.getLogger(SaxParserUtility.class.getName()).log(Level.INFO, \"entering empty\");\n response.sendRedirect(\"AddProducts\");\n\n return;\n\n }\n else{\n Logger.getLogger(SaxParserUtility.class.getName()).log(Level.INFO, \"entering not empty\");\n }\n\n product = new Product(Integer.parseInt(productId), brandName, model, Double.parseDouble(price),\n Double.parseDouble(discount), Double.parseDouble(rebate),Integer.parseInt(quantity), imagePath,\n type,product.getAccs());\n \n }\n else{\n int productIdNew = Integer.parseInt(productId);\n HashMap<String,Product> products = ProductDisplay.buildBasicProductDisplayList();\n for(HashMap.Entry<String, Product> myKey: products.entrySet()){\n\n String key = myKey.getKey();\n Product ph1 = myKey.getValue();\n\n if(ph1.getProductId()==productIdNew){\n product=ph1;\n }\n }\n }\n\n if (action.equals(\"1\")) {\n manager.addProduct(product);\n\t\t\t\t\t\tBoolean addSuccess = false;\n \n } else if (action.equals(\"2\")) {\n manager.updateProduct(product);\n\t\t\t\t\t\tdsutils.modProduct(product);\n } else {\n manager.deleteProduct(product);\n\t\t\t\t\t\tint pid= Integer.parseInt(productId);\n\t\t\t\t\t\tdsutils.delProduct(pid);\n }\n\n utility.printHtml(\"C:/apache-tomcat-7.0.34/webapps/csj1/Header.html\", response);\n out.println(\"<div id='body'>\");\n out.println(\"<section id='content'>\");\n\n if(action.equals(\"1\")){\n\n\n out.println(\"<br><p>You have successfully added below product:</p>\");\n out.println(\"<table>\");\n out.println(\"<tr>\");\n out.println(\"<th>\");\n out.println(\"Product Id\");\n out.println(\"</th>\");\n out.println(\"<th>\");\n out.println(\"Category\");\n out.println(\"</th>\");\n out.println(\"<th>\");\n out.println(\"brandName\");\n out.println(\"</th>\");\n out.println(\"<th>\");\n out.println(\"Model\");\n out.println(\"</th>\");\n out.println(\"<th>\");\n out.println(\"Price\");\n out.println(\"</th>\");\n out.println(\"<th>\");\n out.println(\"Discount\");\n out.println(\"</th>\");\n out.println(\"<th>\");\n out.println(\"Rebate\");\n out.println(\"</th>\");\n out.println(\"<th>\");\n out.println(\"Quantity\");\n out.println(\"</th>\");\n out.println(\"</tr>\");\n out.println(\"<tr>\");\n out.println(\"<td>\");\n out.println(productId);\n out.println(\"</td>\");\n out.println(\"<td>\");\n out.println(type);\n out.println(\"</td>\");\n out.println(\"<td>\");\n out.println(brandName);\n out.println(\"</td>\");\n out.println(\"<td>\");\n out.println(model);\n out.println(\"</td>\");\n out.println(\"<td>\");\n out.println(price);\n out.println(\"</td>\");\n out.println(\"<td>\");\n out.println(discount);\n out.println(\"</td>\");\n out.println(\"<td>\");\n out.println(rebate);\n out.println(\"</td>\");\n out.println(\"<td>\");\n out.println(quantity);\n out.println(\"</td>\");\n\t\t\t\tout.println(\"</td>\");\n out.println(\"</tr>\");\n out.println(\"</table>\");\n }\n\t\telse if(action.equals(\"2\")){\n\n\n out.println(\"<br><p>You have successfully updated below product:</p>\");\n out.println(\"<table>\");\n out.println(\"<tr>\");\n out.println(\"<th>\");\n out.println(\"Product Id\");\n out.println(\"</th>\");\n out.println(\"<th>\");\n out.println(\"Category\");\n out.println(\"</th>\");\n out.println(\"<th>\");\n out.println(\"Brand Name\");\n out.println(\"</th>\");\n out.println(\"<th>\");\n out.println(\"Model\");\n out.println(\"</th>\");\n out.println(\"<th>\");\n out.println(\"Price\");\n out.println(\"</th>\");\n out.println(\"<th>\");\n out.println(\"Discount\");\n out.println(\"</th>\");\n out.println(\"<th>\");\n out.println(\"Rebate\");\n out.println(\"</th>\");\n out.println(\"<th>\");\n out.println(\"Quantity\");\n out.println(\"</th>\");\n out.println(\"</tr>\");\n out.println(\"<tr>\");\n out.println(\"<td>\");\n out.println(productId);\n out.println(\"</td>\");\n out.println(\"<td>\");\n out.println(type);\n out.println(\"</td>\");\n out.println(\"<td>\");\n out.println(brandName);\n out.println(\"</td>\");\n out.println(\"<td>\");\n out.println(model);\n out.println(\"</td>\");\n out.println(\"<td>\");\n out.println(price);\n out.println(\"</td>\");\n out.println(\"<td>\");\n out.println(discount);\n out.println(\"</td>\");\n out.println(\"<td>\");\n out.println(rebate);\n out.println(\"</td>\");\n out.println(\"<td>\");\n out.println(quantity);\n out.println(\"</td>\");\n\t\t\t\tout.println(\"</td>\");\n out.println(\"</tr>\");\n out.println(\"</table>\");\n }\n\t\t\n else{\n\t\t\t\tout.println(\"<br>\");\n out.println(\"<center><br><p><h3>Product Deleted:<h3></p></center>\");\n }\n out.println(\"</section>\");\n utility.printHtml(\"C:/apache-tomcat-7.0.34/webapps/csj1/LeftNavigationBar.html\", response);\n utility.printHtml(\"C:/apache-tomcat-7.0.34/webapps/csj1/Footer.html\", response);\n }",
"public void addProduct(Product p) {\n c.addProduct(p);\n }",
"@Then(\"the product is added to my cart\")\n\t\tpublic void the_product_is_added_to_my_cart() throws Exception {\n\n\t\t\t//Waits for the cart page to load\n\t\t\tdriver.manage().timeouts().implicitlyWait(120, TimeUnit.SECONDS);\n\t\t\tcartElement = driver.findElement(By.xpath(itemSacola)).getText();\n\t\t\t\n\t\t\t//Verify that the product on the shopping cart is the correct one\n\t\t\tAssert.assertEquals(cartElement, TituloFinal);\n\n\t\t\t// Take snapshot as evidence\n\t\t\tFunctions.takeSnapShot(driver, null);\n\t\t}",
"ProductView addProduct(ProductBinding productToAdd) throws ProductException;",
"@Override\n\tpublic void add(Entity entity) throws Exception {\n\t\tsuper.add(entity);\n\t\tProduct prod = (Product) entity;\n\n\t\tSQLiteStatement st = db\n\t\t\t\t.prepare(\"INSERT INTO products(sessionID, name, priceMin, priceMax, quantity, category)\"\n\t\t\t\t\t\t+\"VALUES (?, ?, ?, ?, ?, ?)\");\n\t\tst.bind(1, sessionId).bind(2, prod.getName()).bind(3, prod.getPriceMin())\n\t\t\t\t.bind(4, prod.getPriceMin()).bind(5, prod.getQuantity())\n\t\t\t\t.bind(6, prod.getCategory());\n\t\tst.step();\n\t\ttotalQuantity += prod.quantity;\n\t\tif (!categoryList.containsKey(prod.getCategory())) {\n\t\t\tcategoryList.put(prod.getCategory(), new ArrayList<Product>());\n\t\t}\n\t\tcategoryList.get(prod.getCategory()).add(prod);\n\t\tif (availableProducts.get(entity.getName())==null) {\n\t\t\tavailableProducts.put(entity.getName(), \" \");\n\t\t}\n\t}",
"@Test\n public void addToCart() throws Exception {\n\n ReadableProducts product = super.readyToWorkProduct(\"addToCart\");\n assertNotNull(product);\n\n PersistableShoppingCartItem cartItem = new PersistableShoppingCartItem();\n cartItem.setProduct(product.getId());\n cartItem.setQuantity(1);\n\n final HttpEntity<PersistableShoppingCartItem> cartEntity =\n new HttpEntity<>(cartItem, getHeader());\n final ResponseEntity<ReadableShoppingCart> response =\n testRestTemplate.postForEntity(\n String.format(\"/api/v1/cart/\"), cartEntity, ReadableShoppingCart.class);\n\n // assertNotNull(response);\n // assertThat(response.getStatusCode(), is(CREATED));\n\n }",
"@Override\n\tpublic void sendData(JSONObject o) {\n\t\taddToProduct(o);\n\t}"
] | [
"0.65612066",
"0.63380855",
"0.6162193",
"0.6138692",
"0.6053667",
"0.60467744",
"0.6040623",
"0.6025999",
"0.5933959",
"0.59301543",
"0.58967716",
"0.5878705",
"0.5861583",
"0.5849273",
"0.58218014",
"0.579983",
"0.57711726",
"0.57518315",
"0.57442653",
"0.5740928",
"0.5738175",
"0.57309717",
"0.57104284",
"0.5710199",
"0.569014",
"0.5646659",
"0.56392974",
"0.5631463",
"0.5630207",
"0.56235677",
"0.56221277",
"0.56193",
"0.56146",
"0.5608927",
"0.5603819",
"0.5575689",
"0.5574391",
"0.55657893",
"0.55484694",
"0.5540277",
"0.55260533",
"0.55256146",
"0.55208534",
"0.55121756",
"0.5501299",
"0.54950947",
"0.54905415",
"0.5488095",
"0.5487978",
"0.54837453",
"0.5466383",
"0.546603",
"0.5454497",
"0.545319",
"0.5453008",
"0.54524475",
"0.5442595",
"0.54407",
"0.5436459",
"0.5430157",
"0.5418171",
"0.53970563",
"0.53940845",
"0.53892684",
"0.53860563",
"0.538404",
"0.53832924",
"0.5378441",
"0.53716964",
"0.5361209",
"0.53596896",
"0.5353169",
"0.53482175",
"0.53476787",
"0.5344475",
"0.53438145",
"0.5339676",
"0.5338912",
"0.5323828",
"0.5312454",
"0.5310079",
"0.53076595",
"0.530442",
"0.5304107",
"0.5303438",
"0.5301027",
"0.5299083",
"0.52980113",
"0.5295518",
"0.5293182",
"0.52926785",
"0.5290826",
"0.52832425",
"0.5273425",
"0.52724934",
"0.52697146",
"0.5267991",
"0.5261872",
"0.52541816",
"0.52478385"
] | 0.7187741 | 0 |
Handle the AJAX request to "/delete" URL to remove all items of the particular product from the basket. | @GetMapping(value = "/delete", produces = {MediaType.APPLICATION_JSON_VALUE})
@ResponseBody
public ResponseEntity<Double> deleteFromBasketAjax(@RequestParam(name = "delete") int id,
HttpSession session) {
Double totalPrice = basketService.deleteFromBAsket(id, session);
logger.info("Product deleted from basket completely");
return new ResponseEntity<>(totalPrice, HttpStatus.OK);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void deleteProduct(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException {\n\t\tString theProduct=request.getParameter(\"deleteProduct\");\n\t\tdaoPageAdmin.DeleteProduct(theProduct);\n\t\tloadProduct(request, response);\n\t}",
"@RequestMapping(method=RequestMethod.DELETE, value = \"/item\", produces = \"application/json\")\n public void clearItems()\n {\n this.itemRepository.clearItems();\n }",
"@RequestMapping(\n method = RequestMethod.DELETE,\n path = \"{productId}\"\n )\n public void deleteProductFromShoppingCartById(@PathVariable(\"productId\") UUID productId){\n shoppingCartService.deleteProductFromShoppingCartById(productId);\n }",
"private void eliminarProducto(HttpServletRequest request, HttpServletResponse response) {\n\t\tString codArticulo = request.getParameter(\"cArticulo\");\n\t\t// Borrar producto de la BBDD\n\t\ttry {\n\t\t\tmodeloProductos.borrarProducto(codArticulo);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// Volver al listado con la info actualizada\n\t\tobtenerProductos(request, response);\n\n\t}",
"@GetMapping(value = \"/editOrderMinus\", produces = {MediaType.APPLICATION_JSON_VALUE})\n @ResponseBody\n public ResponseEntity<List> editOrderFromBasketMinusAjax(@RequestParam(name = \"editOrderMinus\") int id,\n HttpSession session) {\n List<Number> result = basketService.editOrderMinus(id, session);\n logger.info(\"Item of product removed from basket\");\n return new ResponseEntity<>(result, HttpStatus.OK);\n }",
"@GetMapping(\"/delete\")\r\n\tpublic String delete(@RequestParam Integer id) \r\n\t{\r\n\t\tservice.deleteProduct(id);\r\n\t\t/*\r\n\t\tList<Product> list=service.getAllProducts();\r\n\t\tmodel.addAttribute(\"list\", list);\r\n\t\treturn \"ProductData\";\r\n\t\t */\r\n\t\treturn \"redirect:all\";\r\n\t}",
"@DeleteMapping(\"/products/{id}\")\n\tpublic List<Product> removeOneProduct(@PathVariable(\"id\") int id){\n\t\t//counter for loop \n\t\tfor (int i=0; i < products.size(); i++) {\n\t\t\tif (products.get(i).getId() == id) {\n\t\t\t\tproducts.remove(i);\n\t\t\t\treturn products;\n\t\t\t}\n\t\t}\n\t\t\n\t\tthrow new ProductNotFoundException();\n\t\t\n\t}",
"@DeleteMapping(\"/items/{id}\")\n public ResponseEntity<Void> deleteItems(@PathVariable Long id) {\n log.debug(\"REST request to delete Items : {}\", id);\n itemsRepository.deleteById(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"void deleteProduct(Integer productId);",
"@RequestMapping(method=RequestMethod.DELETE, value = \"/item/{id}\")\n public void deleteItem(@PathVariable (name = \"id\") UUID id)\n {\n this.itemRepository.deleteItem(id);\n }",
"@DELETE\n @Path(\"{id}/{idItem}\")\n @Produces(MediaType.APPLICATION_XML)\n @Consumes(MediaType.APPLICATION_FORM_URLENCODED)\n public void deleteItemInShoppingList(@PathParam(\"id\") Long id, @PathParam(\"idItem\") Long idItem) throws WebApplicationException {\n boolean b = sls.deleteItemShoppingList(id, idItem);\n if (b == false) {\n throw new WebApplicationException(Response.Status.NOT_FOUND);\n\n }\n }",
"@RequestMapping(value=\"/delete/{id}\")\n\tpublic String delete(@PathVariable(\"id\") Integer id)\n\t{\n\t\tItemMap.remove(id);\n\t\tSystem.out.println(\"Item number \"+id+\" is Removed\");\n\t\t\n\t\treturn \"Item number \"+ id+\" is Removed\";\n\t}",
"void deleteProduct(Long id);",
"@RequestMapping(path=\"/eliminar\", method=RequestMethod.GET)\r\n\tpublic String deleteProduct(@RequestParam(name=\"id\")int id,Model model) {\n\t\tproductoDAO.deleteProducto(id);\r\n\t\t//retornamos lista de productos\r\n\t\treturn \"redirect:/producto\";\r\n\t}",
"public void handleDeleteProducts()\n {\n Product productToDelete = getProductToModify();\n\n if (productToDelete != null)\n {\n // Ask user for confirmation to remove the product from product table\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Confirmation\");\n alert.setHeaderText(\"Delete Confirmation\");\n alert.setContentText(\"Are you sure you want to delete this product?\");\n ButtonType confirm = new ButtonType(\"Yes\", ButtonBar.ButtonData.YES);\n ButtonType deny = new ButtonType(\"No\", ButtonBar.ButtonData.NO);\n ButtonType cancel = new ButtonType(\"Cancel\", ButtonBar.ButtonData.CANCEL_CLOSE);\n alert.getButtonTypes().setAll(confirm, deny, cancel);\n alert.showAndWait().ifPresent(type ->{\n if (type == confirm)\n {\n // User cannot delete products with associated parts\n if (productToDelete.getAllAssociatedParts().size() > 0)\n {\n Alert alert2 = new Alert(Alert.AlertType.ERROR);\n alert2.setTitle(\"Action is Forbidden!\");\n alert2.setHeaderText(\"Action is Forbidden!\");\n alert2.setContentText(\"Products with associated parts cannot be deleted!\\n \" +\n \"Please remove associated parts from product and try again!\");\n alert2.show();\n }\n else\n {\n // delete the product\n inventory.deleteProduct(productToDelete);\n updateProducts();\n productTable.getSelectionModel().clearSelection();\n }\n }\n });\n }\n else\n {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Input Invalid\");\n alert.setHeaderText(\"No product was selected!\");\n alert.setContentText(\"Please select a product to delete from the part table!\");\n alert.show();\n }\n this.productTable.getSelectionModel().clearSelection();\n }",
"@DeleteMapping(path =\"/products/{id}\")\n public ResponseEntity<Void> deleteProduct(@PathVariable(name=\"id\") Long id) {\n log.debug(\"REST request to delete Product with id : {}\", id);\n productService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"public void deleteProduct(Product product) throws BackendException;",
"@GetMapping(\"/deleteItem\")\n\tpublic String deleteItem(HttpServletRequest servletRequest) {\n\t\t\n\t\ttoDoListService.deleteById(Long.parseLong(servletRequest.getParameter(\"itemId\"))); // Delete the to do list item record.\n\t\t\n\t\treturn \"redirect:/welcome\";\n\t}",
"void deleteCategoryProducts(long id);",
"@GetMapping(\"/deleteItem/{id}\")\n\tpublic String deleteItemById(@PathVariable(value=\"id\") long id) {\n\t\titemService.deleteItemById(id);\t\n\t\t\n\t\treturn \"redirect:/\";\n\t}",
"void delete(ShoppingBasket shoppingBasket);",
"ShoppingBasket removeProductItem(Long shoppingBasketId, Long productItemId);",
"ResponseEntity<Cart> removeCartItem(CartFormData formData);",
"@RequestMapping(value=\"/deleteproducts/{id}\",method = RequestMethod.GET) \r\n public ModelAndView delete(@PathVariable int id){ \r\n \tSystem.out.println(\"delete is called\");\r\n productDao.deleteProducts(id);\r\n return new ModelAndView(\"redirect:/viewproducts\"); \r\n }",
"void deleteProduct(Product product) throws ServiceException;",
"private void deleteOrder(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}",
"public static JSONResponse deleteItem(HttpServletRequest req, String id) {\n DefaultItemService service = new DefaultItemService();\n try {\n User u = BasicAuthentication.auth(req);\n service.delete(id, u);\n return RestProcessUtils.buildResponse(Status.NO_CONTENT.getStatusCode(), null);\n } catch (Exception e) {\n return RestProcessUtils.localExceptionHandler(e, e.getLocalizedMessage());\n }\n }",
"@DeleteMapping(\"/delete\")\r\n\tpublic ProductDetails deleteProduct(@Valid @RequestBody DeleteProduct request) {\r\n\t\treturn productUtil.toProductDetails(productService.deleteProduct(request.getProduct_Id()));\r\n\r\n\t}",
"@RequestMapping(value = \"remove\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public void remove(HttpServletRequest httpRequest, @RequestParam String menuItemId\n ) throws IOException {\n DataToken dataToken = SecurityUtils.getDataToken(httpRequest);\n\n menuItemsRepository.delete(menuItemId);\n\n }",
"@DeleteMapping(\"/{productId}/delete/{quantity}\")\n @ApiOperation(value = \"Delete Product from Basket\",response = CustomResponseEntity.class)\n public ResponseEntity<Object> deleteProductFromBasket(@NotNull @PathVariable(value = \"productId\") @ApiParam(value = \"ID of Product\") String productId,\n @PathVariable(value = \"quantity\") @ApiParam(value = \"Quantity\") Long quantity, @RequestHeader(value = \"userId\") @ApiParam(value = \"ID of User\") Long userId) throws Exception {\n userService.findUserById(userId);\n CustomResponseEntity customResponseEntity = basketService.deleteProductFromBasket(productId, userId, quantity);\n return new ResponseEntity(customResponseEntity, HttpStatus.OK);\n\n }",
"@RequestMapping(value=\"/deleteitem.htm\")\n\t@ResponseBody\n\tpublic String deleteItem(HttpServletRequest request,HttpServletResponse response) throws Exception{\n\t\tlog.info(\"inside deleteItem()\");\n\t\tJSONObject obj=new JSONObject();\n\t\tString error=null;\n\t\ttry{\n\t\t\tString status=\"NOT DELETED\";\n\t\t\tJSONObject json=JsonParser.getJson(request, response);\n\t\t\tSystem.out.println(json.toString());\n\t\t\tSystem.out.println(request.getHeaderNames());\n\t\t\tSystem.out.println(request.getContentLength()+request.getContentType());\n\t\t\tInteger itemId=json.getInt(\"itemid\");\n\t\t\tSystem.out.println(itemId);\n\t\t\tthis.itemService.deleteItem(itemId);\n\t\t\tstatus=\"DELETED ITEM\";\n\t\t\tobj.accumulate(\"status\", status);\n\t\t\treturn obj.toString();\t\n\t\t}\n\t\tcatch(ItemNotFoundException e){\n\t\t\t\n\t\t\tString message=\"Item Not Found\";\n\t\t\tlog.error(message+\"\"+e.toString());\n\t\t\tobj.accumulate(\"status\", message);\n\t\t\treturn obj.toString();\n\t\t\t\n\t\t}\n\t\tcatch(Exception e){\n\t\t\t\n\t\t\tlog.error(\"Error While Deleting Item\"+e.toString());\n\t\t\tobj.accumulate(\"status\", \"some error while deleting item\");\n\t\t\treturn obj.toString();\n\t\t}\n\t}",
"@PreAuthorize(\"hasAuthority('PARENT')\")\n\t@RequestMapping(value = \"/delete/{id}\", method = RequestMethod.GET)\n\tpublic String deleteItem(@PathVariable(\"id\") Long itemId, Model model) {\n\t\trepository.deleteById(itemId);\n\t\treturn \"redirect:../itemlist\";\n\t}",
"@DeleteMapping(\"/product/{productid}\") \nprivate void deleteProduct(@PathVariable(\"productid\") int productid) \n{ \nproductsService.delete(productid); \n}",
"@RequestMapping(\"/delete\")\n\tpublic String delete(HttpServletRequest request, Model model) {\n\t\tdao.delete(request.getParameter(\"bId\"));\n\t\treturn \"redirect:list\"; \n\t}",
"@Override\n public void onClick(View v) {\n\n final ActiveShoppingCartActivity ref = (ActiveShoppingCartActivity) getActivity();\n\n AsyncHttpClient client = new AsyncHttpClient();\n client.delete(\"http://ec2-52-86-213-15.compute-1.amazonaws.com/api/v1/cartItems/\", new AsyncHttpResponseHandler() {\n @Override\n public void onStart() {\n // Initiated the request\n\n }\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n // Successfully got a response\n try {\n JSONArray jsonData = new JSONArray(new String(responseBody));\n ref.buildNewListOfData(jsonData);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable\n error)\n {\n // Response failed :(\n Log.v(\"Request failed\", error.getLocalizedMessage());\n }\n });\n\n ref.closePopup();\n dismiss();\n }",
"@Override\n\tpublic void deleteProduct(int product_id) {\n\n\t}",
"@RequestMapping(\"deletetask\")\n\tpublic ModelAndView deleteProduct(@RequestParam(\"title\") String title) {\n\t\tTask temp = new Task();\n\t\ttemp.setTitle(title);\n\t\t\n\t\tSessionFactory sessionFactory = HibernateUtil.getSessionFactory();\n\t\tSession session = sessionFactory.openSession();\n\t\tTransaction tx = session.beginTransaction(); // the transaction represents the unit of work or the actual\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// implemention of of our code\n\t\t\n\t\tsession.delete(temp);\n\t\ttx.commit();\n\t\tsession.close();\n\t\t\n\t\tArrayList<Task> userList = listAllTasks();\n\t\treturn new ModelAndView(\"welcome\", \"uList\", userList);\n\t\t\n\t}",
"@DeleteMapping(\"/productos/{id}\")\n @Timed\n public ResponseEntity<Void> deleteProducto(@PathVariable Long id) {\n log.debug(\"REST request to delete Producto : {}\", id);\n productoRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@DeleteMapping(value = \"/deleteproduct\")\n public ResponseEntity<String> deleteProduct(@RequestBody String productName, final HttpSession session) {\n log.info(session.getId() + \" : Reviewing the initial cart\");\n Map<String, CartProduct> initialCart = (Map<String, CartProduct>) session.getAttribute(CART_SESSION_CONSTANT);\n\n //check if the cart is empty\n ControllerUtils.checkEmptyCart(initialCart, session.getId());\n\n if (!initialCart.containsKey(productName)) {\n log.error(session.getId() + \" : Error removing product not present in the cart\");\n throw new ProductNotFoundException(productName);\n }\n\n log.info(session.getId() + \" : Remove the product from the cart\");\n initialCart.remove(productName);\n session.setAttribute(CART_SESSION_CONSTANT, initialCart);\n return ResponseEntity.status(HttpStatus.OK).body(\"Product \" + productName + \" removed\");\n }",
"@FXML\n\tpublic void deleteProduct(ActionEvent event) {\n\t\tif (!txtDeleteProductName.getText().equals(\"\")) {\n\t\t\ttry {\n\n\t\t\t\tList<Product> productToDelete = restaurant.findSameProduct(txtDeleteProductName.getText());\n\t\t\t\tboolean delete = restaurant.deleteProduct(txtDeleteProductName.getText());\n\t\t\t\tif (delete == true) {\n\t\t\t\t\tfor (int i = 0; i < productOptions.size(); i++) {\n\t\t\t\t\t\tfor (int j = 0; j < productToDelete.size(); j++) {\n\t\t\t\t\t\t\tif (productOptions.get(i) != null && productOptions.get(i)\n\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(productToDelete.get(j).getReferenceId())) {\n\t\t\t\t\t\t\t\tproductOptions.remove(productToDelete.get(j).getReferenceId());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\ttxtDeleteProductName.setText(\"\");\n\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"No se pudo guardar la actualización de los productos\");\n\t\t\t\tdialog.setTitle(\"Error guardar datos\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Los campos deben ser llenados\");\n\t\t\tdialog.setTitle(\"Error, Campo sin datos\");\n\t\t\tdialog.show();\n\t\t}\n\t}",
"void removeProduct(Product product);",
"@RequestMapping(value = \"/cartItems/delete/{userId}\", method = RequestMethod.POST)\n //@PostMapping(path = \"/cartItems/add/{userId}\", consumes = \"application/json\")\n public void deleteCartItem(@RequestBody Cart cartItem,@PathVariable(\"userId\") int userId) {\n \n cartService.deleteFromCart(cartItem,userId);\n\n \n }",
"public void eliminar(Producto producto) throws BusinessErrorHelper;",
"@ResponseStatus(HttpStatus.OK)\n\t@ResponseBody\n\t@DeleteMapping(value = \"/{id}\", produces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic void deleteProductoById(@PathVariable(\"id\") Long id) {\n\t\t// Verifica si el producto existe\n\t\tProducto producto = productoService.findById(id);\n\n\t\tInventario invantario = inventarioService.findByCodProducto(producto.getCodProducto());\n\t\tinventarioService.delete(invantario);\n\t}",
"@RequestMapping(method = RequestMethod.DELETE, value = \"/{id}\",\n produces = \"application/json\", headers = \"Accept=application/json\" )\n public ResponseEntity<?> deleteInventoryByProductId(@PathVariable(\"id\") Integer id){\n Product product = productService.getProductById(id);\n\n //Desassociando o produto do estoque\n Inventory inventory = inventoryService.getInventoryItemByProductId(id);\n product.setInventory(null);\n inventory.setProduct(product);\n inventoryService.updateInventoryItem(inventory);\n\n //Deletando o produto do estoque\n inventoryService.deleteInventoryItem(inventory.getInventoryId());\n\n return ResponseEntity.noContent().build();\n }",
"@Test \n\tpublic void testDeleteBasketItem() throws Exception {\n\t\tBBBBasket basket = AccountHelper.getInstance().getBasket();\n\t\t\n\t\tif(basket == null || basket.items == null || basket.items.length < 1) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tString id = basket.items[0].id;\n\t\t\n\t\tBBBRequest request = BBBRequestFactory.getInstance().createDeleteBasketItemRequest(id);\n\t\tString expectedUrl = AccountHelper.constructUrl(BBBRequestFactory.getInstance().getHostBasket(), String.format(PATH_MY_BASKETS_ITEMS_, id) );\n\t\tassertEquals(expectedUrl, request.getUrl());\n\t\t\n\t\tBBBResponse response = BBBRequestManager.getInstance().executeRequestSynchronously(request);\n\t\t\n\t\tif(response.getResponseCode() != HttpURLConnection.HTTP_OK) {\n\t\t\tfail(\"Error: \"+response.toString());\n\t\t}\n\t}",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n String PID = request.getParameter(\"PID\");\r\n \r\n Product p = new Product();\r\n try {\r\n p = productdao.getProductByID(Integer.parseInt(PID));\r\n } catch (DAOException | NumberFormatException e) {\r\n System.out.println(\"error get product\");\r\n }\r\n \r\n if(p.getImmagine() != null && !(p.getImmagine().equals(\"\"))){ \r\n String listsFolder = \"\";\r\n listsFolder = getServletContext().getRealPath(listsFolder);\r\n listsFolder = listsFolder.replace(\"\\\\build\", \"\");\r\n String imgfolder = p.getImmagine().replace(\"/Image/ProductImg\", \"\");\r\n deleteImgFromDirectory1(listsFolder + imgfolder); \r\n }\r\n \r\n \r\n try {\r\n productdao.delete(p);\r\n } catch (DAOException e) {\r\n System.out.println(e);\r\n System.out.println(\"delete product error\");\r\n }\r\n \r\n response.sendRedirect(\"/Lists/Pages/AdminProducts.jsp\");\r\n }",
"@CrossOrigin\n\t@RequestMapping(value=\"/delete\", method=RequestMethod.POST)\n\tpublic ResponseEntity<?> deleteCartItem(@RequestBody CartItem CartItem){\n\t\t//test if the item is deleted\n\t\tboolean deleted = CartItemService.deleteCartItem(CartItem);\n\t\tlogger.info(CartItem.toString());\n\t\tif(deleted == false){\n\t\t\tlogger.info(\"item not found to delete\");\n\t\t\treturn new ResponseEntity<Object>(HttpStatus.CONFLICT);\n\n\t\t}\n\t\tlogger.info(\"item deleted\");\n\t\treturn new ResponseEntity<Object>(HttpStatus.NO_CONTENT);\n\t}",
"@ResponseBody\n\t@RequestMapping(value=\"/delete\", method={RequestMethod.GET,\n\t\t\tRequestMethod.POST})\n\tpublic String deleteBoost(HttpServletRequest request, String skuId){\n\t\tsignatureHandler.setPrivateKeyString(rsaResource.get());\n\t\tJSONObject messageBody = new JSONObject();\n\t\tmessageBody.put(\"skuId\", skuId);\n\t\tString signatureJson = null;\n\t\ttry {\n\t\t\tsignatureJson = signatureHandler.sign(messageBody, CookieUtil.getUserName(request));\n\t\t} catch (Exception e1) {\n\t\t\tlogger.error(e1.getMessage(), e1);\n\t\t}\n\t\t\n\t\tString resultJson = null;\n\t\ttry {\n\t\t\tresultJson = HttpRequester.httpPostString(weightBoostConfig.getWeight_path() + weightBoostConfig.getWeight_delete(),\n\t\t\t\t\tsignatureJson);\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t} catch (HttpRequestException e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t} catch (URISyntaxException e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\n\t\treturn resultJson;\n\t}",
"void deleteProduct(int productId) throws ProductException;",
"void doDelete(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException;",
"@Override\n protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n PrintWriter out = resp.getWriter();\n resp.setCharacterEncoding(\"UTF-8\");\n resp.setContentType(\"application/json\");\n resp.addHeader(\"Access-Control-Allow-Origin\", \"*\");\n resp.addHeader(\"Access-Control-Allow-Methods\", \"POST, GET, OPTIONS, PUT, DELETE, HEAD\");\n\n BufferedReader br = new BufferedReader(new InputStreamReader(req.getInputStream()));\n String data = URLDecoder.decode(br.readLine());\n String[] dataParse = data.split(\"&\");\n Map<String, String> mapa = new HashMap<>();\n for (int i = 0; i < dataParse.length; i++) {\n String[] par = dataParse[i].split(\"=\");\n mapa.put(par[0], par[1]);\n }\n\n try {\n Contato contato = new Contato(Integer.parseInt(mapa.get(\"id\")));\n contato.exclui();\n resp.setStatus(200); // status ok\n } catch (SQLException e) {\n e.printStackTrace();\n resp.setStatus(500); // server error\n }\n }",
"public void deleteItem() {\n\t\t\tAsyncCallback<BmUpdateResult> callback = new AsyncCallback<BmUpdateResult>() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\tstopLoading();\n\t\t\t\t\tshowErrorMessage(this.getClass().getName() + \"-deleteItem(): ERROR \" + caught.toString());\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onSuccess(BmUpdateResult result) {\n\t\t\t\t\tstopLoading();\n\t\t\t\t\tprocessItemDelete(result);\n\t\t\t\t}\n\t\t\t};\n\n\t\t\t// Llamada al servicio RPC\n\t\t\ttry {\n\t\t\t\tif (!isLoading()) {\n\t\t\t\t\tstartLoading();\n\t\t\t\t\tgetUiParams().getBmObjectServiceAsync().delete(bmoRequisitionItem.getPmClass(), bmoRequisitionItem, callback);\n\t\t\t\t}\n\t\t\t} catch (SFException e) {\n\t\t\t\tstopLoading();\n\t\t\t\tshowErrorMessage(this.getClass().getName() + \"-deleteItem(): ERROR \" + e.toString());\n\t\t\t}\n\t\t}",
"@DeleteMapping(\"/product/{id}\")\n\t@ApiOperation(value = \"\", authorizations = { @Authorization(value=\"JWT\") })\n\tString deleteProduct(@PathVariable Long id) {\n\t\tproductRepo.deleteById(id);\n\t\treturn \"deleted successfully\";\n\t}",
"@PostMapping(value = \"/quitar/{id}\")\n\tpublic String quitarDelCarrito(@PathVariable int id, HttpServletRequest request) {\n\t\tArrayList<ProductoParaVender> carrito = this.obtenerCarrito(request);\n\t\t//Si hay carrito, el tamaño es mayor a 0 o encuentra un ID\n\t\tif (carrito != null && carrito.size() > 0 && carrito.get(id) != null) {\n\t\t\t//mediante un boton podemos remover el producto deseado\n\t\t\tcarrito.remove(id);\n\t\t\t//guardamos\n\t\t\tthis.guardarCarrito(carrito, request);\n\t\t}\n\t\treturn \"redirect:/vender\";\n\t}",
"private void deleteProduct() {\n // Only perform the delete if this is an existing Product.\n if (mCurrentProductUri != null) {\n // Call the ContentResolver to delete the pet at the given content URI.\n // Pass in null for the selection and selection args because the mCurrentProductUri\n // content URI already identifies the pet that we want.\n int rowsDeleted = getContentResolver().delete(mCurrentProductUri, null, null);\n\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then there was an error with the delete.\n Toast.makeText(this, getString(R.string.editor_delete_product_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the delete was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_delete_product_successful),\n Toast.LENGTH_SHORT).show();\n }\n }\n\n // Close the activity\n finish();\n }",
"@GetMapping(\"/misproductos/{id}/eliminar\")\n\tpublic String eliminar(@PathVariable Long id) {\n\t\tProducto p = productoServicio.findById(id);\n\t\tif (p.getCompra() == null)\n\t\t\tproductoServicio.borrar(p);\n\t\treturn \"redirect:/app/misproductos\";\n\t}",
"@PostMapping(path=\"/deleteOrder\")\r\n\tpublic String deleteOrder(HttpServletRequest request) {\n\t\tHttpSession session = request.getSession();\r\n\t\tString orderId = request.getParameter(\"deleteOrder\");\r\n\t\tint userId = (int) session.getAttribute(\"userId\");\r\n\t\tString result = smservice.deleteOrder(Integer.parseInt(orderId));\r\n\t\tif(result.equals(\"Deleted\")) {\r\n\t\t\tList<AllOrdersDTO> aod= smservice.getOrders(userId);\r\n\t\t\tsession.setAttribute(\"orderList\", aod);\r\n\t\t}\r\n\t\t\r\n\t\treturn \"orderhistory\";\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n public void onClick(View v) {\n for (ObjectStock s : product.getStocks()) {\n stockDataSource.deleteStock(s);\n }\n\n productDataSource.deleteProduct(product);\n popupWindowIsOn = false;\n popupWindow.dismiss();\n Toast toast = Toast.makeText(getBaseContext(),\n R.string.product_deleted, Toast.LENGTH_LONG);\n\n toast.show();\n\n finish();\n Intent i = new Intent(getBaseContext(), MyProducts.class);\n startActivity(i);\n }",
"@FXML\n\t private void deleteProduct (ActionEvent actionEvent) throws SQLException, ClassNotFoundException {\n\t try {\n\t ProductDAO.deleteProdWithId(prodIdText.getText());\n\t resultArea.setText(\"Product deleted! Product id: \" + prodIdText.getText() + \"\\n\");\n\t } catch (SQLException e) {\n\t resultArea.setText(\"Problem occurred while deleting product \" + e);\n\t throw e;\n\t }\n\t }",
"public void deleteProduct()\n {\n ObservableList<Product> productRowSelected;\n productRowSelected = productTableView.getSelectionModel().getSelectedItems();\n int index = productTableView.getSelectionModel().getFocusedIndex();\n Product product = productTableView.getItems().get(index);\n if(productRowSelected.isEmpty())\n {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"Please select the Product you want to delete.\");\n alert.show();\n } else if (!product.getAllAssociatedParts().isEmpty())\n {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"This Product still has a Part associated with it. \\n\" +\n \"Please modify the Product and remove the Part.\");\n alert.show();\n } else {\n alert.setAlertType(Alert.AlertType.CONFIRMATION);\n alert.setContentText(\"Are you sure you want to delete this Product?\");\n alert.showAndWait();\n ButtonType result = alert.getResult();\n if(result == ButtonType.OK)\n {\n Inventory.deleteProduct(product);\n }\n }\n }",
"@Override\n\tpublic void deleteCategory(HttpServletRequest request,\n\t\t\tHttpServletResponse response) {\n\n\t}",
"public void deleteItem(ActionEvent actionEvent) {\n // find the list that the item belongs in\n // removeItem() from its parenting list\n }",
"public static void removeProduct(Scanner input) {\n\n\t\tif (basket.isEmpty()) {\n\t\t\tSystem.out.println(\"No products in you basket yet.\");\n\t\t\treturn;\n\t\t} else {\n\n\t\t\tSystem.out.println(\"In your basket you have:\");\n\n\t\t\tshowBasket();\n\n\t\t\tSystem.out.println(\"Enter the ID of the product you don't want.\");\n\n\t\t\tint productId = productValidation(input, basket);\n\n\t\t\tint productQuantity = 0;\n\n\t\t\tif (basket.get(productId).getQuantity() > 1) {\n\n\t\t\t\tSystem.out.printf(\"You have more than one %s.%n\", basket.get(productId).getName());\n\t\t\t\tSystem.out.println(\"Press 1 to remove all or 2 to remove some.\");\n\n\t\t\t\tif (TwoOptiosValidation.check(input) == 1) {\n\t\t\t\t\tbasket.remove(productId);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"How many would you like to remove?\");\n\t\t\t\t\tproductQuantity = quantityValidation(input, productId, basket);\n\t\t\t\t\tif (productQuantity == basket.get(productId).getQuantity()) {\n\t\t\t\t\t\tbasket.remove(productId);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbasket.get(productId).setQuantity(basket.get(productId).getQuantity() - productQuantity);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tbasket.remove(productId);\n\t\t\t}\n\n\t\t\tProductsList.cancelOrder(productId, productQuantity);\n\n\t\t\tSystem.out.println(\"Done\");\n\n\t\t}\n\n\t\tSystem.out.println();\n\n\t}",
"@Override\n\t@RequestMapping(value=ZuelControllerValue.Manage+\"deleteItem\")\n\tpublic ZuelResult deleteItem(Long id) throws Exception {\n\t\treturn service.deleteItem(id);\n\t}",
"@Override\n public final void doDelete() {\n try {\n checkPermissions(getRequest());\n final List<APIID> ids = new ArrayList<APIID>();\n\n // Using ids in json input stream\n if (id == null) {\n final String inputStream = getInputStream();\n if (inputStream.length() == 0) {\n throw new APIMissingIdException(\"Id of the element to delete is missing [\" + inputStream + \"]\");\n }\n\n // Parsing ids in Json input stream\n final AbstractTreeNode<String> tree = JSonSimpleDeserializer.unserializeTree(inputStream);\n\n if (tree instanceof Tree<?>) {\n final List<AbstractTreeNode<String>> nodes = ((Tree<String>) tree).getNodes();\n\n for (final AbstractTreeNode<String> node : nodes) {\n if (node instanceof Tree<?>) {\n ids.add(APIID.makeAPIID(((Tree<String>) node).getValues()));\n } else if (node instanceof TreeLeaf<?>) {\n ids.add(APIID.makeAPIID(((TreeLeaf<String>) node).getValue()));\n } else {\n throw new APIMissingIdException(\"Id of the elements to delete are missing or misswritten \\\"\" + inputStream + \"\\\"\");\n }\n }\n } else {\n throw new APIMissingIdException(\"Id of the elements to delete are missing or misswritten \\\"\" + inputStream + \"\\\"\");\n }\n }\n\n // Using id in URL\n else {\n ids.add(id);\n }\n\n api.runDelete(ids);\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n\n }\n }",
"@Override\r\n protected void delete_objectList( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) throws KANException\r\n {\n\r\n }",
"@Override\r\n\tprotected void delete_objectList(ActionMapping mapping, ActionForm form,\r\n\t\t\tHttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows KANException {\n\t\t\r\n\t}",
"public void eliminar(Producto producto) throws IWDaoException;",
"@Override\n\tpublic void removeItem(Session session){\n\t\ttry{\n\t\t\tSystem.out.print(\"*--------------Remove Items here--------------*\\n\");\n\t\t\t//scanner class allows the admin to enter his/her input\n\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\t//read input item id\n\t\t\tSystem.out.print(\"Enter Item Id to delete the item: \");\n\t\t\tint itemId = scanner.nextInt();\n\n\t\t\t//pass these input items to client controller\n\t\t\tsamp=mvc.removeItem(session,itemId);\n\t\t\tSystem.out.println(samp);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App- Remove Items Exception: \" +e.getMessage());\n\t\t}\n\t}",
"public void remove(int index){\n if (myBasket.size() == 0)\n System.out.println(\"List is empty.\");\n int i = 0 ;\n boolean isFound = false;\n Product toRemove = null;\n for (Product product: myBasket.keySet())\n {\n i++;\n if (i == index && myBasket.get(product) > 0)\n {\n isFound = true;\n toRemove = product;\n break;\n\n }\n }\n if (!isFound)\n System.out.println(\"Sorry. Invalid index!\");\n\n // now , checking how many of this product is in the basket\n\n else if (myBasket.get(toRemove) > 1){\n System.out.println(\"How many of this product do you want to give back?\");\n Scanner scanner = new Scanner(System.in);\n int num = scanner.nextInt();\n if (num < myBasket.get(toRemove)) {\n totalCost -= toRemove.getPrice() * num;\n myBasket.replace(toRemove,myBasket.get(toRemove) - num);\n for (int j = 0 ; j < num ; j++)\n inventory.updateStock(toRemove , '+');\n }\n else {\n totalCost -= toRemove.getPrice() * myBasket.get(toRemove);\n myBasket.remove(toRemove);\n for (int j = 0 ; j < myBasket.get(toRemove) ; j++)\n inventory.updateStock(toRemove,'+');\n }\n System.out.println(\"Product removed.\");\n }\n\n // there is just one of this product in basket\n\n else {\n totalCost -= toRemove.getPrice();\n myBasket.remove(toRemove);\n System.out.println(\"Product removed.\");\n inventory.updateStock(toRemove , '+');\n }\n }",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Product : {}\", id);\n productRepository.delete(id);\n }",
"void removeCartItem(int cartItemId);",
"public void buttonDelete(ActionEvent event) {\n\t\tObservableList<Player> allProduct, SinglePlayer;\n\t\tallProduct = tableview.getItems();\n\t\tSinglePlayer = tableview.getSelectionModel().getSelectedItems();\n\t\tSinglePlayer.forEach(allProduct::remove);\n\t}",
"public void onActionDeleteProduct(ActionEvent actionEvent) throws IOException {\r\n\r\n try {\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to delete the selected item?\");\r\n\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.isPresent() && result.get() == ButtonType.OK) {\r\n\r\n if (productsTableView.getSelectionModel().getSelectedItem() != null) {\r\n Product product = productsTableView.getSelectionModel().getSelectedItem();\r\n if (product.getAllAssociatedParts().size() == 0) {\r\n\r\n Inventory.deleteProduct(productsTableView.getSelectionModel().getSelectedItem());\r\n Parent root = FXMLLoader.load(getClass().getResource(\"/View_Controller/mainScreen.fxml\"));\r\n Stage stage = (Stage) ((Node) actionEvent.getSource()).getScene().getWindow();\r\n Scene scene = new Scene(root, 1062, 498);\r\n stage.setTitle(\"Main Screen\");\r\n stage.setScene(scene);\r\n stage.show();\r\n } else {\r\n Alert alert2 = new Alert(Alert.AlertType.ERROR);\r\n alert2.setContentText(\"Products with associated parts cannot be deleted.\");\r\n alert2.showAndWait();\r\n }\r\n }\r\n else {\r\n Alert alert3 = new Alert(Alert.AlertType.ERROR);\r\n alert3.setContentText(\"Click on an item to delete.\");\r\n alert3.showAndWait();\r\n }\r\n }\r\n }\r\n catch (NullPointerException n) {\r\n //ignore\r\n }\r\n }",
"@After(value = \"@deleteList\", order = 1)\n public void deleteList() {\n String listId = context.getDataCollection((\"list\")).get(\"id\");\n context.setRequestSpec(AuthenticationUtils.getLoggedReqSpec());\n given(context.getRequestSpecification()).when().delete(\"/lists/\".concat(listId));\n }",
"public void Deleteproduct(Product objproduct) {\n\t\t\n\t}",
"@FXML private void handleAddProdDelete(ActionEvent event) {\n Part partDeleting = fxidAddProdSelectedParts.getSelectionModel().getSelectedItem();\n \n if (partDeleting != null) {\n //Display Confirm Box\n Alert confirmDelete = new Alert(Alert.AlertType.CONFIRMATION);\n confirmDelete.setHeaderText(\"Are you sure?\");\n confirmDelete.setContentText(\"Are you sure you want to remove the \" + partDeleting.getName() + \" part?\");\n Optional<ButtonType> result = confirmDelete.showAndWait();\n //If they click OK\n if (result.get() == ButtonType.OK) {\n //Delete the part.\n partToSave.remove(partDeleting);\n //Refresh the list view.\n fxidAddProdSelectedParts.setItems(partToSave);\n\n Alert successDelete = new Alert(Alert.AlertType.CONFIRMATION);\n successDelete.setHeaderText(\"Confirmation\");\n successDelete.setContentText(partDeleting.getName() + \" has been removed from product.\");\n successDelete.showAndWait();\n }\n } \n }",
"Boolean delete(HttpServletRequest request, Long id);",
"private void removeProduct(int id)\n {\n manager.removeProduct(id);\n }",
"@DELETE\n @Path(\"{id}\")\n @Produces(MediaType.APPLICATION_XML)\n public void deleteShoppingList(@PathParam(\"id\") Long id) throws WebApplicationException {\n boolean b = sls.deleteShoppingList(id);\n if (b == false) {\n throw new WebApplicationException(Response.Status.NOT_FOUND);\n }\n\n }",
"@DeleteMapping(path = \"cart\")\n void deleteShoppingCart(@RequestHeader(HttpHeaders.AUTHORIZATION) String token);",
"@DELETE\r\n\t@Path(\"/\")\r\n\t@Consumes(MediaType.APPLICATION_XML)\r\n\t@Produces(MediaType.TEXT_PLAIN)\r\n\tpublic String deleteItem(String itemData)\r\n\t{\n\t Document doc = Jsoup.parse(itemData, \" \", Parser.xmlParser());\r\n\r\n\t//Read the value from the element <itemID>\r\n\t String funderID = doc.select(\"funderID\").text();\r\n\t String output = FunderObj.deleteItem(funderID);\r\n\treturn output;\r\n\t}",
"private void deleteProduct() {\n // Only perform the delete if this is an existing product.\n if (currentProductUri != null) {\n // Call the ContentResolver to delete the product at the given content URI.\n // Pass in null for the selection and selection args because the currentProductUri\n // content URI already identifies the product that we want.\n int rowsDeleted = getContentResolver().delete(currentProductUri, null, null);\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then there was an error with the delete.\n Toast.makeText(this, getString(R.string.no_deleted_products),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the delete was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_delete_product_successful), Toast.LENGTH_SHORT).show();\n }\n }\n finish();\n }",
"Cart deleteFromCart(String code, Long quantity, String userId);",
"public void deleteProduct(Product product_1) {\n\r\n\t}",
"public String ajaxRemoveFromList() throws Exception {\n\t\tJSONObject json = new JSONObject(Constant.getObjectBean().getData());\n\t\tString groupId = json.getString(ApplyItemConstant.KEY_GROUP_ID);\n\t\tString playerId = json.getString(ApplyItemConstant.KEY_PLAYER_ID);\n\t\tXMLCREATE = XmlService.adminRemoveSTBOutToGroup(playerId);\n\t\tModelService.adminRemoveSTBOutToGroup(XMLCREATE);\n\t\t// reload group DB\n\t\treturn getSetupBox(groupId);\n\t}",
"public void handleDeleteClick(final Integer position){\n int idToRemove = mDataset.get(position).getSetId();\n\n RequestQueue queue = Volley.newRequestQueue(this);\n String url = \"http://ec2-18-188-60-72.us-east-2.compute.amazonaws.com/FlashcardsPro/deleteCardSet.php?id=\" + idToRemove;\n\n JsonObjectRequest request = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n try {\n if(response.getString(\"status\").equals(\"succeeded\")){\n //update local data-set and notify recyclerView\n mDataset.remove(mDataset.get(position));\n recyclerView.removeViewAt(position);\n flashcardSetRecyclerAdapter.notifyItemRemoved(position);\n flashcardSetRecyclerAdapter.notifyItemRangeChanged(position, mDataset.size());\n\n if(mDataset.isEmpty()){\n emptyView.setVisibility(View.VISIBLE);\n }\n }\n else {\n Toast.makeText(getApplicationContext(), \"Could not connect to server\", Toast.LENGTH_SHORT).show();\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(\"LOGIN ERROR\", error.toString());\n }\n });\n\n queue.add(request);\n\n }",
"@RequestMapping(\"delete\")\n public SysResult deleteCart(Cart cart){\n try{\n cs.deleteCart(cart);\n return SysResult.ok();\n }catch(Exception e){\n e.printStackTrace();\n return SysResult.build(201,\"\",null);\n }\n }",
"void removeProduct(int position) throws ProductNotFoundException;",
"public void postDelete(HttpServletRequest arg0, ContentList contentList) {\n\t\t\r\n\t}",
"public void deleteProduct() {\n deleteButton.click();\n testClass.waitTillElementIsVisible(emptyShoppingCart);\n Assert.assertEquals(\n \"Message is not the same as expected\",\n MESSAGE_EMPTY_SHOPPING_CART,\n emptyShoppingCart.getText());\n }",
"@Override\n\t\t\tpublic void onClick(final AjaxRequestTarget target)\n\t\t\t{\n\t\t\t\tmessageDao.delete(getModelObject());\n\n\t\t\t\t// update the list\n\t\t\t\ttarget.addComponent(container);\n\t\t\t}",
"@RequestMapping(value = \"/api/todo-items/{id}\", method = RequestMethod.DELETE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)\n\tpublic ResponseEntity<TodoItem> deleteItem(@PathVariable(\"id\") long id) {\n\t\tSystem.out.println(\"Fetching & Deleting task with id \" + id);\n\n\t\tTodoItem item = todoItemService.findById(id);\n\t\tif (item == null) {\n\t\t\tSystem.out.println(\"Unable to delete. Item with id \" + id + \" not found\");\n\t\t\treturn new ResponseEntity<TodoItem>(HttpStatus.NOT_FOUND);\n\t\t}\n\n\t\ttodoItemService.delete(id);\n\t\treturn new ResponseEntity<TodoItem>(HttpStatus.NO_CONTENT);\n\t}",
"boolean deleteProduct(ProductDTO productDTO, Authentication authentication);",
"private void deleteAllProducts() {\n int rowsDeleted = getContentResolver().delete(ProductEntry.CONTENT_URI, null, null);\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then there was an error with the delete.\n Toast.makeText(this, getString(R.string.catalog_delete_all_products_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the delete was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.catalog_delete_all_products_successful),\n Toast.LENGTH_SHORT).show();\n }\n }",
"public void removeItem() {\r\n\t\tlog.info(\"Remove item\");\r\n\t\tsu.waitElementClickableAndClick(LocatorType.Xpath, CartSplitViewField.Remove.getName());\r\n\t}",
"@Override\n\tpublic int delete(ProductDTO dto) {\n\t\treturn 0;\n\t}",
"public synchronized void deleteItem(Product product){\n carrito.set(product.getId(), null);\n }",
"@Override\n\tpublic void doDelete(String product) throws SQLException {\n\t\t\n\t}"
] | [
"0.6316829",
"0.62800574",
"0.6256609",
"0.6249483",
"0.6226783",
"0.6168359",
"0.611487",
"0.6099312",
"0.6092368",
"0.60516727",
"0.60370153",
"0.6006123",
"0.59914684",
"0.5983789",
"0.5980531",
"0.5927764",
"0.5910227",
"0.5909917",
"0.5907242",
"0.5901129",
"0.5881182",
"0.5878821",
"0.5864543",
"0.5858229",
"0.5822009",
"0.5818811",
"0.58180803",
"0.5816304",
"0.57818794",
"0.57793653",
"0.577481",
"0.5759046",
"0.5758849",
"0.5754135",
"0.5745327",
"0.57362956",
"0.5734156",
"0.57281524",
"0.5720089",
"0.5700449",
"0.56963253",
"0.5695279",
"0.56948525",
"0.56733173",
"0.5671583",
"0.56486106",
"0.563082",
"0.5600556",
"0.55858374",
"0.55674165",
"0.5557963",
"0.5549354",
"0.55424196",
"0.55212426",
"0.5503985",
"0.54992414",
"0.54958576",
"0.54938644",
"0.5483932",
"0.5476069",
"0.5471626",
"0.5465183",
"0.54597807",
"0.54593664",
"0.54563385",
"0.54553175",
"0.5445999",
"0.5445546",
"0.54421437",
"0.54375386",
"0.5429283",
"0.54280627",
"0.5418833",
"0.54185563",
"0.54046386",
"0.53868824",
"0.53856266",
"0.5384432",
"0.53830063",
"0.5381688",
"0.5379909",
"0.53766274",
"0.5373756",
"0.53659874",
"0.53644407",
"0.5353286",
"0.53493434",
"0.53373975",
"0.5335203",
"0.5332777",
"0.5329259",
"0.53284764",
"0.532381",
"0.53133875",
"0.5311083",
"0.5306684",
"0.53060675",
"0.53035235",
"0.53032976",
"0.53031546"
] | 0.6989072 | 0 |
Handle the AJAX request to "/editOrderMinus" URL to remove one item of the particular product from the basket. | @GetMapping(value = "/editOrderMinus", produces = {MediaType.APPLICATION_JSON_VALUE})
@ResponseBody
public ResponseEntity<List> editOrderFromBasketMinusAjax(@RequestParam(name = "editOrderMinus") int id,
HttpSession session) {
List<Number> result = basketService.editOrderMinus(id, session);
logger.info("Item of product removed from basket");
return new ResponseEntity<>(result, HttpStatus.OK);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeItem() {\r\n\t\tlog.info(\"Remove item\");\r\n\t\tsu.waitElementClickableAndClick(LocatorType.Xpath, CartSplitViewField.Remove.getName());\r\n\t}",
"private void btnRemoveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnRemoveActionPerformed\n if(tblOrders.getSelectedRow() == -1)\n {\n lblMessage.setText(\"Select Product First\");\n }\n else\n {\n DefaultTableModel model = (DefaultTableModel)tblOrders.getModel();\n int productId = \n Integer.parseInt(String.valueOf(model.getValueAt(tblOrders.getSelectedRow(), 0)));\n \n loggedInCustomer.findLatestOrder().removeOrderLine(productId);\n \n model.removeRow(tblOrders.getSelectedRow());\n \n lblMessage.setText(\"Product Has Been Removed\");\n lblTotalCost.setText(\"£\" + String.format(\"%.02f\",loggedInCustomer.findLatestOrder().getOrderTotal()));\n }\n }",
"ResponseEntity<Cart> removeCartItem(CartFormData formData);",
"private void eliminarProducto(HttpServletRequest request, HttpServletResponse response) {\n\t\tString codArticulo = request.getParameter(\"cArticulo\");\n\t\t// Borrar producto de la BBDD\n\t\ttry {\n\t\t\tmodeloProductos.borrarProducto(codArticulo);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// Volver al listado con la info actualizada\n\t\tobtenerProductos(request, response);\n\n\t}",
"ShoppingBasket removeProductItem(Long shoppingBasketId, Long productItemId);",
"@GetMapping(\"/subtract/{id}\")\r\n\tpublic String subtract(@PathVariable(\"id\") int theId, HttpSession theSession, Model theModel,\r\n\t\t\tHttpServletRequest theHttpServletRequest) {\r\n\r\n\t\tProduct theProduct = prodRepo.getOne(theId);\r\n\r\n\t\tHashMap<Integer, Cart> cart = (HashMap<Integer, Cart>) theSession.getAttribute(\"cart\");\r\n\t\tint qty = cart.get(theId).getQuantity();\r\n\t\tif (qty == 1) {\r\n\t\t\tcart.remove(theId);\r\n\t\t\tif (cart.size() == 0) {\r\n\t\t\t\ttheSession.removeAttribute(\"cart\");\r\n\t\t\t}\r\n\t\t} else {\r\n\r\n\t\t\tcart.put(theId, new Cart(theId, theProduct.getName(), theProduct.getPrice(), --qty, theProduct.getImage()));\r\n\t\t}\r\n\r\n\t\tString refererLink = theHttpServletRequest.getHeader(\"referer\");\r\n\r\n\t\treturn \"redirect:\" + refererLink;\r\n\t}",
"public String ajaxRemoveFromList() throws Exception {\n\t\tJSONObject json = new JSONObject(Constant.getObjectBean().getData());\n\t\tString groupId = json.getString(ApplyItemConstant.KEY_GROUP_ID);\n\t\tString playerId = json.getString(ApplyItemConstant.KEY_PLAYER_ID);\n\t\tXMLCREATE = XmlService.adminRemoveSTBOutToGroup(playerId);\n\t\tModelService.adminRemoveSTBOutToGroup(XMLCREATE);\n\t\t// reload group DB\n\t\treturn getSetupBox(groupId);\n\t}",
"void removeProduct(Product product);",
"public void Remove_button() {\n\t\tProduct product = (Product) lsvProduct.getSelectionModel().getSelectedItem();\n\t\tif (product!=null) {\n\t\t\tint ind = lsvProduct.getSelectionModel().getSelectedIndex();\n\t\t\tcart.removeProduct(product);\n\t\t\tcart.removePrice(ind);\n\t\t\tcart.removeUnit(ind);\n\t\t}\n\t\tthis.defaultSetup();\n\t}",
"public void remove(int index){\n if (myBasket.size() == 0)\n System.out.println(\"List is empty.\");\n int i = 0 ;\n boolean isFound = false;\n Product toRemove = null;\n for (Product product: myBasket.keySet())\n {\n i++;\n if (i == index && myBasket.get(product) > 0)\n {\n isFound = true;\n toRemove = product;\n break;\n\n }\n }\n if (!isFound)\n System.out.println(\"Sorry. Invalid index!\");\n\n // now , checking how many of this product is in the basket\n\n else if (myBasket.get(toRemove) > 1){\n System.out.println(\"How many of this product do you want to give back?\");\n Scanner scanner = new Scanner(System.in);\n int num = scanner.nextInt();\n if (num < myBasket.get(toRemove)) {\n totalCost -= toRemove.getPrice() * num;\n myBasket.replace(toRemove,myBasket.get(toRemove) - num);\n for (int j = 0 ; j < num ; j++)\n inventory.updateStock(toRemove , '+');\n }\n else {\n totalCost -= toRemove.getPrice() * myBasket.get(toRemove);\n myBasket.remove(toRemove);\n for (int j = 0 ; j < myBasket.get(toRemove) ; j++)\n inventory.updateStock(toRemove,'+');\n }\n System.out.println(\"Product removed.\");\n }\n\n // there is just one of this product in basket\n\n else {\n totalCost -= toRemove.getPrice();\n myBasket.remove(toRemove);\n System.out.println(\"Product removed.\");\n inventory.updateStock(toRemove , '+');\n }\n }",
"@GetMapping(value = \"/delete\", produces = {MediaType.APPLICATION_JSON_VALUE})\n @ResponseBody\n public ResponseEntity<Double> deleteFromBasketAjax(@RequestParam(name = \"delete\") int id,\n HttpSession session) {\n Double totalPrice = basketService.deleteFromBAsket(id, session);\n logger.info(\"Product deleted from basket completely\");\n return new ResponseEntity<>(totalPrice, HttpStatus.OK);\n }",
"@Override\r\n\t\t\t\t\t\t\tpublic void handle(ActionEvent arg0) {\n\t\t\t\t\t\t\t\troot.getChildren().remove(product);\r\n\t\t\t\t\t\t\t}",
"void removeCartItem(int cartItemId);",
"public void handleRemoveItem(ActionEvent actionEvent) {\n\t\tString id = txtDisID.getText();\n\n\t\tAlert alert = new Alert(Alert.AlertType.CONFIRMATION);\n\t\talert.setTitle(\"Confirmation Dialog\");\n\t\talert.setHeaderText(\"Are you sure, you want to remove this item?\");\n\t\talert.setContentText(\"this item will remove permanently from the database.\");\n\n\t\tif(!id.isEmpty() && id != null){\n\t\t\tOptional<ButtonType> result = alert.showAndWait();\n\t\t\tif (result.get() == ButtonType.OK){\n\t\t\t\ttry {\n\t\t\t\t\tItemDAO.deleteItemById(id);\n\t\t\t\t\trefreshTable();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\tExp.displayException(e);\n\t\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t\tExp.displayException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\talert = new Alert(Alert.AlertType.ERROR);\n\t\t\talert.setTitle(\"Error\");\n\t\t\talert.setHeaderText(\"There is no selected item to Remove\");\n\t\t\talert.setContentText(\"Please select the item before remove !\");\n\n\t\t\talert.showAndWait();\n\t\t}\n\t}",
"@GetMapping(value = \"/editOrderPlus\", produces = {MediaType.APPLICATION_JSON_VALUE})\n @ResponseBody\n public ResponseEntity<List> editOrderFromBasketPlusAjax(@RequestParam(name = \"editOrderPlus\") int id,\n HttpSession session) {\n List<Number> result = basketService.editOrderPlus(id, session);\n logger.info(\"Item of product added to basket\");\n return new ResponseEntity<>(result, HttpStatus.OK);\n }",
"@RequestMapping(value = \"remove\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public void remove(HttpServletRequest httpRequest, @RequestParam String menuItemId\n ) throws IOException {\n DataToken dataToken = SecurityUtils.getDataToken(httpRequest);\n\n menuItemsRepository.delete(menuItemId);\n\n }",
"@Override\n\tpublic void removeItem(Session session){\n\t\ttry{\n\t\t\tSystem.out.print(\"*--------------Remove Items here--------------*\\n\");\n\t\t\t//scanner class allows the admin to enter his/her input\n\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\t//read input item id\n\t\t\tSystem.out.print(\"Enter Item Id to delete the item: \");\n\t\t\tint itemId = scanner.nextInt();\n\n\t\t\t//pass these input items to client controller\n\t\t\tsamp=mvc.removeItem(session,itemId);\n\t\t\tSystem.out.println(samp);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App- Remove Items Exception: \" +e.getMessage());\n\t\t}\n\t}",
"protected abstract void removeItem();",
"public void eliminar(Producto producto) throws BusinessErrorHelper;",
"void removeProduct(int position) throws ProductNotFoundException;",
"private void deleteOrder(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}",
"@FXML private void handleAddProdDelete(ActionEvent event) {\n Part partDeleting = fxidAddProdSelectedParts.getSelectionModel().getSelectedItem();\n \n if (partDeleting != null) {\n //Display Confirm Box\n Alert confirmDelete = new Alert(Alert.AlertType.CONFIRMATION);\n confirmDelete.setHeaderText(\"Are you sure?\");\n confirmDelete.setContentText(\"Are you sure you want to remove the \" + partDeleting.getName() + \" part?\");\n Optional<ButtonType> result = confirmDelete.showAndWait();\n //If they click OK\n if (result.get() == ButtonType.OK) {\n //Delete the part.\n partToSave.remove(partDeleting);\n //Refresh the list view.\n fxidAddProdSelectedParts.setItems(partToSave);\n\n Alert successDelete = new Alert(Alert.AlertType.CONFIRMATION);\n successDelete.setHeaderText(\"Confirmation\");\n successDelete.setContentText(partDeleting.getName() + \" has been removed from product.\");\n successDelete.showAndWait();\n }\n } \n }",
"private void removeProduct() {\n\t\tif (!CartController.getInstance().isCartEmpty()) {\n\t\t\tSystem.out.println(\"Enter Product Id - \");\n\t\t\tint productId = getValidInteger(\"Enter Product Id - \");\n\t\t\twhile (!CartController.getInstance().isProductPresentInCart(\n\t\t\t\t\tproductId)) {\n\t\t\t\tSystem.out.println(\"Enter Valid Product Id - \");\n\t\t\t\tproductId = getValidInteger(\"Enter Product Id - \");\n\t\t\t}\n\t\t\tCartController.getInstance().removeProductFromCart(productId);\n\t\t} else {\n\t\t\tDisplayOutput.getInstance().displayOutput(\n\t\t\t\t\t\"\\n-----Cart Is Empty----\\n\");\n\t\t}\n\t}",
"@Override\n\tpublic void removeOrderLine(int cartIndex) {\n\t\t\n\t}",
"public void removeTopProductFromCart() {\n\t\tWebElement result=null;\n\t\tString xpath=buildXPathToRemove(1);\n\t\tresult = selenium.findElement(By.xpath(xpath));\n\t\tresult.click();\n\t}",
"void removeOrderItem(OrderItem target);",
"public static void removeProduct(Scanner input) {\n\n\t\tif (basket.isEmpty()) {\n\t\t\tSystem.out.println(\"No products in you basket yet.\");\n\t\t\treturn;\n\t\t} else {\n\n\t\t\tSystem.out.println(\"In your basket you have:\");\n\n\t\t\tshowBasket();\n\n\t\t\tSystem.out.println(\"Enter the ID of the product you don't want.\");\n\n\t\t\tint productId = productValidation(input, basket);\n\n\t\t\tint productQuantity = 0;\n\n\t\t\tif (basket.get(productId).getQuantity() > 1) {\n\n\t\t\t\tSystem.out.printf(\"You have more than one %s.%n\", basket.get(productId).getName());\n\t\t\t\tSystem.out.println(\"Press 1 to remove all or 2 to remove some.\");\n\n\t\t\t\tif (TwoOptiosValidation.check(input) == 1) {\n\t\t\t\t\tbasket.remove(productId);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"How many would you like to remove?\");\n\t\t\t\t\tproductQuantity = quantityValidation(input, productId, basket);\n\t\t\t\t\tif (productQuantity == basket.get(productId).getQuantity()) {\n\t\t\t\t\t\tbasket.remove(productId);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbasket.get(productId).setQuantity(basket.get(productId).getQuantity() - productQuantity);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tbasket.remove(productId);\n\t\t\t}\n\n\t\t\tProductsList.cancelOrder(productId, productQuantity);\n\n\t\t\tSystem.out.println(\"Done\");\n\n\t\t}\n\n\t\tSystem.out.println();\n\n\t}",
"public void removeOrder(){\n foods.clear();\n price = 0;\n }",
"protected abstract void removeRequest ();",
"public static void removeOrderedItem() {\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out.println(\"************Removing ordered item************\");\n\t\tOrderManager orderManager = new OrderManager();\n\t\tList listOfOrders = orderManager.viewOrder();\n\n\t\tOrderedItemManager orderedItemManager = new OrderedItemManager();\n\t\tList listOfOrderedItems = null;\n\n\t\tint i = 0;\n\t\tint choice = 0;\n\t\tOrder order = null;\n\t\tOrderedItem orderedItem = null;\n\t\tboolean check = false;\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tif (listOfOrders.size() == 0) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"There is no orders!\");\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tSystem.out.println();\n\t\t\t// print the list of orders for the user to select from.\n\t\t\tfor (i = 0; i < listOfOrders.size(); i++) {\n\t\t\t\torder = (Order) listOfOrders.get(i);\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.println((i + 1) + \") Order: \" + order.getId()\n\t\t\t\t\t\t+ \" | Table: \" + order.getTable().getId());\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\tSystem.out.print(\"Select an order to remove the item ordered: \");\n\t\t\tchoice = Integer.parseInt(sc.nextLine());\n\n\t\t\torder = (Order) listOfOrders.get(choice - 1);\n\n\t\t\tlistOfOrderedItems = orderedItemManager\n\t\t\t\t\t.retrieveOrderedItemsByOrderID(order.getId());\n\n\t\t\tdo {\n\t\t\t\tSystem.out.println();\n\t\t\t\tif (listOfOrderedItems.size() == 0) {\n\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\t\tSystem.out.println(\"There is no ordered items!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tfor (i = 0; i < listOfOrderedItems.size(); i++) {\n\t\t\t\t\torderedItem = (OrderedItem) listOfOrderedItems.get(i);\n\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\t\tSystem.out.println((i + 1) + \") ID: \"\n\t\t\t\t\t\t\t+ orderedItem.getItem().getId() + \" | Name: \"\n\t\t\t\t\t\t\t+ orderedItem.getItem().getName() + \" | $\"\n\t\t\t\t\t\t\t+ orderedItem.getPrice());\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\tSystem.out.println((i + 1) + \") Done\");\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.print(\"Select an ordered item to remove from order: \");\n\t\t\t\tchoice = Integer.parseInt(sc.nextLine());\n\n\t\t\t\tif (choice != (i + 1)) {\n\t\t\t\t\torderedItem = (OrderedItem) listOfOrderedItems\n\t\t\t\t\t\t\t.get(choice - 1);\n\n\t\t\t\t\tcheck = orderedItemManager.removeOrderedItem(orderedItem);\n\n\t\t\t\t\tif (check) {\n\t\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"Ordered item removed from order successfully!\");\n\t\t\t\t\t\tlistOfOrderedItems.remove(orderedItem);\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"Failed to remove ordered item from order!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} while (choice != (i + 1));\n\n\t\t}\n\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"Invalid Input!\");\n\t\t}\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out.println(\"************End of removing items************\");\n\t}",
"public void removeItem(int id);",
"public void buttonRemoveItem(ActionEvent actionEvent) {\n }",
"@FXML\n\tpublic void removeOrder() {\n\t\tString orderNumber = Integer.toString(order.getOrderNum());\n\t\tboolean isSeen = order.isSeen();\n\t\tboolean isPreparable = order.isPreparable();\n\t\tboolean isPrepared = order.isPrepared();\n\t\tboolean isDelivered = order.isDelivered();\n\t\tif ((isSeen == false) && (isPreparable == true) && (isPrepared == false) && (isDelivered == false)) {\n\t\t\tString[] parameters = new String[1];\n\t\t\tparameters[0] = orderNumber;\n\t\t\tmainController.getPost().notifyMainController(\"RemoveOrderStrategy\", parameters);\n\t\t\tmainController.modifyOrderStatus(order.getOrderNum(), OrderStatus.DELIVERED);\n\t\t\tmainController.removeOrderFromTableView(order);\n\t\t} else if ((isSeen == true) && (isPreparable == false) && (isPrepared == false) && (isDelivered == false)) {\n\t\t\tmainController.removeOrderFromTableView(order);\n\t\t} else {\n\t\t\tremoveErrorLabel.setText(\"The order can't be removed!\");\n\t\t}\n\t}",
"private void deleteProduct(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException {\n\t\tString theProduct=request.getParameter(\"deleteProduct\");\n\t\tdaoPageAdmin.DeleteProduct(theProduct);\n\t\tloadProduct(request, response);\n\t}",
"protected void removeButtonActionPerformed() {\n\t\tFoodTruckManagementSystem ftms = FoodTruckManagementSystem.getInstance();\n\t\t// Initialize controller\n\t\tMenuController mc = new MenuControllerAdapter();\n\n\t\t// Get selected supply type\n\t\tSupply supply = null;\n\t\ttry {\n\t\t\tsupply = item.getSupply(supplyList.getSelectedIndex());\n\t\t} catch (NullPointerException | IndexOutOfBoundsException e) {\n\t\t}\n\t\t\n\t\t// Remove from item\n\t\ttry {\n\t\t\tmc.removeIngredient(item, supply);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\t\t\n\t\trefreshData();\n\t\t\n\t}",
"public void removeExtras() {\n Object selected = extraSelected.getSelectionModel().getSelectedItem();\n sandwhich.remove(selected);\n orderPrice.clear();\n String price = new DecimalFormat(\"#.##\").format(sandwhich.price());\n orderPrice.appendText(\"$\"+price);\n extraSelected.getItems().remove(selected);\n extraOptions.getItems().add(selected);\n }",
"public void actionPerformed(ActionEvent e) {\n JButton button = (JButton) e.getSource();\n if(button.getText().equals(removeButton.getText()))\n {\n if(textItemName.getText().length() == 0)\n {\n Item item = dep.getListProducts().getItemId(Integer.parseInt(textItemId.getText()));\n if(item == null)\n {\n noRemove.setVisible(true);\n noCorespondence.setVisible(false);\n }\n else\n {\n dep.getListProducts().remove(item);\n Notification notification = new Notification(depId,Integer.parseInt(textItemId.getText()),NotificationType.REMOVE);\n dep.NotifyRemove(notification);\n noRemove.setVisible(false);\n tableModel.fireTableDataChanged();\n dispose();\n }\n }\n if(textItemId.getText().length() == 0)\n {\n Item item = dep.getListProducts().getItemName(textItemName.getText());\n if(item == null)\n {\n noRemove.setVisible(true);\n noCorespondence.setVisible(false);\n }\n else\n {\n dep.getListProducts().remove(item);\n Notification notification = new Notification(depId,item.getId(),NotificationType.REMOVE);\n dep.NotifyRemove(notification);\n noRemove.setVisible(false);\n tableModel.fireTableDataChanged();\n dispose();\n }\n }\n if(textItemId.getText().length() != 0 && textItemId.getText().length() != 0)\n {\n Item item = dep.getListProducts().getItemId(Integer.parseInt(textItemId.getText()));\n if(item == null)\n {\n noRemove.setVisible(true);\n noCorespondence.setVisible(false);\n }\n else\n {\n if(item.getName().equals(textItemName.getText()))\n {\n dep.getListProducts().remove(item);\n Notification notification = new Notification(depId,Integer.parseInt(textItemId.getText()),NotificationType.MODIFY);\n dep.NotifyRemove(notification);\n noCorespondence.setVisible(false);\n tableModel.fireTableDataChanged();\n dispose();\n }\n else\n {\n noCorespondence.setVisible(true);\n }\n }\n }\n\n }\n }",
"@Override\n public void onClick(View v) {\n\n final ActiveShoppingCartActivity ref = (ActiveShoppingCartActivity) getActivity();\n\n AsyncHttpClient client = new AsyncHttpClient();\n client.delete(\"http://ec2-52-86-213-15.compute-1.amazonaws.com/api/v1/cartItems/\", new AsyncHttpResponseHandler() {\n @Override\n public void onStart() {\n // Initiated the request\n\n }\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n // Successfully got a response\n try {\n JSONArray jsonData = new JSONArray(new String(responseBody));\n ref.buildNewListOfData(jsonData);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable\n error)\n {\n // Response failed :(\n Log.v(\"Request failed\", error.getLocalizedMessage());\n }\n });\n\n ref.closePopup();\n dismiss();\n }",
"@FXML void onActionModifyProductRemovePart(ActionEvent event) {\n Part selectedPart = associatedPartTableView.getSelectionModel().getSelectedItem();\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Do you want to delete this part?\");\n Optional<ButtonType> result = alert.showAndWait();\n if(result.isPresent() && result.get() == ButtonType.OK) {\n tmpAssociatedParts.remove(selectedPart);\n }\n }",
"@Action( ACTION_REMOVE_FEATURE )\r\n public String doRemoveFeature( HttpServletRequest request )\r\n {\r\n int nId = Integer.parseInt( request.getParameter( PARAMETER_ID_FEATURE ) );\r\n FeatureHome.remove( nId );\r\n addInfo( INFO_FEATURE_REMOVED, getLocale( ) );\r\n\r\n return redirectView( request, VIEW_MANAGE_FEATURES );\r\n }",
"@RequestMapping(path = \"/remove\", method = RequestMethod.POST)\n\tpublic ResponseEntity<RestResponse<CompanyDTO>> remove(@RequestBody CompanyDTO request) {\n\n\t\tCompanyDTO result = companyService.remove(request);\n\t\t\n\t\tRestResponse<CompanyDTO> restResponse = \n\t\t\t\tnew RestResponse<CompanyDTO>(RestResponseCodes.OK.getCode(), RestResponseCodes.OK.getDescription(), result);\n\t\t\n\t\treturn new ResponseEntity<RestResponse<CompanyDTO>>(restResponse, HttpStatus.OK);\n\t\t\t\n\t}",
"@GetMapping(\"/deleteItem\")\n\tpublic String deleteItem(HttpServletRequest servletRequest) {\n\t\t\n\t\ttoDoListService.deleteById(Long.parseLong(servletRequest.getParameter(\"itemId\"))); // Delete the to do list item record.\n\t\t\n\t\treturn \"redirect:/welcome\";\n\t}",
"@PostMapping(\"/remove-item\")\n Status removeItem(@RequestParam Long userId, Long storeId, Long itemId) {\n return ownerService.removeItem(userId, storeId, itemId);\n }",
"public void removeJpmProductSaleNew(final Long uniNo);",
"@RequestMapping(\n method = RequestMethod.DELETE,\n path = \"{productId}\"\n )\n public void deleteProductFromShoppingCartById(@PathVariable(\"productId\") UUID productId){\n shoppingCartService.deleteProductFromShoppingCartById(productId);\n }",
"public String removeItem() {\n userFacade.printUsersCart(user);\n System.out.println(\"Item to be removed....\" + selectedItem.getName());\n //user.getCart().remove(selectedItem);\n userFacade.removeFromCart(user, selectedItem);\n System.out.println(\"Item to be removed....\" + selectedItem.getName());\n userFacade.printUsersCart(user);\n return \"\";\n }",
"public static void deleteItem()\r\n\t{\r\n\t\tif(receiptList.getSelectedIndex() < listModel.getSize()-4 && receiptList.getSelectedIndex() > -1)\r\n\t\t{\r\n\t\t\tString itemPrice = receiptList.getSelectedValue().substring(0,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treceiptList.getSelectedValue().indexOf(\" \"));\r\n\t\t\t\r\n\t\t\tsubtotalAmount = subtotalAmount - Functions.toAmount(itemPrice);\r\n\t\t\tupdateTotals();\r\n\t\t\t\r\n\t\t\tlistModel.removeElementAt(receiptList.getSelectedIndex());\r\n\t\t\tif(listModel.getSize() == 4)\r\n\t\t\t\tclearReceipt();\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tfor(int count=0; count < 4; count++)\r\n\t\t\t\t\tlistModel.removeElementAt(listModel.getSize()-1);\r\n\t\t\t\tlistModel.addElement(\" \");\r\n\t\t\t\tlistModel.addElement(Functions.toMoney(subtotalAmount) + manualTab(Functions.toMoney(subtotalAmount)) + \"Subtotal \");\r\n\t\t\t\tlistModel.addElement(Functions.toMoney(taxAmount) + manualTab(Functions.toMoney(taxAmount)) + \"Tax\");\r\n\t\t\t\tlistModel.addElement(Functions.toMoney(totalAmount) + manualTab(Functions.toMoney(totalAmount)) + \"Total\");\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n public void onClick(ClickEvent event) {\n onRemoveAction();\n }",
"@ResponseBody\n\t@RequestMapping(value=\"/delete\", method={RequestMethod.GET,\n\t\t\tRequestMethod.POST})\n\tpublic String deleteBoost(HttpServletRequest request, String skuId){\n\t\tsignatureHandler.setPrivateKeyString(rsaResource.get());\n\t\tJSONObject messageBody = new JSONObject();\n\t\tmessageBody.put(\"skuId\", skuId);\n\t\tString signatureJson = null;\n\t\ttry {\n\t\t\tsignatureJson = signatureHandler.sign(messageBody, CookieUtil.getUserName(request));\n\t\t} catch (Exception e1) {\n\t\t\tlogger.error(e1.getMessage(), e1);\n\t\t}\n\t\t\n\t\tString resultJson = null;\n\t\ttry {\n\t\t\tresultJson = HttpRequester.httpPostString(weightBoostConfig.getWeight_path() + weightBoostConfig.getWeight_delete(),\n\t\t\t\t\tsignatureJson);\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t} catch (HttpRequestException e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t} catch (URISyntaxException e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\n\t\treturn resultJson;\n\t}",
"public void deleteItem(ActionEvent actionEvent) {\n // find the list that the item belongs in\n // removeItem() from its parenting list\n }",
"@RequestMapping(value = \"/EliminaMansione/{businessUnit}\", method = RequestMethod.POST)\n\tpublic String elimina(@RequestParam(\"eliminaMansione\") String mansione, @PathVariable String businessUnit) {\n\n\t\tMansione m = dao.get(mansione);\n\n\t\tdao.cancella(m);\n\n\t\tSingleton singleton = Singleton.getInstance();\n\t\tsingleton.aggiornaMansione();\n\n\t\treturn \"redirect:/Mansione/{businessUnit}\";\n\t}",
"public void removeFromOrder(int removeIndex)\r\n\t{\r\n\t\t//remove the Item price from the subtotal\r\n\t\tsubtotal = subtotal.subtract(order[removeIndex].getPrice());\r\n\t\t//filled in the gap in the array from the removal\r\n\t\tfor(int i = removeIndex; i < orderSize; i++)\r\n\t\t{\r\n\t\t\torder[i] = order[i+1];\r\n\t\t}\r\n\t\torder[orderSize] = null;\r\n\t\tSystem.out.println(\"Removing from order confirmed!\");\r\n\t\tModelEvent me = new ModelEvent(this,0,\"order removed\",0);\r\n\t\torderSize--;\r\n\t\tnotifyChanged(me);\r\n\t}",
"public void RemoveproductCartSaucedemo() {\n\t\t\t\t\tdriver.findElement(RemoveProduct).click();\n\t\t\n\t\t\t\t}",
"public void removeSimulasi(ActionEvent event) {\n SimulasiBean smb = (SimulasiBean) event.getComponent().getAttributes().get(\"itemDelete\");\n //setIdList((String)event.getComponent().getAttributes().get(\"itemDelete\"));\n System.out.println(smb.toString());\n listSImulasi.remove(smb);\n BigDecimal t = BigDecimal.ZERO;\n for (SimulasiBean o : listSImulasi) {\n t = t.add((BigDecimal) (o.charge));\n //t = t + (Integer) o.charge;\n }\n setTotal(t);\n }",
"public void decreaseQuantity() {\n this.quantity--;\n this.updateTotalPrice();\n }",
"public void removeItem(Product p) throws IOException {\n for(Product l: this.cartContents)\n System.out.println(l.getProductName());\n this.cartContents.remove(p);\n this.saveCart();\n }",
"public void userClicksRemoveItemsFromCartButton() {\n UtilityHelper.waitUntilClickable(UnavailableItems_Modal_Button);\n UtilityHelper.click(UnavailableItems_Modal_Button);\n UtilityHelper.waitUntilElementNotVisible(UnavailableItems_Modal);\n }",
"private void removeProduct(int id)\n {\n manager.removeProduct(id);\n }",
"public void removeShipment(){\n String message = \"Choose one of the shipment to remove\";\n if (printData.checkAndPrintShipment(message,data.getBranchEmployee(ID).getBranchID())){\n subChoice = GetChoiceFromUser.getSubChoice(data.numberOfShipment());\n if (subChoice!=0){\n data.getBranch(data.getShipment(subChoice-1).getBranchID()).removeShipment(data.getShipment(subChoice-1));\n data.removeShipment(data.getShipment(subChoice-1),data.getShipment(subChoice-1).getReceiver());\n System.out.println(\"Your Shipment has removed Successfully!\");\n }\n }\n }",
"public void minusQuantity()\n {\n int quantity = Integer.parseInt(quantityTextField.getText());\n if ( quantity == 0 )\n {\n Popup.DisplayError(\"Quantity cannot be negative.\");\n return;\n }\n quantity--;\n quantityTextField.setText(\"\" + quantity);\n\n changeSubtotalTextField();\n }",
"public void removeItemFromList(final int position) {\n AlertDialog.Builder alert = new AlertDialog.Builder(\n mContext);\n\n alert.setTitle(\"Delete\");\n alert.setMessage(\"Do you want delete this item?\");\n alert.setPositiveButton(\"YES\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n\n int val_total=0;\n val_total-=Integer.parseInt(String.valueOf(m.getAl_cart().get(position).getItem_qty()));\n int value=Integer.parseInt(String.valueOf(val_total));\n int tv=Integer.parseInt(String.valueOf(Fragment_cart.tv_cart1.getText()));\n value=value+tv;\n\n\n new Json_ShowCartTotal(mContext).execute(FragmentHome.userid, FragmentHome.usertokn);\n\n FragmentHome.tv_cart2.setText(String.valueOf(value));\n Fragment_cart.tv_cart1.setText(String.valueOf(value));\n\n if(Fragment_cart.tv_cart1.getText().equals(\"0\")){\n\n Fragment_cart.txt_msg.setVisibility(View.VISIBLE);\n Fragment_cart.txt_subtotal.setVisibility(View.INVISIBLE);\n Fragment_cart.btn_order.setVisibility(View.INVISIBLE);\n\n Fragment_cart.tv_total.setVisibility(View.INVISIBLE);\n\n\n\n }\n\n Itemdlt(FragmentHome.userid, FragmentHome.usertokn, m.getAl_cart().get(position).getItemid());\n\n }\n });\n\n alert.setNegativeButton(\"CANCEL\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // TODO Auto-generated method stub\n dialog.dismiss();\n }\n });\n\n alert.show();\n\n }",
"public void clickRemoveButton_SPOItem(int noitemremove) {\n for (int i = 1; i <= noitemremove; i++) {\n WebElement clickremove = getDriver().findElement(By.xpath(\"//*[@id='productGroup_2']/li[\" + i + \"]//a[text()='Remove']\"));\n String nameofproduct = getDriver().findElement(By.xpath(\"//*[@id='productGroup_2']/li[\" + i + \"]//*[@class='product_name']/span\")).getText();\n clickremove.click();\n System.out.println(\"=== Name of the product Removed: \" + nameofproduct);\n listOfDeletedItemNameShoppingCart.add(nameofproduct);\n }\n }",
"@Action( ACTION_CONFIRM_REMOVE_FEATURE )\r\n public String getConfirmRemoveFeature( HttpServletRequest request )\r\n {\r\n int nId = Integer.parseInt( request.getParameter( PARAMETER_ID_FEATURE ) );\r\n UrlItem url = new UrlItem( getActionUrl( ACTION_REMOVE_FEATURE ) );\r\n url.addParameter( PARAMETER_ID_FEATURE, nId );\r\n\r\n String strMessageUrl = AdminMessageService.getMessageUrl( request, MESSAGE_CONFIRM_REMOVE_FEATURE, url.getUrl( ), AdminMessage.TYPE_CONFIRMATION );\r\n\r\n return redirect( request, strMessageUrl );\r\n }",
"public void handleDeleteProducts()\n {\n Product productToDelete = getProductToModify();\n\n if (productToDelete != null)\n {\n // Ask user for confirmation to remove the product from product table\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Confirmation\");\n alert.setHeaderText(\"Delete Confirmation\");\n alert.setContentText(\"Are you sure you want to delete this product?\");\n ButtonType confirm = new ButtonType(\"Yes\", ButtonBar.ButtonData.YES);\n ButtonType deny = new ButtonType(\"No\", ButtonBar.ButtonData.NO);\n ButtonType cancel = new ButtonType(\"Cancel\", ButtonBar.ButtonData.CANCEL_CLOSE);\n alert.getButtonTypes().setAll(confirm, deny, cancel);\n alert.showAndWait().ifPresent(type ->{\n if (type == confirm)\n {\n // User cannot delete products with associated parts\n if (productToDelete.getAllAssociatedParts().size() > 0)\n {\n Alert alert2 = new Alert(Alert.AlertType.ERROR);\n alert2.setTitle(\"Action is Forbidden!\");\n alert2.setHeaderText(\"Action is Forbidden!\");\n alert2.setContentText(\"Products with associated parts cannot be deleted!\\n \" +\n \"Please remove associated parts from product and try again!\");\n alert2.show();\n }\n else\n {\n // delete the product\n inventory.deleteProduct(productToDelete);\n updateProducts();\n productTable.getSelectionModel().clearSelection();\n }\n }\n });\n }\n else\n {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Input Invalid\");\n alert.setHeaderText(\"No product was selected!\");\n alert.setContentText(\"Please select a product to delete from the part table!\");\n alert.show();\n }\n this.productTable.getSelectionModel().clearSelection();\n }",
"public void removeOrderFromSession(HttpServletRequest request) {\n\t\trequest.getSession().removeAttribute(\"shoppingCart\");\n\t\t\n\t}",
"@RequestMapping(method = RequestMethod.DELETE, value = \"/{sku}\")\n\tpublic ResponseEntity<?> removeCatalogItem(@PathVariable String sku) {\n\t\tBraveSpanContext openTracingContext = getTracingContext();\n\t\tio.opentracing.Span span = tracer.buildSpan(\"DeleteCatalogService\").asChildOf(openTracingContext)\n\t\t\t\t.withTag(\"Description\", \"Delete Catalog\")\n\t\t\t\t.withTag(\"http_request_url\", request.getRequestURI()).start();\n\t\tbrave.Span braveSpan = ((BraveSpan) span).unwrap();\n\t\tbraveSpan.kind(Kind.SERVER);\n\t\tSummary.Timer requestTimer = Prometheus.requestLatency.startTimer();\n\t\ttry {\n\t\t\tPrometheus.removeCounters.inc();\n\t\t\tPrometheus.inProgressRequests.inc();\n\t\t\tif (service.removeCatalogItem(sku, null, span)) {\n\t\t\t\treturn new ResponseEntity<Catalog>(HttpStatus.OK);\n\t\t\t} else {\n\t\t\t\treturn new ResponseEntity<Catalog>(HttpStatus.NOT_FOUND);\n\t\t\t}\n\t\t} catch (Exception exc) {\n\t\t\tPrometheus.requestFailures.inc();\n\t\t\tlog.error(\"Error in removeCatalogItem\", exc);\n\t\t\tspan.setTag(\"error\", exc.getMessage());\n\t\t\treturn new ResponseEntity<>(exc.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR);\n\t\t} finally {\n\t\t\trequestTimer.observeDuration();\n\t\t\tPrometheus.inProgressRequests.dec();\n\t\t\tspan.finish();\n\t\t}\n\t}",
"public void removeOrderItem(int prodID)\r\n\t{\r\n\t\t//create temporary variables\r\n\t\tOrderItem temp;\r\n\t\tint test = 0;\r\n\r\n\t\t//iterate through list and compare product ID of each item against the \r\n\t\t//parameter, then remove any items that match\r\n\t\tfor (int x = 0; x < orderItemList.size(); x++) \r\n\t\t{\r\n\t\t\ttemp = orderItemList.get(x);\r\n\t\t\ttest = temp.getProductID();\r\n\t\t\tif (test == prodID) \r\n\t\t\t{\r\n\t\t\t\torderItemList.remove(x);\r\n\t\t\t} //end if\r\n\t\t} //end for\t\t\r\n\t}",
"public void onRemoveRequest(CustomerRequest request);",
"public void decrement(View view) {\n if (quantity > 0) {\n quantity = (quantity - 1);\n submitOrder(quantity);\n } else {\n submitOrder(quantity);\n }\n }",
"public void deleteItem() {\n\t\t\tAsyncCallback<BmUpdateResult> callback = new AsyncCallback<BmUpdateResult>() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\tstopLoading();\n\t\t\t\t\tshowErrorMessage(this.getClass().getName() + \"-deleteItem(): ERROR \" + caught.toString());\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onSuccess(BmUpdateResult result) {\n\t\t\t\t\tstopLoading();\n\t\t\t\t\tprocessItemDelete(result);\n\t\t\t\t}\n\t\t\t};\n\n\t\t\t// Llamada al servicio RPC\n\t\t\ttry {\n\t\t\t\tif (!isLoading()) {\n\t\t\t\t\tstartLoading();\n\t\t\t\t\tgetUiParams().getBmObjectServiceAsync().delete(bmoRequisitionItem.getPmClass(), bmoRequisitionItem, callback);\n\t\t\t\t}\n\t\t\t} catch (SFException e) {\n\t\t\t\tstopLoading();\n\t\t\t\tshowErrorMessage(this.getClass().getName() + \"-deleteItem(): ERROR \" + e.toString());\n\t\t\t}\n\t\t}",
"@Override\n public void remove() throws IOException {\n int i = listEnterprisePanel.getTableListE().getSelectedRow(); // chọn hàng để xóa\n if (i >= 0) {\n String strID = listEnterprisePanel.getTableListE().getValueAt(i, 1).toString().trim(); // lấy ID\n Enterprise enterprise = enterpriseBN.getEnterpriseByID(strID); // Tìm kiếm Enterprise theo ID\n content.set(Collections.singleton(enterprise), null);\n enterpriseBN.deleteEnterprise(enterprise);\n model.removeRow(i);\n loadData();\n }\n\n }",
"@FXML\n\tprivate void deleteButtonAction(ActionEvent clickEvent) {\n\t\t\n\t\tPart deletePartFromProduct = partListProductTable.getSelectionModel().getSelectedItem();\n\t\t\n\t\tif (deletePartFromProduct != null) {\n\t\t\t\n\t\t\tAlert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Pressing OK will remove the part from the product.\\n\\n\" + \"Are you sure you want to remove the part?\");\n\t\t\n\t\t\tOptional<ButtonType> result = alert.showAndWait();\n\t\t\n\t\t\tif (result.isPresent() && result.get() == ButtonType.OK) {\n\t\t\t\n\t\t\t\tdummyList.remove(deletePartFromProduct);\n\n\t\t\t}\n\t\t}\n\t}",
"private void eliminar(HttpServletRequest request, HttpServletResponse response) {\n\t\n\t\ttry {\n\t\t\tString numero =request.getParameter(\"idCliente\");//leo parametro numeroHabitacion de la vista\n\t\t\t\n\t\t\t//llamo a un metodo del modelo para que elimine el editorial de la bd y consulto si se pudo eliminar\n\t\t\tif(modelo.eliminarCliente(numero) > 0) {\n\t\t\t\t\n\t\t\t\t//paso un atributo de exito si se pudo eliminar\n\t\t\t\trequest.setAttribute(\"exito\", \"Cliente eliminado exitosamente\");\n\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//paso un atributo de fracaso. \n\t\t\t\trequest.setAttribute(\"fracaso\", \"No se puede eliminar Cliente\");\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//redirecciono sin importar si se pudo o no eliminar\n\t\t\trequest.getRequestDispatcher(\"/clientes.do?op=listar\").forward(request, response);\n\t\t} catch (SQLException | ServletException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\n\t}",
"public void removeBtn(){\r\n\t\t\r\n\t\tWorkflowEntry entryToBeRemoved = (WorkflowEntry) tableView.getSelectionModel().getSelectedItem();\r\n\t\t\r\n\t\tdata.remove(entryToBeRemoved);\r\n\t\t\r\n\t}",
"void removeList(ShoppingList _ShoppingList);",
"@RequestMapping(value=\"/delete/{id}\")\n\tpublic String delete(@PathVariable(\"id\") Integer id)\n\t{\n\t\tItemMap.remove(id);\n\t\tSystem.out.println(\"Item number \"+id+\" is Removed\");\n\t\t\n\t\treturn \"Item number \"+ id+\" is Removed\";\n\t}",
"public void removeItems(Product product, int quantity) throws IllegalArgumentException {\n int qty = quantity;\n \t\t\n if (qty > 0) {\n if (qty <= getNumOfRequestItems()) {\n for (int i = 0; i < qty; i++) {\n this.setRequestValue(getRequestValue() - product.getPrice());\n requestItems.remove(product);\n product.setQuantity(product.getQuantity() + 1);\n }\n }\n } else {\n throw new IllegalArgumentException(\"The number has to be positive.\");\n }\n }",
"Cart deleteFromCart(String code, Long quantity, String userId);",
"@FXML\n\tpublic void handleExcluir(MouseEvent event) {\n\t\tif(colNome.getCellData(jtvIngredienteTable.getSelectionModel().getSelectedIndex()) != null){\n\t\t\tingredienteService = new IngredienteService();\n\t\t\tIngrediente ingrediente = jtvIngredienteTable.getSelectionModel().getSelectedItem();\n\t\t\tingredienteService.delete(ingrediente.getId());\n\t\t\tatualizarTable();\n\t\t}else{\n\t\t\tScreenUtils.janelaInformação(spDialog, Internationalization.getMessage(\"header_erro3\"), Internationalization.getMessage(\"item_nao_selecionado\"), Internationalization.getMessage(\"erro_button2\"));\n//\t\t\tScreenUtils.janelaInformação(spDialog, \"Ops\", \"Por favor, selecione um item.\", \"Sem problemas\");\n\t\t}\n\t}",
"@RequestMapping(value = \"/cartItems/delete/{userId}\", method = RequestMethod.POST)\n //@PostMapping(path = \"/cartItems/add/{userId}\", consumes = \"application/json\")\n public void deleteCartItem(@RequestBody Cart cartItem,@PathVariable(\"userId\") int userId) {\n \n cartService.deleteFromCart(cartItem,userId);\n\n \n }",
"@FXML\n public void removeListItem(ActionEvent event) throws IOException {\n int removeItemIndex = unseenPacketList.getSelectionModel().getSelectedIndex();\n if (removeItemIndex < 0) {\n \tJOptionPane.showMessageDialog(null, \"Cannot remove from already empty list.\");\n } else {\n \tUpdateHandler.getAllPacketsList().remove(removeItemIndex);\n unseenPacketList.getItems().remove(removeItemIndex);\n UpdateHandler.getUnseenPacketListIndex().remove(removeItemIndex);\n }\n \n }",
"public abstract void onRemoveAction();",
"@PostMapping(path=\"/deleteOrder\")\r\n\tpublic String deleteOrder(HttpServletRequest request) {\n\t\tHttpSession session = request.getSession();\r\n\t\tString orderId = request.getParameter(\"deleteOrder\");\r\n\t\tint userId = (int) session.getAttribute(\"userId\");\r\n\t\tString result = smservice.deleteOrder(Integer.parseInt(orderId));\r\n\t\tif(result.equals(\"Deleted\")) {\r\n\t\t\tList<AllOrdersDTO> aod= smservice.getOrders(userId);\r\n\t\t\tsession.setAttribute(\"orderList\", aod);\r\n\t\t}\r\n\t\t\r\n\t\treturn \"orderhistory\";\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"public SimpleProductWithSpecialPriceDetailPage removeProductGalleryFromSimpleProducttWithSpecialPrice() {\n SpriiTestFramework.getInstance().waitForElement(By.xpath(firstImageElement), 20);\n Actions actions = new Actions(driver);\n WebElement target = driver.findElement(By.xpath(firstImageElement));\n actions.moveToElement(target).perform();\n SpriiTestFramework.getInstance().waitForElement(By.xpath(removeElement), 20);\n driver.findElement(By.xpath(removeElement)).click();\n return new SimpleProductWithSpecialPriceDetailPage();\n }",
"public SimpleProduct1WithOriginalPriceDetailPage removeProductGalleryFromSimpleProduct1tWithOriginalPrice() {\n SpriiTestFramework.getInstance().waitForElement(By.xpath(firstImageElement), 20);\n Actions actions = new Actions(driver);\n WebElement target = driver.findElement(By.xpath(firstImageElement));\n actions.moveToElement(target).perform();\n SpriiTestFramework.getInstance().waitForElement(By.xpath(removeElement), 20);\n driver.findElement(By.xpath(removeElement)).click();\n return new SimpleProduct1WithOriginalPriceDetailPage();\n }",
"@Override\n public void removeMenu(Items item) {\n int index = getCartIndex(item);\n if (index >= 0) {\n Items cartItem = mCartAdapter.getmCartItemsList().get(index);\n cartItem.setItemQuantity(cartItem.getItemQuantity() - 1);\n if (cartItem.getItemQuantity() == 0) {\n mCartAdapter.getmCartItemsList().remove(index);\n }\n// else {\n// mCartAdapter.getmCartItemsList().set(index, cartItem);\n// }\n item.setItemQuantity(item.getItemQuantity() - 1);\n updateCartMenu();\n } else { // Duplicate item available in cart\n Toast.makeText(OrderOnlineActivity.this, getResources().getString(R.string.multiple_customisation_error), Toast.LENGTH_LONG).show();\n }\n }",
"public SimpleProduct3WithSpecialPriceDetailPage removeProductGalleryFromSimpleProduct3tWithSpecialPrice() {\n SpriiTestFramework.getInstance().waitForElement(By.xpath(firstImageElement), 20);\n Actions actions = new Actions(driver);\n WebElement target = driver.findElement(By.xpath(firstImageElement));\n actions.moveToElement(target).perform();\n SpriiTestFramework.getInstance().waitForElement(By.xpath(removeElement), 20);\n driver.findElement(By.xpath(removeElement)).click();\n return new SimpleProduct3WithSpecialPriceDetailPage();\n }",
"void deleteProduct(Integer productId);",
"@Override\n public void onClick(View v)\n {\n CharSequence options[] = new CharSequence[] //this will popup with options when any item is clicked\n {\n \"Edit\",\n \"Remove\"\n };\n AlertDialog.Builder builder = new AlertDialog.Builder(CartListActivity.this);\n builder.setTitle(\"Cart Options:\");\n\n builder.setItems(options, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which)\n {\n if(which == 0)\n {\n Intent intent = new Intent(CartListActivity.this, ProductDetailActivity.class);\n intent.putExtra(\"pCode\", model.getProductCode());\n startActivity(intent);\n }\n if(which == 1)\n {\n cartListRef.child(\"User List\").child(\"Products\")\n .child(model.getProductCode())\n .removeValue()\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task)\n {\n if (task.isSuccessful())\n {\n Toast.makeText(CartListActivity.this, \"Item Removed Successfully.\", Toast.LENGTH_SHORT).show();\n Intent intent = new Intent(CartListActivity.this, NavMainActivity.class);\n startActivity(intent);\n }\n\n }\n });\n }\n }\n });\n builder.show();\n }",
"void delete(ShoppingBasket shoppingBasket);",
"@PutMapping(\"/subtract\")\n public void subtractFromAvailablePieces(\n @RequestParam(\"id\") String id,\n @RequestParam(\"amount\") Integer amount\n ){\n productService.subtractFromAvailablePieces(id, amount);\n }",
"public void removeIngre(Button btn, RecipeTM tm, ObservableList<RecipeTM> obList) {\r\n btn.setOnAction((e) -> {\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setTitle(\"Warning\");\r\n alert.setContentText(\"Are you sure ?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.get() == ButtonType.OK) {\r\n try {\r\n deleteResIngre(tm.getIngreID(), cmbCakeID.getSelectionModel().getSelectedItem());\r\n } catch (SQLException | ClassNotFoundException throwables) {\r\n throwables.printStackTrace();\r\n }\r\n obList.remove(tm);\r\n tblRecipe.refresh();\r\n }\r\n });\r\n }",
"private void removeAllWeightBasedProduct(Product product){\n total-= cartItems.get(product.name).cost();\n noOfItems--;\n cartItems.remove(product.name);\n }",
"public SimpleProduct4WithOriginalPriceDetailPage removeProductGalleryFromSimpleProduct4tWithOriginalPrice() {\n SpriiTestFramework.getInstance().waitForElement(By.xpath(firstImageElement), 20);\n Actions actions = new Actions(driver);\n WebElement target = driver.findElement(By.xpath(firstImageElement));\n actions.moveToElement(target).perform();\n SpriiTestFramework.getInstance().waitForElement(By.xpath(removeElement), 20);\n driver.findElement(By.xpath(removeElement)).click();\n return new SimpleProduct4WithOriginalPriceDetailPage();\n }",
"@RequestMapping(path=\"/eliminar\", method=RequestMethod.GET)\r\n\tpublic String deleteProduct(@RequestParam(name=\"id\")int id,Model model) {\n\t\tproductoDAO.deleteProducto(id);\r\n\t\t//retornamos lista de productos\r\n\t\treturn \"redirect:/producto\";\r\n\t}",
"@PreAuthorize(\"hasAuthority('PARENT')\")\n\t@RequestMapping(value = \"/delete/{id}\", method = RequestMethod.GET)\n\tpublic String deleteItem(@PathVariable(\"id\") Long itemId, Model model) {\n\t\trepository.deleteById(itemId);\n\t\treturn \"redirect:../itemlist\";\n\t}",
"@RequestMapping(\"/delete\")\n\tpublic String delete(HttpServletRequest request, Model model) {\n\t\tdao.delete(request.getParameter(\"bId\"));\n\t\treturn \"redirect:list\"; \n\t}",
"@Override\n public void onComplete(@NonNull Task<Void> task) {\n if(task.isSuccessful()){\n\n if(cartItemModelList.size() !=0 ){\n cartItemModelList.remove(index);\n MyCartFragment.cartAdapter.notifyDataSetChanged();\n }\n if (cartList.size() == 0 ){\n LinearLayout parent = (LinearLayout) cartTotalAmount.getParent().getParent();\n parent.setVisibility(View.GONE);\n cartItemModelList.clear();\n }\n Toast.makeText(context, \"removed successfully!!\", Toast.LENGTH_SHORT).show();\n }\n else{\n cartList.add(index,removedProductId);\n String error = task.getException().getMessage();\n Toast.makeText(context, error, Toast.LENGTH_SHORT).show();\n }\n// if (ProductDetailsActivity.addToWishListBtn != null) {\n// ProductDetailsActivity.addToWishListBtn.setEnabled(true);\n// }\n\n ProductDetailsActivity.running_cart_query = false;\n }",
"@FXML\n\tpublic void deleteProduct(ActionEvent event) {\n\t\tif (!txtDeleteProductName.getText().equals(\"\")) {\n\t\t\ttry {\n\n\t\t\t\tList<Product> productToDelete = restaurant.findSameProduct(txtDeleteProductName.getText());\n\t\t\t\tboolean delete = restaurant.deleteProduct(txtDeleteProductName.getText());\n\t\t\t\tif (delete == true) {\n\t\t\t\t\tfor (int i = 0; i < productOptions.size(); i++) {\n\t\t\t\t\t\tfor (int j = 0; j < productToDelete.size(); j++) {\n\t\t\t\t\t\t\tif (productOptions.get(i) != null && productOptions.get(i)\n\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(productToDelete.get(j).getReferenceId())) {\n\t\t\t\t\t\t\t\tproductOptions.remove(productToDelete.get(j).getReferenceId());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\ttxtDeleteProductName.setText(\"\");\n\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"No se pudo guardar la actualización de los productos\");\n\t\t\t\tdialog.setTitle(\"Error guardar datos\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Los campos deben ser llenados\");\n\t\t\tdialog.setTitle(\"Error, Campo sin datos\");\n\t\t\tdialog.show();\n\t\t}\n\t}",
"@GetMapping(\"/misproductos/{id}/eliminar\")\n\tpublic String eliminar(@PathVariable Long id) {\n\t\tProducto p = productoServicio.findById(id);\n\t\tif (p.getCompra() == null)\n\t\t\tproductoServicio.borrar(p);\n\t\treturn \"redirect:/app/misproductos\";\n\t}"
] | [
"0.6295755",
"0.62568897",
"0.6221051",
"0.6205631",
"0.6102288",
"0.6033867",
"0.5968655",
"0.5910623",
"0.59102845",
"0.5815577",
"0.5791495",
"0.57817703",
"0.5758305",
"0.5745303",
"0.56806004",
"0.5653951",
"0.5634829",
"0.55780023",
"0.55339944",
"0.55307144",
"0.5520323",
"0.550936",
"0.55022854",
"0.550147",
"0.55004746",
"0.54904795",
"0.5481923",
"0.5478131",
"0.5474707",
"0.5471238",
"0.54476786",
"0.54436576",
"0.54334974",
"0.5428587",
"0.5406577",
"0.53980917",
"0.539546",
"0.538109",
"0.53699696",
"0.53581035",
"0.534968",
"0.5336128",
"0.5320295",
"0.53162146",
"0.53158754",
"0.5315673",
"0.53041077",
"0.5300949",
"0.5296665",
"0.52933353",
"0.529072",
"0.52894074",
"0.5288783",
"0.5281291",
"0.52702725",
"0.526831",
"0.5259592",
"0.5256786",
"0.5251428",
"0.5240706",
"0.5237304",
"0.52253824",
"0.52143615",
"0.5210024",
"0.5206972",
"0.52009284",
"0.5195738",
"0.51887214",
"0.5188708",
"0.5184631",
"0.51836634",
"0.5171552",
"0.51637226",
"0.51544493",
"0.51524603",
"0.5152355",
"0.51492214",
"0.5145311",
"0.51404893",
"0.51389194",
"0.51376635",
"0.5134904",
"0.5133472",
"0.51328766",
"0.5131418",
"0.51271003",
"0.51265275",
"0.5125361",
"0.51169366",
"0.51135",
"0.51125884",
"0.51122445",
"0.51051974",
"0.50966305",
"0.5093624",
"0.50847834",
"0.50829357",
"0.50808597",
"0.50792146",
"0.50762206"
] | 0.75061995 | 0 |
Handle the AJAX request to "/editOrderMinus" URL to add one item of the particular product to the basket. | @GetMapping(value = "/editOrderPlus", produces = {MediaType.APPLICATION_JSON_VALUE})
@ResponseBody
public ResponseEntity<List> editOrderFromBasketPlusAjax(@RequestParam(name = "editOrderPlus") int id,
HttpSession session) {
List<Number> result = basketService.editOrderPlus(id, session);
logger.info("Item of product added to basket");
return new ResponseEntity<>(result, HttpStatus.OK);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GetMapping(value = \"/editOrderMinus\", produces = {MediaType.APPLICATION_JSON_VALUE})\n @ResponseBody\n public ResponseEntity<List> editOrderFromBasketMinusAjax(@RequestParam(name = \"editOrderMinus\") int id,\n HttpSession session) {\n List<Number> result = basketService.editOrderMinus(id, session);\n logger.info(\"Item of product removed from basket\");\n return new ResponseEntity<>(result, HttpStatus.OK);\n }",
"public void addItems(Product product, JSpinner spinner, JLayeredPane pane, JTable table) throws IllegalArgumentException {\n int qty = (int) spinner.getValue(); //get the added quantity from table\n\n if (qty > 0) {\n if (qty <= product.getQuantity()) {\n for (int i = 0; i < qty; i++) {\n this.setRequestValue(getRequestValue() + product.getPrice()); //update request value\n requestItems.add(product);\n product.setQuantity(product.getQuantity() - 1); //update product in stock\n }\n } else {\n \tDefaultTableModel model = (DefaultTableModel) table.getModel();\n int rowCount = model.getRowCount();\n for (int i = rowCount - 1; i >= 0; i--) {\n \tmodel.removeRow(i);\n }\n table.setModel(model);\n \tJOptionPane.showMessageDialog(pane, \"There is not enough in stock.\");\n throw new IllegalArgumentException(\"There is not enough in stock\");\n }\n } else {\n throw new IllegalArgumentException(\"The amount has to be positive\");\n }\n }",
"@GetMapping(value = \"/basket\", produces = {MediaType.APPLICATION_JSON_VALUE})\n @ResponseBody\n public ResponseEntity<Integer> addToBasketAjax(@RequestParam(name = \"item\") int id,\n HttpSession session) {\n Integer shop_basket = basketService.prepareProductsForBasket(id, session);\n return new ResponseEntity<>(shop_basket, HttpStatus.OK);\n }",
"public static String handleAddToCart(Request req, Response res) {\n\n int quantity = Integer.parseInt(req.queryParams(\"quantity\"));\n int productId = Integer.parseInt(req.queryParams(\"product_id\"));\n int userId = req.session().attribute(\"user_id\");\n\n Order order = DaoFactory.getOrderDao().findOpenByUserId(userId);\n if (order == null) {\n order = DaoFactory.getOrderDao().createNewOrder(userId);\n }\n\n Product product = DaoFactory.getProductDao().find(productId);\n if (product == null || quantity < 1 || quantity > 99) {\n return \"invalid_params\";\n }\n\n LineItem lineItemToAdd = DaoFactory.getOrderDao().findLineItemInCart(productId, order);\n if (lineItemToAdd == null) {\n\n lineItemToAdd = new LineItem(\n order.getId(),\n productId,\n product.getName(),\n product.getImageFileName(),\n quantity,\n product.getDefaultPrice(),\n product.getDefaultCurrency()\n );\n\n DaoFactory.getOrderDao().addLineItemToCart(lineItemToAdd, order);\n return \"new_item\";\n }\n\n DaoFactory.getOrderDao().increaseLineItemQuantity(order, lineItemToAdd, quantity);\n return \"quantity_change\";\n }",
"@Override\r\n\tpublic void ManageProduct() {\n\t\tint id = this.view.enterId();\r\n\t\tString name = this.view.enterName();\r\n\t\tfloat price = this.view.enterPrice();\r\n\t\tint quantity = this.view.enterQuantity();\r\n\t\t\r\n\t\tthis.model.updProduct(id, name, price, quantity);\r\n\t}",
"@GetMapping(\"/subtract/{id}\")\r\n\tpublic String subtract(@PathVariable(\"id\") int theId, HttpSession theSession, Model theModel,\r\n\t\t\tHttpServletRequest theHttpServletRequest) {\r\n\r\n\t\tProduct theProduct = prodRepo.getOne(theId);\r\n\r\n\t\tHashMap<Integer, Cart> cart = (HashMap<Integer, Cart>) theSession.getAttribute(\"cart\");\r\n\t\tint qty = cart.get(theId).getQuantity();\r\n\t\tif (qty == 1) {\r\n\t\t\tcart.remove(theId);\r\n\t\t\tif (cart.size() == 0) {\r\n\t\t\t\ttheSession.removeAttribute(\"cart\");\r\n\t\t\t}\r\n\t\t} else {\r\n\r\n\t\t\tcart.put(theId, new Cart(theId, theProduct.getName(), theProduct.getPrice(), --qty, theProduct.getImage()));\r\n\t\t}\r\n\r\n\t\tString refererLink = theHttpServletRequest.getHeader(\"referer\");\r\n\r\n\t\treturn \"redirect:\" + refererLink;\r\n\t}",
"@Override\n\tpublic void processNewOrderButtonClick(ProcessNewOrderObjectEvent e) {\n\t\n\t\tthis.currentAmount = 0.0;\t\t\n\t\tthis.currentItems.clear();\n\t\n\t}",
"public void removeItem() {\r\n\t\tlog.info(\"Remove item\");\r\n\t\tsu.waitElementClickableAndClick(LocatorType.Xpath, CartSplitViewField.Remove.getName());\r\n\t}",
"@Then(\"^click on add to basket$\")\r\n\tpublic void click_on_add_to_basket() throws Throwable {\n\t\tverbose(\"***********************************************************\");\r\n\t\tAssert.assertTrue(navigate_rsc.addbasket());\r\n\t\tverbose(\"***********************************************************\");\r\n\t \r\n\t}",
"ResponseEntity<Cart> removeCartItem(CartFormData formData);",
"private void btnRemoveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnRemoveActionPerformed\n if(tblOrders.getSelectedRow() == -1)\n {\n lblMessage.setText(\"Select Product First\");\n }\n else\n {\n DefaultTableModel model = (DefaultTableModel)tblOrders.getModel();\n int productId = \n Integer.parseInt(String.valueOf(model.getValueAt(tblOrders.getSelectedRow(), 0)));\n \n loggedInCustomer.findLatestOrder().removeOrderLine(productId);\n \n model.removeRow(tblOrders.getSelectedRow());\n \n lblMessage.setText(\"Product Has Been Removed\");\n lblTotalCost.setText(\"£\" + String.format(\"%.02f\",loggedInCustomer.findLatestOrder().getOrderTotal()));\n }\n }",
"@FXML private void handleAddProdAdd(ActionEvent event) {\n if (fxidAddProdAvailableParts.getSelectionModel().getSelectedItem() != null) {\n //get the selected part from the available list\n Part tempPart = fxidAddProdAvailableParts.getSelectionModel().getSelectedItem();\n //save it to our temporary observable list\n partToSave.add(tempPart);\n //update the selected parts list\n fxidAddProdSelectedParts.setItems(partToSave); \n } else {\n Alert partSearchError = new Alert(Alert.AlertType.INFORMATION);\n partSearchError.setHeaderText(\"Error!\");\n partSearchError.setContentText(\"Please select a part to add.\");\n partSearchError.showAndWait();\n }\n }",
"public void onAddButtonClick(View view) {\n\n if (view.getId() == R.id.Badd) {\n\n EditText a = (EditText) findViewById(R.id.TFenterName);\n\n String b = a.getText().toString();\n product.setProductName(b);\n\n a = (EditText) findViewById(R.id.TFenterPrice);\n b = a.getText().toString();\n product.setPrice(b);\n\n a = (EditText) findViewById(R.id.TFenterQuantity);\n b = a.getText().toString();\n product.setQuantity(b);\n\n a = (EditText) findViewById(R.id.TFLocation);\n b = a.getText().toString();\n product.setLocation(b);\n\n a = (EditText) findViewById(R.id.TFExpiration);\n b = a.getText().toString();\n product.setExpiration(b);\n\n helper.insertProduct(product);\n\n Intent i = new Intent(AddProduct.this, WasAdded.class);\n i.putExtra(\"product\", product.getProductName());\n startActivity(i);\n\n }\n }",
"public void Remove_button() {\n\t\tProduct product = (Product) lsvProduct.getSelectionModel().getSelectedItem();\n\t\tif (product!=null) {\n\t\t\tint ind = lsvProduct.getSelectionModel().getSelectedIndex();\n\t\t\tcart.removeProduct(product);\n\t\t\tcart.removePrice(ind);\n\t\t\tcart.removeUnit(ind);\n\t\t}\n\t\tthis.defaultSetup();\n\t}",
"public void addChildToShoppingCart() {\n System.out.println(this.offerTable.getSelectionModel().getSelectedItem());\n // TODO [assignment_final] pridani aktualniho vyberu do kosiku\n // - pri pridani prvku do kosiku aktualizuji hodnotu \"budgetu\" v UI\n }",
"public void handleAddProducts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/product.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n // Get controller and configure controller settings\n ProductController productController = fxmlLoader.getController();\n productController.setModifyProducts(false);\n productController.setInventory(inventory);\n productController.setHomeController(this);\n productController.updateParts();\n\n // Spin up product form\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.DECORATED);\n stage.setTitle(\"Add Products\");\n stage.setScene(new Scene(root));\n stage.show();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public ModelAndView handleAddToCart(Request req, Response res) throws SQLException {\n Product prod = productDaoJdbc.find(Integer.parseInt(req.params(\":prodID\")));\n Integer qty = Integer.parseInt(req.queryParams(\"prodQty\"));\n ShoppingCart cart = new ShoppingCart();\n if (req.session().attribute(\"cart\") != null) {\n cart = req.session().attribute(\"cart\");\n }\n cart.addToCart(prod, qty);\n req.session().attribute(\"cart\", cart);\n res.redirect(UrlController.getLastURL(req));\n return null;\n }",
"@RequestMapping(\n method = RequestMethod.POST,\n consumes = MediaType.APPLICATION_JSON_VALUE,\n path = \"{productId}\"\n )\n public void addProductToShoppingCart(@PathVariable(\"productId\") UUID productId){\n shoppingCartService.insertProduct(productId);\n }",
"@FXML private void handleAddProdDelete(ActionEvent event) {\n Part partDeleting = fxidAddProdSelectedParts.getSelectionModel().getSelectedItem();\n \n if (partDeleting != null) {\n //Display Confirm Box\n Alert confirmDelete = new Alert(Alert.AlertType.CONFIRMATION);\n confirmDelete.setHeaderText(\"Are you sure?\");\n confirmDelete.setContentText(\"Are you sure you want to remove the \" + partDeleting.getName() + \" part?\");\n Optional<ButtonType> result = confirmDelete.showAndWait();\n //If they click OK\n if (result.get() == ButtonType.OK) {\n //Delete the part.\n partToSave.remove(partDeleting);\n //Refresh the list view.\n fxidAddProdSelectedParts.setItems(partToSave);\n\n Alert successDelete = new Alert(Alert.AlertType.CONFIRMATION);\n successDelete.setHeaderText(\"Confirmation\");\n successDelete.setContentText(partDeleting.getName() + \" has been removed from product.\");\n successDelete.showAndWait();\n }\n } \n }",
"private void addProductToCart(HttpServletRequest request, HttpServletResponse response) throws IOException {\n String productID = request.getParameter(\"ProductID\");\n\n HttpSession session = request.getSession();\n\n List<Product> cartProducts = (List<Product>) session.getAttribute(\"cartProducts\");\n\n if (productID != null) {\n\n int id = Integer.parseInt(productID);\n\n if (cartProducts != null) {\n\n if (getCartSize(cartProducts) < Constants.CART_LIMIT) {\n\n if (!productIsAlreadyInCart(id, cartProducts))\n cartProducts.add(productDAO.getProduct(id));\n else\n increaseProductCountInCart(id, cartProducts);\n\n logger.info(\"Product (ID=\" + productID + \") has been added to the cart\");\n response.sendRedirect(Constants.PATH_CATALOG);\n } else\n response.getWriter().write(notifyCartIsFull());\n\n } else {\n cartProducts = new ArrayList<>();\n cartProducts.add(productDAO.getProduct(Integer.parseInt(productID)));\n\n logger.info(\"Product (ID=\" + productID + \") has been added to the cart\");\n session.setAttribute(\"cartProducts\", cartProducts);\n response.sendRedirect(Constants.PATH_CATALOG);\n }\n }\n }",
"public void onClick(View v) {\n\n ProductFragment itemListFragment = ((MainActivity)getActivity()).getItemListFragment();\n itemListFragment.subtractFromTotalWeight(quantity, weight); //subtracting old weight before adding new weight\n itemListFragment.subtractFromTotalPrice(quantity, price); //subtracting old price before adding new price\n\n Integer newQuantity = (Integer.parseInt((String) ((TextView) singleProductDescrView.findViewById(R.id.updatingQuantityDescr)).getText()));\n quantity = newQuantity;\n android.support.v4.app.FragmentManager fm = getFragmentManager();\n FragmentTransaction ft = fm.beginTransaction();\n updateItemInList();\n ft.replace(R.id.container, ((MainActivity)getActivity()).getItemListFragment(), \"List\");\n ft.commit();\n\n\n }",
"@RequestMapping(\"/addOrderItem\")\n public OrderItem addOrderItem(@RequestParam(\"order_id\")int order_id,\n @RequestParam(\"cart_id\")int cart_id){\n System.out.println(\"addOrderItem\");\n System.out.println(\"cart_id = \" + cart_id);\n return orderService.addOrderItem(order_id, cart_id);\n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n String id = request.getParameter(\"id\");\n if (id != null && id.matches(\"\\\\d+\")) {\n int pid = Integer.parseInt(id);\n try {\n ProductService service = new ProductService();\n Product p = service.get(pid);\n ToppingService tservice = new ToppingService();\n if (p != null) {\n ShoppingCart cart = (ShoppingCart) request.getSession().getAttribute(\"cart\");\n if (cart == null) {\n cart = new ShoppingCart();\n request.getSession().setAttribute(\"cart\", cart);\n }\n p.setIce(request.getParameter(\"Ice\"));\n p.setSugar(request.getParameter(\"Sugar\"));\n p.setTopping(request.getParameter(\"Topping\"));\n double price = tservice.get(request.getParameter(\"Topping\")).getPrice();\n p.setUntiPrice(p.getUntiPrice()+price);\n int amount = Integer.parseInt(request.getParameter(\"amount\"));\n \n cart.add(p ,amount);\n cart.keySet().toString();\n }\n } catch (Exception ex) {\n System.out.println(\"加入購物車失敗!\");\n }\n }\n response.sendRedirect(request.getContextPath() + \"/Order.jsp\");\n }",
"public synchronized void pdp_AddToBag() throws Exception {\n\n\t\t// Code to remove focus from zoomed image on page load\n\t\tif (!Utils.isDeviceMobile()) {\n\t\t\tActions actions = new Actions(driver);\n\t\t\tactions.moveToElement(productPrice()).build().perform();\n\t\t}\n\n\t\tutils.scrollToViewElement(driver, pdp_btn_AddToBag());\n\n\t\t// Handling Pop-Up that sometimes over shadows the ADD TO BAG button in mobile\n\t\tif (Utils.isDeviceMobile())\n\t\t\thandleBounceXOnPDP();\n\n\t\tpdp_btn_AddToBag().click();\n\t\t// Thread.sleep(3000);\n\n\t\tif (!utils.brand.equals(\"LGFP\"))\n\t\t\tAssert.assertTrue(utils.isElementPresent(driver, \"PDP_continueShopping\"),\n\t\t\t\t\t\"Item Added To Bag modal not displayed in mobile\");\n\t}",
"public void addProduct(Product product);",
"public void actionPerformed(ActionEvent e)\n\t\t\t\t\t{\n\t\t\t\t\t\tBuyerUIItem thisUIItem = (BuyerUIItem)order.getParent();\n\t\t\t\t\t\tint amountDesired = (int)spinner.getValue();\n\t\t\t\t\t\tif(_item.getQuantity() >= amountDesired && _item.inStock()) {\n\t\t\t\t\t\t\titemHelper.orderItem(thisUIItem, _item, amountDesired);\n\t\t\t\t\t\t\tquantity.setText(String.valueOf(_item.getQuantity()));\n\t\t\t\t\t\t\tnumModel.setValue(1);\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else if(_item.inStock()) {\n\t\t\t\t\t\t\titemHelper.underStock(_item);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\titemHelper.stockOut(_item);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"@FXML\r\n\tpublic void addToShoppingCart() {\r\n\t\t\r\n\t\tWatch w = listView.getSelectionModel().getSelectedItem();\r\n\t\tboolean add = controller.addWatchToShoppingCart(w);\r\n\t\tcontroller.deleteWishlistItem(w.getId());\r\n\t\tlistView.setItems(controller.getWishlistWatchesForCurrentUser());\r\n\t\tlistView.getSelectionModel().select(-1);\r\n\t\tcheckSelected();\r\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException\n {\n String str = request.getParameter(\"quantity\");\n if (str == null || str.equals(\"\") || Integer.parseInt(str) <= 0) {\n System.out.println(\"Invalid input quantity!\");\n response.sendRedirect(\"/pages/detail.jsp\");\n return;\n }\n Integer quantity = Integer.parseInt(str);\n HttpSession hs = request.getSession();\n BookEntity book = (BookEntity) hs.getAttribute(\"detailinfo\");\n String bookId = book.getBookid();\n UserEntity userEntity = (UserEntity) hs.getAttribute(\"user\");\n int userId = userEntity.getId();\n\n ShoppingCartEntity shoppingCartEntity = new ShoppingCartEntity();\n shoppingCartEntity.setBookid(bookId);\n shoppingCartEntity.setQuantity(quantity);\n shoppingCartEntity.setUserid(userId);\n //get book information from DB to display\n // and get quantity from detail page,\n // update the new quantity for this book in the DB\n // and the shoppingcartlist httpsession\n OrderProcessService orderProcessService = new OrderProcessService();\n boolean flag = orderProcessService.AddItemtoCart(shoppingCartEntity);\n if (flag) { // Add to cart is successful\n List<ShoppingCartEntity> shoppingCartEntityList = orderProcessService.DisplayShoppingCart(userId);\n hs.setAttribute(\"shoppingcartlist\", shoppingCartEntityList);\n response.sendRedirect(\"/DisplayShoppingCartServlet\");\n } else {\n response.sendRedirect(\"/pages/detail.jsp\");\n }\n\n }",
"@RequestMapping(value = {\"/add_product\"}, method = RequestMethod.GET)\n public String viewProductAdd() {\n return \"product_detail_new\";\n }",
"@Override\r\n\t\t\t\t\t\t\tpublic void handle(ActionEvent arg0) {\n\t\t\t\t\t\t\t\troot.getChildren().remove(product);\r\n\t\t\t\t\t\t\t}",
"public void perform(HttpServletRequest req, HttpServletResponse resp) {\n HttpSession session = req.getSession(true);\r\n\r\n //information needed to proccess the updatecart action\r\n ShoppingCart carrito = (ShoppingCart) session.getAttribute(\"carrito\");\r\n Product product = productModel.retrieve(Integer.parseInt(req.getParameter(\"productid\")));\r\n int newQuantity = Integer.parseInt(req.getParameter(\"itemQuantity\"));\r\n\r\n //if the quantity is set to zero we need to delete the product from the cart\r\n if (newQuantity == 0) {\r\n carrito.deleteItem(product);\r\n } else {//if not, we just update the quantity\r\n carrito.update(product, Integer.toString(newQuantity));\r\n }\r\n\r\n \r\n //in case we have deleted the last item of the cart, we need to remove the cart from the session because there isn't any product in it.\r\n if (carrito.isEmpty() == true) {\r\n session.removeAttribute(\"carrito\");\r\n \r\n //if the cart is empty we will forward the request to category page\r\n req.setAttribute(\"productsById\", productModel.retrieveByCategory(product.getCategoryid()));\r\n req.setAttribute(\"categorySelected\", categoryModel.retrieve(product.getCategoryid()));\r\n req.setAttribute(\"categories\", categoryModel.retrieveAll());\r\n\r\n ViewManager.nextView(req, resp, \"/view/category.jsp\");\r\n } else {\r\n //otherwise we will show the cart updated\r\n req.setAttribute(\"carrito\", session.getAttribute(\"carrito\"));\r\n ViewManager.nextView(req, resp, \"/view/viewcart.jsp\");\r\n }\r\n }",
"@PostMapping(\"/add\")\r\n\tpublic ProductDetails addProduct(@Valid @RequestBody AddProduct request) {\r\n\r\n\t\tProduct product = productUtil.getProduct();\r\n\t\tproduct.setProduct_Id(productUtil.generateId());\r\n\t\tproduct.setProduct_Name(request.getProduct_Name());\r\n\t\tproduct.setProduct_Price(request.getProduct_Price());\r\n\t\tproduct.setProduct_Quantity(request.getProduct_Quantity());\r\n\t\tproduct.setProduct_Availability(request.isProduct_Availability());\r\n\t\tproduct = productService.addProduct(product);\r\n\t\treturn productUtil.toProductDetails(product);\r\n\r\n\t}",
"@Override\n public void onClick(View v) {\n AddingToCartList();\n }",
"@FXML void onActionModifyProductAdd(ActionEvent event) {\n Part selectedPart = partTableView.getSelectionModel().getSelectedItem();\n tmpAssociatedParts.add(selectedPart);\n }",
"void addProduct(Product product);",
"@Override\n public void onClick(View v) {\n priceOfThisProduct = (numberPicker.getValue() * item.itemPrice);\n Snackbar.make(parentLayout, \"New Quantity: \" + priceOfThisProduct, Snackbar.LENGTH_SHORT).show();\n\n cv.put(\"CartItemsName\", \"\" + item.itemName);\n cv.put(\"CartItemsPrice\", item.itemPrice);\n cv.put(\"CartItemsPriceTotal\", priceOfThisProduct);\n cv.put(\"CartItemsQuantity\", numberPicker.getValue());\n cv.put(\"CartItemsTimeStamp\", System.currentTimeMillis());\n db.insert(CartOpenHelper.CART_TABLE, null, cv);\n\n Cart.grandTotal += priceOfThisProduct - Long.parseLong(tvPrice.getText().toString());\n\n tvQuantity.setText(numberPicker.getValue() + \"\");\n tvPrice.setText(priceOfThisProduct + \"\");\n tvCartValue.setText(\"Total Cart Value: Rs. \" + Cart.grandTotal);\n\n d.dismiss();\n db.delete(CartOpenHelper.CART_TABLE, CartOpenHelper.CART_ITEM_TIMESTAMP + \" = \" + \"'\" + item.itemTimeStamp + \"'\", null);\n loadActivity();\n }",
"public void addToOrder()\n {\n\n if ( donutTypeComboBox.getSelectionModel().isEmpty() || flavorComboBox.getSelectionModel().isEmpty() )\n {\n Popup.DisplayError(\"Must select donut type AND donut flavor.\");\n return;\n } else\n {\n int quantity = Integer.parseInt(quantityTextField.getText());\n if ( quantity == 0 )\n {\n Popup.DisplayError(\"Quantity must be greater than 0.\");\n return;\n } else\n {\n for ( int i = 0; i < quantity; i++ )\n {\n Donut donut = new Donut(donutTypeComboBox.getSelectionModel().getSelectedIndex(), flavorComboBox.getSelectionModel().getSelectedIndex());\n mainMenuController.getCurrentOrder().add(donut);\n }\n if ( quantity == 1 )\n {\n Popup.Display(\"Donuts\", \"Donut has been added to the current order.\");\n } else\n {\n Popup.Display(\"Donuts\", \"Donuts have been added to the current order.\");\n }\n\n\n donutTypeComboBox.getSelectionModel().clearSelection();\n flavorComboBox.getSelectionModel().clearSelection();\n quantityTextField.setText(\"0\");\n subtotalTextField.setText(\"$0.00\");\n }\n }\n\n\n }",
"private void eliminarProducto(HttpServletRequest request, HttpServletResponse response) {\n\t\tString codArticulo = request.getParameter(\"cArticulo\");\n\t\t// Borrar producto de la BBDD\n\t\ttry {\n\t\t\tmodeloProductos.borrarProducto(codArticulo);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// Volver al listado con la info actualizada\n\t\tobtenerProductos(request, response);\n\n\t}",
"@Override\n public void onClick(View v) {\n if (productName.getText().toString().isEmpty()) {\n Toast.makeText(getActivity(), getResources().getString(R.string.need_product_name), Toast.LENGTH_SHORT).show();\n //add product\n } else if (productQuantity.getText().toString().isEmpty()) {\n // add with capitalized name\n productList.add(new Product(WordUtils.capitalize(productName.getText().toString())));\n //update user\n user.setShoppingLists(shoppingLists);\n dataController.saveUser(user);\n } else if (!productQuantity.getText().toString().isEmpty()) {\n productList.add(new Product(WordUtils.capitalize(productName.getText().toString()), Integer.parseInt(productQuantity.getText().toString()), quantityType.getSelectedItemPosition()));\n //update user\n user.setShoppingLists(shoppingLists);\n dataController.saveUser(user);\n }\n //update list\n adapter.notifyDataSetChanged();\n //close dialog\n dialog.dismiss();\n }",
"@GetMapping(value = \"/delete\", produces = {MediaType.APPLICATION_JSON_VALUE})\n @ResponseBody\n public ResponseEntity<Double> deleteFromBasketAjax(@RequestParam(name = \"delete\") int id,\n HttpSession session) {\n Double totalPrice = basketService.deleteFromBAsket(id, session);\n logger.info(\"Product deleted from basket completely\");\n return new ResponseEntity<>(totalPrice, HttpStatus.OK);\n }",
"public addproduct() {\n\t\tsuper();\n\t}",
"@Override\n public void onAddToCart(Product product) {\n }",
"@RequestMapping(value = {\"/add_product\"}, method = RequestMethod.POST)\n public String createProduct(Model model, HttpServletRequest request) {\n boolean isSuccess = addProductByRest(request);\n if (isSuccess) {\n ProductController controller = new ProductController();\n List<Product> productList = controller.getProductList(request, \"products\");\n model.addAttribute(\"products\", productList);\n return \"product_list\";\n } else {\n return \"product_detail_new\";\n }\n }",
"@RequestMapping(\"/addnewproduct\")//, method=RequestMethod.POST)\n\tpublic String addProduct()\n\t{\n\t\treturn \"addproduct\";\n\t}",
"public void remove(int index){\n if (myBasket.size() == 0)\n System.out.println(\"List is empty.\");\n int i = 0 ;\n boolean isFound = false;\n Product toRemove = null;\n for (Product product: myBasket.keySet())\n {\n i++;\n if (i == index && myBasket.get(product) > 0)\n {\n isFound = true;\n toRemove = product;\n break;\n\n }\n }\n if (!isFound)\n System.out.println(\"Sorry. Invalid index!\");\n\n // now , checking how many of this product is in the basket\n\n else if (myBasket.get(toRemove) > 1){\n System.out.println(\"How many of this product do you want to give back?\");\n Scanner scanner = new Scanner(System.in);\n int num = scanner.nextInt();\n if (num < myBasket.get(toRemove)) {\n totalCost -= toRemove.getPrice() * num;\n myBasket.replace(toRemove,myBasket.get(toRemove) - num);\n for (int j = 0 ; j < num ; j++)\n inventory.updateStock(toRemove , '+');\n }\n else {\n totalCost -= toRemove.getPrice() * myBasket.get(toRemove);\n myBasket.remove(toRemove);\n for (int j = 0 ; j < myBasket.get(toRemove) ; j++)\n inventory.updateStock(toRemove,'+');\n }\n System.out.println(\"Product removed.\");\n }\n\n // there is just one of this product in basket\n\n else {\n totalCost -= toRemove.getPrice();\n myBasket.remove(toRemove);\n System.out.println(\"Product removed.\");\n inventory.updateStock(toRemove , '+');\n }\n }",
"public void AddSpecificProduct(String productName) {\n\t\t\n\t\ttest = report.startTest(\"TC: AddSpecificProduct\");\n\t\t\n\t\t// -- Step 1: Ensure we're in the right page after login\n\t\tif (!verifyInProductPage()) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// -- Step 2: Construct Dynamic XPath & Add the item\n\t\t\n\t\t// construct dynamic xpath\n\t\tString dynXpath = new String();\n\n\t\t/* method 1\n\t\t\t// Example: //button[@data-test=\"add-to-cart-sauce-labs-bike-light\"]\n\t\t\tproductName.toLowerCase();\n\t\t\tdynXpath=\"//button[@data-test=\\\"add-to-cart-\" + productName.toLowerCase().replace(\" \", \"-\") +\"\\\"]\";\n\t\t*/\n\n\t\t/* method 2 */\n\t\tdynXpath=\"//*[text()='\"+ productName +\"']//following::button[1]\";\n\n\t\t\n\t\t// Check if product listed in the page? If yes, click ADD TO CART button\n\t try {\n\t \twait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(dynXpath)));\n\t \tdriver.findElement(By.xpath(dynXpath)).click();\n\t\t\ttest.log(LogStatus.INFO, \"Product [\" + productName + \"] found, clicked ADD TO CART button.\");\t\n\t } catch (TimeoutException e) {\n\t\t\ttest.log(LogStatus.FAIL, \"Product [\" + productName + \"] not found\");\n\t\t\treturn;\n\t }\n\t\t\n\n\t\t// -- Step 3: Verify item added via number(s) of item in Cart Badge\n\t \n\t\t// Perform simple verification using the Cart Badge on Top Right of the page\n\t\t// Now we update the dynXpath to remove pattern\n\t\tdynXpath=\"//button[@data-test=\\\"remove-\" + productName.toLowerCase().replace(\" \", \"-\") +\"\\\"]\";\n\t\t\n\t\twait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(dynXpath)));\n\t try {\n\t \tdriver.findElement(By.xpath(dynXpath));\n\t\t\ttest.log(LogStatus.PASS, \"Successful added [\" + productName + \"] to cart\");\t\n\t } catch (TimeoutException e) {\n\t\t\ttest.log(LogStatus.FAIL, \"Fail to add [\" + productName + \"] to cart\");\n\t\t\tsoft.fail(\"Failed to add item to cart!\");\t\n\t }\n\t\t\n\t\t\n\t}",
"public void addShopEndLeasing() {\n log.info(\"OrdersBean : addShopEndLeasing\");\n FacesContext context = FacesContext.getCurrentInstance();\n int idContract = Integer.parseInt(getParam(\"idContract\"));\n init();\n checkIfOrdersEntityIsNullAndCreateOrders();\n\n if (contractsBean.createContractEndLeasing(idContract)) {\n context.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, JsfUtils.returnMessage(getLocale(), \"fxs.addShopButton.addShopSuccess\"), null));\n } else {\n context.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, JsfUtils.returnMessage(getLocale(), \"fxs.addShopButton.addShopError\"), null));\n }\n findOrderAndfindContracts();\n }",
"public void onClick(View v) {\n llAdd_remove.setVisibility(View.VISIBLE);\n btnAdd.setVisibility(View.GONE);\n addTocart();\n ProductListFragment.updateQuantity(selectedData.getProdId(), selectedData.getCount());\n }",
"public void sellProduct(){\n if(quantity > 0)\n this.quantity -= 1;\n else\n throw new IllegalArgumentException(\"Cannot sell \"+ this.model +\" with no inventory\");\n\n }",
"ResponseEntity<Cart> updateCartItemQuantity(CartFormData formData);",
"public String ajaxRemoveFromList() throws Exception {\n\t\tJSONObject json = new JSONObject(Constant.getObjectBean().getData());\n\t\tString groupId = json.getString(ApplyItemConstant.KEY_GROUP_ID);\n\t\tString playerId = json.getString(ApplyItemConstant.KEY_PLAYER_ID);\n\t\tXMLCREATE = XmlService.adminRemoveSTBOutToGroup(playerId);\n\t\tModelService.adminRemoveSTBOutToGroup(XMLCREATE);\n\t\t// reload group DB\n\t\treturn getSetupBox(groupId);\n\t}",
"ShoppingBasket removeProductItem(Long shoppingBasketId, Long productItemId);",
"public void add() {\n\t\tcart.add(item.createCopy());\n\t}",
"@Override\r\n\t\t\t\t\tprotected void updateItem(Object arg0, boolean arg1) {\n\t\t\t\t\t\tsuper.updateItem(arg0, arg1);\r\n\t\t\t\t\t\tif (arg1) {\r\n\t\t\t\t\t\t\tsetGraphic(null);\r\n\t\t\t\t\t\t\tsetText(null);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tbtn.setOnAction(new EventHandler<ActionEvent>() {\r\n\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void handle(ActionEvent arg0) {\r\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\t\t\t\t\t\tProducts data=(Products) tbl_view.getItems().get(getIndex());\r\n\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\tProducts data=(Products) tbl_view.getSelectionModel().getSelectedItem();\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(data.toString());\r\n\t\t\t\t\t\t\t\t\tif(ConnectionManager.queryInsert(conn, \"DELETE FROM dbo.product WHERE id=\"+data.getId())>0) {\r\n\t\t\t\t\t\t\t\t\t\ttxt_cost.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_date.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_name.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_price.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_qty.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_reorder.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_search.clear();\r\n\t\t\t\t\t\t\t\t\t\tfetchData(FETCH_DATA);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\tsetGraphic(btn);\r\n\t\t\t\t\t\t\tsetText(null);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}",
"@Override\n public void onClick(View view) {\n String name = getResources().getString(R.string.stock_shopping_list) + \": \" + productList.getName();\n StockShoppingList stockShoppingList = ((Stock)productList).generateShoppingList(name);\n StockShoppingListDao dao = new StockShoppingListDao(getDaoProductList().getBDConnection());\n if(((Stock)productList).getAssociatedListId() != -1) {\n // Si ya tiene una lista de la compra asociada la eliminamos para crear la nueva\n stockShoppingList.setID(((Stock) productList).getAssociatedListId());\n dao.remove(stockShoppingList);\n }\n int shoppingListId = dao.insert(stockShoppingList);\n\n // Actualizamos el id del stock\n ((Stock) productList).setAssociatedListId(shoppingListId);\n getDaoProductList().update((Stock)productList);\n\n // Mostramos un mensaje de exito\n Toast.makeText(getContext(),String.format(getResources().getString(R.string.info_msg_stock_shopping_list_created),name),Toast.LENGTH_LONG).show();\n }",
"public static void addToCart() {\n List<WebElement> buttonsAddItem = Browser.driver.findElements(ADD_TO_CART_BUTTON);\n buttonsAddItem.get(0).click();\n Browser.driver.navigate().refresh();\n }",
"Product editProduct(Product product);",
"private void editProduct() {\n\t\tif (!CartController.getInstance().isCartEmpty()) {\n\t\t\tSystem.out.println(\"Enter Product Id - \");\n\t\t\tint productId = getValidInteger(\"Enter Product Id -\");\n\t\t\twhile (!CartController.getInstance().isProductPresentInCart(\n\t\t\t\t\tproductId)) {\n\t\t\t\tSystem.out.println(\"Enter Valid Product Id - \");\n\t\t\t\tproductId = getValidInteger(\"Enter Product Id -\");\n\t\t\t}\n\t\t\tSystem.out.println(\"Enter new Quantity of Product\");\n\t\t\tint quantity = getValidInteger(\"Enter new Quantity of Product\");\n\t\t\tCartController.getInstance().editProductFromCart(productId,\n\t\t\t\t\tquantity);\n\t\t} else {\n\t\t\tDisplayOutput.getInstance().displayOutput(\n\t\t\t\t\t\"\\n-----Cart Is Empty----\\n\");\n\t\t}\n\t}",
"public void onClick(View v)\n {\n // Add to cart model\n for (int i = 0; i < productQuantity; i++)\n {\n dbManager.addToCart(activeProduct.getID());\n }\n }",
"public void addToOrder() {\n OrderLine orderLine = new OrderLine(order.lineNumber++, sandwhich, sandwhich.price());\n order.add(orderLine);\n ObservableList<Extra> selected = extraSelected.getItems();\n orderPrice.clear();\n String price = new DecimalFormat(\"#.##\").format(sandwhich.price());\n orderPrice.appendText(\"$\"+price);\n extraOptions.getItems().addAll(selected);\n extraSelected.getItems().removeAll(selected);\n pickSandwhich();\n\n\n\n }",
"@Override\r\n\t\t\t\t\t\t\t\tpublic void handle(ActionEvent arg0) {\n\r\n\t\t\t\t\t\t\t\t\tProducts data=(Products) tbl_view.getItems().get(getIndex());\r\n\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\tProducts data=(Products) tbl_view.getSelectionModel().getSelectedItem();\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(data.toString());\r\n\t\t\t\t\t\t\t\t\tif(ConnectionManager.queryInsert(conn, \"DELETE FROM dbo.product WHERE id=\"+data.getId())>0) {\r\n\t\t\t\t\t\t\t\t\t\ttxt_cost.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_date.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_name.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_price.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_qty.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_reorder.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_search.clear();\r\n\t\t\t\t\t\t\t\t\t\tfetchData(FETCH_DATA);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}",
"private void addProduct()\n {\n System.out.println(\"|➕| Add new Product:\\n\");\n System.out.println(\"|➕| Enter ID\\n\");\n int id = Integer.parseInt(reader.getInput());\n System.out.println(\"|➕| Enter Name\\n\");\n String name = reader.getInput();\n manager.addProduct(id, name);\n }",
"@Override\n public void onComplete(@NonNull Task<Void> task) {\n if(task.isSuccessful()){\n\n if(cartItemModelList.size() !=0 ){\n cartItemModelList.remove(index);\n MyCartFragment.cartAdapter.notifyDataSetChanged();\n }\n if (cartList.size() == 0 ){\n LinearLayout parent = (LinearLayout) cartTotalAmount.getParent().getParent();\n parent.setVisibility(View.GONE);\n cartItemModelList.clear();\n }\n Toast.makeText(context, \"removed successfully!!\", Toast.LENGTH_SHORT).show();\n }\n else{\n cartList.add(index,removedProductId);\n String error = task.getException().getMessage();\n Toast.makeText(context, error, Toast.LENGTH_SHORT).show();\n }\n// if (ProductDetailsActivity.addToWishListBtn != null) {\n// ProductDetailsActivity.addToWishListBtn.setEnabled(true);\n// }\n\n ProductDetailsActivity.running_cart_query = false;\n }",
"public void adding() {\n\t\t By cr=By.xpath(\"//a[@href=\\\"/cart?add&itemId=EST-2\\\"]\"); \r\n\t\tWebElement we_cr=wt.ElementToBeClickable(cr, 20);\r\n\t\twe_cr.click();\r\n\t}",
"public void handleRemoveItem(ActionEvent actionEvent) {\n\t\tString id = txtDisID.getText();\n\n\t\tAlert alert = new Alert(Alert.AlertType.CONFIRMATION);\n\t\talert.setTitle(\"Confirmation Dialog\");\n\t\talert.setHeaderText(\"Are you sure, you want to remove this item?\");\n\t\talert.setContentText(\"this item will remove permanently from the database.\");\n\n\t\tif(!id.isEmpty() && id != null){\n\t\t\tOptional<ButtonType> result = alert.showAndWait();\n\t\t\tif (result.get() == ButtonType.OK){\n\t\t\t\ttry {\n\t\t\t\t\tItemDAO.deleteItemById(id);\n\t\t\t\t\trefreshTable();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\tExp.displayException(e);\n\t\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t\tExp.displayException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\talert = new Alert(Alert.AlertType.ERROR);\n\t\t\talert.setTitle(\"Error\");\n\t\t\talert.setHeaderText(\"There is no selected item to Remove\");\n\t\t\talert.setContentText(\"Please select the item before remove !\");\n\n\t\t\talert.showAndWait();\n\t\t}\n\t}",
"@FXML\n\tpublic void addUpdateIngredientToProduct(ActionEvent event) {\n\t\tif (ChoiceUpdateIngredients.getValue() != null) {\n\t\t\tselectedIngredients.add(ChoiceUpdateIngredients.getValue());\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Ingrediente \" + ChoiceUpdateIngredients.getValue() + \" ha sido añadido al producto\");\n\t\t\tdialog.setTitle(\"Adicion de Ingrediente satisfactoria\");\n\t\t\tdialog.show();\n\t\t\tChoiceUpdateIngredients.setValue(null);\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Debe escoger algun ingrediente para que pueda ser añadido\");\n\t\t\tdialog.setTitle(\"Campo requerido\");\n\t\t\tdialog.show();\n\t\t}\n\t}",
"ResponseEntity<Cart> addCartItem(CartFormData formData);",
"public void minusQuantity()\n {\n int quantity = Integer.parseInt(quantityTextField.getText());\n if ( quantity == 0 )\n {\n Popup.DisplayError(\"Quantity cannot be negative.\");\n return;\n }\n quantity--;\n quantityTextField.setText(\"\" + quantity);\n\n changeSubtotalTextField();\n }",
"@RequestMapping(method=RequestMethod.POST, value = \"/item/{id}\", produces = \"application/json\")\n public void addItem(@RequestBody Item itemToAdd)\n {\n this.itemRepository.addItem(itemToAdd);\n }",
"@FXML\n\tprivate void addButtonAction(ActionEvent clickEvent) {\n\t\t\n\t\tPart addPartToProduct = partSearchProductTable.getSelectionModel().getSelectedItem();\n\t\t\n\t\tif (addPartToProduct != null) {\n\t\t\t\n\t\t\tif(dummyList.contains(addPartToProduct) == false) {\n\t\t\t\t\n\t\t\t\tdummyList.add(addPartToProduct);\n\t\t\t}\n\t\t}\n\t}",
"@RequestMapping(value = \"/add\")\n\tpublic String addItem(Model model) {\n\t\tmodel.addAttribute(\"item\", new Item());\n\t\tmodel.addAttribute(\"shops\", srepository.findAll());\n\t\treturn \"additem\";\n\t}",
"Product addNewProductInStore(Product newProduct);",
"void removeProduct(Product product);",
"public void actionPerformed(ActionEvent e) {\n JButton button = (JButton) e.getSource();\n if(button.getText().equals(removeButton.getText()))\n {\n if(textItemName.getText().length() == 0)\n {\n Item item = dep.getListProducts().getItemId(Integer.parseInt(textItemId.getText()));\n if(item == null)\n {\n noRemove.setVisible(true);\n noCorespondence.setVisible(false);\n }\n else\n {\n dep.getListProducts().remove(item);\n Notification notification = new Notification(depId,Integer.parseInt(textItemId.getText()),NotificationType.REMOVE);\n dep.NotifyRemove(notification);\n noRemove.setVisible(false);\n tableModel.fireTableDataChanged();\n dispose();\n }\n }\n if(textItemId.getText().length() == 0)\n {\n Item item = dep.getListProducts().getItemName(textItemName.getText());\n if(item == null)\n {\n noRemove.setVisible(true);\n noCorespondence.setVisible(false);\n }\n else\n {\n dep.getListProducts().remove(item);\n Notification notification = new Notification(depId,item.getId(),NotificationType.REMOVE);\n dep.NotifyRemove(notification);\n noRemove.setVisible(false);\n tableModel.fireTableDataChanged();\n dispose();\n }\n }\n if(textItemId.getText().length() != 0 && textItemId.getText().length() != 0)\n {\n Item item = dep.getListProducts().getItemId(Integer.parseInt(textItemId.getText()));\n if(item == null)\n {\n noRemove.setVisible(true);\n noCorespondence.setVisible(false);\n }\n else\n {\n if(item.getName().equals(textItemName.getText()))\n {\n dep.getListProducts().remove(item);\n Notification notification = new Notification(depId,Integer.parseInt(textItemId.getText()),NotificationType.MODIFY);\n dep.NotifyRemove(notification);\n noCorespondence.setVisible(false);\n tableModel.fireTableDataChanged();\n dispose();\n }\n else\n {\n noCorespondence.setVisible(true);\n }\n }\n }\n\n }\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n initiateOrder(request, response);\n }",
"ProductView addProduct(ProductBinding productToAdd) throws ProductException;",
"public void clickAddTopping(int itemIndex, ItemCart item);",
"@PostMapping(\"/add\")\n public String addToCart(@RequestHeader(\"Authorization\") String authorizationToken,@RequestParam Integer userId,@RequestParam Integer productId,@RequestParam Integer quantity){\n \tProductDTO pDTO = productMS.getProductById(authorizationToken,productId);\n \t CartDTO cartDTO = new CartDTO();\n \tBeanUtils.copyProperties(pDTO,cartDTO);\n \tcartDTO.setUserId(userId);\n \tcartDTO.setQuantity(quantity);\n return cartService.addToCart(cartDTO);\n }",
"public void removeExtras() {\n Object selected = extraSelected.getSelectionModel().getSelectedItem();\n sandwhich.remove(selected);\n orderPrice.clear();\n String price = new DecimalFormat(\"#.##\").format(sandwhich.price());\n orderPrice.appendText(\"$\"+price);\n extraSelected.getItems().remove(selected);\n extraOptions.getItems().add(selected);\n }",
"public void onClick(View v) {\n removeTocart();\n ProductListFragment.updateQuantity(selectedData.getProdId(), selectedData.getCount());\n }",
"public void addItem() {\r\n\t\tFacesContext fc = FacesContext.getCurrentInstance();\r\n\t\tif (itemInvoice.getQuantidade() <= itemPO.getQuantidadeSaldo()) {\r\n\t\t\tBigDecimal total = itemInvoice.getPrecoUnit().multiply(\r\n\t\t\t\t\tnew BigDecimal(itemInvoice.getQuantidade()));\r\n\t\t\titemInvoice.setTotal(total);\r\n\t\t\tif (!editarItem) {\r\n\r\n\t\t\t\tif (itemInvoice.getPrecoUnit() == null) {\r\n\t\t\t\t\titemInvoice.setPrecoUnit(new BigDecimal(0.0));\r\n\t\t\t\t}\r\n\t\t\t\tif (itemInvoice.getQuantidade() == null) {\r\n\t\t\t\t\titemInvoice.setQuantidade(0);\r\n\t\t\t\t}\r\n\t\t\t\titemInvoice.setInvoice(invoice);\r\n\r\n\t\t\t\tinvoice.getItensInvoice().add(itemInvoice);\r\n\r\n\t\t\t} else {\r\n\t\t\t\tinvoice.getItensInvoice().set(\r\n\t\t\t\t\t\tinvoice.getItensInvoice().indexOf(itemInvoice),\r\n\t\t\t\t\t\titemInvoice);\r\n\t\t\t}\r\n\t\t\tcarregarTotais();\r\n\t\t\tinicializarItemInvoice();\r\n\t\t\trequired = false;\r\n\t\t} else {\r\n\r\n\t\t\tMessages.adicionaMensagemDeInfo(TemplateMessageHelper.getMessage(\r\n\t\t\t\t\tMensagensSistema.INVOICE, \"lblQtdMaioSaldo\", fc\r\n\t\t\t\t\t\t\t.getViewRoot().getLocale()));\r\n\t\t}\r\n\t}",
"private void orderItem(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}",
"@Override\n public void onClick(View v) {\n Context context = getContext();\n SharedPreferences mSharedPreference1 = PreferenceManager.getDefaultSharedPreferences(context);\n float fTotal = mSharedPreference1.getFloat(\"CartTotal\", 0);\n fTotal += (float)Integer.parseInt(product.getPrice());\n\n //throwback in\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);\n SharedPreferences.Editor mEdit1 = sp.edit();\n mEdit1.putFloat(\"CartTotal\", fTotal);\n mEdit1.commit();\n\n //add to my cart array if item doesn't exist.\n String prodID = Integer.toString(product.getP_id());\n if(!Arrays.asList(myCartArray).contains(prodID)){\n myCartArray.add(prodID);\n saveArray();\n //display dialog saying added to cart successful\n\n Toast.makeText(getActivity(), \"Succesfully added to your cart!\",\n Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(getActivity(), \"This lot was already in your cart!\",\n Toast.LENGTH_LONG).show();\n }\n\n }",
"@PutMapping(value = \"/{productId}/add/{quantity}\")\n @ApiOperation(value = \"Add Product To Basket\",response = CustomResponseEntity.class)\n public ResponseEntity<Object> addProductToBasket(@NotNull @PathVariable(value = \"productId\") @ApiParam(value = \"ID of Product\") String productId,\n @PathVariable(value = \"quantity\") @ApiParam(value = \"Quantity\") Long quantity, @RequestHeader(value = \"userId\") @ApiParam(value = \"ID of User\") Long userId) throws UserException, ProductException, SQLException {\n userService.findUserById(userId);\n CustomResponseEntity customResponseEntity = basketService.addProductToBasket(productId, userId, quantity);\n return new ResponseEntity(customResponseEntity, HttpStatus.CREATED);\n\n }",
"protected void removeButtonActionPerformed() {\n\t\tFoodTruckManagementSystem ftms = FoodTruckManagementSystem.getInstance();\n\t\t// Initialize controller\n\t\tMenuController mc = new MenuControllerAdapter();\n\n\t\t// Get selected supply type\n\t\tSupply supply = null;\n\t\ttry {\n\t\t\tsupply = item.getSupply(supplyList.getSelectedIndex());\n\t\t} catch (NullPointerException | IndexOutOfBoundsException e) {\n\t\t}\n\t\t\n\t\t// Remove from item\n\t\ttry {\n\t\t\tmc.removeIngredient(item, supply);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\t\t\n\t\trefreshData();\n\t\t\n\t}",
"Product postProduct(Product product);",
"public AjaxResponse addNewAsset(AjaxSubmitEvent event) {\n\n\t\tAjaxResponse response = new AjaxResponseImpl();\n\n\t\tManufacturingOrder dto = (ManufacturingOrder) event.getCommandObject();\n\n\t\tif ((dto.getError() != null) && !(dto.getError().isEmpty())) {\n\n\t\t\tReplaceContentAction action = new ReplaceContentAction(\n\t\t\t\t\t\"statusMessage\", new SimpleText(\n\t\t\t\t\t\t\t\"<font color=\\\"red\\\" size=\\\"2px\\\">\"\n\t\t\t\t\t\t\t\t\t+ dto.getError() + \"</font>\"));\n\t\t\tresponse.addAction(action);\n\n\t\t\tExecuteJavascriptFunctionAction enableFields = new ExecuteJavascriptFunctionAction(\n\t\t\t\t\t\"enableFields\", new HashMap<String, Object>());\n\t\t\tresponse.addAction(enableFields);\n\n\t\t} else {\n\n\t\t\tgetNewAssetTable(response, dto);\n\n\t\t}\n\n\t\treturn response;\n\n\t}",
"public void decreaseQtyStepperOfRandomProductsInShoppingCartPage(WebElement element, int clickMinus) {\n UtilityHelper.moveToViewElement(element);\n for (int i = 0; i < clickMinus; i++) {\n WebElement qtyInput = element.findElement(By.xpath(\".//*[contains(@class,'qtyInput')]\"));\n String qtyValue = UtilityHelper.elementGetAttribute(qtyInput, \"value\");\n String qtyStep = UtilityHelper.elementGetAttribute(qtyInput, \"step\");\n if (((Double.valueOf(qtyValue) != 1.00) || qtyStep.equals(\"0.25\")) && Double.valueOf(qtyValue) != 0.25) {\n String itemCountIcon = UtilityHelper.elementGetText(ITEM_COUNT_ON_SHOPPING_CART);\n UtilityHelper.click(element.findElement(By.xpath(\".//*[contains(@id,'minus')]\")));\n if (!(qtyStep.equals(\"0.25\"))) {\n // If Alt UoM != LB, calculate quantity\n waitUntilQuantityUpdate(\"minus\", itemCountIcon);\n }\n }\n }\n }",
"public void add_to_my_list_process(View v) {\n\n addToCart_flag = false;\n // get current login value saved in sharedpreferences object\n SharedPreferences loginSharedPref = getSharedPreferences(\"LoginData\", MODE_PRIVATE);\n // get current agent id\n final String AgentID = loginSharedPref.getString(\"ID\", \"\");\n // create string\n create_final_string_product();\n /* get all list names into arraylist object */\n ArrayList<String> listNames = get_list_data_from_local_DB(AgentID);\n // display alert box to choose list name by user\n display_list_names(listNames, AgentID);\n // clear all data after adding product into cart\n clear_data();\n }",
"@RequestMapping(value = \"/addProduct\", method = RequestMethod.POST)\r\npublic ModelAndView addProduct(ModelAndView model,\r\n\t\t@RequestParam(\"productid\") String productid,\r\n\t\t@RequestParam(\"sellerid\") String sellerid,\r\n\t\t@RequestParam(\"categoryid\") String categoryid,\r\n\t\t@RequestParam(\"productname\") String productname,\r\n\t\t@RequestParam(\"shortdescription\") String shortdescription,\r\n\t\t@RequestParam(\"detailedescription\") String detailedescription,\r\n\t\t@RequestParam(\"startingprice\") String startingprice,\r\n\t\t@RequestParam(\"bidstartdate\") String bidstartdate,\r\n\t\t@RequestParam(\"bidenddate\") String bidenddate) {\r\n\t Product product = new Product();\r\n\t product.setProductId(productid);\r\n\t product.setSellerId(sellerid);\r\n\t product.setCategoryId(categoryid);\r\n\t product.setProductName(productname);\r\n\t product.setShortDescription(shortdescription);\r\n\t product.setDetailedDescription(detailedescription);\r\n\t product.setStartingPrice(startingprice);\r\n\t product.setBidStartDate(bidstartdate);\r\n\t product.setBidEndDate(bidenddate);\r\n\t userService.addProduct(product);\r\n\t model.setViewName(\"productSuccess\");\r\n return model;\r\n\t \r\n}",
"@RequestMapping(value = \"/addtransactionproduct/{id}/{qty}/{price}/\")\n\tpublic @ResponseBody ArrayList<String> addTransactionProductToArrayList(HttpSession session, @PathVariable(\"id\") Long id, @PathVariable(\"qty\") Double qty, @PathVariable(\"price\") String stringPrice, Principal principal) {\n\n\t\tArrayList<String> productInfo = new ArrayList<String>();\n\t\tString checker = (String) session.getAttribute(\"qtyOutChecker\");\n\t\t\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<DummyProductQty> transactionItems = (ArrayList<DummyProductQty>) session.getAttribute(\"transactionItems\");\n\t\t\n\t\t// convert stringPrice to Double price\n\t\tDouble price;\n\t\ttry {\n\t\t\tprice = Double.parseDouble(stringPrice);\n\t\t} catch (NumberFormatException e) {\n\t\t\tlogger.info(\"no product found!\");\n\t\t\tproductInfo.add(\"Error\");\n\t\t\tproductInfo.add(\"Product Not Found\");\n\n\t\t\treturn productInfo;\n\t\t}\n\t\t// Real Product\n\t\tProduct product = productService.getProduct(id);\n\n\t\tlogger.info(\"ENTERED - PRODUCT NAME IS: \" + product.getProductName() + \" by \" + principal.getName());\n\n\t\tif (product.getTotalQty() < qty && checker.equalsIgnoreCase(\"true\")) {\n\t\t\tlogger.info(\"check quantity\");\n\t\t\tproductInfo.add(\"Error\");\n\t\t\tproductInfo.add(\"Error in getting product, check quantity\");\n\t\t\treturn productInfo;\n\t\t}\n\n\t\t// boolean checker = false;\n\t\t// boolean loopChecker = false;\n\n\t\tList<Inventory> inventories = new ArrayList<Inventory>();\n\n\t\t// testing the new solution - 12/8/13 (place in if statement product\n\t\t// !=\n\t\t// null after else bracket -- integrate this to the existing if\n\t\t// statement in checking if the same product\n\t\tinventories = inventoryService.getInventoryByProduct(product);\n\n\t\tDouble bufferQty = qty;\n\n\t\t// integrate previous block with this below -start of integration\n\t\tif (inventories.size() > 0) {\n\t\t\tif (settingsService.getSettings((long) 1).getStockProcess().equalsIgnoreCase(\"LIFO\")) {\n\t\t\t\tlogger.info(\"LIFO\");\n\t\t\t\tCollections.sort(inventories, new CustomComparatorDescending());\n\t\t\t} else {\n\t\t\t\tlogger.info(\"FIFO\");\n\t\t\t\tCollections.sort(inventories, new CustomComparatorAscending());\n\t\t\t\tlogger.info(\"inside if statement inventory.size FIFO\");\n\t\t\t}\n\t\t}\n\t\t// logger.info(\"TESTING SHIZ\");\n\n\t\t// if (product != null) {\n\n\t\t// use inventory entity to check and add the arraylist\n\t\tif (checker.equalsIgnoreCase(\"false\")) {\n\t\t\tlogger.info(\"inside if statement - checker (FALSE)\");\n\t\t\tDummyProductQty dpq = new DummyProductQty();\n\t\t\tdpq.setId(id);\n\t\t\tdpq.setQty(qty);\n\t\t\tdpq.setPrice(price);\n\t\t\t// might change this soon to CODE\n\t\t\tdpq.setCost(inventoryService.getInventory(product.getInventoryId()).getCost());\n\n\t\t\ttransactionItems.add(dpq);\n\t\t\t\n\t\t\tsession.setAttribute(\"transactionItems\", transactionItems);\n\t\t\t\n\t\t\tproductInfo.add(product.getProductName());\n\t\t\t// productInfo.add(product.getCode());\n\t\t\tproductInfo.add(convertCode.getCostCode(inventoryService.getInventory(product.getInventoryId()).getCost()));\n\t\t\tproductInfo.add(qty.toString());\n\t\t\tproductInfo.add(product.getUnitOfMeasure());\n\t\t\tproductInfo.add(\"N/A\");\n\n\t\t\tlogger.info(product.getProductName() + \" - \" + qty.toString() + \" \" + product.getUnitOfMeasure() + \" \" + \"N/A\" + \" by \" + principal.getName());\n\n\t\t\treturn productInfo;\n\t\t}\n\n\t\tfor (DummyProductQty dummyProductQty : transactionItems) {\n\n\t\t\tif (dummyProductQty.getId() == id) {\n\t\t\t\tproductInfo.add(\"Error\");\n\t\t\t\tproductInfo.add(\"Product Found but Identical\");\n\n\t\t\t\tlogger.info(\"Identical Product. by \" + principal.getName());\n\n\t\t\t\treturn productInfo;\n\t\t\t}\n\n\t\t}\n\n\t\tlogger.info(\"STOCK OUT\");\n\n\t\tfor (Inventory inventory : inventories) {\n\t\t\tif (bufferQty <= inventory.getQty()) {\n\n\t\t\t\tDummyProductQty dpq = new DummyProductQty();\n\t\t\t\tdpq.setId(id);\n\t\t\t\tdpq.setQty(bufferQty);\n\t\t\t\tdpq.setPrice(price);\n\t\t\t\t// might change this soon to CODE\n\t\t\t\tdpq.setCost(inventory.getCost());\n\t\t\t\t// dpq.setCheckerQty(qty + dummyProductQty.getCheckerQty());\n\n\t\t\t\ttransactionItems.add(dpq);\n\t\t\t\t\n\t\t\t\tsession.setAttribute(\"transactionItems\", transactionItems);\n\t\t\t\t// add UI row here\n\t\t\t\tproductInfo.add(product.getProductName());\n\t\t\t\t// productInfo.add(product.getCode());\n\t\t\t\tproductInfo.add(convertCode.getCostCode(inventory.getCost()));\n\t\t\t\tproductInfo.add(bufferQty.toString());\n\t\t\t\tproductInfo.add(product.getUnitOfMeasure());\n\t\t\t\tproductInfo.add(price.toString());\n\n\t\t\t\tlogger.info(product.getProductName() + \" - \" + inventory.getCost().toString() + \" \" + qty.toString() + \" \" + product.getUnitOfMeasure() + \" \" + price.toString() + \" by \" + principal.getName());\n\n\t\t\t\treturn productInfo;\n\t\t\t} else {\n\n\t\t\t\tif (inventory.getQty() != 0.0) {\n\t\t\t\t\tbufferQty = bufferQty - inventory.getQty();\n\n\t\t\t\t\tDummyProductQty dpq = new DummyProductQty();\n\t\t\t\t\tdpq.setId(id);\n\t\t\t\t\tdpq.setQty(inventory.getQty());\n\t\t\t\t\tdpq.setPrice(price);\n\t\t\t\t\t// might change this soon to CODE\n\t\t\t\t\tdpq.setCost(inventory.getCost());\n\t\t\t\t\t// dpq.setCheckerQty(qty +\n\t\t\t\t\t// dummyProductQty.getCheckerQty());\n\n\t\t\t\t\tlogger.info(inventory.getCost().toString());\n\n\t\t\t\t\tproductInfo.add(product.getProductName());\n\t\t\t\t\t// productInfo.add(product.getCode());\n\t\t\t\t\tproductInfo.add(convertCode.getCostCode(inventory.getCost()));\n\t\t\t\t\tproductInfo.add(inventory.getQty().toString());\n\t\t\t\t\tproductInfo.add(product.getUnitOfMeasure());\n\t\t\t\t\tproductInfo.add(price.toString());\n\n\t\t\t\t\ttransactionItems.add(dpq);\n\t\t\t\t\t\n\t\t\t\t\tsession.setAttribute(\"transactionItems\", transactionItems);\n\t\t\t\t\t// add UI row here\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// arrayList.add(dpq);\n\t\tlogger.info(\"START UP: ARRAY LIST SIZE IS \" + transactionItems.size() + \" \" + principal.getName());\n\n\t\treturn productInfo;\n\t}",
"@Override\n\tpublic void processItemAddedMessage(ProcessItemAddedMessageObjectEvent e, String message) {\n\t\tcontroller.orderSubTotal(currentAmount);\n\t\t\n\t}",
"public void add(int index){\n int i = 0;\n boolean isFound = false;\n for (Product product:inventory.getProducts().keySet())\n {\n i++;\n if (i == index && inventory.getProducts().get(product) > 0)\n {\n if (myBasket.containsKey(product))\n {\n System.out.println(\"One more of this product added.\");\n myBasket.replace(product , myBasket.get(product) + 1);\n }\n else {\n System.out.println(\"Product added to your basket.\");\n myBasket.put(product , 1);\n }\n totalCost = totalCost + product.getPrice();\n isFound = true;\n inventory.updateStock(product , '-');\n }\n }\n if (!isFound)\n System.out.println(\"Sorry. Invalid index or not enough product in stock!\");\n }",
"@Override\r\n\tpublic ResponseData addProduct(ProductModel productModel) {\n\t\tProduct product = (Product) productConverter.convert(productModel);\r\n\t\tlong i = productRepositoryImpl.addProduct(product).getId();\r\n\t\tif (i > 0) {\r\n\t\t\treturn new ResponseData(product.getId(), true, \"Save Data Success full\");\r\n\t\t} else {\r\n\t\t\treturn new ResponseData(0, false, \"Failed\");\r\n\t\t}\r\n\r\n\t}",
"@Override\n public void onClick(View v) {\n\n final ActiveShoppingCartActivity ref = (ActiveShoppingCartActivity) getActivity();\n\n AsyncHttpClient client = new AsyncHttpClient();\n client.delete(\"http://ec2-52-86-213-15.compute-1.amazonaws.com/api/v1/cartItems/\", new AsyncHttpResponseHandler() {\n @Override\n public void onStart() {\n // Initiated the request\n\n }\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n // Successfully got a response\n try {\n JSONArray jsonData = new JSONArray(new String(responseBody));\n ref.buildNewListOfData(jsonData);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable\n error)\n {\n // Response failed :(\n Log.v(\"Request failed\", error.getLocalizedMessage());\n }\n });\n\n ref.closePopup();\n dismiss();\n }",
"Cart addToCart(String productCode, Long quantity, String userId);",
"protected void addButtonActionPerformed() {\n\t\tFoodTruckManagementSystem ftms = FoodTruckManagementSystem.getInstance();\n\t\t// Initialize controller\n\t\tMenuController mc = new MenuControllerAdapter();\n\t\t\n\t\t// Get selected supply type\n\t\tSupplyType supply = null;\n\t\ttry {\n\t\t\tsupply = ftms.getSupplyType(selectedSupply);\n\t\t} catch (NullPointerException | IndexOutOfBoundsException e) {\n\t\t}\n\t\t\n\t\t// Get given quantity\n\t\tdouble qty = -1;\n\t\ttry {\n\t\t\tqty = Double.parseDouble(qtyTextField.getText());\n\t\t} catch (NumberFormatException | NullPointerException e) {\n\t\t}\n\t\t\n\t\t// Add supply to item\n\t\ttry {\n\t\t\tmc.addIngredientToItem(item, supply, qty);\n\t\t} catch (InvalidInputException | DuplicateTypeException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\t\t\n\t\trefreshData();\n\t\t\n\t}",
"@Override\n\t@RequestMapping(value=ZuelControllerValue.Manage+\"addItem\")\n\tpublic ZuelResult addItem(TbItem item) {\n\t\treturn service.addItem(item);\n\t}",
"@PostMapping(value = \"/addcart\")\n public ResponseEntity<String> addCart(@RequestBody @Valid OrderProduct orderProduct, final HttpSession session) throws Exception {\n\n //Get the initial cart\n log.info(session.getId() + \" : Reviewing the initial cart\");\n Map<String, CartProduct> initialCart = (Map<String, CartProduct>) session.getAttribute(CART_SESSION_CONSTANT);\n\n Integer quantity = orderProduct.getQuantity();\n\n //Check if cart is empty and instantiate it, if product is already there in the cart, update them\n if (CollectionUtils.isEmpty(initialCart)) {\n log.info(\"No Items added yet\");\n initialCart = new HashMap<>();\n } else {\n if (initialCart.containsKey(orderProduct.getProductName()))\n quantity = quantity + initialCart.get(orderProduct.getProductName()).getQuantity();\n }\n\n //check if the store has the available quantity and update the cart\n log.info(session.getId() + \" : Processing the addition of product to the cart\");\n Product product = prodService.getProd(orderProduct.getProductName());\n if (product.getQuantity() >= quantity) {\n CartProduct cartProduct = ControllerUtils.buildCartProduct(product, quantity);\n initialCart.put(orderProduct.getProductName(), cartProduct);\n session.setAttribute(CART_SESSION_CONSTANT, initialCart);\n return ResponseEntity.status(HttpStatus.OK).body(\"Product \" + orderProduct.getProductName() + \" added to the cart\");\n } else {\n log.error(session.getId() + \" : Error updating cart for products unavailable\");\n throw new AvailabilityException(orderProduct.getProductName());\n }\n\n }",
"public void userClicksRemoveItemsFromCartButton() {\n UtilityHelper.waitUntilClickable(UnavailableItems_Modal_Button);\n UtilityHelper.click(UnavailableItems_Modal_Button);\n UtilityHelper.waitUntilElementNotVisible(UnavailableItems_Modal);\n }"
] | [
"0.7196557",
"0.58080435",
"0.5752007",
"0.5530176",
"0.5460537",
"0.5409718",
"0.5383968",
"0.53730404",
"0.53527904",
"0.533224",
"0.53272694",
"0.53062713",
"0.52553123",
"0.52242255",
"0.52202076",
"0.5219484",
"0.5213287",
"0.51950854",
"0.51897556",
"0.5187147",
"0.5169406",
"0.51682806",
"0.51609915",
"0.51555157",
"0.5152197",
"0.51425576",
"0.50908667",
"0.50758415",
"0.5071636",
"0.5066332",
"0.50596124",
"0.50487953",
"0.50475127",
"0.5043562",
"0.5039843",
"0.5033687",
"0.5027971",
"0.50214964",
"0.5020146",
"0.50145054",
"0.5013324",
"0.5008735",
"0.5004783",
"0.49937508",
"0.49876344",
"0.49815258",
"0.49797362",
"0.49782863",
"0.49736682",
"0.497206",
"0.49630553",
"0.49596623",
"0.49567512",
"0.4942091",
"0.49359158",
"0.49269223",
"0.49222806",
"0.49207568",
"0.49188885",
"0.49181786",
"0.4911178",
"0.4907105",
"0.49067676",
"0.48970613",
"0.48966634",
"0.48952875",
"0.48892978",
"0.48889175",
"0.4888135",
"0.48829767",
"0.48822287",
"0.48783588",
"0.48769858",
"0.48736447",
"0.4872711",
"0.48659864",
"0.4862966",
"0.48564613",
"0.48550898",
"0.48496205",
"0.4846918",
"0.48395053",
"0.48373276",
"0.4830854",
"0.48187622",
"0.4814178",
"0.4810519",
"0.48087892",
"0.48040748",
"0.4801838",
"0.4801747",
"0.48015916",
"0.4800112",
"0.4796487",
"0.47932866",
"0.47921157",
"0.4790993",
"0.47784823",
"0.47778764",
"0.47765636"
] | 0.65741456 | 1 |
Interface for services that can compile and evaluate expressions found in JSONPaths. | public interface PathExpressionService {
/**
* Compile an expression.
*
* @param path The original path.
* @param offset The offset of the expression being compiled in the original path.
* @param inputString The expression to compile.
* @return The compiled form of the expression. This value will be passed to evaluate.
* @throws InvalidPathSyntaxException If there was a problem compiling the expression.
*/
CompiledExpressionHolder compile(String path, int offset, String inputString)
throws InvalidPathSyntaxException;
/**
* Evaluated a compiled expression.
*
* @param code The compiled form of the expression.
* @param root The root object that is being traversed with JSON-path.
* @param key The key when iterating over object fields or NULL if not-applicable.
* @param value The value when iterating over an object/array.
* @return The result of the expression.
* @throws InvalidPathException If there was a problem executing the expression.
*/
Object evaluate(CompiledExpressionHolder code, Object scopes, Object root, Object key, Object
value) throws InvalidPathException;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface ExpressionService {\n String ID = ExpressionService.class.getName();\n\n String DAYS_DESCRIPTION = \"[Number of days]\";\n\n String SYMBOL_DAYS = \"[days]\";\n\n String SYMBOL_WILDCARD = \"*\";\n\n String UID_EXPRESSION = \"[a-zA-Z]\\\\w{10}\";\n\n String INT_EXPRESSION = \"^(0|-?[1-9]\\\\d*)$\";\n\n // -------------------------------------------------------------------------\n // Expression CRUD operations\n // -------------------------------------------------------------------------\n\n /**\n * Adds a new Expression to the database.\n *\n * @param expression The Expression to add.\n * @return The generated identifier for this Expression.\n */\n long addExpression(Expression expression);\n\n /**\n * Updates an Expression.\n *\n * @param expression The Expression to update.\n */\n void updateExpression(Expression expression);\n\n /**\n * Deletes an Expression from the database.\n *\n * @param expression the expression.\n */\n void deleteExpression(Expression expression);\n\n /**\n * Get the Expression with the given identifier.\n *\n * @param id The identifier.\n * @return an Expression with the given identifier.\n */\n Expression getExpression(long id);\n\n /**\n * Gets all Expressions.\n *\n * @return A list with all Expressions.\n */\n List<Expression> getAllExpressions();\n\n // -------------------------------------------------------------------------\n // Indicator expression logic\n // -------------------------------------------------------------------------\n\n /**\n * Returns all dimensional item objects which are present in numerator and denominator of the\n * given indicators, as a map from id to object.\n *\n * @param indicators the collection of indicators.\n * @return a map from dimensional item id to object.\n */\n Map<DimensionalItemId, DimensionalItemObject> getIndicatorDimensionalItemMap(\n Collection<Indicator> indicators);\n\n /**\n * Returns all OrganisationUnitGroups in the numerator and denominator expressions in the given\n * Indicators. Returns an empty set if the given indicators are null or empty.\n *\n * @param indicators the set of indicators.\n * @return a Set of OrganisationUnitGroups.\n */\n List<OrganisationUnitGroup> getOrgUnitGroupCountGroups(Collection<Indicator> indicators);\n\n /**\n * Generates the calculated value for the given parameters based on the values in the given maps.\n *\n * @param indicator the indicator for which to calculate the value.\n * @param periods a List of periods for which to calculate the value.\n * @param itemMap map of dimensional item id to object in expression.\n * @param valueMap the map of data values.\n * @param orgUnitCountMap the map of organisation unit group member counts.\n * @return the calculated value as a double.\n */\n IndicatorValue getIndicatorValueObject(\n Indicator indicator,\n List<Period> periods,\n Map<DimensionalItemId, DimensionalItemObject> itemMap,\n Map<DimensionalItemObject, Object> valueMap,\n Map<String, Integer> orgUnitCountMap);\n\n /**\n * Substitutes any constants and org unit group member counts in the numerator and denominator on\n * all indicators in the given collection.\n *\n * @param indicators the set of indicators.\n */\n void substituteIndicatorExpressions(Collection<Indicator> indicators);\n\n // -------------------------------------------------------------------------\n // Get information about the expression\n // -------------------------------------------------------------------------\n\n /**\n * Tests whether the expression is valid.\n *\n * @param expression the expression string.\n * @param parseType the type of expression to parse.\n * @return the ExpressionValidationOutcome of the validation.\n */\n ExpressionValidationOutcome expressionIsValid(String expression, ParseType parseType);\n\n /**\n * Creates an expression description containing the names of the DimensionalItemObjects from a\n * numeric valued expression.\n *\n * @param expression the expression string.\n * @param parseType the type of expression to parse.\n * @return a description containing DimensionalItemObjects names.\n */\n String getExpressionDescription(String expression, ParseType parseType);\n\n /**\n * Creates an expression description containing the names of the DimensionalItemObjects from an\n * expression string, for an expression that will return the specified data type.\n *\n * @param expression the expression string.\n * @param parseType the type of expression to parse.\n * @param dataType the data type for the expression to return.\n * @return An description containing DimensionalItemObjects names.\n */\n String getExpressionDescription(String expression, ParseType parseType, DataType dataType);\n\n /**\n * Gets the item descriptions that need to be substituted in an expression to form the expression\n * description.\n *\n * @param expression the expression string.\n * @param parseType the type of expression to parse.\n * @return A {@link Map} of item descriptions.\n */\n Map<String, String> getExpressionItemDescriptions(String expression, ParseType parseType);\n\n /**\n * Gets the item descriptions that need to be substituted in an expression to form the expression\n * description, for an expression that will return the specified data type.\n *\n * @param expression the expression string.\n * @param parseType the type of expression to parse.\n * @param dataType the data type for the expression to return.\n * @return A {@link Map} of item descriptions.\n */\n Map<String, String> getExpressionItemDescriptions(\n String expression, ParseType parseType, DataType dataType);\n\n /**\n * Gets information we need from an expression string.\n *\n * @param params the expression parameters.\n * @return the expression information.\n */\n ExpressionInfo getExpressionInfo(ExpressionParams params);\n\n /**\n * From expression info, create a \"base\" expression parameters object with certain metadata fields\n * supplied that are needed for later evaluation.\n *\n * <p>Before evaluation, the caller will need to add to this \"base\" object fields such as\n * expression, parseType, dataType, valueMap, etc.\n *\n * @param info the expression information.\n * @return the expression parameters with metadata pre-filled.\n */\n ExpressionParams getBaseExpressionParams(ExpressionInfo info);\n\n /**\n * Returns UIDs of Data Elements and associated Option Combos (if any) found in the Data Element\n * Operands an expression.\n *\n * <p>If the Data Element Operand consists of just a Data Element, or if the Option Combo is a\n * wildcard \"*\", returns just dataElementUID.\n *\n * <p>If an Option Combo is present, returns dataElementUID.optionComboUID.\n *\n * @param expression the expression string.\n * @param parseType the type of expression to parse.\n * @return a Set of data element identifiers.\n */\n Set<String> getExpressionElementAndOptionComboIds(String expression, ParseType parseType);\n\n /**\n * Returns all data element ids found in the given expression string, including those found in\n * data element operands. Returns an empty set if the given expression is null.\n *\n * @param expression the expression string.\n * @param parseType the type of expression to parse.\n * @return a Set of data elements ids included in the expression string.\n */\n Set<String> getExpressionDataElementIds(String expression, ParseType parseType);\n\n /**\n * Returns all CategoryOptionCombo uids in the given expression string that are used as a data\n * element operand categoryOptionCombo or attributeOptionCombo. Returns an empty set if the\n * expression is null.\n *\n * @param expression the expression string.\n * @param parseType the type of expression to parse.\n * @return a Set of CategoryOptionCombo uids in the expression string.\n */\n Set<String> getExpressionOptionComboIds(String expression, ParseType parseType);\n\n /**\n * Returns all dimensional item object ids in the given expression.\n *\n * @param expression the expression string.\n * @param parseType the type of expression to parse.\n * @return a Set of dimensional item object ids.\n */\n Set<DimensionalItemId> getExpressionDimensionalItemIds(String expression, ParseType parseType);\n\n /**\n * Returns set of all OrganisationUnitGroup UIDs in the given expression.\n *\n * @param expression the expression string.\n * @param parseType the type of expression to parse.\n * @return Map of UIDs to OrganisationUnitGroups in the expression string.\n */\n Set<String> getExpressionOrgUnitGroupIds(String expression, ParseType parseType);\n\n // -------------------------------------------------------------------------\n // Compute the value of the expression\n // -------------------------------------------------------------------------\n\n /**\n * Generates the calculated value for an expression.\n *\n * @param params the expression parameters.\n * @return the calculated value.\n */\n Object getExpressionValue(ExpressionParams params);\n\n // -------------------------------------------------------------------------\n // Gets a (possibly cached) constant map\n // -------------------------------------------------------------------------\n\n /**\n * Gets the (possibly cached) constant map.\n *\n * @return the constant map.\n */\n Map<String, Constant> getConstantMap();\n}",
"@Override\n @SuppressWarnings(\"PMD.LawOfDemeter\")\n public O apply(final String json) {\n return JsonPath\n .parse(json)\n .read(expression, clazz);\n }",
"@Service\r\npublic interface EvalService {\r\n\r\n String evalCreate(Evaluation evaluation);\r\n\r\n String evalGet(String order_id);\r\n}",
"public interface JSONParserService extends Service {\r\n\r\n /**\r\n * Parses from json to map\r\n *\r\n * @param json data\r\n * @return Map<String, Object> or null, if json equals null\r\n */\r\n Map<String, Object> parseToMap(String json);\r\n\r\n /**\r\n * Parses from map to json\r\n *\r\n * @param data map with data\r\n * @return json or null, if map equals null\r\n */\r\n String parseMapToJson(Map<String, Object> data);\r\n\r\n /**\r\n * Parses from object to json\r\n *\r\n * @param obj object that will be parsed to json\r\n * @return json or null if invalid data\r\n */\r\n String parseObjectToJson(Object obj);\r\n\r\n /**\r\n * Parses from json to object of T class\r\n *\r\n * @param json string of json with data object\r\n * @param classObject type object\r\n *\r\n * @return T object or null, if transferred incorrect data\r\n */\r\n <T> T parseToObject(Object json, Class<T> classObject);\r\n\r\n /**\r\n * Parses from json to collection of object's T class\r\n *\r\n * @param json string of json with data objects\r\n * @param typeClass type of objects collection\r\n *\r\n * @return collection of object's T class or null, if transferred incorrect data\r\n */\r\n <T> Collection<T> parseToCollectionObjects(Object json, Type typeClass);\r\n\r\n\r\n}",
"public interface OperateJson {\n\n\n boolean filter(List<KeyFilter> list, JSONObject json);\n\n OrderTemp simpleOperate(KeyConfig kc, JSONObject json);\n\n List<Order> operateArray(String arrayKey, JSONObject json, OrderTemp temp);\n}",
"public interface IExpressionRuntime\n{\n Object evaluate();\n}",
"public interface Expression {\n public boolean interpret(String context);\n}",
"public interface Expression {\n public boolean interpret(String context);\n}",
"public interface Expression {\n public boolean interpret(String context);\n}",
"@Test\n public void testComponentExecutionWithJsonPathAndPlaceholderString() throws ParseException\n {\n ExpressionEvaluator evaluator = new ExpressionEvaluator(EXPRESSION_BOOKS_FROM_AUTHOR_PLACEHOLDER);\n Map<String, Object> map = new HashMap<>();\n map.put(VARIABLE_STORE_JSON, JSON_STORE);\n map.put(VARIABLE_AUTHOR, J_R_R_TOLKIEN);\n assertEquals(THE_LORD_OF_THE_RINGS, evaluator.evaluate(map));\n }",
"public interface JavaEvaluator extends Evaluators {\n}",
"@Override\n\tpublic void visit(JsonExpression arg0) {\n\t\t\n\t}",
"Object evaluate(CompiledExpressionHolder code, Object scopes, Object root, Object key, Object\n value) throws InvalidPathException;",
"@Test\n public void testComponentExecutionWithJsonpathAndHttpGet() throws ParseException\n {\n try (MockedStatic<WebServiceUtils> mock = Mockito.mockStatic(WebServiceUtils.class))\n {\n mock.when(() -> WebServiceUtils.getAsString(URL_EMPLOYEE1)).thenReturn(JSON_EMPLOYEE1);\n ExpressionEvaluator evaluator = new ExpressionEvaluator(EXPRESSION_JSONPATH_HTTP_GET);\n assertEquals(JSON_EMPLOYEE1_NAME, evaluator.evaluate(Collections.emptyMap()));\n }\n }",
"public interface JSONRestconfService {\n /**\n * The data tree root path.\n */\n String ROOT_PATH = null;\n\n /**\n * Issues a restconf PUT request to the configuration data store.\n *\n * @param uriPath the yang instance identifier path, eg \"opendaylight-inventory:nodes/node/device-id\".\n * To specify the root, use {@link ROOT_PATH}.\n * @param payload the payload data in JSON format.\n * @throws OperationFailedException if the request fails.\n */\n void put(String uriPath, @Nonnull String payload) throws OperationFailedException;\n\n /**\n * Issues a restconf POST request to the configuration data store.\n *\n * @param uriPath the yang instance identifier path, eg \"opendaylight-inventory:nodes/node/device-id\".\n * To specify the root, use {@link ROOT_PATH}.\n * @param payload the payload data in JSON format.\n * @throws OperationFailedException if the request fails.\n */\n void post(String uriPath, @Nonnull String payload) throws OperationFailedException;\n\n /**\n * Issues a restconf DELETE request to the configuration data store.\n *\n * @param uriPath the yang instance identifier path, eg \"opendaylight-inventory:nodes/node/device-id\".\n * To specify the root, use {@link ROOT_PATH}.\n * @throws OperationFailedException if the request fails.\n */\n void delete(String uriPath) throws OperationFailedException;\n\n /**\n * Issues a restconf GET request to the given data store.\n *\n * @param uriPath the yang instance identifier path, eg \"opendaylight-inventory:nodes/node/device-id\".\n * To specify the root, use {@link ROOT_PATH}.\n * @param datastoreType the data store type to read from.\n * @return an Optional containing the data in JSON format if present.\n * @throws OperationFailedException if the request fails.\n */\n Optional<String> get(String uriPath, LogicalDatastoreType datastoreType)\n throws OperationFailedException;\n\n /**\n * Invokes a yang-defined RPC.\n *\n * @param uriPath the path representing the RPC to invoke, eg \"toaster:make-toast\".\n * @param input the input in JSON format if the RPC takes input.\n * @return an Optional containing the output in JSON format if the RPC returns output.\n * @throws OperationFailedException if the request fails.\n */\n Optional<String> invokeRpc(@Nonnull String uriPath, Optional<String> input) throws OperationFailedException;\n\n /**\n * Issues a restconf PATCH request to the configuration data store.\n *\n * @param uriPath the yang instance identifier path, eg \"opendaylight-inventory:nodes/node/device-id\".\n * To specify the root, use {@link ROOT_PATH}.\n * @param payload the payload data in JSON format.\n * @return an Optional containing the patch response data in JSON format.\n * @throws OperationFailedException if the request fails.\n */\n Optional<String> patch(@Nonnull String uriPath, @Nonnull String payload) throws OperationFailedException;\n}",
"public interface CalculatorService {\n\n\tpublic double add(double arg1, double arg2); \n\tpublic double sub(double arg1, double arg2); \n\tpublic double div(double arg1, double arg2);\n\tpublic double mult(double arg1, double arg2);\n}",
"@Test\n public void testComponentExecutionWithJsonpathAndHttpGetAndPlaceholderInUrl() throws ParseException\n {\n try (MockedStatic<WebServiceUtils> mock = Mockito.mockStatic(WebServiceUtils.class))\n {\n mock.when(() -> WebServiceUtils.getAsString(URL_EMPLOYEE1)).thenReturn(JSON_EMPLOYEE1);\n ExpressionEvaluator evaluator = new ExpressionEvaluator(\n EXPRESSION_JSONPATH_HTTP_GET_WITH_PLACEHOLDER);\n\n Map<String, Object> map = new HashMap<>();\n map.put(\"myId\", 1);\n assertEquals(JSON_EMPLOYEE1_NAME, evaluator.evaluate(map));\n }\n }",
"public interface JsonPath {\n\n JsonPath parent();\n\n Optional<JsonObject> getJsonObject(JsonObject jsonObject);\n\n Optional<JsonArray> getJsonArray(JsonObject jsonObject);\n\n static JsonPath root() {\n return new JsonPathImpl(ImmutableList.of());\n }\n\n boolean isRoot();\n\n JsonPath concat(JsonObjectPathSpecImpl jsonObjectPathSpec);\n\n JsonPath concat(JsonArrayPathSpecImpl jsonArrayPathSpec);\n\n JsonPath concat(JsonPath jsonPath);\n\n List<PathSpec> parts();\n\n JsonPath subpath(int start, int end);\n\n int size();\n\n static JsonPath parse(final String pathStr) {\n\n Objects.requireNonNull(pathStr);\n\n ImmutableList.Builder<PathSpec> listBuilder = ImmutableList.builder();\n\n String[] split = pathStr.split(\"\\\\.\");\n for (int i = 0; i < split.length; i++) {\n String strPart = split[i];\n\n if (strPart.isEmpty()) {\n continue;\n }\n\n int start = strPart.indexOf('[');\n\n if (start > 0) {\n int end = strPart.indexOf(']');\n\n listBuilder.add(\n new JsonArrayPathSpecImpl(\n strPart.substring(0, start),\n Integer.parseInt(strPart.substring(start + 1, end))\n )\n );\n continue;\n }\n\n listBuilder.add(\n new JsonObjectPathSpecImpl(\n strPart\n )\n );\n }\n return new JsonPathImpl(\n listBuilder.build()\n );\n }\n\n static void main(String[] asdf) {\n\n String[] ss = {};\n JsonPath parse = JsonPath.parse(\"departments[0].department.department.employee.departments[0].name\");\n System.out.println(\"path: [\" + parse + \"] size: \" + parse.size());\n }\n}",
"public interface IEvaluationService {\n /**\n * 查询列表\n *\n * @param request\n * @return\n */\n List<EvaluationEntity> queryEvalList(QueryEvalRequest request);\n\n /**\n * 查询条数\n *\n * @param request\n * @return\n */\n Integer queryEvalListCount(QueryEvalRequest request);\n\n /**\n * 保存\n *\n * @param request\n */\n void save(EvaluationEntity request);\n\n /**\n * 删除\n *\n * @param request\n */\n void delete(EvaluationEntity request);\n}",
"public PathExpressionIF createPathExpression();",
"@Test\n public void testComponentExecutionWithJsonPathAndPlaceholderNumber() throws ParseException\n {\n ExpressionEvaluator evaluator = new ExpressionEvaluator(EXPRESSION_BOOKS_MORE_EXPENSIVE_THAN_PLACEHOLDER);\n Map<String, Object> map = new HashMap<>();\n map.put(VARIABLE_STORE_JSON, JSON_STORE);\n map.put(VARIABLE_MIN_PRICE, MIN_PRICE_10);\n assertEquals(THE_LORD_OF_THE_RINGS, evaluator.evaluate(map));\n }",
"public interface PathService {\n /**\n * Used to get list of all paths\n *\n * @return list of all paths\n */\n public List<Path> getAllPaths();\n\n /**\n * Used to get a specific path\n *\n * @return path instance\n */\n public Path getPath(Integer id) throws ResourceNotFoundException;\n\n /**\n * Used to save or update a path\n *\n * @param Path path instance to save or update\n * @return path instance\n */\n public Path saveOrUpdatePath(Path path);\n}",
"JavaEvaluator createJavaEvaluator();",
"public interface CalculatorMathEngine {\n\n @NotNull\n String evaluate(@NotNull String expression) throws ParseException;\n\n @NotNull\n String simplify(@NotNull String expression) throws ParseException;\n\n @NotNull\n String elementary(@NotNull String expression) throws ParseException;\n\n @NotNull\n Generic evaluateGeneric(@NotNull String expression) throws ParseException;\n\n @NotNull\n Generic simplifyGeneric(@NotNull String expression) throws ParseException;\n\n @NotNull\n Generic elementaryGeneric(@NotNull String expression) throws ParseException;\n}",
"public interface ExtensionInterface {\n\n public static final Object CONST_class =\n \"Symfony\\\\Component\\\\CssSelector\\\\XPath\\\\Extension\\\\ExtensionInterface\";\n\n @ConvertedMethod\n public Object getNodeTranslators(RuntimeEnv env, Object... args);\n\n @ConvertedMethod\n public Object getCombinationTranslators(RuntimeEnv env, Object... args);\n\n @ConvertedMethod\n public Object getFunctionTranslators(RuntimeEnv env, Object... args);\n\n @ConvertedMethod\n public Object getPseudoClassTranslators(RuntimeEnv env, Object... args);\n\n @ConvertedMethod\n public Object getAttributeMatchingTranslators(RuntimeEnv env, Object... args);\n\n @ConvertedMethod\n public Object getName(RuntimeEnv env, Object... args);\n\n static final ReflectionClassData runtimeConverterReflectionData =\n ReflectionClassData.builder()\n .setName(\n \"Symfony\\\\Component\\\\CssSelector\\\\XPath\\\\Extension\\\\ExtensionInterface\")\n .setLookup(ExtensionInterface.class, MethodHandles.lookup())\n .setLocalProperties()\n .setFilename(\n \"vendor/symfony/css-selector/XPath/Extension/ExtensionInterface.php\")\n .get();\n}",
"public interface Expression {\n boolean interpret(String info);\n}",
"public interface EventDispatcher {\n\n Promise<JsonObject> dispatch(EventDispatcher.Params params);\n\n @Value\n @Builder\n final class Params {\n final JsonObject entity;\n final JsonPath path;\n final JsonObject root;\n\n public Params(JsonObject entity, JsonPath path, JsonObject root) {\n Objects.requireNonNull(entity);\n Objects.requireNonNull(path);\n Objects.requireNonNull(root);\n this.entity = entity;\n this.path = path;\n this.root = root;\n }\n }\n}",
"public interface InSyntaxService {\n\n List<MyModelModel> findWithEnums(Collection<MyEnum> enums);\n\n List<MyModelModel> findWithReferences(Collection<MyReferenceModel> references);\n}",
"public interface EvaluateService {\n //获取商品评价信息\n List<Map<String,Object>> getGoodsEvaluate(int id,String type);\n}",
"public interface Parser {\r\n String parse(String path) throws ParsingException;\r\n Map<String, String> parse(Map<String, String> paths) throws ParsingException;\r\n}",
"abstract public interface Interpreter {\n\n /**\n * Evaluates a given JavaScript expression for a given userid.\n * \n * @param expression the expression to evaluate\n * @return the result of evaluating the expression\n */\n public String evaluate(String expression);\n}",
"public interface RepositorySetupService {\n\n\tString USER_PATH = \"userPath\";\n String GROUP_PATH = \"groupPath\";\n String MEMBER_OF = \"memberOf\";\n\n /**\n * adds ACL accordiong to rules declared as JSON file; e.g.\n * <ul>\n * <li>allow read for 'everyone' on root ('/') to walk trough (this node only)</li>\n\t * <li>deny read for 'a-group' on '/apps' and all subnodes and ensure that this folder and the group exists</li>\n\t * <li>make 'everyone' and 'someone' a member of 'a-group' (both principals must exist)</li>\n * <li>remove each ACL for 'a-group' from '/conf' and ensure that this group exists</li>\n * </ul>\n * [{\n * \"path\": \"/\",\n * \"acl\": [{\n * \"principal\": \"everyone\",\n\t * \"reset\": true,\n\t * \"rules\": [{\n\t * \"grant\": \"jcr:read\",\n * \"restrictions\": {\n * \"rep:glob\": \"\"\n * }\n * }]\n * }]\n * },{\n * \"path\": \"/apps\",\n * \"jcr:primaryType\": \"sling:Folder\"\n * \"acl\": [{\n\t * \"principal\": [\n\t * \"a-group\"\n\t * \"another-group\"\n\t * ],\n * \"groupPath\": \"example\",\n\t * \"deny\": [\n * \"jcr:read\"\n * ]\n * }]\n * },{\n\t * \"principal\": [\n\t * \"everyone\",\n\t * \"someone\"\n\t * ],\n * \"memberOf\": [\n * \"a-group\"\n * ]\n * }]\n * },{\n * \"path\": \"/conf\",\n * \"acl\": [{\n\t * \"principal\": \"a-user\",\n\t * \"userPath\": \"example\",\n\t * \"memberOf\": [\n\t * \"a-group\"\n\t * ]\n * }]\n * }]\n *\n * @param session the session (not resolver to make it easy usable in install hooks)\n * @param jsonFilePath a repository path to the ACL JSON file\n */\n void addJsonAcl(@NotNull Session session, @NotNull String jsonFilePath,\n @Nullable Map<String, Object> values)\n throws RepositoryException, IOException;\n\n void addJsonAcl(@NotNull Session session, @NotNull Reader reader,\n @Nullable Map<String, Object> values)\n throws RepositoryException, IOException;\n\n /**\n * revert all changes made by 'addJsonAcl'... - use the same configuration file\n */\n void removeJsonAcl(@NotNull Session session, @NotNull String jsonFilePath,\n @Nullable Map<String, Object> values)\n throws RepositoryException, IOException;\n\n void removeJsonAcl(@NotNull Session session, @NotNull Reader reader,\n @Nullable Map<String, Object> values)\n throws RepositoryException, IOException;\n}",
"public interface Pathable<T> {\n\n T forPath(String path);\n\n}",
"public interface IProcessor {\n\n /**\n * Process one change in the container.\n * @param document json that was added to/updated in the container\n */\n void process(JsonNode document);\n\n}",
"public interface IPersonService {\n\n /**\n * List by given criteria\n * All the params are optional.\n *\n * @param searchCriteria\n * @param sort\n * @param pageIndex\n * @param pageSize\n * @return\n * @throws ServiceException\n */\n Page<Person> listByCriteria(SearchCriteria searchCriteria, String sort, Integer pageIndex, Integer pageSize) throws ServiceException;\n\n /**\n * List by given query params.\n * The query param can have the {@link com.maqs.springboot.sample.dto.SearchCriteria.Operation} as :suffix\n * For eg.\n * age:gt=25 Age is Greater Than 25 filter\n * date:btw=millis1,millis2\n *\n * @param params\n * @return\n * @throws ServiceException\n */\n Page<Person> listByQueryParams(Map<String, String> params) throws ServiceException;\n\n /**\n * List by given criteria (json string)\n * @param criteriaJson\n * @param sort\n * @param pageIndex\n * @param pageSize\n * @return\n * @throws ServiceException\n */\n Page<Person> listByCriteriaAsJson(String criteriaJson, String sort, Integer pageIndex, Integer pageSize) throws ServiceException;\n\n /**\n * Create a listByCriteriaAsJson of persons.\n * @param persons\n * @return\n */\n boolean store(List<Person> persons) throws ServiceException;\n}",
"public interface TicketCodeService {\r\n public JSONObject createCode(Map<String, Object> source);\r\n}",
"public interface ExpressionVisitor{\n\n void handel(BracketExpression bracketExpression);\n\n void handel(NaturalNumber naturalNumber);\n\n\n void handel(Sum sum);\n void handel(Difference difference);\n void handel(Product product);\n void handel(Quotient quotient);\n\n void handel(VariableExpression variableExpression);\n}",
"public interface Evaluator\n{\n /**\n * Return true if the given object is valid as an expression to\n * the evaluator. If an object is a valid expression, then the\n * evaluator is, in general, able to <code>eval()</code> it into\n * a result (or at least reasonably attempt to do so).\n *\n * @param value the value to check\n * @return true if it is valid as an expression, false if not\n */\n public boolean isExpression (Object value);\n\n /**\n * Return true if the given object is a possible result of evaluation.\n * If this returns true, then it is conceivable that the given object\n * was the result of a call to <code>eval()</code> on this evaluator.\n *\n * @param value the value to check\n * @return true if it is a possible result, false if not\n */\n public boolean isResult (Object value);\n\n /**\n * Evaluate the given value as an expression, yielding some result\n * value.\n *\n * @param expression the thing to evaluate\n * @return the result of evaluation\n */\n public Object eval (Object expression);\n}",
"public interface ElasticSearchCriteria {\n\n public void inGroup(String groupName);\n\n public void addParameterMatch(String parameter, String value);\n public void addParameterNotMatch(String parameter, String value);\n public void addParameterComparison(String parameter, String operator, Object value);\n public void addComplexFilter(JSONObject filter);\n\n public JSONObject toJSONObject();\n\n}",
"public static IHjsonDsfProvider math() { return new DsfMath(); }",
"JavaExpression createJavaExpression();",
"public interface DefinitionRepository extends LoadedConfiguration {\n interface CallableOliveDefinition extends CallableDefinition, CallableDefinitionRenderer {}\n\n static DefinitionRepository concat(DefinitionRepository... definitionRepositories) {\n return new DefinitionRepository() {\n\n @Override\n public Stream<ActionDefinition> actions() {\n return Stream.of(definitionRepositories).flatMap(DefinitionRepository::actions);\n }\n\n @Override\n public Stream<ConstantDefinition> constants() {\n return Stream.of(definitionRepositories).flatMap(DefinitionRepository::constants);\n }\n\n @Override\n public Stream<CallableOliveDefinition> oliveDefinitions() {\n return Stream.of(definitionRepositories).flatMap(DefinitionRepository::oliveDefinitions);\n }\n\n @Override\n public Stream<RefillerDefinition> refillers() {\n return Stream.of(definitionRepositories).flatMap(DefinitionRepository::refillers);\n }\n\n @Override\n public Stream<FunctionDefinition> functions() {\n return Stream.of(definitionRepositories).flatMap(DefinitionRepository::functions);\n }\n\n @Override\n public Stream<ConfigurationSection> listConfiguration() {\n return Stream.of(definitionRepositories).flatMap(DefinitionRepository::listConfiguration);\n }\n\n @Override\n public Stream<SignatureDefinition> signatures() {\n return Stream.of(definitionRepositories).flatMap(DefinitionRepository::signatures);\n }\n\n @Override\n public void writeJavaScriptRenderer(PrintStream writer) {\n for (var repository : definitionRepositories) {\n repository.writeJavaScriptRenderer(writer);\n }\n }\n };\n }\n\n /**\n * Get the known actions\n *\n * <p>This can be updated over time.\n *\n * @return a stream of plugins for actions the compiler can use\n */\n Stream<ActionDefinition> actions();\n\n /** Provide all constants know by this service */\n Stream<ConstantDefinition> constants();\n\n /** Provide all olive definitions */\n Stream<CallableOliveDefinition> oliveDefinitions();\n\n Stream<RefillerDefinition> refillers();\n /**\n * Query the repository\n *\n * @return a stream functions\n */\n Stream<FunctionDefinition> functions();\n\n Stream<SignatureDefinition> signatures();\n\n /** Write all the JavaScript code needed to pretty print this action. */\n void writeJavaScriptRenderer(PrintStream writer);\n}",
"public interface ASTPath\n{\n\tvoid debugSelf(IndentPrinter destination);\n\tvoid setParent(ASTChildList.ListKey key, ASTParent newParent);\n\tvoid compileSelf(LangCompiler compiler);\n\tASTBase getDeclaration();\n\tString getName();\n\tString getEnd();\n\tSpiritType getExpressionType();\n\n}",
"public interface SparqlQueryService {\n\n\t/**\n\t * Generic method to invoke a supplied query regardless of its type. The\n\t * client has to inspect and cast the result object accordingly.\n\t * \n\t * @param name\n\t * @param params\n\t * @return\n\t */\n\tObject executeQuery(String sparqlQuery);\n\n\t/**\n\t * Generic method to invoke a query regardless of its type. The client has\n\t * to inspect and cast the result object accordingly.\n\t * \n\t * @param name\n\t * @param params\n\t * @return\n\t */\n\tObject callQuery(String name, Map<String, String> params);\n\n\t/**\n\t * Invocation of a SPARQL SELECT query. The resultant JSON structure is\n\t * serialized according to the W3C SPARQL 1.1 Query Results JSON Format.\n\t * \n\t * @see http://www.w3.org/TR/sparql11-query/#select\n\t * @param name\n\t * @param params\n\t * @return JSON result structure.\n\t */\n\tSparqlResultObject callSelectQuery(String name, Map<String, String> params);\n\n\t/**\n\t * Invocation of a SPARQL CONSTRUCT query resulting in new graph serialized\n\t * according to RDF/JSON format\n\t * (http://jena.apache.org/documentation/io/rdf-json.html).\n\t * \n\t * \n\t * @see http://www.w3.org/TR/sparql11-query/#construct\n\t * @param name\n\t * @param params\n\t * @return\n\t */\n\tGraph callConstructQuery(String name, Map<String, String> params);\n\n\t/**\n\t * Invocation of a SPARQL ASK query resulting in a boolean value.\n\t * \n\t * @see\n\t * \n\t * @param name\n\t * Unique name of the query.\n\t * @param params\n\t * Map of required parameter-value pairs.\n\t * @return true or false, depending whether the pattern matches.\n\t */\n\tBoolean callAskQuery(String name, Map<String, String> params);\n\n}",
"public interface JSONRegistry<I extends Identifiable> extends Registry<I> {\r\n\t/**\r\n\t * @param json the JSON form of the object\r\n\t * @return the Object deserialized from JSON\r\n\t * @throws JsonParseException \r\n\t * @throws JsonMappingException \r\n\t * @throws IOException \r\n\t */\r\n\tpublic I fromJSON(String json) throws JsonParseException, JsonMappingException, IOException ;\r\n\t/**\r\n\t * @param toSerialise the object to serialize\r\n\t * @return the JSPM form of the object\r\n\t * @throws JsonGenerationException \r\n\t * @throws JsonMappingException \r\n\t * @throws IOException \r\n\t */\r\n\tpublic String toJSON(I toSerialise) throws JsonGenerationException, JsonMappingException, IOException;\r\n}",
"public interface PatternAggregateService {\n void parse();\n}",
"public interface ApiEndPointsAndPatameters {\n\t\n//\t/** Resource path for api resources */\n//\tString API_PREFIX = \"/api\";\n//\n\t/** Resource path for API version 1 */\n\tString API_VERSION_1 = \"/v1\";\n//\n//\t/** Resource path to get available power plants. */\n//\tString POWER_PLANT_PATH = \"/powerPlant\";\n//\n//\t/** Resource path to get power plant data for a given power plant id. */\n//\tString POWER_PLANT_DATA_PATH = \"/{id}\";\n//\n//\tString POWER_PLANT_DETAILS = \"/details\";\n//\n//\tString POWER_PLANT_DATA_SUM_BY_DAY = \"/sumByDay\";\n//\n//\tString POWER_PLANT_DATA_SUM_BY_WEEK = \"/sumByWeek\";\n//\n//\tString POWER_PLANT_DATA_SUM_BY_MONTH = \"/sumByMonth\";\n//\n//\tString POWER_PLANT_DATA_SUM_BY_YEAR = \"/sumByYear\";\n//\t\n//\tString POWER_PLANT_DATA_NEXT_HOUR_FORECAST = \"/nextHourForecast\";\n//\t\n//\tString POWER_PLANT_DATA_NEXT_DAY_FORECAST = \"/nextDayForecast\";\n//\n//\t/** Query parameter for filtering by start date. */\n//\tString QUERY_PARAMETER_START_DATE = \"startDate\";\n//\n//\t/** Query parameter for filtering by end date. */\n//\tString QUERY_PARAMETER_END_DATE = \"endDate\";\n//\n//\t/** Query parameter for filtering by power plant data type. */\n//\tString QUERY_PARAMETER_DATA_TYPE = \"dataType\";\n//\t\n//\t\n\t\n\t\n\t/** Query parameter for filtering by power plant data type. */\n\tString QUERY_AUTHENTICATION_ID = \"Authentication-ID\";\n\t\n\t/** Query parameter for filtering by power plant data type. */\n\tString QUERY_USER_PASSWORD = \"UserPassword\";\n\t\n\t/** Query parameter for filtering by power plant data type. */\n\tString QUERY_AUTHORISATION_ID = \"authorisation-id\";\n\t\n\t/** Resource path to get a list to the components a User has access to. */\n\tString USER_COMPONENT_LIST = \"/UserComponentLists\";\n\t\n\t/** Resource path to get a list of available resources for a component. */\n\tString DATA_LIST = \"/DataLists\";\n\t\n\t/** Resource path to authenticate. */\n\tString AUTHENTICATION = \"/authentication\";\n\t\n\t/** Resource path to logout. */\n\tString LOGOUT = \"/logout\";\n\t\n\t/** Resource path to get power plant data for a given power plant id. */\n\tString COMPONENT_ID_PATH = \"/{cId}\";\n\t\n\t/** Resource path to get power plant data for a given power plant id. */\n\tString SIDE_PATH = \"/{side}\";\n\t\n\t/** Resource path to get power plant data for a given power plant id. */\n\tString TYPE_PATH = \"/{type}\";\n\t\n\t/** Resource path to get power plant data for a given power plant id. */\n\tString DATE_PATH = \"/{date}\";\n}",
"public interface Paths extends Constructible, Extensible<Paths> {\n\n /**\n * Adds the given path item to this Paths and return this instance of Paths\n *\n * @param name\n * a path name in the format valid for a Paths object. The field name MUST begin with a slash.\n * @param item\n * the path item added to the list of paths. null values will be rejected (implementation will throw an\n * exception) or ignored.\n * @return the current Paths instance\n */\n Paths addPathItem(String name, PathItem item);\n\n /**\n * Removes the given path item to this Paths.\n *\n * @param name\n * a path name that will be removed.\n */\n void removePathItem(String name);\n\n /**\n * Returns a copy map (potentially immutable) of the path items.\n *\n * @return all items\n */\n Map<String, PathItem> getPathItems();\n\n /**\n * Set the path items map to this Paths\n *\n * @param items\n * a map containing the list of paths. Keys MUST begin with a slash.\n */\n void setPathItems(Map<String, PathItem> items);\n\n /**\n * Check whether a path item is present in the map. This is a convenience method for\n * <code>getPathItems().containsKey(name)</code>\n *\n * @param name\n * a path name in the format valid for a Paths object.\n * @return a boolean to indicate if the path item is present or not.\n */\n default boolean hasPathItem(String name) {\n Map<String, PathItem> map = getPathItems();\n if (map == null) {\n return false;\n }\n return map.containsKey(name);\n }\n\n /**\n * Returns a path item for a given name. This is a convenience method for <code>getPathItems().get(name)</code>\n *\n * @param name\n * a path name in the format valid for a Paths object.\n * @return the corresponding path item or null.\n */\n default PathItem getPathItem(String name) {\n Map<String, PathItem> map = getPathItems();\n if (map == null) {\n return null;\n }\n return map.get(name);\n }\n\n}",
"public interface BeaconQuestService {\n\n @GET(\"/beaconQuest/index/takeChallenge/{accountId}/{beaconId}\")\n Call<ResponseBody> takeChallenge (@Path(\"accountId\") String accountId,\n @Path(\"beaconId\") String beaconId\n );\n\n @GET(\"beaconQuest/index/challengeAnswer/{accountId}/{beaconId}/{answer}\")\n Call<ResponseBody> challengeAnswer(@Path(\"accountId\") String userid,\n @Path(\"beaconId\") String beaconid,\n @Path(\"answer\") String answer\n );\n\n @GET(\"beaconQuest/index//challengeCancel/{accountId}/{beaconId}\")\n Call<ResponseBody> challengeAnswer(@Path(\"accountId\") String userid,\n @Path(\"beaconId\") String beaconid\n );\n\n @GET(\"beaconQuest/index//register/{username}/{password}\")\n Call<ResponseBody> registerAccount(@Path(\"username\") String username,\n @Path(\"password\") String password\n );\n\n @GET(\"beaconQuest/index//login/{username}/{password}/\")\n Call<ResponseBody> login(@Path(\"username\") String username,\n @Path(\"password\") String password\n );\n}",
"public interface EvalHandler {\n\tString getExpression();\n\tvoid handleResult(EvalResult er);\n}",
"public static void register() {\r\n EvaluatorRegistry.registerEvaluator(SIZE, Container.SIZE);\r\n EvaluatorRegistry.registerEvaluator(GenericOperations.UNEQUALS, Container.UNEQUALS);\r\n EvaluatorRegistry.registerEvaluator(new FindOperationEvaluator(false), Container.INCLUDES);\r\n EvaluatorRegistry.registerEvaluator(new FindOperationEvaluator(true), Container.EXCLUDES);\r\n EvaluatorRegistry.registerEvaluator(COUNT, Container.COUNT);\r\n EvaluatorRegistry.registerEvaluator(new IsEmptyOperationEvaluator(false), Container.IS_EMPTY);\r\n EvaluatorRegistry.registerEvaluator(new IsEmptyOperationEvaluator(true), Container.NOT_EMPTY);\r\n EvaluatorRegistry.registerEvaluator(new CalcEvaluator(false), Container.SUM);\r\n EvaluatorRegistry.registerEvaluator(new CalcEvaluator(true), Container.PRODUCT);\r\n EvaluatorRegistry.registerEvaluator(MIN, Container.MIN);\r\n EvaluatorRegistry.registerEvaluator(MAX, Container.MAX);\r\n EvaluatorRegistry.registerEvaluator(AVG, Container.AVG);\r\n EvaluatorRegistry.registerEvaluator(GenericOperations.TYPE_OF, Container.TYPE_OF);\r\n EvaluatorRegistry.registerEvaluator(ContainerIterators.APPLY, Container.APPLY);\r\n EvaluatorRegistry.registerEvaluator(ContainerIterators.FOR_ALL, Container.FORALL);\r\n EvaluatorRegistry.registerEvaluator(ContainerIterators.EXISTS, Container.EXISTS);\r\n EvaluatorRegistry.registerEvaluator(ContainerIterators.ANY, Container.ANY);\r\n EvaluatorRegistry.registerEvaluator(ContainerIterators.ONE, Container.ONE);\r\n EvaluatorRegistry.registerEvaluator(ContainerIterators.IS_UNIQUE, Container.IS_UNIQUE);\r\n EvaluatorRegistry.registerEvaluator(ContainerIterators.COLLECT, Container.COLLECT);\r\n EvaluatorRegistry.registerEvaluator(new CollectIteratorEvaluator(BooleanValue.TRUE), Container.SELECT);\r\n EvaluatorRegistry.registerEvaluator(new CollectIteratorEvaluator(BooleanValue.FALSE), Container.REJECT);\r\n EvaluatorRegistry.registerEvaluator(new TypeSelectEvaluator(false), Container.TYPE_SELECT);\r\n EvaluatorRegistry.registerEvaluator(new TypeSelectEvaluator(true), Container.TYPE_REJECT);\r\n EvaluatorRegistry.registerEvaluator(GenericOperations.IS_DEFINED, Container.IS_DEFINED);\r\n }",
"public interface ExprBesionRS\n extends GenericService<ExprBesion, Long>\n{\n\n @PUT\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n @Path(\"valider\")\n public ExprBesion confirmer(@Context HttpHeaders headers,ExprBesion object);\n \n @PUT\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n @Path(\"annule\")\n public ExprBesion annuler(@Context HttpHeaders headers,ExprBesion object);\n}",
"public interface WikiQuoteService {\n\n /**\n * Requests for suggested pages, matching the given query.\n * @param search the search query\n * @return the server response, in form of JSON\n */\n @GET(\"w/api.php?action=opensearch&format=json&suggest&redirects=resolve\")\n Call<JsonElement> getSuggestionsFromSearch(@Query(\"search\") String search);\n\n /**\n * Requests for a page having the given title.\n * @param titles the title of the page\n * @return the server response, in form of JSON\n */\n @GET(\"w/api.php?action=query&format=json&redirects\")\n Call<JsonElement> getPageFromTitle(@Query(\"titles\") String titles);\n\n /**\n * Requests for the table of content of the page having the given id.\n * @param pageid the id of the page\n * @return the server response, in form of JSON\n */\n @GET(\"w/api.php?action=parse&format=json&prop=sections\")\n Call<JsonElement> getTocFromPage(@Query(\"pageid\") long pageid);\n\n /**\n * Requests for a specific section of the page having the given id.\n * @param pageid the id of the page\n * @param section the id of the section\n * @return the server response, in form of JSON\n */\n @GET(\"w/api.php?action=parse&format=json&noimage\")\n Call<JsonElement> getSectionFrom(@Query(\"pageid\") long pageid,@Query(\"section\") long section);\n}",
"@Override\n\tpublic void visit(JsonOperator arg0) {\n\t\t\n\t}",
"@Override\n public JsonNode visit(JmesPathFunction function, JsonNode input) throws InvalidTypeException {\n List<JsonNode> evaluatedArguments = new ArrayList<JsonNode>();\n List<JmesPathExpression> arguments = function.getExpressions();\n for (JmesPathExpression arg : arguments) {\n evaluatedArguments.add(arg.accept(this, input));\n }\n return function.evaluate(evaluatedArguments);\n }",
"public interface WriteOpService {\n public void writePropToNode(String resourcePath);\n\n}",
"public JsonPathTransformation(final String expression, final Class<O> outputClazz) {\n this.expression = expression;\n this.clazz = outputClazz;\n }",
"@Beta\npublic interface GoogleComputeEngineApi extends Closeable {\n\n /**\n * Provides access to Address features\n *\n * @param projectName the name of the project\n * @param region the name of the region scoping this request.\n */\n @Delegate\n @Path(\"/projects/{project}/regions/{region}\")\n AddressApi getAddressApi(@PathParam(\"project\") String projectName, @PathParam(\"region\") String region);\n\n /**\n * Provides access to Disk features\n *\n * @param projectName the name of the project\n * @param zone the name of the zone scoping this request.\n */\n @Delegate\n @Path(\"/projects/{project}/zones/{zone}\")\n DiskApi getDiskApi(@PathParam(\"project\") String projectName, @PathParam(\"zone\") String zone);\n\n /**\n * Provides access to DiskType features\n *\n * @param projectName the name of the project\n * @param zone the name of the zone scoping this request.\n */\n @Delegate\n @Path(\"/projects/{project}/zones/{zone}\")\n DiskTypeApi getDiskTypeApi(@PathParam(\"project\") String projectName, @PathParam(\"zone\") String zone);\n\n /**\n * Provides access to Firewall features\n *\n * @param projectName the name of the project\n */\n @Delegate\n @Path(\"/projects/{project}/global\")\n FirewallApi getFirewallApi(@PathParam(\"project\") String projectName);\n\n /**\n * Provides access to ForwardingRule features\n *\n * @param projectName the name of the project\n * @param region the name of the region scoping this request.\n */\n @Delegate\n @Path(\"/projects/{project}/regions/{region}\")\n ForwardingRuleApi getForwardingRuleApi(@PathParam(\"project\") String projectName, @PathParam(\"region\") String region);\n\n /**\n * Provides access to Global Operation features\n *\n * @param projectName the name of the project\n */\n @Delegate\n @Path(\"/projects/{project}/global\")\n GlobalOperationApi getGlobalOperationApi(@PathParam(\"project\") String projectName);\n\n /**\n * Provides access to HttpHealthCheck features\n *\n * @param projectName the name of the project\n */\n @Delegate\n @Path(\"/projects/{project}/global\")\n HttpHealthCheckApi getHttpHealthCheckApi(@PathParam(\"project\") String projectName);\n\n /**\n * Provides access to Image features\n *\n * @param projectName the name of the project\n */\n @Delegate\n @Path(\"/projects/{project}/global\")\n ImageApi getImageApi(@PathParam(\"project\") String projectName);\n\n /**\n * Provides access to Instance features\n *\n * @param projectName the name of the project\n * @param zone zone the instances are in.\n */\n @Delegate\n @Path(\"/projects/{project}/zones/{zone}\")\n InstanceApi getInstanceApi(@PathParam(\"project\") String projectName, @PathParam(\"zone\") String zone);\n\n /**\n * Provides access to MachineType features\n *\n * @param projectName the name of the project\n * @param zone the name of the zone scoping this request.\n */\n @Delegate\n @Path(\"/projects/{project}/zones/{zone}\")\n MachineTypeApi getMachineTypeApi(@PathParam(\"project\") String projectName, @PathParam(\"zone\") String zone);\n\n /**\n * Provides access to Network features\n *\n * @param projectName the name of the project\n */\n @Delegate\n @Path(\"/projects/{project}/global\")\n NetworkApi getNetworkApi(@PathParam(\"project\") String projectName);\n\n /**\n * Provides access to Project features\n */\n @Delegate\n ProjectApi getProjectApi();\n\n /**\n * Provides access to Region features\n *\n * @param projectName the name of the project\n */\n @Delegate\n @Path(\"/projects/{project}\")\n RegionApi getRegionApi(@PathParam(\"project\") String projectName);\n\n /**\n * Provides access to Region Operation features\n *\n * @param project the name of the project\n * @param region the name of the region scoping this request.\n */\n @Delegate\n @Path(\"/projects/{project}/regions/{region}\")\n RegionOperationApi getRegionOperationApi(@PathParam(\"project\") String project, @PathParam(\"region\") String region);\n\n /**\n * Provides access to Route features\n *\n * @param projectName the name of the project\n */\n @Delegate\n @Path(\"/projects/{project}/global\")\n RouteApi getRouteApi(@PathParam(\"project\") String projectName);\n\n /**\n * Provides access to Snapshot features\n *\n * @param projectName the name of the project\n */\n @Delegate\n @Path(\"/projects/{project}/global\")\n SnapshotApi getSnapshotApi(@PathParam(\"project\") String projectName);\n\n /**\n * Provides access to TargetPool features\n *\n * @param projectName the name of the project\n * @param region the name of the region scoping this request.\n */\n @Delegate\n @Path(\"/projects/{project}/regions/{region}\")\n TargetPoolApi getTargetPoolApi(@PathParam(\"project\") String projectName, @PathParam(\"region\") String region);\n\n /**\n * Provides access to Zone features\n *\n * @param projectName the name of the project\n */\n @Delegate\n @Path(\"/projects/{project}\")\n ZoneApi getZoneApi(@PathParam(\"project\") String projectName);\n\n /**\n * Provides access to Zone Operation features\n *\n * @param projectName the name of the project\n * @param zone the name of the zone scoping this request.\n */\n @Delegate\n @Path(\"/projects/{project}/zones/{zone}\")\n ZoneOperationApi getZoneOperationApi(@PathParam(\"project\") String projectName, @PathParam(\"zone\") String zone);\n}",
"public interface Evaluable {\n HarrObject eval(Context context) throws HarrException;\n}",
"Builder values(Map<Path<?>, TypedExpression<?>> values);",
"public interface CostService {\n\n void add(Cost cost);\n\n void update(Cost cost);\n\n void levelUp(Cost cost);\n\n List<Cost> list();\n\n List<Cost> listPage(Page page);\n\n List<Cost> list(String state);\n\n List<Cost> listNotInvalid();\n\n List<Cost> getByKeyword(String keyword);\n\n int count();\n\n Cost getById(String costId);\n\n void setStateDisabled(String costId);\n\n void changeEndDate(Cost cost);\n List<Cost> searchCost(Cost cost);\n}",
"public interface Calculator extends CalculatorEventContainer, HistoryControl<CalculatorHistoryState> {\n\n void init();\n\n /*\n **********************************************************************\n *\n * CALCULATIONS\n *\n **********************************************************************\n */\n\n void evaluate();\n\n void evaluate(@NotNull Long sequenceId);\n\n void simplify();\n\n @NotNull\n CalculatorEventData evaluate(@NotNull JsclOperation operation,\n @NotNull String expression);\n\n @NotNull\n CalculatorEventData evaluate(@NotNull JsclOperation operation,\n @NotNull String expression,\n @NotNull Long sequenceId);\n\n /*\n **********************************************************************\n *\n * CONVERSION\n *\n **********************************************************************\n */\n\n boolean isConversionPossible(@NotNull Generic generic, @NotNull NumeralBase from, @NotNull NumeralBase to);\n\n @NotNull\n CalculatorEventData convert(@NotNull Generic generic, @NotNull NumeralBase to);\n\n /*\n **********************************************************************\n *\n * EVENTS\n *\n **********************************************************************\n */\n @NotNull\n CalculatorEventData fireCalculatorEvent(@NotNull CalculatorEventType calculatorEventType, @Nullable Object data);\n\n @NotNull\n CalculatorEventData fireCalculatorEvent(@NotNull CalculatorEventType calculatorEventType, @Nullable Object data, @NotNull Object source);\n\n @NotNull\n CalculatorEventData fireCalculatorEvent(@NotNull CalculatorEventType calculatorEventType, @Nullable Object data, @NotNull Long sequenceId);\n\n\t@NotNull\n\tPreparedExpression prepareExpression(@NotNull String expression) throws CalculatorParseException;\n}",
"public interface RequestServes {\n @GET(\"PlayVideo/{firstVideoId}\")\n Call<JsonElement> getPlayVideo(@Path(\"firstVideoId\") String firstVideoId);\n @GET\n Call<JsonElement> getData(@Url String url);\n @GET(\"{test}\")\n Call<ResponseBody> getString(@Path(\"test\") String test);\n\n @GET(\"users/{user}/repos\")\n Call<ResponseBody> listRepos(@Path(\"user\") String user);\n\n}",
"public interface DataAnalyseService {\n JSONArray getDataOperateTimesInDay(String dataName,String month,String year);\n JSONArray getDataOperateTimesInMonth(String dataName,String year);\n JSONArray getDataOperateTimesInYear(String dataName);\n JSONArray getDataOperateTimesByType(String dataName);\n\n JSONObject getHotData();\n JSONObject getLikeData(String dataName);\n\n JSONObject getUserRecommendData(String userName);\n}",
"public interface PersonService {\r\n\r\n\t/**\r\n\t * Delete all the nodes of the person\r\n\t */\r\n\tvoid deleteAll();\r\n\r\n\t/**\r\n\t * Add Person node in the database using the JSONObject containing the data of the person\r\n\t * @param personJson\r\n\t * @return person\r\n\t */\r\n\tPerson addPerson(JSONObject person);\r\n\r\n\t/**\r\n\t * Relate nodes of the person by creating a relationship between them\r\n\t * @param person1\r\n\t * @param person2\r\n\t * @param relation\r\n\t * @return relatedPerson\r\n\t */\r\n\tRelatedPerson<Person, Person> relatePerson(String person1, String person2, String relation);\r\n\r\n\t/**\r\n\t * Find relation between the nodes of the two person.\r\n\t * @param person1\r\n\t * @param person2\r\n\t * @return strRelationship\r\n\t */\r\n\tString findRelation(String person1, String person2);\r\n\r\n\t/**\r\n\t * Finds the Person node with the given name\r\n\t * @param name\r\n\t * @return person\r\n\t */\r\n\tPerson findPerson(String name);\r\n\r\n\t/**\r\n\t * Finds the Person node and adds the image path\r\n\t * @param name\r\n\t * @param imagePath\r\n\t * @return person\r\n\t */\r\n\tPerson addImage(String name, String imagePath);\r\n\r\n}",
"public interface SearchService {\n\n /**\n * Parameter that is appended to the generated links that contains the positive search terms and phrases of the\n * search expression. For several terms it occurs several times.\n */\n String PARAMETER_SEARCHTERM = \"search.term\";\n\n /**\n * Represents a result of the search consisting of a target page and one or more matching subresources. For use by\n * the search result renderer.\n */\n interface Result {\n\n /** The page which contains matches. */\n @NotNull\n Resource getTarget();\n\n /** The content child of the page which contains matches. */\n @NotNull\n Resource getTargetContent();\n\n /** A link that shows the target, including search terms with {@link #PARAMETER_SEARCHTERM} */\n @NotNull\n String getTargetUrl();\n\n /** The title of the search result. */\n @NotNull\n String getTitle();\n\n /** The score of the search result. */\n Float getScore();\n\n /**\n * One or more descendants of {@link #getTarget()} that potentially match the search expression. Mostly useful\n * for generating excerpts; can contain false positives in some search algorithms.\n */\n @NotNull\n List<Resource> getMatches();\n\n /** The fulltext search expression for which this result was found. */\n @NotNull\n String getSearchExpression();\n\n /**\n * A basic excerpt from the matches that demonstrates the occurrences of the terms from {@link\n * #getSearchExpression()} in this result. Might be empty if not applicable (e.g. if the search terms were found\n * in meta information). If there are several matches, we just give one excerpt. You might want to provide your\n * own implementation for that to accommodate for specific requirements.\n *\n * @return a text with the occurrences of the words marked with HTML tag em .\n */\n @NotNull\n String getExcerpt() throws SearchTermParseException;\n }\n\n /**\n * Fulltext search for resources. The resources are grouped if they are subresources of one target page, as\n * determined by the parameter targetResourceFilter.\n * <p>\n * Limitations: if the searchExpression consists of several search terms (implicitly combined with AND) this finds\n * only resources where a single property matches the whole search condition, i.e., all those terms. If several\n * resources of a page contain different subsets of those terms, the page is not found.\n *\n * @param context The context we use for the search.\n * @param selectors a selector string to determine the right search strategy, e.g. 'page'\n * @param root Optional parameter for the node below which we search.\n * @param searchExpression Mandatory parameter for the fulltext search expression to search for. For the syntax\n * see\n * {@link QueryConditionDsl.QueryConditionBuilder#contains(String)}\n * . It is advisable to avoid using AND and OR.\n * @param searchFilter an optional filter to drop resources to ignore.\n * @return possibly empty list of results\n * @see com.composum.sling.core.mapping.jcr.ResourceFilterMapping\n */\n @NotNull\n List<Result> search(@NotNull BeanContext context, @NotNull String selectors,\n @NotNull String root, @NotNull String searchExpression, @Nullable ResourceFilter searchFilter,\n int offset, @Nullable Integer limit)\n throws RepositoryException, SearchTermParseException;\n\n\n interface LimitedQuery {\n\n /**\n * Executes the query with the given limit; returns a pair of a boolean that is true when we are sure that all\n * results have been found in spite of the limit, and the results themselves.\n */\n Pair<Boolean, List<Result>> execQuery(int matchLimit);\n }\n\n /**\n * Execute the query with raising limit until the required number of results is met. We don't know in advance how\n * large we have to set the limit in the query to get all neccesary results, since each page can have an a priori\n * unknown number of matches. Thus, the query is executed with an estimated limit, and is reexecuted with tripled\n * limit if the number of results is not sufficient and there are more limits.\n *\n * @return up to limit elements of the result list with the offset first elements skipped.\n */\n @NotNull\n List<Result> executeQueryWithRaisingLimits(LimitedQuery limitedQuery, int offset, Integer limit);\n}",
"public Engine build() {\n this.extensions.add(new CoreExtension());\n \n // load extensions\n this.extensions.forEach(extension -> {\n this.renderers.putAll(extension.getRenderers());\n this.directives.putAll(extension.getDirectives());\n this.nodeParsers.putAll(extension.getNodeParsers());\n this.filters.putAll(extension.getFilters());\n this.tests.putAll(extension.getTests());\n this.unaryOperators.putAll(extension.getUnaryOperators());\n this.binaryOperators.putAll(extension.getBinaryOperators());\n this.factories.addAll(extension.getNodeVisitorFactories());\n this.safeNodes.addAll(extension.getSafeNodes());\n });\n \n // create an operator token parser\n TokenParser unaryOperatorParser = TokenParser.in(TokenType.OPERATOR, this.unaryOperators.keySet().toArray(new String[]{}));\n TokenParser binaryOperatorParser = TokenParser.in(TokenType.OPERATOR, this.binaryOperators.keySet().toArray(new String[]{}));\n TokenParser operatorParser = unaryOperatorParser.or(binaryOperatorParser);\n \n // create a execute token parser\n TokenParser executeOpenParser = TokenParser.from(TokenType.EXECUTE_OPEN, compile(quote(this.executeOpen)), false);\n TokenParser executeCloseParser = TokenParser.from(TokenType.EXECUTE_CLOSE, compile(quote(this.executeClose)), false);\n TokenParser executeParser = executeOpenParser.then(NAME).then(operatorParser.or(EXPRESSION).until(executeCloseParser));\n this.starts.add(this.executeOpen);\n \n // create a print token parser\n TokenParser printOpenParser = TokenParser.from(TokenType.PRINT_OPEN, compile(quote(this.printOpen)), false);\n TokenParser printCloseParser = TokenParser.from(TokenType.PRINT_CLOSE, compile(quote(this.printClose)), false);\n TokenParser printParser = printOpenParser.then(operatorParser.or(EXPRESSION).until(printCloseParser));\n this.starts.add(this.printOpen);\n \n // create a comment token parser\n TokenParser commentOpenParser = TokenParser.from(TokenType.COMMENT_OPEN, compile(quote(this.commentOpen)), false);\n TokenParser commentCloseParser = TokenParser.from(TokenType.COMMENT_CLOSE, compile(quote(this.commentClose)), false);\n TokenParser commentInner = TokenParser.until(TokenType.TEXT, this.commentClose);\n TokenParser commentParser = commentOpenParser.then(commentInner.optional()).then(commentCloseParser);\n this.starts.add(this.commentOpen);\n \n // create a text token parser\n TokenParser leadingText = TokenParser.until(TokenType.TEXT, this.starts);\n TokenParser text = TokenParser.from(TokenType.TEXT, Pattern.compile(\"^.*\", Pattern.DOTALL | Pattern.MULTILINE), false);\n \n TokenParser principal = commentParser.or(executeParser).or(printParser).or(leadingText).zeroOrMore().then(text.optional()).then(EOF);\n this.tokenizerBuilder.parser(principal);\n Tokenizer tokenizer = this.tokenizerBuilder.build();\n \n ExpressionParser expressionParser = new ExpressionParser(this.unaryOperators, this.binaryOperators);\n \n Engine engine = new Engine(this.environment, expressionParser,\n renderers, directives, nodeParsers, \n filters, tests, factories, safeNodes,\n tokenizer);\n return engine;\n }",
"public interface RandomService {\n\n /**\n * getter\n * @return boolean from random service\n */\n @GET(\"boolean\")\n Call<Boolean> getBoolean();\n\n /**\n * getter\n * @return double from random service\n */\n @GET(\"double\")\n Call<Double> getDouble();\n\n /**\n * getter\n * @return gaussian from random service\n */\n @GET(\"gaussian\")\n Call<Double> getGaussian();\n\n /**\n * getter\n * @return integer from random service\n */\n @GET(\"int\")\n Call<Integer> getInteger();\n\n /**\n * getter\n * @param bound limit of integer to be returned\n * @return bound integer from random service\n */\n @GET(\"int/{bound}\")\n Call<Integer> getIntegerBound(@Path(\"bound\") int bound);\n\n /**\n * getter\n * @return long from random service\n */\n @GET(\"long\")\n Call<Long> getLong();\n}",
"public interface DemoService {\n\n String query(String name, String age);\n}",
"public interface Service {\n /**\n * Processes a query, returning result as a string.\n */\n String processQuery(String query);\n }",
"public interface IDynamicRequestGET {\n public MultivaluedMap<String, String> getPathParams();\n public ContainerRequestContext getRequestContext();\n}",
"public Object eval(String expression) throws Exception;",
"public interface ExpressionExperimentReportService {\n\n /**\n * Invalidate the cached 'report' for the experiment with the given id. If it is not cached nothing happens.\n *\n * @param id the id of the entity to evict\n */\n void evictFromCache( Long id );\n\n /**\n * Generate a value object that contain summary information about links, biomaterials, and datavectors\n *\n * @param id the id of the ee to generate summary for\n * @return details VO\n */\n ExpressionExperimentDetailsValueObject generateSummary( Long id );\n\n /**\n * Generates reports on ALL experiments, including 'private' ones. This should only be run by administrators as it\n * takes a while to run.\n */\n @Secured({ \"GROUP_AGENT\" })\n Collection<ExpressionExperimentDetailsValueObject> generateSummaryObjects();\n\n void getAnnotationInformation( Collection<ExpressionExperimentDetailsValueObject> vos );\n\n void populateEventInformation( Collection<ExpressionExperimentDetailsValueObject> vos );\n\n /**\n * Fills in link analysis and differential expression analysis summaries, and other info from the report.\n *\n * @param vos value objects\n */\n void populateReportInformation( Collection<ExpressionExperimentDetailsValueObject> vos );\n\n /**\n * retrieves a collection of cached value objects containing summary information\n *\n * @param ids the ids of ees for which the summary objects should be retrieved.\n * @return a collection of cached value objects\n */\n @SuppressWarnings(\"unused\")\n // Possible external use\n Collection<ExpressionExperimentDetailsValueObject> retrieveSummaryObjects( Collection<Long> ids );\n\n /**\n * Recalculates the batch effect and batch confound information for datasets that have been updated\n * in the last 24 hours.\n */\n @SuppressWarnings(\"unused\") // Used by scheduler\n @Secured({ \"GROUP_AGENT\" })\n void recalculateBatchInfo();\n\n /**\n * Recalculates the batch effect and batch confound information for the given dataset.\n * @param ee the experiment to recalculate the batch properties for.\n */\n @Secured({ \"GROUP_AGENT\" })\n void recalculateExperimentBatchInfo( ExpressionExperiment ee );\n}",
"public interface PaintService {\n\n @GET(\"x858r\")\n Call<PaintContainer> getPaints();\n}",
"public interface CalculatorFunction {\r\n CalculatorNode calculate(CalculatorNode[] arguments);\r\n}",
"Hojas eval();",
"public interface UserService {\n\n JSONObject getOrdersAndIdentityAndPhone(String identity, String phone);\n\n}",
"public interface TaxCalculationService extends EpService {\n\t\n\t/**\n\t * Calculates the applicable taxes on a list of items, depending on the address to which they are being billed or shipped.\n\t * NOTICE: Only enabled is store tax jurisdictions should be used for calculating tax.\n\t * \n\t *\n\t * @param storeCode guid of the store that will be used to retrieve tax jurisdictions\n\t * @param address the address to use for tax calculations\n\t * @param currency the currency to use for tax calculations\n\t * @param shippingCost the cost of shipping, so that shipping taxes can be factored in\n\t * @param shoppingItems list of items that must be taxed\n\t * @param preTaxDiscount the total pre-tax discount to be applied on items, before taxes are calculated\n\t * @return the result of the tax calculations\n\t */\n\tTaxCalculationResult calculateTaxes(\n\t\t\tfinal String storeCode,\n\t\t\tfinal Address address, \n\t\t\tfinal Currency currency, \n\t\t\tfinal Money shippingCost,\n\t\t\tfinal Collection< ? extends ShoppingItem> shoppingItems,\n\t\t\tfinal Money preTaxDiscount);\n\t\n\t/**\n\t * Calculates the applicable taxes on a list of items, depending on the address to which they are being billed or shipped.\n\t * NOTICE: Only enabled is store tax jurisdictions should be used for calculating tax.\n\t *\n\t *\n\t * @param taxCalculationResult the tax calculation result to be used to add up the taxes to\n\t * @param storeCode guid of the store that will be used to retrieve tax jurisdictions\n\t * @param address the address to use for tax calculations. If null, no calculations will be performed.\n\t * @param currency the currency to use for tax calculations, must be non-null\n\t * @param shippingCost the cost of shipping, so that shipping taxes can be factored in, must be non-null\n\t * @param shoppingItems list of items that must be taxed, must be non-null\n\t * @param preTaxDiscount the total pre-tax discount to be applied on items, before taxes are calculated, must be non-null\n\t * @return the result of the tax calculations\n\t */\n\tTaxCalculationResult calculateTaxesAndAddToResult(\n\t\t\tfinal TaxCalculationResult taxCalculationResult, \n\t\t\tfinal String storeCode,\n\t\t\tfinal Address address, \n\t\t\tfinal Currency currency, \n\t\t\tfinal Money shippingCost, \n\t\t\tfinal Collection< ? extends ShoppingItem> shoppingItems, \n\t\t\tfinal Money preTaxDiscount);\n\n\t\n\t/**\n\t * Checks if that address is in a tax jurisdiction where tax inclusive method is used.\n\t * NOTICE: Only tax jurisdictions that is enabled is store will be considered.\n\t *\n\t * @param storeCode guid of the store that will be used to retrieve tax jurisdictions.\n\t * @param address the address to be checked\n\t * @return true if inclusive tax method is used\n\t */\n\tboolean isInclusiveTaxCalculationInUse(String storeCode, Address address);\n}",
"public interface JSONContextConfiguration {\n\n\t/**\n\t * Adds converter.\n\t * @param type Type\n\t * @param converter Converter.\n\t */\n void addConverter(Class<?> type, JSONConverter converter);\n\n /**\n * Gets a converter.\n * @param type Type.\n * @return Converter.\n */\n JSONConverter getConverter(Class<?> type);\n\n /**\n * Gets the default converter.\n * @return Converter.\n */\n JSONConverter getDefaultConverter();\n\n /**\n * Remove a converter.\n * @param type Type.\n */\n void removeConverter(Class<?> type);\n\n /**\n * Sets the bean factory.\n * @param factory Factory.\n */\n void setFactoryBean( FactoryBean factory );\n\n /**\n * Gets the bean factory.\n * @return Factory.\n */\n FactoryBean getFactoryBean();\n \n}",
"public interface ProgramsService {\n\n /**\n * Retrieves all the programs from EPG.\n * @param date the date to consider\n * @param application the application that request the data\n * @param channels list of channel to consider\n * @return List of programs\n */\n List<Program> findAllPrograms(String date, String application, List<String> channels);\n}",
"public interface Expression<Argument, Result> {\n String PLUS = \"+\";\n String MINUS = \"-\";\n\n /**\n * calculates an expressionType\n */\n void calculate();\n\n /**\n * returns result of calculated expressionType\n * @return result of expressionType\n */\n Result getResult();\n\n /**\n * @param stringExpression\n * sets arguments\n */\n void setArguments(StringExpression stringExpression);\n\n}",
"public interface GsonAPIService {\n\n @Get(\"{query}/pm10.json\")\n @Head(\"Cache-Control:max-age=640000\")\n Call<List<PM25>> getWeather(@Path(\"query\") String query, @Query(\"city\") String city, @Query(\"token\") String token);\n}",
"@Test\n public void testComponentExecutionWithGetAndHttpGet() throws ParseException, JSONException\n {\n try (MockedStatic<WebServiceUtils> mock = Mockito.mockStatic(WebServiceUtils.class))\n {\n mock.when(() -> WebServiceUtils.getAsString(URL_EMPLOYEES)).thenReturn(JSON_EMPLOYEES);\n ExpressionEvaluator evaluator = new ExpressionEvaluator(EXPRESSION_GET_HTTP_GET);\n assertTrue(JsonUtils.toJSONObject(JSON_EMPLOYEE1)\n .similar(evaluator.evaluate(Collections.emptyMap())));\n }\n }",
"public interface ServiceExecutor {\n\n\t/**\n\t * Executes a service-process which in described by a ServiceRegistration\n\t * with the given parameters.\n\t * \n\t * @param correlationId\n\t * The identifier to match the result.\n\t * @param sr\n\t * The ServiceRegistration.\n\t * @param input\n\t * The ServiceInput obejct which represents the parameters for\n\t * the service-process.\n\t */\n\tpublic abstract void execute(String correlationId, ServiceRegistration sr, ServiceInput input);\n\n}",
"public interface KcsgUpdateInfoApiService {\n\n /**\n * Update information about other controller.\n *\n * @param data String data to update\n * @return JSON representation\n */\n JsonNode updateData(String data);\n}",
"public Object eval (Object expression);",
"public interface SearchService extends Service {\n Observable<SearchPlacesResponse> doSearchPlacesService(String authorizationKey, int page, int size, SearchPlacesRequest searchPlacesRequest);\n Observable<SearchPlacesResponse> doSearchBreweriesService(String authorizationKey, int page, int size, SearchPlacesRequest searchPlacesRequest);\n Observable<SearchProductResponse> doSearchProductsService(String authorizationKey, int page, int size, SearchProductsRequest searchProductsRequest);\n Observable<List<String>> getSuggestPlacesService(String authorizationKey, String text, int count);\n Observable<List<String>> getSuggestBreweriesService(String authorizationKey, String text, int count);\n Observable<List<String>> getSuggestProductsService(String authorizationKey, String text, int count);\n}",
"@Remote\npublic interface ExplorerService {\n\n /**\n * Return a list of items for the specified Path. The Path can be either:-\n * - A Project Root (i.e. folder containing pom.xml and parent of folder containing kmodule.xml)\n * - Within a Project Package (i.e. folder within Project Root and src/main/resources)\n * - Within a Project but outside of a Package (i.e. between pom.xml and src/main/resources)\n * - Other\n * @param path\n * @return\n */\n ExplorerContent getContentInScope( final Path path );\n\n}",
"public interface Service {\n\n @GET(\"movie/{sub_type}\")\n Call<MovieResponse> getMovie(@Path(\"sub_type\")String sub_type, @Query(\"api_key\")String api_key, @Query(\"language\")String language, @Query(\"page\")int page);\n\n @GET(\"tv/{sub_type}\")\n Call<TvShowResponse> getTvShow(@Path(\"sub_type\")String sub_type, @Query(\"api_key\")String api_key, @Query(\"language\")String language, @Query(\"page\")int page);\n\n @GET(\"movie/{movie_id}/recommendations\")\n Call<MovieResponse> getMovieRecommendations(@Path(\"movie_id\")int movie_id,@Query(\"api_key\")String api_key, @Query(\"language\")String language,@Query(\"page\")int page);\n\n @GET(\"tv/{tv_id}/recommendations\")\n Call<TvShowResponse> getTvShowRecommendations(@Path(\"tv_id\")int tv_id, @Query(\"api_key\")String api_key, @Query(\"language\")String language, @Query(\"page\")int page);\n\n @GET(\"search/movie\")\n Call<MovieResponse> getMovieSearch(@Query(\"query\")String query,@Query(\"api_key\")String api_key, @Query(\"language\")String language,@Query(\"page\")int page);\n\n @GET(\"search/tv\")\n Call<TvShowResponse> getTvShowSearch(@Query(\"query\")String query, @Query(\"api_key\")String api_key, @Query(\"language\")String language, @Query(\"page\")int page);\n\n}",
"public interface MallEvaluateService {\n\n\n List<Mall_Evaluate> getMall_EvaluateList(Map<String, Object> map);//查看评论列表\n\n Integer getCountMall_Evaluate(Map<String, Object> map);//评论列表条数\n\n List<MallV_Evaluate> getMallV_EvaluateList(Map<String, Object> map);//后台订单评价列表\n\n Integer getCountMallV_Evaluate(Map<String, Object> map);//后台订单评价列表的视图\n}",
"public interface IClassifierService extends IGenericService<Classifier, Long>{\n\n /**\n * Verify code error message.\n *\n * @param code the code\n * @param year the year\n * @param exception the exception\n * @return the error message\n */\n public ErrorMessage verifyCode(String code, Integer year, Long exception);\n\n /**\n * Gets by path.\n *\n * @param path the path\n * @return the by path\n */\n public Classifier getByPath(String path);\n\n /**\n * Gets parent.\n *\n * @param path the path\n * @return the parent\n */\n public Classifier getParent(String path);\n\n /**\n * Gets generic.\n *\n * @param path the path\n * @return the generic\n */\n public Classifier getGeneric(String path);\n\n /**\n * Get parent info object [ ].\n *\n * @param path the path\n * @return the object [ ]\n */\n public Object[] getParentInfo(String path);\n\n /**\n * Gets generic classifiers.\n *\n * @return the generic classifiers\n */\n public List<Classifier> getGenericClassifiers();\n}",
"public interface ApiService {\n\n @GET(\"datacatalog?format=json\")\n Call<Catalog> getTopCatalog();\n\n\n/* @GET(\"item/{storyid}.json\")\n Call<StoryResponse> getStoryDetails(@Path(\"storyid\") String storyid);\n\n @GET(\"autocomplete/json\")\n Call<AutoCompleteGooglePlaces> getAutoCompleteResults(@Query(\"key\") String API_KEY,\n @Query(\"input\") String encode);\n\n @GET(\"nearbysearch/json\")\n Call<GetPlacesResponse> getPlaceDetails(@Query(\"location\") String location,\n @Query(\"radius\") int radius,\n @Query(\"key\") String key);*/\n}",
"public interface RevienService {\n @Headers({\n \"Accept: application/json\"\n })\n\n @GET(\"Prod/resource/{date}\") Observable<JsonObject> getSentence(@Path(\"date\") int date);\n}",
"public interface DataModelService {\n\n boolean isValid(String input);\n\n}",
"public interface PathExpressionFactoryIF {\n /**\n * INTERNAL: Create a new, empty path expression.\n * \n * @return a newly created path expression\n */\n public PathExpressionIF createPathExpression();\n\n /**\n * INTERNAL: Create a new Variable.\n * \n * @param decl the declaration for the variable.\n * @return a new variable.\n */\n public VariableIF createVariable(VariableDecl decl);\n\n /**\n * INTERNAL: Create a new Topic literal.\n * \n * @param type the type how a topic literal is specified.\n * @param id the identifier for this topic.\n * @return a new topic literal.\n */\n public PathElementIF createTopic(String type, String id);\n\n /**\n * INTERNAL: Create a new path expression element based on the given name.\n * \n * @param name the type of path element to be created.\n * @return a new path expression element.\n */\n public PathElementIF createElement(String name);\n}",
"public interface Operator {\n /**\n * String literal to enter operator\n * @return\n */\n String getKey();\n\n void execute(EvaluatedParameters evaluatedParameters) throws ProcessorException;\n}",
"public interface SRiskCardNodeConditionService extends Service<SRiskCardNodeCondition> {\n\n}",
"public interface DepartmentService {\n public Map<String,Object> departmentList();\n public Map<String,Object> departmentAdd(Map<String,Object> params);\n public Map<String,Object> departmentEdit(Map<String,Object> params);\n public Map<String,Object> departmentDelete(Map<String,Object> params);\n public Map<String,Object> departmentDeleteCascade(Map<String,Object> params);\n public Map<String,Object> departmentNewRoot();\n\n}",
"@org.chromium.protocolReader.JsonType\npublic interface EvaluateResult {\n /**\n * Evaluation result.\n */\n org.jetbrains.wip.protocol.runtime.RemoteObjectValue result();\n /**\n * True if the result was thrown during the evaluation.\n */\n @org.chromium.protocolReader.JsonOptionalField\n boolean wasThrown();\n\n}",
"public interface ResourceService {\n\n List<Resource> getResourcesByOperator(String operatorId);\n\n List<Resource> findAllByAutho();\n\n}"
] | [
"0.63578767",
"0.5789392",
"0.5787839",
"0.56648093",
"0.55791116",
"0.55501294",
"0.5486834",
"0.5486834",
"0.54809314",
"0.54786164",
"0.54511786",
"0.53801656",
"0.5353043",
"0.53049326",
"0.5299146",
"0.52934915",
"0.52615774",
"0.5253872",
"0.5244548",
"0.5232732",
"0.523001",
"0.51924443",
"0.5179577",
"0.5159121",
"0.5126989",
"0.5084124",
"0.5070446",
"0.5058915",
"0.50307065",
"0.50225526",
"0.50170034",
"0.4993627",
"0.49695373",
"0.49468008",
"0.49255884",
"0.49236012",
"0.49011356",
"0.48866773",
"0.48801807",
"0.48785242",
"0.48672524",
"0.48373666",
"0.48290512",
"0.48281202",
"0.48209578",
"0.48163742",
"0.48155743",
"0.48091763",
"0.47908133",
"0.47908074",
"0.47855616",
"0.4763179",
"0.47351095",
"0.46912837",
"0.4682783",
"0.46720487",
"0.46676436",
"0.46634874",
"0.46615416",
"0.46579802",
"0.4646272",
"0.4639814",
"0.4617426",
"0.46119484",
"0.46092635",
"0.46011236",
"0.4593411",
"0.459065",
"0.45892525",
"0.45841482",
"0.45792958",
"0.45722765",
"0.457165",
"0.4570029",
"0.4567776",
"0.45675614",
"0.45430243",
"0.4537472",
"0.45344636",
"0.45302206",
"0.45300722",
"0.45279953",
"0.4527188",
"0.45228255",
"0.45183513",
"0.45161483",
"0.45062533",
"0.45060843",
"0.45056698",
"0.45050275",
"0.45039585",
"0.45016444",
"0.45000207",
"0.4499183",
"0.44903272",
"0.44893286",
"0.44867626",
"0.44826674",
"0.44779727",
"0.44751605"
] | 0.8184121 | 0 |
Evaluated a compiled expression. | Object evaluate(CompiledExpressionHolder code, Object scopes, Object root, Object key, Object
value) throws InvalidPathException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"EvaluationResult evalExpression(ValueExp expr) { return evalExpression(expr, true); }",
"Expr expr();",
"public Object eval (Object expression);",
"public String compile () throws IOException, RhinoEvaluatorException {\n return compile(1, null);\n }",
"private Expr expression() {\n return assignment();\n }",
"public Const evaluate();",
"public String evaluate(String expression);",
"public Object getExpression();",
"public interface IExpressionRuntime\n{\n Object evaluate();\n}",
"public String evaluateExpression(ValueExpression expr,CodeExecutionContext execCtx) throws JavascribeException;",
"public T execute() {\n return GraalCompiler.compile(this);\n }",
"com.google.type.Expr getCelExpression();",
"Result evaluate();",
"public final Object expression() throws RecognitionException {\n Object result = null;\n\n\n CommonTree INTEGER15=null;\n CommonTree BOOL16=null;\n CommonTree IDENT17=null;\n Object op1 =null;\n\n Object op2 =null;\n\n Object call18 =null;\n\n\n try {\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:322:3: ( ( ^( '+' op1= expression op2= expression ) | ^( '-' op1= expression op2= expression ) | ^( '*' op1= expression op2= expression ) | ^( '/' op1= expression op2= expression ) | ^( '%' op1= expression op2= expression ) | ^( ARITH_NEGATION op1= expression ) | ^( '||' op1= expression op2= expression ) | ^( '&&' op1= expression op2= expression ) | ^( '==' op1= expression op2= expression ) | ^( '!=' op1= expression op2= expression ) | ^( '>=' op1= expression op2= expression ) | ^( '<=' op1= expression op2= expression ) | ^( '>' op1= expression op2= expression ) | ^( '<' op1= expression op2= expression ) | ^( BOOL_NEGATION op1= expression ) | INTEGER | BOOL | IDENT | call ) )\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:323:3: ( ^( '+' op1= expression op2= expression ) | ^( '-' op1= expression op2= expression ) | ^( '*' op1= expression op2= expression ) | ^( '/' op1= expression op2= expression ) | ^( '%' op1= expression op2= expression ) | ^( ARITH_NEGATION op1= expression ) | ^( '||' op1= expression op2= expression ) | ^( '&&' op1= expression op2= expression ) | ^( '==' op1= expression op2= expression ) | ^( '!=' op1= expression op2= expression ) | ^( '>=' op1= expression op2= expression ) | ^( '<=' op1= expression op2= expression ) | ^( '>' op1= expression op2= expression ) | ^( '<' op1= expression op2= expression ) | ^( BOOL_NEGATION op1= expression ) | INTEGER | BOOL | IDENT | call )\n {\n OperationExecuter oe = null;\n\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:324:3: ( ^( '+' op1= expression op2= expression ) | ^( '-' op1= expression op2= expression ) | ^( '*' op1= expression op2= expression ) | ^( '/' op1= expression op2= expression ) | ^( '%' op1= expression op2= expression ) | ^( ARITH_NEGATION op1= expression ) | ^( '||' op1= expression op2= expression ) | ^( '&&' op1= expression op2= expression ) | ^( '==' op1= expression op2= expression ) | ^( '!=' op1= expression op2= expression ) | ^( '>=' op1= expression op2= expression ) | ^( '<=' op1= expression op2= expression ) | ^( '>' op1= expression op2= expression ) | ^( '<' op1= expression op2= expression ) | ^( BOOL_NEGATION op1= expression ) | INTEGER | BOOL | IDENT | call )\n int alt14=19;\n switch ( input.LA(1) ) {\n case 32:\n {\n alt14=1;\n }\n break;\n case 34:\n {\n alt14=2;\n }\n break;\n case 31:\n {\n alt14=3;\n }\n break;\n case 35:\n {\n alt14=4;\n }\n break;\n case 29:\n {\n alt14=5;\n }\n break;\n case ARITH_NEGATION:\n {\n alt14=6;\n }\n break;\n case 50:\n {\n alt14=7;\n }\n break;\n case 30:\n {\n alt14=8;\n }\n break;\n case 39:\n {\n alt14=9;\n }\n break;\n case 28:\n {\n alt14=10;\n }\n break;\n case 41:\n {\n alt14=11;\n }\n break;\n case 37:\n {\n alt14=12;\n }\n break;\n case 40:\n {\n alt14=13;\n }\n break;\n case 36:\n {\n alt14=14;\n }\n break;\n case BOOL_NEGATION:\n {\n alt14=15;\n }\n break;\n case INTEGER:\n {\n alt14=16;\n }\n break;\n case BOOL:\n {\n alt14=17;\n }\n break;\n case IDENT:\n {\n alt14=18;\n }\n break;\n case CALL:\n {\n alt14=19;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 14, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt14) {\n case 1 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:325:4: ^( '+' op1= expression op2= expression )\n {\n match(input,32,FOLLOW_32_in_expression564); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression570);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression576);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"+\"); \n\n }\n break;\n case 2 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:326:6: ^( '-' op1= expression op2= expression )\n {\n match(input,34,FOLLOW_34_in_expression590); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression596);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression602);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"-\"); \n\n }\n break;\n case 3 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:327:6: ^( '*' op1= expression op2= expression )\n {\n match(input,31,FOLLOW_31_in_expression614); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression620);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression626);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"*\"); \n\n }\n break;\n case 4 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:328:6: ^( '/' op1= expression op2= expression )\n {\n match(input,35,FOLLOW_35_in_expression638); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression644);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression650);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"/\"); \n\n }\n break;\n case 5 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:329:6: ^( '%' op1= expression op2= expression )\n {\n match(input,29,FOLLOW_29_in_expression662); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression668);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression674);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"%\"); \n\n }\n break;\n case 6 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:330:6: ^( ARITH_NEGATION op1= expression )\n {\n match(input,ARITH_NEGATION,FOLLOW_ARITH_NEGATION_in_expression686); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression692);\n op1=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,null,\"ARITH_NEGATION\"); \n\n }\n break;\n case 7 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:331:6: ^( '||' op1= expression op2= expression )\n {\n match(input,50,FOLLOW_50_in_expression710); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression716);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression722);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"||\"); \n\n }\n break;\n case 8 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:332:6: ^( '&&' op1= expression op2= expression )\n {\n match(input,30,FOLLOW_30_in_expression733); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression739);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression745);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"&&\"); \n\n }\n break;\n case 9 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:333:6: ^( '==' op1= expression op2= expression )\n {\n match(input,39,FOLLOW_39_in_expression756); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression762);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression768);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"==\"); \n\n }\n break;\n case 10 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:334:6: ^( '!=' op1= expression op2= expression )\n {\n match(input,28,FOLLOW_28_in_expression779); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression785);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression791);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"!=\"); \n\n }\n break;\n case 11 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:335:6: ^( '>=' op1= expression op2= expression )\n {\n match(input,41,FOLLOW_41_in_expression802); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression808);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression814);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\">=\"); \n\n }\n break;\n case 12 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:336:6: ^( '<=' op1= expression op2= expression )\n {\n match(input,37,FOLLOW_37_in_expression825); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression831);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression837);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"<=\"); \n\n }\n break;\n case 13 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:337:6: ^( '>' op1= expression op2= expression )\n {\n match(input,40,FOLLOW_40_in_expression848); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression854);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression860);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\">\"); \n\n }\n break;\n case 14 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:338:6: ^( '<' op1= expression op2= expression )\n {\n match(input,36,FOLLOW_36_in_expression872); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression878);\n op1=expression();\n\n state._fsp--;\n\n\n pushFollow(FOLLOW_expression_in_expression884);\n op2=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,op2,\"<\"); \n\n }\n break;\n case 15 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:339:6: ^( BOOL_NEGATION op1= expression )\n {\n match(input,BOOL_NEGATION,FOLLOW_BOOL_NEGATION_in_expression896); \n\n match(input, Token.DOWN, null); \n pushFollow(FOLLOW_expression_in_expression902);\n op1=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n oe = new OperationExecuter(op1,null,\"BOOL_NEGATION\"); \n\n }\n break;\n case 16 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:340:6: INTEGER\n {\n INTEGER15=(CommonTree)match(input,INTEGER,FOLLOW_INTEGER_in_expression920); \n\n oe = new OperationExecuter(localScope, (INTEGER15!=null?INTEGER15.getText():null),\"INTEGER\"); \n\n }\n break;\n case 17 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:341:6: BOOL\n {\n BOOL16=(CommonTree)match(input,BOOL,FOLLOW_BOOL_in_expression964); \n\n oe = new OperationExecuter(localScope, (BOOL16!=null?BOOL16.getText():null),\"BOOL\"); \n\n }\n break;\n case 18 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:342:6: IDENT\n {\n IDENT17=(CommonTree)match(input,IDENT,FOLLOW_IDENT_in_expression1010); \n\n oe = new OperationExecuter(localScope, (IDENT17!=null?IDENT17.getText():null),\"IDENT\"); \n\n }\n break;\n case 19 :\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:343:6: call\n {\n pushFollow(FOLLOW_call_in_expression1055);\n call18=call();\n\n state._fsp--;\n\n\n result = call18;\n\n }\n break;\n\n }\n\n\n if (oe != null) result = oe.doOperation();\n if (result == null)\n BFlatGUI.debugPrint(0, \"result of expression is null!\");\n \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return result;\n }",
"String evaluate();",
"private void evalExpression () {\n\tif (expr.type != null) {\n\t // Expression ist wie vorgesehen getypt\n\t if (expr.type instanceof M_Bool) {\n\t\t// Expression ist eine boolesche, also :\n\t\tdebug.addMsg(\"# expression to evaluate is boolean.\",3);\n\t\tSimulatorBoolEvaluator boolExpr = new SimulatorBoolEvaluator(process, expr);\n\t\tvalue = new SimulatorBoolValue ( boolExpr.giveResult() );\n\t }\n\t else if (expr.type instanceof M_Int) {\n\t\t// Expression ist eine zu Integer evaluierende, also :\n\t\tdebug.addMsg(\"# expression to evaluate is integer.\",3);\n\t\tSimulatorIntEvaluator intExpr = new SimulatorIntEvaluator(process, expr);\n\t\tvalue = new SimulatorIntValue ( intExpr.giveResult() ); \n\t }\n\t else {\n\t /* Platz für Exception, da Expression falsch getypt */\n\t debug.addMsg(\"!!! EXCEPTION !!! : Expression not properly typed \",0);\n\t debug.addMsg(\"!!! Class: SimulatorExprEvaluator \\n!!! Method : evalExpression\\n!!! Pos.:1 \",0);\n\t }\n\n\t} //--------- end if(1) ------------\n\telse {\n\t // Expression ist nicht getypt also :\n\t debug.addMsg(\"!!! EXCEPTION !!! : Expression not typed \",0);\n\t debug.addMsg(\"!!! Class: SimulatorExprEvaluator \\n!!! Method : evalExpression\\n!!! Pos.:2 \",0);\n\t} //-------- end else --------------\n }",
"Expression getExpression();",
"Expression getExpression();",
"Expression getExpression();",
"Expression getExpression();",
"Expression getExp();",
"Hojas eval();",
"public Object eval(String expression) throws Exception;",
"public static void main(String[] args) {\n\n System.out.println(\"119.1+(28.2+37.3*(46.4-55.5)-4.6+(3/2)+1) = \" + evaluateExpression(\"119.1 + ( 28.2 + 37.3 * ( 46.4 - 55.5 ) - 4.6 + ( 3 / 2 ) + 1 )\"));\n\n}",
"final public ASTExpression Expression() throws ParseException {\r\n /*@bgen(jjtree) Expression */\r\n ASTExpression jjtn000 = new ASTExpression(JJTEXPRESSION);\r\n boolean jjtc000 = true;\r\n jjtree.openNodeScope(jjtn000);\r\n try {\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case QUOTE:\r\n StringLiteral();\r\n jj_consume_token(61);\r\n jjtree.closeNodeScope(jjtn000, true);\r\n jjtc000 = false;\r\n {if (true) return jjtn000;}\r\n break;\r\n case IDENTIFIER:\r\n case INTEGER:\r\n case NOT:\r\n case SUB:\r\n case FLOATING_POINT_LITERAL:\r\n case 59:\r\n LogicalORExpression();\r\n jjtree.closeNodeScope(jjtn000, true);\r\n jjtc000 = false;\r\n {if (true) return jjtn000;}\r\n break;\r\n default:\r\n jj_la1[45] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n } catch (Throwable jjte000) {\r\n if (jjtc000) {\r\n jjtree.clearNodeScope(jjtn000);\r\n jjtc000 = false;\r\n } else {\r\n jjtree.popNode();\r\n }\r\n if (jjte000 instanceof RuntimeException) {\r\n {if (true) throw (RuntimeException)jjte000;}\r\n }\r\n if (jjte000 instanceof ParseException) {\r\n {if (true) throw (ParseException)jjte000;}\r\n }\r\n {if (true) throw (Error)jjte000;}\r\n } finally {\r\n if (jjtc000) {\r\n jjtree.closeNodeScope(jjtn000, true);\r\n }\r\n }\r\n throw new Error(\"Missing return statement in function\");\r\n }",
"public abstract Object eval();",
"private void testExpression(ASTExpression exp, ASTTerm expectedResult) {\n System.out.print(\"eval[\" + exp + \"] = \");\n ASTTerm result = null;\n try {\n result = interpreter.evaluate(exp);\n } catch (Exception e) {\n fail(e.getMessage());\n }\n System.out.println(result);\n\n assertEquals(expectedResult, result);\n }",
"@Test\n\t\tpublic void testExpression() throws LexicalException, SyntaxException {\n\t\t\tString input = \"x + 2\";\n\t\t\tPLPParser parser = makeParser(input);\n\t\t\tExpression e = parser.expression(); //call expression here instead of parse\n\t\t\tshow(e);\t\n\t\t\tassertEquals(ExpressionBinary.class, e.getClass());\n\t\t\tExpressionBinary b = (ExpressionBinary)e;\n\t\t\tassertEquals(ExpressionIdentifier.class, b.leftExpression.getClass());//\n\t\t\tExpressionIdentifier left = (ExpressionIdentifier)b.leftExpression;\n\t\t\tassertEquals(\"x\", left.name);\n\t\t\tassertEquals(ExpressionIntegerLiteral.class, b.rightExpression.getClass());\n\t\t\tExpressionIntegerLiteral right = (ExpressionIntegerLiteral)b.rightExpression;\n\t\t\tassertEquals(2, right.value);\n\t\t\tassertEquals(OP_PLUS, b.op);\n\t\t}",
"@Test\n\tpublic void testExpression() throws ParseException {\n\t\tExpression expression = langParser(\"a\").expression();\n\t\tassertEquals(expression.getClass(), Identifier.class);\n\t\texpression = langParser(\"a()\").expression();\n\t\tassertEquals(expression.getClass(), FunctionCall.class);\n\t\texpression = langParser(\"a.b\").expression();\n\t\tassertEquals(expression.getClass(), MemberAccess.class);\n\t\texpression = langParser(\"1\").expression();\n\t\tassertEquals(expression.getClass(), LongLiteral.class);\n\t\texpression = langParser(\"1.1\").expression();\n\t\tassertEquals(expression.getClass(), DoubleLiteral.class);\n\t\texpression = langParser(\"if(a,b,c)\").expression();\n\t\tassertEquals(expression.getClass(), TernaryIf.class);\n\t}",
"public T evaluate(String expr) {\n List<Token> tokens = ExpressionParser.parse(expr);\n Expression expression = ExpressionBuilder.build(tokens);\n Visitor<T> visitor = new ExpressionVisitor<>();\n return visitor.visit(expression);\n }",
"protected abstract Value evaluate();",
"public abstract Expression generateExpression(GenerationContext context);",
"public int expressionEval(String expression){\n\n int result = 0;\n\n\n\n return result;\n }",
"public Expr getExpression()\n {\n Parser.validateExpr(expression, analysis);\n return expression;\n }",
"public Element compileExpression() {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\t\tboolean op;\n\t\tboolean oper = false;\n\t\tString command = \"\";\n\t\tElement expressionParent = document.createElement(\"expression\");\n\n\t\t// if the term-op-term-op cycle breaks, that means its the end of the expression\n\t\tdo {\n\n\t\t\t// At least one term\n\t\t\texpressionParent.appendChild(compileTerm());\n\t\t\t\n\t\t\t//If an operand has been encountered, then can write the command as it is postfix\n\t\t\tif (oper) {\n\t\t\t\twriter.writeCommand(command);\n\t\t\t}\n\t\t\tjackTokenizer clone = new jackTokenizer(jTokenizer);\n\t\t\tclone.advance();\n\t\t\ttoken = clone.presentToken;\n\n\t\t\t// zero or more ops\n\t\t\tif (token.matches(\"\\\\+|-|\\\\*|/|\\\\&|\\\\||<|=|>|~\")) {\n\t\t\t\toper = true;\n\n\t\t\t\tswitch (token) {\n\t\t\t\tcase \"+\":\n\t\t\t\t\tcommand = \"add\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"-\":\n\t\t\t\t\tcommand = \"sub\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"*\":\n\t\t\t\t\tcommand = \"call Math.multiply 2\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"/\":\n\t\t\t\t\tcommand = \"call Math.divide 2\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"<\":\n\t\t\t\t\tcommand = \"lt\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \">\":\n\t\t\t\t\tcommand = \"gt\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"=\":\n\t\t\t\t\tcommand = \"eq\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"&\":\n\t\t\t\t\tcommand = \"and\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"|\":\n\t\t\t\t\tcommand = \"or\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\texpressionParent.appendChild(ele);\n\t\t\t\tjTokenizer.advance();\n\t\t\t\top = true;\n\t\t\t} else {\n\t\t\t\top = false;\n\t\t\t}\n\t\t} while (op);\n\n\t\treturn expressionParent;\n\t}",
"Expression getValue();",
"Expression getValue();",
"Expr getExpr();",
"public void performEvaluation(){\n if(validateExp(currentExp)){\n try {\n Double result = symbols.eval(currentExp);\n currentExp = Double.toString(result);\n calculationResult.onExpressionChange(currentExp,true);\n count=0;\n }catch (SyntaxException e) {\n calculationResult.onExpressionChange(\"Invalid Input\",false);\n e.printStackTrace();\n }\n }\n\n }",
"public ASTNode visitEvaluate(EvaluateContext ctx) {\n ASTExpr expr = (ctx.expr() == null) ? null : (ASTExpr)visit(ctx.expr());\n return new ASTEval(ctx, expr);\n }",
"public PrimaryExpression getExpression()\r\n {\r\n\treturn m_expression;\r\n }",
"public Expression getExpression() {\n if (this.expression == null) {\n // lazy init must be thread-safe for readers\n synchronized (this) {\n if (this.expression == null) {\n preLazyInit();\n this.expression = new SimpleName(this.ast);\n postLazyInit(this.expression, EXPRESSION_PROPERTY);\n }\n }\n }\n return this.expression;\n }",
"DExpression getExpression();",
"@Override\n\tpublic void compile() {\n\t\t\n\t}",
"public final AstValidator.projectable_expr_return projectable_expr() throws RecognitionException {\n AstValidator.projectable_expr_return retval = new AstValidator.projectable_expr_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n AstValidator.func_eval_return func_eval251 =null;\n\n AstValidator.col_ref_return col_ref252 =null;\n\n AstValidator.bin_expr_return bin_expr253 =null;\n\n AstValidator.case_expr_return case_expr254 =null;\n\n AstValidator.case_cond_return case_cond255 =null;\n\n\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:436:17: ( func_eval | col_ref | bin_expr | case_expr | case_cond )\n int alt63=5;\n switch ( input.LA(1) ) {\n case FUNC_EVAL:\n case INVOKER_FUNC_EVAL:\n {\n alt63=1;\n }\n break;\n case CUBE:\n case DOLLARVAR:\n case GROUP:\n case IDENTIFIER:\n {\n alt63=2;\n }\n break;\n case BIN_EXPR:\n {\n alt63=3;\n }\n break;\n case CASE_EXPR:\n {\n alt63=4;\n }\n break;\n case CASE_COND:\n {\n alt63=5;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 63, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt63) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:436:19: func_eval\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_func_eval_in_projectable_expr2169);\n func_eval251=func_eval();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, func_eval251.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 2 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:436:31: col_ref\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_col_ref_in_projectable_expr2173);\n col_ref252=col_ref();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, col_ref252.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 3 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:436:41: bin_expr\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_bin_expr_in_projectable_expr2177);\n bin_expr253=bin_expr();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, bin_expr253.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 4 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:436:52: case_expr\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_case_expr_in_projectable_expr2181);\n case_expr254=case_expr();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, case_expr254.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 5 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:436:64: case_cond\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_case_cond_in_projectable_expr2185);\n case_cond255=case_cond();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, case_cond255.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }",
"public Node getExpression() {\r\n return expression;\r\n }",
"public String eval()\r\n\t{\r\n\t\treturn eval(null, null);\r\n\t}",
"void evaluate()\n\t{\n\t\toperation.evaluate();\n\t}",
"@Override\n\tpublic int evaluate(){\n\t\treturn term.evaluate() + exp.evaluate();\n\t}",
"@Override\n public void compile(LinkedList<Token> theStack, Compiler c) throws CompilerException {\n\n\tVariableToken vt;\n\tvt = c.getGlobalVariable(this.getTokenString());\n\tif (vt == null) {\n\t if (c.getCurrentFunction() != null) {\n\t\tvt = c.getCurrentFunction().getLocalVariable(this.getTokenString());\n\t }\n\t}\n\tif (vt == null) {\n\t if (c.getCurrentFunction() != null) {\n\t\tvt = c.getCurrentFunction().getParameter(this.getTokenString());\n\t }\n\t}\n\n\tif (vt == null) {\n\t throw new CompilerException(\"The variable \\\"\" + this.getTokenString() + \"\\\" cannot be used in an expression, as it is not a known variable in the current context!\");\n\t} else {\n\t NumberTokenFactory ntf = new NumberTokenFactory();\n\n//\t\t\tNumberToken nt = (NumberToken) ntf.create(Integer.toString(vt.getVariableID()), 0);\n\t //nt.compile(theStack, c);//when we compile the variable, we add the ID of the variable on the bytecode stack of the compiler c. We use NumberTokenFactory to decide, whether the ID is actually 1 byte long or 2 bytes long and then we add those bytes to the compiler bytecode stack.\n\t //theStack.pop();//well... the previous call had the side effect of placing the \"NumberToken\" on the working stack \"theStack\", which is not what we want, so we're removing it from the working stack here!\n\t extended = CompilableToken.compileNumber(vt.getVariableID(), c);\n\n\t //boolean extended = false;\n\t\t\t/*\n\t if (nt instanceof ByteNumberToken) {\n\t extended = false;\n\t } else {\n\t extended = true;\n\t }\n\t */\n\t this.type = vt.getType();\n\t this.context = vt.getContext();\n\n\t c.getByteCode().push(this);\n\n\t //TODO: Following code should have been here for ages, it seems suspicious\n\t // (impossible)\n\t //that everything even worked without it\n\t theStack.push(this.type);\n\t /*\n\t if (this.getType() == BYTE) {\n\t c.getByteCode().push(new PushByteVariableOnStackByteCodeToken(extended));\n\t theStack.push(new ByteNumberToken(\"0\"));\n\t } else if (this.getType() == INT) {\n\t c.getByteCode().push(new PushIntegerVariableOnStackByteCodeToken(extended));\n\t theStack.push(new IntegerNumberToken(\"0\"));\n\t } else {\n\t System.err.println(\"Cannot compile a variable reference; unknown variable type for variable \\\"\" + this.getTokenString() + \".\\\"\");\n\n\t }\n\t */\n\t}\n\n }",
"LogicExpression getExpr();",
"@NotNull\n public final Promise<XExpression> calculateEvaluationExpression() {\n return myValueContainer.calculateEvaluationExpression();\n }",
"protected boolean compile(Context ctx, CodeAttribute code, boolean fReached, ErrorList errlist)\n throws CompilerException\n {\n // this is the compilation for array access, not storing into an\n // array; that is handled by AssignExpression\n\n if (!ctx.isDebug() && isConstant() && !(getValue() instanceof Object[]))\n {\n // Expression has compiler implementation for constant values\n return super.compile(ctx, code, fReached, errlist);\n }\n\n // compilation for \"<expr>[<index>]\":\n //\n // [expr]\n // [index]\n // ?aload\n\n getArray().compile(ctx, code, fReached, errlist);\n getIndex().compile(ctx, code, fReached, errlist);\n\n Op opLoad = null;\n switch (getType().getTypeString().charAt(0))\n {\n case 'Z':\n case 'B':\n opLoad = new Baload();\n break;\n case 'C':\n opLoad = new Caload();\n break;\n case 'S':\n opLoad = new Saload();\n break;\n case 'I':\n opLoad = new Iaload();\n break;\n case 'J':\n opLoad = new Laload();\n break;\n case 'F':\n opLoad = new Faload();\n break;\n case 'D':\n opLoad = new Daload();\n break;\n case '[':\n case 'N':\n case 'L':\n case 'R':\n opLoad = new Aaload();\n break;\n default:\n throw new IllegalStateException();\n }\n code.add(opLoad);\n\n return fReached;\n }",
"Expr expr() throws IOException {\n\t\tExpr e = term();\n\t\twhile (look.tag == '+' || look.tag == '-') {\n\t\t\tToken tok = look;\n\t\t\tmove();\n\t\t\te = new Arith(tok, e, term());\n\t\t}\n\t\treturn e;\n\t}",
"@Test\n\tpublic void expression1() throws SyntaxException, LexicalException {\n\t\tString input = \"2\";\n\t\tshow(input);\n\t\tScanner scanner = new Scanner(input).scan();\n\t\tshow(scanner);\n\t\tSimpleParser parser = new SimpleParser(scanner);\n\t\tparser.expression(); // Call expression directly.\n\t}",
"public abstract void interpret(EvaluationContext context);",
"public final JavaliParser.expr_return expr() throws RecognitionException {\n\t\tJavaliParser.expr_return retval = new JavaliParser.expr_return();\n\t\tretval.start = input.LT(1);\n\n\t\tObject root_0 = null;\n\n\t\tParserRuleReturnScope leftExpr =null;\n\t\tParserRuleReturnScope op =null;\n\t\tParserRuleReturnScope rightExpr =null;\n\n\t\tRewriteRuleSubtreeStream stream_simpleExpr=new RewriteRuleSubtreeStream(adaptor,\"rule simpleExpr\");\n\t\tRewriteRuleSubtreeStream stream_compOp=new RewriteRuleSubtreeStream(adaptor,\"rule compOp\");\n\n\t\ttry {\n\t\t\t// /home/luca/svn-repos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:427:2: (leftExpr= simpleExpr ( -> $leftExpr|op= compOp rightExpr= simpleExpr -> ^( BinaryOp[$op.start, \\\"BinaryOp\\\"] $leftExpr compOp $rightExpr) ) )\n\t\t\t// /home/luca/svn-repos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:427:4: leftExpr= simpleExpr ( -> $leftExpr|op= compOp rightExpr= simpleExpr -> ^( BinaryOp[$op.start, \\\"BinaryOp\\\"] $leftExpr compOp $rightExpr) )\n\t\t\t{\n\t\t\tpushFollow(FOLLOW_simpleExpr_in_expr1531);\n\t\t\tleftExpr=simpleExpr();\n\t\t\tstate._fsp--;\n\n\t\t\tstream_simpleExpr.add(leftExpr.getTree());\n\t\t\t// /home/luca/svn-repos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:428:3: ( -> $leftExpr|op= compOp rightExpr= simpleExpr -> ^( BinaryOp[$op.start, \\\"BinaryOp\\\"] $leftExpr compOp $rightExpr) )\n\t\t\tint alt25=2;\n\t\t\tint LA25_0 = input.LA(1);\n\t\t\tif ( (LA25_0==70||LA25_0==73||LA25_0==77) ) {\n\t\t\t\talt25=1;\n\t\t\t}\n\t\t\telse if ( (LA25_0==66||(LA25_0 >= 78 && LA25_0 <= 79)||(LA25_0 >= 81 && LA25_0 <= 83)) ) {\n\t\t\t\talt25=2;\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\tnew NoViableAltException(\"\", 25, 0, input);\n\t\t\t\tthrow nvae;\n\t\t\t}\n\n\t\t\tswitch (alt25) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// /home/luca/svn-repos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:429:4: \n\t\t\t\t\t{\n\t\t\t\t\t// AST REWRITE\n\t\t\t\t\t// elements: leftExpr\n\t\t\t\t\t// token labels: \n\t\t\t\t\t// rule labels: leftExpr, retval\n\t\t\t\t\t// token list labels: \n\t\t\t\t\t// rule list labels: \n\t\t\t\t\t// wildcard labels: \n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\tRewriteRuleSubtreeStream stream_leftExpr=new RewriteRuleSubtreeStream(adaptor,\"rule leftExpr\",leftExpr!=null?leftExpr.getTree():null);\n\t\t\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\n\t\t\t\t\troot_0 = (Object)adaptor.nil();\n\t\t\t\t\t// 429:4: -> $leftExpr\n\t\t\t\t\t{\n\t\t\t\t\t\tadaptor.addChild(root_0, stream_leftExpr.nextTree());\n\t\t\t\t\t}\n\n\n\t\t\t\t\tretval.tree = root_0;\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2 :\n\t\t\t\t\t// /home/luca/svn-repos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:430:5: op= compOp rightExpr= simpleExpr\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_compOp_in_expr1552);\n\t\t\t\t\top=compOp();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\tstream_compOp.add(op.getTree());\n\t\t\t\t\tpushFollow(FOLLOW_simpleExpr_in_expr1556);\n\t\t\t\t\trightExpr=simpleExpr();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\tstream_simpleExpr.add(rightExpr.getTree());\n\t\t\t\t\t// AST REWRITE\n\t\t\t\t\t// elements: compOp, leftExpr, rightExpr\n\t\t\t\t\t// token labels: \n\t\t\t\t\t// rule labels: leftExpr, retval, rightExpr\n\t\t\t\t\t// token list labels: \n\t\t\t\t\t// rule list labels: \n\t\t\t\t\t// wildcard labels: \n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\tRewriteRuleSubtreeStream stream_leftExpr=new RewriteRuleSubtreeStream(adaptor,\"rule leftExpr\",leftExpr!=null?leftExpr.getTree():null);\n\t\t\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\t\t\t\t\tRewriteRuleSubtreeStream stream_rightExpr=new RewriteRuleSubtreeStream(adaptor,\"rule rightExpr\",rightExpr!=null?rightExpr.getTree():null);\n\n\t\t\t\t\troot_0 = (Object)adaptor.nil();\n\t\t\t\t\t// 431:4: -> ^( BinaryOp[$op.start, \\\"BinaryOp\\\"] $leftExpr compOp $rightExpr)\n\t\t\t\t\t{\n\t\t\t\t\t\t// /home/luca/svn-repos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:431:7: ^( BinaryOp[$op.start, \\\"BinaryOp\\\"] $leftExpr compOp $rightExpr)\n\t\t\t\t\t\t{\n\t\t\t\t\t\tObject root_1 = (Object)adaptor.nil();\n\t\t\t\t\t\troot_1 = (Object)adaptor.becomeRoot((Object)adaptor.create(BinaryOp, (op!=null?(op.start):null), \"BinaryOp\"), root_1);\n\t\t\t\t\t\tadaptor.addChild(root_1, stream_leftExpr.nextTree());\n\t\t\t\t\t\tadaptor.addChild(root_1, stream_compOp.nextTree());\n\t\t\t\t\t\tadaptor.addChild(root_1, stream_rightExpr.nextTree());\n\t\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\n\t\t\t\t\tretval.tree = root_0;\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t}\n\n\t\t\tretval.stop = input.LT(-1);\n\n\t\t\tretval.tree = (Object)adaptor.rulePostProcessing(root_0);\n\t\t\tadaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n\t\t}\n\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\tthrow re;\n\t\t}\n\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t\treturn retval;\n\t}",
"public final AliaChecker.expr_return expr() throws RecognitionException {\n\t\tAliaChecker.expr_return retval = new AliaChecker.expr_return();\n\t\tretval.start = input.LT(1);\n\n\t\tCommonTree root_0 = null;\n\n\t\tCommonTree _first_0 = null;\n\t\tCommonTree _last = null;\n\n\n\t\tCommonTree c=null;\n\t\tCommonTree id=null;\n\t\tCommonTree PRINT5=null;\n\t\tCommonTree READ6=null;\n\t\tCommonTree IF7=null;\n\t\tCommonTree DO8=null;\n\t\tCommonTree COLON9=null;\n\t\tCommonTree BECOMES10=null;\n\t\tCommonTree BECOMES11=null;\n\t\tCommonTree COMPOUND12=null;\n\t\tCommonTree CONST13=null;\n\t\tCommonTree BECOMES14=null;\n\t\tCommonTree COLON15=null;\n\t\tTreeRuleReturnScope to =null;\n\t\tTreeRuleReturnScope t1 =null;\n\t\tTreeRuleReturnScope t2 =null;\n\t\tTreeRuleReturnScope te1 =null;\n\t\tTreeRuleReturnScope te2 =null;\n\t\tTreeRuleReturnScope te =null;\n\t\tTreeRuleReturnScope tv =null;\n\t\tTreeRuleReturnScope o =null;\n\t\tTreeRuleReturnScope t =null;\n\t\tTreeRuleReturnScope ts =null;\n\t\tTreeRuleReturnScope texp =null;\n\t\tTreeRuleReturnScope typ =null;\n\t\tTreeRuleReturnScope prim =null;\n\n\t\tCommonTree c_tree=null;\n\t\tCommonTree id_tree=null;\n\t\tCommonTree PRINT5_tree=null;\n\t\tCommonTree READ6_tree=null;\n\t\tCommonTree IF7_tree=null;\n\t\tCommonTree DO8_tree=null;\n\t\tCommonTree COLON9_tree=null;\n\t\tCommonTree BECOMES10_tree=null;\n\t\tCommonTree BECOMES11_tree=null;\n\t\tCommonTree COMPOUND12_tree=null;\n\t\tCommonTree CONST13_tree=null;\n\t\tCommonTree BECOMES14_tree=null;\n\t\tCommonTree COLON15_tree=null;\n\t\tRewriteRuleNodeStream stream_AND_ALT=new RewriteRuleNodeStream(adaptor,\"token AND_ALT\");\n\t\tRewriteRuleNodeStream stream_GE=new RewriteRuleNodeStream(adaptor,\"token GE\");\n\t\tRewriteRuleNodeStream stream_LT=new RewriteRuleNodeStream(adaptor,\"token LT\");\n\t\tRewriteRuleNodeStream stream_MOD=new RewriteRuleNodeStream(adaptor,\"token MOD\");\n\t\tRewriteRuleNodeStream stream_CONST=new RewriteRuleNodeStream(adaptor,\"token CONST\");\n\t\tRewriteRuleNodeStream stream_NQ=new RewriteRuleNodeStream(adaptor,\"token NQ\");\n\t\tRewriteRuleNodeStream stream_BECOMES=new RewriteRuleNodeStream(adaptor,\"token BECOMES\");\n\t\tRewriteRuleNodeStream stream_NOT=new RewriteRuleNodeStream(adaptor,\"token NOT\");\n\t\tRewriteRuleNodeStream stream_MINUS=new RewriteRuleNodeStream(adaptor,\"token MINUS\");\n\t\tRewriteRuleNodeStream stream_AND=new RewriteRuleNodeStream(adaptor,\"token AND\");\n\t\tRewriteRuleNodeStream stream_PRINT=new RewriteRuleNodeStream(adaptor,\"token PRINT\");\n\t\tRewriteRuleNodeStream stream_COMPOUND=new RewriteRuleNodeStream(adaptor,\"token COMPOUND\");\n\t\tRewriteRuleNodeStream stream_COLON=new RewriteRuleNodeStream(adaptor,\"token COLON\");\n\t\tRewriteRuleNodeStream stream_READ=new RewriteRuleNodeStream(adaptor,\"token READ\");\n\t\tRewriteRuleNodeStream stream_IDENTIFIER=new RewriteRuleNodeStream(adaptor,\"token IDENTIFIER\");\n\t\tRewriteRuleNodeStream stream_OR=new RewriteRuleNodeStream(adaptor,\"token OR\");\n\t\tRewriteRuleNodeStream stream_OR_ALT=new RewriteRuleNodeStream(adaptor,\"token OR_ALT\");\n\t\tRewriteRuleNodeStream stream_GT=new RewriteRuleNodeStream(adaptor,\"token GT\");\n\t\tRewriteRuleNodeStream stream_PLUS=new RewriteRuleNodeStream(adaptor,\"token PLUS\");\n\t\tRewriteRuleNodeStream stream_MINUS_OP=new RewriteRuleNodeStream(adaptor,\"token MINUS_OP\");\n\t\tRewriteRuleNodeStream stream_PLUS_OP=new RewriteRuleNodeStream(adaptor,\"token PLUS_OP\");\n\t\tRewriteRuleNodeStream stream_DIV=new RewriteRuleNodeStream(adaptor,\"token DIV\");\n\t\tRewriteRuleNodeStream stream_EQ=new RewriteRuleNodeStream(adaptor,\"token EQ\");\n\t\tRewriteRuleNodeStream stream_TIMES=new RewriteRuleNodeStream(adaptor,\"token TIMES\");\n\t\tRewriteRuleNodeStream stream_LE=new RewriteRuleNodeStream(adaptor,\"token LE\");\n\t\tRewriteRuleSubtreeStream stream_varlist=new RewriteRuleSubtreeStream(adaptor,\"rule varlist\");\n\t\tRewriteRuleSubtreeStream stream_statements=new RewriteRuleSubtreeStream(adaptor,\"rule statements\");\n\t\tRewriteRuleSubtreeStream stream_expr=new RewriteRuleSubtreeStream(adaptor,\"rule expr\");\n\t\tRewriteRuleSubtreeStream stream_type=new RewriteRuleSubtreeStream(adaptor,\"rule type\");\n\t\tRewriteRuleSubtreeStream stream_operand=new RewriteRuleSubtreeStream(adaptor,\"rule operand\");\n\t\tRewriteRuleSubtreeStream stream_exprlist=new RewriteRuleSubtreeStream(adaptor,\"rule exprlist\");\n\t\tRewriteRuleSubtreeStream stream_primitive=new RewriteRuleSubtreeStream(adaptor,\"rule primitive\");\n\n\t\ttry {\n\t\t\t// src\\\\alia\\\\AliaChecker.g:57:5: (to= operand | ( ^(c= OR t1= expr t2= expr ) | ^(c= OR_ALT t1= expr t2= expr ) | ^(c= AND t1= expr t2= expr ) | ^(c= AND_ALT t1= expr t2= expr ) ) -> ^( $c expr expr TYPE[typename] ) | ( ^(c= EQ t1= expr t2= expr ) | ^(c= NQ t1= expr t2= expr ) | ^(c= LE t1= expr t2= expr ) | ^(c= GE t1= expr t2= expr ) | ^(c= GT t1= expr t2= expr ) | ^(c= LT t1= expr t2= expr ) ) -> ^( $c expr expr TYPE[typename] ) | ( ^(c= PLUS te1= expr te2= expr ) | ^(c= MINUS te1= expr te2= expr ) | ^(c= TIMES te1= expr te2= expr ) | ^(c= DIV te1= expr te2= expr ) | ^(c= MOD te1= expr te2= expr ) ) -> ^( $c expr expr TYPE[typename] ) | ^( PRINT te= exprlist ) -> ^( PRINT TYPE[typename] exprlist ) | ^( READ tv= varlist ) -> ^( READ TYPE[typename] varlist ) | ^(c= ( NOT ) to= operand ) -> ^( $c operand TYPE[typename] ) | ^(c= ( PLUS_OP | MINUS_OP ) o= operand ) -> ^( $c operand TYPE[typename] ) | ^( IF t= statements ^( DO ts= statements ) (texp= else_stmnt )? ) | ^( COLON ^( BECOMES id= IDENTIFIER t1= expr ) typ= type ) -> ^( BECOMES ^( IDENTIFIER TYPE[typename] ID[identifier] ) expr ) | ^( BECOMES id= IDENTIFIER t1= expr ) -> ^( BECOMES ^( IDENTIFIER TYPE[typename] ID[identifier] ) expr ) | ^( COMPOUND t= statements ) -> ^( COMPOUND TYPE[typename] statements ) | ^( CONST id= IDENTIFIER BECOMES prim= primitive ( COLON typ= type )? ) ->)\n\t\t\tint alt10=13;\n\t\t\tswitch ( input.LA(1) ) {\n\t\t\tcase CHAR_EXPR:\n\t\t\tcase FALSE:\n\t\t\tcase IDENTIFIER:\n\t\t\tcase NUMBER:\n\t\t\tcase TRUE:\n\t\t\t\t{\n\t\t\t\talt10=1;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase AND:\n\t\t\tcase AND_ALT:\n\t\t\tcase OR:\n\t\t\tcase OR_ALT:\n\t\t\t\t{\n\t\t\t\talt10=2;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase EQ:\n\t\t\tcase GE:\n\t\t\tcase GT:\n\t\t\tcase LE:\n\t\t\tcase LT:\n\t\t\tcase NQ:\n\t\t\t\t{\n\t\t\t\talt10=3;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase DIV:\n\t\t\tcase MINUS:\n\t\t\tcase MOD:\n\t\t\tcase PLUS:\n\t\t\tcase TIMES:\n\t\t\t\t{\n\t\t\t\talt10=4;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase PRINT:\n\t\t\t\t{\n\t\t\t\talt10=5;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase READ:\n\t\t\t\t{\n\t\t\t\talt10=6;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase NOT:\n\t\t\t\t{\n\t\t\t\talt10=7;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase MINUS_OP:\n\t\t\tcase PLUS_OP:\n\t\t\t\t{\n\t\t\t\talt10=8;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase IF:\n\t\t\t\t{\n\t\t\t\talt10=9;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase COLON:\n\t\t\t\t{\n\t\t\t\talt10=10;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase BECOMES:\n\t\t\t\t{\n\t\t\t\talt10=11;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase COMPOUND:\n\t\t\t\t{\n\t\t\t\talt10=12;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CONST:\n\t\t\t\t{\n\t\t\t\talt10=13;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\tnew NoViableAltException(\"\", 10, 0, input);\n\t\t\t\tthrow nvae;\n\t\t\t}\n\t\t\tswitch (alt10) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:57:9: to= operand\n\t\t\t\t\t{\n\t\t\t\t\troot_0 = (CommonTree)adaptor.nil();\n\n\n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\tpushFollow(FOLLOW_operand_in_expr310);\n\t\t\t\t\tto=operand();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\tadaptor.addChild(root_0, to.getTree());\n\n\n\t\t\t\t\t\t\t\tretval.type = (to!=null?((AliaChecker.operand_return)to).type:null);\n\t\t\t\t\t\t \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2 :\n\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:61:9: ( ^(c= OR t1= expr t2= expr ) | ^(c= OR_ALT t1= expr t2= expr ) | ^(c= AND t1= expr t2= expr ) | ^(c= AND_ALT t1= expr t2= expr ) )\n\t\t\t\t\t{\n\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:61:9: ( ^(c= OR t1= expr t2= expr ) | ^(c= OR_ALT t1= expr t2= expr ) | ^(c= AND t1= expr t2= expr ) | ^(c= AND_ALT t1= expr t2= expr ) )\n\t\t\t\t\tint alt4=4;\n\t\t\t\t\tswitch ( input.LA(1) ) {\n\t\t\t\t\tcase OR:\n\t\t\t\t\t\t{\n\t\t\t\t\t\talt4=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase OR_ALT:\n\t\t\t\t\t\t{\n\t\t\t\t\t\talt4=2;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase AND:\n\t\t\t\t\t\t{\n\t\t\t\t\t\talt4=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase AND_ALT:\n\t\t\t\t\t\t{\n\t\t\t\t\t\talt4=4;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\t\t\tnew NoViableAltException(\"\", 4, 0, input);\n\t\t\t\t\t\tthrow nvae;\n\t\t\t\t\t}\n\t\t\t\t\tswitch (alt4) {\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:61:10: ^(c= OR t1= expr t2= expr )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tCommonTree _save_last_1 = _last;\n\t\t\t\t\t\t\tCommonTree _first_1 = null;\n\t\t\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tc=(CommonTree)match(input,OR,FOLLOW_OR_in_expr328); \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\tstream_OR.add(c);\n\n\t\t\t\t\t\t\tmatch(input, Token.DOWN, null); \n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tpushFollow(FOLLOW_expr_in_expr332);\n\t\t\t\t\t\t\tt1=expr();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tstream_expr.add(t1.getTree());\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tpushFollow(FOLLOW_expr_in_expr336);\n\t\t\t\t\t\t\tt2=expr();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tstream_expr.add(t2.getTree());\n\t\t\t\t\t\t\tmatch(input, Token.UP, null); \n\t\t\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t\t\t_last = _save_last_1;\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2 :\n\t\t\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:62:9: ^(c= OR_ALT t1= expr t2= expr )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tCommonTree _save_last_1 = _last;\n\t\t\t\t\t\t\tCommonTree _first_1 = null;\n\t\t\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tc=(CommonTree)match(input,OR_ALT,FOLLOW_OR_ALT_in_expr350); \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\tstream_OR_ALT.add(c);\n\n\t\t\t\t\t\t\tmatch(input, Token.DOWN, null); \n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tpushFollow(FOLLOW_expr_in_expr354);\n\t\t\t\t\t\t\tt1=expr();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tstream_expr.add(t1.getTree());\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tpushFollow(FOLLOW_expr_in_expr358);\n\t\t\t\t\t\t\tt2=expr();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tstream_expr.add(t2.getTree());\n\t\t\t\t\t\t\tmatch(input, Token.UP, null); \n\t\t\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t\t\t_last = _save_last_1;\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3 :\n\t\t\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:63:9: ^(c= AND t1= expr t2= expr )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tCommonTree _save_last_1 = _last;\n\t\t\t\t\t\t\tCommonTree _first_1 = null;\n\t\t\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tc=(CommonTree)match(input,AND,FOLLOW_AND_in_expr372); \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\tstream_AND.add(c);\n\n\t\t\t\t\t\t\tmatch(input, Token.DOWN, null); \n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tpushFollow(FOLLOW_expr_in_expr376);\n\t\t\t\t\t\t\tt1=expr();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tstream_expr.add(t1.getTree());\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tpushFollow(FOLLOW_expr_in_expr380);\n\t\t\t\t\t\t\tt2=expr();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tstream_expr.add(t2.getTree());\n\t\t\t\t\t\t\tmatch(input, Token.UP, null); \n\t\t\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t\t\t_last = _save_last_1;\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 4 :\n\t\t\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:64:9: ^(c= AND_ALT t1= expr t2= expr )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tCommonTree _save_last_1 = _last;\n\t\t\t\t\t\t\tCommonTree _first_1 = null;\n\t\t\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tc=(CommonTree)match(input,AND_ALT,FOLLOW_AND_ALT_in_expr394); \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\tstream_AND_ALT.add(c);\n\n\t\t\t\t\t\t\tmatch(input, Token.DOWN, null); \n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tpushFollow(FOLLOW_expr_in_expr398);\n\t\t\t\t\t\t\tt1=expr();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tstream_expr.add(t1.getTree());\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tpushFollow(FOLLOW_expr_in_expr402);\n\t\t\t\t\t\t\tt2=expr();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tstream_expr.add(t2.getTree());\n\t\t\t\t\t\t\tmatch(input, Token.UP, null); \n\t\t\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t\t\t_last = _save_last_1;\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\n\t\t\t\t\t checkEqualType((t1!=null?((AliaChecker.expr_return)t1).type:null), (t2!=null?((AliaChecker.expr_return)t2).type:null), (t1!=null?((CommonTree)t1.getTree()):null));\n\t\t\t\t\t checkBoolType((t1!=null?((AliaChecker.expr_return)t1).type:null), (t1!=null?((CommonTree)t1.getTree()):null));\n\t\t\t\t\t retval.type = new _Bool();\n\t\t\t\t\t String typename = String.valueOf(retval.type);\n\t\t\t\t\t \n\t\t\t\t\t// AST REWRITE\n\t\t\t\t\t// elements: expr, c, expr\n\t\t\t\t\t// token labels: c\n\t\t\t\t\t// rule labels: retval\n\t\t\t\t\t// token list labels: \n\t\t\t\t\t// rule list labels: \n\t\t\t\t\t// wildcard labels: \n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\tRewriteRuleNodeStream stream_c=new RewriteRuleNodeStream(adaptor,\"token c\",c);\n\t\t\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\n\t\t\t\t\troot_0 = (CommonTree)adaptor.nil();\n\t\t\t\t\t// 71:7: -> ^( $c expr expr TYPE[typename] )\n\t\t\t\t\t{\n\t\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:71:10: ^( $c expr expr TYPE[typename] )\n\t\t\t\t\t\t{\n\t\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t\troot_1 = (CommonTree)adaptor.becomeRoot(stream_c.nextNode(), root_1);\n\t\t\t\t\t\tadaptor.addChild(root_1, stream_expr.nextTree());\n\t\t\t\t\t\tadaptor.addChild(root_1, stream_expr.nextTree());\n\t\t\t\t\t\tadaptor.addChild(root_1, (CommonTree)adaptor.create(TYPE, typename));\n\t\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\n\t\t\t\t\tretval.tree = root_0;\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3 :\n\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:72:9: ( ^(c= EQ t1= expr t2= expr ) | ^(c= NQ t1= expr t2= expr ) | ^(c= LE t1= expr t2= expr ) | ^(c= GE t1= expr t2= expr ) | ^(c= GT t1= expr t2= expr ) | ^(c= LT t1= expr t2= expr ) )\n\t\t\t\t\t{\n\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:72:9: ( ^(c= EQ t1= expr t2= expr ) | ^(c= NQ t1= expr t2= expr ) | ^(c= LE t1= expr t2= expr ) | ^(c= GE t1= expr t2= expr ) | ^(c= GT t1= expr t2= expr ) | ^(c= LT t1= expr t2= expr ) )\n\t\t\t\t\tint alt5=6;\n\t\t\t\t\tswitch ( input.LA(1) ) {\n\t\t\t\t\tcase EQ:\n\t\t\t\t\t\t{\n\t\t\t\t\t\talt5=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase NQ:\n\t\t\t\t\t\t{\n\t\t\t\t\t\talt5=2;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase LE:\n\t\t\t\t\t\t{\n\t\t\t\t\t\talt5=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase GE:\n\t\t\t\t\t\t{\n\t\t\t\t\t\talt5=4;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase GT:\n\t\t\t\t\t\t{\n\t\t\t\t\t\talt5=5;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase LT:\n\t\t\t\t\t\t{\n\t\t\t\t\t\talt5=6;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\t\t\tnew NoViableAltException(\"\", 5, 0, input);\n\t\t\t\t\t\tthrow nvae;\n\t\t\t\t\t}\n\t\t\t\t\tswitch (alt5) {\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:72:10: ^(c= EQ t1= expr t2= expr )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tCommonTree _save_last_1 = _last;\n\t\t\t\t\t\t\tCommonTree _first_1 = null;\n\t\t\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tc=(CommonTree)match(input,EQ,FOLLOW_EQ_in_expr446); \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\tstream_EQ.add(c);\n\n\t\t\t\t\t\t\tmatch(input, Token.DOWN, null); \n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tpushFollow(FOLLOW_expr_in_expr450);\n\t\t\t\t\t\t\tt1=expr();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tstream_expr.add(t1.getTree());\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tpushFollow(FOLLOW_expr_in_expr454);\n\t\t\t\t\t\t\tt2=expr();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tstream_expr.add(t2.getTree());\n\t\t\t\t\t\t\tmatch(input, Token.UP, null); \n\t\t\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t\t\t_last = _save_last_1;\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2 :\n\t\t\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:73:9: ^(c= NQ t1= expr t2= expr )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tCommonTree _save_last_1 = _last;\n\t\t\t\t\t\t\tCommonTree _first_1 = null;\n\t\t\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tc=(CommonTree)match(input,NQ,FOLLOW_NQ_in_expr468); \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\tstream_NQ.add(c);\n\n\t\t\t\t\t\t\tmatch(input, Token.DOWN, null); \n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tpushFollow(FOLLOW_expr_in_expr472);\n\t\t\t\t\t\t\tt1=expr();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tstream_expr.add(t1.getTree());\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tpushFollow(FOLLOW_expr_in_expr476);\n\t\t\t\t\t\t\tt2=expr();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tstream_expr.add(t2.getTree());\n\t\t\t\t\t\t\tmatch(input, Token.UP, null); \n\t\t\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t\t\t_last = _save_last_1;\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3 :\n\t\t\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:74:9: ^(c= LE t1= expr t2= expr )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tCommonTree _save_last_1 = _last;\n\t\t\t\t\t\t\tCommonTree _first_1 = null;\n\t\t\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tc=(CommonTree)match(input,LE,FOLLOW_LE_in_expr490); \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\tstream_LE.add(c);\n\n\t\t\t\t\t\t\tmatch(input, Token.DOWN, null); \n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tpushFollow(FOLLOW_expr_in_expr494);\n\t\t\t\t\t\t\tt1=expr();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tstream_expr.add(t1.getTree());\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tpushFollow(FOLLOW_expr_in_expr498);\n\t\t\t\t\t\t\tt2=expr();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tstream_expr.add(t2.getTree());\n\t\t\t\t\t\t\tmatch(input, Token.UP, null); \n\t\t\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t\t\t_last = _save_last_1;\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 4 :\n\t\t\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:75:9: ^(c= GE t1= expr t2= expr )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tCommonTree _save_last_1 = _last;\n\t\t\t\t\t\t\tCommonTree _first_1 = null;\n\t\t\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tc=(CommonTree)match(input,GE,FOLLOW_GE_in_expr512); \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\tstream_GE.add(c);\n\n\t\t\t\t\t\t\tmatch(input, Token.DOWN, null); \n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tpushFollow(FOLLOW_expr_in_expr516);\n\t\t\t\t\t\t\tt1=expr();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tstream_expr.add(t1.getTree());\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tpushFollow(FOLLOW_expr_in_expr520);\n\t\t\t\t\t\t\tt2=expr();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tstream_expr.add(t2.getTree());\n\t\t\t\t\t\t\tmatch(input, Token.UP, null); \n\t\t\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t\t\t_last = _save_last_1;\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 5 :\n\t\t\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:76:9: ^(c= GT t1= expr t2= expr )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tCommonTree _save_last_1 = _last;\n\t\t\t\t\t\t\tCommonTree _first_1 = null;\n\t\t\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tc=(CommonTree)match(input,GT,FOLLOW_GT_in_expr534); \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\tstream_GT.add(c);\n\n\t\t\t\t\t\t\tmatch(input, Token.DOWN, null); \n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tpushFollow(FOLLOW_expr_in_expr538);\n\t\t\t\t\t\t\tt1=expr();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tstream_expr.add(t1.getTree());\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tpushFollow(FOLLOW_expr_in_expr542);\n\t\t\t\t\t\t\tt2=expr();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tstream_expr.add(t2.getTree());\n\t\t\t\t\t\t\tmatch(input, Token.UP, null); \n\t\t\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t\t\t_last = _save_last_1;\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 6 :\n\t\t\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:77:9: ^(c= LT t1= expr t2= expr )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tCommonTree _save_last_1 = _last;\n\t\t\t\t\t\t\tCommonTree _first_1 = null;\n\t\t\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tc=(CommonTree)match(input,LT,FOLLOW_LT_in_expr556); \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\tstream_LT.add(c);\n\n\t\t\t\t\t\t\tmatch(input, Token.DOWN, null); \n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tpushFollow(FOLLOW_expr_in_expr560);\n\t\t\t\t\t\t\tt1=expr();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tstream_expr.add(t1.getTree());\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tpushFollow(FOLLOW_expr_in_expr564);\n\t\t\t\t\t\t\tt2=expr();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tstream_expr.add(t2.getTree());\n\t\t\t\t\t\t\tmatch(input, Token.UP, null); \n\t\t\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t\t\t_last = _save_last_1;\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\n\t\t\t\t\t\t \t checkEqualType((t1!=null?((AliaChecker.expr_return)t1).type:null), (t2!=null?((AliaChecker.expr_return)t2).type:null), (t1!=null?((CommonTree)t1.getTree()):null));\n\t\t\t\t\t\t \t retval.type = new _Bool();\n\t\t\t\t\t \tString typename = String.valueOf(retval.type);\n\t\t\t\t\t\t \t\n\t\t\t\t\t// AST REWRITE\n\t\t\t\t\t// elements: expr, expr, c\n\t\t\t\t\t// token labels: c\n\t\t\t\t\t// rule labels: retval\n\t\t\t\t\t// token list labels: \n\t\t\t\t\t// rule list labels: \n\t\t\t\t\t// wildcard labels: \n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\tRewriteRuleNodeStream stream_c=new RewriteRuleNodeStream(adaptor,\"token c\",c);\n\t\t\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\n\t\t\t\t\troot_0 = (CommonTree)adaptor.nil();\n\t\t\t\t\t// 83:6: -> ^( $c expr expr TYPE[typename] )\n\t\t\t\t\t{\n\t\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:83:9: ^( $c expr expr TYPE[typename] )\n\t\t\t\t\t\t{\n\t\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t\troot_1 = (CommonTree)adaptor.becomeRoot(stream_c.nextNode(), root_1);\n\t\t\t\t\t\tadaptor.addChild(root_1, stream_expr.nextTree());\n\t\t\t\t\t\tadaptor.addChild(root_1, stream_expr.nextTree());\n\t\t\t\t\t\tadaptor.addChild(root_1, (CommonTree)adaptor.create(TYPE, typename));\n\t\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\n\t\t\t\t\tretval.tree = root_0;\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4 :\n\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:84:9: ( ^(c= PLUS te1= expr te2= expr ) | ^(c= MINUS te1= expr te2= expr ) | ^(c= TIMES te1= expr te2= expr ) | ^(c= DIV te1= expr te2= expr ) | ^(c= MOD te1= expr te2= expr ) )\n\t\t\t\t\t{\n\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:84:9: ( ^(c= PLUS te1= expr te2= expr ) | ^(c= MINUS te1= expr te2= expr ) | ^(c= TIMES te1= expr te2= expr ) | ^(c= DIV te1= expr te2= expr ) | ^(c= MOD te1= expr te2= expr ) )\n\t\t\t\t\tint alt6=5;\n\t\t\t\t\tswitch ( input.LA(1) ) {\n\t\t\t\t\tcase PLUS:\n\t\t\t\t\t\t{\n\t\t\t\t\t\talt6=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase MINUS:\n\t\t\t\t\t\t{\n\t\t\t\t\t\talt6=2;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase TIMES:\n\t\t\t\t\t\t{\n\t\t\t\t\t\talt6=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase DIV:\n\t\t\t\t\t\t{\n\t\t\t\t\t\talt6=4;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase MOD:\n\t\t\t\t\t\t{\n\t\t\t\t\t\talt6=5;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\t\t\tnew NoViableAltException(\"\", 6, 0, input);\n\t\t\t\t\t\tthrow nvae;\n\t\t\t\t\t}\n\t\t\t\t\tswitch (alt6) {\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:84:10: ^(c= PLUS te1= expr te2= expr )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tCommonTree _save_last_1 = _last;\n\t\t\t\t\t\t\tCommonTree _first_1 = null;\n\t\t\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tc=(CommonTree)match(input,PLUS,FOLLOW_PLUS_in_expr606); \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\tstream_PLUS.add(c);\n\n\t\t\t\t\t\t\tmatch(input, Token.DOWN, null); \n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tpushFollow(FOLLOW_expr_in_expr610);\n\t\t\t\t\t\t\tte1=expr();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tstream_expr.add(te1.getTree());\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tpushFollow(FOLLOW_expr_in_expr614);\n\t\t\t\t\t\t\tte2=expr();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tstream_expr.add(te2.getTree());\n\t\t\t\t\t\t\tmatch(input, Token.UP, null); \n\t\t\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t\t\t_last = _save_last_1;\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2 :\n\t\t\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:85:9: ^(c= MINUS te1= expr te2= expr )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tCommonTree _save_last_1 = _last;\n\t\t\t\t\t\t\tCommonTree _first_1 = null;\n\t\t\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tc=(CommonTree)match(input,MINUS,FOLLOW_MINUS_in_expr628); \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\tstream_MINUS.add(c);\n\n\t\t\t\t\t\t\tmatch(input, Token.DOWN, null); \n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tpushFollow(FOLLOW_expr_in_expr632);\n\t\t\t\t\t\t\tte1=expr();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tstream_expr.add(te1.getTree());\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tpushFollow(FOLLOW_expr_in_expr636);\n\t\t\t\t\t\t\tte2=expr();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tstream_expr.add(te2.getTree());\n\t\t\t\t\t\t\tmatch(input, Token.UP, null); \n\t\t\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t\t\t_last = _save_last_1;\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3 :\n\t\t\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:86:9: ^(c= TIMES te1= expr te2= expr )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tCommonTree _save_last_1 = _last;\n\t\t\t\t\t\t\tCommonTree _first_1 = null;\n\t\t\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tc=(CommonTree)match(input,TIMES,FOLLOW_TIMES_in_expr650); \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\tstream_TIMES.add(c);\n\n\t\t\t\t\t\t\tmatch(input, Token.DOWN, null); \n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tpushFollow(FOLLOW_expr_in_expr654);\n\t\t\t\t\t\t\tte1=expr();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tstream_expr.add(te1.getTree());\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tpushFollow(FOLLOW_expr_in_expr658);\n\t\t\t\t\t\t\tte2=expr();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tstream_expr.add(te2.getTree());\n\t\t\t\t\t\t\tmatch(input, Token.UP, null); \n\t\t\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t\t\t_last = _save_last_1;\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 4 :\n\t\t\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:87:9: ^(c= DIV te1= expr te2= expr )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tCommonTree _save_last_1 = _last;\n\t\t\t\t\t\t\tCommonTree _first_1 = null;\n\t\t\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tc=(CommonTree)match(input,DIV,FOLLOW_DIV_in_expr672); \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\tstream_DIV.add(c);\n\n\t\t\t\t\t\t\tmatch(input, Token.DOWN, null); \n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tpushFollow(FOLLOW_expr_in_expr676);\n\t\t\t\t\t\t\tte1=expr();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tstream_expr.add(te1.getTree());\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tpushFollow(FOLLOW_expr_in_expr680);\n\t\t\t\t\t\t\tte2=expr();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tstream_expr.add(te2.getTree());\n\t\t\t\t\t\t\tmatch(input, Token.UP, null); \n\t\t\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t\t\t_last = _save_last_1;\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 5 :\n\t\t\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:88:9: ^(c= MOD te1= expr te2= expr )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tCommonTree _save_last_1 = _last;\n\t\t\t\t\t\t\tCommonTree _first_1 = null;\n\t\t\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tc=(CommonTree)match(input,MOD,FOLLOW_MOD_in_expr694); \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\tstream_MOD.add(c);\n\n\t\t\t\t\t\t\tmatch(input, Token.DOWN, null); \n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tpushFollow(FOLLOW_expr_in_expr698);\n\t\t\t\t\t\t\tte1=expr();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tstream_expr.add(te1.getTree());\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tpushFollow(FOLLOW_expr_in_expr702);\n\t\t\t\t\t\t\tte2=expr();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tstream_expr.add(te2.getTree());\n\t\t\t\t\t\t\tmatch(input, Token.UP, null); \n\t\t\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t\t\t_last = _save_last_1;\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\t \n\t\t\t\t\t\t \tcheckMathType((te1!=null?((AliaChecker.expr_return)te1).type:null), (te2!=null?((AliaChecker.expr_return)te2).type:null), (te1!=null?((CommonTree)te1.getTree()):null));\n\t\t\t\t\t\t \tretval.type = new _Int();\n\t\t\t\t\t \tString typename = String.valueOf(retval.type);\n\t\t\t\t\t\t \n\t\t\t\t\t// AST REWRITE\n\t\t\t\t\t// elements: c, expr, expr\n\t\t\t\t\t// token labels: c\n\t\t\t\t\t// rule labels: retval\n\t\t\t\t\t// token list labels: \n\t\t\t\t\t// rule list labels: \n\t\t\t\t\t// wildcard labels: \n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\tRewriteRuleNodeStream stream_c=new RewriteRuleNodeStream(adaptor,\"token c\",c);\n\t\t\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\n\t\t\t\t\troot_0 = (CommonTree)adaptor.nil();\n\t\t\t\t\t// 94:6: -> ^( $c expr expr TYPE[typename] )\n\t\t\t\t\t{\n\t\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:94:9: ^( $c expr expr TYPE[typename] )\n\t\t\t\t\t\t{\n\t\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t\troot_1 = (CommonTree)adaptor.becomeRoot(stream_c.nextNode(), root_1);\n\t\t\t\t\t\tadaptor.addChild(root_1, stream_expr.nextTree());\n\t\t\t\t\t\tadaptor.addChild(root_1, stream_expr.nextTree());\n\t\t\t\t\t\tadaptor.addChild(root_1, (CommonTree)adaptor.create(TYPE, typename));\n\t\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\n\t\t\t\t\tretval.tree = root_0;\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5 :\n\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:95:7: ^( PRINT te= exprlist )\n\t\t\t\t\t{\n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t{\n\t\t\t\t\tCommonTree _save_last_1 = _last;\n\t\t\t\t\tCommonTree _first_1 = null;\n\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\tPRINT5=(CommonTree)match(input,PRINT,FOLLOW_PRINT_in_expr739); \n\t\t\t\t\t \n\t\t\t\t\tstream_PRINT.add(PRINT5);\n\n\t\t\t\t\tmatch(input, Token.DOWN, null); \n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\tpushFollow(FOLLOW_exprlist_in_expr743);\n\t\t\t\t\tte=exprlist();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\tstream_exprlist.add(te.getTree());\n\t\t\t\t\tmatch(input, Token.UP, null); \n\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t_last = _save_last_1;\n\t\t\t\t\t}\n\n\n\n\t\t\t\t\t \t\tretval.type = (te!=null?((AliaChecker.exprlist_return)te).type:null);\n\t\t\t\t\t \tString typename = String.valueOf(retval.type);\n\t\t\t\t\t \n\t\t\t\t\t// AST REWRITE\n\t\t\t\t\t// elements: exprlist, PRINT\n\t\t\t\t\t// token labels: \n\t\t\t\t\t// rule labels: retval\n\t\t\t\t\t// token list labels: \n\t\t\t\t\t// rule list labels: \n\t\t\t\t\t// wildcard labels: \n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\n\t\t\t\t\troot_0 = (CommonTree)adaptor.nil();\n\t\t\t\t\t// 100:6: -> ^( PRINT TYPE[typename] exprlist )\n\t\t\t\t\t{\n\t\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:100:9: ^( PRINT TYPE[typename] exprlist )\n\t\t\t\t\t\t{\n\t\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t\troot_1 = (CommonTree)adaptor.becomeRoot(\n\t\t\t\t\t\tstream_PRINT.nextNode()\n\t\t\t\t\t\t, root_1);\n\t\t\t\t\t\tadaptor.addChild(root_1, (CommonTree)adaptor.create(TYPE, typename));\n\t\t\t\t\t\tadaptor.addChild(root_1, stream_exprlist.nextTree());\n\t\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\n\t\t\t\t\tretval.tree = root_0;\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6 :\n\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:101:7: ^( READ tv= varlist )\n\t\t\t\t\t{\n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t{\n\t\t\t\t\tCommonTree _save_last_1 = _last;\n\t\t\t\t\tCommonTree _first_1 = null;\n\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\tREAD6=(CommonTree)match(input,READ,FOLLOW_READ_in_expr776); \n\t\t\t\t\t \n\t\t\t\t\tstream_READ.add(READ6);\n\n\t\t\t\t\tmatch(input, Token.DOWN, null); \n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\tpushFollow(FOLLOW_varlist_in_expr780);\n\t\t\t\t\ttv=varlist();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\tstream_varlist.add(tv.getTree());\n\t\t\t\t\tmatch(input, Token.UP, null); \n\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t_last = _save_last_1;\n\t\t\t\t\t}\n\n\n\n\t\t\t\t\t \t\tretval.type = (tv!=null?((AliaChecker.varlist_return)tv).type:null);\n\t\t\t\t\t \tString typename = String.valueOf(retval.type);\n\t\t\t\t\t \n\t\t\t\t\t// AST REWRITE\n\t\t\t\t\t// elements: varlist, READ\n\t\t\t\t\t// token labels: \n\t\t\t\t\t// rule labels: retval\n\t\t\t\t\t// token list labels: \n\t\t\t\t\t// rule list labels: \n\t\t\t\t\t// wildcard labels: \n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\n\t\t\t\t\troot_0 = (CommonTree)adaptor.nil();\n\t\t\t\t\t// 106:6: -> ^( READ TYPE[typename] varlist )\n\t\t\t\t\t{\n\t\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:106:9: ^( READ TYPE[typename] varlist )\n\t\t\t\t\t\t{\n\t\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t\troot_1 = (CommonTree)adaptor.becomeRoot(\n\t\t\t\t\t\tstream_READ.nextNode()\n\t\t\t\t\t\t, root_1);\n\t\t\t\t\t\tadaptor.addChild(root_1, (CommonTree)adaptor.create(TYPE, typename));\n\t\t\t\t\t\tadaptor.addChild(root_1, stream_varlist.nextTree());\n\t\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\n\t\t\t\t\tretval.tree = root_0;\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 7 :\n\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:107:4: ^(c= ( NOT ) to= operand )\n\t\t\t\t\t{\n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t{\n\t\t\t\t\tCommonTree _save_last_1 = _last;\n\t\t\t\t\tCommonTree _first_1 = null;\n\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:107:8: ( NOT )\n\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:107:9: NOT\n\t\t\t\t\t{\n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\tc=(CommonTree)match(input,NOT,FOLLOW_NOT_in_expr813); \n\t\t\t\t\t \n\t\t\t\t\tstream_NOT.add(c);\n\n\t\t\t\t\t}\n\n\t\t\t\t\tmatch(input, Token.DOWN, null); \n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\tpushFollow(FOLLOW_operand_in_expr818);\n\t\t\t\t\tto=operand();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\tstream_operand.add(to.getTree());\n\t\t\t\t\tmatch(input, Token.UP, null); \n\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t_last = _save_last_1;\n\t\t\t\t\t}\n\n\n\n\t\t\t\t\t \t\t retval.type = (to!=null?((AliaChecker.operand_return)to).type:null);\n\t\t\t\t\t \tString typename = String.valueOf(retval.type);\n\t\t\t\t\t \tcheckBoolType((to!=null?((AliaChecker.operand_return)to).type:null), (to!=null?((CommonTree)to.getTree()):null));\n\t\t\t\t\t \n\t\t\t\t\t// AST REWRITE\n\t\t\t\t\t// elements: c, operand\n\t\t\t\t\t// token labels: c\n\t\t\t\t\t// rule labels: retval\n\t\t\t\t\t// token list labels: \n\t\t\t\t\t// rule list labels: \n\t\t\t\t\t// wildcard labels: \n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\tRewriteRuleNodeStream stream_c=new RewriteRuleNodeStream(adaptor,\"token c\",c);\n\t\t\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\n\t\t\t\t\troot_0 = (CommonTree)adaptor.nil();\n\t\t\t\t\t// 113:6: -> ^( $c operand TYPE[typename] )\n\t\t\t\t\t{\n\t\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:113:9: ^( $c operand TYPE[typename] )\n\t\t\t\t\t\t{\n\t\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t\troot_1 = (CommonTree)adaptor.becomeRoot(stream_c.nextNode(), root_1);\n\t\t\t\t\t\tadaptor.addChild(root_1, stream_operand.nextTree());\n\t\t\t\t\t\tadaptor.addChild(root_1, (CommonTree)adaptor.create(TYPE, typename));\n\t\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\n\t\t\t\t\tretval.tree = root_0;\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 8 :\n\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:114:6: ^(c= ( PLUS_OP | MINUS_OP ) o= operand )\n\t\t\t\t\t{\n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t{\n\t\t\t\t\tCommonTree _save_last_1 = _last;\n\t\t\t\t\tCommonTree _first_1 = null;\n\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:114:10: ( PLUS_OP | MINUS_OP )\n\t\t\t\t\tint alt7=2;\n\t\t\t\t\tint LA7_0 = input.LA(1);\n\t\t\t\t\tif ( (LA7_0==PLUS_OP) ) {\n\t\t\t\t\t\talt7=1;\n\t\t\t\t\t}\n\t\t\t\t\telse if ( (LA7_0==MINUS_OP) ) {\n\t\t\t\t\t\talt7=2;\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n\t\t\t\t\t\tNoViableAltException nvae =\n\t\t\t\t\t\t\tnew NoViableAltException(\"\", 7, 0, input);\n\t\t\t\t\t\tthrow nvae;\n\t\t\t\t\t}\n\n\t\t\t\t\tswitch (alt7) {\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:114:12: PLUS_OP\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tc=(CommonTree)match(input,PLUS_OP,FOLLOW_PLUS_OP_in_expr855); \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\tstream_PLUS_OP.add(c);\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2 :\n\t\t\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:114:22: MINUS_OP\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tc=(CommonTree)match(input,MINUS_OP,FOLLOW_MINUS_OP_in_expr859); \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\tstream_MINUS_OP.add(c);\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tmatch(input, Token.DOWN, null); \n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\tpushFollow(FOLLOW_operand_in_expr865);\n\t\t\t\t\to=operand();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\tstream_operand.add(o.getTree());\n\t\t\t\t\tmatch(input, Token.UP, null); \n\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t_last = _save_last_1;\n\t\t\t\t\t}\n\n\n\n\t\t\t\t\t\t retval.type = (o!=null?((AliaChecker.operand_return)o).type:null);\n\t\t\t\t\t String typename = String.valueOf(retval.type);\n\t\t\t\t\t checkEqualType((o!=null?((AliaChecker.operand_return)o).type:null), new _Int(), (o!=null?((CommonTree)o.getTree()):null));\n\t\t\t\t\t\t \n\t\t\t\t\t// AST REWRITE\n\t\t\t\t\t// elements: operand, c\n\t\t\t\t\t// token labels: c\n\t\t\t\t\t// rule labels: retval\n\t\t\t\t\t// token list labels: \n\t\t\t\t\t// rule list labels: \n\t\t\t\t\t// wildcard labels: \n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\tRewriteRuleNodeStream stream_c=new RewriteRuleNodeStream(adaptor,\"token c\",c);\n\t\t\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\n\t\t\t\t\troot_0 = (CommonTree)adaptor.nil();\n\t\t\t\t\t// 120:6: -> ^( $c operand TYPE[typename] )\n\t\t\t\t\t{\n\t\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:120:9: ^( $c operand TYPE[typename] )\n\t\t\t\t\t\t{\n\t\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t\troot_1 = (CommonTree)adaptor.becomeRoot(stream_c.nextNode(), root_1);\n\t\t\t\t\t\tadaptor.addChild(root_1, stream_operand.nextTree());\n\t\t\t\t\t\tadaptor.addChild(root_1, (CommonTree)adaptor.create(TYPE, typename));\n\t\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\n\t\t\t\t\tretval.tree = root_0;\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 9 :\n\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:121:9: ^( IF t= statements ^( DO ts= statements ) (texp= else_stmnt )? )\n\t\t\t\t\t{\n\t\t\t\t\troot_0 = (CommonTree)adaptor.nil();\n\n\n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t{\n\t\t\t\t\tCommonTree _save_last_1 = _last;\n\t\t\t\t\tCommonTree _first_1 = null;\n\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\tIF7=(CommonTree)match(input,IF,FOLLOW_IF_in_expr901); \n\t\t\t\t\tIF7_tree = (CommonTree)adaptor.dupNode(IF7);\n\n\n\t\t\t\t\troot_1 = (CommonTree)adaptor.becomeRoot(IF7_tree, root_1);\n\n\n\t\t\t\t\t \t\t\t\tsymTab.openScope(); // Open scope for conditional statements, the scope is the same for the IF and ELSEIF conditions\n\t\t\t\t\t \t\t\t\n\t\t\t\t\tif ( input.LA(1)==Token.DOWN ) {\n\t\t\t\t\t\tmatch(input, Token.DOWN, null); \n\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\tpushFollow(FOLLOW_statements_in_expr919);\n\t\t\t\t\t\tt=statements();\n\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\tadaptor.addChild(root_1, t.getTree());\n\n\n\t\t\t\t\t\t \t\t\t\tsymTab.openScope(); // Open scope for the first statement\n\t\t\t\t\t\t \t\t\t\n\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t{\n\t\t\t\t\t\tCommonTree _save_last_2 = _last;\n\t\t\t\t\t\tCommonTree _first_2 = null;\n\t\t\t\t\t\tCommonTree root_2 = (CommonTree)adaptor.nil();\n\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\tDO8=(CommonTree)match(input,DO,FOLLOW_DO_in_expr936); \n\t\t\t\t\t\tDO8_tree = (CommonTree)adaptor.dupNode(DO8);\n\n\n\t\t\t\t\t\troot_2 = (CommonTree)adaptor.becomeRoot(DO8_tree, root_2);\n\n\t\t\t\t\t\tif ( input.LA(1)==Token.DOWN ) {\n\t\t\t\t\t\t\tmatch(input, Token.DOWN, null); \n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tpushFollow(FOLLOW_statements_in_expr946);\n\t\t\t\t\t\t\tts=statements();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tadaptor.addChild(root_2, ts.getTree());\n\n\n\t\t\t\t\t\t\t\t \t\t\tcheckBoolType((t!=null?((AliaChecker.statements_return)t).type:null), (ts!=null?((CommonTree)ts.getTree()):null));\n\t\t\t\t\t\t\t\t \t\t\tsymTab.closeScope(); // Close scope for the first statement\n\t\t\t\t\t\t\t\t \t\t\n\t\t\t\t\t\t\tmatch(input, Token.UP, null); \n\t\t\t\t\t\t}\n\t\t\t\t\t\tadaptor.addChild(root_1, root_2);\n\t\t\t\t\t\t_last = _save_last_2;\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:136:11: (texp= else_stmnt )?\n\t\t\t\t\t\tint alt8=2;\n\t\t\t\t\t\tint LA8_0 = input.LA(1);\n\t\t\t\t\t\tif ( ((LA8_0 >= ELSE && LA8_0 <= ELSEIF)) ) {\n\t\t\t\t\t\t\talt8=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tswitch (alt8) {\n\t\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:136:11: texp= else_stmnt\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\t\tpushFollow(FOLLOW_else_stmnt_in_expr972);\n\t\t\t\t\t\t\t\ttexp=else_stmnt();\n\t\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\t\tadaptor.addChild(root_1, texp.getTree());\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t \t\t\t\tsymTab.closeScope(); // Close scope for the conditional statements\n\t\t\t\t\t\t\t \t\t\tcheckBoolType((t!=null?((AliaChecker.statements_return)t).type:null), (t!=null?((CommonTree)t.getTree()):null));\n\t\t\t\t\t\t\t \t\t\tretval.type = checkTypesIf((ts!=null?((AliaChecker.statements_return)ts).type:null),(texp!=null?((AliaChecker.else_stmnt_return)texp).type:null));\n\t\t\t\t\t\t \t\t\t\n\t\t\t\t\t\tmatch(input, Token.UP, null); \n\t\t\t\t\t}\n\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t_last = _save_last_1;\n\t\t\t\t\t}\n\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 10 :\n\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:143:9: ^( COLON ^( BECOMES id= IDENTIFIER t1= expr ) typ= type )\n\t\t\t\t\t{\n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t{\n\t\t\t\t\tCommonTree _save_last_1 = _last;\n\t\t\t\t\tCommonTree _first_1 = null;\n\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\tCOLON9=(CommonTree)match(input,COLON,FOLLOW_COLON_in_expr999); \n\t\t\t\t\t \n\t\t\t\t\tstream_COLON.add(COLON9);\n\n\t\t\t\t\tmatch(input, Token.DOWN, null); \n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t{\n\t\t\t\t\tCommonTree _save_last_2 = _last;\n\t\t\t\t\tCommonTree _first_2 = null;\n\t\t\t\t\tCommonTree root_2 = (CommonTree)adaptor.nil();\n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\tBECOMES10=(CommonTree)match(input,BECOMES,FOLLOW_BECOMES_in_expr1002); \n\t\t\t\t\t \n\t\t\t\t\tstream_BECOMES.add(BECOMES10);\n\n\t\t\t\t\tmatch(input, Token.DOWN, null); \n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\tid=(CommonTree)match(input,IDENTIFIER,FOLLOW_IDENTIFIER_in_expr1006); \n\t\t\t\t\t \n\t\t\t\t\tstream_IDENTIFIER.add(id);\n\n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\tpushFollow(FOLLOW_expr_in_expr1010);\n\t\t\t\t\tt1=expr();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\tstream_expr.add(t1.getTree());\n\t\t\t\t\tmatch(input, Token.UP, null); \n\t\t\t\t\tadaptor.addChild(root_1, root_2);\n\t\t\t\t\t_last = _save_last_2;\n\t\t\t\t\t}\n\n\n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\tpushFollow(FOLLOW_type_in_expr1015);\n\t\t\t\t\ttyp=type();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\tstream_type.add(typ.getTree());\n\t\t\t\t\tmatch(input, Token.UP, null); \n\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t_last = _save_last_1;\n\t\t\t\t\t}\n\n\n\t\t\t\t\t \n\t\t\t\t\t \t_Type declType = checkEqualType((t1!=null?((AliaChecker.expr_return)t1).type:null), (typ!=null?((AliaChecker.type_return)typ).type:null), (t1!=null?((CommonTree)t1.getTree()):null));\n\t\t\t\t\t \tdeclare((id!=null?id.getText():null), declType, (t1!=null?((CommonTree)t1.getTree()):null));\n\t\t\t\t\t \t\tretval.type = declType;\n\t\t\t\t\t \t\t\n\t\t\t\t\t \tString typename = String.valueOf(retval.type);\n\t\t\t\t\t \tString identifier = String.valueOf(getIdentifier((id!=null?id.getText():null), id_tree));\n\t\t\t\t\t \n\t\t\t\t\t// AST REWRITE\n\t\t\t\t\t// elements: expr, BECOMES, IDENTIFIER\n\t\t\t\t\t// token labels: \n\t\t\t\t\t// rule labels: retval\n\t\t\t\t\t// token list labels: \n\t\t\t\t\t// rule list labels: \n\t\t\t\t\t// wildcard labels: \n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\n\t\t\t\t\troot_0 = (CommonTree)adaptor.nil();\n\t\t\t\t\t// 152:9: -> ^( BECOMES ^( IDENTIFIER TYPE[typename] ID[identifier] ) expr )\n\t\t\t\t\t{\n\t\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:152:12: ^( BECOMES ^( IDENTIFIER TYPE[typename] ID[identifier] ) expr )\n\t\t\t\t\t\t{\n\t\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t\troot_1 = (CommonTree)adaptor.becomeRoot(\n\t\t\t\t\t\tstream_BECOMES.nextNode()\n\t\t\t\t\t\t, root_1);\n\t\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:152:22: ^( IDENTIFIER TYPE[typename] ID[identifier] )\n\t\t\t\t\t\t{\n\t\t\t\t\t\tCommonTree root_2 = (CommonTree)adaptor.nil();\n\t\t\t\t\t\troot_2 = (CommonTree)adaptor.becomeRoot(\n\t\t\t\t\t\tstream_IDENTIFIER.nextNode()\n\t\t\t\t\t\t, root_2);\n\t\t\t\t\t\tadaptor.addChild(root_2, (CommonTree)adaptor.create(TYPE, typename));\n\t\t\t\t\t\tadaptor.addChild(root_2, (CommonTree)adaptor.create(ID, identifier));\n\t\t\t\t\t\tadaptor.addChild(root_1, root_2);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tadaptor.addChild(root_1, stream_expr.nextTree());\n\t\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\n\t\t\t\t\tretval.tree = root_0;\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 11 :\n\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:153:9: ^( BECOMES id= IDENTIFIER t1= expr )\n\t\t\t\t\t{\n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t{\n\t\t\t\t\tCommonTree _save_last_1 = _last;\n\t\t\t\t\tCommonTree _first_1 = null;\n\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\tBECOMES11=(CommonTree)match(input,BECOMES,FOLLOW_BECOMES_in_expr1063); \n\t\t\t\t\t \n\t\t\t\t\tstream_BECOMES.add(BECOMES11);\n\n\t\t\t\t\tmatch(input, Token.DOWN, null); \n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\tid=(CommonTree)match(input,IDENTIFIER,FOLLOW_IDENTIFIER_in_expr1067); \n\t\t\t\t\t \n\t\t\t\t\tstream_IDENTIFIER.add(id);\n\n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\tpushFollow(FOLLOW_expr_in_expr1071);\n\t\t\t\t\tt1=expr();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\tstream_expr.add(t1.getTree());\n\t\t\t\t\tmatch(input, Token.UP, null); \n\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t_last = _save_last_1;\n\t\t\t\t\t}\n\n\n\t\t\t\t\t \n\t\t\t\t\t \tdeclare((id!=null?id.getText():null), (t1!=null?((AliaChecker.expr_return)t1).type:null), (t1!=null?((CommonTree)t1.getTree()):null));\n\t\t\t\t\t \t\tretval.type = (t1!=null?((AliaChecker.expr_return)t1).type:null);\n\t\t\t\t\t \t\tcheckNotVoid(retval.type, (t1!=null?((CommonTree)t1.getTree()):null));\n\t\t\t\t\t \t\t\n\t\t\t\t\t \tString typename = String.valueOf(retval.type);\n\t\t\t\t\t \tString identifier = String.valueOf(getIdentifier((id!=null?id.getText():null), id_tree));\n\t\t\t\t\t \n\t\t\t\t\t// AST REWRITE\n\t\t\t\t\t// elements: BECOMES, expr, IDENTIFIER\n\t\t\t\t\t// token labels: \n\t\t\t\t\t// rule labels: retval\n\t\t\t\t\t// token list labels: \n\t\t\t\t\t// rule list labels: \n\t\t\t\t\t// wildcard labels: \n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\n\t\t\t\t\troot_0 = (CommonTree)adaptor.nil();\n\t\t\t\t\t// 162:6: -> ^( BECOMES ^( IDENTIFIER TYPE[typename] ID[identifier] ) expr )\n\t\t\t\t\t{\n\t\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:162:9: ^( BECOMES ^( IDENTIFIER TYPE[typename] ID[identifier] ) expr )\n\t\t\t\t\t\t{\n\t\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t\troot_1 = (CommonTree)adaptor.becomeRoot(\n\t\t\t\t\t\tstream_BECOMES.nextNode()\n\t\t\t\t\t\t, root_1);\n\t\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:162:19: ^( IDENTIFIER TYPE[typename] ID[identifier] )\n\t\t\t\t\t\t{\n\t\t\t\t\t\tCommonTree root_2 = (CommonTree)adaptor.nil();\n\t\t\t\t\t\troot_2 = (CommonTree)adaptor.becomeRoot(\n\t\t\t\t\t\tstream_IDENTIFIER.nextNode()\n\t\t\t\t\t\t, root_2);\n\t\t\t\t\t\tadaptor.addChild(root_2, (CommonTree)adaptor.create(TYPE, typename));\n\t\t\t\t\t\tadaptor.addChild(root_2, (CommonTree)adaptor.create(ID, identifier));\n\t\t\t\t\t\tadaptor.addChild(root_1, root_2);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tadaptor.addChild(root_1, stream_expr.nextTree());\n\t\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\n\t\t\t\t\tretval.tree = root_0;\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 12 :\n\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:163:9: ^( COMPOUND t= statements )\n\t\t\t\t\t{\n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t{\n\t\t\t\t\tCommonTree _save_last_1 = _last;\n\t\t\t\t\tCommonTree _first_1 = null;\n\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\tCOMPOUND12=(CommonTree)match(input,COMPOUND,FOLLOW_COMPOUND_in_expr1116); \n\t\t\t\t\t \n\t\t\t\t\tstream_COMPOUND.add(COMPOUND12);\n\n\t\t\t\t\t // symTab.openScope\n\t\t\t\t\t \t\t\tsymTab.openScope();\n\t\t\t\t\t \t\t\n\t\t\t\t\tif ( input.LA(1)==Token.DOWN ) {\n\t\t\t\t\t\tmatch(input, Token.DOWN, null); \n\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\tpushFollow(FOLLOW_statements_in_expr1132);\n\t\t\t\t\t\tt=statements();\n\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\tstream_statements.add(t.getTree());\n\t\t\t\t\t\tmatch(input, Token.UP, null); \n\t\t\t\t\t}\n\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t_last = _save_last_1;\n\t\t\t\t\t}\n\n\n\n\t\t\t\t\t \t// closeScope\n\t\t\t\t\t \tsymTab.closeScope();\n\t\t\t\t\t \t\tretval.type = (t!=null?((AliaChecker.statements_return)t).type:null);\n\t\t\t\t\t \tString typename = String.valueOf(retval.type);\n\t\t\t\t\t \n\t\t\t\t\t// AST REWRITE\n\t\t\t\t\t// elements: COMPOUND, statements\n\t\t\t\t\t// token labels: \n\t\t\t\t\t// rule labels: retval\n\t\t\t\t\t// token list labels: \n\t\t\t\t\t// rule list labels: \n\t\t\t\t\t// wildcard labels: \n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\n\t\t\t\t\troot_0 = (CommonTree)adaptor.nil();\n\t\t\t\t\t// 174:6: -> ^( COMPOUND TYPE[typename] statements )\n\t\t\t\t\t{\n\t\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:174:9: ^( COMPOUND TYPE[typename] statements )\n\t\t\t\t\t\t{\n\t\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t\troot_1 = (CommonTree)adaptor.becomeRoot(\n\t\t\t\t\t\tstream_COMPOUND.nextNode()\n\t\t\t\t\t\t, root_1);\n\t\t\t\t\t\tadaptor.addChild(root_1, (CommonTree)adaptor.create(TYPE, typename));\n\t\t\t\t\t\tadaptor.addChild(root_1, stream_statements.nextTree());\n\t\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\n\t\t\t\t\tretval.tree = root_0;\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 13 :\n\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:175:9: ^( CONST id= IDENTIFIER BECOMES prim= primitive ( COLON typ= type )? )\n\t\t\t\t\t{\n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t{\n\t\t\t\t\tCommonTree _save_last_1 = _last;\n\t\t\t\t\tCommonTree _first_1 = null;\n\t\t\t\t\tCommonTree root_1 = (CommonTree)adaptor.nil();\n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\tCONST13=(CommonTree)match(input,CONST,FOLLOW_CONST_in_expr1170); \n\t\t\t\t\t \n\t\t\t\t\tstream_CONST.add(CONST13);\n\n\t\t\t\t\tmatch(input, Token.DOWN, null); \n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\tid=(CommonTree)match(input,IDENTIFIER,FOLLOW_IDENTIFIER_in_expr1174); \n\t\t\t\t\t \n\t\t\t\t\tstream_IDENTIFIER.add(id);\n\n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\tBECOMES14=(CommonTree)match(input,BECOMES,FOLLOW_BECOMES_in_expr1176); \n\t\t\t\t\t \n\t\t\t\t\tstream_BECOMES.add(BECOMES14);\n\n\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\tpushFollow(FOLLOW_primitive_in_expr1180);\n\t\t\t\t\tprim=primitive();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\tstream_primitive.add(prim.getTree());\n\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:175:54: ( COLON typ= type )?\n\t\t\t\t\tint alt9=2;\n\t\t\t\t\tint LA9_0 = input.LA(1);\n\t\t\t\t\tif ( (LA9_0==COLON) ) {\n\t\t\t\t\t\talt9=1;\n\t\t\t\t\t}\n\t\t\t\t\tswitch (alt9) {\n\t\t\t\t\t\tcase 1 :\n\t\t\t\t\t\t\t// src\\\\alia\\\\AliaChecker.g:175:55: COLON typ= type\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tCOLON15=(CommonTree)match(input,COLON,FOLLOW_COLON_in_expr1183); \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\tstream_COLON.add(COLON15);\n\n\t\t\t\t\t\t\t_last = (CommonTree)input.LT(1);\n\t\t\t\t\t\t\tpushFollow(FOLLOW_type_in_expr1187);\n\t\t\t\t\t\t\ttyp=type();\n\t\t\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\t\t\tstream_type.add(typ.getTree());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tmatch(input, Token.UP, null); \n\t\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t\t_last = _save_last_1;\n\t\t\t\t\t}\n\n\n\t\t\t\t\t _Type declType = checkEqualType((prim!=null?((AliaChecker.primitive_return)prim).type:null), (typ!=null?((AliaChecker.type_return)typ).type:null), (prim!=null?((CommonTree)prim.getTree()):null));\n\t\t\t\t\t declareConst((id!=null?id.getText():null), declType, prim, (prim!=null?((CommonTree)prim.getTree()):null));\n\t\t\t\t\t retval.type = declType;\n\t\t\t\t\t String typename = String.valueOf(retval.type);\n\t\t\t\t\t String identifier = String.valueOf(getIdentifier((id!=null?id.getText():null), (prim!=null?((CommonTree)prim.getTree()):null)));\n\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\t\t// AST REWRITE\n\t\t\t\t\t// elements: \n\t\t\t\t\t// token labels: \n\t\t\t\t\t// rule labels: retval\n\t\t\t\t\t// token list labels: \n\t\t\t\t\t// rule list labels: \n\t\t\t\t\t// wildcard labels: \n\t\t\t\t\tretval.tree = root_0;\n\t\t\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\n\t\t\t\t\troot_0 = (CommonTree)adaptor.nil();\n\t\t\t\t\t// 183:7: ->\n\t\t\t\t\t{\n\t\t\t\t\t\troot_0 = null;\n\t\t\t\t\t}\n\n\n\t\t\t\t\tretval.tree = root_0;\n\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\t\t\tretval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n\n\t\t}\n\t\t \n\t\t catch (RecognitionException e) { \n\t\t \tif(!e.getMessage().equals(\"\")) {\n\t\t\t\t\tSystem.err.println(\"Exception!:\"+e.getMessage());\n\t\t\t\t}\n\t\t\t\tthrow (new AliaException(\"\"));\n\t\t } \n\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t\treturn retval;\n\t}",
"Expression compileTemplate(Expression exp){\r\n\t\tif (exp.isVariable()){\r\n\t\t\texp = compile(exp.getVariable());\r\n\t\t}\r\n\t\telse if (isMeta(exp)){\r\n\t\t\t// variables of meta functions are compiled as kg:pprint()\r\n\t\t\t// variable of xsd:string() is not\r\n\t\t\texp = compileTemplateMeta((Term) exp);\r\n\t\t}\r\n\t\treturn exp;\r\n\t}",
"String getExpression();",
"String getExpression();",
"public default Object expression() {\n\t\treturn info().values().iterator().next();\n\t}",
"public Stmt createEval(Expr expr) {\n return xnf.Eval(expr.position(), expr);\n }",
"XExpression getExpression();",
"Expression expression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = orExpression();\r\n\t\tif (isKind(OP_QUESTION)) {\r\n\t\t\tconsume();\r\n\t\t\tExpression e1 = expression();\r\n\t\t\tmatch(OP_COLON);\r\n\t\t\tExpression e2 = expression();\r\n\t\t\te0 = new ExpressionConditional(first, e0, e1, e2);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}",
"public interface Expression {\n public boolean interpret(String context);\n}",
"public static int expression()\r\n {\r\n //get the start state of this term\r\n int r,t1,f1;\r\n t1=r=term();\r\n\r\n //if there is no more input, we are done\r\n if(index>expression.length()-1)\r\n {\r\n return r;\r\n }\r\n\r\n //if this is concatenation\r\n if(expression.charAt(index)=='.'||isVocab(expression.charAt(index))||expression.charAt(index)=='\\\\'\r\n ||expression.charAt(index)=='['||expression.charAt(index)=='(')\r\n {\r\n //get the start state of this expression and\r\n //update next1 and next2\r\n int t2,cur;\r\n cur=state-1;\r\n t2=expression();\r\n if(stateList.get(cur).getNext1()==stateList.get(cur).getNext2())\r\n {\r\n stateList.get(cur).setNext1(t2);\r\n }\r\n stateList.get(cur).setNext2(t2);\r\n\r\n }\r\n\r\n //if there is no more input, we are done\r\n if(index>=expression.length())\r\n {\r\n return r;\r\n }\r\n\r\n //if this is alternation\r\n if(expression.charAt(index)=='|')\r\n {\r\n //if there is nothing after '|', it is a invalid expression\r\n index++;\r\n if(index>expression.length()-1)\r\n {\r\n error();\r\n }\r\n else\r\n {\r\n //create a branch state,set the nex1 of the branch state to the term\r\n //so a|b and a|b|c both work\r\n int t2;\r\n f1=state-1;\r\n\r\n state st=new state(state,\"BR\",t1,-1);\r\n stateList.add(st);\r\n r=state;\r\n state++;\r\n\r\n //get the start state of this expression\r\n t2=expression();\r\n\r\n //update the branch state's next2 to the start state of the expression\r\n stateList.get(f1+1).setNext2(t2);\r\n\r\n //update term's next1 and next2\r\n if(stateList.get(f1).getNext1()==stateList.get(f1).getNext2())\r\n {\r\n stateList.get(f1).setNext1(state);\r\n }\r\n stateList.get(f1).setNext2(state);\r\n\r\n }\r\n\r\n }\r\n\r\n\r\n return r;\r\n }",
"JavaExpression createJavaExpression();",
"public static String evaluate( String expr )\n {\n\n\tString[] arr = expr.split(\"//s+\");\n\tString ret = \"\";\n\tALStack<String> stack = new ALStack<String>();\n\tfor( String s: arr)\n\t stack.push(s);\n\n\tif( stack.peek().equals(\"(\")){\n\t stack.pop();\n\t int operator = findOp(stack.pop());\n\t ret = unload(operator, stack);\n\t return ret;\n\t}\n\treturn \"\";\n }",
"protected Evaluable parseExpression() throws ParsingException {\n Evaluable sub = parseSubExpression();\n\n while (_token != null &&\n _token.type == TokenType.Operator &&\n \">=<==!=\".indexOf(_token.text) >= 0) {\n\n String op = _token.text;\n\n next(true);\n\n Evaluable sub2 = parseSubExpression();\n\n sub = new OperatorCallExpr(new Evaluable[] { sub, sub2 }, op);\n }\n\n return sub;\n }",
"private Object eval(Fact expr) {\n if (expr.getBool() != null) {\n if (\"true\".equals(expr.getBool())) {\n return true;\n } else {\n return false;\n }\n } else if (expr.getString() != null) {\n return expr.getString();\n } else if (expr.getIdent() != null) {\n if (RESULT_TYPE_VARIABLE.equals(resultType)) {\n return expr.getIdent();\n }\n return scope.getVariable(expr.getIdent());\n } else if (expr.getExpr() != null) {\n return eval(expr.getExpr(), resultType);\n } else if (expr.getLocator() != null) {\n return evalLocator(expr.getLocator());\n } else {\n return expr.getNumber();\n }\n }",
"@Override\n public double evaluate() {\n setState(State.START);\n while (true) {\n switch(getState()) {\n case START:\n start();\n break;\n case NUMBER:\n number();\n break;\n case OPERATOR:\n operator();\n break;\n case LEFT_PAREN:\n leftParen();\n break;\n case RIGHT_PAREN:\n rightParen();\n break;\n case END:\n end();\n return (Double)getStack().pop();\n default:\n throw new Error(\"Something is wrong in ParenthesisCalculator.evaluate\");\n }\n }\n }",
"public void prog() {\r\n \t\r\n // First parse declarations\r\n decls();\r\n // Next parse expression\r\n ArrayList<Integer> values = new ArrayList<Integer>(); \r\n values = exprs(values);\r\n for(int i = 0; i < values.size(); i++) {\r\n \tSystem.out.print(values.get(i) + \" \");\r\n }\r\n System.out.println();\r\n \r\n \r\n //int value = expr();\r\n // Finally parse the end of file character\r\n match(TokenType.END_OF_FILE);\r\n //System.out.println(\"Value of expression is: \" + value);\r\n }",
"public Expression getExpression() {\r\n\t\treturn this.expression;\r\n\t}",
"public abstract Expression getInitialExpression();",
"public boolean evaluate();",
"public int eval() {\n\t\t\treturn eval(expression.root);\n\t\t}",
"public String toString() {\n return m_expression;\n }",
"public static Node executeExpressions(Node node, Environment env) {\n Node statement = node;\n Node nextStatement = statement.getCdr();\n\n\n while (!nextStatement.isNull()) {\n statement.getCar().eval(statement, env);\n statement = nextStatement;\n nextStatement = nextStatement.getCdr();\n }\n return statement.getCar().eval(statement, env);\n }",
"public T expr(final Expression expression) {\r\n\t\tif (expression.values() == null)\r\n\t\t\treturn expr(expression.expression());\r\n\t\treturn expr(expression.expression(), expression.values()\r\n\t\t\t\t.toArray());\r\n\t}",
"public Node expression()\r\n\t{\r\n\t\tNode lhs = term();\r\n\t\tif(lhs!=null)\r\n\t\t{\r\n\t\t\tint index = lexer.getPosition();\r\n\t\t\tLexer.Token token = lexer.getToken();\r\n\t\t\twhile(token == Lexer.Token.PLUS\r\n\t\t\t\t||token == Lexer.Token.MINUS)\r\n\t\t\t{\r\n\t\t\t\tNode rhs = term(); \r\n\t\t\t\tif(rhs!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(token == Lexer.Token.PLUS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlhs = new Add(lhs,rhs);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(token == Lexer.Token.MINUS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlhs = new Sub(lhs,rhs);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tindex = lexer.getPosition();\r\n\t\t\t\t\ttoken = lexer.getToken();\r\n\t\t\t\t}\r\n\t\t\t\telse break;\r\n\t\t\t}\r\n\t\t\tlexer.setPosition(index);\r\n\t\t}\r\n\t\treturn lhs;\r\n\t}",
"public void compile(Emitter e)\n {\n for (Expression exp: args)\n {\n exp.compile(e);\n e.emitPush(\"$v0\");\n }\n\n e.emit(\"jal proc\" + name);\n\n for (int i = 0; i < args.size(); i++)\n {\n e.emitPop(\"$t0\");\n }\n }",
"Expression() { }",
"Expression createExpression();",
"public String getExpression() {\n return _expression;\n }",
"CloseableIteration<BindingSet, QueryEvaluationException> evaluate(TupleExpr expr, BindingSet bindings) {\n BindingSetPipeIterator root = new BindingSetPipeIterator();\n evaluateTupleExpr(root.pipe, expr, bindings);\n return root;\n }",
"public interface Expression {\n public boolean interpret(String context);\n}",
"public interface Expression {\n public boolean interpret(String context);\n}",
"@SuppressWarnings(\"serial\")\r\n\tprotected Action getEvaluateAction() {\r\n\t\tif (this.evaluateAction != null)\r\n\t\t\treturn this.evaluateAction; // Already defined;\r\n\t\tAction action = new AbstractAction(\"Evaluate\") {\r\n\t\t\tpublic void actionPerformed(ActionEvent ev) {\r\n\t\t\t\tAttrInstanceMember member = getSelectedMember();\r\n\t\t\t\tif (member == null)\r\n\t\t\t\t\treturn;\r\n\t\t\t\tHandlerExpr expr = member.getExpr();\r\n\t\t\t\tif (expr == null)\r\n\t\t\t\t\treturn;\r\n\t\t\t\ttry {\r\n\t\t\t\t\texpr.evaluate(((AttrInstance) ExtendedTupleEditorSupport.this.tuple).getContext());\r\n\t\t\t\t\tmember.setExpr(expr);\r\n\t\t\t\t} catch (AttrHandlerException ex) {\r\n\t\t\t\t\tsetMessage(ex.getMessage());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\taction.putValue(Action.SHORT_DESCRIPTION, \"Evaluates the expression\");\r\n\t\taddMemberAction(action);\r\n\t\tthis.evaluateAction = action;\r\n\t\treturn action;\r\n\t}",
"public interface Evaluator\n{\n /**\n * Return true if the given object is valid as an expression to\n * the evaluator. If an object is a valid expression, then the\n * evaluator is, in general, able to <code>eval()</code> it into\n * a result (or at least reasonably attempt to do so).\n *\n * @param value the value to check\n * @return true if it is valid as an expression, false if not\n */\n public boolean isExpression (Object value);\n\n /**\n * Return true if the given object is a possible result of evaluation.\n * If this returns true, then it is conceivable that the given object\n * was the result of a call to <code>eval()</code> on this evaluator.\n *\n * @param value the value to check\n * @return true if it is a possible result, false if not\n */\n public boolean isResult (Object value);\n\n /**\n * Evaluate the given value as an expression, yielding some result\n * value.\n *\n * @param expression the thing to evaluate\n * @return the result of evaluation\n */\n public Object eval (Object expression);\n}",
"protected E eval()\n\t\t{\n\t\tE e=this.e;\n\t\tthis.e=null;\n\t\treturn e;\n\t\t}",
"@Override\n public boolean visit(CssEval x, Context ctx) {\n out.printOpt(\"/* CssEval */\");\n out.newlineOpt();\n return false;\n }",
"int parseExpression() {\r\n\t\t\t\tint x = parseTerm();\r\n\t\t\t\tfor (;;) {\r\n\t\t\t\t\tif (eat('+'))\r\n\t\t\t\t\t\tx += parseTerm(); // addition\r\n\t\t\t\t\telse if (eat('-'))\r\n\t\t\t\t\t\tx -= parseTerm(); // subtraction\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\treturn x;\r\n\t\t\t\t}\r\n\t\t\t}",
"public final PythonParser.exec_stmt_return exec_stmt() throws RecognitionException {\n PythonParser.exec_stmt_return retval = new PythonParser.exec_stmt_return();\n retval.start = input.LT(1);\n\n PythonTree root_0 = null;\n\n Token EXEC123=null;\n Token IN125=null;\n Token COMMA126=null;\n PythonParser.test_return t1 = null;\n\n PythonParser.test_return t2 = null;\n\n PythonParser.expr_return expr124 = null;\n\n\n PythonTree EXEC123_tree=null;\n PythonTree IN125_tree=null;\n PythonTree COMMA126_tree=null;\n\n\n stmt stype = null;\n\n try {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:862:5: ( EXEC expr[expr_contextType.Load] ( IN t1= test[expr_contextType.Load] ( COMMA t2= test[expr_contextType.Load] )? )? )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:862:7: EXEC expr[expr_contextType.Load] ( IN t1= test[expr_contextType.Load] ( COMMA t2= test[expr_contextType.Load] )? )?\n {\n root_0 = (PythonTree)adaptor.nil();\n\n EXEC123=(Token)match(input,EXEC,FOLLOW_EXEC_in_exec_stmt3319); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n EXEC123_tree = (PythonTree)adaptor.create(EXEC123);\n adaptor.addChild(root_0, EXEC123_tree);\n }\n pushFollow(FOLLOW_expr_in_exec_stmt3321);\n expr124=expr(expr_contextType.Load);\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, expr124.getTree());\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:862:40: ( IN t1= test[expr_contextType.Load] ( COMMA t2= test[expr_contextType.Load] )? )?\n int alt61=2;\n int LA61_0 = input.LA(1);\n\n if ( (LA61_0==IN) ) {\n alt61=1;\n }\n switch (alt61) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:862:41: IN t1= test[expr_contextType.Load] ( COMMA t2= test[expr_contextType.Load] )?\n {\n IN125=(Token)match(input,IN,FOLLOW_IN_in_exec_stmt3325); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n IN125_tree = (PythonTree)adaptor.create(IN125);\n adaptor.addChild(root_0, IN125_tree);\n }\n pushFollow(FOLLOW_test_in_exec_stmt3329);\n t1=test(expr_contextType.Load);\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, t1.getTree());\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:862:75: ( COMMA t2= test[expr_contextType.Load] )?\n int alt60=2;\n int LA60_0 = input.LA(1);\n\n if ( (LA60_0==COMMA) ) {\n alt60=1;\n }\n switch (alt60) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:862:76: COMMA t2= test[expr_contextType.Load]\n {\n COMMA126=(Token)match(input,COMMA,FOLLOW_COMMA_in_exec_stmt3333); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n COMMA126_tree = (PythonTree)adaptor.create(COMMA126);\n adaptor.addChild(root_0, COMMA126_tree);\n }\n pushFollow(FOLLOW_test_in_exec_stmt3337);\n t2=test(expr_contextType.Load);\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, t2.getTree());\n\n }\n break;\n\n }\n\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n\n stype = new Exec(EXEC123, actions.castExpr((expr124!=null?((PythonTree)expr124.tree):null)), actions.castExpr((t1!=null?((PythonTree)t1.tree):null)), actions.castExpr((t2!=null?((PythonTree)t2.tree):null)));\n \n }\n\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (PythonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n if ( state.backtracking==0 ) {\n\n retval.tree = stype;\n\n }\n }\n\n catch (RecognitionException re) {\n errorHandler.reportError(this, re);\n errorHandler.recover(this, input,re);\n retval.tree = (PythonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n }\n finally {\n }\n return retval;\n }",
"public final ManchesterOWLSyntaxAutoComplete.expression_return expression() {\n ManchesterOWLSyntaxAutoComplete.expression_return retval = new ManchesterOWLSyntaxAutoComplete.expression_return();\n retval.start = input.LT(1);\n ManchesterOWLSyntaxAutoComplete.conjunction_return c = null;\n ManchesterOWLSyntaxAutoComplete.expression_return chainItem = null;\n ManchesterOWLSyntaxAutoComplete.conjunction_return conj = null;\n ManchesterOWLSyntaxAutoComplete.complexPropertyExpression_return cpe = null;\n try {\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:106:2:\n // ( ^( DISJUNCTION (c= conjunction )+ ) | ^( PROPERTY_CHAIN\n // (chainItem= expression )+ ) | conj= conjunction | cpe=\n // complexPropertyExpression )\n int alt4 = 4;\n switch (input.LA(1)) {\n case DISJUNCTION: {\n alt4 = 1;\n }\n break;\n case PROPERTY_CHAIN: {\n alt4 = 2;\n }\n break;\n case IDENTIFIER:\n case ENTITY_REFERENCE:\n case CONJUNCTION:\n case NEGATED_EXPRESSION:\n case SOME_RESTRICTION:\n case ALL_RESTRICTION:\n case VALUE_RESTRICTION:\n case CARDINALITY_RESTRICTION:\n case ONE_OF: {\n alt4 = 3;\n }\n break;\n case INVERSE_OBJECT_PROPERTY_EXPRESSION: {\n alt4 = 4;\n }\n break;\n default:\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 4, 0, input);\n throw nvae;\n }\n switch (alt4) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:107:4:\n // ^( DISJUNCTION (c= conjunction )+ )\n {\n match(input, DISJUNCTION, FOLLOW_DISJUNCTION_in_expression226);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:107:19:\n // (c= conjunction )+\n int cnt2 = 0;\n loop2: do {\n int alt2 = 2;\n int LA2_0 = input.LA(1);\n if (LA2_0 >= IDENTIFIER && LA2_0 <= ENTITY_REFERENCE\n || LA2_0 == CONJUNCTION || LA2_0 == NEGATED_EXPRESSION\n || LA2_0 >= SOME_RESTRICTION && LA2_0 <= ONE_OF) {\n alt2 = 1;\n }\n switch (alt2) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:107:21:\n // c= conjunction\n {\n pushFollow(FOLLOW_conjunction_in_expression235);\n c = conjunction();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(c.node.getCompletions());\n }\n }\n break;\n default:\n if (cnt2 >= 1) {\n break loop2;\n }\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n EarlyExitException eee = new EarlyExitException(2, input);\n throw eee;\n }\n cnt2++;\n } while (true);\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n }\n break;\n case 2:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:110:6:\n // ^( PROPERTY_CHAIN (chainItem= expression )+ )\n {\n match(input, PROPERTY_CHAIN, FOLLOW_PROPERTY_CHAIN_in_expression248);\n if (state.failed) {\n return retval;\n }\n match(input, Token.DOWN, null);\n if (state.failed) {\n return retval;\n }\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:110:24:\n // (chainItem= expression )+\n int cnt3 = 0;\n loop3: do {\n int alt3 = 2;\n int LA3_0 = input.LA(1);\n if (LA3_0 >= IDENTIFIER && LA3_0 <= ENTITY_REFERENCE\n || LA3_0 >= DISJUNCTION && LA3_0 <= NEGATED_EXPRESSION\n || LA3_0 >= SOME_RESTRICTION && LA3_0 <= ONE_OF\n || LA3_0 == INVERSE_OBJECT_PROPERTY_EXPRESSION) {\n alt3 = 1;\n }\n switch (alt3) {\n case 1:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:110:25:\n // chainItem= expression\n {\n pushFollow(FOLLOW_expression_in_expression256);\n chainItem = expression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start)\n .setCompletions(chainItem.node\n .getCompletions());\n }\n }\n break;\n default:\n if (cnt3 >= 1) {\n break loop3;\n }\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n EarlyExitException eee = new EarlyExitException(3, input);\n throw eee;\n }\n cnt3++;\n } while (true);\n match(input, Token.UP, null);\n if (state.failed) {\n return retval;\n }\n }\n break;\n case 3:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:114:5:\n // conj= conjunction\n {\n pushFollow(FOLLOW_conjunction_in_expression276);\n conj = conjunction();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start).setCompletions(conj.node\n .getCompletions());\n }\n }\n break;\n case 4:\n // /Users/luigi/Documents/workspace/Parsers/src/ManchesterOWLSyntaxAutoComplete.g:118:5:\n // cpe= complexPropertyExpression\n {\n pushFollow(FOLLOW_complexPropertyExpression_in_expression291);\n cpe = complexPropertyExpression();\n state._fsp--;\n if (state.failed) {\n return retval;\n }\n if (state.backtracking == 1) {\n ((ManchesterOWLSyntaxTree) retval.start).setCompletions(cpe.node\n .getCompletions());\n }\n }\n break;\n }\n if (state.backtracking == 1) {\n retval.node = (ManchesterOWLSyntaxTree) retval.start;\n }\n } catch (@SuppressWarnings(\"unused\") RecognitionException | RewriteEmptyStreamException exception) {}\n return retval;\n }",
"JavaEvaluator createJavaEvaluator();",
"public String getExpression() {\n return expression;\n }",
"public String getExpression() {\n return expression;\n }",
"public String getExpression() {\n return expression;\n }",
"@FunctionalInterface\n\tpublic interface Expression<V> {\n\t\tV getExpressionResult(Program p);\n\t}",
"ExpressionCalculPrimary getExpr();"
] | [
"0.66991615",
"0.62619007",
"0.62471676",
"0.6241216",
"0.619062",
"0.61351323",
"0.60434234",
"0.59163964",
"0.59081614",
"0.59042454",
"0.58965063",
"0.58233345",
"0.58134174",
"0.57647824",
"0.57592875",
"0.57410794",
"0.5739115",
"0.5739115",
"0.5739115",
"0.5739115",
"0.5726224",
"0.57229346",
"0.5698236",
"0.5695256",
"0.5677017",
"0.5648503",
"0.5647157",
"0.5643955",
"0.5636177",
"0.56088424",
"0.56046176",
"0.5590458",
"0.5578027",
"0.5561412",
"0.55578816",
"0.55372256",
"0.55372256",
"0.5531407",
"0.5524715",
"0.5519541",
"0.5515714",
"0.54969066",
"0.5485817",
"0.54802763",
"0.54722583",
"0.54703027",
"0.5455441",
"0.5452338",
"0.54408437",
"0.54325104",
"0.5418853",
"0.5408362",
"0.5372425",
"0.5364832",
"0.5349984",
"0.5347004",
"0.53422874",
"0.5328091",
"0.53256273",
"0.5323146",
"0.5323146",
"0.53081715",
"0.52964616",
"0.52950877",
"0.52936333",
"0.52933955",
"0.52851766",
"0.52832335",
"0.5263233",
"0.5261727",
"0.5258846",
"0.5252813",
"0.5251815",
"0.5250792",
"0.5246538",
"0.5245093",
"0.52443737",
"0.5242828",
"0.5241035",
"0.52400446",
"0.52319497",
"0.5228569",
"0.52215654",
"0.5217977",
"0.5216999",
"0.52088815",
"0.5202807",
"0.5202807",
"0.5201186",
"0.51950336",
"0.51920545",
"0.5189525",
"0.5188764",
"0.51755494",
"0.5174612",
"0.5170916",
"0.5167922",
"0.5167922",
"0.5167922",
"0.51514226",
"0.515106"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public String getCharset() {
return "GBK";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"public void mo55254a() {\n }",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}"
] | [
"0.66730285",
"0.65698135",
"0.6524193",
"0.64818907",
"0.6477969",
"0.6459897",
"0.64150065",
"0.6378023",
"0.62785167",
"0.6256323",
"0.62391806",
"0.6225302",
"0.6203955",
"0.6196986",
"0.6196986",
"0.6193411",
"0.6188864",
"0.6175446",
"0.61352557",
"0.6129083",
"0.6081512",
"0.6078478",
"0.604346",
"0.6027257",
"0.6019896",
"0.6001062",
"0.5969694",
"0.5969694",
"0.59695363",
"0.5950136",
"0.5940857",
"0.5923273",
"0.59109026",
"0.5904841",
"0.58943695",
"0.58871347",
"0.5884626",
"0.5871665",
"0.5857174",
"0.58529896",
"0.58477926",
"0.5827649",
"0.58111745",
"0.5810771",
"0.58093345",
"0.58093345",
"0.58016413",
"0.5792614",
"0.57915145",
"0.57915145",
"0.57915145",
"0.57915145",
"0.57915145",
"0.57915145",
"0.579047",
"0.5788485",
"0.5783461",
"0.5783461",
"0.57756454",
"0.57756454",
"0.57756454",
"0.57756454",
"0.57756454",
"0.5762863",
"0.57603353",
"0.57603353",
"0.5751224",
"0.5751224",
"0.5751224",
"0.5751004",
"0.573491",
"0.573491",
"0.573491",
"0.572175",
"0.5717107",
"0.5717079",
"0.5717079",
"0.5717079",
"0.5717079",
"0.5717079",
"0.5717079",
"0.5717079",
"0.5716174",
"0.5715048",
"0.5704484",
"0.5700041",
"0.5699844",
"0.56887585",
"0.56792545",
"0.5674781",
"0.56728446",
"0.56702185",
"0.5662837",
"0.5657697",
"0.56568635",
"0.56568635",
"0.56568635",
"0.5656818",
"0.5655768",
"0.56533396",
"0.56532913"
] | 0.0 | -1 |
TODO : REMOVE THE asyncRead | public void sendAuthPackge() throws IOException {
// 生成认证数据
byte[] rand1 = RandomUtil.randomBytes(8);
byte[] rand2 = RandomUtil.randomBytes(12);
// 保存认证数据
byte[] seed = new byte[rand1.length + rand2.length];
System.arraycopy(rand1, 0, seed, 0, rand1.length);
System.arraycopy(rand2, 0, seed, rand1.length, rand2.length);
this.seed = seed;
// 发送握手数据包
HandshakePacket hs = new HandshakePacket();
hs.packetId = 0;
hs.protocolVersion = Versions.PROTOCOL_VERSION;
hs.serverVersion = Versions.SERVER_VERSION;
hs.threadId = id;
hs.seed = rand1;
hs.serverCapabilities = getServerCapabilities();
// hs.serverCharsetIndex = (byte) (charsetIndex & 0xff);
hs.serverStatus = 2;
hs.restOfScrambleBuff = rand2;
hs.write(this);
// asynread response
// 这里阻塞了不好
this.asynRead();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"unused\")\n private void _read() {\n }",
"protected void doBeginRead() throws Exception {}",
"@Override\n\tpublic void read() {\n\n\t}",
"Read createRead();",
"public void ownRead();",
"private void doRead() throws IOException {\n\t\t\tvar res = sc.read(bb);\n\n\t\t\tif ( res == -1 ) {\n\t\t\t\tlogger.info(\"Connection closed with the client.\");\n\t\t\t\tclosed = true;\n\t\t\t}\n\n\t\t\tupdateInterestOps();\n\t\t}",
"@Override\n\tpublic void readCB(CB cb) {\n\t\t\n\t}",
"@Override\r\n\tpublic void read() {\n\r\n\t}",
"@Override\n public void handle(AsyncResult<Buffer> read) {\n file.delete();\n // parse\n JsonArray json = new JsonArray(read.result().toString());\n // iterate\n new AsyncIterator<Object>(json) {\n @Override\n public void handle(Object o) {\n if (hasNext()) {\n final JsonObject json = (JsonObject) o;\n db.set(domain.namespace + \"&\" + json.getString(\"key\"), json.getString(\"value\"), new Handler<Message<JsonObject>>() {\n @Override\n public void handle(Message<JsonObject> message) {\n if (!\"ok\".equals(message.body().getString(\"status\"))) {\n next.handle(message.body().getString(\"message\"));\n } else {\n next();\n }\n }\n });\n } else {\n request.response().redirect(\"/admin\");\n }\n }\n };\n }",
"abstract void read();",
"public void readSysCall() {\n read = false;\n clientChannel.read(readBuffer, this, readCompletionHandler);\n }",
"@Override\n\tpublic void readData() {\n\t\t\n\t}",
"public void asyncRead(Object requestCtxt, int length, TrcEvent event, TrcNotifier.Receiver handler)\n {\n asyncRead(requestCtxt, -1, length, false, event, handler);\n }",
"public void read() {\n\t\tthis.isRead = true;\n\t}",
"@Override\n\tpublic void readClient(Client clt) {\n\t\t\n\t}",
"public void run() {\n readFromClient();\n }",
"public void asyncRead(Object requestCtxt, int address, int length, TrcEvent event, TrcNotifier.Receiver handler)\n {\n asyncRead(requestCtxt, address, length, false, event, handler);\n }",
"protected abstract Reader read() throws IOException;",
"private void readItems() {\n }",
"boolean getRead();",
"public void execHandlerRead( Message msg ) {\n\t \t// create valid data bytes\n\t\tbyte[] buffer = (byte[]) msg.obj;\n\t\tint length = (int) msg.arg1;\n\t\tbyte[] bytes = new byte[ length ];\n\t\tfor ( int i=0; i < length; i++ ) {\n\t\t\tbytes[ i ] = buffer[ i ];\n\t\t}\n\t\t// debug\n\t\tString read = buildMsgBytes( \"r \", bytes );\n\t\tlog_d( read );\n\t\taddAndShowTextViewDebug( read );\n\t\tnotifyRead( bytes );\n\t}",
"public void asyncRead(Object requestCtxt, int length, boolean repeat, TrcEvent event, TrcNotifier.Receiver handler)\n {\n asyncRead(requestCtxt, -1, length, repeat, event, handler);\n }",
"public static byte[] ReadFileSync(String filePath)\n {\n byte[] bytes = new byte[0];\n try\n {\n //Instantiate the file object\n File file = new File(filePath);\n //Instantiate the input stread\n InputStream insputStream = new FileInputStream(file);\n long length = file.length();\n bytes = new byte[(int) length];\n \n insputStream.read(bytes);\n insputStream.close();\n\n }\n catch(Exception e)\n {\n Log.e(\"IO\", \"Failed to load file async: \"+filePath+e.toString());\n }\n return bytes;\n }",
"protected abstract Object read ();",
"default int readBlocking(byte[] buffer) {\n return readBlocking(buffer, 0, buffer.length);\n }",
"boolean hasRead();",
"private void readData()\n {\n while(System.currentTimeMillis() - start <= durationMillis)\n {\n counters.numRequested.incrementAndGet();\n readRate.acquire();\n\n if (state.get() == SimulationState.TEARING_DOWN)\n break;\n }\n }",
"private String readResult() throws IOException {\n return reader.readLine();\n }",
"@Override\n public void channelReadComplete(ChannelHandlerContext ctx) throws Exception {\n }",
"@Override\n\t\t\t\t\tpublic void run() {\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tList<String> headers = readRequest(client);\n\t\t\t\t\t\t\tif (headers != null && headers.size() >= 1) {\n\t\t\t\t\t\t\t\tString requestURL = getRequestURL(headers.get(0));\n\t\t\t\t\t\t\t\tLog.d(TAG, requestURL);\n\n\t\t\t\t\t\t\t\tif (requestURL.startsWith(\"http://\")) {\n\n\t\t\t\t\t\t\t\t\t// HttpRequest request = new\n\t\t\t\t\t\t\t\t\t// BasicHttpRequest(\"GET\", requestURL);\n\n\t\t\t\t\t\t\t\t\tprocessHttpRequest(requestURL, client, headers);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tprocessFileRequest(requestURL, client, headers);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch (IllegalStateException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"boolean getForRead();",
"private void m44337f() throws BaseException {\n Throwable th = this.f30622n;\n if (th != null) {\n if (th instanceof StreamClosedException) {\n throw new BaseException(1068, \"async reader closed!\");\n }\n DownloadUtils.m44505a(th, \"async_read\");\n }\n throw new BaseException(1069, \"async reader terminated!\");\n }",
"@Override\n\tpublic void channelReadComplete(ChannelHandlerContext ctx) throws Exception {\n\t}",
"@Override\n public Json readFormStream() throws IOException {\n int channelsRead = selector.select();\n\n readBuffer.clear();\n readBuffer.limit(4);\n while (readBuffer.hasRemaining()) {\n if(socketChannel.read(readBuffer) == -1) throw new EOFException(\"Socket closed, read returned -1\");\n }\n readBuffer.rewind();\n int length = readBuffer.getInt();\n\n readBuffer.clear();\n readBuffer.limit(length);\n while (readBuffer.hasRemaining()) {\n if(socketChannel.read(readBuffer) == -1) throw new EOFException(\"Socket closed, read returned -1\");\n }\n\n readBuffer.flip();\n\n byte[] bytesForString = new byte[length];\n readBuffer.get(bytesForString, 0, length);\n String jsonMsg = new String(bytesForString, \"UTF-8\");\n\n // System.err.println(\"<-- \" + jsonMsg);\n return Json.read(jsonMsg);\n }",
"public void read() {\n synchronized (this) {\n while (events.size() == 0) {\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n System.out.printf(\"Read :%d,%s\\n\",\n events.size(), events.poll());\n notify();\n }\n }",
"public void readTaskComplete() {\n\t\tnode.incrementNodesCompleted();\n\t\tif(node.getNodesCompleted() ==node.getCurrentMessagingNodesList().getSize()) {\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"going to sleep\");\n\t\t\t\tThread.sleep(1000*15);\n\t\t\t\tfor(NodeLink n : node.getCurrentMessagingNodesList().getList()) {\n\t\t\t\t\tMessage message = new PullTrafficRequest();\t\t\t\t\n\t\t\t\t\tSocket senderSocket = node.getConnections().getSocketWithName(n.ipAddress);\n\t\t\t\t\tnew TCPSender(senderSocket, message);\n\t\t\t\t}\n\t\t\t} catch (IOException e) {e.printStackTrace();\n\t\t\t} catch (InterruptedException e) {e.printStackTrace();}\n\t\t}\n\t}",
"boolean hasForRead();",
"@Override\n\tpublic void read(InStream inStream) {\n\t}",
"private void readObject() {}",
"private void readObject() {}",
"private void readObject() {}",
"abstract protected boolean read();",
"private void read() {\n\t\tticketint = preticketint.getInt(\"ticketint\", 0);\r\n\t\tLog.d(\"ticketint\", \"ticketint\" + \"read\" + ticketint);\r\n\t}",
"@Override\r\n\t\tprotected String doInBackground(String... params) {\n\t\t\t\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tresponse=hclient.execute(p);\r\n\t\t\t\t\r\n\t\t\t\tin=response.getEntity().getContent();\r\n\t\t\t\t\r\n\t\t\t\tStringBuilder stringBuilder=new StringBuilder();\r\n\t\t\t\t\r\n\t\t\t\tint b;\r\n\t\t\t\twhile(( b = in.read() )!= -1){\r\n\t\t \tstringBuilder.append((char)b);\r\n\t\t \t\r\n\t\t }\r\n\t\t\t\t\r\n\t\t\t\t\tLog.d(\"AsynClass\", \"Stringbuilder done\");\r\n\t\t\t\t\tbuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\r\n\t\t\t\t\tdoc = builder.parse(new InputSource(new StringReader(stringBuilder.toString())));\r\n\t\t\t\t\tNodeList result=doc.getElementsByTagName(\"item\");\r\n\t\t\t\t\tNode node;\t\r\n\t\t\t\t\tfor(int i=0;i<result.getLength();i++){\r\n\t\t\t\t\t\tnode=result.item(i);\r\n\t\t\t\t\t\t getElementValue(node,i);\r\n\t\t\t\t\t\tLog.d(\"AsyncClass\", \"Got Value\"+i);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfailureFlag=1;\r\n\t\t\t\t\t}\r\n\t\t\tcatch(Exception e){\r\n\t\t\t\tfailureFlag=0;\r\n\t\t\t\terror=e.getMessage();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\treturn null;\r\n\t\t}",
"@Override\n public int read() throws IOException {\n if (stream.available() > 0) {\n return stream.read();\n } else {\n layer.receiveMoreDataForHint(getHint());\n // either the stream is now filled, or we ran into a timeout\n // or the next stream is available\n return stream.read();\n }\n }",
"public void read() {\n\t\tthis.jtfSoundReaderServ = new JtfSoundReaderServ(this.audioFormat, this.targetDataLine);\n\t\tthis.readerThread = new Thread(this.jtfSoundReaderServ);\n\t\tthis.readerThread.start();\n\t}",
"private void readObject() {\n }",
"private void fetch(byte[] target) throws IOException {\n\t\tint actuallyRead=0;\n\t\tint required=target.length;\n\t\tlog.debug(\"Need to read \"+required+\" to fill buffer\");\n\t\twhile(actuallyRead<required) {\n\t\t\tactuallyRead+=fromDevice.read(target,actuallyRead,required-actuallyRead);\n\t\t\tlog.debug(\"Now read \"+actuallyRead);\n\t\t}\n\t}",
"@Override\n public void run() {\n load_remote_data();\n }",
"protected abstract Reader getReader() throws IOException;",
"@Override\n\t\tpublic void readyToRead(Vector<byte[]> outQ) {\n\t\t\t\n\t\t}",
"@Override\n public void run() {\n currentContent = FileAccessServiceLocator.getStockOrderFileAccess().read();\n while (true) {\n String newlyReadContent = FileAccessServiceLocator.getStockOrderFileAccess().read();\n if (!newlyReadContent.equals(currentContent) || !newlyReadContent.isEmpty()){\n notify(newlyReadContent);\n currentContent = newlyReadContent;\n }\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n//end of modifiable zone..................E/bfb5c4c0-88e6-44fa-9add-89d5b4394004\n }",
"@Override\n\tpublic void channelReadComplete(ChannelHandlerContext ctx) throws Exception {\n\t\tsuper.channelReadComplete(ctx);\n\t}",
"private void chimeraRead() throws IOException {\n \t \tif (chimera == null)\n \t \t\treturn;\n\n\t\tString line = null;\n\t\twhile ((line = lineReader.readLine()) != null) {\n\t\t\t// System.out.println(\"From Chimera-->\"+line);\n\t\t\tif (line.startsWith(\"CMD\")) {\n\t\t\t\tchimeraCommandRead(line.substring(4));\n\t\t\t} else if (line.startsWith(\"ModelChanged: \")) {\n\t\t\t\t(new ModelUpdater()).start();\n\t\t\t} else if (line.startsWith(\"SelectionChanged: \")) {\n\t\t\t\t(new SelectionUpdater()).start();\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}",
"public Boolean shouldRead() {\n return this.isComplete();\n }",
"protected BiFunction<SelectionKey, Integer, Runnable> onReading() {\n return readable;\n }",
"@Override\n protected Void doInBackground(Void... arg0) {\n HttpURLConnection urlConnection = null;\n\n try {\n URL data = new URL(url);\n urlConnection = (HttpURLConnection) data.openConnection();\n\n int responseCode = urlConnection.getResponseCode();\n\n if (responseCode == HttpURLConnection.HTTP_OK) {\n\n readJsonStream(urlConnection.getInputStream());\n }\n\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n urlConnection.disconnect();\n return null;\n }",
"private void read(){\n try {\n if (c != -1) c = r.read();\n } catch (IOException e){\n throw new IOError(e);\n }\n }",
"public boolean isRead(){\n \treturn isRead;\n }",
"private void downloadRtData(){\n\t\ttry {\n\t\t\tif (socket != null) {\n\t\t\t\tInputStream inStream = socket.getInputStream();\n\t\t\t\tParser.readRtData(inStream, \"MainActivity\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tLog.d(\"IOException\", \"Exception downloading real time data\");\n\t\t}\n\t}",
"private String readFromClient() throws IOException {\n final String request = inFromClient.readLine();\n return request;\n }",
"@Override\n public void completed(Integer result, String attachment)\n {\n log.info(\"Successful read!\");\n }",
"private void read() throws IOException {\n\n ByteBuffer buffer = ByteBuffer.allocate(ProjectProperties.BYTE_BUFFER_SIZE);\n int read = 0;\n // Keep trying to write until all bytes are read\n while (buffer.hasRemaining() && read != -1) {\n read = channel.read(buffer);\n }\n checkIfClosed(read);// check for error\n\n // convert byte[] to hash string\n String rt = RandomByteAndHashCode.SHA1FromBytes(buffer.array());\n if(ProjectProperties.DEBUG_FULL){\n System.out.println(\"Read: \" + rt );\n }\n\n write(rt.getBytes()); // write hash string\n }",
"@Override\r\n\t\tprotected IDCardItem doInBackground(Intent... params) {\n\t\t\tIDCardItem item = mOtgReadClient.readCardWithSync();\r\n\t\t\treturn item;\r\n\t\t}",
"public void readFeed() {\n\t\tfeedSvc.getFeed(date, new GetFeedCallback());\n\t\tdate=new Date();\n\t}",
"public byte[] read()\n {\n\t\t//byte[] responseData = ISOUtil.hex2byte(\"070088888888\");\n\t\tbyte[] responseData = null;\n try\n {\n\t\t\tlong start = System.currentTimeMillis();\n\t\t\tlong end = System.currentTimeMillis();\n\n\t\t\t\twhile ((end - start) < 45000)\n\t\t\t\t{\n System.out.println(\"++++++ If parameters : read() : \"+inputdata+\" : \"+dataRec);\n\t\t\t\t\tif (inputdata != null && dataRec)\n\t\t\t\t\t{\n System.out.println(\"INSIDE IF -read()\");\n\t\t\t\t\t\tresponseData = ISOUtil.hex2byte(inputdata);\n\t\t\t\t\t\tdataRec=false;\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t} else\n\t\t\t\t\t{\n System.out.println(\"INSIDE else -read()\");\n\t\t\t\t\t\tend = System.currentTimeMillis();\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t}\n\t\t\t\t}\n\n }\n catch(Exception e)\n {\n System.err.println(\"ConnectionHandlerLocal$WriterThread.run(): Interrupted!\");\n ezlink.info(\"SerialConnection : read() - Exception: \");\n ezlink.error(new Object(), e);\n }\n finally\n\t\t{\n\t\t\tSystem.out.println(\"&&&&&&&&&& In Finally... &&&&&&&\");\n ezlink.info(\"&&&&&&&&&& In Finally... &&&&&&& \");\n\t\t\tdataHandler.strISODump.setLength(0);\n\t\t\tif(sPort!=null)\n\t\t\t{\n\t\t\t\tsPort.close();\n\t\t\t\tSystem.out.println(\"Port Closed\");\n ezlink.info(\"&&&&&&&&&& Port Closed... &&&&&&& \");\n\t\t\t}\n\t \t}\n\n\t \tSystem.out.println(\"inside read() : ReadData=\"+new String(responseData));\n ezlink.info(\"ReadData= : \"+new String(responseData));\n\n return responseData;\n }",
"private boolean read (SocketChannel chan, SelectionKey key) {\n HttpTransaction msg;\n boolean res;\n try {\n InputStream is = new BufferedInputStream (new NioInputStream (chan));\n String requestline = readLine (is);\n MessageHeader mhead = new MessageHeader (is);\n String clen = mhead.findValue (\"Content-Length\");\n String trferenc = mhead.findValue (\"Transfer-Encoding\");\n String data = null;\n if (trferenc != null && trferenc.equals (\"chunked\"))\n data = new String (readChunkedData (is));\n else if (clen != null)\n data = new String (readNormalData (is, Integer.parseInt (clen)));\n String[] req = requestline.split (\" \");\n if (req.length < 2) {\n /* invalid request line */\n return false;\n }\n String cmd = req[0];\n URI uri = null;\n try {\n uri = new URI (req[1]);\n msg = new HttpTransaction (this, cmd, uri, mhead, data, null, key);\n cb.request (msg);\n } catch (URISyntaxException e) {\n System.err.println (\"Invalid URI: \" + e);\n msg = new HttpTransaction (this, cmd, null, null, null, null, key);\n msg.sendResponse (501, \"Whatever\");\n }\n res = false;\n } catch (IOException e) {\n res = true;\n }\n return res;\n }",
"@Override\n protected void onTextData(Reader r) throws IOException {\n\n }",
"@Override\n public void run() {\n new NdefReaderTask().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n }",
"void read(StreamOption streamOpt);",
"private static void readUsingEagerness(FileService fileService) {\n\t\tSystem.out.println(\"readUsingEagerness called\");\n\t\ttry {\n\t\t\tMono<String> data = Mono.just(fileService.readFile());\n\t\t\t\n\t\t\t//even if we do not subscribe the data is prepared for publisher\n//\t\t\tdata.subscribe(MonoStreamsUtils :: printOnNext,\n//\t\t\t\t\tMonoStreamsUtils :: printOnError,\n//\t\t\t\t\tMonoStreamsUtils :: printOnComplete\n//\t\t\t\t\t);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override public int read() throws IOException {\r\n\t\tif (closed) throw new IOException(\"Reader closed\");\r\n\t\tint r = -1;\r\n\t\twhile (r == -1){\r\n\t\t\tReader in = getCurrentReader();\r\n\t\t\tif (in == null){\r\n\t\t\t\tif (doneAddingReaders) return -1;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(100);\r\n\t\t\t\t} catch (InterruptedException iox){\r\n\t\t\t\t\tthrow new IOException(\"Interrupted\");\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tr = in.read();\r\n\t\t\t\tif (r == -1) advanceToNextReader();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn r;\r\n\t}",
"private void initReadBlockingTask(int size){ \n for (int i=0; i < size; i++){\n getReadTasks().offer(newReadBlockingTask(false));\n }\n }",
"@Override\n public BufferedReader requestContentTxtFile(Context context) throws IOException{\n InputStream ins = context.getResources().openRawResource(R.raw.timferris);\n BufferedReader reader = new BufferedReader(new InputStreamReader(ins));\n Log.d(\"teste leitura\", \"Model return after reading has been reached\");\n\n return reader;\n }",
"private void waitBetweenRead() {\n\t\ttry {\n\t\t\twait(250); // wait 250 ms before collecting data again\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t}",
"byte[] readBytes();",
"void read ();",
"@Override\n\t\t\t\t\t\t public void run() {\n\t\t\t\t\t\t\t getResponse();\n\t\t\t\t\t\t }",
"public boolean wasRead(){\n return isRead==null || isRead;\n }",
"int getBytesRead() {\n \treturn _read + _o;\n }",
"void confirmRead();",
"@Override\n\tpublic int read() {\n\t\treturn super.read();\n\t}",
"public void doReads(Reader reader) throws IOException;",
"@Override\n public void read(byte[] bytes) {\n }",
"@Override\n\tpublic void read(Object entidade) {\n\t\t\n\t}",
"void waitToRead();",
"@Override\r\n\tpublic void read(Object id) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void reading() {\n\t\tSystem.out.println(\"reading\");\r\n\t}",
"@Override\n\tpublic void read(ChannelHandlerContext ctx) throws Exception {\n\t\tLog.i(\"MySocketHandler\", \"read\");\n\t\tsuper.read(ctx);\n\t}",
"@Override\n public void run() {\n byte[] buffer = new byte[1024];\n int bytes;\n while (true) {\n try {\n\n bytes = inputStream.read(buffer);\n String data = new String(buffer, 0, bytes);\n handler.obtainMessage(MainActivityFreeEX.DATA_RECEIVED, data).sendToTarget();\n\n Log.i(this.toString(), \"en el run de Connection: \" + handler.obtainMessage(MainActivityFreeEX.DATA_RECEIVED, data).toString());\n\n\n } catch (IOException e) {\n break;\n }\n }\n }",
"public void setRead(){\n \tthis.isRead = true;\n }",
"private void doRecoveryRead() {\n if (!promise.isDone()) {\n startEntryToRead = endEntryToRead + 1;\n endEntryToRead = endEntryToRead + clientCtx.getConf().recoveryReadBatchSize;\n new RecoveryReadOp(lh, clientCtx, startEntryToRead, endEntryToRead, this, null)\n .initiate();\n }\n }",
"public void read(IServerCallback callback) {\n ServerCall sc = new ServerCall(ServiceName.matchMaking, ServiceOperation.READ, null, callback);\n _client.sendRequest(sc);\n }",
"private final byte[] readBuffer( int size ) throws IOException {\n byte[] buffer = new byte[ size ];\n\n int read = 0;\n while ( read < size ) {\n int next = dataSource.read( buffer, read, size - read );\n if ( next < 0 ) throw new IOException( \"End of Stream\" );\n read += next;\n\t}\n return buffer;\n }",
"private void readObject() {/*default - does nothing empty block */}",
"private void readObject() {/*default - does nothing empty block */}",
"private void readObject() {/*default - does nothing empty block */}",
"private void readObject() {/*default - does nothing empty block */}",
"private void readObject() {/*default - does nothing empty block */}",
"private void readObject() {/*default - does nothing empty block */}",
"private void readObject() {/*default - does nothing empty block */}"
] | [
"0.67510784",
"0.6607115",
"0.63493955",
"0.6344708",
"0.63442874",
"0.63387924",
"0.6325563",
"0.6318644",
"0.6231992",
"0.60667294",
"0.6059022",
"0.60020924",
"0.5996216",
"0.59862053",
"0.594565",
"0.5922631",
"0.5884679",
"0.58430576",
"0.58176553",
"0.5775277",
"0.57503223",
"0.57100075",
"0.5702889",
"0.570019",
"0.5697356",
"0.56814367",
"0.56802535",
"0.5679041",
"0.5644742",
"0.5635781",
"0.5630404",
"0.5617711",
"0.560889",
"0.5605177",
"0.5599009",
"0.55978686",
"0.55975896",
"0.5595839",
"0.55828255",
"0.55828255",
"0.55828255",
"0.55813116",
"0.55784965",
"0.557722",
"0.5574896",
"0.5558262",
"0.5550596",
"0.5546341",
"0.5541192",
"0.55396944",
"0.5523857",
"0.5509683",
"0.5508188",
"0.55020535",
"0.54968333",
"0.5485947",
"0.54817265",
"0.5476711",
"0.5474942",
"0.5467094",
"0.5461971",
"0.54583824",
"0.5454495",
"0.54493135",
"0.5447537",
"0.5442803",
"0.5442097",
"0.54414284",
"0.54393053",
"0.54334515",
"0.54275286",
"0.5426785",
"0.5424908",
"0.5422057",
"0.54217994",
"0.5416124",
"0.5407059",
"0.5404996",
"0.5402564",
"0.5399479",
"0.5398462",
"0.53966",
"0.5388649",
"0.5385543",
"0.53831697",
"0.53757465",
"0.53725624",
"0.537138",
"0.5362208",
"0.5359499",
"0.535946",
"0.53572875",
"0.5356401",
"0.5354221",
"0.53540385",
"0.53540385",
"0.53540385",
"0.53540385",
"0.53540385",
"0.53540385",
"0.53540385"
] | 0.0 | -1 |
/ / / / / / / 235 | public long toTimelineValue(long millisecond) { return millisecond; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static int getNumPatterns() { return 64; }",
"void mo33732Px();",
"public int mo36g() {\n return 8;\n }",
"public void setDimensionRatio(java.lang.String r9) {\n /*\n r8 = this;\n r0 = 0;\n if (r9 == 0) goto L_0x008e;\n L_0x0003:\n r1 = r9.length();\n if (r1 != 0) goto L_0x000b;\n L_0x0009:\n goto L_0x008e;\n L_0x000b:\n r1 = -1;\n r2 = r9.length();\n r3 = 44;\n r3 = r9.indexOf(r3);\n r4 = 0;\n r5 = 1;\n if (r3 <= 0) goto L_0x0037;\n L_0x001a:\n r6 = r2 + -1;\n if (r3 >= r6) goto L_0x0037;\n L_0x001e:\n r6 = r9.substring(r4, r3);\n r7 = \"W\";\n r7 = r6.equalsIgnoreCase(r7);\n if (r7 == 0) goto L_0x002c;\n L_0x002a:\n r1 = 0;\n goto L_0x0035;\n L_0x002c:\n r4 = \"H\";\n r4 = r6.equalsIgnoreCase(r4);\n if (r4 == 0) goto L_0x0035;\n L_0x0034:\n r1 = 1;\n L_0x0035:\n r4 = r3 + 1;\n L_0x0037:\n r3 = 58;\n r3 = r9.indexOf(r3);\n if (r3 < 0) goto L_0x0075;\n L_0x003f:\n r2 = r2 - r5;\n if (r3 >= r2) goto L_0x0075;\n L_0x0042:\n r2 = r9.substring(r4, r3);\n r3 = r3 + r5;\n r9 = r9.substring(r3);\n r3 = r2.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0051:\n r3 = r9.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0057:\n r2 = java.lang.Float.parseFloat(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n r3 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0063:\n r3 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0067:\n if (r1 != r5) goto L_0x006f;\n L_0x0069:\n r9 = r9 / r2;\n r9 = java.lang.Math.abs(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x006f:\n r2 = r2 / r9;\n r9 = java.lang.Math.abs(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0075:\n r9 = r9.substring(r4);\n r2 = r9.length();\n if (r2 <= 0) goto L_0x0084;\n L_0x007f:\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0084:\n r9 = 0;\n L_0x0085:\n r0 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r0 <= 0) goto L_0x008d;\n L_0x0089:\n r8.mDimensionRatio = r9;\n r8.mDimensionRatioSide = r1;\n L_0x008d:\n return;\n L_0x008e:\n r8.mDimensionRatio = r0;\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.constraint.solver.widgets.ConstraintWidget.setDimensionRatio(java.lang.String):void\");\n }",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"public int mo36g() {\n return 4;\n }",
"private static int m36201b(Rect rect) {\n return rect.width() * rect.height();\n }",
"public String toString(){ return \"DIV\";}",
"public int mo9774x() {\n /*\n r5 = this;\n int r0 = r5.f9082i\n int r1 = r5.f9080g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9082i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9776z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9082i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9774x():int\");\n }",
"BigInteger getWidth();",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"public Integer getWidth(){return this.width;}",
"public void getTile_B8();",
"private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }",
"public double getPerimiter(){return (2*height +2*width);}",
"int getWidth() {return width;}",
"public A339355() {\n super(1, \"[[0],[35,32,10,1],[2,8,2],[3,0,-2,-1]]\",\"8\", 0);\n }",
"public static int[] buildBoxOutMap(int r15, int r16, int r17, int r18) {\n /*\n int r0 = r15 * r16\n int[] r1 = new int[r0]\n r2 = 0\n r3 = 0\n L_0x0006:\n r4 = 1\n if (r3 >= r0) goto L_0x000e\n r1[r3] = r4\n int r3 = r3 + 1\n goto L_0x0006\n L_0x000e:\n int r0 = r15 - r17\n int r0 = r0 / 2\n int r3 = r16 - r17\n int r3 = r3 / 2\n int r5 = r17 + -1\n r10 = r17\n r6 = r0\n r8 = r6\n r9 = r8\n r11 = r3\n r12 = r11\n r7 = r5\n r0 = r18\n r5 = r12\n r3 = 0\n L_0x0024:\n if (r3 >= r0) goto L_0x007e\n int r13 = r5 * r15\n int r13 = r13 + r6\n r14 = r1[r13]\n if (r14 != r4) goto L_0x002f\n r14 = 1\n goto L_0x0030\n L_0x002f:\n r14 = 0\n L_0x0030:\n if (r14 == 0) goto L_0x0034\n r1[r13] = r2\n L_0x0034:\n r13 = -1\n if (r7 != r13) goto L_0x0046\n if (r6 != r8) goto L_0x0046\n int r8 = r8 + -1\n int r6 = Max(r8, r2)\n int r7 = r17 * 2\n int r7 = r7 - r4\n r8 = r6\n L_0x0043:\n r10 = r7\n r7 = 0\n goto L_0x007c\n L_0x0046:\n if (r7 != r4) goto L_0x0058\n if (r6 != r9) goto L_0x0058\n int r9 = r9 + 1\n int r6 = r15 + -1\n int r6 = Min(r9, r6)\n int r7 = r17 * 2\n int r7 = 1 - r7\n r9 = r6\n goto L_0x0043\n L_0x0058:\n if (r10 != r13) goto L_0x0069\n if (r5 != r11) goto L_0x0069\n int r11 = r11 + -1\n int r5 = Max(r11, r2)\n int r7 = r17 * 2\n int r7 = 1 - r7\n r11 = r5\n L_0x0067:\n r10 = 0\n goto L_0x007c\n L_0x0069:\n if (r10 != r4) goto L_0x007a\n if (r5 != r12) goto L_0x007a\n int r12 = r12 + 1\n int r5 = r16 + -1\n int r5 = Min(r12, r5)\n int r7 = r17 * 2\n int r7 = r7 - r4\n r12 = r5\n goto L_0x0067\n L_0x007a:\n int r6 = r6 + r7\n int r5 = r5 + r10\n L_0x007c:\n int r3 = r3 + r14\n goto L_0x0024\n L_0x007e:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.jcodec.codecs.h264.decode.aso.SliceGroupMapBuilder.buildBoxOutMap(int, int, boolean, int):int[]\");\n }",
"public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }",
"public void init24()\n {\n\t \twidth= p[21]<<24 | p[20]<<16 | p[19]<<8 | p[18];\n\t\theight= p[25]<<24 | p[24]<<16 | p[23]<<8 | p[22];\n\t\tint extra=(width*3)%4;\n \tif(extra!=0)\n \tpadding=4-extra;\n int x,z=54;\n l=0;\n int j=0;\n for(int q=0;q<height;q++)\n {\n x=0;\n \t while(x<width)\n \t {\n \t b=p[z]&0xff;\n if(j<maxbinary)\n {\n if(binary[j]!=0)\n {\n p1[z]=p[z]&0xff|binary[j++];\n b1=p1[z]&0xff;\n }\n else\n {\n p1[z]=p[z]&0xff & (binary[j++]|0xfe);\n b1=p1[z]&0xff;\n }\n }\n else\n b1=p[z]&0xff;\n \tg=p[z+1]&0xff;\n if(j<maxbinary)\n {\n if(binary[j]!=0)\n {\n p1[z+1]=p[z+1]&0xff|binary[j++];\n g1=p[z+1]&0xff;\n }\n else\n {\n p1[z+1]=p[z+1]&0xff & (binary[j++]|0xfe);\n g1=p1[z+1]&0xff;\n }\n }\n else\n g1=p[z]&0xff;\n r=p[z+2]&0xff;\n if(j<maxbinary)\n {\n if(binary[j]!=0)\n {\n p1[z+2]=p[z+2]&0xfe|binary[j++];\n r1=p[z+2]&0xff;\n }\n else\n {\n p1[z+2]=p[z+2]&0xff & (binary[j++]|0xfe);\n r1=p1[z+2]&0xff;\n }\n }\n else\n r1=p[z]&0xff;\n\tz=z+3;\n\tpix[l]= 255<<24 | r<<16 | g<<8 | b;\n pix1[l]= 255<<24 | r1<<16 | g1<<8 | b1;\n\tl++;\n\tx++;\n\t}\nz=z+padding;\n}\nint k;\nx=0;\n\tfor(i=l-width;i>=0;i=i-width) //l=WIDTH * height\n\t{\n\t\tfor(k=0;k<width;k++)\n\t\t{\n\t\tpixels[x]=pix[i+k];\n pixels1[x]=pix[i+k];\n\t\tx++;\n\t\t}\n\t}\n }",
"public int generateRoshambo(){\n ;]\n\n }",
"public int method_1143(int var1) {\r\n return this.height / 4 + 0 + (24 * var1 - 24) + this.field_987;\r\n }",
"double volume(){\n return width*height*depth;\n }",
"C5537g mo4096b(int i);",
"public void print1T0255(){\n StringBuilder out = new StringBuilder();\n for (int i = 1; i <= 255; i++){\n out.append( i + \" \");\n }\n System.out.println( out.toString());\n }",
"private int parent(int i){return (i-1)/2;}",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public static void main(String[] args) {\n int value = 5;\n int ab= 0;\n int ac=0;\n int ad=0;\n int ae=0;\n int af=0;\n int ag=0;\n int am=0;\n int az=0;\n int x = 0;\n int y = 0;\n int z = 0;\n int a = 0;\n int b = 0;\n int c = 0;\n int d = 0;\n int e = 0;\n x= value%2;\n ab=value/2;\n y= ab % 2;\n ac = ab/2;\n z = ac % 2;\n ad= ac/2;\n a = ad % 2;\n ae = ad/2;\n b = ae % 2;\n af= ae/2;\n c = af % 2;\n ag= af/2;\n d= ag % 2;\n am=ag/2;\n e = am %2;\n\n System.out.println(e+\"\"+d+\"\"+c+\"\"+b+\"\"+a+\"\"+z+\"\"+y+\"\"+x);\n\n\n\n\n\n\n\n }",
"int width();",
"private static int m3066a(int i, int i2, int i3, int i4, int i5) {\n if (i5 == 0) {\n return 0;\n }\n return (((i * NormalGiftView.ALPHA_255) * i2) + ((i3 * i4) * (255 - i2))) / (i5 * NormalGiftView.ALPHA_255);\n }",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"public abstract int getSpotsNeeded();",
"public static void main(String[] args) {\n\t\t\r\n\t\tint i, x=4,w=9,q;\r\n\t\tfor(i=-1;i<20;i+=3) {\r\n\t\t\tx++;\r\n\t\t\tfor(q=4;q<11;q++) {\r\n\t\t\t\tdo {\r\n\t\t\t\t\ti=+3;\r\n\t\t\t\t\tw=sizeof(i);\r\n\t\t\t\t\ti=x+w;\r\n\t\t\t\t\tx=w+i;\r\n\t\t\t\t\t\t\r\n\t\t\t\t} while (x<15);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"x:\"+x+\"i:\"+i);\r\n\r\n\t}",
"public int arn() {\n return 383;\n }",
"private static String m11g() {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"sh\");\n stringBuilder.append(\"el\");\n stringBuilder.append(\"la\");\n stringBuilder.append(\"_ve\");\n stringBuilder.append(\"rs\");\n stringBuilder.append(\"i\");\n stringBuilder.append(\"on\");\n return stringBuilder.toString();\n }",
"public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}",
"void ciff_block_1030()\n{\n int key[] = new int[2];\n key[0] = 0x410;\n key[1] = 0x45f3;\n int i, bpp, row, col, vbits=0;\n long bitbuf=0;\n\n get2();\n if ((get4()) != 0x80008 || get4()==0) return;\n bpp = get2();\n if (bpp != 10 && bpp != 12) return;\n for (i=row=0; row < 8; row++)\n for (col=0; col < 8; col++) {\n if (vbits < bpp) {\n\tbitbuf = bitbuf << 16 | (get2() ^ key[i++ & 1]);\n\tvbits += 16;\n }\n white[row][col] = ( char)( bitbuf << (LONG_BIT - vbits) >> (LONG_BIT - bpp));\n vbits -= bpp;\n }\n}",
"Length getWidth();",
"long getWidth();",
"public int getTaillePoule (){\n\t\treturn 3;\n\t}",
"public String tri4(int h){\n\t\tString S = \"\";\n\t\tint H = h;\n\t\tint HH = H;\n\t\tint Counter = 0;\n\t\tint UsingCounter = Counter;\n\n\t\twhile (H > 0){\n\t\t\tHH = H;\n\t\t\twhile (UsingCounter > 0){\n\t\t\t\tS = S + \" \";\n\t\t\t\tUsingCounter = UsingCounter - 1;}\n\t\t\twhile (HH > 0) {\n\t\t\t\tS = S + \"*\";\n\t\t\t\tHH = HH - 1;}\n\t\t\tCounter = Counter + 1;\n\t\t\tUsingCounter = Counter;\n\t\t\tS = S + \"\\n\";\n\t\t\tH = H - 1;}\n\n\t\treturn S; }",
"int getWayLength();",
"public final int mo30256g() {\n return this.f7581c.f7036c.size();\n }",
"public String ring();",
"private static String convertToStars(int num) {\n StringBuilder builder = new StringBuilder();\n for (int j = 0; j < num; j++) {\n builder.append('*');\n }\n return builder.toString();\n}",
"public abstract String division();",
"private void ncpStep(double height) {\n/* 56 */ double posX = mc.field_71439_g.field_70165_t;\n/* 57 */ double posZ = mc.field_71439_g.field_70161_v;\n/* 58 */ double y = mc.field_71439_g.field_70163_u;\n/* 59 */ if (height >= 1.1D) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 80 */ if (height < 1.6D) {\n/* */ double[] offset;\n/* 82 */ for (double off : offset = new double[] { 0.42D, 0.33D, 0.24D, 0.083D, -0.078D }) {\n/* 83 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y += off, posZ, false));\n/* */ }\n/* 85 */ } else if (height < 2.1D) {\n/* */ double[] heights;\n/* 87 */ for (double off : heights = new double[] { 0.425D, 0.821D, 0.699D, 0.599D, 1.022D, 1.372D, 1.652D, 1.869D }) {\n/* 88 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + off, posZ, false));\n/* */ }\n/* */ } else {\n/* */ double[] heights;\n/* 92 */ for (double off : heights = new double[] { 0.425D, 0.821D, 0.699D, 0.599D, 1.022D, 1.372D, 1.652D, 1.869D, 2.019D, 1.907D })\n/* 93 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + off, posZ, false)); \n/* */ } \n/* */ return;\n/* */ } \n/* */ double first = 0.42D;\n/* */ double d1 = 0.75D;\n/* */ if (height != 1.0D) {\n/* */ first *= height;\n/* */ d1 *= height;\n/* */ if (first > 0.425D)\n/* */ first = 0.425D; \n/* */ if (d1 > 0.78D)\n/* */ d1 = 0.78D; \n/* */ if (d1 < 0.49D)\n/* */ d1 = 0.49D; \n/* */ } \n/* */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + first, posZ, false));\n/* */ if (y + d1 < y + height)\n/* */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + d1, posZ, false)); \n/* */ }",
"public void init241()\n {\n\t \twidth= p2[21]<<24 | p2[20]<<16 | p2[19]<<8 | p2[18];\n\n\n\n\t\theight= p2[25]<<24 | p2[24]<<16 | p2[23]<<8 | p2[22];\n\n\n\t\tint extra=(width*3)%4;\n \tif(extra!=0)\n \tpadding=4-extra;\n int x,z=54;\n l=0;\n int j=0;\n i=0;\n for(int q=0;q<height;q++)\n {\n x=0;\n \t while(x<width)\n \t{\n \t b=p2[z]&0xff;\n binary[j++]=b&0x01;\n g=p2[z+1]&0xff;\n binary[j++]=g&0x01;\n \t r=p2[z+2]&0xff;\n binary[j++]=r&0x01;\n \t pix[l]= 255<<24 | r<<16 | g<<8 | b;\n z=z+3;\n x++;\n \t l++;\n }\n z=z+padding;\n }\n int k;\n x=0;\n stringcon();\n\n\n\tfor(i=l-width;i>=0;i=i-width)\n\t{\n\t\tfor(k=0;k<width;k++)\n\t\t{\n\t\tpixels[x]=pix[i+k];\n// pixels1[x]=pix[i+k];\n\t\tx++;\n\t\t}\n\t}\n}",
"public static String nthrt(String bytes,int size, int value){\n if(value==1||value==0||size<1||size>bytes.length()||!Cript2010x8b.USEPOWNTHRT) return bytes; \n String out=\"\"; \n int max=bytes.length()/size; \n if(bytes.length()%size!=0) \n max++; \n for(int i=0;i<max;i++){ \n String subStr=\"\"; \n for(int l=0;l<size;l++) \n try{ \n subStr+=bytes.charAt(i*size+(size-l-1)); \n }catch(Exception e){ \n String bug=bytes.substring(i*size); \n bug=addLong(bug,1,value); \n return out+bug; \n } \n BigInteger current=strToBInt(subStr); \n int exiter=0;\n while(Operations.nthRootFloor(current, value).pow(value).compareTo(current)!=0){ \n if(exiter>66) break;\n current=current.add(BigInteger.valueOf(2).pow(8*size)); \n exiter++;\n } \n current=Operations.nthRootFloor(current, value); \n exiter=0;\n while(current.compareTo(BigInteger.valueOf(2).pow(8*size))>0){if(exiter>66) break;current=current.add(BigInteger.valueOf(2).pow(8*size).negate());exiter++;} \n exiter=0;\n while(current.compareTo(BigInteger.ZERO)<0){if(exiter>66) break;current=current.add(BigInteger.valueOf(2).pow(8*size));exiter++;} \n \n out+=BintToStr(current,size); \n } \n return out; \n }",
"public int mo36g() {\n return 2;\n }",
"protected int bytesPerAtom() {\n return (2);\n }",
"protected int bytesPerAtom() {\n return (2);\n }",
"public int mo9761x() {\n /*\n r5 = this;\n int r0 = r5.f9074i\n int r1 = r5.f9072g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9070e\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9074i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9763z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9074i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3658b.mo9761x():int\");\n }",
"private int[] m7231g() {\n this.f5577B[0] = this.f5594p;\n this.f5577B[1] = this.f5600v - this.f5594p;\n return this.f5577B;\n }",
"public int getSnakeStartLength();",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"@Test\n public void testSegmentationGreedyness() {\n assertMetrics(\"match:0.3717\",\"a b c\",\"a x b x x x x x x x x b c\");\n assertMetrics(\"match:0.4981\",\"a b c\",\"a x z x x x x x x x x b c\");\n }",
"private void multiply_shotmap(Node parent, int valueMove, int[] shotmap){\n\t\t//Account for shooting back at the starting position\n\t\tfor(int x = 0; x <= 9; x++){\n\t\t\tfor(int y = 0; y <= 9; y++){\n\t\t\t\tif(shotmap[y*GRID+x] >= 0){ // need 0 because orign point is 0*65536 = 0\n\t\t\t\t\tint move = (((shotmap[y*GRID+x]&0xffff) << 16) | valueMove);\n\t\t\t\t\tif(move != 0) {\n\t\t\t\t\t\tparent.addChild(new Node(move,parent));\n//\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"protected int pathDrawLots(int bound)\n {\n Random r= new Random();\n int num = r.nextInt(bound);\n return num;\n\n\n }",
"public int mo9785x() {\n /*\n r10 = this;\n long r0 = r10.f9091i\n long r2 = r10.f9090h\n int r2 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1))\n if (r2 != 0) goto L_0x000a\n goto L_0x0085\n L_0x000a:\n r2 = 1\n long r4 = r0 + r2\n byte r0 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r0)\n if (r0 < 0) goto L_0x0017\n r10.f9091i = r4\n return r0\n L_0x0017:\n long r6 = r10.f9090h\n long r6 = r6 - r4\n r8 = 9\n int r1 = (r6 > r8 ? 1 : (r6 == r8 ? 0 : -1))\n if (r1 >= 0) goto L_0x0021\n goto L_0x0085\n L_0x0021:\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n int r1 = r1 << 7\n r0 = r0 ^ r1\n if (r0 >= 0) goto L_0x002f\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x008b\n L_0x002f:\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x003e\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x003c:\n r6 = r4\n goto L_0x008b\n L_0x003e:\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n int r1 = r1 << 21\n r0 = r0 ^ r1\n if (r0 >= 0) goto L_0x004e\n r1 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r1\n goto L_0x008b\n L_0x004e:\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n int r6 = r1 << 28\n r0 = r0 ^ r6\n r6 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r6\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n L_0x0085:\n long r0 = r10.mo9787z()\n int r0 = (int) r0\n return r0\n L_0x008b:\n r10.f9091i = r6\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3661d.mo9785x():int\");\n }",
"@Override\r\n\t\tpublic int recArea() {\n\t\t\treturn length*width;\r\n\t\t}",
"private static double MdUllah(double length, double height, double width) {\n\t\treturn length*height*width;\n\t}",
"@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}",
"public abstract int mo9754s();",
"int regionSplitBits4DownSampledTable();",
"public abstract int getCntGrnd();",
"@Override\r\n\tpublic void CalcPeri() {\n\t\tSystem.out.println(4*side);\t\r\n\t}",
"private String calculateHardspaces(int depth) {\n\n\t\t\tString hardspaces = \"\";\n\t\t\tfor (int level = 1; level < depth; level++) {\n\t\t\t\thardspaces += \" \";\n\t\t\t}\n\t\t\treturn hardspaces;\n\t\t}",
"@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }",
"private int leftChild(int i){return 2*i+1;}",
"public static int size_parentId() {\n return (16 / 8);\n }",
"int getTribeSize();",
"public int mo9232aG() {\n return 0;\n }",
"public int grWidth() { return width; }",
"Info mo7564ix();",
"public int method_2436() {\r\n return 16;\r\n }",
"double volume(){\n\n return widgh*height*depth;\n\n }",
"public void mo9769i(int r9) {\n /*\n r8 = this;\n int r0 = r8.f9080g\n int r1 = r8.f9082i\n int r0 = r0 - r1\n if (r9 > r0) goto L_0x000e\n if (r9 < 0) goto L_0x000e\n int r1 = r1 + r9\n r8.f9082i = r1\n goto L_0x0097\n L_0x000e:\n if (r9 < 0) goto L_0x00a2\n int r0 = r8.f9084k\n int r1 = r8.f9082i\n int r2 = r0 + r1\n int r3 = r2 + r9\n int r4 = r8.f9085l\n if (r3 > r4) goto L_0x0098\n q.b.c.a.j0.a.k$c$a r0 = r8.f9086m\n r3 = 0\n if (r0 != 0) goto L_0x007d\n r8.f9084k = r2\n int r0 = r8.f9080g\n int r0 = r0 - r1\n r8.f9080g = r3\n r8.f9082i = r3\n r3 = r0\n L_0x002b:\n if (r3 >= r9) goto L_0x0075\n int r0 = r9 - r3\n java.io.InputStream r1 = r8.f9078e // Catch:{ all -> 0x006b }\n long r4 = (long) r0 // Catch:{ all -> 0x006b }\n long r0 = r1.skip(r4) // Catch:{ all -> 0x006b }\n r6 = 0\n int r2 = (r0 > r6 ? 1 : (r0 == r6 ? 0 : -1))\n if (r2 < 0) goto L_0x0046\n int r4 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1))\n if (r4 > 0) goto L_0x0046\n if (r2 != 0) goto L_0x0043\n goto L_0x0075\n L_0x0043:\n int r0 = (int) r0 // Catch:{ all -> 0x006b }\n int r3 = r3 + r0\n goto L_0x002b\n L_0x0046:\n java.lang.IllegalStateException r9 = new java.lang.IllegalStateException // Catch:{ all -> 0x006b }\n java.lang.StringBuilder r2 = new java.lang.StringBuilder // Catch:{ all -> 0x006b }\n r2.<init>() // Catch:{ all -> 0x006b }\n java.io.InputStream r4 = r8.f9078e // Catch:{ all -> 0x006b }\n java.lang.Class r4 = r4.getClass() // Catch:{ all -> 0x006b }\n r2.append(r4) // Catch:{ all -> 0x006b }\n java.lang.String r4 = \"#skip returned invalid result: \"\n r2.append(r4) // Catch:{ all -> 0x006b }\n r2.append(r0) // Catch:{ all -> 0x006b }\n java.lang.String r0 = \"\\nThe InputStream implementation is buggy.\"\n r2.append(r0) // Catch:{ all -> 0x006b }\n java.lang.String r0 = r2.toString() // Catch:{ all -> 0x006b }\n r9.<init>(r0) // Catch:{ all -> 0x006b }\n throw r9 // Catch:{ all -> 0x006b }\n L_0x006b:\n r9 = move-exception\n int r0 = r8.f9084k\n int r0 = r0 + r3\n r8.f9084k = r0\n r8.mo9764A()\n throw r9\n L_0x0075:\n int r0 = r8.f9084k\n int r0 = r0 + r3\n r8.f9084k = r0\n r8.mo9764A()\n L_0x007d:\n if (r3 >= r9) goto L_0x0097\n int r0 = r8.f9080g\n int r1 = r8.f9082i\n int r1 = r0 - r1\n r8.f9082i = r0\n r0 = 1\n L_0x0088:\n r8.mo9768h(r0)\n int r2 = r9 - r1\n int r3 = r8.f9080g\n if (r2 <= r3) goto L_0x0095\n int r1 = r1 + r3\n r8.f9082i = r3\n goto L_0x0088\n L_0x0095:\n r8.f9082i = r2\n L_0x0097:\n return\n L_0x0098:\n int r4 = r4 - r0\n int r4 = r4 - r1\n r8.mo9769i(r4)\n q.b.c.a.j0.a.c0 r9 = p213q.p217b.p301c.p302a.p311j0.p312a.C3606c0.m8181h()\n throw r9\n L_0x00a2:\n q.b.c.a.j0.a.c0 r9 = p213q.p217b.p301c.p302a.p311j0.p312a.C3606c0.m8179f()\n throw r9\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9769i(int):void\");\n }",
"String getWidth();",
"String getWidth();",
"@Override\r\n\tpublic int unitsToWagger() {\n\t\treturn 0;\r\n\t}",
"public int getMobCap()\r\n/* 24: */ {\r\n/* 25:41 */ return this.f;\r\n/* 26: */ }",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public double width() { return _width; }",
"public int mo1067a() {\n return this.f3256d.size();\n }",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"public Image getNine();",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public abstract int mo123248g();",
"double getPerimeter(){\n return 2*height+width;\n }",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"public static void main(String[] args)\r\n\t{\r\n\t\tSystem.out.println(\"1st pattern\");\r\n\t\tfor(int i=0;i<=8;i++)\r\n\t\t{\r\n\t\t\tfor(int j=i;j<8;j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\t\t/*\r\n\t\t*\r\n \t\t**\r\n\t\t***\r\n\t\t****\r\n\t\t*****\r\n\t\t******\r\n\t\t*******\r\n\t\t********\r\n\t\t */\r\n\t\tSystem.out.println(\"2nd pattern\");\r\n\t\tfor(int i=8;i>=0;i--)\r\n\t\t{\r\n\t\t\tfor(int j=i;j<8;j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t/* for printing this pattern\r\n\t\t\t\t * \r\n\t\t\t\t*** \r\n\t\t\t ***** \r\n\t\t\t ******* \r\n\t\t\t *********\t\t */\r\n\t\tSystem.out.print(\"3rd pattern\");\r\n\t\tfor(int i=0;i<=8;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<=8;j++)\r\n\t\t\t{\r\n\t\t\t\tif(i<j || j<8-i)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t/* for printing 4th pattern \r\n\t\t ********* \r\n\t\t ******* \r\n\t\t ***** \r\n\t\t *** \r\n\t\t * \r\n\t\t */\r\n\t\tSystem.out.println(\"4th pattern\\n\\n\");\r\n\t\tfor(int i=8;i>=0;i--)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<=8;j++)\r\n\t\t\t{\r\n\t\t\t\tif(i<j || j<8-i)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\" \");\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(\"5th pattern \");\r\n\t\tfor(int i=1;i<=10;i++)\r\n\t\t{\r\n\t\t\tfor(int j=1;j<=10;j++)\r\n\t\t\t{\r\n\t\t\t\tif(i<j || i==j)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t}\r\n\t\t\t\telse if(j>i || j<10-i)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}",
"private double RepulsionFactorSourceNodes(){\n \tdouble RepulsionFactor=10000.0d *(contextNodeSize*5);\n \t\n \treturn RepulsionFactor;\n }",
"static int size_of_rlc(String passed){\n\t\treturn 1;\n\t}",
"public void divide() {\n\t\t\n\t}"
] | [
"0.586389",
"0.5465072",
"0.5399509",
"0.5369582",
"0.5318581",
"0.531581",
"0.5204256",
"0.5186763",
"0.51498055",
"0.5137106",
"0.51125944",
"0.51111585",
"0.5094",
"0.50856704",
"0.50763553",
"0.5067018",
"0.5048842",
"0.503541",
"0.50145406",
"0.50086135",
"0.50039655",
"0.49933314",
"0.49736795",
"0.49719337",
"0.49636412",
"0.4960111",
"0.49598682",
"0.49596015",
"0.4955961",
"0.49482137",
"0.49378026",
"0.49366796",
"0.49333906",
"0.49231637",
"0.4910347",
"0.4903725",
"0.4902512",
"0.48972428",
"0.48966247",
"0.48938093",
"0.4889212",
"0.48867232",
"0.48830852",
"0.48782185",
"0.48687148",
"0.48684978",
"0.4868014",
"0.48675385",
"0.48614836",
"0.48573652",
"0.48560587",
"0.48543277",
"0.48498598",
"0.48484367",
"0.48468044",
"0.4843751",
"0.48432428",
"0.48432428",
"0.48403323",
"0.48354694",
"0.48287395",
"0.48276293",
"0.48266408",
"0.4826602",
"0.4825939",
"0.48254213",
"0.48245358",
"0.48178905",
"0.4815115",
"0.4813816",
"0.48102865",
"0.48097",
"0.48087394",
"0.48048562",
"0.48043728",
"0.4803852",
"0.48036742",
"0.48023078",
"0.4799538",
"0.47950083",
"0.47897625",
"0.478174",
"0.4780843",
"0.4780037",
"0.47735178",
"0.47735178",
"0.47713038",
"0.4766506",
"0.4759402",
"0.47584984",
"0.47576922",
"0.47570956",
"0.47562873",
"0.47562173",
"0.47559223",
"0.47550648",
"0.47534385",
"0.47455755",
"0.47455442",
"0.47424328",
"0.4738594"
] | 0.0 | -1 |
/ / / / / / / / / / / / 247 | public long toTimelineValue(Date date) { return date.getTime(); } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static int getNumPatterns() { return 64; }",
"public int mo36g() {\n return 8;\n }",
"void mo33732Px();",
"@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }",
"@Override\n\tpublic int computeSize() {\n\t\treturn 36;\n\t}",
"private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"public int getCurrRuptures();",
"@Override\r\n\tpublic int size() {\n\t\treturn 27;\r\n\t}",
"public void getTile_B8();",
"int getExpoBracketingNImagesPref();",
"int getCap();",
"private int m672E() {\n int i = 0;\n if (this.f552g.mo501h() >= 5) {\n byte[] f = this.f552g.mo499f();\n int g = this.f552g.mo500g();\n int i2 = 0;\n int i3 = 0;\n while (true) {\n byte b = f[g + i];\n i2 |= (b & Byte.MAX_VALUE) << i3;\n if ((b & 128) != 128) {\n this.f552g.mo495a(i + 1);\n return i2;\n }\n i3 += 7;\n i++;\n }\n } else {\n int i4 = 0;\n while (true) {\n byte u = mo470u();\n i |= (u & Byte.MAX_VALUE) << i4;\n if ((u & 128) != 128) {\n return i;\n }\n i4 += 7;\n }\n }\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tint i, x=4,w=9,q;\r\n\t\tfor(i=-1;i<20;i+=3) {\r\n\t\t\tx++;\r\n\t\t\tfor(q=4;q<11;q++) {\r\n\t\t\t\tdo {\r\n\t\t\t\t\ti=+3;\r\n\t\t\t\t\tw=sizeof(i);\r\n\t\t\t\t\ti=x+w;\r\n\t\t\t\t\tx=w+i;\r\n\t\t\t\t\t\t\r\n\t\t\t\t} while (x<15);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"x:\"+x+\"i:\"+i);\r\n\r\n\t}",
"private static int m36201b(Rect rect) {\n return rect.width() * rect.height();\n }",
"public int arn() {\n return 383;\n }",
"public static int size_parentId() {\n return (16 / 8);\n }",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"int getTribeSize();",
"public int mo36g() {\n return 4;\n }",
"@Override\r\n\tpublic int unitsToWagger() {\n\t\treturn 0;\r\n\t}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"public abstract int getSpotsNeeded();",
"int getMinimalPaletteDistance();",
"private static int m3066a(int i, int i2, int i3, int i4, int i5) {\n if (i5 == 0) {\n return 0;\n }\n return (((i * NormalGiftView.ALPHA_255) * i2) + ((i3 * i4) * (255 - i2))) / (i5 * NormalGiftView.ALPHA_255);\n }",
"public void print1T0255(){\n StringBuilder out = new StringBuilder();\n for (int i = 1; i <= 255; i++){\n out.append( i + \" \");\n }\n System.out.println( out.toString());\n }",
"public static int[] buildBoxOutMap(int r15, int r16, int r17, int r18) {\n /*\n int r0 = r15 * r16\n int[] r1 = new int[r0]\n r2 = 0\n r3 = 0\n L_0x0006:\n r4 = 1\n if (r3 >= r0) goto L_0x000e\n r1[r3] = r4\n int r3 = r3 + 1\n goto L_0x0006\n L_0x000e:\n int r0 = r15 - r17\n int r0 = r0 / 2\n int r3 = r16 - r17\n int r3 = r3 / 2\n int r5 = r17 + -1\n r10 = r17\n r6 = r0\n r8 = r6\n r9 = r8\n r11 = r3\n r12 = r11\n r7 = r5\n r0 = r18\n r5 = r12\n r3 = 0\n L_0x0024:\n if (r3 >= r0) goto L_0x007e\n int r13 = r5 * r15\n int r13 = r13 + r6\n r14 = r1[r13]\n if (r14 != r4) goto L_0x002f\n r14 = 1\n goto L_0x0030\n L_0x002f:\n r14 = 0\n L_0x0030:\n if (r14 == 0) goto L_0x0034\n r1[r13] = r2\n L_0x0034:\n r13 = -1\n if (r7 != r13) goto L_0x0046\n if (r6 != r8) goto L_0x0046\n int r8 = r8 + -1\n int r6 = Max(r8, r2)\n int r7 = r17 * 2\n int r7 = r7 - r4\n r8 = r6\n L_0x0043:\n r10 = r7\n r7 = 0\n goto L_0x007c\n L_0x0046:\n if (r7 != r4) goto L_0x0058\n if (r6 != r9) goto L_0x0058\n int r9 = r9 + 1\n int r6 = r15 + -1\n int r6 = Min(r9, r6)\n int r7 = r17 * 2\n int r7 = 1 - r7\n r9 = r6\n goto L_0x0043\n L_0x0058:\n if (r10 != r13) goto L_0x0069\n if (r5 != r11) goto L_0x0069\n int r11 = r11 + -1\n int r5 = Max(r11, r2)\n int r7 = r17 * 2\n int r7 = 1 - r7\n r11 = r5\n L_0x0067:\n r10 = 0\n goto L_0x007c\n L_0x0069:\n if (r10 != r4) goto L_0x007a\n if (r5 != r12) goto L_0x007a\n int r12 = r12 + 1\n int r5 = r16 + -1\n int r5 = Min(r12, r5)\n int r7 = r17 * 2\n int r7 = r7 - r4\n r12 = r5\n goto L_0x0067\n L_0x007a:\n int r6 = r6 + r7\n int r5 = r5 + r10\n L_0x007c:\n int r3 = r3 + r14\n goto L_0x0024\n L_0x007e:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.jcodec.codecs.h264.decode.aso.SliceGroupMapBuilder.buildBoxOutMap(int, int, boolean, int):int[]\");\n }",
"C5537g mo4096b(int i);",
"public static int offset_cost() {\n return (56 / 8);\n }",
"public int method_2436() {\r\n return 16;\r\n }",
"public static int offset_sum_e() {\n return (104 / 8);\n }",
"public final int mo30256g() {\n return this.f7581c.f7036c.size();\n }",
"public byte[] initialValue() {\n return new byte[]{(byte) -1, (byte) -40, (byte) -1, (byte) -37, (byte) 0, (byte) 67, (byte) 0, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -64, (byte) 0, (byte) 17, (byte) 8, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 3, (byte) 1, (byte) 34, (byte) 0, (byte) 2, (byte) 17, (byte) 0, (byte) 3, (byte) 17, (byte) 0, (byte) -1, (byte) -60, (byte) 0, (byte) 31, (byte) 0, (byte) 0, (byte) 1, (byte) 5, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 1, (byte) 2, (byte) 3, (byte) 4, (byte) 5, (byte) 6, (byte) 7, (byte) 8, (byte) 9, (byte) 10, (byte) 11, (byte) -1, (byte) -60, (byte) 0, (byte) -75, (byte) 16, (byte) 0, (byte) 2, (byte) 1, (byte) 3, (byte) 3, (byte) 2, (byte) 4, (byte) 3, (byte) 5, (byte) 5, (byte) 4, (byte) 4, (byte) 0, (byte) 0, (byte) 1, (byte) 125, (byte) 1, (byte) 2, (byte) 3, (byte) 0, (byte) 4, (byte) 17, (byte) 5, (byte) 18, (byte) 33, (byte) 49, (byte) 65, (byte) 6, (byte) 19, (byte) 81, (byte) 97, (byte) 7, (byte) 34, (byte) 113, (byte) 20, (byte) 50, (byte) -127, (byte) -111, (byte) -95, (byte) 8, (byte) 35, (byte) 66, (byte) -79, (byte) -63, (byte) 21, (byte) 82, (byte) -47, (byte) -16, (byte) 36, (byte) 51, (byte) 98, (byte) 114, (byte) -126, (byte) 9, (byte) 10, (byte) 22, (byte) 23, (byte) 24, (byte) 25, (byte) 26, (byte) 37, (byte) 38, (byte) 39, (byte) 40, (byte) 41, (byte) 42, (byte) 52, (byte) 53, (byte) 54, (byte) 55, (byte) 56, (byte) 57, (byte) 58, (byte) 67, (byte) 68, (byte) 69, (byte) 70, (byte) 71, (byte) 72, (byte) 73, (byte) 74, (byte) 83, (byte) 84, (byte) 85, (byte) 86, (byte) 87, (byte) 88, (byte) 89, (byte) 90, (byte) 99, (byte) 100, (byte) 101, (byte) 102, (byte) 103, (byte) 104, (byte) 105, (byte) 106, (byte) 115, (byte) 116, (byte) 117, (byte) 118, (byte) 119, (byte) 120, (byte) 121, (byte) 122, (byte) -125, (byte) -124, (byte) -123, (byte) -122, (byte) -121, (byte) -120, (byte) -119, (byte) -118, (byte) -110, (byte) -109, (byte) -108, (byte) -107, (byte) -106, (byte) -105, (byte) -104, (byte) -103, (byte) -102, (byte) -94, (byte) -93, (byte) -92, (byte) -91, (byte) -90, (byte) -89, (byte) -88, (byte) -87, (byte) -86, (byte) -78, (byte) -77, (byte) -76, (byte) -75, (byte) -74, (byte) -73, (byte) -72, (byte) -71, (byte) -70, (byte) -62, (byte) -61, (byte) -60, (byte) -59, (byte) -58, (byte) -57, (byte) -56, (byte) -55, (byte) -54, (byte) -46, (byte) -45, (byte) -44, (byte) -43, (byte) -42, (byte) -41, (byte) -40, (byte) -39, (byte) -38, (byte) -31, (byte) -30, (byte) -29, (byte) -28, (byte) -27, (byte) -26, (byte) -25, (byte) -24, (byte) -23, (byte) -22, (byte) -15, (byte) -14, (byte) -13, (byte) -12, (byte) -11, (byte) -10, (byte) -9, (byte) -8, (byte) -7, (byte) -6, (byte) -1, (byte) -60, (byte) 0, (byte) 31, (byte) 1, (byte) 0, (byte) 3, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 1, (byte) 2, (byte) 3, (byte) 4, (byte) 5, (byte) 6, (byte) 7, (byte) 8, (byte) 9, (byte) 10, (byte) 11, (byte) -1, (byte) -60, (byte) 0, (byte) -75, (byte) 17, (byte) 0, (byte) 2, (byte) 1, (byte) 2, (byte) 4, (byte) 4, (byte) 3, (byte) 4, (byte) 7, (byte) 5, (byte) 4, (byte) 4, (byte) 0, (byte) 1, (byte) 2, (byte) 119, (byte) 0, (byte) 1, (byte) 2, (byte) 3, (byte) 17, (byte) 4, (byte) 5, (byte) 33, (byte) 49, (byte) 6, (byte) 18, (byte) 65, (byte) 81, (byte) 7, (byte) 97, (byte) 113, (byte) 19, (byte) 34, (byte) 50, (byte) -127, (byte) 8, (byte) 20, (byte) 66, (byte) -111, (byte) -95, (byte) -79, (byte) -63, (byte) 9, (byte) 35, (byte) 51, (byte) 82, (byte) -16, (byte) 21, (byte) 98, (byte) 114, (byte) -47, (byte) 10, (byte) 22, (byte) 36, (byte) 52, (byte) -31, (byte) 37, (byte) -15, (byte) 23, (byte) 24, (byte) 25, (byte) 26, (byte) 38, (byte) 39, (byte) 40, (byte) 41, (byte) 42, (byte) 53, (byte) 54, (byte) 55, (byte) 56, (byte) 57, (byte) 58, (byte) 67, (byte) 68, (byte) 69, (byte) 70, (byte) 71, (byte) 72, (byte) 73, (byte) 74, (byte) 83, (byte) 84, (byte) 85, (byte) 86, (byte) 87, (byte) 88, (byte) 89, (byte) 90, (byte) 99, (byte) 100, (byte) 101, (byte) 102, (byte) 103, (byte) 104, (byte) 105, (byte) 106, (byte) 115, (byte) 116, (byte) 117, (byte) 118, (byte) 119, (byte) 120, (byte) 121, (byte) 122, (byte) -126, (byte) -125, (byte) -124, (byte) -123, (byte) -122, (byte) -121, (byte) -120, (byte) -119, (byte) -118, (byte) -110, (byte) -109, (byte) -108, (byte) -107, (byte) -106, (byte) -105, (byte) -104, (byte) -103, (byte) -102, (byte) -94, (byte) -93, (byte) -92, (byte) -91, (byte) -90, (byte) -89, (byte) -88, (byte) -87, (byte) -86, (byte) -78, (byte) -77, (byte) -76, (byte) -75, (byte) -74, (byte) -73, (byte) -72, (byte) -71, (byte) -70, (byte) -62, (byte) -61, (byte) -60, (byte) -59, (byte) -58, (byte) -57, (byte) -56, (byte) -55, (byte) -54, (byte) -46, (byte) -45, (byte) -44, (byte) -43, (byte) -42, (byte) -41, (byte) -40, (byte) -39, (byte) -38, (byte) -30, (byte) -29, (byte) -28, (byte) -27, (byte) -26, (byte) -25, (byte) -24, (byte) -23, (byte) -22, (byte) -14, (byte) -13, (byte) -12, (byte) -11, (byte) -10, (byte) -9, (byte) -8, (byte) -7, (byte) -6, (byte) -1, (byte) -38, (byte) 0, (byte) 12, (byte) 3, (byte) 1, (byte) 0, (byte) 2, (byte) 17, (byte) 3, (byte) 17, (byte) 0, (byte) 63, (byte) 0, (byte) -114, (byte) -118, (byte) 40, (byte) -96, (byte) 15, (byte) -1, (byte) -39};\n }",
"short getCopies();",
"long getUnknown72();",
"public int getMobCap()\r\n/* 24: */ {\r\n/* 25:41 */ return this.f;\r\n/* 26: */ }",
"public int mo12191c() {\n return this.f10948c.limit() + this.f10957l.length + (this.f10958m.length * 4);\n }",
"protected int bytesPerAtom() {\n return (2);\n }",
"protected int bytesPerAtom() {\n return (2);\n }",
"public int getIconWidth()\r\n/* 50: */ {\r\n/* 51: 99 */ return SIZE;\r\n/* 52: */ }",
"public abstract int getSmallStackSizeWishInKb();",
"BigInteger getWidth();",
"public abstract long mo9748m();",
"private int addShift( int x ) { x += _nxx; int sz = H2O.CLOUD.size(); return x < sz ? x : x-sz; }",
"public static int offset_quality() {\n return (48 / 8);\n }",
"public int getTaillePoule (){\n\t\treturn 3;\n\t}",
"public int passengers(){\n return currentCapacity(); \n }",
"public int mo163c() {\n int size = this.f1963b.size();\n if (size < 1) {\n return 0;\n }\n int i = f1962a;\n return ((size / i) * (Lca.m828b(i) + 4)) + 4 + Lca.m828b(size % i);\n }",
"@Override\r\n protected int sizeOf(String key, Bitmap b) {\n return b.getHeight() * b.getWidth() * 4;\r\n }",
"private int m14719r() {\n int s = m14720s();\n if (s > 0) {\n try {\n if (this.f10949d == null) {\n this.f10949d = this.f10962q.mo12209b(255);\n }\n int i = this.f10951f - this.f10952g;\n if (i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, s);\n this.f10952g += s;\n } else if (this.f10948c.remaining() + i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, i);\n this.f10952g = this.f10951f;\n m14721t();\n int i2 = s - i;\n System.arraycopy(this.f10950e, 0, this.f10949d, i, i2);\n this.f10952g += i2;\n } else {\n this.f10965t = 1;\n }\n } catch (Exception e) {\n C3111h1.m14932d(f10944y, \"Error Reading Block\", e);\n this.f10965t = 1;\n }\n }\n return s;\n }",
"private void multiply_shotmap(Node parent, int valueMove, int[] shotmap){\n\t\t//Account for shooting back at the starting position\n\t\tfor(int x = 0; x <= 9; x++){\n\t\t\tfor(int y = 0; y <= 9; y++){\n\t\t\t\tif(shotmap[y*GRID+x] >= 0){ // need 0 because orign point is 0*65536 = 0\n\t\t\t\t\tint move = (((shotmap[y*GRID+x]&0xffff) << 16) | valueMove);\n\t\t\t\t\tif(move != 0) {\n\t\t\t\t\t\tparent.addChild(new Node(move,parent));\n//\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public int getIconHeight()\r\n/* 55: */ {\r\n/* 56:100 */ return SIZE;\r\n/* 57: */ }",
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"public void setDimensionRatio(java.lang.String r9) {\n /*\n r8 = this;\n r0 = 0;\n if (r9 == 0) goto L_0x008e;\n L_0x0003:\n r1 = r9.length();\n if (r1 != 0) goto L_0x000b;\n L_0x0009:\n goto L_0x008e;\n L_0x000b:\n r1 = -1;\n r2 = r9.length();\n r3 = 44;\n r3 = r9.indexOf(r3);\n r4 = 0;\n r5 = 1;\n if (r3 <= 0) goto L_0x0037;\n L_0x001a:\n r6 = r2 + -1;\n if (r3 >= r6) goto L_0x0037;\n L_0x001e:\n r6 = r9.substring(r4, r3);\n r7 = \"W\";\n r7 = r6.equalsIgnoreCase(r7);\n if (r7 == 0) goto L_0x002c;\n L_0x002a:\n r1 = 0;\n goto L_0x0035;\n L_0x002c:\n r4 = \"H\";\n r4 = r6.equalsIgnoreCase(r4);\n if (r4 == 0) goto L_0x0035;\n L_0x0034:\n r1 = 1;\n L_0x0035:\n r4 = r3 + 1;\n L_0x0037:\n r3 = 58;\n r3 = r9.indexOf(r3);\n if (r3 < 0) goto L_0x0075;\n L_0x003f:\n r2 = r2 - r5;\n if (r3 >= r2) goto L_0x0075;\n L_0x0042:\n r2 = r9.substring(r4, r3);\n r3 = r3 + r5;\n r9 = r9.substring(r3);\n r3 = r2.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0051:\n r3 = r9.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0057:\n r2 = java.lang.Float.parseFloat(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n r3 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0063:\n r3 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0067:\n if (r1 != r5) goto L_0x006f;\n L_0x0069:\n r9 = r9 / r2;\n r9 = java.lang.Math.abs(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x006f:\n r2 = r2 / r9;\n r9 = java.lang.Math.abs(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0075:\n r9 = r9.substring(r4);\n r2 = r9.length();\n if (r2 <= 0) goto L_0x0084;\n L_0x007f:\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0084:\n r9 = 0;\n L_0x0085:\n r0 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r0 <= 0) goto L_0x008d;\n L_0x0089:\n r8.mDimensionRatio = r9;\n r8.mDimensionRatioSide = r1;\n L_0x008d:\n return;\n L_0x008e:\n r8.mDimensionRatio = r0;\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.constraint.solver.widgets.ConstraintWidget.setDimensionRatio(java.lang.String):void\");\n }",
"public abstract int getMediumStackSizeWishInKb();",
"int calculateCap();",
"int getSpriteArraySize();",
"private static int batoi(byte[] inp) {\n int len = inp.length>4?4:inp.length;\n int total = 0;\n for (int i = 0; i < len; i++) {\n total += (inp[i]<0?256+inp[i]:(int)inp[i]) << (((len - 1) - i) * 8);\n }\n return total;\n }",
"Info mo7564ix();",
"public static int sizeBits_parentId() {\n return 16;\n }",
"@Override\n public int getSize() {\n return 64;\n }",
"private int m514b(int i, int i2) {\n return ((i + 7) + (i2 - 1)) / 7;\n }",
"public int getPartsMask()\r\n/* 62: */ {\r\n/* 63: 52 */ return this.CoverSides | 0x20000000;\r\n/* 64: */ }",
"private void m27469e() {\n int i;\n int i2 = this.f25262I * this.f25259F;\n if (this.f25281ae) {\n i = Integer.MIN_VALUE;\n } else {\n i = ((-this.f25259F) * (this.f25301p.size() - 1)) + i2;\n }\n this.f25264K = i;\n if (this.f25281ae) {\n i2 = Integer.MAX_VALUE;\n }\n this.f25265L = i2;\n }",
"@Override\n\tpublic float getHeight() {\n\t\treturn 26;\n\t}",
"public void init241()\n {\n\t \twidth= p2[21]<<24 | p2[20]<<16 | p2[19]<<8 | p2[18];\n\n\n\n\t\theight= p2[25]<<24 | p2[24]<<16 | p2[23]<<8 | p2[22];\n\n\n\t\tint extra=(width*3)%4;\n \tif(extra!=0)\n \tpadding=4-extra;\n int x,z=54;\n l=0;\n int j=0;\n i=0;\n for(int q=0;q<height;q++)\n {\n x=0;\n \t while(x<width)\n \t{\n \t b=p2[z]&0xff;\n binary[j++]=b&0x01;\n g=p2[z+1]&0xff;\n binary[j++]=g&0x01;\n \t r=p2[z+2]&0xff;\n binary[j++]=r&0x01;\n \t pix[l]= 255<<24 | r<<16 | g<<8 | b;\n z=z+3;\n x++;\n \t l++;\n }\n z=z+padding;\n }\n int k;\n x=0;\n stringcon();\n\n\n\tfor(i=l-width;i>=0;i=i-width)\n\t{\n\t\tfor(k=0;k<width;k++)\n\t\t{\n\t\tpixels[x]=pix[i+k];\n// pixels1[x]=pix[i+k];\n\t\tx++;\n\t\t}\n\t}\n}",
"public abstract int selfExplodingKittenDrawn();",
"public abstract long mo9746k();",
"private int createPosition (String s) {\r\n\t\tint x = 37;\r\n\t\tdouble hashCode=0;\r\n\t\tfor (int i=0; i<s.length(); i++) {\r\n\t\t\thashCode = (double) (hashCode+ (int)(s.charAt(s.length()-(i+1)))*(Math.pow(x,i)));\r\n\t\t}\r\n\t\treturn (int)(hashCode % size);\r\n\t}",
"public static int totalSize_entries_id() {\n return (176 / 8);\n }",
"public long currentProducerIndex()\r\n/* 229: */ {\r\n/* 230:483 */ return lvProducerIndex() / 2L;\r\n/* 231: */ }",
"public abstract long mo9229aD();",
"public abstract Integer mo36210m();",
"int steamPerDurability();",
"@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}",
"void ciff_block_1030()\n{\n int key[] = new int[2];\n key[0] = 0x410;\n key[1] = 0x45f3;\n int i, bpp, row, col, vbits=0;\n long bitbuf=0;\n\n get2();\n if ((get4()) != 0x80008 || get4()==0) return;\n bpp = get2();\n if (bpp != 10 && bpp != 12) return;\n for (i=row=0; row < 8; row++)\n for (col=0; col < 8; col++) {\n if (vbits < bpp) {\n\tbitbuf = bitbuf << 16 | (get2() ^ key[i++ & 1]);\n\tvbits += 16;\n }\n white[row][col] = ( char)( bitbuf << (LONG_BIT - vbits) >> (LONG_BIT - bpp));\n vbits -= bpp;\n }\n}",
"public int mo1067a() {\n return this.f3256d.size();\n }",
"void genPromote(Collection ret, int from, int to, int bits) {\n\tfor (char i = KNIGHT; i <= QUEEN; ++i) {\n\tBouger g = new Bouger(from, to, i, (bits | 32), 'P');\n\tg.setScore(1000000 + (i * 10));\n\tret.add(g);\n\t}\n\t}",
"private int getExpansionCount(int ce)\n {\n return ce & 0xF;\n }",
"public void init24()\n {\n\t \twidth= p[21]<<24 | p[20]<<16 | p[19]<<8 | p[18];\n\t\theight= p[25]<<24 | p[24]<<16 | p[23]<<8 | p[22];\n\t\tint extra=(width*3)%4;\n \tif(extra!=0)\n \tpadding=4-extra;\n int x,z=54;\n l=0;\n int j=0;\n for(int q=0;q<height;q++)\n {\n x=0;\n \t while(x<width)\n \t {\n \t b=p[z]&0xff;\n if(j<maxbinary)\n {\n if(binary[j]!=0)\n {\n p1[z]=p[z]&0xff|binary[j++];\n b1=p1[z]&0xff;\n }\n else\n {\n p1[z]=p[z]&0xff & (binary[j++]|0xfe);\n b1=p1[z]&0xff;\n }\n }\n else\n b1=p[z]&0xff;\n \tg=p[z+1]&0xff;\n if(j<maxbinary)\n {\n if(binary[j]!=0)\n {\n p1[z+1]=p[z+1]&0xff|binary[j++];\n g1=p[z+1]&0xff;\n }\n else\n {\n p1[z+1]=p[z+1]&0xff & (binary[j++]|0xfe);\n g1=p1[z+1]&0xff;\n }\n }\n else\n g1=p[z]&0xff;\n r=p[z+2]&0xff;\n if(j<maxbinary)\n {\n if(binary[j]!=0)\n {\n p1[z+2]=p[z+2]&0xfe|binary[j++];\n r1=p[z+2]&0xff;\n }\n else\n {\n p1[z+2]=p[z+2]&0xff & (binary[j++]|0xfe);\n r1=p1[z+2]&0xff;\n }\n }\n else\n r1=p[z]&0xff;\n\tz=z+3;\n\tpix[l]= 255<<24 | r<<16 | g<<8 | b;\n pix1[l]= 255<<24 | r1<<16 | g1<<8 | b1;\n\tl++;\n\tx++;\n\t}\nz=z+padding;\n}\nint k;\nx=0;\n\tfor(i=l-width;i>=0;i=i-width) //l=WIDTH * height\n\t{\n\t\tfor(k=0;k<width;k++)\n\t\t{\n\t\tpixels[x]=pix[i+k];\n pixels1[x]=pix[i+k];\n\t\tx++;\n\t\t}\n\t}\n }",
"public int getSnakeStartLength();",
"public void method_258(int var1, int var2, int var3, int var4, int var5, int var6, int var7, int var8, boolean var9) {\n try {\n if(var6 == 0) {\n var6 = 16777215;\n }\n\n if(var7 == 0) {\n var7 = 16777215;\n }\n\n int var10 = this.field_736[var5];\n int var11 = this.field_737[var5];\n int var12 = 0;\n int var13 = 0;\n int var14 = var8 << 16;\n int var15 = (var10 << 16) / var3;\n int var16 = (var11 << 16) / var4;\n int var17 = -(var8 << 16) / var4;\n int var18;\n int var19;\n if(this.field_742[var5]) {\n var18 = this.spriteWidthFull[var5];\n var19 = this.field_741[var5];\n var15 = (var18 << 16) / var3;\n var16 = (var19 << 16) / var4;\n int var20 = this.field_738[var5];\n int var21 = this.field_739[var5];\n if(var9) {\n var20 = var18 - this.field_736[var5] - var20;\n }\n\n var1 += (var20 * var3 + var18 - 1) / var18;\n int var22 = (var21 * var4 + var19 - 1) / var19;\n var2 += var22;\n var14 += var22 * var17;\n if(var20 * var3 % var18 != 0) {\n var12 = (var18 - var20 * var3 % var18 << 16) / var3;\n }\n\n if(var21 * var4 % var19 != 0) {\n var13 = (var19 - var21 * var4 % var19 << 16) / var4;\n }\n\n var3 = ((this.field_736[var5] << 16) - var12 + var15 - 1) / var15;\n var4 = ((this.field_737[var5] << 16) - var13 + var16 - 1) / var16;\n }\n\n var18 = var2 * this.field_723;\n var14 += var1 << 16;\n if(var2 < this.field_743) {\n var19 = this.field_743 - var2;\n var4 -= var19;\n var2 = this.field_743;\n var18 += var19 * this.field_723;\n var13 += var16 * var19;\n var14 += var17 * var19;\n }\n\n if(var2 + var4 >= this.field_744) {\n var4 -= var2 + var4 - this.field_744 + 1;\n }\n\n var19 = var18 / this.field_723 & 1;\n if(!this.interlace) {\n var19 = 2;\n }\n\n if(var7 == 16777215) {\n if(this.spritePixels[var5] != null) {\n if(!var9) {\n this.method_259(this.pixels, this.spritePixels[var5], 0, var12, var13, var18, var3, var4, var15, var16, var10, var6, var14, var17, var19);\n } else {\n this.method_259(this.pixels, this.spritePixels[var5], 0, (this.field_736[var5] << 16) - var12 - 1, var13, var18, var3, var4, -var15, var16, var10, var6, var14, var17, var19);\n }\n } else if(!var9) {\n this.method_261(this.pixels, this.spriteColoursUsed[var5], this.spriteColourList[var5], 0, var12, var13, var18, var3, var4, var15, var16, var10, var6, var14, var17, var19);\n } else {\n this.method_261(this.pixels, this.spriteColoursUsed[var5], this.spriteColourList[var5], 0, (this.field_736[var5] << 16) - var12 - 1, var13, var18, var3, var4, -var15, var16, var10, var6, var14, var17, var19);\n }\n } else if(this.spritePixels[var5] != null) {\n if(!var9) {\n this.method_260(this.pixels, this.spritePixels[var5], 0, var12, var13, var18, var3, var4, var15, var16, var10, var6, var7, var14, var17, var19);\n } else {\n this.method_260(this.pixels, this.spritePixels[var5], 0, (this.field_736[var5] << 16) - var12 - 1, var13, var18, var3, var4, -var15, var16, var10, var6, var7, var14, var17, var19);\n }\n } else if(!var9) {\n this.method_262(this.pixels, this.spriteColoursUsed[var5], this.spriteColourList[var5], 0, var12, var13, var18, var3, var4, var15, var16, var10, var6, var7, var14, var17, var19);\n } else {\n this.method_262(this.pixels, this.spriteColoursUsed[var5], this.spriteColourList[var5], 0, (this.field_736[var5] << 16) - var12 - 1, var13, var18, var3, var4, -var15, var16, var10, var6, var7, var14, var17, var19);\n }\n } catch (Exception var23) {\n System.out.println(\"error in sprite clipping routine\"); // authentic System.out.println\n }\n }",
"private int m10257E() throws cf {\r\n int i = 0;\r\n int i2;\r\n if (this.g.mo1996h() >= 5) {\r\n byte[] f = this.g.mo1994f();\r\n int g = this.g.mo1995g();\r\n i2 = 0;\r\n int i3 = 0;\r\n while (true) {\r\n byte b = f[g + i];\r\n i3 |= (b & 127) << i2;\r\n if ((b & 128) != 128) {\r\n this.g.mo1993a(i + 1);\r\n return i3;\r\n }\r\n i2 += 7;\r\n i++;\r\n }\r\n } else {\r\n i2 = 0;\r\n while (true) {\r\n byte u = mo1978u();\r\n i2 |= (u & 127) << i;\r\n if ((u & 128) != 128) {\r\n return i2;\r\n }\r\n i += 7;\r\n }\r\n }\r\n }",
"private void mo3747b() {\n this.f1427B.add(this.f1490s);\n this.f1427B.add(this.f1491t);\n this.f1427B.add(this.f1492u);\n this.f1427B.add(this.f1493v);\n this.f1427B.add(this.f1495x);\n this.f1427B.add(this.f1496y);\n this.f1427B.add(this.f1497z);\n this.f1427B.add(this.f1494w);\n }",
"public static void main(String[] args) {\n int[][] bn = new int[127][];\n \n for(int i = 1; i <128; i++)\n {\n int m = (int) (Math.log10(i)/Math.log10(2));\n \n int l = i, j = 2*m; int[] b = new int[2*m+1]; \n \n while(l >= 1)\n {\n int k = l;\n l = l/2;\n \n b[j] = k - l*2; j--;\n }\n \n bn[i-1] = b;\n }\n \n /*int[] ds = new int[255*255*8];*/ int[] df = new int[14]; Arrays.fill(df, 0);\n //int l = 0;\n \n for(int i = 0; i <127; i++)\n {\n for(int j = 0; j<127; j++)\n {\n int k, d = 0;\n for(k = 0; k < bn[i].length; k++)\n { \n if(bn[i][k] == 0)\n {\n d++;\n }\n else if(d > 0)\n {\n //System.out.print(d+\",\");\n df[d-1]++; d = 0;\n }\n }\n \n for(k = 0; k < bn[j].length; k++)\n {\n if(bn[j][k] == 0)\n {\n d++;\n }\n else if(d > 0)\n {\n //System.out.print(d+\",\");\n df[d-1]++; d = 0;\n }\n }\n \n if(d > 0)\n {\n //System.out.print(d+\",\");\n df[d-1]++; d = 0;\n }\n }\n }\n double sum = sum(df); int[] numb = {1,3,3,5,5,5,5,7,7,7,7,7,7,7,7}; int tb = 0;\n \n for(int i = 0; i < 14; i++)\n {\n tb = tb + (int)((df[i]*100/sum) + 0.5)*numb[i];\n \n System.out.print((int)((df[i]*100/sum) + 0.5)+\",\");\n }\n System.out.println();\n System.out.println(tb);\n }",
"private int m128366a() {\n String c = C40173d.m128358c();\n if (!new File(c).exists()) {\n new File(c).mkdirs();\n }\n for (MediaModel mediaModel : this.f104446a) {\n String str = mediaModel.f88156b;\n C7573i.m23582a((Object) str, \"model.filePath\");\n if (C40173d.m128357b(str)) {\n Bitmap a = C40168a.f104413a.mo99928a(mediaModel.f88156b, 720, 1280);\n if (a != null) {\n StringBuilder sb = new StringBuilder();\n sb.append(c);\n sb.append(C40173d.m128354a(\".png\"));\n String sb2 = sb.toString();\n C42341f.m134636a(a, new File(sb2), 50, CompressFormat.PNG);\n C40168a.m128334a(a);\n mediaModel.f88156b = sb2;\n }\n }\n }\n return 0;\n }",
"public static int size_counter() {\n return (32 / 8);\n }",
"default int getCompositeBitLength() {\n return getHighBitLength() + getLowBitLength();\n }",
"public Integer getWidth(){return this.width;}",
"public int mo9732a() {\n return this.f9084k + this.f9082i;\n }",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public static int offset_count() {\n return (16 / 8);\n }",
"public double getPerimiter(){return (2*height +2*width);}",
"int getPicSize(int pos) throws IOException\r\n {\n\r\n int out = pos;\r\n int jump = 0;\r\n byte ptrPar; // pointer parameter\r\n\r\n byte b = readByteFromRom(ch, out);\r\n\r\n while (b != (byte) 0xFF)\r\n {\r\n switch (b & 0b111_00000)\r\n {\r\n case (0b000_00000): // command with n parameters\r\n byte bMask = (byte) 0b0001_1111;\r\n jump = (byteToValue((byte) (b & bMask)) + 1) + 1;\r\n break;\r\n case (0b001_00000): // command with one parameter\r\n jump = 1 + 1;\r\n break;\r\n case (0b010_00000): // command with two parameters\r\n jump = 2 + 1;\r\n break;\r\n case (0b011_00000): // command with no parameters\r\n jump = 0 + 1;\r\n break;\r\n case (0b100_00000): // commands with pointer parameters\r\n case (0b101_00000):\r\n case (0b110_00000):\r\n ptrPar = readByteFromRom(ch, out + 1);\r\n if ((ptrPar & 0b1000_0000) == 0b1000_0000) // 7-bit negative offset\r\n {\r\n jump = 1 + 1;\r\n }\r\n else // 15-bit positive offset\r\n {\r\n jump = 2 + 1;\r\n }\r\n break;\r\n case (0b111_00000): // lz long\r\n byte[] c = readFromRom(ch, out, 2);\r\n switch (c[0] & 0b000_111_00)\r\n {\r\n case (0b000_000_00): // command with n parameters\r\n byte[] b2Mask = new byte[2];\r\n b2Mask[0] = (byte) 0b0000_0011;\r\n b2Mask[1] = (byte) 0b1111_1111;\r\n jump = (byteToValue((byte) (c[0] & b2Mask[0])) * 0x100 + byteToValue((byte) (c[1] & b2Mask[1])) + 1) + 2;\r\n break;\r\n case (0b000_001_00): // command with one parameter\r\n jump = 1 + 2;\r\n break;\r\n case (0b000_010_00): // command with two parameters\r\n jump = 2 + 2;\r\n break;\r\n case (0b000_011_00): // command with no parameters\r\n jump = 0 + 2;\r\n break;\r\n case (0b000_100_00): // commands with pointer parameters\r\n case (0b000_101_00):\r\n case (0b000_110_00):\r\n ptrPar = readByteFromRom(ch, out + 2);\r\n if ((ptrPar & 0b1000_0000) == 0b1000_0000) // 7-bit negative offset\r\n {\r\n jump = 1 + 2;\r\n }\r\n else // 15-bit positive offset\r\n {\r\n jump = 2 + 2;\r\n }\r\n break;\r\n default:\r\n break;\r\n }\r\n break;\r\n default:\r\n break;\r\n }\r\n\r\n out += jump;\r\n b = readByteFromRom(ch, out);\r\n }\r\n return (out - pos + 1);\r\n }",
"public float spiderScaleAmount()\n {\nreturn 1F;\n }",
"public int mo9232aG() {\n return 0;\n }",
"int getWayLength();",
"public int mo3354b() {\n return Math.max(0, getChildAt(0).getHeight() - ((getHeight() - getPaddingTop()) - getPaddingBottom()));\n }",
"@Override\n public int howManyXp() {\n return 2;\n }",
"public int getIconWidth()\r\n/* 154: */ {\r\n/* 155:194 */ return SIZE;\r\n/* 156: */ }",
"public int mo27480a() {\n return 0;\n }"
] | [
"0.56302947",
"0.5582685",
"0.5498562",
"0.54105353",
"0.54050684",
"0.5376962",
"0.5352394",
"0.53474134",
"0.5330335",
"0.53227866",
"0.5317571",
"0.53164",
"0.5311871",
"0.5279454",
"0.527457",
"0.52497196",
"0.52195394",
"0.5207208",
"0.5188227",
"0.5185443",
"0.51808757",
"0.5179783",
"0.5178693",
"0.5172638",
"0.51682216",
"0.5166538",
"0.5163931",
"0.515966",
"0.51535743",
"0.5135385",
"0.51337665",
"0.51258206",
"0.5121869",
"0.5118154",
"0.5117527",
"0.5112391",
"0.5105743",
"0.51027566",
"0.51027566",
"0.50994605",
"0.5096947",
"0.5085188",
"0.5080585",
"0.50756645",
"0.5073661",
"0.50676215",
"0.5063017",
"0.5060839",
"0.5056708",
"0.50537556",
"0.5052669",
"0.5043674",
"0.5037646",
"0.503474",
"0.50332105",
"0.5026027",
"0.5025863",
"0.502259",
"0.5019344",
"0.5012176",
"0.5008442",
"0.50083935",
"0.5006682",
"0.5006471",
"0.5006102",
"0.5003822",
"0.5003428",
"0.50000113",
"0.49988255",
"0.49975893",
"0.4997136",
"0.49961805",
"0.49909604",
"0.49892706",
"0.49892452",
"0.49860227",
"0.49839935",
"0.49748018",
"0.4974284",
"0.49726927",
"0.49726257",
"0.49725792",
"0.4971809",
"0.49696648",
"0.496757",
"0.496628",
"0.49561352",
"0.49542522",
"0.49520335",
"0.49514365",
"0.49502268",
"0.49463072",
"0.4946165",
"0.49373516",
"0.4929887",
"0.4928754",
"0.49270114",
"0.49254328",
"0.49250984",
"0.4924348",
"0.4924267"
] | 0.0 | -1 |
/ / / / / / / / / / / / / 260 | public long toMillisecond(long value) { return value; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public int getWidth() {\n return 260;\n }",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"long getWidth();",
"BigInteger getWidth();",
"int getWidth() {return width;}",
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"@Override\n\tpublic int computeSize() {\n\t\treturn 36;\n\t}",
"public Integer getWidth(){return this.width;}",
"@Override\n public int getSize() {\n return 64;\n }",
"Length getWidth();",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"public int getIconWidth()\r\n/* 50: */ {\r\n/* 51: 99 */ return SIZE;\r\n/* 52: */ }",
"static int getNumPatterns() { return 64; }",
"int width();",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public int width();",
"String getWidth();",
"String getWidth();",
"public static int size_parentId() {\n return (16 / 8);\n }",
"public abstract double getBaseWidth();",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"double getNewWidth();",
"void mo33732Px();",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"int fixedSize();",
"@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }",
"public int getIconWidth()\r\n/* 154: */ {\r\n/* 155:194 */ return SIZE;\r\n/* 156: */ }",
"public int getWidth(){\n return width;\n }",
"public int getWidth(){\n \treturn width;\n }",
"public int getWidth()\n {return width;}",
"public int getPatchNameLength() \n {\n return 16; \n }",
"public double width() { return _width; }",
"public int getPathLength();",
"LengthSmaller createLengthSmaller();",
"public int get_length();",
"int getTribeSize();",
"public abstract int getSmallStackSizeWishInKb();",
"@Override\r\n\tpublic int size() {\n\t\treturn 27;\r\n\t}",
"public int getLargeur() {\n return getWidth();\n }",
"public int getWidth() {\n // Replace the following line with your solution.\n return width;\n }",
"protected int bytesPerAtom() {\n return (2);\n }",
"protected int bytesPerAtom() {\n return (2);\n }",
"public int getTileWidth() {\n return 8;\n }",
"public static float getHalfTileWidth() {\r\n\t\treturn 64;\r\n\t}",
"long getSize();",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"public static int sizeBits_parentId() {\n return 16;\n }",
"int getHighBitLength();",
"public int getWidth() { return width; }",
"public int getWidth() { return width; }",
"@Override\r\n protected int sizeOf(String key, Bitmap b) {\n return b.getHeight() * b.getWidth() * 4;\r\n }",
"public int getActualTileWidth() {\n return 32;\n }",
"public int minBytesPerChar();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"public static int size_parent() {\n return (8 / 8);\n }",
"default int getCompositeBitLength() {\n return getHighBitLength() + getLowBitLength();\n }",
"public static int getMaxSize(){\n\t\treturn 2* 4;\n\t}",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"public int getWidth(){\n return width;\n }",
"public abstract int getWidth();",
"private static int m36201b(Rect rect) {\n return rect.width() * rect.height();\n }",
"Integer getCurrentWidth();",
"int getSpriteArraySize();",
"public int getUnitSize() {\n\t\n\treturn 254; // A d64 block is 254 bytes (256 - pointer to the next sector).\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"int getWayLength();",
"int getSize ();",
"public int getSnakeStartLength();",
"short getFitWidth();",
"public int mo12191c() {\n return this.f10948c.limit() + this.f10957l.length + (this.f10958m.length * 4);\n }",
"public abstract int getMediumStackSizeWishInKb();",
"int getWidth()\n {\n return width;\n }",
"@Override\n\tpublic int getWidth() {\n\t\treturn 0;\n\t}",
"public int getTakeSpace() {\n return 0;\n }",
"public byte getWidth();",
"void setKeySize(int size);",
"double getWidth();",
"double getWidth();",
"public static int size_estLength() {\n return (8 / 8);\n }",
"public void setDimensionRatio(java.lang.String r9) {\n /*\n r8 = this;\n r0 = 0;\n if (r9 == 0) goto L_0x008e;\n L_0x0003:\n r1 = r9.length();\n if (r1 != 0) goto L_0x000b;\n L_0x0009:\n goto L_0x008e;\n L_0x000b:\n r1 = -1;\n r2 = r9.length();\n r3 = 44;\n r3 = r9.indexOf(r3);\n r4 = 0;\n r5 = 1;\n if (r3 <= 0) goto L_0x0037;\n L_0x001a:\n r6 = r2 + -1;\n if (r3 >= r6) goto L_0x0037;\n L_0x001e:\n r6 = r9.substring(r4, r3);\n r7 = \"W\";\n r7 = r6.equalsIgnoreCase(r7);\n if (r7 == 0) goto L_0x002c;\n L_0x002a:\n r1 = 0;\n goto L_0x0035;\n L_0x002c:\n r4 = \"H\";\n r4 = r6.equalsIgnoreCase(r4);\n if (r4 == 0) goto L_0x0035;\n L_0x0034:\n r1 = 1;\n L_0x0035:\n r4 = r3 + 1;\n L_0x0037:\n r3 = 58;\n r3 = r9.indexOf(r3);\n if (r3 < 0) goto L_0x0075;\n L_0x003f:\n r2 = r2 - r5;\n if (r3 >= r2) goto L_0x0075;\n L_0x0042:\n r2 = r9.substring(r4, r3);\n r3 = r3 + r5;\n r9 = r9.substring(r3);\n r3 = r2.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0051:\n r3 = r9.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0057:\n r2 = java.lang.Float.parseFloat(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n r3 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0063:\n r3 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0067:\n if (r1 != r5) goto L_0x006f;\n L_0x0069:\n r9 = r9 / r2;\n r9 = java.lang.Math.abs(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x006f:\n r2 = r2 / r9;\n r9 = java.lang.Math.abs(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0075:\n r9 = r9.substring(r4);\n r2 = r9.length();\n if (r2 <= 0) goto L_0x0084;\n L_0x007f:\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0084:\n r9 = 0;\n L_0x0085:\n r0 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r0 <= 0) goto L_0x008d;\n L_0x0089:\n r8.mDimensionRatio = r9;\n r8.mDimensionRatioSide = r1;\n L_0x008d:\n return;\n L_0x008e:\n r8.mDimensionRatio = r0;\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.constraint.solver.widgets.ConstraintWidget.setDimensionRatio(java.lang.String):void\");\n }",
"public int getBlockSize()\n/* */ {\n/* 43 */ return this.blockSize;\n/* */ }",
"@Override\r\n\t\tpublic int recArea() {\n\t\t\treturn length*width;\r\n\t\t}",
"public int get_resource_distance() {\n return 1;\r\n }",
"public abstract long getLength();",
"public abstract long getLength();"
] | [
"0.61018103",
"0.59025544",
"0.5796835",
"0.57514644",
"0.57251346",
"0.5712425",
"0.56953716",
"0.5679688",
"0.5669128",
"0.5624107",
"0.56186485",
"0.5583614",
"0.5551445",
"0.5543816",
"0.5506743",
"0.54704237",
"0.54569876",
"0.54569876",
"0.5447675",
"0.5442602",
"0.5426984",
"0.5422433",
"0.5414823",
"0.54086083",
"0.5404629",
"0.5387128",
"0.5385288",
"0.53849417",
"0.53812957",
"0.5380162",
"0.5365819",
"0.53644323",
"0.53593427",
"0.5355993",
"0.53378165",
"0.5334895",
"0.5327898",
"0.53263575",
"0.53166866",
"0.5307653",
"0.5298939",
"0.5298939",
"0.5295322",
"0.52911335",
"0.5290466",
"0.5284998",
"0.52836835",
"0.52729905",
"0.5266329",
"0.5266329",
"0.5265692",
"0.5260955",
"0.5259331",
"0.52569324",
"0.52569324",
"0.52569324",
"0.52569324",
"0.52569324",
"0.52569324",
"0.52569324",
"0.52569324",
"0.52569324",
"0.52569324",
"0.52569324",
"0.52569324",
"0.52569324",
"0.52569324",
"0.52569324",
"0.52569324",
"0.52569324",
"0.52504164",
"0.524202",
"0.52379024",
"0.523265",
"0.5230964",
"0.5225432",
"0.5221083",
"0.52183235",
"0.521652",
"0.5213778",
"0.520913",
"0.5204353",
"0.52028257",
"0.5197669",
"0.5192396",
"0.51921725",
"0.51904327",
"0.518234",
"0.5179392",
"0.51716274",
"0.51715636",
"0.51707155",
"0.5158629",
"0.5158629",
"0.51525414",
"0.5151602",
"0.5147476",
"0.514289",
"0.51421875",
"0.51342154",
"0.51342154"
] | 0.0 | -1 |
/ / / / / / / / / / / / / 273 | public boolean containsDomainValue(long millisecond) { return true; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"public int mo36g() {\n return 8;\n }",
"void mo33732Px();",
"public void getTile_B8();",
"public static double computeDiameter(int wireGauge)\r\n{ \r\n return 0.127 * Math.pow(92.0, (36.0 - wireGauge) / 39.0); \r\n}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }",
"public Integer getWidth(){return this.width;}",
"long getMid();",
"long getMid();",
"private int getBinJ(Location l)\r\n {\r\n return (int)((l.getY()-bl.getY())/dj);\r\n }",
"double volume(){\n return width*height*depth;\n }",
"long getUnknown72();",
"static int getNumPatterns() { return 64; }",
"@Override\r\n\tpublic int unitsToWagger() {\n\t\treturn 0;\r\n\t}",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"public int mo36g() {\n return 4;\n }",
"BigInteger getWidth();",
"private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }",
"private int K(int t)\n {\n if(t<=19)\n return 0x5a827999;\n else if(t<=39)\n return 0x6ed9eba1;\n else if(t<=59)\n return 0x8f1bbcdc;\n else \n return 0xca62c1d6;\n }",
"int getHeatCode(int x, int y);",
"public static int offset_cost() {\n return (56 / 8);\n }",
"private int m672E() {\n int i = 0;\n if (this.f552g.mo501h() >= 5) {\n byte[] f = this.f552g.mo499f();\n int g = this.f552g.mo500g();\n int i2 = 0;\n int i3 = 0;\n while (true) {\n byte b = f[g + i];\n i2 |= (b & Byte.MAX_VALUE) << i3;\n if ((b & 128) != 128) {\n this.f552g.mo495a(i + 1);\n return i2;\n }\n i3 += 7;\n i++;\n }\n } else {\n int i4 = 0;\n while (true) {\n byte u = mo470u();\n i |= (u & Byte.MAX_VALUE) << i4;\n if ((u & 128) != 128) {\n return i;\n }\n i4 += 7;\n }\n }\n }",
"double volume(){\n\n return widgh*height*depth;\n\n }",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void setDimensionRatio(java.lang.String r9) {\n /*\n r8 = this;\n r0 = 0;\n if (r9 == 0) goto L_0x008e;\n L_0x0003:\n r1 = r9.length();\n if (r1 != 0) goto L_0x000b;\n L_0x0009:\n goto L_0x008e;\n L_0x000b:\n r1 = -1;\n r2 = r9.length();\n r3 = 44;\n r3 = r9.indexOf(r3);\n r4 = 0;\n r5 = 1;\n if (r3 <= 0) goto L_0x0037;\n L_0x001a:\n r6 = r2 + -1;\n if (r3 >= r6) goto L_0x0037;\n L_0x001e:\n r6 = r9.substring(r4, r3);\n r7 = \"W\";\n r7 = r6.equalsIgnoreCase(r7);\n if (r7 == 0) goto L_0x002c;\n L_0x002a:\n r1 = 0;\n goto L_0x0035;\n L_0x002c:\n r4 = \"H\";\n r4 = r6.equalsIgnoreCase(r4);\n if (r4 == 0) goto L_0x0035;\n L_0x0034:\n r1 = 1;\n L_0x0035:\n r4 = r3 + 1;\n L_0x0037:\n r3 = 58;\n r3 = r9.indexOf(r3);\n if (r3 < 0) goto L_0x0075;\n L_0x003f:\n r2 = r2 - r5;\n if (r3 >= r2) goto L_0x0075;\n L_0x0042:\n r2 = r9.substring(r4, r3);\n r3 = r3 + r5;\n r9 = r9.substring(r3);\n r3 = r2.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0051:\n r3 = r9.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0057:\n r2 = java.lang.Float.parseFloat(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n r3 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0063:\n r3 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0067:\n if (r1 != r5) goto L_0x006f;\n L_0x0069:\n r9 = r9 / r2;\n r9 = java.lang.Math.abs(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x006f:\n r2 = r2 / r9;\n r9 = java.lang.Math.abs(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0075:\n r9 = r9.substring(r4);\n r2 = r9.length();\n if (r2 <= 0) goto L_0x0084;\n L_0x007f:\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0084:\n r9 = 0;\n L_0x0085:\n r0 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r0 <= 0) goto L_0x008d;\n L_0x0089:\n r8.mDimensionRatio = r9;\n r8.mDimensionRatioSide = r1;\n L_0x008d:\n return;\n L_0x008e:\n r8.mDimensionRatio = r0;\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.constraint.solver.widgets.ConstraintWidget.setDimensionRatio(java.lang.String):void\");\n }",
"public static int offset_sum_e() {\n return (104 / 8);\n }",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"@Override\n\tpublic float getHeight() {\n\t\treturn 26;\n\t}",
"int getWayLength();",
"C5537g mo4096b(int i);",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"int getMinimalPaletteDistance();",
"int getChargerCurrentRaw();",
"public int getEncPosition() {\n //System.out.println(this.EncX.getRaw() + \"raw\");\n return (int) (1000 * this.EncX.getDistance());\n //return (int)(1000 * this.EncX.getRaw() / 8.6);\n \n }",
"long getWidth();",
"public final int mo30256g() {\n return this.f7581c.f7036c.size();\n }",
"public int mo9774x() {\n /*\n r5 = this;\n int r0 = r5.f9082i\n int r1 = r5.f9080g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9082i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9776z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9082i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9774x():int\");\n }",
"public int getSingles() {\n return h-(d+t+hr);\n }",
"public int getMobCap()\r\n/* 24: */ {\r\n/* 25:41 */ return this.f;\r\n/* 26: */ }",
"private int[] m7232h() {\n this.f5578C[0] = this.f5594p;\n this.f5578C[1] = this.f5599u - this.f5594p;\n return this.f5578C;\n }",
"int getLatE6();",
"int getLatE6();",
"double volume() {\n\treturn width*height*depth;\n}",
"int getWidth() {return width;}",
"int getMid(int s, int e) {\n return s + (e - s) / 2;\n }",
"private static int m36201b(Rect rect) {\n return rect.width() * rect.height();\n }",
"private int abstToDeskX(float x)\n {\n return (int)(width*x);\n }",
"public static int offset_count() {\n return (16 / 8);\n }",
"Integer getDataLgth();",
"public static int offset_quality() {\n return (48 / 8);\n }",
"private int m216e(float f) {\n int i = (int) (f + 0.5f);\n return i % 2 == 1 ? i - 1 : i;\n }",
"public final int mo91939E() {\n return C21085a.m71117a().mo56926b() + this.f94791al.getHeight() + this.mStatusView.getHeight();\n }",
"public int getCurrRuptures();",
"public static int offset_parent() {\n return (40 / 8);\n }",
"Info mo7564ix();",
"public int getIconWidth()\r\n/* 50: */ {\r\n/* 51: 99 */ return SIZE;\r\n/* 52: */ }",
"protected int bytesPerAtom() {\n return (2);\n }",
"protected int bytesPerAtom() {\n return (2);\n }",
"private int getBinI(Location l)\r\n {\r\n return (int)((l.getX()-bl.getX())/di);\r\n }",
"public int mo3354b() {\n return Math.max(0, getChildAt(0).getHeight() - ((getHeight() - getPaddingTop()) - getPaddingBottom()));\n }",
"public int getTaillePoule (){\n\t\treturn 3;\n\t}",
"@Override\n public double tuition(){\n return 2500;\n }",
"@Override\n public int getWidth() {\n return 260;\n }",
"public long mo9773w() {\n int i = this.f9082i;\n if (this.f9080g - i < 8) {\n mo9768h(8);\n i = this.f9082i;\n }\n byte[] bArr = this.f9079f;\n this.f9082i = i + 8;\n return ((((long) bArr[i + 7]) & 255) << 56) | (((long) bArr[i]) & 255) | ((((long) bArr[i + 1]) & 255) << 8) | ((((long) bArr[i + 2]) & 255) << 16) | ((((long) bArr[i + 3]) & 255) << 24) | ((((long) bArr[i + 4]) & 255) << 32) | ((((long) bArr[i + 5]) & 255) << 40) | ((((long) bArr[i + 6]) & 255) << 48);\n }",
"int regionSplitBits4DownSampledTable();",
"public int arn() {\n return 383;\n }",
"private static double fds_h(Vec v) { return 2*ASTMad.mad(new Frame(v), null, 1.4826)*Math.pow(v.length(),-1./3.); }",
"public double width() { return _width; }",
"public int mo9785x() {\n /*\n r10 = this;\n long r0 = r10.f9091i\n long r2 = r10.f9090h\n int r2 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1))\n if (r2 != 0) goto L_0x000a\n goto L_0x0085\n L_0x000a:\n r2 = 1\n long r4 = r0 + r2\n byte r0 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r0)\n if (r0 < 0) goto L_0x0017\n r10.f9091i = r4\n return r0\n L_0x0017:\n long r6 = r10.f9090h\n long r6 = r6 - r4\n r8 = 9\n int r1 = (r6 > r8 ? 1 : (r6 == r8 ? 0 : -1))\n if (r1 >= 0) goto L_0x0021\n goto L_0x0085\n L_0x0021:\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n int r1 = r1 << 7\n r0 = r0 ^ r1\n if (r0 >= 0) goto L_0x002f\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x008b\n L_0x002f:\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x003e\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x003c:\n r6 = r4\n goto L_0x008b\n L_0x003e:\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n int r1 = r1 << 21\n r0 = r0 ^ r1\n if (r0 >= 0) goto L_0x004e\n r1 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r1\n goto L_0x008b\n L_0x004e:\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n int r6 = r1 << 28\n r0 = r0 ^ r6\n r6 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r6\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n L_0x0085:\n long r0 = r10.mo9787z()\n int r0 = (int) r0\n return r0\n L_0x008b:\n r10.f9091i = r6\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3661d.mo9785x():int\");\n }",
"private int getOffsetByResolution(int width) {\n Const.CURRENT_WIDTH = width;\n int result;\n int num = width / 160;\n result = num * 20;\n return result;\n }",
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"public static int offset_min() {\n return (56 / 8);\n }",
"public float spiderScaleAmount()\n {\nreturn 1F;\n }",
"public int mo9732a() {\n return this.f9084k + this.f9082i;\n }",
"float getFixedHotwordGain();",
"public static int offset_sampleCnt() {\n return (24 / 8);\n }",
"public int mo1067a() {\n return this.f3256d.size();\n }",
"public int getFixedPoint(int i) {\n/* 161 */ return this.e.getFixedPoint(i);\n/* */ }",
"private int parent(int i){return (i-1)/2;}",
"public int GetGlyphCount(int prev_count)\n {\n //3/6/2018\n //only using tray sensor for super regionals\n int count = 0;\n if (sensor_tray.getDistance(DistanceUnit.CM) < TRAY_GLYPH_DISTANCE)\n {\n count= 2 ;\n }\n /*else if(sensor_door.getDistance(DistanceUnit.CM) <DOOR_GLYPH_DISTANCE)\n {\n count = 1;\n }*/\n /*\n int count = prev_count;\n switch (prev_count) {\n case 0:\n if (sensor_door.getDistance() > DOOR_GLYPH_DISTANCE ) // Not SEEN Glyph by Door sensor, no need to check TRAY sensor\n count = 0;\n else if (sensor_tray.getDistance() < TRAY_GLYPH_DISTANCE){ // TRAY sensor sees Glyph in the back\n count = 2;\n }\n else // only the door sensor sees the glyph.\n {\n count = 1;\n }\n break;\n case 1:\n if (sensor_tray.getDistance() < TRAY_GLYPH_DISTANCE)\n count = 2;\n\n break;\n }*/\n RobotLog.vv(\"GlyphCount\", \"%d\", count);\n return count;\n }",
"public int mo163c() {\n int size = this.f1963b.size();\n if (size < 1) {\n return 0;\n }\n int i = f1962a;\n return ((size / i) * (Lca.m828b(i) + 4)) + 4 + Lca.m828b(size % i);\n }",
"private int[] m7231g() {\n this.f5577B[0] = this.f5594p;\n this.f5577B[1] = this.f5600v - this.f5594p;\n return this.f5577B;\n }",
"public static int offset_counter() {\n return (8 / 8);\n }",
"public int getIconHeight()\r\n/* 55: */ {\r\n/* 56:100 */ return SIZE;\r\n/* 57: */ }",
"public int mo80c() {\n return 7;\n }",
"public int tget() {\n return denom_hi * 256 + denom_lo;\n }",
"public double getPerimiter(){return (2*height +2*width);}",
"private static double freqOfKey(int index) {\n return 440 * Math.pow(2, (double) (index - 12) / 24);\n }",
"public long mo9775y() {\n /*\n r11 = this;\n int r0 = r11.f9082i\n int r1 = r11.f9080g\n if (r1 != r0) goto L_0x0008\n goto L_0x00b6\n L_0x0008:\n byte[] r2 = r11.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0014\n r11.f9082i = r3\n long r0 = (long) r0\n return r0\n L_0x0014:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x001b\n goto L_0x00b6\n L_0x001b:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0029\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n L_0x0026:\n long r2 = (long) r0\n goto L_0x00bd\n L_0x0029:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x003a\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n long r0 = (long) r0\n r9 = r0\n r1 = r3\n r2 = r9\n goto L_0x00bd\n L_0x003a:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0048\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0026\n L_0x0048:\n long r3 = (long) r0\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r5 = (long) r1\n r1 = 28\n long r5 = r5 << r1\n long r3 = r3 ^ r5\n r5 = 0\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 < 0) goto L_0x005f\n r1 = 266354560(0xfe03f80, double:1.315966377E-315)\n L_0x005b:\n long r2 = r3 ^ r1\n r1 = r0\n goto L_0x00bd\n L_0x005f:\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n r0 = 35\n long r7 = r7 << r0\n long r3 = r3 ^ r7\n int r0 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x0074\n r5 = -34093383808(0xfffffff80fe03f80, double:NaN)\n L_0x0071:\n long r2 = r3 ^ r5\n goto L_0x00bd\n L_0x0074:\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r7 = (long) r1\n r1 = 42\n long r7 = r7 << r1\n long r3 = r3 ^ r7\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 < 0) goto L_0x0087\n r1 = 4363953127296(0x3f80fe03f80, double:2.1560793202584E-311)\n goto L_0x005b\n L_0x0087:\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n r0 = 49\n long r7 = r7 << r0\n long r3 = r3 ^ r7\n int r0 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x009a\n r5 = -558586000294016(0xfffe03f80fe03f80, double:NaN)\n goto L_0x0071\n L_0x009a:\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r7 = (long) r1\n r1 = 56\n long r7 = r7 << r1\n long r3 = r3 ^ r7\n r7 = 71499008037633920(0xfe03f80fe03f80, double:6.838959413692434E-304)\n long r3 = r3 ^ r7\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 >= 0) goto L_0x00bb\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n int r0 = (r7 > r5 ? 1 : (r7 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x00bc\n L_0x00b6:\n long r0 = r11.mo9776z()\n return r0\n L_0x00bb:\n r1 = r0\n L_0x00bc:\n r2 = r3\n L_0x00bd:\n r11.f9082i = r1\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9775y():long\");\n }",
"public abstract double getBaseWidth();",
"public static int getMapWidth() {\r\n\t\treturn 7;\r\n\t}",
"float getW();",
"private static float m590o(Context context) {\r\n DisplayMetrics displayMetrics = context.getResources().getDisplayMetrics();\r\n Point point = new Point(displayMetrics.widthPixels, displayMetrics.heightPixels);\r\n return ((float) point.y) / ((float) point.x);\r\n }",
"public Image getNine();",
"void ciff_block_1030()\n{\n int key[] = new int[2];\n key[0] = 0x410;\n key[1] = 0x45f3;\n int i, bpp, row, col, vbits=0;\n long bitbuf=0;\n\n get2();\n if ((get4()) != 0x80008 || get4()==0) return;\n bpp = get2();\n if (bpp != 10 && bpp != 12) return;\n for (i=row=0; row < 8; row++)\n for (col=0; col < 8; col++) {\n if (vbits < bpp) {\n\tbitbuf = bitbuf << 16 | (get2() ^ key[i++ & 1]);\n\tvbits += 16;\n }\n white[row][col] = ( char)( bitbuf << (LONG_BIT - vbits) >> (LONG_BIT - bpp));\n vbits -= bpp;\n }\n}",
"public abstract int getSpotsNeeded();",
"public int getGotoFloor();",
"public abstract Integer mo36210m();",
"private int getExpansionCount(int ce)\n {\n return ce & 0xF;\n }",
"public int mo9761x() {\n /*\n r5 = this;\n int r0 = r5.f9074i\n int r1 = r5.f9072g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9070e\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9074i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9763z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9074i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3658b.mo9761x():int\");\n }"
] | [
"0.56420535",
"0.56232333",
"0.56098235",
"0.5499521",
"0.54355246",
"0.5424333",
"0.53982735",
"0.53973067",
"0.5383353",
"0.5383353",
"0.53715944",
"0.5347634",
"0.53171355",
"0.52921647",
"0.52852213",
"0.5261187",
"0.52611595",
"0.52568305",
"0.5251813",
"0.52455026",
"0.5244193",
"0.5240411",
"0.52330834",
"0.52314097",
"0.5223877",
"0.5212189",
"0.52069426",
"0.52004266",
"0.5175293",
"0.5174604",
"0.51743674",
"0.51733965",
"0.5161724",
"0.5161058",
"0.5158604",
"0.51551795",
"0.5150398",
"0.51459193",
"0.51370525",
"0.5129699",
"0.512783",
"0.5126835",
"0.5126835",
"0.5124414",
"0.51189303",
"0.5111495",
"0.5108927",
"0.51082575",
"0.51057607",
"0.51016533",
"0.5099395",
"0.5099065",
"0.50968546",
"0.5091637",
"0.50903016",
"0.50890005",
"0.5087331",
"0.50771683",
"0.50771683",
"0.5073502",
"0.50734115",
"0.5072873",
"0.5069103",
"0.50683475",
"0.5061947",
"0.5059157",
"0.5058558",
"0.5057074",
"0.5054097",
"0.5052751",
"0.50480604",
"0.50466716",
"0.50465494",
"0.5042891",
"0.50367355",
"0.5035901",
"0.5030244",
"0.5029882",
"0.50242484",
"0.50240165",
"0.50231564",
"0.5022803",
"0.50203097",
"0.5019811",
"0.5015749",
"0.50141025",
"0.5009285",
"0.5009113",
"0.50077856",
"0.5004682",
"0.50046074",
"0.5002493",
"0.5001812",
"0.50007576",
"0.49968958",
"0.49964455",
"0.49924007",
"0.49919197",
"0.49870038",
"0.49864477",
"0.49848515"
] | 0.0 | -1 |
/ / / / / / / / / / / / / 286 | public boolean containsDomainValue(Date date) { return true; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void m8368b();",
"int mo27483b();",
"public static int m8655e() {\n return 8;\n }",
"void mo12637b();",
"public abstract long mo13681c();",
"Info mo7564ix();",
"void mo41086b();",
"void mo33732Px();",
"public abstract int mo8526p();",
"public abstract int mo13680b();",
"public abstract int mo9754s();",
"public abstract long mo24409b();",
"public abstract long mo9229aD();",
"void mo72113b();",
"void mo72114c();",
"public int mo9774x() {\n /*\n r5 = this;\n int r0 = r5.f9082i\n int r1 = r5.f9080g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9082i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9776z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9082i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9774x():int\");\n }",
"public abstract int mo9742g();",
"public int mo27483b() {\n return 0;\n }",
"C2841w mo7234g();",
"public abstract int mo9747l();",
"public abstract long mo9746k();",
"void mo57277b();",
"public abstract int mo9797a();",
"long getUnknown72();",
"public abstract long mo24410c();",
"public abstract long mo9743h();",
"void mo7353b();",
"void mo21072c();",
"void mo21076g();",
"void m8367a();",
"public abstract void mo27385c();",
"public static int m8664g() {\n return 4;\n }",
"void mo4874b(C4718l c4718l);",
"C3676k mo12649b();",
"Bundle mo7259g();",
"void mo57278c();",
"void mo80457c();",
"C7904c mo24084a();",
"private static C33023i m86585b() {\n return m86586c();\n }",
"public abstract long mo9755t();",
"public abstract int mo123248g();",
"void m63698a() {\n m63702c();\n m63701b();\n }",
"int mo98209b();",
"public abstract int mo9753r();",
"public int mo9785x() {\n /*\n r10 = this;\n long r0 = r10.f9091i\n long r2 = r10.f9090h\n int r2 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1))\n if (r2 != 0) goto L_0x000a\n goto L_0x0085\n L_0x000a:\n r2 = 1\n long r4 = r0 + r2\n byte r0 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r0)\n if (r0 < 0) goto L_0x0017\n r10.f9091i = r4\n return r0\n L_0x0017:\n long r6 = r10.f9090h\n long r6 = r6 - r4\n r8 = 9\n int r1 = (r6 > r8 ? 1 : (r6 == r8 ? 0 : -1))\n if (r1 >= 0) goto L_0x0021\n goto L_0x0085\n L_0x0021:\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n int r1 = r1 << 7\n r0 = r0 ^ r1\n if (r0 >= 0) goto L_0x002f\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x008b\n L_0x002f:\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x003e\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x003c:\n r6 = r4\n goto L_0x008b\n L_0x003e:\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n int r1 = r1 << 21\n r0 = r0 ^ r1\n if (r0 >= 0) goto L_0x004e\n r1 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r1\n goto L_0x008b\n L_0x004e:\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n int r6 = r1 << 28\n r0 = r0 ^ r6\n r6 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r6\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n L_0x0085:\n long r0 = r10.mo9787z()\n int r0 = (int) r0\n return r0\n L_0x008b:\n r10.f9091i = r6\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3661d.mo9785x():int\");\n }",
"public abstract int mo9732a();",
"public int method_2436() {\r\n return 16;\r\n }",
"public void mo3287b() {\n }",
"int mo27480a();",
"public abstract void mo27386d();",
"C32446a mo21077h() throws Exception;",
"byte mo30283c();",
"public abstract long mo9748m();",
"void mo12638c();",
"void mo119582b();",
"public abstract void mo6549b();",
"void mo1943l();",
"void mo4833b();",
"void mo21073d();",
"void mo27575a();",
"private final void m710e() {\n /*\n r12 = this;\n akn r0 = r12.f531p\n akl r0 = r0.f601d\n if (r0 == 0) goto L_0x0155\n boolean r1 = r0.f580d\n r2 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n if (r1 == 0) goto L_0x0017\n aws r1 = r0.f577a\n long r4 = r1.mo1486c()\n r8 = r4\n goto L_0x0019\n L_0x0017:\n r8 = r2\n L_0x0019:\n int r1 = (r8 > r2 ? 1 : (r8 == r2 ? 0 : -1))\n if (r1 != 0) goto L_0x0122\n ajf r1 = r12.f528m\n akn r2 = r12.f531p\n akl r2 = r2.f602e\n akx r3 = r1.f445c\n r4 = 0\n if (r3 == 0) goto L_0x008a\n boolean r3 = r3.mo486w()\n if (r3 != 0) goto L_0x008a\n akx r3 = r1.f445c\n boolean r3 = r3.mo485v()\n if (r3 == 0) goto L_0x0037\n goto L_0x0042\n L_0x0037:\n if (r0 != r2) goto L_0x008a\n akx r2 = r1.f445c\n boolean r2 = r2.mo359g()\n if (r2 == 0) goto L_0x0042\n goto L_0x008a\n L_0x0042:\n bkr r2 = r1.f446d\n long r2 = r2.mo379b()\n boolean r5 = r1.f447e\n if (r5 == 0) goto L_0x0068\n blf r5 = r1.f443a\n long r5 = r5.mo379b()\n int r7 = (r2 > r5 ? 1 : (r2 == r5 ? 0 : -1))\n if (r7 >= 0) goto L_0x005c\n blf r2 = r1.f443a\n r2.mo2109d()\n goto L_0x0096\n L_0x005c:\n r1.f447e = r4\n boolean r5 = r1.f448f\n if (r5 == 0) goto L_0x0068\n blf r5 = r1.f443a\n r5.mo2107a()\n L_0x0068:\n blf r5 = r1.f443a\n r5.mo2108a(r2)\n bkr r2 = r1.f446d\n akq r2 = r2.mo376Q()\n blf r3 = r1.f443a\n akq r3 = r3.f4280a\n boolean r3 = r2.equals(r3)\n if (r3 != 0) goto L_0x0096\n blf r3 = r1.f443a\n r3.mo378a(r2)\n aje r3 = r1.f444b\n ake r3 = (p000.ake) r3\n r3.m694a(r2, r4)\n goto L_0x0096\n L_0x008a:\n r2 = 1\n r1.f447e = r2\n boolean r2 = r1.f448f\n if (r2 == 0) goto L_0x0096\n blf r2 = r1.f443a\n r2.mo2107a()\n L_0x0096:\n long r1 = r1.mo379b()\n r12.f513D = r1\n long r0 = r0.mo440b(r1)\n akp r2 = r12.f533r\n long r2 = r2.f623m\n java.util.ArrayList r5 = r12.f530o\n boolean r5 = r5.isEmpty()\n if (r5 != 0) goto L_0x011d\n akp r5 = r12.f533r\n awt r5 = r5.f612b\n boolean r5 = r5.mo1504a()\n if (r5 != 0) goto L_0x011d\n akp r5 = r12.f533r\n long r6 = r5.f613c\n int r8 = (r6 > r2 ? 1 : (r6 == r2 ? 0 : -1))\n if (r8 != 0) goto L_0x00c5\n boolean r6 = r12.f515F\n if (r6 == 0) goto L_0x00c5\n r6 = -1\n long r2 = r2 + r6\n L_0x00c5:\n r12.f515F = r4\n alh r4 = r5.f611a\n awt r5 = r5.f612b\n java.lang.Object r5 = r5.f2566a\n int r4 = r4.mo525a(r5)\n int r5 = r12.f514E\n r6 = 0\n if (r5 <= 0) goto L_0x00e1\n java.util.ArrayList r7 = r12.f530o\n int r5 = r5 + -1\n java.lang.Object r5 = r7.get(r5)\n akb r5 = (p000.akb) r5\n goto L_0x00e3\n L_0x00e1:\n L_0x00e2:\n r5 = r6\n L_0x00e3:\n if (r5 != 0) goto L_0x00e6\n goto L_0x0109\n L_0x00e6:\n int r5 = r5.f502a\n if (r4 >= 0) goto L_0x00eb\n L_0x00ea:\n goto L_0x00f4\n L_0x00eb:\n if (r4 != 0) goto L_0x0109\n r7 = 0\n int r5 = (r2 > r7 ? 1 : (r2 == r7 ? 0 : -1))\n if (r5 >= 0) goto L_0x0109\n goto L_0x00ea\n L_0x00f4:\n int r5 = r12.f514E\n int r5 = r5 + -1\n r12.f514E = r5\n if (r5 <= 0) goto L_0x0108\n java.util.ArrayList r7 = r12.f530o\n int r5 = r5 + -1\n java.lang.Object r5 = r7.get(r5)\n akb r5 = (p000.akb) r5\n goto L_0x00e3\n L_0x0108:\n goto L_0x00e2\n L_0x0109:\n int r2 = r12.f514E\n java.util.ArrayList r3 = r12.f530o\n int r3 = r3.size()\n if (r2 >= r3) goto L_0x011d\n java.util.ArrayList r2 = r12.f530o\n int r3 = r12.f514E\n java.lang.Object r2 = r2.get(r3)\n akb r2 = (p000.akb) r2\n L_0x011d:\n akp r2 = r12.f533r\n r2.f623m = r0\n goto L_0x0140\n L_0x0122:\n r12.m691a(r8)\n akp r0 = r12.f533r\n long r0 = r0.f623m\n int r2 = (r8 > r0 ? 1 : (r8 == r0 ? 0 : -1))\n if (r2 == 0) goto L_0x0140\n akp r0 = r12.f533r\n awt r7 = r0.f612b\n long r10 = r0.f614d\n r6 = r12\n akp r0 = r6.m686a(r7, r8, r10)\n r12.f533r = r0\n akc r0 = r12.f529n\n r1 = 4\n r0.mo409b(r1)\n L_0x0140:\n akn r0 = r12.f531p\n akl r0 = r0.f603f\n akp r1 = r12.f533r\n long r2 = r0.mo442c()\n r1.f621k = r2\n akp r0 = r12.f533r\n long r1 = r12.m719n()\n r0.f622l = r1\n return\n L_0x0155:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p000.ake.m710e():void\");\n }",
"byte[] mo38566a();",
"C5727e mo33224a();",
"void mo88524c();",
"public abstract Integer mo36210m();",
"void mo1687b();",
"int mo44965b();",
"void mo60893b();",
"public void mo12628c() {\n }",
"void mo4873a(C4718l c4718l);",
"public abstract int mo4375b();",
"public int mo9742g() {\n return mo9772v();\n }",
"void mo80455b();",
"long mo25074b();",
"private void m50366E() {\n }",
"public static int m8651d() {\n return 4;\n }",
"public abstract long mo13679a();",
"public abstract int mo9749n();",
"public int mo9761x() {\n /*\n r5 = this;\n int r0 = r5.f9074i\n int r1 = r5.f9072g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9070e\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9074i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9763z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9074i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3658b.mo9761x():int\");\n }",
"public abstract long mo24412e();",
"public int mo9754s() {\n return mo9774x();\n }",
"long mo117970a();",
"void mo80452a();",
"public interface InstructionSet6502 {\n\n\tint INST_ORA_PRE_INDEXED_INDIRECT = 0x01;\n\tint INST_ORA_ZERO_PAGE = 0x05;\n\tint INST_ASL_ZERO_PAGE = 0x06;\n\tint INST_PHP = 0x08;\n\tint INST_ORA_IMMEDIATE = 0x09;\n\tint INST_ASL_ACCUMULATOR = 0x0a;\n\tint INST_ORA_ABSOLUTE = 0x0d;\n\tint INST_BPL = 0x10;\n\tint INST_ORA_POST_INDEXED_INDIRECT = 0x11;\n\tint INST_ORA_ZERO_PAGE_INDEXED = 0x15;\n\tint INST_CLC = 0x18;\n\tint INST_ORA_INDEXED_Y = 0x19;\n\tint INST_ORA_INDEXED_X = 0x1d;\n\tint INST_JSR = 0x20;\n\tint INST_BIT_ZERO_PAGE = 0x24;\n\tint INST_ROL_ZERO_PAGE = 0x26;\n\tint INST_PLP = 0x28;\n\tint INST_ROL_ACCUMULATOR = 0x2a;\n\tint INST_BIT_ABSOLUTE = 0x2c;\n\tint INST_BMI = 0x30;\n\tint INST_SEC = 0x38;\n\tint INST_EOR_PRE_INDEXED_INDIRECT = 0x41;\n\tint INST_EOR_ZERO_PAGE = 0x45;\n\tint INST_PHA = 0X48;\n\tint INST_EOR_IMMEDIATE = 0x49;\n\tint INST_LSR_ACCUMULATOR = 0x4a;\n\tint INST_JMP_ABSOLUTE = 0x4c;\n\tint INST_EOR_ABSOLUTE = 0x4d;\n\tint INST_EOR_POST_INDEXED_INDIRECT = 0x51;\n\tint INST_EOR_INDEXED_Y = 0x59;\n\tint INST_EOR_ZERO_PAGE_INDEXED = 0x55;\n\tint INST_EOR_INDEXED_X = 0x5d;\n\tint INST_RTS = 0x60;\n\tint INST_ADC_PRE_INDEXED_INDIRECT = 0x61;\n\tint INST_ADC_ZERO_PAGE = 0x65;\n\tint INST_ROR_ZERO_PAGE = 0x66;\n\tint INST_PLA = 0x68;\n\tint INST_ADC_IMMEDIATE = 0x69;\n\tint INST_ROR_ACCUMULATOR = 0x6a;\n\tint INST_JMP_INDIRECT = 0x6c;\n\tint INST_ADC_ABSOLUTE = 0x6d;\n\tint INST_ROR_ABSOLUTE = 0x6e;\n\tint INST_ADC_POST_INDEXED_INDIRECT = 0x71;\n\tint INST_ADC_ZERO_PAGE_INDEXED = 0x75;\n\tint INST_ROR_ZERO_PAGE_INDEXED = 0x76;\n\tint INST_SEI = 0x78;\n\tint INST_ADC_INDEXED_Y = 0x79;\n\tint INST_ADC_INDEXED_X = 0x7d;\n\tint INST_ROR_INDEXED_X = 0x7e;\n\tint INST_STA_PRE_INDEXED_INDIRECT = 0x81;\n\tint INST_STY_ZERO_PAGE = 0x84;\n\tint INST_STA_ZERO_PAGE = 0x85;\n\tint INST_STX_ZERO_PAGE = 0x86;\n\tint INST_DEY = 0x88;\n\tint INST_TXA = 0x8a;\n\tint INST_STY_ABSOLUTE = 0x8c;\n\tint INST_STA_ABSOLUTE = 0x8d;\n\tint INST_STX_ABSOLUTE = 0x8e;\n\tint INST_BCC = 0x90;\n\tint INST_STA_POST_INDEXED_INDIRECT = 0x91;\n\tint INST_STY_ZERO_PAGE_INDEXED = 0x94;\n\tint INST_STA_ZERO_PAGE_INDEXED = 0x95;\n\tint INST_TYA = 0x98;\n\tint INST_STA_INDEXED_Y = 0x99;\n\tint INST_TXS_IMPLIED = 0x9a;\n\tint INST_STA_INDEXED_X = 0x9d;\n\tint INST_LDY_IMMEDIATE = 0xa0;\n\tint INST_LDA_PRE_INDEXED_INDIRECT = 0xa1;\n\tint INST_LDX_IMMEDIATE = 0xa2;\n\tint INST_LDY_ZERO_PAGE = 0xa4;\n\tint INST_LDA_ZERO_PAGE = 0xa5;\n\tint INST_LDX_ZERO_PAGE = 0xa6;\n\tint INST_TAY = 0xa8;\n\tint INST_LDA_IMMEDIATE = 0xa9;\n\tint INST_TAX = 0xaa;\n\tint INST_LDY_ABSOLUTE = 0xac;\n\tint INST_LDA_ABSOLUTE = 0xad;\n\tint INST_LDX_ABSOLUTE = 0xae;\n\tint INST_BCS = 0xb0;\n\tint INST_LDA_POST_INDEXED_INDIRECT = 0xb1;\n\tint INST_LDY_ZERO_PAGE_INDEXED = 0xb4;\n\tint INST_LDA_ZERO_PAGE_INDEXED = 0xb5;\n\tint INST_LDX_ZERO_PAGE_INDEXED = 0xb6;\n\tint INST_LDA_INDEXED_Y = 0xb9;\n\tint INST_TSX = 0xba;\n\tint INST_LDY_INDEXED_X = 0xbc;\n\tint INST_LDA_INDEXED_X = 0xbd;\n\tint INST_LDX_INDEXED_Y = 0xbe;\n\tint INST_CPY_IMMEDIATE = 0xc0;\n\tint INST_CMP_PRE_INDEXED_INDIRECT = 0xc1;\n\tint INST_CPY_ZERO_PAGE = 0xc4;\n\tint INST_CMP_ZERO_PAGE = 0xc5;\n\tint INST_INY = 0xc8;\n\tint INST_CMP_IMMEDIATE = 0xc9;\n\tint INST_DEX = 0xca;\n\tint INST_CPY_ABSOLUTE = 0xcc;\n\tint INST_CMP_ABSOLUTE = 0xcd;\n\tint INST_BNE = 0xd0;\n\tint INST_CMP_POST_INDEXED_INDIRECT = 0xd1;\n\tint INST_CMP_ZERO_PAGE_INDEXED = 0xd5;\n\tint INST_CLD = 0xd8;\n\tint INST_CMP_INDEXED_Y = 0xd9;\n\tint INST_CMP_INDEXED_X = 0xdd;\n\tint INST_CPX_IMMEDIATE = 0xe0;\n\tint INST_CPX_ZERO_PAGE = 0xe4;\n\tint INST_INC_ZERO_PAGE = 0xe6;\n\tint INST_INX = 0xe8;\n\tint INST_SBC_IMMEDIATE = 0xe9;\n\tint INST_CPX_ABSOLUTE = 0xec;\n\tint INST_INC_ABSOLUTE = 0xee;\n\tint INST_BEQ = 0xf0;\n\tint INST_INC_ZERO_PAGE_INDEXED = 0xf6;\n\tint INST_SED = 0xf8;\n\tint INST_SBC_INDEXED_Y = 0xf9;\n\tint INST_SBC_INDEXED_X = 0xfd;\n\tint INST_INC_INDEXED = 0xfe;\n\n}",
"public abstract int mo123249h();",
"void mo86a(C0163d c0163d);",
"C1529a mo17019b();",
"public final void mo8775b() {\n }",
"private final boolean e() {\n /*\n r15 = this;\n r2 = 0\n r1 = 0\n dtd r0 = r15.m // Catch:{ all -> 0x008e }\n if (r0 != 0) goto L_0x000d\n dtd r0 = new dtd // Catch:{ all -> 0x008e }\n r0.<init>() // Catch:{ all -> 0x008e }\n r15.m = r0 // Catch:{ all -> 0x008e }\n L_0x000d:\n int r0 = r15.k // Catch:{ all -> 0x008e }\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x039e\n dvk r3 = r15.g // Catch:{ all -> 0x008e }\n if (r3 == 0) goto L_0x0356\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 == 0) goto L_0x0025\n int r3 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != r4) goto L_0x0032\n L_0x0025:\n r3 = 2097152(0x200000, float:2.938736E-39)\n int r3 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = new byte[r3] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r15.h = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r15.i = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0032:\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r4\n int r6 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r7 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r8 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r9 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n boolean r0 = r7.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x00ac\n r0 = 1\n L_0x0047:\n java.lang.String r3 = \"GzipInflatingBuffer is closed\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r0 = 1\n r5 = r3\n L_0x004f:\n if (r0 == 0) goto L_0x02ef\n int r3 = r6 - r5\n if (r3 <= 0) goto L_0x02ef\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.ordinal() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n switch(r0) {\n case 0: goto L_0x00ae;\n case 1: goto L_0x0148;\n case 2: goto L_0x0171;\n case 3: goto L_0x01d7;\n case 4: goto L_0x01fc;\n case 5: goto L_0x0221;\n case 6: goto L_0x0256;\n case 7: goto L_0x0289;\n case 8: goto L_0x02a2;\n case 9: goto L_0x02e9;\n default: goto L_0x005e;\n } // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x005e:\n java.lang.AssertionError r0 = new java.lang.AssertionError // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4 + 15\n java.lang.StringBuilder r5 = new java.lang.StringBuilder // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5.<init>(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = \"Invalid state: \"\n java.lang.StringBuilder r4 = r5.append(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.StringBuilder r3 = r4.append(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = r3.toString() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0087:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x008e:\n r0 = move-exception\n if (r2 <= 0) goto L_0x00ab\n dxe r3 = r15.a\n r3.a(r2)\n dxh r3 = r15.j\n dxh r4 = defpackage.dxh.BODY\n if (r3 != r4) goto L_0x00ab\n dvk r3 = r15.g\n if (r3 == 0) goto L_0x03c9\n dzo r2 = r15.d\n long r4 = (long) r1\n r2.d(r4)\n int r2 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n L_0x00ab:\n throw r0\n L_0x00ac:\n r0 = 0\n goto L_0x0047\n L_0x00ae:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x00ba\n r0 = 0\n goto L_0x004f\n L_0x00ba:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 35615(0x8b1f, float:4.9907E-41)\n if (r0 == r3) goto L_0x00d4\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Not in GZIP format\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00cd:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x00d4:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 8\n if (r0 == r3) goto L_0x00e6\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Unsupported compression method\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00e6:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.j = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvl r4 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 6\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r10.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r10\n if (r3 <= 0) goto L_0x03d9\n r0 = 6\n int r0 = java.lang.Math.min(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r10 = r10.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r11 = r11.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r10, r11, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = 6 - r0\n r3 = r0\n L_0x0118:\n if (r3 <= 0) goto L_0x013b\n r0 = 512(0x200, float:7.175E-43)\n byte[] r10 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x011f:\n if (r0 >= r3) goto L_0x013b\n int r11 = r3 - r0\n r12 = 512(0x200, float:7.175E-43)\n int r11 = java.lang.Math.min(r11, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r12 = r12.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.a(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r12 = r12.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.update(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r11\n goto L_0x011f\n L_0x013b:\n dvk r0 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 6\n defpackage.dvk.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA_LEN // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0148:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 4\n r3 = 4\n if (r0 == r3) goto L_0x0156\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0156:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0162\n r0 = 0\n goto L_0x004f\n L_0x0162:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.k = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0171:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 >= r3) goto L_0x017e\n r0 = 0\n goto L_0x004f\n L_0x017e:\n dvl r10 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x03d6\n int r0 = java.lang.Math.min(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r11 = r11.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r12 = r12.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r11, r12, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r4 - r0\n r3 = r0\n L_0x01a8:\n if (r3 <= 0) goto L_0x01cb\n r0 = 512(0x200, float:7.175E-43)\n byte[] r11 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x01af:\n if (r0 >= r3) goto L_0x01cb\n int r12 = r3 - r0\n r13 = 512(0x200, float:7.175E-43)\n int r12 = java.lang.Math.min(r12, r13) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r13 = r13.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.a(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r13 = r13.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.update(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r12\n goto L_0x01af\n L_0x01cb:\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.b(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01d7:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 8\n r3 = 8\n if (r0 != r3) goto L_0x01f5\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x01e1:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x01f3\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x01e1\n r0 = 1\n L_0x01ee:\n if (r0 != 0) goto L_0x01f5\n r0 = 0\n goto L_0x004f\n L_0x01f3:\n r0 = 0\n goto L_0x01ee\n L_0x01f5:\n dvm r0 = defpackage.dvm.HEADER_COMMENT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01fc:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 16\n r3 = 16\n if (r0 != r3) goto L_0x021a\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0206:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x0218\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x0206\n r0 = 1\n L_0x0213:\n if (r0 != 0) goto L_0x021a\n r0 = 0\n goto L_0x004f\n L_0x0218:\n r0 = 0\n goto L_0x0213\n L_0x021a:\n dvm r0 = defpackage.dvm.HEADER_CRC // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0221:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 2\n r3 = 2\n if (r0 != r3) goto L_0x024f\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0234\n r0 = 0\n goto L_0x004f\n L_0x0234:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n long r10 = r0.getValue() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = (int) r10 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 65535(0xffff, float:9.1834E-41)\n r0 = r0 & r3\n dvl r3 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == r3) goto L_0x024f\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Corrupt GZIP header\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x024f:\n dvm r0 = defpackage.dvm.INITIALIZE_INFLATER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0256:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x027e\n java.util.zip.Inflater r0 = new java.util.zip.Inflater // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 1\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.g = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0262:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x0284\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x027b:\n r0 = 1\n goto L_0x004f\n L_0x027e:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x0262\n L_0x0284:\n dvm r0 = defpackage.dvm.INFLATER_NEEDS_INPUT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x027b\n L_0x0289:\n int r0 = r9 + r5\n int r0 = r7.a(r8, r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r5 + r0\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r4 = defpackage.dvm.TRAILER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r4) goto L_0x029e\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5 = r3\n goto L_0x004f\n L_0x029e:\n r0 = 1\n r5 = r3\n goto L_0x004f\n L_0x02a2:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == 0) goto L_0x02c7\n r0 = 1\n L_0x02a7:\n java.lang.String r3 = \"inflater is null\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x02c9\n r0 = 1\n L_0x02b3:\n java.lang.String r3 = \"inflaterInput has unconsumed bytes\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r0 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 512(0x200, float:7.175E-43)\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x02cb\n r0 = 0\n goto L_0x004f\n L_0x02c7:\n r0 = 0\n goto L_0x02a7\n L_0x02c9:\n r0 = 0\n goto L_0x02b3\n L_0x02cb:\n r3 = 0\n r7.e = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.f = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r3 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.a(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x02e9:\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x004f\n L_0x02ef:\n if (r0 == 0) goto L_0x0301\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = defpackage.dvm.HEADER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x0334\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x0334\n L_0x0301:\n r0 = 1\n L_0x0302:\n r7.n = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.l // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.l = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r2 = r2 + r3\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.m = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r1 = r1 + r3\n if (r5 != 0) goto L_0x0342\n if (r2 <= 0) goto L_0x0332\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0332\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x0336\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0332:\n r0 = 0\n L_0x0333:\n return r0\n L_0x0334:\n r0 = 0\n goto L_0x0302\n L_0x0336:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0332\n L_0x0342:\n dtd r0 = r15.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dxv r3 = defpackage.dxw.a(r3, r4, r5) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.a(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r5\n r15.i = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x000d\n L_0x0356:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n if (r3 != 0) goto L_0x0386\n if (r2 <= 0) goto L_0x0378\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0378\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x037a\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0378:\n r0 = 0\n goto L_0x0333\n L_0x037a:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0378\n L_0x0386:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ all -> 0x008e }\n int r2 = r2 + r0\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n dtd r4 = r15.n // Catch:{ all -> 0x008e }\n dxv r0 = r4.a(r0) // Catch:{ all -> 0x008e }\n dtd r0 = (defpackage.dtd) r0 // Catch:{ all -> 0x008e }\n r3.a(r0) // Catch:{ all -> 0x008e }\n goto L_0x000d\n L_0x039e:\n if (r2 <= 0) goto L_0x03ba\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x03ba\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x03bd\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x03ba:\n r0 = 1\n goto L_0x0333\n L_0x03bd:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x03ba\n L_0x03c9:\n dzo r1 = r15.d\n long r4 = (long) r2\n r1.d(r4)\n int r1 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n goto L_0x00ab\n L_0x03d6:\n r3 = r4\n goto L_0x01a8\n L_0x03d9:\n r3 = r0\n goto L_0x0118\n */\n throw new UnsupportedOperationException(\"Method not decompiled: defpackage.dxd.e():boolean\");\n }",
"public long mo9775y() {\n /*\n r11 = this;\n int r0 = r11.f9082i\n int r1 = r11.f9080g\n if (r1 != r0) goto L_0x0008\n goto L_0x00b6\n L_0x0008:\n byte[] r2 = r11.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0014\n r11.f9082i = r3\n long r0 = (long) r0\n return r0\n L_0x0014:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x001b\n goto L_0x00b6\n L_0x001b:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0029\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n L_0x0026:\n long r2 = (long) r0\n goto L_0x00bd\n L_0x0029:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x003a\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n long r0 = (long) r0\n r9 = r0\n r1 = r3\n r2 = r9\n goto L_0x00bd\n L_0x003a:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0048\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0026\n L_0x0048:\n long r3 = (long) r0\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r5 = (long) r1\n r1 = 28\n long r5 = r5 << r1\n long r3 = r3 ^ r5\n r5 = 0\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 < 0) goto L_0x005f\n r1 = 266354560(0xfe03f80, double:1.315966377E-315)\n L_0x005b:\n long r2 = r3 ^ r1\n r1 = r0\n goto L_0x00bd\n L_0x005f:\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n r0 = 35\n long r7 = r7 << r0\n long r3 = r3 ^ r7\n int r0 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x0074\n r5 = -34093383808(0xfffffff80fe03f80, double:NaN)\n L_0x0071:\n long r2 = r3 ^ r5\n goto L_0x00bd\n L_0x0074:\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r7 = (long) r1\n r1 = 42\n long r7 = r7 << r1\n long r3 = r3 ^ r7\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 < 0) goto L_0x0087\n r1 = 4363953127296(0x3f80fe03f80, double:2.1560793202584E-311)\n goto L_0x005b\n L_0x0087:\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n r0 = 49\n long r7 = r7 << r0\n long r3 = r3 ^ r7\n int r0 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x009a\n r5 = -558586000294016(0xfffe03f80fe03f80, double:NaN)\n goto L_0x0071\n L_0x009a:\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r7 = (long) r1\n r1 = 56\n long r7 = r7 << r1\n long r3 = r3 ^ r7\n r7 = 71499008037633920(0xfe03f80fe03f80, double:6.838959413692434E-304)\n long r3 = r3 ^ r7\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 >= 0) goto L_0x00bb\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n int r0 = (r7 > r5 ? 1 : (r7 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x00bc\n L_0x00b6:\n long r0 = r11.mo9776z()\n return r0\n L_0x00bb:\n r1 = r0\n L_0x00bc:\n r2 = r3\n L_0x00bd:\n r11.f9082i = r1\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9775y():long\");\n }",
"public abstract String mo118046b();",
"boolean mo30282b();",
"static int psw(){\n\t\tint psw = 0;\n\t\tpsw+=(CS?1:0);\n\t\tpsw+=(P?4:0);\n\t\tpsw+=(AC?16:0);\n\t\tpsw+=(Z?64:0);\n\t\tpsw+=(S?128:0);\n\t\treturn psw;\n\t}",
"public abstract String mo11611b();",
"long mo1685a(C2369e c2369e);",
"long mo20406a();",
"public int func_70297_j_()\n/* */ {\n/* 71 */ return 64;\n/* */ }",
"boolean mo51986hp();",
"C1458cs mo7613iS();",
"private void m50367F() {\n }",
"void mo3194r();"
] | [
"0.65601486",
"0.6552503",
"0.6428991",
"0.63827944",
"0.6382646",
"0.63190466",
"0.6314334",
"0.6304125",
"0.6298777",
"0.6276178",
"0.6237686",
"0.6199612",
"0.6186604",
"0.6185119",
"0.61774796",
"0.616961",
"0.61664647",
"0.6162459",
"0.6156234",
"0.6156209",
"0.6142641",
"0.61375755",
"0.6133666",
"0.61232024",
"0.6115561",
"0.6053806",
"0.6036626",
"0.60272205",
"0.6023401",
"0.6021019",
"0.6015641",
"0.60146165",
"0.6003276",
"0.59970134",
"0.5982973",
"0.5981072",
"0.5969412",
"0.59591216",
"0.5953342",
"0.59494936",
"0.59445584",
"0.59338903",
"0.5925581",
"0.5916218",
"0.5916062",
"0.5915521",
"0.58953816",
"0.5888009",
"0.5885369",
"0.5880329",
"0.587778",
"0.5873928",
"0.58727545",
"0.58726263",
"0.5870503",
"0.5858286",
"0.585237",
"0.5844691",
"0.58435994",
"0.5841926",
"0.583476",
"0.58334213",
"0.5830928",
"0.58293056",
"0.5825288",
"0.5820844",
"0.58207464",
"0.58154106",
"0.58092624",
"0.5806754",
"0.58058536",
"0.5805522",
"0.58047265",
"0.5803324",
"0.5799479",
"0.57942504",
"0.5788066",
"0.5787854",
"0.57801974",
"0.5778941",
"0.5767626",
"0.5760372",
"0.5755785",
"0.5752024",
"0.57495624",
"0.5748624",
"0.5742683",
"0.5741264",
"0.5734204",
"0.57335645",
"0.5732957",
"0.5731396",
"0.5729758",
"0.5729238",
"0.5728534",
"0.5724945",
"0.5723181",
"0.5721598",
"0.5719688",
"0.5717577",
"0.5714187"
] | 0.0 | -1 |
/ / / / / / / / / / / / / / 300 | public boolean containsDomainRange(long from, long to) { return true; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public double tuition(){\n return 2500;\n }",
"public float spiderScaleAmount()\n {\nreturn 1F;\n }",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public float sizeMultiplier();",
"public abstract int getSpotsNeeded();",
"@Override\n public double total() {\n return 2500;\n }",
"public abstract int getPageFreeSpace(int bucket);",
"double getSize();",
"private double loadFactor()\n {\n double bucketsLength = buckets.length;\n return currentSize / bucketsLength;\n }",
"double getNewWidth();",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"public int get_resource_distance() {\n return 1;\r\n }",
"@Override\r\n\tpublic int unitsToWagger() {\n\t\treturn 0;\r\n\t}",
"public int getTaillePoule (){\n\t\treturn 3;\n\t}",
"public Integer getWidth(){return this.width;}",
"BigInteger getWidth();",
"public int passengers(){\n return currentCapacity(); \n }",
"int fixedSize();",
"int getTribeSize();",
"public float getLoad(){\n\t\treturn 1.0f*size/capacity;\n\t}",
"private double RepulsionFactorSourceNodes(){\n \tdouble RepulsionFactor=10000.0d *(contextNodeSize*5);\n \t\n \treturn RepulsionFactor;\n }",
"static int growing()\n\t\t{\n\t\t\t\n\t\t\n\t\t\tfor(int i=1;i<=3;i++){\n\t\t\theight=height+i;\n\t\t\t\n\t\t\tSystem.out.println(height);}\n\t\t\treturn 0;\n\t\t}",
"public int getTakeSpace() {\n return 0;\n }",
"private static int getSize(double loadFactor){\n return (primeSize((int) (3739/loadFactor))); // 3739 is the number of entries from the lexicon list\n }",
"public double getPerimiter(){return (2*height +2*width);}",
"@Override\n\tpublic int getW() {\n\t\treturn 100;\n\t}",
"@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }",
"int getWidth() {return width;}",
"public int getMaxSpawnedInChunk()\n {\n return 1;\n }",
"public void grow(int cap) {}",
"public int getCurrRuptures();",
"public abstract int getMaxIntermediateSize();",
"public float getCapacity();",
"double getStepSize();",
"public double getBaseStepSize() {\n \t\treturn 0.105;\n \t}",
"int getTotalFree();",
"public abstract int getSmallStackSizeWishInKb();",
"public double width() { return _width; }",
"float getLength();",
"float getLength();",
"@Override\n public void init()\n {\n out = mul(num(100.0/Math.log10(length)), log10(div(sum(truerange(), length), diff(highest(length), lowest(length)))));\n }",
"abstract protected int getCapacity();",
"int steamPerDurability();",
"int width();",
"long getHeight();",
"int process(int maxBlocks);",
"public int length() { return 1+maxidx; }",
"int range(){\n return fuelcap*mpg;\n }",
"long getWidth();",
"double muchMoreThenHalf() {\n return (this.getTotalNodeCount() + getFaultyNodeCount())/2;\n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public abstract double getBaseWidth();",
"private int getIndex2(int val){\n return val/bucket;\n }",
"public int getLargeur() {\n return getWidth();\n }",
"int randomPoint() { return 1 + (int)Math.round((Math.random()*20) % (size - 2)); }",
"int getBurstNImages();",
"Length getWidth();",
"@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}",
"int getSize ();",
"@Override\n\tpublic int getMaxSizeX()\n\t{\n\t\treturn 200;\n\t}",
"@Override\n public int orinar() {\n\n return (int) (Math.random() * 400) + 400;\n }",
"@Override\n\tpublic int computeSize() {\n\t\treturn 36;\n\t}",
"public static void method_3(){\n int totalhotdog = 400;\n int hotDogPerContainer = 8;\n int totalContainer =0;\n int temp = totalhotdog+hotDogPerContainer;\n\n while (temp>hotDogPerContainer){\n temp = temp - hotDogPerContainer;\n System.out.println(temp);\n totalContainer++;\n }\n System.out.println(\"\\n \\n\\n\\n\\n \"+totalContainer);\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"private double getLoadFactor() {\r\n\t\t\treturn numberOfElements / (double) currentCapacity;\r\n\t\t}",
"@Override\n\tpublic int getH() {\n\t\treturn 100;\n\t}",
"public int taille() {\n\t\treturn getSize();\n\t}",
"int getNumOfChunks();",
"Length getHeight();",
"private static int getTreeSize(int totalSize) {\n if (totalSize <= 32) {\n return 0;\n } else {\n // TODO: Clojure does ((realSize - 1) >>> 5) << 5); is that faster?\n return ((totalSize - 1) & (~0x1F));\n }\n }",
"private int calcSize(int size)\n {\n return (((size - 1) / 9) + 1) * 9;\n }",
"long getSize();",
"double volume(){\n return width*height*depth;\n }",
"Integer getDataLgth();",
"@Override\r\n\tpublic int costOfShooting() {\r\n\t\treturn 50;\r\n\t}",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"public int weight ();",
"long getOccupiedSize();",
"double getXLength();",
"int getSpriteArraySize();",
"abstract double getLength();",
"LengthSmaller createLengthSmaller();",
"Energy getMaxLoad();",
"@Override\n public int howManyXp() {\n return 2;\n }",
"public Integer getHeight(){return this.height;}",
"int getBlocksAmount();",
"private static double MdUllah(double length, double height, double width) {\n\t\treturn length*height*width;\n\t}",
"int getHeight() {return height;}",
"void incNetSize(){\r\n\t\t\t\tif (size<500)size+=50;\r\n\t\t\t\telse System.out.println(\"Max net size reached!\");\r\n\t\t\t}",
"int height();",
"Integer getCurrentWidth();",
"public static int getEnergyValueRandomLimit() {\r\n\t\treturn 50;\r\n\t}",
"public int getCapacity();",
"public void setLength(double length){this.length=length;}",
"Builder height(VariableAmount height);",
"VariableAmount getHeight();",
"public int getWidth(){\n return width;\n }",
"private int addShift( int x ) { x += _nxx; int sz = H2O.CLOUD.size(); return x < sz ? x : x-sz; }",
"@Override\n public int getWidth() {\n return 260;\n }",
"@Override\r\n\t\tpublic int recArea() {\n\t\t\treturn length*width;\r\n\t\t}"
] | [
"0.5737296",
"0.55706084",
"0.5546276",
"0.5479354",
"0.5450031",
"0.5437595",
"0.54053265",
"0.5396616",
"0.53926045",
"0.5390248",
"0.53783226",
"0.5359353",
"0.5340813",
"0.53374386",
"0.5332108",
"0.5328276",
"0.5320112",
"0.53173816",
"0.5310813",
"0.5302769",
"0.52958864",
"0.528132",
"0.52760607",
"0.5271909",
"0.5271567",
"0.52489316",
"0.52423155",
"0.5235118",
"0.5232782",
"0.52146035",
"0.5206416",
"0.52026004",
"0.51991135",
"0.51948524",
"0.51916075",
"0.51894385",
"0.5188476",
"0.5187215",
"0.51835173",
"0.51825255",
"0.51825255",
"0.51772153",
"0.5172677",
"0.5171746",
"0.5170837",
"0.51679605",
"0.5167273",
"0.5163759",
"0.5163287",
"0.5158564",
"0.51584345",
"0.5156843",
"0.51449686",
"0.5139625",
"0.5138507",
"0.5133988",
"0.5133061",
"0.51312333",
"0.5126017",
"0.5117485",
"0.51122874",
"0.5110465",
"0.5104766",
"0.51027983",
"0.5097682",
"0.5094281",
"0.5092747",
"0.50857866",
"0.5081705",
"0.5081604",
"0.5063434",
"0.5060671",
"0.5060369",
"0.5052379",
"0.5051853",
"0.504991",
"0.5046771",
"0.50454193",
"0.50442994",
"0.5042647",
"0.50409925",
"0.5036166",
"0.50333697",
"0.5023862",
"0.5022797",
"0.5021283",
"0.5019802",
"0.5018875",
"0.501836",
"0.5013894",
"0.5011328",
"0.5009513",
"0.5006012",
"0.50028896",
"0.5001411",
"0.50000817",
"0.49937525",
"0.49918458",
"0.49900493",
"0.49809337",
"0.49750635"
] | 0.0 | -1 |
/ / / / / / / / / / / / / / 314 | public boolean containsDomainRange(Date from, Date to) { return true; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int mo36g() {\n return 8;\n }",
"public int arn() {\n return 383;\n }",
"public final int mo30256g() {\n return this.f7581c.f7036c.size();\n }",
"void mo33732Px();",
"public int mo36g() {\n return 4;\n }",
"@Override\n\tpublic int computeSize() {\n\t\treturn 36;\n\t}",
"static int getNumPatterns() { return 64; }",
"public abstract long mo9746k();",
"Integer getLNDFlgs();",
"long getUnknown72();",
"public abstract long mo9229aD();",
"Info mo7564ix();",
"public static int size_parentId() {\n return (16 / 8);\n }",
"public int mo12191c() {\n return this.f10948c.limit() + this.f10957l.length + (this.f10958m.length * 4);\n }",
"protected int bytesPerAtom() {\n return (2);\n }",
"protected int bytesPerAtom() {\n return (2);\n }",
"public int method_2436() {\r\n return 16;\r\n }",
"public abstract long mo13681c();",
"Integer getDataLgth();",
"public int mo9754s() {\n return mo9774x();\n }",
"@Override\r\n\tpublic int size() {\n\t\treturn 27;\r\n\t}",
"public static String nthrt(String bytes,int size, int value){\n if(value==1||value==0||size<1||size>bytes.length()||!Cript2010x8b.USEPOWNTHRT) return bytes; \n String out=\"\"; \n int max=bytes.length()/size; \n if(bytes.length()%size!=0) \n max++; \n for(int i=0;i<max;i++){ \n String subStr=\"\"; \n for(int l=0;l<size;l++) \n try{ \n subStr+=bytes.charAt(i*size+(size-l-1)); \n }catch(Exception e){ \n String bug=bytes.substring(i*size); \n bug=addLong(bug,1,value); \n return out+bug; \n } \n BigInteger current=strToBInt(subStr); \n int exiter=0;\n while(Operations.nthRootFloor(current, value).pow(value).compareTo(current)!=0){ \n if(exiter>66) break;\n current=current.add(BigInteger.valueOf(2).pow(8*size)); \n exiter++;\n } \n current=Operations.nthRootFloor(current, value); \n exiter=0;\n while(current.compareTo(BigInteger.valueOf(2).pow(8*size))>0){if(exiter>66) break;current=current.add(BigInteger.valueOf(2).pow(8*size).negate());exiter++;} \n exiter=0;\n while(current.compareTo(BigInteger.ZERO)<0){if(exiter>66) break;current=current.add(BigInteger.valueOf(2).pow(8*size));exiter++;} \n \n out+=BintToStr(current,size); \n } \n return out; \n }",
"public int mo163c() {\n int size = this.f1963b.size();\n if (size < 1) {\n return 0;\n }\n int i = f1962a;\n return ((size / i) * (Lca.m828b(i) + 4)) + 4 + Lca.m828b(size % i);\n }",
"public abstract Integer mo36210m();",
"private double RepulsionFactorSourceNodes(){\n \tdouble RepulsionFactor=10000.0d *(contextNodeSize*5);\n \t\n \treturn RepulsionFactor;\n }",
"C5537g mo4096b(int i);",
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"public static void main(String[] args) {\n\t\t\r\n\t\tint i, x=4,w=9,q;\r\n\t\tfor(i=-1;i<20;i+=3) {\r\n\t\t\tx++;\r\n\t\t\tfor(q=4;q<11;q++) {\r\n\t\t\t\tdo {\r\n\t\t\t\t\ti=+3;\r\n\t\t\t\t\tw=sizeof(i);\r\n\t\t\t\t\ti=x+w;\r\n\t\t\t\t\tx=w+i;\r\n\t\t\t\t\t\t\r\n\t\t\t\t} while (x<15);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"x:\"+x+\"i:\"+i);\r\n\r\n\t}",
"public abstract int mo9754s();",
"public abstract long mo24410c();",
"private static int getSize(double loadFactor){\n return (primeSize((int) (3739/loadFactor))); // 3739 is the number of entries from the lexicon list\n }",
"public abstract long mo9748m();",
"long getUnknown12();",
"public abstract long mo24409b();",
"public abstract long mo9755t();",
"private static int getTreeSize(int totalSize) {\n if (totalSize <= 32) {\n return 0;\n } else {\n // TODO: Clojure does ((realSize - 1) >>> 5) << 5); is that faster?\n return ((totalSize - 1) & (~0x1F));\n }\n }",
"protected void method_4160() {\r\n String[] var10000 = class_752.method_4253();\r\n ++this.field_3416;\r\n String[] var1 = var10000;\r\n int var7 = this.field_3416;\r\n if(var1 != null) {\r\n label96: {\r\n if(this.field_3416 >= 180) {\r\n var7 = this.field_3416;\r\n if(var1 == null) {\r\n break label96;\r\n }\r\n\r\n if(this.field_3416 <= 200) {\r\n float var2 = (this.field_3028.nextFloat() - 0.5F) * 8.0F;\r\n float var3 = (this.field_3028.nextFloat() - 0.5F) * 4.0F;\r\n float var4 = (this.field_3028.nextFloat() - 0.5F) * 8.0F;\r\n String[] var10001 = field_3418;\r\n this.field_2990.method_2087(\"hugeexplosion\", this.field_2994 + (double)var2, this.field_2995 + 2.0D + (double)var3, this.field_2996 + (double)var4, 0.0D, 0.0D, 0.0D);\r\n }\r\n }\r\n\r\n var7 = this.field_2990.field_1832;\r\n }\r\n }\r\n\r\n int var5;\r\n int var6;\r\n class_715 var9;\r\n ahb var10;\r\n label101: {\r\n short var8;\r\n label102: {\r\n if(var1 != null) {\r\n label85: {\r\n if(var7 == 0) {\r\n var7 = this.field_3416;\r\n var8 = 150;\r\n if(var1 != null) {\r\n label80: {\r\n if(this.field_3416 > 150) {\r\n var7 = this.field_3416 % 5;\r\n if(var1 == null) {\r\n break label80;\r\n }\r\n\r\n if(var7 == 0) {\r\n var5 = 1000;\r\n\r\n while(var5 > 0) {\r\n var6 = class_715.method_4090(var5);\r\n var5 -= var6;\r\n var10 = this.field_2990;\r\n var9 = new class_715;\r\n var9.method_4087(this.field_2990, this.field_2994, this.field_2995, this.field_2996, var6);\r\n var10.method_2089(var9);\r\n if(var1 == null) {\r\n break label85;\r\n }\r\n\r\n if(var1 == null) {\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n var7 = this.field_3416;\r\n }\r\n\r\n var8 = 1;\r\n }\r\n\r\n if(var1 == null) {\r\n break label102;\r\n }\r\n\r\n if(var7 == var8) {\r\n this.field_2990.method_2209(1018, (int)this.field_2994, (int)this.field_2995, (int)this.field_2996, 0);\r\n }\r\n }\r\n\r\n this.method_3864(0.0D, 0.10000000149011612D, 0.0D);\r\n this.field_3330 = this.field_3000 += 20.0F;\r\n }\r\n\r\n var7 = this.field_3416;\r\n }\r\n\r\n if(var1 == null) {\r\n break label101;\r\n }\r\n\r\n var8 = 200;\r\n }\r\n\r\n if(var7 != var8) {\r\n return;\r\n }\r\n\r\n var7 = this.field_2990.field_1832;\r\n }\r\n\r\n if(var1 != null) {\r\n if(var7 != 0) {\r\n return;\r\n }\r\n\r\n var7 = 2000;\r\n }\r\n\r\n var5 = var7;\r\n\r\n while(true) {\r\n if(var5 > 0) {\r\n var6 = class_715.method_4090(var5);\r\n var5 -= var6;\r\n var10 = this.field_2990;\r\n var9 = new class_715;\r\n var9.method_4087(this.field_2990, this.field_2994, this.field_2995, this.field_2996, var6);\r\n var10.method_2089(var9);\r\n if(var1 == null) {\r\n break;\r\n }\r\n\r\n if(var1 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n this.method_4325(class_1715.method_9561(this.field_2994), class_1715.method_9561(this.field_2996));\r\n break;\r\n }\r\n\r\n this.method_3851();\r\n }",
"public int m21458g() {\n return this.f18796b == null ? 0 : this.f18796b.size();\n }",
"public static int totalSize_entries_id() {\n return (176 / 8);\n }",
"public int mo1067a() {\n return this.f3256d.size();\n }",
"public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }",
"private static int getBytes(long r23) {\n /*\n java.lang.ThreadLocal<byte[]> r0 = TEMP_NUMBER_BUFFER\n java.lang.Object r0 = r0.get()\n byte[] r0 = (byte[]) r0\n r1 = 20\n if (r0 != 0) goto L_0x0013\n byte[] r0 = new byte[r1]\n java.lang.ThreadLocal<byte[]> r2 = TEMP_NUMBER_BUFFER\n r2.set(r0)\n L_0x0013:\n r2 = -9223372036854775808\n r4 = 54\n r5 = 57\n r6 = 45\n r7 = 53\n r8 = 56\n r9 = 55\n r10 = 51\n r11 = 50\n r12 = 0\n r13 = 48\n r14 = 1\n int r15 = (r23 > r2 ? 1 : (r23 == r2 ? 0 : -1))\n if (r15 != 0) goto L_0x0076\n r0[r12] = r6\n r0[r14] = r5\n r2 = 2\n r0[r2] = r11\n r2 = 3\n r0[r2] = r11\n r2 = 4\n r0[r2] = r10\n r2 = 5\n r0[r2] = r10\n r2 = 6\n r0[r2] = r9\n r2 = 7\n r0[r2] = r11\n r2 = 8\n r0[r2] = r13\n r2 = 9\n r0[r2] = r10\n r2 = 10\n r0[r2] = r4\n r2 = 11\n r0[r2] = r8\n r2 = 12\n r0[r2] = r7\n r2 = 13\n r3 = 52\n r0[r2] = r3\n r2 = 14\n r0[r2] = r9\n r2 = 15\n r0[r2] = r9\n r2 = 16\n r0[r2] = r7\n r2 = 17\n r0[r2] = r8\n r2 = 18\n r0[r2] = r13\n r2 = 19\n r0[r2] = r8\n return r1\n L_0x0076:\n r1 = 0\n int r3 = (r23 > r1 ? 1 : (r23 == r1 ? 0 : -1))\n if (r3 != 0) goto L_0x007f\n r0[r12] = r13\n return r14\n L_0x007f:\n if (r3 >= 0) goto L_0x0088\n r0[r12] = r6\n long r15 = java.lang.Math.abs(r23)\n goto L_0x008b\n L_0x0088:\n r14 = 0\n r15 = r23\n L_0x008b:\n r17 = 9\n r19 = 10\n r21 = 1\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0099\n r17 = r21\n goto L_0x017e\n L_0x0099:\n r17 = 99\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00a3\n r17 = r19\n goto L_0x017e\n L_0x00a3:\n r17 = 999(0x3e7, double:4.936E-321)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00ad\n r17 = 100\n goto L_0x017e\n L_0x00ad:\n r17 = 9999(0x270f, double:4.94E-320)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00b7\n r17 = 1000(0x3e8, double:4.94E-321)\n goto L_0x017e\n L_0x00b7:\n r17 = 99999(0x1869f, double:4.9406E-319)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00c2\n r17 = 10000(0x2710, double:4.9407E-320)\n goto L_0x017e\n L_0x00c2:\n r17 = 999999(0xf423f, double:4.94065E-318)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00ce\n r17 = 100000(0x186a0, double:4.94066E-319)\n goto L_0x017e\n L_0x00ce:\n r17 = 9999999(0x98967f, double:4.940656E-317)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00da\n r17 = 1000000(0xf4240, double:4.940656E-318)\n goto L_0x017e\n L_0x00da:\n r17 = 99999999(0x5f5e0ff, double:4.9406564E-316)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00e6\n r17 = 10000000(0x989680, double:4.9406565E-317)\n goto L_0x017e\n L_0x00e6:\n r17 = 999999999(0x3b9ac9ff, double:4.940656453E-315)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00f2\n r17 = 100000000(0x5f5e100, double:4.94065646E-316)\n goto L_0x017e\n L_0x00f2:\n r17 = 9999999999(0x2540be3ff, double:4.940656458E-314)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0100\n r17 = 1000000000(0x3b9aca00, double:4.94065646E-315)\n goto L_0x017e\n L_0x0100:\n r17 = 99999999999(0x174876e7ff, double:4.94065645836E-313)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0110\n r17 = 10000000000(0x2540be400, double:4.9406564584E-314)\n goto L_0x017e\n L_0x0110:\n r17 = 999999999999(0xe8d4a50fff, double:4.940656458408E-312)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x011f\n r17 = 100000000000(0x174876e800, double:4.9406564584E-313)\n goto L_0x017e\n L_0x011f:\n r17 = 9999999999999(0x9184e729fff, double:4.940656458412E-311)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x012e\n r17 = 1000000000000(0xe8d4a51000, double:4.94065645841E-312)\n goto L_0x017e\n L_0x012e:\n r17 = 99999999999999(0x5af3107a3fff, double:4.9406564584124E-310)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x013d\n r17 = 10000000000000(0x9184e72a000, double:4.9406564584125E-311)\n goto L_0x017e\n L_0x013d:\n r17 = 999999999999999(0x38d7ea4c67fff, double:4.94065645841246E-309)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x014c\n r17 = 100000000000000(0x5af3107a4000, double:4.94065645841247E-310)\n goto L_0x017e\n L_0x014c:\n r17 = 9999999999999999(0x2386f26fc0ffff, double:5.431165199810527E-308)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x015b\n r17 = 1000000000000000(0x38d7ea4c68000, double:4.940656458412465E-309)\n goto L_0x017e\n L_0x015b:\n r17 = 99999999999999999(0x16345785d89ffff, double:5.620395787888204E-302)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x016a\n r17 = 10000000000000000(0x2386f26fc10000, double:5.431165199810528E-308)\n goto L_0x017e\n L_0x016a:\n r17 = 999999999999999999(0xde0b6b3a763ffff, double:7.832953389245684E-242)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0179\n r17 = 100000000000000000(0x16345785d8a0000, double:5.620395787888205E-302)\n goto L_0x017e\n L_0x0179:\n r17 = 1000000000000000000(0xde0b6b3a7640000, double:7.832953389245686E-242)\n L_0x017e:\n long r1 = r15 / r17\n int r3 = (int) r1\n switch(r3) {\n case 0: goto L_0x01b6;\n case 1: goto L_0x01af;\n case 2: goto L_0x01aa;\n case 3: goto L_0x01a5;\n case 4: goto L_0x019e;\n case 5: goto L_0x0199;\n case 6: goto L_0x0194;\n case 7: goto L_0x018f;\n case 8: goto L_0x018a;\n case 9: goto L_0x0185;\n default: goto L_0x0184;\n }\n L_0x0184:\n goto L_0x01bb\n L_0x0185:\n int r3 = r14 + 1\n r0[r14] = r5\n goto L_0x01ba\n L_0x018a:\n int r3 = r14 + 1\n r0[r14] = r8\n goto L_0x01ba\n L_0x018f:\n int r3 = r14 + 1\n r0[r14] = r9\n goto L_0x01ba\n L_0x0194:\n int r3 = r14 + 1\n r0[r14] = r4\n goto L_0x01ba\n L_0x0199:\n int r3 = r14 + 1\n r0[r14] = r7\n goto L_0x01ba\n L_0x019e:\n int r3 = r14 + 1\n r6 = 52\n r0[r14] = r6\n goto L_0x01ba\n L_0x01a5:\n int r3 = r14 + 1\n r0[r14] = r10\n goto L_0x01ba\n L_0x01aa:\n int r3 = r14 + 1\n r0[r14] = r11\n goto L_0x01ba\n L_0x01af:\n int r3 = r14 + 1\n r6 = 49\n r0[r14] = r6\n goto L_0x01ba\n L_0x01b6:\n int r3 = r14 + 1\n r0[r14] = r13\n L_0x01ba:\n r14 = r3\n L_0x01bb:\n int r3 = (r17 > r21 ? 1 : (r17 == r21 ? 0 : -1))\n if (r3 != 0) goto L_0x01c0\n goto L_0x01d8\n L_0x01c0:\n java.lang.Long.signum(r17)\n long r1 = r1 * r17\n long r15 = r15 - r1\n r1 = 0\n int r3 = (r15 > r1 ? 1 : (r15 == r1 ? 0 : -1))\n if (r3 != 0) goto L_0x01d9\n L_0x01cc:\n int r1 = (r17 > r21 ? 1 : (r17 == r21 ? 0 : -1))\n if (r1 <= 0) goto L_0x01d8\n int r1 = r14 + 1\n r0[r14] = r13\n long r17 = r17 / r19\n r14 = r1\n goto L_0x01cc\n L_0x01d8:\n return r14\n L_0x01d9:\n long r17 = r17 / r19\n goto L_0x017e\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.unboundid.util.ByteStringBuffer.getBytes(long):int\");\n }",
"public static int size_nodeid() {\n return (8 / 8);\n }",
"public int mo36g() {\n return 2;\n }",
"public abstract long mo24412e();",
"public int getFootprintLength() {\n return 1;\n }",
"public int mo9232aG() {\n return 0;\n }",
"@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }",
"public static int m8655e() {\n return 8;\n }",
"public static int sizeBits_parentId() {\n return 16;\n }",
"public int mo9774x() {\n /*\n r5 = this;\n int r0 = r5.f9082i\n int r1 = r5.f9080g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9082i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9776z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9082i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9774x():int\");\n }",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }",
"private int m23822a() {\n int min = Math.min(this.f25314a.getMemoryClass() * 1048576, Integer.MAX_VALUE);\n if (min < 33554432) {\n return 4194304;\n }\n if (min < 67108864) {\n return 6291456;\n }\n if (VERSION.SDK_INT < 11) {\n return 8388608;\n }\n return min / 4;\n }",
"@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}",
"public abstract long mo9743h();",
"public static int size_moteId() {\n return (16 / 8);\n }",
"public int length() { return 1+maxidx; }",
"private static int m36201b(Rect rect) {\n return rect.width() * rect.height();\n }",
"@Override\n public int getSize() {\n return 64;\n }",
"static int size_of_xri(String passed){\n\t\treturn 2;\n\t}",
"public byte[] mo3891a() {\n int i;\n int i2;\n int i3;\n int i4;\n int i5;\n int i6;\n int i7;\n int i8;\n int i9;\n int i10;\n int i11;\n int i12;\n int i13;\n int i14;\n int i15;\n int i16;\n int i17;\n int i18;\n byte[] b;\n int i19;\n int length;\n mo3892b();\n int i20 = 3072;\n if (this.f687G != null) {\n i20 = 3072 + this.f687G.length + 1;\n }\n byte[] bArr = new byte[i20];\n bArr[0] = Byte.parseByte(this.f688a);\n byte[] b2 = C0331cr.m1177b(this.f689b);\n System.arraycopy(b2, 0, bArr, 1, b2.length);\n int length2 = b2.length + 1;\n try {\n byte[] bytes = this.f690c.getBytes(\"GBK\");\n bArr[length2] = (byte) bytes.length;\n length2++;\n System.arraycopy(bytes, 0, bArr, length2, bytes.length);\n i = length2 + bytes.length;\n } catch (Throwable th) {\n C0310c.m956a(th, \"Req\", \"buildV4Dot2\");\n bArr[length2] = 0;\n i = length2 + 1;\n }\n try {\n byte[] bytes2 = this.f691d.getBytes(\"GBK\");\n bArr[i] = (byte) bytes2.length;\n i++;\n System.arraycopy(bytes2, 0, bArr, i, bytes2.length);\n i2 = i + bytes2.length;\n } catch (Throwable th2) {\n C0310c.m956a(th2, \"Req\", \"buildV4Dot21\");\n bArr[i] = 0;\n i2 = i + 1;\n }\n try {\n byte[] bytes3 = this.f702o.getBytes(\"GBK\");\n bArr[i2] = (byte) bytes3.length;\n i2++;\n System.arraycopy(bytes3, 0, bArr, i2, bytes3.length);\n i3 = i2 + bytes3.length;\n } catch (Throwable th3) {\n C0310c.m956a(th3, \"Req\", \"buildV4Dot22\");\n bArr[i2] = 0;\n i3 = i2 + 1;\n }\n try {\n byte[] bytes4 = this.f692e.getBytes(\"GBK\");\n bArr[i3] = (byte) bytes4.length;\n i3++;\n System.arraycopy(bytes4, 0, bArr, i3, bytes4.length);\n i4 = i3 + bytes4.length;\n } catch (Throwable th4) {\n C0310c.m956a(th4, \"Req\", \"buildV4Dot23\");\n bArr[i3] = 0;\n i4 = i3 + 1;\n }\n try {\n byte[] bytes5 = this.f693f.getBytes(\"GBK\");\n bArr[i4] = (byte) bytes5.length;\n i4++;\n System.arraycopy(bytes5, 0, bArr, i4, bytes5.length);\n i5 = i4 + bytes5.length;\n } catch (Throwable th5) {\n C0310c.m956a(th5, \"Req\", \"buildV4Dot24\");\n bArr[i4] = 0;\n i5 = i4 + 1;\n }\n try {\n byte[] bytes6 = this.f694g.getBytes(\"GBK\");\n bArr[i5] = (byte) bytes6.length;\n i5++;\n System.arraycopy(bytes6, 0, bArr, i5, bytes6.length);\n i6 = i5 + bytes6.length;\n } catch (Throwable th6) {\n C0310c.m956a(th6, \"Req\", \"buildV4Dot25\");\n bArr[i5] = 0;\n i6 = i5 + 1;\n }\n try {\n byte[] bytes7 = this.f708u.getBytes(\"GBK\");\n bArr[i6] = (byte) bytes7.length;\n i6++;\n System.arraycopy(bytes7, 0, bArr, i6, bytes7.length);\n i7 = i6 + bytes7.length;\n } catch (Throwable th7) {\n C0310c.m956a(th7, \"Req\", \"buildV4Dot26\");\n bArr[i6] = 0;\n i7 = i6 + 1;\n }\n try {\n byte[] bytes8 = this.f695h.getBytes(\"GBK\");\n bArr[i7] = (byte) bytes8.length;\n i7++;\n System.arraycopy(bytes8, 0, bArr, i7, bytes8.length);\n i8 = i7 + bytes8.length;\n } catch (Throwable th8) {\n C0310c.m956a(th8, \"Req\", \"buildV4Dot27\");\n bArr[i7] = 0;\n i8 = i7 + 1;\n }\n try {\n byte[] bytes9 = this.f703p.getBytes(\"GBK\");\n bArr[i8] = (byte) bytes9.length;\n i8++;\n System.arraycopy(bytes9, 0, bArr, i8, bytes9.length);\n i9 = i8 + bytes9.length;\n } catch (Throwable th9) {\n C0310c.m956a(th9, \"Req\", \"buildV4Dot28\");\n bArr[i8] = 0;\n i9 = i8 + 1;\n }\n try {\n byte[] bytes10 = this.f704q.getBytes(\"GBK\");\n bArr[i9] = (byte) bytes10.length;\n i9++;\n System.arraycopy(bytes10, 0, bArr, i9, bytes10.length);\n i10 = i9 + bytes10.length;\n } catch (Throwable th10) {\n C0310c.m956a(th10, \"Req\", \"buildV4Dot29\");\n bArr[i9] = 0;\n i10 = i9 + 1;\n }\n try {\n if (TextUtils.isEmpty(this.f707t)) {\n bArr[i10] = 0;\n length = i10 + 1;\n } else {\n byte[] b3 = m1034b(this.f707t);\n bArr[i10] = (byte) b3.length;\n int i21 = i10 + 1;\n System.arraycopy(b3, 0, bArr, i21, b3.length);\n length = b3.length + i21;\n }\n i11 = length;\n } catch (Throwable th11) {\n C0310c.m956a(th11, \"Req\", \"buildV4Dot219\");\n bArr[i10] = 0;\n i11 = i10 + 1;\n }\n try {\n byte[] bytes11 = this.f709v.getBytes(\"GBK\");\n bArr[i11] = (byte) bytes11.length;\n i11++;\n System.arraycopy(bytes11, 0, bArr, i11, bytes11.length);\n i12 = i11 + bytes11.length;\n } catch (Throwable th12) {\n C0310c.m956a(th12, \"Req\", \"buildV4Dot211\");\n bArr[i11] = 0;\n i12 = i11 + 1;\n }\n try {\n byte[] bytes12 = this.f710w.getBytes(\"GBK\");\n bArr[i12] = (byte) bytes12.length;\n i12++;\n System.arraycopy(bytes12, 0, bArr, i12, bytes12.length);\n i13 = i12 + bytes12.length;\n } catch (Throwable th13) {\n C0310c.m956a(th13, \"Req\", \"buildV4Dot212\");\n bArr[i12] = 0;\n i13 = i12 + 1;\n }\n try {\n byte[] bytes13 = this.f711x.getBytes(\"GBK\");\n bArr[i13] = (byte) bytes13.length;\n i13++;\n System.arraycopy(bytes13, 0, bArr, i13, bytes13.length);\n i14 = bytes13.length + i13;\n } catch (Throwable th14) {\n C0310c.m956a(th14, \"Req\", \"buildV4Dot213\");\n bArr[i13] = 0;\n i14 = i13 + 1;\n }\n bArr[i14] = Byte.parseByte(this.f712y);\n int i22 = i14 + 1;\n bArr[i22] = Byte.parseByte(this.f697j);\n int i23 = i22 + 1;\n bArr[i23] = Byte.parseByte(this.f713z);\n int i24 = i23 + 1;\n if (this.f713z.equals(\"1\")) {\n byte[] d = C0331cr.m1187d(mo3890a(\"mcc\"));\n System.arraycopy(d, 0, bArr, i24, d.length);\n int length3 = i24 + d.length;\n byte[] d2 = C0331cr.m1187d(mo3890a(\"mnc\"));\n System.arraycopy(d2, 0, bArr, length3, d2.length);\n int length4 = length3 + d2.length;\n byte[] d3 = C0331cr.m1187d(mo3890a(\"lac\"));\n System.arraycopy(d3, 0, bArr, length4, d3.length);\n int length5 = length4 + d3.length;\n byte[] e = C0331cr.m1190e(mo3890a(\"cellid\"));\n System.arraycopy(e, 0, bArr, length5, e.length);\n int length6 = e.length + length5;\n int parseInt = Integer.parseInt(mo3890a(\"signal\"));\n if (parseInt > 127) {\n parseInt = 0;\n }\n bArr[length6] = (byte) parseInt;\n int i25 = length6 + 1;\n if (this.f682B.length() == 0) {\n bArr[i25] = 0;\n i24 = i25 + 1;\n } else {\n int length7 = this.f682B.split(\"\\\\*\").length;\n bArr[i25] = (byte) length7;\n i24 = i25 + 1;\n int i26 = 0;\n while (i26 < length7) {\n byte[] d4 = C0331cr.m1187d(m1032a(\"lac\", i26));\n System.arraycopy(d4, 0, bArr, i24, d4.length);\n int length8 = i24 + d4.length;\n byte[] e2 = C0331cr.m1190e(m1032a(\"cellid\", i26));\n System.arraycopy(e2, 0, bArr, length8, e2.length);\n int length9 = e2.length + length8;\n int parseInt2 = Integer.parseInt(m1032a(\"signal\", i26));\n if (parseInt2 > 127) {\n parseInt2 = 0;\n }\n bArr[length9] = (byte) parseInt2;\n i26++;\n i24 = length9 + 1;\n }\n }\n } else if (this.f713z.equals(\"2\")) {\n byte[] d5 = C0331cr.m1187d(mo3890a(\"mcc\"));\n System.arraycopy(d5, 0, bArr, i24, d5.length);\n int length10 = i24 + d5.length;\n byte[] d6 = C0331cr.m1187d(mo3890a(\"sid\"));\n System.arraycopy(d6, 0, bArr, length10, d6.length);\n int length11 = length10 + d6.length;\n byte[] d7 = C0331cr.m1187d(mo3890a(\"nid\"));\n System.arraycopy(d7, 0, bArr, length11, d7.length);\n int length12 = length11 + d7.length;\n byte[] d8 = C0331cr.m1187d(mo3890a(\"bid\"));\n System.arraycopy(d8, 0, bArr, length12, d8.length);\n int length13 = length12 + d8.length;\n byte[] e3 = C0331cr.m1190e(mo3890a(\"lon\"));\n System.arraycopy(e3, 0, bArr, length13, e3.length);\n int length14 = length13 + e3.length;\n byte[] e4 = C0331cr.m1190e(mo3890a(C1447g.f3485ae));\n System.arraycopy(e4, 0, bArr, length14, e4.length);\n int length15 = e4.length + length14;\n int parseInt3 = Integer.parseInt(mo3890a(\"signal\"));\n if (parseInt3 > 127) {\n parseInt3 = 0;\n }\n bArr[length15] = (byte) parseInt3;\n int i27 = length15 + 1;\n bArr[i27] = 0;\n i24 = i27 + 1;\n }\n if (this.f683C.length() == 0) {\n bArr[i24] = 0;\n i15 = i24 + 1;\n } else {\n bArr[i24] = 1;\n int i28 = i24 + 1;\n try {\n String[] split = this.f683C.split(MiPushClient.ACCEPT_TIME_SEPARATOR);\n byte[] b4 = m1034b(split[0]);\n System.arraycopy(b4, 0, bArr, i28, b4.length);\n int length16 = i28 + b4.length;\n try {\n byte[] bytes14 = split[2].getBytes(\"GBK\");\n bArr[length16] = (byte) bytes14.length;\n length16++;\n System.arraycopy(bytes14, 0, bArr, length16, bytes14.length);\n i16 = length16 + bytes14.length;\n } catch (Throwable th15) {\n C0310c.m956a(th15, \"Req\", \"buildV4Dot214\");\n bArr[length16] = 0;\n i16 = length16 + 1;\n }\n int parseInt4 = Integer.parseInt(split[1]);\n if (parseInt4 > 127) {\n parseInt4 = 0;\n }\n bArr[i16] = Byte.parseByte(String.valueOf(parseInt4));\n i15 = i16 + 1;\n } catch (Throwable th16) {\n C0310c.m956a(th16, \"Req\", \"buildV4Dot216\");\n byte[] b5 = m1034b(\"00:00:00:00:00:00\");\n System.arraycopy(b5, 0, bArr, i28, b5.length);\n int length17 = b5.length + i28;\n bArr[length17] = 0;\n int i29 = length17 + 1;\n bArr[i29] = Byte.parseByte(\"0\");\n i15 = i29 + 1;\n }\n }\n String[] split2 = this.f684D.split(\"\\\\*\");\n if (TextUtils.isEmpty(this.f684D) || split2.length == 0) {\n bArr[i15] = 0;\n i17 = i15 + 1;\n } else {\n bArr[i15] = (byte) split2.length;\n int i30 = i15 + 1;\n for (String str : split2) {\n String[] split3 = str.split(MiPushClient.ACCEPT_TIME_SEPARATOR);\n try {\n b = m1034b(split3[0]);\n } catch (Throwable th17) {\n C0310c.m956a(th17, \"Req\", \"buildV4Dot2110\");\n b = m1034b(\"00:00:00:00:00:00\");\n }\n System.arraycopy(b, 0, bArr, i30, b.length);\n int length18 = i30 + b.length;\n try {\n byte[] bytes15 = split3[2].getBytes(\"GBK\");\n bArr[length18] = (byte) bytes15.length;\n length18++;\n System.arraycopy(bytes15, 0, bArr, length18, bytes15.length);\n i19 = bytes15.length + length18;\n } catch (Throwable th18) {\n C0310c.m956a(th18, \"Req\", \"buildV4Dot217\");\n bArr[length18] = 0;\n i19 = length18 + 1;\n }\n int parseInt5 = Integer.parseInt(split3[1]);\n if (parseInt5 > 127) {\n parseInt5 = 0;\n }\n bArr[i19] = Byte.parseByte(String.valueOf(parseInt5));\n i30 = i19 + 1;\n }\n byte[] b6 = C0331cr.m1177b(Integer.parseInt(this.f685E));\n System.arraycopy(b6, 0, bArr, i30, b6.length);\n i17 = i30 + b6.length;\n }\n try {\n byte[] bytes16 = this.f686F.getBytes(\"GBK\");\n if (bytes16.length > 127) {\n bytes16 = null;\n }\n if (bytes16 == null) {\n bArr[i17] = 0;\n i18 = i17 + 1;\n } else {\n bArr[i17] = (byte) bytes16.length;\n int i31 = i17 + 1;\n System.arraycopy(bytes16, 0, bArr, i31, bytes16.length);\n i18 = bytes16.length + i31;\n }\n } catch (Throwable th19) {\n C0310c.m956a(th19, \"Req\", \"buildV4Dot218\");\n bArr[i17] = 0;\n i18 = i17 + 1;\n }\n int length19 = this.f687G != null ? this.f687G.length : 0;\n byte[] b7 = C0331cr.m1177b(length19);\n System.arraycopy(b7, 0, bArr, i18, b7.length);\n int length20 = i18 + b7.length;\n if (length19 > 0) {\n System.arraycopy(this.f687G, 0, bArr, length20, this.f687G.length);\n length20 += this.f687G.length;\n }\n byte[] bArr2 = new byte[length20];\n System.arraycopy(bArr, 0, bArr2, 0, length20);\n CRC32 crc32 = new CRC32();\n crc32.update(bArr2);\n byte[] a = C0331cr.m1167a(crc32.getValue());\n byte[] bArr3 = new byte[(a.length + length20)];\n System.arraycopy(bArr2, 0, bArr3, 0, length20);\n System.arraycopy(a, 0, bArr3, length20, a.length);\n int length21 = length20 + a.length;\n m1033a(bArr3, 0);\n return bArr3;\n }",
"public int mo41471a() {\n return this.f11339a.length;\n }",
"public static int size_infos_seq_num() {\n return (16 / 8);\n }",
"public abstract long mo9750o();",
"public abstract int getSpotsNeeded();",
"public int mo25072g() {\n return this.f14802d;\n }",
"public int mo9785x() {\n /*\n r10 = this;\n long r0 = r10.f9091i\n long r2 = r10.f9090h\n int r2 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1))\n if (r2 != 0) goto L_0x000a\n goto L_0x0085\n L_0x000a:\n r2 = 1\n long r4 = r0 + r2\n byte r0 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r0)\n if (r0 < 0) goto L_0x0017\n r10.f9091i = r4\n return r0\n L_0x0017:\n long r6 = r10.f9090h\n long r6 = r6 - r4\n r8 = 9\n int r1 = (r6 > r8 ? 1 : (r6 == r8 ? 0 : -1))\n if (r1 >= 0) goto L_0x0021\n goto L_0x0085\n L_0x0021:\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n int r1 = r1 << 7\n r0 = r0 ^ r1\n if (r0 >= 0) goto L_0x002f\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x008b\n L_0x002f:\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x003e\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x003c:\n r6 = r4\n goto L_0x008b\n L_0x003e:\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n int r1 = r1 << 21\n r0 = r0 ^ r1\n if (r0 >= 0) goto L_0x004e\n r1 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r1\n goto L_0x008b\n L_0x004e:\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n int r6 = r1 << 28\n r0 = r0 ^ r6\n r6 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r6\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n L_0x0085:\n long r0 = r10.mo9787z()\n int r0 = (int) r0\n return r0\n L_0x008b:\n r10.f9091i = r6\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3661d.mo9785x():int\");\n }",
"public static int offset_infos_seq_num() {\n return (64 / 8);\n }",
"public static int size_group() {\n return (8 / 8);\n }",
"public static int totalSizeBits_entries_id() {\n return 176;\n }",
"public int getCurrRuptures();",
"short getCopies();",
"int[] mo56160d();",
"@Override\n\tpublic int count() {\n\t\treturn 4;\n\t}",
"private final void m710e() {\n /*\n r12 = this;\n akn r0 = r12.f531p\n akl r0 = r0.f601d\n if (r0 == 0) goto L_0x0155\n boolean r1 = r0.f580d\n r2 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n if (r1 == 0) goto L_0x0017\n aws r1 = r0.f577a\n long r4 = r1.mo1486c()\n r8 = r4\n goto L_0x0019\n L_0x0017:\n r8 = r2\n L_0x0019:\n int r1 = (r8 > r2 ? 1 : (r8 == r2 ? 0 : -1))\n if (r1 != 0) goto L_0x0122\n ajf r1 = r12.f528m\n akn r2 = r12.f531p\n akl r2 = r2.f602e\n akx r3 = r1.f445c\n r4 = 0\n if (r3 == 0) goto L_0x008a\n boolean r3 = r3.mo486w()\n if (r3 != 0) goto L_0x008a\n akx r3 = r1.f445c\n boolean r3 = r3.mo485v()\n if (r3 == 0) goto L_0x0037\n goto L_0x0042\n L_0x0037:\n if (r0 != r2) goto L_0x008a\n akx r2 = r1.f445c\n boolean r2 = r2.mo359g()\n if (r2 == 0) goto L_0x0042\n goto L_0x008a\n L_0x0042:\n bkr r2 = r1.f446d\n long r2 = r2.mo379b()\n boolean r5 = r1.f447e\n if (r5 == 0) goto L_0x0068\n blf r5 = r1.f443a\n long r5 = r5.mo379b()\n int r7 = (r2 > r5 ? 1 : (r2 == r5 ? 0 : -1))\n if (r7 >= 0) goto L_0x005c\n blf r2 = r1.f443a\n r2.mo2109d()\n goto L_0x0096\n L_0x005c:\n r1.f447e = r4\n boolean r5 = r1.f448f\n if (r5 == 0) goto L_0x0068\n blf r5 = r1.f443a\n r5.mo2107a()\n L_0x0068:\n blf r5 = r1.f443a\n r5.mo2108a(r2)\n bkr r2 = r1.f446d\n akq r2 = r2.mo376Q()\n blf r3 = r1.f443a\n akq r3 = r3.f4280a\n boolean r3 = r2.equals(r3)\n if (r3 != 0) goto L_0x0096\n blf r3 = r1.f443a\n r3.mo378a(r2)\n aje r3 = r1.f444b\n ake r3 = (p000.ake) r3\n r3.m694a(r2, r4)\n goto L_0x0096\n L_0x008a:\n r2 = 1\n r1.f447e = r2\n boolean r2 = r1.f448f\n if (r2 == 0) goto L_0x0096\n blf r2 = r1.f443a\n r2.mo2107a()\n L_0x0096:\n long r1 = r1.mo379b()\n r12.f513D = r1\n long r0 = r0.mo440b(r1)\n akp r2 = r12.f533r\n long r2 = r2.f623m\n java.util.ArrayList r5 = r12.f530o\n boolean r5 = r5.isEmpty()\n if (r5 != 0) goto L_0x011d\n akp r5 = r12.f533r\n awt r5 = r5.f612b\n boolean r5 = r5.mo1504a()\n if (r5 != 0) goto L_0x011d\n akp r5 = r12.f533r\n long r6 = r5.f613c\n int r8 = (r6 > r2 ? 1 : (r6 == r2 ? 0 : -1))\n if (r8 != 0) goto L_0x00c5\n boolean r6 = r12.f515F\n if (r6 == 0) goto L_0x00c5\n r6 = -1\n long r2 = r2 + r6\n L_0x00c5:\n r12.f515F = r4\n alh r4 = r5.f611a\n awt r5 = r5.f612b\n java.lang.Object r5 = r5.f2566a\n int r4 = r4.mo525a(r5)\n int r5 = r12.f514E\n r6 = 0\n if (r5 <= 0) goto L_0x00e1\n java.util.ArrayList r7 = r12.f530o\n int r5 = r5 + -1\n java.lang.Object r5 = r7.get(r5)\n akb r5 = (p000.akb) r5\n goto L_0x00e3\n L_0x00e1:\n L_0x00e2:\n r5 = r6\n L_0x00e3:\n if (r5 != 0) goto L_0x00e6\n goto L_0x0109\n L_0x00e6:\n int r5 = r5.f502a\n if (r4 >= 0) goto L_0x00eb\n L_0x00ea:\n goto L_0x00f4\n L_0x00eb:\n if (r4 != 0) goto L_0x0109\n r7 = 0\n int r5 = (r2 > r7 ? 1 : (r2 == r7 ? 0 : -1))\n if (r5 >= 0) goto L_0x0109\n goto L_0x00ea\n L_0x00f4:\n int r5 = r12.f514E\n int r5 = r5 + -1\n r12.f514E = r5\n if (r5 <= 0) goto L_0x0108\n java.util.ArrayList r7 = r12.f530o\n int r5 = r5 + -1\n java.lang.Object r5 = r7.get(r5)\n akb r5 = (p000.akb) r5\n goto L_0x00e3\n L_0x0108:\n goto L_0x00e2\n L_0x0109:\n int r2 = r12.f514E\n java.util.ArrayList r3 = r12.f530o\n int r3 = r3.size()\n if (r2 >= r3) goto L_0x011d\n java.util.ArrayList r2 = r12.f530o\n int r3 = r12.f514E\n java.lang.Object r2 = r2.get(r3)\n akb r2 = (p000.akb) r2\n L_0x011d:\n akp r2 = r12.f533r\n r2.f623m = r0\n goto L_0x0140\n L_0x0122:\n r12.m691a(r8)\n akp r0 = r12.f533r\n long r0 = r0.f623m\n int r2 = (r8 > r0 ? 1 : (r8 == r0 ? 0 : -1))\n if (r2 == 0) goto L_0x0140\n akp r0 = r12.f533r\n awt r7 = r0.f612b\n long r10 = r0.f614d\n r6 = r12\n akp r0 = r6.m686a(r7, r8, r10)\n r12.f533r = r0\n akc r0 = r12.f529n\n r1 = 4\n r0.mo409b(r1)\n L_0x0140:\n akn r0 = r12.f531p\n akl r0 = r0.f603f\n akp r1 = r12.f533r\n long r2 = r0.mo442c()\n r1.f621k = r2\n akp r0 = r12.f533r\n long r1 = r12.m719n()\n r0.f622l = r1\n return\n L_0x0155:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p000.ake.m710e():void\");\n }",
"static int size_of_lxi(String passed){\n\t\treturn 3;\n\t}",
"public void lowerAmountOfPlattforms(){\n if(plattformsPerChunk > 2 ){\n plattformsPerChunk--;\n\t}\n }",
"public abstract long mo20901UQ();",
"private int[] m7232h() {\n this.f5578C[0] = this.f5594p;\n this.f5578C[1] = this.f5599u - this.f5594p;\n return this.f5578C;\n }",
"long getMid();",
"long getMid();",
"static int size_of_lhld(String passed){\n\t\treturn 3;\n\t}",
"public long getBlockCount ( ) {\r\n\t\treturn 436;\r\n\t}",
"public int mo9749n() {\n return C3656k.m8448e(mo9774x());\n }",
"public abstract int getCntGrnd();",
"public static int[] buildBoxOutMap(int r15, int r16, int r17, int r18) {\n /*\n int r0 = r15 * r16\n int[] r1 = new int[r0]\n r2 = 0\n r3 = 0\n L_0x0006:\n r4 = 1\n if (r3 >= r0) goto L_0x000e\n r1[r3] = r4\n int r3 = r3 + 1\n goto L_0x0006\n L_0x000e:\n int r0 = r15 - r17\n int r0 = r0 / 2\n int r3 = r16 - r17\n int r3 = r3 / 2\n int r5 = r17 + -1\n r10 = r17\n r6 = r0\n r8 = r6\n r9 = r8\n r11 = r3\n r12 = r11\n r7 = r5\n r0 = r18\n r5 = r12\n r3 = 0\n L_0x0024:\n if (r3 >= r0) goto L_0x007e\n int r13 = r5 * r15\n int r13 = r13 + r6\n r14 = r1[r13]\n if (r14 != r4) goto L_0x002f\n r14 = 1\n goto L_0x0030\n L_0x002f:\n r14 = 0\n L_0x0030:\n if (r14 == 0) goto L_0x0034\n r1[r13] = r2\n L_0x0034:\n r13 = -1\n if (r7 != r13) goto L_0x0046\n if (r6 != r8) goto L_0x0046\n int r8 = r8 + -1\n int r6 = Max(r8, r2)\n int r7 = r17 * 2\n int r7 = r7 - r4\n r8 = r6\n L_0x0043:\n r10 = r7\n r7 = 0\n goto L_0x007c\n L_0x0046:\n if (r7 != r4) goto L_0x0058\n if (r6 != r9) goto L_0x0058\n int r9 = r9 + 1\n int r6 = r15 + -1\n int r6 = Min(r9, r6)\n int r7 = r17 * 2\n int r7 = 1 - r7\n r9 = r6\n goto L_0x0043\n L_0x0058:\n if (r10 != r13) goto L_0x0069\n if (r5 != r11) goto L_0x0069\n int r11 = r11 + -1\n int r5 = Max(r11, r2)\n int r7 = r17 * 2\n int r7 = 1 - r7\n r11 = r5\n L_0x0067:\n r10 = 0\n goto L_0x007c\n L_0x0069:\n if (r10 != r4) goto L_0x007a\n if (r5 != r12) goto L_0x007a\n int r12 = r12 + 1\n int r5 = r16 + -1\n int r5 = Min(r12, r5)\n int r7 = r17 * 2\n int r7 = r7 - r4\n r12 = r5\n goto L_0x0067\n L_0x007a:\n int r6 = r6 + r7\n int r5 = r5 + r10\n L_0x007c:\n int r3 = r3 + r14\n goto L_0x0024\n L_0x007e:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.jcodec.codecs.h264.decode.aso.SliceGroupMapBuilder.buildBoxOutMap(int, int, boolean, int):int[]\");\n }",
"public abstract int mo9749n();",
"public int mo9754s() {\n return mo9785x();\n }",
"private int calcSize(int size)\n {\n return (((size - 1) / 9) + 1) * 9;\n }",
"public static int size_counter() {\n return (32 / 8);\n }",
"public abstract int mo123248g();",
"public void setDimensionRatio(java.lang.String r9) {\n /*\n r8 = this;\n r0 = 0;\n if (r9 == 0) goto L_0x008e;\n L_0x0003:\n r1 = r9.length();\n if (r1 != 0) goto L_0x000b;\n L_0x0009:\n goto L_0x008e;\n L_0x000b:\n r1 = -1;\n r2 = r9.length();\n r3 = 44;\n r3 = r9.indexOf(r3);\n r4 = 0;\n r5 = 1;\n if (r3 <= 0) goto L_0x0037;\n L_0x001a:\n r6 = r2 + -1;\n if (r3 >= r6) goto L_0x0037;\n L_0x001e:\n r6 = r9.substring(r4, r3);\n r7 = \"W\";\n r7 = r6.equalsIgnoreCase(r7);\n if (r7 == 0) goto L_0x002c;\n L_0x002a:\n r1 = 0;\n goto L_0x0035;\n L_0x002c:\n r4 = \"H\";\n r4 = r6.equalsIgnoreCase(r4);\n if (r4 == 0) goto L_0x0035;\n L_0x0034:\n r1 = 1;\n L_0x0035:\n r4 = r3 + 1;\n L_0x0037:\n r3 = 58;\n r3 = r9.indexOf(r3);\n if (r3 < 0) goto L_0x0075;\n L_0x003f:\n r2 = r2 - r5;\n if (r3 >= r2) goto L_0x0075;\n L_0x0042:\n r2 = r9.substring(r4, r3);\n r3 = r3 + r5;\n r9 = r9.substring(r3);\n r3 = r2.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0051:\n r3 = r9.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0057:\n r2 = java.lang.Float.parseFloat(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n r3 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0063:\n r3 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0067:\n if (r1 != r5) goto L_0x006f;\n L_0x0069:\n r9 = r9 / r2;\n r9 = java.lang.Math.abs(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x006f:\n r2 = r2 / r9;\n r9 = java.lang.Math.abs(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0075:\n r9 = r9.substring(r4);\n r2 = r9.length();\n if (r2 <= 0) goto L_0x0084;\n L_0x007f:\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0084:\n r9 = 0;\n L_0x0085:\n r0 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r0 <= 0) goto L_0x008d;\n L_0x0089:\n r8.mDimensionRatio = r9;\n r8.mDimensionRatioSide = r1;\n L_0x008d:\n return;\n L_0x008e:\n r8.mDimensionRatio = r0;\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.constraint.solver.widgets.ConstraintWidget.setDimensionRatio(java.lang.String):void\");\n }",
"public static int offset_count() {\n return (16 / 8);\n }",
"public abstract int getSmallStackSizeWishInKb();",
"public static int totalSize_infos_noise() {\n return (48 / 8);\n }",
"int getTribeSize();",
"@Override\n\tpublic int seatCapacity() {\n\t\treturn 4;\n\t}",
"private int m14719r() {\n int s = m14720s();\n if (s > 0) {\n try {\n if (this.f10949d == null) {\n this.f10949d = this.f10962q.mo12209b(255);\n }\n int i = this.f10951f - this.f10952g;\n if (i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, s);\n this.f10952g += s;\n } else if (this.f10948c.remaining() + i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, i);\n this.f10952g = this.f10951f;\n m14721t();\n int i2 = s - i;\n System.arraycopy(this.f10950e, 0, this.f10949d, i, i2);\n this.f10952g += i2;\n } else {\n this.f10965t = 1;\n }\n } catch (Exception e) {\n C3111h1.m14932d(f10944y, \"Error Reading Block\", e);\n this.f10965t = 1;\n }\n }\n return s;\n }"
] | [
"0.57836246",
"0.576623",
"0.5675889",
"0.5670542",
"0.55829513",
"0.55734736",
"0.55671495",
"0.55570954",
"0.5554979",
"0.5543137",
"0.5518718",
"0.54861814",
"0.54365146",
"0.5436378",
"0.54210776",
"0.54210776",
"0.54168636",
"0.5405837",
"0.5404874",
"0.53951955",
"0.53641653",
"0.5356856",
"0.5344231",
"0.5333274",
"0.5329468",
"0.53231484",
"0.5323073",
"0.5320929",
"0.531997",
"0.53169477",
"0.5278722",
"0.5268305",
"0.5266673",
"0.52605915",
"0.52584517",
"0.5253658",
"0.5253373",
"0.5249804",
"0.52407485",
"0.52283657",
"0.52262443",
"0.52144164",
"0.520851",
"0.52069014",
"0.52047306",
"0.5200348",
"0.5199867",
"0.5195606",
"0.5189315",
"0.5185208",
"0.51828325",
"0.516641",
"0.5156155",
"0.5154478",
"0.514278",
"0.5138634",
"0.5133856",
"0.51190907",
"0.5117415",
"0.5107903",
"0.5106554",
"0.51039165",
"0.5100488",
"0.50931317",
"0.5091403",
"0.5090578",
"0.5087254",
"0.5085924",
"0.50822204",
"0.5081995",
"0.5080361",
"0.50797033",
"0.5075893",
"0.5074724",
"0.50726205",
"0.50675225",
"0.506659",
"0.5066519",
"0.5065334",
"0.5064969",
"0.5064239",
"0.5062762",
"0.50615513",
"0.50615513",
"0.50609887",
"0.5059817",
"0.5059666",
"0.50543606",
"0.50531614",
"0.5051672",
"0.5051315",
"0.50503725",
"0.5047849",
"0.5047632",
"0.5046951",
"0.5043278",
"0.50431335",
"0.5042535",
"0.50424355",
"0.5042324",
"0.50401515"
] | 0.0 | -1 |
/ / / / / / / / / / / | public boolean equals(Object object) {
/* 326 */ if (object == null) {
/* 327 */ return false;
/* */ }
/* 329 */ if (object == this) {
/* 330 */ return true;
/* */ }
/* 332 */ if (object instanceof DefaultTimeline) {
/* 333 */ return true;
/* */ }
/* 335 */ return false;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"public abstract void bepaalGrootte();",
"double passer();",
"int getWidth() {return width;}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public Integer getWidth(){return this.width;}",
"public double getWidth() {\n return this.size * 2.0; \n }",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public void getTile_B8();",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public String ring();",
"public void gored() {\n\t\t\n\t}",
"int width();",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public String toString(){ return \"DIV\";}",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"public abstract String division();",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"public int getEdgeCount() \n {\n return 3;\n }",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"@Override\n public void bfs() {\n\n }",
"long getWidth();",
"double getNewWidth();",
"static int getNumPatterns() { return 64; }",
"public int my_leaf_count();",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public int generateRoshambo(){\n ;]\n\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"void mo33732Px();",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"double volume(){\n return width*height*depth;\n }",
"double seBlesser();",
"int getTribeSize();",
"Operations operations();",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"public double getPerimiter(){return (2*height +2*width);}",
"public int getWidth(){\n return width;\n }",
"public void leerPlanesDietas();",
"public void skystonePos4() {\n }",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public String getRing();",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"public void SubRect(){\n\t\n}",
"public abstract double getBaseWidth();",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"protected int parent(int i) { return (i - 1) / 2; }",
"static void pyramid(){\n\t}",
"public static int size_parent() {\n return (8 / 8);\n }",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"int expand();",
"public abstract int getSpotsNeeded();",
"Parallelogram(){\n length = width = height = 0;\n }",
"@Override\n\tpublic void walk() {\n\t\t\n\t}",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"void walk() {\n\t\t\n\t}",
"private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"public int getWidth()\n {return width;}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"int depth();",
"int depth();",
"long getMid();",
"long getMid();",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"String directsTo();",
"int getSpriteArraySize();",
"public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }",
"public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}",
"double getPerimeter(){\n return 2*height+width;\n }",
"public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }",
"int getWidth1();",
"public String getRingback();",
"void sharpen();",
"void sharpen();",
"@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();"
] | [
"0.5540745",
"0.5444497",
"0.5205538",
"0.5182055",
"0.5094161",
"0.50587463",
"0.5053648",
"0.50452423",
"0.50258267",
"0.50122976",
"0.5012191",
"0.50119436",
"0.50044477",
"0.49989554",
"0.49980396",
"0.49847832",
"0.49795863",
"0.49785143",
"0.4966902",
"0.49588826",
"0.491195",
"0.49114203",
"0.48977208",
"0.48783925",
"0.4871045",
"0.4866241",
"0.48425886",
"0.48414746",
"0.48404667",
"0.48359194",
"0.48321852",
"0.48264593",
"0.48214784",
"0.48163307",
"0.48100394",
"0.48063412",
"0.48053867",
"0.4804083",
"0.4794161",
"0.47927848",
"0.4788403",
"0.47818738",
"0.47784477",
"0.47709942",
"0.4770795",
"0.4766995",
"0.47618645",
"0.47570822",
"0.4752602",
"0.4751775",
"0.4751225",
"0.47489616",
"0.47487566",
"0.474798",
"0.47473353",
"0.47425666",
"0.47340578",
"0.47319007",
"0.47315216",
"0.4729219",
"0.4727721",
"0.47272617",
"0.47233397",
"0.47144157",
"0.47093782",
"0.47075313",
"0.47051412",
"0.47038573",
"0.46964964",
"0.4695774",
"0.46953171",
"0.46950933",
"0.46876776",
"0.46871465",
"0.46871465",
"0.46869987",
"0.46869987",
"0.4686779",
"0.46865502",
"0.46834555",
"0.46825886",
"0.46823603",
"0.46798244",
"0.4674724",
"0.46727514",
"0.46678638",
"0.4667731",
"0.4665962",
"0.4665962",
"0.46643248",
"0.46639606",
"0.46639606",
"0.46639606",
"0.46639606",
"0.46639606",
"0.46639606",
"0.46639606",
"0.46639606",
"0.46639606",
"0.46639606",
"0.46639606"
] | 0.0 | -1 |
/ / / / / 359 | public DateAxis() { this(null); } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int mo36g() {\n return 8;\n }",
"public int mo36g() {\n return 4;\n }",
"public int mo36g() {\n return 2;\n }",
"public abstract long mo9229aD();",
"public abstract long mo9755t();",
"public abstract long mo9746k();",
"public static void main(String[] args) {\n\t\t\n double p = 3048;\n int i;\n\t\t\n\t\t\n\t\tfor (i=1; i <=40; i++) {\n\t\t\t\n\t\t p = p * 2 / 3;\n\t\t \n\t\t}\n\t\t\n\t\tSystem.out.println(\"La distancia que habra recorrido la bola al momento de realizar su rebote numero 40 es de : \"+ p+ \" mts\");\n\n\t}",
"public abstract long mo9743h();",
"public int mo9774x() {\n /*\n r5 = this;\n int r0 = r5.f9082i\n int r1 = r5.f9080g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9082i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9776z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9082i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9774x():int\");\n }",
"public abstract int mo9754s();",
"public long mo9743h() {\n return mo9773w();\n }",
"public int mo9761x() {\n /*\n r5 = this;\n int r0 = r5.f9074i\n int r1 = r5.f9072g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9070e\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9074i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9763z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9074i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3658b.mo9761x():int\");\n }",
"public void mo9769i(int r9) {\n /*\n r8 = this;\n int r0 = r8.f9080g\n int r1 = r8.f9082i\n int r0 = r0 - r1\n if (r9 > r0) goto L_0x000e\n if (r9 < 0) goto L_0x000e\n int r1 = r1 + r9\n r8.f9082i = r1\n goto L_0x0097\n L_0x000e:\n if (r9 < 0) goto L_0x00a2\n int r0 = r8.f9084k\n int r1 = r8.f9082i\n int r2 = r0 + r1\n int r3 = r2 + r9\n int r4 = r8.f9085l\n if (r3 > r4) goto L_0x0098\n q.b.c.a.j0.a.k$c$a r0 = r8.f9086m\n r3 = 0\n if (r0 != 0) goto L_0x007d\n r8.f9084k = r2\n int r0 = r8.f9080g\n int r0 = r0 - r1\n r8.f9080g = r3\n r8.f9082i = r3\n r3 = r0\n L_0x002b:\n if (r3 >= r9) goto L_0x0075\n int r0 = r9 - r3\n java.io.InputStream r1 = r8.f9078e // Catch:{ all -> 0x006b }\n long r4 = (long) r0 // Catch:{ all -> 0x006b }\n long r0 = r1.skip(r4) // Catch:{ all -> 0x006b }\n r6 = 0\n int r2 = (r0 > r6 ? 1 : (r0 == r6 ? 0 : -1))\n if (r2 < 0) goto L_0x0046\n int r4 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1))\n if (r4 > 0) goto L_0x0046\n if (r2 != 0) goto L_0x0043\n goto L_0x0075\n L_0x0043:\n int r0 = (int) r0 // Catch:{ all -> 0x006b }\n int r3 = r3 + r0\n goto L_0x002b\n L_0x0046:\n java.lang.IllegalStateException r9 = new java.lang.IllegalStateException // Catch:{ all -> 0x006b }\n java.lang.StringBuilder r2 = new java.lang.StringBuilder // Catch:{ all -> 0x006b }\n r2.<init>() // Catch:{ all -> 0x006b }\n java.io.InputStream r4 = r8.f9078e // Catch:{ all -> 0x006b }\n java.lang.Class r4 = r4.getClass() // Catch:{ all -> 0x006b }\n r2.append(r4) // Catch:{ all -> 0x006b }\n java.lang.String r4 = \"#skip returned invalid result: \"\n r2.append(r4) // Catch:{ all -> 0x006b }\n r2.append(r0) // Catch:{ all -> 0x006b }\n java.lang.String r0 = \"\\nThe InputStream implementation is buggy.\"\n r2.append(r0) // Catch:{ all -> 0x006b }\n java.lang.String r0 = r2.toString() // Catch:{ all -> 0x006b }\n r9.<init>(r0) // Catch:{ all -> 0x006b }\n throw r9 // Catch:{ all -> 0x006b }\n L_0x006b:\n r9 = move-exception\n int r0 = r8.f9084k\n int r0 = r0 + r3\n r8.f9084k = r0\n r8.mo9764A()\n throw r9\n L_0x0075:\n int r0 = r8.f9084k\n int r0 = r0 + r3\n r8.f9084k = r0\n r8.mo9764A()\n L_0x007d:\n if (r3 >= r9) goto L_0x0097\n int r0 = r8.f9080g\n int r1 = r8.f9082i\n int r1 = r0 - r1\n r8.f9082i = r0\n r0 = 1\n L_0x0088:\n r8.mo9768h(r0)\n int r2 = r9 - r1\n int r3 = r8.f9080g\n if (r2 <= r3) goto L_0x0095\n int r1 = r1 + r3\n r8.f9082i = r3\n goto L_0x0088\n L_0x0095:\n r8.f9082i = r2\n L_0x0097:\n return\n L_0x0098:\n int r4 = r4 - r0\n int r4 = r4 - r1\n r8.mo9769i(r4)\n q.b.c.a.j0.a.c0 r9 = p213q.p217b.p301c.p302a.p311j0.p312a.C3606c0.m8181h()\n throw r9\n L_0x00a2:\n q.b.c.a.j0.a.c0 r9 = p213q.p217b.p301c.p302a.p311j0.p312a.C3606c0.m8179f()\n throw r9\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9769i(int):void\");\n }",
"public long mo9775y() {\n /*\n r11 = this;\n int r0 = r11.f9082i\n int r1 = r11.f9080g\n if (r1 != r0) goto L_0x0008\n goto L_0x00b6\n L_0x0008:\n byte[] r2 = r11.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0014\n r11.f9082i = r3\n long r0 = (long) r0\n return r0\n L_0x0014:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x001b\n goto L_0x00b6\n L_0x001b:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0029\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n L_0x0026:\n long r2 = (long) r0\n goto L_0x00bd\n L_0x0029:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x003a\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n long r0 = (long) r0\n r9 = r0\n r1 = r3\n r2 = r9\n goto L_0x00bd\n L_0x003a:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0048\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0026\n L_0x0048:\n long r3 = (long) r0\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r5 = (long) r1\n r1 = 28\n long r5 = r5 << r1\n long r3 = r3 ^ r5\n r5 = 0\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 < 0) goto L_0x005f\n r1 = 266354560(0xfe03f80, double:1.315966377E-315)\n L_0x005b:\n long r2 = r3 ^ r1\n r1 = r0\n goto L_0x00bd\n L_0x005f:\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n r0 = 35\n long r7 = r7 << r0\n long r3 = r3 ^ r7\n int r0 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x0074\n r5 = -34093383808(0xfffffff80fe03f80, double:NaN)\n L_0x0071:\n long r2 = r3 ^ r5\n goto L_0x00bd\n L_0x0074:\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r7 = (long) r1\n r1 = 42\n long r7 = r7 << r1\n long r3 = r3 ^ r7\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 < 0) goto L_0x0087\n r1 = 4363953127296(0x3f80fe03f80, double:2.1560793202584E-311)\n goto L_0x005b\n L_0x0087:\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n r0 = 49\n long r7 = r7 << r0\n long r3 = r3 ^ r7\n int r0 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x009a\n r5 = -558586000294016(0xfffe03f80fe03f80, double:NaN)\n goto L_0x0071\n L_0x009a:\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r7 = (long) r1\n r1 = 56\n long r7 = r7 << r1\n long r3 = r3 ^ r7\n r7 = 71499008037633920(0xfe03f80fe03f80, double:6.838959413692434E-304)\n long r3 = r3 ^ r7\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 >= 0) goto L_0x00bb\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n int r0 = (r7 > r5 ? 1 : (r7 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x00bc\n L_0x00b6:\n long r0 = r11.mo9776z()\n return r0\n L_0x00bb:\n r1 = r0\n L_0x00bc:\n r2 = r3\n L_0x00bd:\n r11.f9082i = r1\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9775y():long\");\n }",
"void mo33732Px();",
"void mo30290d(long j);",
"public abstract Integer mo36210m();",
"public abstract long mo9748m();",
"public long mo9743h() {\n return mo9760w();\n }",
"@Test(timeout = 4000)\n public void test60() throws Throwable {\n PipedWriter pipedWriter0 = new PipedWriter();\n PipedReader pipedReader0 = new PipedReader(pipedWriter0);\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(pipedReader0);\n streamTokenizer0.nval = 752.0;\n String string0 = SQLUtil.renderNumber(streamTokenizer0);\n assertEquals(\"752\", string0);\n }",
"public long mo9743h() {\n return mo9784w();\n }",
"public int mo9785x() {\n /*\n r10 = this;\n long r0 = r10.f9091i\n long r2 = r10.f9090h\n int r2 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1))\n if (r2 != 0) goto L_0x000a\n goto L_0x0085\n L_0x000a:\n r2 = 1\n long r4 = r0 + r2\n byte r0 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r0)\n if (r0 < 0) goto L_0x0017\n r10.f9091i = r4\n return r0\n L_0x0017:\n long r6 = r10.f9090h\n long r6 = r6 - r4\n r8 = 9\n int r1 = (r6 > r8 ? 1 : (r6 == r8 ? 0 : -1))\n if (r1 >= 0) goto L_0x0021\n goto L_0x0085\n L_0x0021:\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n int r1 = r1 << 7\n r0 = r0 ^ r1\n if (r0 >= 0) goto L_0x002f\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x008b\n L_0x002f:\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x003e\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x003c:\n r6 = r4\n goto L_0x008b\n L_0x003e:\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n int r1 = r1 << 21\n r0 = r0 ^ r1\n if (r0 >= 0) goto L_0x004e\n r1 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r1\n goto L_0x008b\n L_0x004e:\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n int r6 = r1 << 28\n r0 = r0 ^ r6\n r6 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r6\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n L_0x0085:\n long r0 = r10.mo9787z()\n int r0 = (int) r0\n return r0\n L_0x008b:\n r10.f9091i = r6\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3661d.mo9785x():int\");\n }",
"String mo30285c(long j);",
"public int mo9754s() {\n return mo9774x();\n }",
"public int method_2436() {\r\n return 16;\r\n }",
"long mo309d();",
"long mo49a();",
"public final int mo50059a() {\n return 2;\n }",
"long mo20406a();",
"public int mo9745j() {\n return mo9774x();\n }",
"public void mo21877s() {\n }",
"public static void main(String[] args) {\n\n\n\n System.out.println(4 * (1.0 - (1 / 3) + (1 / 5) - (1 / 7) + (1 / 9) - (1 / 11)));\n\n System.out.println(4 * (1.0 - (1/3) + (1/5) - (1/7)\n + (1 / 9) - (1/11) + (1/13)));\n }",
"static int getNumPatterns() { return 64; }",
"public long mo9746k() {\n return mo9775y();\n }",
"public long mo9762y() {\n /*\n r11 = this;\n int r0 = r11.f9074i\n int r1 = r11.f9072g\n if (r1 != r0) goto L_0x0008\n goto L_0x00b6\n L_0x0008:\n byte[] r2 = r11.f9070e\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0014\n r11.f9074i = r3\n long r0 = (long) r0\n return r0\n L_0x0014:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x001b\n goto L_0x00b6\n L_0x001b:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0029\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n L_0x0026:\n long r2 = (long) r0\n goto L_0x00bd\n L_0x0029:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x003a\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n long r0 = (long) r0\n r9 = r0\n r1 = r3\n r2 = r9\n goto L_0x00bd\n L_0x003a:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0048\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0026\n L_0x0048:\n long r3 = (long) r0\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r5 = (long) r1\n r1 = 28\n long r5 = r5 << r1\n long r3 = r3 ^ r5\n r5 = 0\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 < 0) goto L_0x005f\n r1 = 266354560(0xfe03f80, double:1.315966377E-315)\n L_0x005b:\n long r2 = r3 ^ r1\n r1 = r0\n goto L_0x00bd\n L_0x005f:\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n r0 = 35\n long r7 = r7 << r0\n long r3 = r3 ^ r7\n int r0 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x0074\n r5 = -34093383808(0xfffffff80fe03f80, double:NaN)\n L_0x0071:\n long r2 = r3 ^ r5\n goto L_0x00bd\n L_0x0074:\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r7 = (long) r1\n r1 = 42\n long r7 = r7 << r1\n long r3 = r3 ^ r7\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 < 0) goto L_0x0087\n r1 = 4363953127296(0x3f80fe03f80, double:2.1560793202584E-311)\n goto L_0x005b\n L_0x0087:\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n r0 = 49\n long r7 = r7 << r0\n long r3 = r3 ^ r7\n int r0 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x009a\n r5 = -558586000294016(0xfffe03f80fe03f80, double:NaN)\n goto L_0x0071\n L_0x009a:\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r7 = (long) r1\n r1 = 56\n long r7 = r7 << r1\n long r3 = r3 ^ r7\n r7 = 71499008037633920(0xfe03f80fe03f80, double:6.838959413692434E-304)\n long r3 = r3 ^ r7\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 >= 0) goto L_0x00bb\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n int r0 = (r7 > r5 ? 1 : (r7 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x00bc\n L_0x00b6:\n long r0 = r11.mo9763z()\n return r0\n L_0x00bb:\n r1 = r0\n L_0x00bc:\n r2 = r3\n L_0x00bd:\n r11.f9074i = r1\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3658b.mo9762y():long\");\n }",
"public abstract int mo123249h();",
"C4945r5 mo19057F();",
"public abstract long mo13681c();",
"C4945r5 mo19056B();",
"public int arn() {\n return 383;\n }",
"public final int mo6465d() {\n return 19729000;\n }",
"public abstract long mo24410c();",
"public long mo9786y() {\n long j;\n long j2;\n long j3;\n byte b;\n long j4 = this.f9091i;\n if (this.f9090h != j4) {\n long j5 = j4 + 1;\n byte a = C3691q1.m8803a(j4);\n if (a >= 0) {\n this.f9091i = j5;\n return (long) a;\n } else if (this.f9090h - j5 >= 9) {\n long j6 = j5 + 1;\n byte a2 = a ^ (C3691q1.m8803a(j5) << 7);\n if (a2 < 0) {\n b = a2 ^ Byte.MIN_VALUE;\n } else {\n long j7 = j6 + 1;\n byte a3 = a2 ^ (C3691q1.m8803a(j6) << 14);\n if (a3 >= 0) {\n j = (long) (a3 ^ 16256);\n } else {\n j6 = j7 + 1;\n byte a4 = a3 ^ (C3691q1.m8803a(j7) << 21);\n if (a4 < 0) {\n b = a4 ^ -2080896;\n } else {\n j7 = j6 + 1;\n long a5 = ((long) a4) ^ (((long) C3691q1.m8803a(j6)) << 28);\n if (a5 >= 0) {\n j3 = 266354560;\n } else {\n long j8 = j7 + 1;\n long a6 = a5 ^ (((long) C3691q1.m8803a(j7)) << 35);\n if (a6 < 0) {\n j2 = -34093383808L;\n } else {\n j7 = j8 + 1;\n a5 = a6 ^ (((long) C3691q1.m8803a(j8)) << 42);\n if (a5 >= 0) {\n j3 = 4363953127296L;\n } else {\n j8 = j7 + 1;\n a6 = a5 ^ (((long) C3691q1.m8803a(j7)) << 49);\n if (a6 < 0) {\n j2 = -558586000294016L;\n } else {\n j7 = j8 + 1;\n j = (a6 ^ (((long) C3691q1.m8803a(j8)) << 56)) ^ 71499008037633920L;\n if (j < 0) {\n long j9 = 1 + j7;\n if (((long) C3691q1.m8803a(j7)) >= 0) {\n j6 = j9;\n this.f9091i = j6;\n return j;\n }\n }\n }\n }\n }\n j = a6 ^ j2;\n j6 = j8;\n this.f9091i = j6;\n return j;\n }\n j = a5 ^ j3;\n }\n }\n j6 = j7;\n this.f9091i = j6;\n return j;\n }\n j = (long) b;\n this.f9091i = j6;\n return j;\n }\n }\n return mo9787z();\n }",
"public abstract long mo24412e();",
"static int SC(int db) {\n return (int) (db * ((3 / EG_STEP) * (1 << ENV_BITS))) + EG_DST;\n }",
"public abstract long mo24409b();",
"public void mo4683c() {\n mo4679a(3);\n }",
"public abstract int mo9753r();",
"void mo25957a(long j, long j2);",
"long mo1154d();",
"@Override\n protected int func_150123_b(int p_150123_1_)\n {\n return 60;\n }",
"public abstract long mo9750o();",
"public static int m22583h(long j) {\n return 8;\n }",
"public abstract int mo8526p();",
"void mo30275a(long j);",
"public void method_258(int var1, int var2, int var3, int var4, int var5, int var6, int var7, int var8, boolean var9) {\n try {\n if(var6 == 0) {\n var6 = 16777215;\n }\n\n if(var7 == 0) {\n var7 = 16777215;\n }\n\n int var10 = this.field_736[var5];\n int var11 = this.field_737[var5];\n int var12 = 0;\n int var13 = 0;\n int var14 = var8 << 16;\n int var15 = (var10 << 16) / var3;\n int var16 = (var11 << 16) / var4;\n int var17 = -(var8 << 16) / var4;\n int var18;\n int var19;\n if(this.field_742[var5]) {\n var18 = this.spriteWidthFull[var5];\n var19 = this.field_741[var5];\n var15 = (var18 << 16) / var3;\n var16 = (var19 << 16) / var4;\n int var20 = this.field_738[var5];\n int var21 = this.field_739[var5];\n if(var9) {\n var20 = var18 - this.field_736[var5] - var20;\n }\n\n var1 += (var20 * var3 + var18 - 1) / var18;\n int var22 = (var21 * var4 + var19 - 1) / var19;\n var2 += var22;\n var14 += var22 * var17;\n if(var20 * var3 % var18 != 0) {\n var12 = (var18 - var20 * var3 % var18 << 16) / var3;\n }\n\n if(var21 * var4 % var19 != 0) {\n var13 = (var19 - var21 * var4 % var19 << 16) / var4;\n }\n\n var3 = ((this.field_736[var5] << 16) - var12 + var15 - 1) / var15;\n var4 = ((this.field_737[var5] << 16) - var13 + var16 - 1) / var16;\n }\n\n var18 = var2 * this.field_723;\n var14 += var1 << 16;\n if(var2 < this.field_743) {\n var19 = this.field_743 - var2;\n var4 -= var19;\n var2 = this.field_743;\n var18 += var19 * this.field_723;\n var13 += var16 * var19;\n var14 += var17 * var19;\n }\n\n if(var2 + var4 >= this.field_744) {\n var4 -= var2 + var4 - this.field_744 + 1;\n }\n\n var19 = var18 / this.field_723 & 1;\n if(!this.interlace) {\n var19 = 2;\n }\n\n if(var7 == 16777215) {\n if(this.spritePixels[var5] != null) {\n if(!var9) {\n this.method_259(this.pixels, this.spritePixels[var5], 0, var12, var13, var18, var3, var4, var15, var16, var10, var6, var14, var17, var19);\n } else {\n this.method_259(this.pixels, this.spritePixels[var5], 0, (this.field_736[var5] << 16) - var12 - 1, var13, var18, var3, var4, -var15, var16, var10, var6, var14, var17, var19);\n }\n } else if(!var9) {\n this.method_261(this.pixels, this.spriteColoursUsed[var5], this.spriteColourList[var5], 0, var12, var13, var18, var3, var4, var15, var16, var10, var6, var14, var17, var19);\n } else {\n this.method_261(this.pixels, this.spriteColoursUsed[var5], this.spriteColourList[var5], 0, (this.field_736[var5] << 16) - var12 - 1, var13, var18, var3, var4, -var15, var16, var10, var6, var14, var17, var19);\n }\n } else if(this.spritePixels[var5] != null) {\n if(!var9) {\n this.method_260(this.pixels, this.spritePixels[var5], 0, var12, var13, var18, var3, var4, var15, var16, var10, var6, var7, var14, var17, var19);\n } else {\n this.method_260(this.pixels, this.spritePixels[var5], 0, (this.field_736[var5] << 16) - var12 - 1, var13, var18, var3, var4, -var15, var16, var10, var6, var7, var14, var17, var19);\n }\n } else if(!var9) {\n this.method_262(this.pixels, this.spriteColoursUsed[var5], this.spriteColourList[var5], 0, var12, var13, var18, var3, var4, var15, var16, var10, var6, var7, var14, var17, var19);\n } else {\n this.method_262(this.pixels, this.spriteColoursUsed[var5], this.spriteColourList[var5], 0, (this.field_736[var5] << 16) - var12 - 1, var13, var18, var3, var4, -var15, var16, var10, var6, var7, var14, var17, var19);\n }\n } catch (Exception var23) {\n System.out.println(\"error in sprite clipping routine\"); // authentic System.out.println\n }\n }",
"protected long m8217a(long j) {\n return (j * 1000000) / ((long) this.f7048i);\n }",
"long mo1636a(long j, alb alb);",
"private int K(int t)\n {\n if(t<=19)\n return 0x5a827999;\n else if(t<=39)\n return 0x6ed9eba1;\n else if(t<=59)\n return 0x8f1bbcdc;\n else \n return 0xca62c1d6;\n }",
"public static int m22579g(long j) {\n return 8;\n }",
"Info mo7564ix();",
"int mo1760g();",
"public void mo3376r() {\n }",
"void mo60893b();",
"public int mo34973b() {\n return 48;\n }",
"public void mo21867i() {\n mo21877s();\n }",
"Period mo20733e();",
"public int mo9754s() {\n return mo9761x();\n }",
"public void method_245(int var1, int var2, int var3, int var4, int var5, int var6) {\n try {\n int var7 = this.field_736[var5];\n int var8 = this.field_737[var5];\n int var9 = 0;\n int var10 = 0;\n int var11 = (var7 << 16) / var3;\n int var12 = (var8 << 16) / var4;\n int var13;\n int var14;\n if(this.field_742[var5]) {\n var13 = this.spriteWidthFull[var5];\n var14 = this.field_741[var5];\n var11 = (var13 << 16) / var3;\n var12 = (var14 << 16) / var4;\n var1 += (this.field_738[var5] * var3 + var13 - 1) / var13;\n var2 += (this.field_739[var5] * var4 + var14 - 1) / var14;\n if(this.field_738[var5] * var3 % var13 != 0) {\n var9 = (var13 - this.field_738[var5] * var3 % var13 << 16) / var3;\n }\n\n if(this.field_739[var5] * var4 % var14 != 0) {\n var10 = (var14 - this.field_739[var5] * var4 % var14 << 16) / var4;\n }\n\n var3 = var3 * (this.field_736[var5] - (var9 >> 16)) / var13;\n var4 = var4 * (this.field_737[var5] - (var10 >> 16)) / var14;\n }\n\n var13 = var1 + var2 * this.field_723;\n var14 = this.field_723 - var3;\n int var15;\n if(var2 < this.field_743) {\n var15 = this.field_743 - var2;\n var4 -= var15;\n var2 = 0;\n var13 += var15 * this.field_723;\n var10 += var12 * var15;\n }\n\n if(var2 + var4 >= this.field_744) {\n var4 -= var2 + var4 - this.field_744 + 1;\n }\n\n if(var1 < this.field_745) {\n var15 = this.field_745 - var1;\n var3 -= var15;\n var1 = 0;\n var13 += var15;\n var9 += var11 * var15;\n var14 += var15;\n }\n\n if(var1 + var3 >= this.field_746) {\n var15 = var1 + var3 - this.field_746 + 1;\n var3 -= var15;\n var14 += var15;\n }\n\n byte var17 = 1;\n if(this.interlace) {\n var17 = 2;\n var14 += this.field_723;\n var12 += var12;\n if((var2 & 1) != 0) {\n var13 += this.field_723;\n --var4;\n }\n }\n\n this.method_252(this.pixels, this.spritePixels[var5], 0, var9, var10, var13, var14, var3, var4, var11, var12, var7, var17, var6);\n } catch (Exception var16) {\n System.out.println(\"error in sprite clipping routine\"); // authentic System.out.println\n }\n }",
"int mo38973d();",
"@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }",
"public int mo3360e() {\n return 0;\n }",
"C3676k mo12649b();",
"private void m3935R() {\n int i;\n int i2;\n if (mo4322L() == 1) {\n i2 = mo4758r() - mo4756p();\n i = mo4754o();\n } else {\n i2 = mo4741h() - mo4752n();\n i = mo4757q();\n }\n m3945n(i2 - i);\n }",
"long getUnknown72();",
"public static void main(String[] args) {\n\t\t\n\t\tint myNumber=356;\n\t\tint stepOne=myNumber*myNumber;\n\t\tint step2=stepOne+myNumber;\n\t\tint step3=step2/myNumber;\n\t\tint step4=step3+17;\n\t\tint step5=step4-myNumber;\n\t\tint step6=step5/6;\n\t\t\n\t\tSystem.out.println(\"The magic number is \"+step6);\n\n\t}",
"private void ncpStep(double height) {\n/* 56 */ double posX = mc.field_71439_g.field_70165_t;\n/* 57 */ double posZ = mc.field_71439_g.field_70161_v;\n/* 58 */ double y = mc.field_71439_g.field_70163_u;\n/* 59 */ if (height >= 1.1D) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 80 */ if (height < 1.6D) {\n/* */ double[] offset;\n/* 82 */ for (double off : offset = new double[] { 0.42D, 0.33D, 0.24D, 0.083D, -0.078D }) {\n/* 83 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y += off, posZ, false));\n/* */ }\n/* 85 */ } else if (height < 2.1D) {\n/* */ double[] heights;\n/* 87 */ for (double off : heights = new double[] { 0.425D, 0.821D, 0.699D, 0.599D, 1.022D, 1.372D, 1.652D, 1.869D }) {\n/* 88 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + off, posZ, false));\n/* */ }\n/* */ } else {\n/* */ double[] heights;\n/* 92 */ for (double off : heights = new double[] { 0.425D, 0.821D, 0.699D, 0.599D, 1.022D, 1.372D, 1.652D, 1.869D, 2.019D, 1.907D })\n/* 93 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + off, posZ, false)); \n/* */ } \n/* */ return;\n/* */ } \n/* */ double first = 0.42D;\n/* */ double d1 = 0.75D;\n/* */ if (height != 1.0D) {\n/* */ first *= height;\n/* */ d1 *= height;\n/* */ if (first > 0.425D)\n/* */ first = 0.425D; \n/* */ if (d1 > 0.78D)\n/* */ d1 = 0.78D; \n/* */ if (d1 < 0.49D)\n/* */ d1 = 0.49D; \n/* */ } \n/* */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + first, posZ, false));\n/* */ if (y + d1 < y + height)\n/* */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + d1, posZ, false)); \n/* */ }",
"public void method_246(int var1, int var2, int var3, int var4, int var5, int var6) {\n try {\n int var7 = this.field_736[var5];\n int var8 = this.field_737[var5];\n int var9 = 0;\n int var10 = 0;\n int var11 = (var7 << 16) / var3;\n int var12 = (var8 << 16) / var4;\n int var13;\n int var14;\n if(this.field_742[var5]) {\n var13 = this.spriteWidthFull[var5];\n var14 = this.field_741[var5];\n var11 = (var13 << 16) / var3;\n var12 = (var14 << 16) / var4;\n var1 += (this.field_738[var5] * var3 + var13 - 1) / var13;\n var2 += (this.field_739[var5] * var4 + var14 - 1) / var14;\n if(this.field_738[var5] * var3 % var13 != 0) {\n var9 = (var13 - this.field_738[var5] * var3 % var13 << 16) / var3;\n }\n\n if(this.field_739[var5] * var4 % var14 != 0) {\n var10 = (var14 - this.field_739[var5] * var4 % var14 << 16) / var4;\n }\n\n var3 = var3 * (this.field_736[var5] - (var9 >> 16)) / var13;\n var4 = var4 * (this.field_737[var5] - (var10 >> 16)) / var14;\n }\n\n var13 = var1 + var2 * this.field_723;\n var14 = this.field_723 - var3;\n int var15;\n if(var2 < this.field_743) {\n var15 = this.field_743 - var2;\n var4 -= var15;\n var2 = 0;\n var13 += var15 * this.field_723;\n var10 += var12 * var15;\n }\n\n if(var2 + var4 >= this.field_744) {\n var4 -= var2 + var4 - this.field_744 + 1;\n }\n\n if(var1 < this.field_745) {\n var15 = this.field_745 - var1;\n var3 -= var15;\n var1 = 0;\n var13 += var15;\n var9 += var11 * var15;\n var14 += var15;\n }\n\n if(var1 + var3 >= this.field_746) {\n var15 = var1 + var3 - this.field_746 + 1;\n var3 -= var15;\n var14 += var15;\n }\n\n byte var17 = 1;\n if(this.interlace) {\n var17 = 2;\n var14 += this.field_723;\n var12 += var12;\n if((var2 & 1) != 0) {\n var13 += this.field_723;\n --var4;\n }\n }\n\n this.method_253(this.pixels, this.spritePixels[var5], 0, var9, var10, var13, var14, var3, var4, var11, var12, var7, var17, var6);\n } catch (Exception var16) {\n System.out.println(\"error in sprite clipping routine\"); // authentic System.out.println\n }\n }",
"public int mo9232aG() {\n return 0;\n }",
"public abstract int mo9749n();",
"void mo21076g();",
"public long mo9746k() {\n return mo9786y();\n }",
"C20259y mo54455t(int i);",
"public void setDimensionRatio(java.lang.String r9) {\n /*\n r8 = this;\n r0 = 0;\n if (r9 == 0) goto L_0x008e;\n L_0x0003:\n r1 = r9.length();\n if (r1 != 0) goto L_0x000b;\n L_0x0009:\n goto L_0x008e;\n L_0x000b:\n r1 = -1;\n r2 = r9.length();\n r3 = 44;\n r3 = r9.indexOf(r3);\n r4 = 0;\n r5 = 1;\n if (r3 <= 0) goto L_0x0037;\n L_0x001a:\n r6 = r2 + -1;\n if (r3 >= r6) goto L_0x0037;\n L_0x001e:\n r6 = r9.substring(r4, r3);\n r7 = \"W\";\n r7 = r6.equalsIgnoreCase(r7);\n if (r7 == 0) goto L_0x002c;\n L_0x002a:\n r1 = 0;\n goto L_0x0035;\n L_0x002c:\n r4 = \"H\";\n r4 = r6.equalsIgnoreCase(r4);\n if (r4 == 0) goto L_0x0035;\n L_0x0034:\n r1 = 1;\n L_0x0035:\n r4 = r3 + 1;\n L_0x0037:\n r3 = 58;\n r3 = r9.indexOf(r3);\n if (r3 < 0) goto L_0x0075;\n L_0x003f:\n r2 = r2 - r5;\n if (r3 >= r2) goto L_0x0075;\n L_0x0042:\n r2 = r9.substring(r4, r3);\n r3 = r3 + r5;\n r9 = r9.substring(r3);\n r3 = r2.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0051:\n r3 = r9.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0057:\n r2 = java.lang.Float.parseFloat(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n r3 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0063:\n r3 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0067:\n if (r1 != r5) goto L_0x006f;\n L_0x0069:\n r9 = r9 / r2;\n r9 = java.lang.Math.abs(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x006f:\n r2 = r2 / r9;\n r9 = java.lang.Math.abs(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0075:\n r9 = r9.substring(r4);\n r2 = r9.length();\n if (r2 <= 0) goto L_0x0084;\n L_0x007f:\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0084:\n r9 = 0;\n L_0x0085:\n r0 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r0 <= 0) goto L_0x008d;\n L_0x0089:\n r8.mDimensionRatio = r9;\n r8.mDimensionRatioSide = r1;\n L_0x008d:\n return;\n L_0x008e:\n r8.mDimensionRatio = r0;\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.constraint.solver.widgets.ConstraintWidget.setDimensionRatio(java.lang.String):void\");\n }",
"@Override\n public void init()\n {\n out = mul(num(100.0/Math.log10(length)), log10(div(sum(truerange(), length), diff(highest(length), lowest(length)))));\n }",
"@Test(timeout = 4000)\n public void test56() throws Throwable {\n String string0 = SQLUtil.normalize(\")]*/f/f2Nx{fI.* \", false);\n assertEquals(\") ] */ f / f2Nx { fI.*\", string0);\n }",
"long mo30295f();",
"void mo1943l();",
"int mo27480a();",
"public final void mo9764A() {\n int i = this.f9080g + this.f9081h;\n this.f9080g = i;\n int i2 = this.f9084k + i;\n int i3 = this.f9085l;\n if (i2 > i3) {\n int i4 = i2 - i3;\n this.f9081h = i4;\n this.f9080g = i - i4;\n return;\n }\n this.f9081h = 0;\n }",
"int mo5878d();",
"public int method_1143(int var1) {\r\n return this.height / 4 + 0 + (24 * var1 - 24) + this.field_987;\r\n }",
"private static int m36201b(Rect rect) {\n return rect.width() * rect.height();\n }",
"long mo117970a();",
"int mo98355c();",
"public static int m8655e() {\n return 8;\n }",
"public long mo9755t() {\n return mo9775y();\n }",
"public abstract void mo56925d();",
"public abstract long mo13679a();",
"public abstract int mo123248g();",
"private int m14719r() {\n int s = m14720s();\n if (s > 0) {\n try {\n if (this.f10949d == null) {\n this.f10949d = this.f10962q.mo12209b(255);\n }\n int i = this.f10951f - this.f10952g;\n if (i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, s);\n this.f10952g += s;\n } else if (this.f10948c.remaining() + i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, i);\n this.f10952g = this.f10951f;\n m14721t();\n int i2 = s - i;\n System.arraycopy(this.f10950e, 0, this.f10949d, i, i2);\n this.f10952g += i2;\n } else {\n this.f10965t = 1;\n }\n } catch (Exception e) {\n C3111h1.m14932d(f10944y, \"Error Reading Block\", e);\n this.f10965t = 1;\n }\n }\n return s;\n }"
] | [
"0.5885725",
"0.5788242",
"0.5571903",
"0.55693835",
"0.5545561",
"0.54535097",
"0.544171",
"0.5426597",
"0.54071885",
"0.5333326",
"0.5315955",
"0.5291846",
"0.52899295",
"0.5283038",
"0.5272697",
"0.526636",
"0.526129",
"0.52597624",
"0.52486825",
"0.5244141",
"0.52323914",
"0.5228461",
"0.5227928",
"0.52193373",
"0.51918244",
"0.5172872",
"0.5164446",
"0.51641023",
"0.5162284",
"0.51603836",
"0.5158804",
"0.5148316",
"0.5141051",
"0.51345086",
"0.51321125",
"0.5122906",
"0.5122324",
"0.51219547",
"0.51216364",
"0.5121251",
"0.51166356",
"0.5115035",
"0.5107076",
"0.5105142",
"0.510303",
"0.5095589",
"0.50933224",
"0.5085162",
"0.5080591",
"0.5075986",
"0.5074945",
"0.50668323",
"0.5054886",
"0.5054209",
"0.50494945",
"0.5047294",
"0.50451493",
"0.503842",
"0.50324535",
"0.50313985",
"0.50306046",
"0.5029046",
"0.50275564",
"0.50146097",
"0.50122654",
"0.5010611",
"0.5009874",
"0.5009458",
"0.5005077",
"0.50043964",
"0.50033635",
"0.5001078",
"0.50007033",
"0.49995267",
"0.49966732",
"0.49953568",
"0.4995261",
"0.49887377",
"0.49876174",
"0.49831685",
"0.4974455",
"0.49708056",
"0.4968621",
"0.49674615",
"0.49643973",
"0.49586344",
"0.49577084",
"0.4957035",
"0.4954904",
"0.49544162",
"0.4948372",
"0.49476993",
"0.49441573",
"0.49392605",
"0.4939177",
"0.49362323",
"0.4934292",
"0.4932479",
"0.49320748",
"0.493005",
"0.49254584"
] | 0.0 | -1 |
/ / / / / / / / / 368 | public DateAxis(String label) { this(label, TimeZone.getDefault()); } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo33732Px();",
"public int mo36g() {\n return 8;\n }",
"Info mo7564ix();",
"public final int mo30256g() {\n return this.f7581c.f7036c.size();\n }",
"public int mo9774x() {\n /*\n r5 = this;\n int r0 = r5.f9082i\n int r1 = r5.f9080g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9082i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9776z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9082i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9774x():int\");\n }",
"public int mo36g() {\n return 4;\n }",
"long getUnknown72();",
"private int[] m7232h() {\n this.f5578C[0] = this.f5594p;\n this.f5578C[1] = this.f5599u - this.f5594p;\n return this.f5578C;\n }",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"public int arn() {\n return 383;\n }",
"private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }",
"public abstract long mo9229aD();",
"private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }",
"public abstract long mo13681c();",
"private void m27468d() {\n switch (this.f25258E) {\n case 1:\n this.f25270Q = this.f25294i.left;\n break;\n case 2:\n this.f25270Q = this.f25294i.right;\n break;\n default:\n this.f25270Q = this.f25268O;\n break;\n }\n this.f25271R = (int) (((float) this.f25269P) - ((this.f25288c.ascent() + this.f25288c.descent()) / 2.0f));\n }",
"public int m7468c() {\n if (!this.f5790b.f5950m) {\n return 0;\n }\n C2302k c2302k;\n int i;\n C2101h e = m7462e();\n if (e.f5936d != 0) {\n c2302k = this.f5790b.f5954q;\n i = e.f5936d;\n } else {\n byte[] bArr = e.f5937e;\n this.f5798j.m8383a(bArr, bArr.length);\n c2302k = this.f5798j;\n i = bArr.length;\n }\n boolean z = this.f5790b.f5951n[this.f5793e];\n this.f5797i.f6929a[0] = (byte) ((z ? ProfileEditingConfig.DEFAULT_MAX_LENGTH : 0) | i);\n this.f5797i.m8388c(0);\n this.f5789a.sampleData(this.f5797i, 1);\n this.f5789a.sampleData(c2302k, i);\n if (!z) {\n return i + 1;\n }\n C2302k c2302k2 = this.f5790b.f5954q;\n int h = c2302k2.m8396h();\n c2302k2.m8390d(-2);\n h = (h * 6) + 2;\n this.f5789a.sampleData(c2302k2, h);\n return (i + 1) + h;\n }",
"static int SC(int db) {\n return (int) (db * ((3 / EG_STEP) * (1 << ENV_BITS))) + EG_DST;\n }",
"public abstract long mo9746k();",
"public int mo9232aG() {\n return 0;\n }",
"private int m672E() {\n int i = 0;\n if (this.f552g.mo501h() >= 5) {\n byte[] f = this.f552g.mo499f();\n int g = this.f552g.mo500g();\n int i2 = 0;\n int i3 = 0;\n while (true) {\n byte b = f[g + i];\n i2 |= (b & Byte.MAX_VALUE) << i3;\n if ((b & 128) != 128) {\n this.f552g.mo495a(i + 1);\n return i2;\n }\n i3 += 7;\n i++;\n }\n } else {\n int i4 = 0;\n while (true) {\n byte u = mo470u();\n i |= (u & Byte.MAX_VALUE) << i4;\n if ((u & 128) != 128) {\n return i;\n }\n i4 += 7;\n }\n }\n }",
"public int mo9761x() {\n /*\n r5 = this;\n int r0 = r5.f9074i\n int r1 = r5.f9072g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9070e\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9074i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9763z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9074i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3658b.mo9761x():int\");\n }",
"public int mo1067a() {\n return this.f3256d.size();\n }",
"public int mo9785x() {\n /*\n r10 = this;\n long r0 = r10.f9091i\n long r2 = r10.f9090h\n int r2 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1))\n if (r2 != 0) goto L_0x000a\n goto L_0x0085\n L_0x000a:\n r2 = 1\n long r4 = r0 + r2\n byte r0 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r0)\n if (r0 < 0) goto L_0x0017\n r10.f9091i = r4\n return r0\n L_0x0017:\n long r6 = r10.f9090h\n long r6 = r6 - r4\n r8 = 9\n int r1 = (r6 > r8 ? 1 : (r6 == r8 ? 0 : -1))\n if (r1 >= 0) goto L_0x0021\n goto L_0x0085\n L_0x0021:\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n int r1 = r1 << 7\n r0 = r0 ^ r1\n if (r0 >= 0) goto L_0x002f\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x008b\n L_0x002f:\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x003e\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x003c:\n r6 = r4\n goto L_0x008b\n L_0x003e:\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n int r1 = r1 << 21\n r0 = r0 ^ r1\n if (r0 >= 0) goto L_0x004e\n r1 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r1\n goto L_0x008b\n L_0x004e:\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n int r6 = r1 << 28\n r0 = r0 ^ r6\n r6 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r6\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n L_0x0085:\n long r0 = r10.mo9787z()\n int r0 = (int) r0\n return r0\n L_0x008b:\n r10.f9091i = r6\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3661d.mo9785x():int\");\n }",
"static int getNumPatterns() { return 64; }",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"public int mo36g() {\n return 2;\n }",
"public abstract int mo9754s();",
"public static int size_parentId() {\n return (16 / 8);\n }",
"public void setDimensionRatio(java.lang.String r9) {\n /*\n r8 = this;\n r0 = 0;\n if (r9 == 0) goto L_0x008e;\n L_0x0003:\n r1 = r9.length();\n if (r1 != 0) goto L_0x000b;\n L_0x0009:\n goto L_0x008e;\n L_0x000b:\n r1 = -1;\n r2 = r9.length();\n r3 = 44;\n r3 = r9.indexOf(r3);\n r4 = 0;\n r5 = 1;\n if (r3 <= 0) goto L_0x0037;\n L_0x001a:\n r6 = r2 + -1;\n if (r3 >= r6) goto L_0x0037;\n L_0x001e:\n r6 = r9.substring(r4, r3);\n r7 = \"W\";\n r7 = r6.equalsIgnoreCase(r7);\n if (r7 == 0) goto L_0x002c;\n L_0x002a:\n r1 = 0;\n goto L_0x0035;\n L_0x002c:\n r4 = \"H\";\n r4 = r6.equalsIgnoreCase(r4);\n if (r4 == 0) goto L_0x0035;\n L_0x0034:\n r1 = 1;\n L_0x0035:\n r4 = r3 + 1;\n L_0x0037:\n r3 = 58;\n r3 = r9.indexOf(r3);\n if (r3 < 0) goto L_0x0075;\n L_0x003f:\n r2 = r2 - r5;\n if (r3 >= r2) goto L_0x0075;\n L_0x0042:\n r2 = r9.substring(r4, r3);\n r3 = r3 + r5;\n r9 = r9.substring(r3);\n r3 = r2.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0051:\n r3 = r9.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0057:\n r2 = java.lang.Float.parseFloat(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n r3 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0063:\n r3 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0067:\n if (r1 != r5) goto L_0x006f;\n L_0x0069:\n r9 = r9 / r2;\n r9 = java.lang.Math.abs(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x006f:\n r2 = r2 / r9;\n r9 = java.lang.Math.abs(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0075:\n r9 = r9.substring(r4);\n r2 = r9.length();\n if (r2 <= 0) goto L_0x0084;\n L_0x007f:\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0084:\n r9 = 0;\n L_0x0085:\n r0 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r0 <= 0) goto L_0x008d;\n L_0x0089:\n r8.mDimensionRatio = r9;\n r8.mDimensionRatioSide = r1;\n L_0x008d:\n return;\n L_0x008e:\n r8.mDimensionRatio = r0;\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.constraint.solver.widgets.ConstraintWidget.setDimensionRatio(java.lang.String):void\");\n }",
"private void m50367F() {\n }",
"public void mo9769i(int r9) {\n /*\n r8 = this;\n int r0 = r8.f9080g\n int r1 = r8.f9082i\n int r0 = r0 - r1\n if (r9 > r0) goto L_0x000e\n if (r9 < 0) goto L_0x000e\n int r1 = r1 + r9\n r8.f9082i = r1\n goto L_0x0097\n L_0x000e:\n if (r9 < 0) goto L_0x00a2\n int r0 = r8.f9084k\n int r1 = r8.f9082i\n int r2 = r0 + r1\n int r3 = r2 + r9\n int r4 = r8.f9085l\n if (r3 > r4) goto L_0x0098\n q.b.c.a.j0.a.k$c$a r0 = r8.f9086m\n r3 = 0\n if (r0 != 0) goto L_0x007d\n r8.f9084k = r2\n int r0 = r8.f9080g\n int r0 = r0 - r1\n r8.f9080g = r3\n r8.f9082i = r3\n r3 = r0\n L_0x002b:\n if (r3 >= r9) goto L_0x0075\n int r0 = r9 - r3\n java.io.InputStream r1 = r8.f9078e // Catch:{ all -> 0x006b }\n long r4 = (long) r0 // Catch:{ all -> 0x006b }\n long r0 = r1.skip(r4) // Catch:{ all -> 0x006b }\n r6 = 0\n int r2 = (r0 > r6 ? 1 : (r0 == r6 ? 0 : -1))\n if (r2 < 0) goto L_0x0046\n int r4 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1))\n if (r4 > 0) goto L_0x0046\n if (r2 != 0) goto L_0x0043\n goto L_0x0075\n L_0x0043:\n int r0 = (int) r0 // Catch:{ all -> 0x006b }\n int r3 = r3 + r0\n goto L_0x002b\n L_0x0046:\n java.lang.IllegalStateException r9 = new java.lang.IllegalStateException // Catch:{ all -> 0x006b }\n java.lang.StringBuilder r2 = new java.lang.StringBuilder // Catch:{ all -> 0x006b }\n r2.<init>() // Catch:{ all -> 0x006b }\n java.io.InputStream r4 = r8.f9078e // Catch:{ all -> 0x006b }\n java.lang.Class r4 = r4.getClass() // Catch:{ all -> 0x006b }\n r2.append(r4) // Catch:{ all -> 0x006b }\n java.lang.String r4 = \"#skip returned invalid result: \"\n r2.append(r4) // Catch:{ all -> 0x006b }\n r2.append(r0) // Catch:{ all -> 0x006b }\n java.lang.String r0 = \"\\nThe InputStream implementation is buggy.\"\n r2.append(r0) // Catch:{ all -> 0x006b }\n java.lang.String r0 = r2.toString() // Catch:{ all -> 0x006b }\n r9.<init>(r0) // Catch:{ all -> 0x006b }\n throw r9 // Catch:{ all -> 0x006b }\n L_0x006b:\n r9 = move-exception\n int r0 = r8.f9084k\n int r0 = r0 + r3\n r8.f9084k = r0\n r8.mo9764A()\n throw r9\n L_0x0075:\n int r0 = r8.f9084k\n int r0 = r0 + r3\n r8.f9084k = r0\n r8.mo9764A()\n L_0x007d:\n if (r3 >= r9) goto L_0x0097\n int r0 = r8.f9080g\n int r1 = r8.f9082i\n int r1 = r0 - r1\n r8.f9082i = r0\n r0 = 1\n L_0x0088:\n r8.mo9768h(r0)\n int r2 = r9 - r1\n int r3 = r8.f9080g\n if (r2 <= r3) goto L_0x0095\n int r1 = r1 + r3\n r8.f9082i = r3\n goto L_0x0088\n L_0x0095:\n r8.f9082i = r2\n L_0x0097:\n return\n L_0x0098:\n int r4 = r4 - r0\n int r4 = r4 - r1\n r8.mo9769i(r4)\n q.b.c.a.j0.a.c0 r9 = p213q.p217b.p301c.p302a.p311j0.p312a.C3606c0.m8181h()\n throw r9\n L_0x00a2:\n q.b.c.a.j0.a.c0 r9 = p213q.p217b.p301c.p302a.p311j0.p312a.C3606c0.m8179f()\n throw r9\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9769i(int):void\");\n }",
"private static int m36201b(Rect rect) {\n return rect.width() * rect.height();\n }",
"@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }",
"public int get3dXtiles(int framenum)\n\t\t{ return dims[(framenum >> 5)&1]; }",
"public void getTile_B8();",
"public int method_2436() {\r\n return 16;\r\n }",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"private final void m710e() {\n /*\n r12 = this;\n akn r0 = r12.f531p\n akl r0 = r0.f601d\n if (r0 == 0) goto L_0x0155\n boolean r1 = r0.f580d\n r2 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n if (r1 == 0) goto L_0x0017\n aws r1 = r0.f577a\n long r4 = r1.mo1486c()\n r8 = r4\n goto L_0x0019\n L_0x0017:\n r8 = r2\n L_0x0019:\n int r1 = (r8 > r2 ? 1 : (r8 == r2 ? 0 : -1))\n if (r1 != 0) goto L_0x0122\n ajf r1 = r12.f528m\n akn r2 = r12.f531p\n akl r2 = r2.f602e\n akx r3 = r1.f445c\n r4 = 0\n if (r3 == 0) goto L_0x008a\n boolean r3 = r3.mo486w()\n if (r3 != 0) goto L_0x008a\n akx r3 = r1.f445c\n boolean r3 = r3.mo485v()\n if (r3 == 0) goto L_0x0037\n goto L_0x0042\n L_0x0037:\n if (r0 != r2) goto L_0x008a\n akx r2 = r1.f445c\n boolean r2 = r2.mo359g()\n if (r2 == 0) goto L_0x0042\n goto L_0x008a\n L_0x0042:\n bkr r2 = r1.f446d\n long r2 = r2.mo379b()\n boolean r5 = r1.f447e\n if (r5 == 0) goto L_0x0068\n blf r5 = r1.f443a\n long r5 = r5.mo379b()\n int r7 = (r2 > r5 ? 1 : (r2 == r5 ? 0 : -1))\n if (r7 >= 0) goto L_0x005c\n blf r2 = r1.f443a\n r2.mo2109d()\n goto L_0x0096\n L_0x005c:\n r1.f447e = r4\n boolean r5 = r1.f448f\n if (r5 == 0) goto L_0x0068\n blf r5 = r1.f443a\n r5.mo2107a()\n L_0x0068:\n blf r5 = r1.f443a\n r5.mo2108a(r2)\n bkr r2 = r1.f446d\n akq r2 = r2.mo376Q()\n blf r3 = r1.f443a\n akq r3 = r3.f4280a\n boolean r3 = r2.equals(r3)\n if (r3 != 0) goto L_0x0096\n blf r3 = r1.f443a\n r3.mo378a(r2)\n aje r3 = r1.f444b\n ake r3 = (p000.ake) r3\n r3.m694a(r2, r4)\n goto L_0x0096\n L_0x008a:\n r2 = 1\n r1.f447e = r2\n boolean r2 = r1.f448f\n if (r2 == 0) goto L_0x0096\n blf r2 = r1.f443a\n r2.mo2107a()\n L_0x0096:\n long r1 = r1.mo379b()\n r12.f513D = r1\n long r0 = r0.mo440b(r1)\n akp r2 = r12.f533r\n long r2 = r2.f623m\n java.util.ArrayList r5 = r12.f530o\n boolean r5 = r5.isEmpty()\n if (r5 != 0) goto L_0x011d\n akp r5 = r12.f533r\n awt r5 = r5.f612b\n boolean r5 = r5.mo1504a()\n if (r5 != 0) goto L_0x011d\n akp r5 = r12.f533r\n long r6 = r5.f613c\n int r8 = (r6 > r2 ? 1 : (r6 == r2 ? 0 : -1))\n if (r8 != 0) goto L_0x00c5\n boolean r6 = r12.f515F\n if (r6 == 0) goto L_0x00c5\n r6 = -1\n long r2 = r2 + r6\n L_0x00c5:\n r12.f515F = r4\n alh r4 = r5.f611a\n awt r5 = r5.f612b\n java.lang.Object r5 = r5.f2566a\n int r4 = r4.mo525a(r5)\n int r5 = r12.f514E\n r6 = 0\n if (r5 <= 0) goto L_0x00e1\n java.util.ArrayList r7 = r12.f530o\n int r5 = r5 + -1\n java.lang.Object r5 = r7.get(r5)\n akb r5 = (p000.akb) r5\n goto L_0x00e3\n L_0x00e1:\n L_0x00e2:\n r5 = r6\n L_0x00e3:\n if (r5 != 0) goto L_0x00e6\n goto L_0x0109\n L_0x00e6:\n int r5 = r5.f502a\n if (r4 >= 0) goto L_0x00eb\n L_0x00ea:\n goto L_0x00f4\n L_0x00eb:\n if (r4 != 0) goto L_0x0109\n r7 = 0\n int r5 = (r2 > r7 ? 1 : (r2 == r7 ? 0 : -1))\n if (r5 >= 0) goto L_0x0109\n goto L_0x00ea\n L_0x00f4:\n int r5 = r12.f514E\n int r5 = r5 + -1\n r12.f514E = r5\n if (r5 <= 0) goto L_0x0108\n java.util.ArrayList r7 = r12.f530o\n int r5 = r5 + -1\n java.lang.Object r5 = r7.get(r5)\n akb r5 = (p000.akb) r5\n goto L_0x00e3\n L_0x0108:\n goto L_0x00e2\n L_0x0109:\n int r2 = r12.f514E\n java.util.ArrayList r3 = r12.f530o\n int r3 = r3.size()\n if (r2 >= r3) goto L_0x011d\n java.util.ArrayList r2 = r12.f530o\n int r3 = r12.f514E\n java.lang.Object r2 = r2.get(r3)\n akb r2 = (p000.akb) r2\n L_0x011d:\n akp r2 = r12.f533r\n r2.f623m = r0\n goto L_0x0140\n L_0x0122:\n r12.m691a(r8)\n akp r0 = r12.f533r\n long r0 = r0.f623m\n int r2 = (r8 > r0 ? 1 : (r8 == r0 ? 0 : -1))\n if (r2 == 0) goto L_0x0140\n akp r0 = r12.f533r\n awt r7 = r0.f612b\n long r10 = r0.f614d\n r6 = r12\n akp r0 = r6.m686a(r7, r8, r10)\n r12.f533r = r0\n akc r0 = r12.f529n\n r1 = 4\n r0.mo409b(r1)\n L_0x0140:\n akn r0 = r12.f531p\n akl r0 = r0.f603f\n akp r1 = r12.f533r\n long r2 = r0.mo442c()\n r1.f621k = r2\n akp r0 = r12.f533r\n long r1 = r12.m719n()\n r0.f622l = r1\n return\n L_0x0155:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p000.ake.m710e():void\");\n }",
"public int mo9754s() {\n return mo9774x();\n }",
"public static int m8655e() {\n return 8;\n }",
"public final int mo9382ZU() {\n return 470;\n }",
"public int mo163c() {\n int size = this.f1963b.size();\n if (size < 1) {\n return 0;\n }\n int i = f1962a;\n return ((size / i) * (Lca.m828b(i) + 4)) + 4 + Lca.m828b(size % i);\n }",
"public abstract long mo9748m();",
"private void ncpStep(double height) {\n/* 56 */ double posX = mc.field_71439_g.field_70165_t;\n/* 57 */ double posZ = mc.field_71439_g.field_70161_v;\n/* 58 */ double y = mc.field_71439_g.field_70163_u;\n/* 59 */ if (height >= 1.1D) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 80 */ if (height < 1.6D) {\n/* */ double[] offset;\n/* 82 */ for (double off : offset = new double[] { 0.42D, 0.33D, 0.24D, 0.083D, -0.078D }) {\n/* 83 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y += off, posZ, false));\n/* */ }\n/* 85 */ } else if (height < 2.1D) {\n/* */ double[] heights;\n/* 87 */ for (double off : heights = new double[] { 0.425D, 0.821D, 0.699D, 0.599D, 1.022D, 1.372D, 1.652D, 1.869D }) {\n/* 88 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + off, posZ, false));\n/* */ }\n/* */ } else {\n/* */ double[] heights;\n/* 92 */ for (double off : heights = new double[] { 0.425D, 0.821D, 0.699D, 0.599D, 1.022D, 1.372D, 1.652D, 1.869D, 2.019D, 1.907D })\n/* 93 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + off, posZ, false)); \n/* */ } \n/* */ return;\n/* */ } \n/* */ double first = 0.42D;\n/* */ double d1 = 0.75D;\n/* */ if (height != 1.0D) {\n/* */ first *= height;\n/* */ d1 *= height;\n/* */ if (first > 0.425D)\n/* */ first = 0.425D; \n/* */ if (d1 > 0.78D)\n/* */ d1 = 0.78D; \n/* */ if (d1 < 0.49D)\n/* */ d1 = 0.49D; \n/* */ } \n/* */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + first, posZ, false));\n/* */ if (y + d1 < y + height)\n/* */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + d1, posZ, false)); \n/* */ }",
"public void mo7778r() {\n C1617m mVar;\n C1680l lVar;\n long j;\n C1605b c = this.f5559c.mo7539c(C1613i.f5305hP);\n if (c instanceof C1604a) {\n C1604a aVar = (C1604a) c;\n C1604a aVar2 = (C1604a) this.f5559c.mo7539c(C1613i.f5122ds);\n if (aVar2 == null) {\n aVar2 = new C1604a();\n aVar2.mo7490a((C1605b) C1612h.f4886a);\n aVar2.mo7490a(this.f5559c.mo7539c(C1613i.f5288gz));\n }\n ArrayList arrayList = new ArrayList();\n Iterator<C1605b> it = aVar2.iterator();\n while (true) {\n if (!it.hasNext()) {\n break;\n }\n long b = ((C1612h) it.next()).mo7585b();\n int c2 = ((C1612h) it.next()).mo7586c();\n for (int i = 0; i < c2; i++) {\n arrayList.add(Long.valueOf(((long) i) + b));\n }\n }\n Iterator it2 = arrayList.iterator();\n int c3 = aVar.mo7498c(0);\n int c4 = aVar.mo7498c(1);\n int c5 = aVar.mo7498c(2);\n int i2 = c3 + c4 + c5;\n while (!this.f5510a.mo7797d() && it2.hasNext()) {\n byte[] bArr = new byte[i2];\n this.f5510a.mo7789a(bArr);\n int i3 = 0;\n for (int i4 = 0; i4 < c3; i4++) {\n i3 += (bArr[i4] & 255) << (((c3 - i4) - 1) * 8);\n }\n Long l = (Long) it2.next();\n switch (i3) {\n case 1:\n int i5 = 0;\n for (int i6 = 0; i6 < c4; i6++) {\n i5 += (bArr[i6 + c3] & 255) << (((c4 - i6) - 1) * 8);\n }\n int i7 = 0;\n for (int i8 = 0; i8 < c5; i8++) {\n i7 += (bArr[(i8 + c3) + c4] & 255) << (((c5 - i8) - 1) * 8);\n }\n mVar = new C1617m(l.longValue(), i7);\n lVar = this.f5560d;\n j = (long) i5;\n break;\n case 2:\n int i9 = 0;\n for (int i10 = 0; i10 < c4; i10++) {\n i9 += (bArr[i10 + c3] & 255) << (((c4 - i10) - 1) * 8);\n }\n mVar = new C1617m(l.longValue(), 0);\n lVar = this.f5560d;\n j = (long) (-i9);\n break;\n }\n lVar.mo7812a(mVar, j);\n }\n return;\n }\n throw new IOException(\"/W array is missing in Xref stream\");\n }",
"C4945r5 mo19057F();",
"public void method_246(int var1, int var2, int var3, int var4, int var5, int var6) {\n try {\n int var7 = this.field_736[var5];\n int var8 = this.field_737[var5];\n int var9 = 0;\n int var10 = 0;\n int var11 = (var7 << 16) / var3;\n int var12 = (var8 << 16) / var4;\n int var13;\n int var14;\n if(this.field_742[var5]) {\n var13 = this.spriteWidthFull[var5];\n var14 = this.field_741[var5];\n var11 = (var13 << 16) / var3;\n var12 = (var14 << 16) / var4;\n var1 += (this.field_738[var5] * var3 + var13 - 1) / var13;\n var2 += (this.field_739[var5] * var4 + var14 - 1) / var14;\n if(this.field_738[var5] * var3 % var13 != 0) {\n var9 = (var13 - this.field_738[var5] * var3 % var13 << 16) / var3;\n }\n\n if(this.field_739[var5] * var4 % var14 != 0) {\n var10 = (var14 - this.field_739[var5] * var4 % var14 << 16) / var4;\n }\n\n var3 = var3 * (this.field_736[var5] - (var9 >> 16)) / var13;\n var4 = var4 * (this.field_737[var5] - (var10 >> 16)) / var14;\n }\n\n var13 = var1 + var2 * this.field_723;\n var14 = this.field_723 - var3;\n int var15;\n if(var2 < this.field_743) {\n var15 = this.field_743 - var2;\n var4 -= var15;\n var2 = 0;\n var13 += var15 * this.field_723;\n var10 += var12 * var15;\n }\n\n if(var2 + var4 >= this.field_744) {\n var4 -= var2 + var4 - this.field_744 + 1;\n }\n\n if(var1 < this.field_745) {\n var15 = this.field_745 - var1;\n var3 -= var15;\n var1 = 0;\n var13 += var15;\n var9 += var11 * var15;\n var14 += var15;\n }\n\n if(var1 + var3 >= this.field_746) {\n var15 = var1 + var3 - this.field_746 + 1;\n var3 -= var15;\n var14 += var15;\n }\n\n byte var17 = 1;\n if(this.interlace) {\n var17 = 2;\n var14 += this.field_723;\n var12 += var12;\n if((var2 & 1) != 0) {\n var13 += this.field_723;\n --var4;\n }\n }\n\n this.method_253(this.pixels, this.spritePixels[var5], 0, var9, var10, var13, var14, var3, var4, var11, var12, var7, var17, var6);\n } catch (Exception var16) {\n System.out.println(\"error in sprite clipping routine\"); // authentic System.out.println\n }\n }",
"public long mo9743h() {\n return mo9773w();\n }",
"public abstract long mo24410c();",
"public abstract Integer mo36210m();",
"BigInteger getWidth();",
"public abstract int mo8526p();",
"C5537g mo4096b(int i);",
"public int mo4452e() {\n /*\n r7 = this;\n int r0 = r7.f2518c\n r7.f2519d = r0\n r0 = 0\n r1 = 0\n r2 = 0\n L_0x0007:\n int r3 = r7.f2519d\n if (r3 <= 0) goto L_0x003b\n byte r3 = r7.mo4449a()\n r4 = -1\n if (r3 == 0) goto L_0x0034\n r5 = 1\n if (r3 == r5) goto L_0x002e\n r6 = 2\n if (r3 == r6) goto L_0x002e\n r6 = 9\n if (r3 == r6) goto L_0x0007\n switch(r3) {\n case 14: goto L_0x0028;\n case 15: goto L_0x0028;\n case 16: goto L_0x0025;\n case 17: goto L_0x0025;\n case 18: goto L_0x0022;\n default: goto L_0x001f;\n }\n L_0x001f:\n if (r2 != 0) goto L_0x0007\n goto L_0x0039\n L_0x0022:\n int r1 = r1 + 1\n goto L_0x0007\n L_0x0025:\n if (r2 != r1) goto L_0x002b\n return r5\n L_0x0028:\n if (r2 != r1) goto L_0x002b\n return r4\n L_0x002b:\n int r1 = r1 + -1\n goto L_0x0007\n L_0x002e:\n if (r1 != 0) goto L_0x0031\n return r5\n L_0x0031:\n if (r2 != 0) goto L_0x0007\n goto L_0x0039\n L_0x0034:\n if (r1 != 0) goto L_0x0037\n return r4\n L_0x0037:\n if (r2 != 0) goto L_0x0007\n L_0x0039:\n r2 = r1\n goto L_0x0007\n L_0x003b:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.core.text.BidiFormatter.C0510a.mo4452e():int\");\n }",
"public void skystonePos6() {\n }",
"public long mo9743h() {\n return mo9760w();\n }",
"public void method_245(int var1, int var2, int var3, int var4, int var5, int var6) {\n try {\n int var7 = this.field_736[var5];\n int var8 = this.field_737[var5];\n int var9 = 0;\n int var10 = 0;\n int var11 = (var7 << 16) / var3;\n int var12 = (var8 << 16) / var4;\n int var13;\n int var14;\n if(this.field_742[var5]) {\n var13 = this.spriteWidthFull[var5];\n var14 = this.field_741[var5];\n var11 = (var13 << 16) / var3;\n var12 = (var14 << 16) / var4;\n var1 += (this.field_738[var5] * var3 + var13 - 1) / var13;\n var2 += (this.field_739[var5] * var4 + var14 - 1) / var14;\n if(this.field_738[var5] * var3 % var13 != 0) {\n var9 = (var13 - this.field_738[var5] * var3 % var13 << 16) / var3;\n }\n\n if(this.field_739[var5] * var4 % var14 != 0) {\n var10 = (var14 - this.field_739[var5] * var4 % var14 << 16) / var4;\n }\n\n var3 = var3 * (this.field_736[var5] - (var9 >> 16)) / var13;\n var4 = var4 * (this.field_737[var5] - (var10 >> 16)) / var14;\n }\n\n var13 = var1 + var2 * this.field_723;\n var14 = this.field_723 - var3;\n int var15;\n if(var2 < this.field_743) {\n var15 = this.field_743 - var2;\n var4 -= var15;\n var2 = 0;\n var13 += var15 * this.field_723;\n var10 += var12 * var15;\n }\n\n if(var2 + var4 >= this.field_744) {\n var4 -= var2 + var4 - this.field_744 + 1;\n }\n\n if(var1 < this.field_745) {\n var15 = this.field_745 - var1;\n var3 -= var15;\n var1 = 0;\n var13 += var15;\n var9 += var11 * var15;\n var14 += var15;\n }\n\n if(var1 + var3 >= this.field_746) {\n var15 = var1 + var3 - this.field_746 + 1;\n var3 -= var15;\n var14 += var15;\n }\n\n byte var17 = 1;\n if(this.interlace) {\n var17 = 2;\n var14 += this.field_723;\n var12 += var12;\n if((var2 & 1) != 0) {\n var13 += this.field_723;\n --var4;\n }\n }\n\n this.method_252(this.pixels, this.spritePixels[var5], 0, var9, var10, var13, var14, var3, var4, var11, var12, var7, var17, var6);\n } catch (Exception var16) {\n System.out.println(\"error in sprite clipping routine\"); // authentic System.out.println\n }\n }",
"public int mo80c() {\n return 7;\n }",
"public abstract long mo9743h();",
"public int mo8073b() {\n return this.f1294e;\n }",
"private void m27469e() {\n int i;\n int i2 = this.f25262I * this.f25259F;\n if (this.f25281ae) {\n i = Integer.MIN_VALUE;\n } else {\n i = ((-this.f25259F) * (this.f25301p.size() - 1)) + i2;\n }\n this.f25264K = i;\n if (this.f25281ae) {\n i2 = Integer.MAX_VALUE;\n }\n this.f25265L = i2;\n }",
"public void method_258(int var1, int var2, int var3, int var4, int var5, int var6, int var7, int var8, boolean var9) {\n try {\n if(var6 == 0) {\n var6 = 16777215;\n }\n\n if(var7 == 0) {\n var7 = 16777215;\n }\n\n int var10 = this.field_736[var5];\n int var11 = this.field_737[var5];\n int var12 = 0;\n int var13 = 0;\n int var14 = var8 << 16;\n int var15 = (var10 << 16) / var3;\n int var16 = (var11 << 16) / var4;\n int var17 = -(var8 << 16) / var4;\n int var18;\n int var19;\n if(this.field_742[var5]) {\n var18 = this.spriteWidthFull[var5];\n var19 = this.field_741[var5];\n var15 = (var18 << 16) / var3;\n var16 = (var19 << 16) / var4;\n int var20 = this.field_738[var5];\n int var21 = this.field_739[var5];\n if(var9) {\n var20 = var18 - this.field_736[var5] - var20;\n }\n\n var1 += (var20 * var3 + var18 - 1) / var18;\n int var22 = (var21 * var4 + var19 - 1) / var19;\n var2 += var22;\n var14 += var22 * var17;\n if(var20 * var3 % var18 != 0) {\n var12 = (var18 - var20 * var3 % var18 << 16) / var3;\n }\n\n if(var21 * var4 % var19 != 0) {\n var13 = (var19 - var21 * var4 % var19 << 16) / var4;\n }\n\n var3 = ((this.field_736[var5] << 16) - var12 + var15 - 1) / var15;\n var4 = ((this.field_737[var5] << 16) - var13 + var16 - 1) / var16;\n }\n\n var18 = var2 * this.field_723;\n var14 += var1 << 16;\n if(var2 < this.field_743) {\n var19 = this.field_743 - var2;\n var4 -= var19;\n var2 = this.field_743;\n var18 += var19 * this.field_723;\n var13 += var16 * var19;\n var14 += var17 * var19;\n }\n\n if(var2 + var4 >= this.field_744) {\n var4 -= var2 + var4 - this.field_744 + 1;\n }\n\n var19 = var18 / this.field_723 & 1;\n if(!this.interlace) {\n var19 = 2;\n }\n\n if(var7 == 16777215) {\n if(this.spritePixels[var5] != null) {\n if(!var9) {\n this.method_259(this.pixels, this.spritePixels[var5], 0, var12, var13, var18, var3, var4, var15, var16, var10, var6, var14, var17, var19);\n } else {\n this.method_259(this.pixels, this.spritePixels[var5], 0, (this.field_736[var5] << 16) - var12 - 1, var13, var18, var3, var4, -var15, var16, var10, var6, var14, var17, var19);\n }\n } else if(!var9) {\n this.method_261(this.pixels, this.spriteColoursUsed[var5], this.spriteColourList[var5], 0, var12, var13, var18, var3, var4, var15, var16, var10, var6, var14, var17, var19);\n } else {\n this.method_261(this.pixels, this.spriteColoursUsed[var5], this.spriteColourList[var5], 0, (this.field_736[var5] << 16) - var12 - 1, var13, var18, var3, var4, -var15, var16, var10, var6, var14, var17, var19);\n }\n } else if(this.spritePixels[var5] != null) {\n if(!var9) {\n this.method_260(this.pixels, this.spritePixels[var5], 0, var12, var13, var18, var3, var4, var15, var16, var10, var6, var7, var14, var17, var19);\n } else {\n this.method_260(this.pixels, this.spritePixels[var5], 0, (this.field_736[var5] << 16) - var12 - 1, var13, var18, var3, var4, -var15, var16, var10, var6, var7, var14, var17, var19);\n }\n } else if(!var9) {\n this.method_262(this.pixels, this.spriteColoursUsed[var5], this.spriteColourList[var5], 0, var12, var13, var18, var3, var4, var15, var16, var10, var6, var7, var14, var17, var19);\n } else {\n this.method_262(this.pixels, this.spriteColoursUsed[var5], this.spriteColourList[var5], 0, (this.field_736[var5] << 16) - var12 - 1, var13, var18, var3, var4, -var15, var16, var10, var6, var7, var14, var17, var19);\n }\n } catch (Exception var23) {\n System.out.println(\"error in sprite clipping routine\"); // authentic System.out.println\n }\n }",
"public abstract long mo9750o();",
"C2451d mo3408a(C2457e c2457e);",
"public long mo9775y() {\n /*\n r11 = this;\n int r0 = r11.f9082i\n int r1 = r11.f9080g\n if (r1 != r0) goto L_0x0008\n goto L_0x00b6\n L_0x0008:\n byte[] r2 = r11.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0014\n r11.f9082i = r3\n long r0 = (long) r0\n return r0\n L_0x0014:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x001b\n goto L_0x00b6\n L_0x001b:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0029\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n L_0x0026:\n long r2 = (long) r0\n goto L_0x00bd\n L_0x0029:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x003a\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n long r0 = (long) r0\n r9 = r0\n r1 = r3\n r2 = r9\n goto L_0x00bd\n L_0x003a:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0048\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0026\n L_0x0048:\n long r3 = (long) r0\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r5 = (long) r1\n r1 = 28\n long r5 = r5 << r1\n long r3 = r3 ^ r5\n r5 = 0\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 < 0) goto L_0x005f\n r1 = 266354560(0xfe03f80, double:1.315966377E-315)\n L_0x005b:\n long r2 = r3 ^ r1\n r1 = r0\n goto L_0x00bd\n L_0x005f:\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n r0 = 35\n long r7 = r7 << r0\n long r3 = r3 ^ r7\n int r0 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x0074\n r5 = -34093383808(0xfffffff80fe03f80, double:NaN)\n L_0x0071:\n long r2 = r3 ^ r5\n goto L_0x00bd\n L_0x0074:\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r7 = (long) r1\n r1 = 42\n long r7 = r7 << r1\n long r3 = r3 ^ r7\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 < 0) goto L_0x0087\n r1 = 4363953127296(0x3f80fe03f80, double:2.1560793202584E-311)\n goto L_0x005b\n L_0x0087:\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n r0 = 49\n long r7 = r7 << r0\n long r3 = r3 ^ r7\n int r0 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x009a\n r5 = -558586000294016(0xfffe03f80fe03f80, double:NaN)\n goto L_0x0071\n L_0x009a:\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r7 = (long) r1\n r1 = 56\n long r7 = r7 << r1\n long r3 = r3 ^ r7\n r7 = 71499008037633920(0xfe03f80fe03f80, double:6.838959413692434E-304)\n long r3 = r3 ^ r7\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 >= 0) goto L_0x00bb\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n int r0 = (r7 > r5 ? 1 : (r7 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x00bc\n L_0x00b6:\n long r0 = r11.mo9776z()\n return r0\n L_0x00bb:\n r1 = r0\n L_0x00bc:\n r2 = r3\n L_0x00bd:\n r11.f9082i = r1\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9775y():long\");\n }",
"void m8368b();",
"static int size_of_shld(String passed){\n\t\treturn 3;\n\t}",
"public int mo9732a() {\n return this.f9084k + this.f9082i;\n }",
"public final void mo9764A() {\n int i = this.f9080g + this.f9081h;\n this.f9080g = i;\n int i2 = this.f9084k + i;\n int i3 = this.f9085l;\n if (i2 > i3) {\n int i4 = i2 - i3;\n this.f9081h = i4;\n this.f9080g = i - i4;\n return;\n }\n this.f9081h = 0;\n }",
"public int getTaillePoule (){\n\t\treturn 3;\n\t}",
"public long mo9743h() {\n return mo9784w();\n }",
"private int[] m7231g() {\n this.f5577B[0] = this.f5594p;\n this.f5577B[1] = this.f5600v - this.f5594p;\n return this.f5577B;\n }",
"public int mo27480a() {\n return 0;\n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public int method_1143(int var1) {\r\n return this.height / 4 + 0 + (24 * var1 - 24) + this.field_987;\r\n }",
"public final void mo9756A() {\n int i = this.f9072g + this.f9073h;\n this.f9072g = i;\n int i2 = i - this.f9075j;\n int i3 = this.f9077l;\n if (i2 > i3) {\n int i4 = i2 - i3;\n this.f9073h = i4;\n this.f9072g = i - i4;\n return;\n }\n this.f9073h = 0;\n }",
"public double getPerimiter(){return (2*height +2*width);}",
"protected int bytesPerAtom() {\n return (2);\n }",
"protected int bytesPerAtom() {\n return (2);\n }",
"void mo304a(C0366h c0366h);",
"public abstract int mo123249h();",
"private void m3932O() {\n int e = mo4732e();\n for (int i = 0; i < e; i++) {\n C0780b bVar = (C0780b) mo4729d(i).getLayoutParams();\n int b = bVar.mo4772b();\n this.f3123L.put(b, bVar.mo4310h());\n this.f3124M.put(b, bVar.mo4309g());\n }\n }",
"public abstract long mo9755t();",
"private void m50366E() {\n }",
"public abstract int mo9749n();",
"C2841w mo7234g();",
"void mo21072c();",
"private void m27470f() {\n if (this.f25278ab) {\n int i = this.f25254A / 2;\n int i2 = this.f25269P + this.f25260G;\n int i3 = this.f25269P - this.f25260G;\n this.f25295j.set(this.f25294i.left, i2 - i, this.f25294i.right, i2 + i);\n this.f25296k.set(this.f25294i.left, i3 - i, this.f25294i.right, i3 + i);\n }\n }",
"public int mo7208d() {\n return this.f2975f.mo7332c();\n }",
"@Override\n public int getDepth() {\n return 680;\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tint i, x=4,w=9,q;\r\n\t\tfor(i=-1;i<20;i+=3) {\r\n\t\t\tx++;\r\n\t\t\tfor(q=4;q<11;q++) {\r\n\t\t\t\tdo {\r\n\t\t\t\t\ti=+3;\r\n\t\t\t\t\tw=sizeof(i);\r\n\t\t\t\t\ti=x+w;\r\n\t\t\t\t\tx=w+i;\r\n\t\t\t\t\t\t\r\n\t\t\t\t} while (x<15);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"x:\"+x+\"i:\"+i);\r\n\r\n\t}",
"void ciff_block_1030()\n{\n int key[] = new int[2];\n key[0] = 0x410;\n key[1] = 0x45f3;\n int i, bpp, row, col, vbits=0;\n long bitbuf=0;\n\n get2();\n if ((get4()) != 0x80008 || get4()==0) return;\n bpp = get2();\n if (bpp != 10 && bpp != 12) return;\n for (i=row=0; row < 8; row++)\n for (col=0; col < 8; col++) {\n if (vbits < bpp) {\n\tbitbuf = bitbuf << 16 | (get2() ^ key[i++ & 1]);\n\tvbits += 16;\n }\n white[row][col] = ( char)( bitbuf << (LONG_BIT - vbits) >> (LONG_BIT - bpp));\n vbits -= bpp;\n }\n}",
"public void mo8483f() {\n mo8472a((List<C1070b>) this.f3532b);\n mo8472a((List<C1070b>) this.f3533c);\n this.f3538h = 0;\n }",
"public static int offset_parent() {\n return (40 / 8);\n }",
"public void mo21783H() {\n }",
"C1458cs mo7613iS();",
"public final int mo4375b() {\n return this.f20655d - this.f20656e;\n }",
"private double RepulsionFactorSourceNodes(){\n \tdouble RepulsionFactor=10000.0d *(contextNodeSize*5);\n \t\n \treturn RepulsionFactor;\n }",
"Integer getLNDFlgs();",
"public final int mo40473a() {\n int a = super.mo40473a() + bbf.m48355b(1, this.f41423c.intValue());\n if (this.f41424d != null) {\n a += bbf.m48357b(2, this.f41424d);\n }\n if (this.f41425e != null) {\n a += bbf.m48356b(3, (bbl) this.f41425e);\n }\n if (this.f41430k != null && this.f41430k.length > 0) {\n int i = 0;\n for (int a2 : this.f41430k) {\n i += bbf.m48348a(a2);\n }\n a = a + i + (this.f41430k.length * 1);\n }\n if (this.f41426f != null) {\n a += bbf.m48355b(8, this.f41426f.intValue());\n }\n if (this.f41427g == null || this.f41427g.length <= 0) {\n return a;\n }\n int i2 = 0;\n int i3 = 0;\n for (String str : this.f41427g) {\n if (str != null) {\n i3++;\n i2 += bbf.m48350a(str);\n }\n }\n return a + i2 + (i3 * 1);\n }"
] | [
"0.5930729",
"0.5864335",
"0.56873167",
"0.56850135",
"0.5644463",
"0.56335574",
"0.56199884",
"0.5614748",
"0.5586583",
"0.55702454",
"0.5537771",
"0.5500982",
"0.5473972",
"0.54635674",
"0.54596055",
"0.54573965",
"0.54428285",
"0.54232466",
"0.54166627",
"0.54164654",
"0.54047954",
"0.54003537",
"0.53930706",
"0.5384334",
"0.5377846",
"0.5373113",
"0.5359185",
"0.5347327",
"0.5347183",
"0.534324",
"0.53388554",
"0.5326975",
"0.5319501",
"0.53083587",
"0.53039163",
"0.5302722",
"0.5299554",
"0.52966636",
"0.5293565",
"0.52924156",
"0.52918375",
"0.5288704",
"0.528028",
"0.5274576",
"0.5273929",
"0.52709734",
"0.5266494",
"0.5263482",
"0.5260414",
"0.52551043",
"0.524962",
"0.5247608",
"0.5245246",
"0.5244843",
"0.52426827",
"0.52416295",
"0.5239956",
"0.5234079",
"0.5233495",
"0.52322924",
"0.52305025",
"0.52249205",
"0.5223971",
"0.5223787",
"0.5219409",
"0.5214823",
"0.5206676",
"0.5203503",
"0.5199863",
"0.5199764",
"0.5198495",
"0.5197377",
"0.5196928",
"0.51966345",
"0.51955503",
"0.5193406",
"0.5190706",
"0.5189667",
"0.51890904",
"0.51890904",
"0.5188594",
"0.51842135",
"0.516683",
"0.51665205",
"0.5164715",
"0.5164481",
"0.51606214",
"0.5159363",
"0.5158628",
"0.51571554",
"0.51562154",
"0.5154732",
"0.51544917",
"0.51542723",
"0.5153255",
"0.5151355",
"0.51487213",
"0.5148663",
"0.5148051",
"0.514629",
"0.5143777"
] | 0.0 | -1 |
/ / / / / / / / / / / / / / / / / 385 | public DateAxis(String label, TimeZone zone) { this(label, zone, Locale.getDefault()); } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo33732Px();",
"public int mo9774x() {\n /*\n r5 = this;\n int r0 = r5.f9082i\n int r1 = r5.f9080g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9082i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9776z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9082i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9774x():int\");\n }",
"static int getNumPatterns() { return 64; }",
"public int arn() {\n return 383;\n }",
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"public int mo36g() {\n return 8;\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tint i, x=4,w=9,q;\r\n\t\tfor(i=-1;i<20;i+=3) {\r\n\t\t\tx++;\r\n\t\t\tfor(q=4;q<11;q++) {\r\n\t\t\t\tdo {\r\n\t\t\t\t\ti=+3;\r\n\t\t\t\t\tw=sizeof(i);\r\n\t\t\t\t\ti=x+w;\r\n\t\t\t\t\tx=w+i;\r\n\t\t\t\t\t\t\r\n\t\t\t\t} while (x<15);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"x:\"+x+\"i:\"+i);\r\n\r\n\t}",
"public abstract int mo9754s();",
"@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }",
"public static int m8655e() {\n return 8;\n }",
"public int mo9785x() {\n /*\n r10 = this;\n long r0 = r10.f9091i\n long r2 = r10.f9090h\n int r2 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1))\n if (r2 != 0) goto L_0x000a\n goto L_0x0085\n L_0x000a:\n r2 = 1\n long r4 = r0 + r2\n byte r0 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r0)\n if (r0 < 0) goto L_0x0017\n r10.f9091i = r4\n return r0\n L_0x0017:\n long r6 = r10.f9090h\n long r6 = r6 - r4\n r8 = 9\n int r1 = (r6 > r8 ? 1 : (r6 == r8 ? 0 : -1))\n if (r1 >= 0) goto L_0x0021\n goto L_0x0085\n L_0x0021:\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n int r1 = r1 << 7\n r0 = r0 ^ r1\n if (r0 >= 0) goto L_0x002f\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x008b\n L_0x002f:\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x003e\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x003c:\n r6 = r4\n goto L_0x008b\n L_0x003e:\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n int r1 = r1 << 21\n r0 = r0 ^ r1\n if (r0 >= 0) goto L_0x004e\n r1 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r1\n goto L_0x008b\n L_0x004e:\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n int r6 = r1 << 28\n r0 = r0 ^ r6\n r6 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r6\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n L_0x0085:\n long r0 = r10.mo9787z()\n int r0 = (int) r0\n return r0\n L_0x008b:\n r10.f9091i = r6\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3661d.mo9785x():int\");\n }",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }",
"public abstract long mo9746k();",
"protected int bytesPerAtom() {\n return (2);\n }",
"protected int bytesPerAtom() {\n return (2);\n }",
"Info mo7564ix();",
"public abstract long mo9229aD();",
"public int mo9761x() {\n /*\n r5 = this;\n int r0 = r5.f9074i\n int r1 = r5.f9072g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9070e\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9074i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9763z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9074i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3658b.mo9761x():int\");\n }",
"public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"C5537g mo4096b(int i);",
"private static int m36201b(Rect rect) {\n return rect.width() * rect.height();\n }",
"public static String nthrt(String bytes,int size, int value){\n if(value==1||value==0||size<1||size>bytes.length()||!Cript2010x8b.USEPOWNTHRT) return bytes; \n String out=\"\"; \n int max=bytes.length()/size; \n if(bytes.length()%size!=0) \n max++; \n for(int i=0;i<max;i++){ \n String subStr=\"\"; \n for(int l=0;l<size;l++) \n try{ \n subStr+=bytes.charAt(i*size+(size-l-1)); \n }catch(Exception e){ \n String bug=bytes.substring(i*size); \n bug=addLong(bug,1,value); \n return out+bug; \n } \n BigInteger current=strToBInt(subStr); \n int exiter=0;\n while(Operations.nthRootFloor(current, value).pow(value).compareTo(current)!=0){ \n if(exiter>66) break;\n current=current.add(BigInteger.valueOf(2).pow(8*size)); \n exiter++;\n } \n current=Operations.nthRootFloor(current, value); \n exiter=0;\n while(current.compareTo(BigInteger.valueOf(2).pow(8*size))>0){if(exiter>66) break;current=current.add(BigInteger.valueOf(2).pow(8*size).negate());exiter++;} \n exiter=0;\n while(current.compareTo(BigInteger.ZERO)<0){if(exiter>66) break;current=current.add(BigInteger.valueOf(2).pow(8*size));exiter++;} \n \n out+=BintToStr(current,size); \n } \n return out; \n }",
"private static int getBytes(long r23) {\n /*\n java.lang.ThreadLocal<byte[]> r0 = TEMP_NUMBER_BUFFER\n java.lang.Object r0 = r0.get()\n byte[] r0 = (byte[]) r0\n r1 = 20\n if (r0 != 0) goto L_0x0013\n byte[] r0 = new byte[r1]\n java.lang.ThreadLocal<byte[]> r2 = TEMP_NUMBER_BUFFER\n r2.set(r0)\n L_0x0013:\n r2 = -9223372036854775808\n r4 = 54\n r5 = 57\n r6 = 45\n r7 = 53\n r8 = 56\n r9 = 55\n r10 = 51\n r11 = 50\n r12 = 0\n r13 = 48\n r14 = 1\n int r15 = (r23 > r2 ? 1 : (r23 == r2 ? 0 : -1))\n if (r15 != 0) goto L_0x0076\n r0[r12] = r6\n r0[r14] = r5\n r2 = 2\n r0[r2] = r11\n r2 = 3\n r0[r2] = r11\n r2 = 4\n r0[r2] = r10\n r2 = 5\n r0[r2] = r10\n r2 = 6\n r0[r2] = r9\n r2 = 7\n r0[r2] = r11\n r2 = 8\n r0[r2] = r13\n r2 = 9\n r0[r2] = r10\n r2 = 10\n r0[r2] = r4\n r2 = 11\n r0[r2] = r8\n r2 = 12\n r0[r2] = r7\n r2 = 13\n r3 = 52\n r0[r2] = r3\n r2 = 14\n r0[r2] = r9\n r2 = 15\n r0[r2] = r9\n r2 = 16\n r0[r2] = r7\n r2 = 17\n r0[r2] = r8\n r2 = 18\n r0[r2] = r13\n r2 = 19\n r0[r2] = r8\n return r1\n L_0x0076:\n r1 = 0\n int r3 = (r23 > r1 ? 1 : (r23 == r1 ? 0 : -1))\n if (r3 != 0) goto L_0x007f\n r0[r12] = r13\n return r14\n L_0x007f:\n if (r3 >= 0) goto L_0x0088\n r0[r12] = r6\n long r15 = java.lang.Math.abs(r23)\n goto L_0x008b\n L_0x0088:\n r14 = 0\n r15 = r23\n L_0x008b:\n r17 = 9\n r19 = 10\n r21 = 1\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0099\n r17 = r21\n goto L_0x017e\n L_0x0099:\n r17 = 99\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00a3\n r17 = r19\n goto L_0x017e\n L_0x00a3:\n r17 = 999(0x3e7, double:4.936E-321)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00ad\n r17 = 100\n goto L_0x017e\n L_0x00ad:\n r17 = 9999(0x270f, double:4.94E-320)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00b7\n r17 = 1000(0x3e8, double:4.94E-321)\n goto L_0x017e\n L_0x00b7:\n r17 = 99999(0x1869f, double:4.9406E-319)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00c2\n r17 = 10000(0x2710, double:4.9407E-320)\n goto L_0x017e\n L_0x00c2:\n r17 = 999999(0xf423f, double:4.94065E-318)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00ce\n r17 = 100000(0x186a0, double:4.94066E-319)\n goto L_0x017e\n L_0x00ce:\n r17 = 9999999(0x98967f, double:4.940656E-317)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00da\n r17 = 1000000(0xf4240, double:4.940656E-318)\n goto L_0x017e\n L_0x00da:\n r17 = 99999999(0x5f5e0ff, double:4.9406564E-316)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00e6\n r17 = 10000000(0x989680, double:4.9406565E-317)\n goto L_0x017e\n L_0x00e6:\n r17 = 999999999(0x3b9ac9ff, double:4.940656453E-315)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00f2\n r17 = 100000000(0x5f5e100, double:4.94065646E-316)\n goto L_0x017e\n L_0x00f2:\n r17 = 9999999999(0x2540be3ff, double:4.940656458E-314)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0100\n r17 = 1000000000(0x3b9aca00, double:4.94065646E-315)\n goto L_0x017e\n L_0x0100:\n r17 = 99999999999(0x174876e7ff, double:4.94065645836E-313)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0110\n r17 = 10000000000(0x2540be400, double:4.9406564584E-314)\n goto L_0x017e\n L_0x0110:\n r17 = 999999999999(0xe8d4a50fff, double:4.940656458408E-312)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x011f\n r17 = 100000000000(0x174876e800, double:4.9406564584E-313)\n goto L_0x017e\n L_0x011f:\n r17 = 9999999999999(0x9184e729fff, double:4.940656458412E-311)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x012e\n r17 = 1000000000000(0xe8d4a51000, double:4.94065645841E-312)\n goto L_0x017e\n L_0x012e:\n r17 = 99999999999999(0x5af3107a3fff, double:4.9406564584124E-310)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x013d\n r17 = 10000000000000(0x9184e72a000, double:4.9406564584125E-311)\n goto L_0x017e\n L_0x013d:\n r17 = 999999999999999(0x38d7ea4c67fff, double:4.94065645841246E-309)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x014c\n r17 = 100000000000000(0x5af3107a4000, double:4.94065645841247E-310)\n goto L_0x017e\n L_0x014c:\n r17 = 9999999999999999(0x2386f26fc0ffff, double:5.431165199810527E-308)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x015b\n r17 = 1000000000000000(0x38d7ea4c68000, double:4.940656458412465E-309)\n goto L_0x017e\n L_0x015b:\n r17 = 99999999999999999(0x16345785d89ffff, double:5.620395787888204E-302)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x016a\n r17 = 10000000000000000(0x2386f26fc10000, double:5.431165199810528E-308)\n goto L_0x017e\n L_0x016a:\n r17 = 999999999999999999(0xde0b6b3a763ffff, double:7.832953389245684E-242)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0179\n r17 = 100000000000000000(0x16345785d8a0000, double:5.620395787888205E-302)\n goto L_0x017e\n L_0x0179:\n r17 = 1000000000000000000(0xde0b6b3a7640000, double:7.832953389245686E-242)\n L_0x017e:\n long r1 = r15 / r17\n int r3 = (int) r1\n switch(r3) {\n case 0: goto L_0x01b6;\n case 1: goto L_0x01af;\n case 2: goto L_0x01aa;\n case 3: goto L_0x01a5;\n case 4: goto L_0x019e;\n case 5: goto L_0x0199;\n case 6: goto L_0x0194;\n case 7: goto L_0x018f;\n case 8: goto L_0x018a;\n case 9: goto L_0x0185;\n default: goto L_0x0184;\n }\n L_0x0184:\n goto L_0x01bb\n L_0x0185:\n int r3 = r14 + 1\n r0[r14] = r5\n goto L_0x01ba\n L_0x018a:\n int r3 = r14 + 1\n r0[r14] = r8\n goto L_0x01ba\n L_0x018f:\n int r3 = r14 + 1\n r0[r14] = r9\n goto L_0x01ba\n L_0x0194:\n int r3 = r14 + 1\n r0[r14] = r4\n goto L_0x01ba\n L_0x0199:\n int r3 = r14 + 1\n r0[r14] = r7\n goto L_0x01ba\n L_0x019e:\n int r3 = r14 + 1\n r6 = 52\n r0[r14] = r6\n goto L_0x01ba\n L_0x01a5:\n int r3 = r14 + 1\n r0[r14] = r10\n goto L_0x01ba\n L_0x01aa:\n int r3 = r14 + 1\n r0[r14] = r11\n goto L_0x01ba\n L_0x01af:\n int r3 = r14 + 1\n r6 = 49\n r0[r14] = r6\n goto L_0x01ba\n L_0x01b6:\n int r3 = r14 + 1\n r0[r14] = r13\n L_0x01ba:\n r14 = r3\n L_0x01bb:\n int r3 = (r17 > r21 ? 1 : (r17 == r21 ? 0 : -1))\n if (r3 != 0) goto L_0x01c0\n goto L_0x01d8\n L_0x01c0:\n java.lang.Long.signum(r17)\n long r1 = r1 * r17\n long r15 = r15 - r1\n r1 = 0\n int r3 = (r15 > r1 ? 1 : (r15 == r1 ? 0 : -1))\n if (r3 != 0) goto L_0x01d9\n L_0x01cc:\n int r1 = (r17 > r21 ? 1 : (r17 == r21 ? 0 : -1))\n if (r1 <= 0) goto L_0x01d8\n int r1 = r14 + 1\n r0[r14] = r13\n long r17 = r17 / r19\n r14 = r1\n goto L_0x01cc\n L_0x01d8:\n return r14\n L_0x01d9:\n long r17 = r17 / r19\n goto L_0x017e\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.unboundid.util.ByteStringBuffer.getBytes(long):int\");\n }",
"public abstract int mo8526p();",
"long getUnknown72();",
"public void mo9769i(int r9) {\n /*\n r8 = this;\n int r0 = r8.f9080g\n int r1 = r8.f9082i\n int r0 = r0 - r1\n if (r9 > r0) goto L_0x000e\n if (r9 < 0) goto L_0x000e\n int r1 = r1 + r9\n r8.f9082i = r1\n goto L_0x0097\n L_0x000e:\n if (r9 < 0) goto L_0x00a2\n int r0 = r8.f9084k\n int r1 = r8.f9082i\n int r2 = r0 + r1\n int r3 = r2 + r9\n int r4 = r8.f9085l\n if (r3 > r4) goto L_0x0098\n q.b.c.a.j0.a.k$c$a r0 = r8.f9086m\n r3 = 0\n if (r0 != 0) goto L_0x007d\n r8.f9084k = r2\n int r0 = r8.f9080g\n int r0 = r0 - r1\n r8.f9080g = r3\n r8.f9082i = r3\n r3 = r0\n L_0x002b:\n if (r3 >= r9) goto L_0x0075\n int r0 = r9 - r3\n java.io.InputStream r1 = r8.f9078e // Catch:{ all -> 0x006b }\n long r4 = (long) r0 // Catch:{ all -> 0x006b }\n long r0 = r1.skip(r4) // Catch:{ all -> 0x006b }\n r6 = 0\n int r2 = (r0 > r6 ? 1 : (r0 == r6 ? 0 : -1))\n if (r2 < 0) goto L_0x0046\n int r4 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1))\n if (r4 > 0) goto L_0x0046\n if (r2 != 0) goto L_0x0043\n goto L_0x0075\n L_0x0043:\n int r0 = (int) r0 // Catch:{ all -> 0x006b }\n int r3 = r3 + r0\n goto L_0x002b\n L_0x0046:\n java.lang.IllegalStateException r9 = new java.lang.IllegalStateException // Catch:{ all -> 0x006b }\n java.lang.StringBuilder r2 = new java.lang.StringBuilder // Catch:{ all -> 0x006b }\n r2.<init>() // Catch:{ all -> 0x006b }\n java.io.InputStream r4 = r8.f9078e // Catch:{ all -> 0x006b }\n java.lang.Class r4 = r4.getClass() // Catch:{ all -> 0x006b }\n r2.append(r4) // Catch:{ all -> 0x006b }\n java.lang.String r4 = \"#skip returned invalid result: \"\n r2.append(r4) // Catch:{ all -> 0x006b }\n r2.append(r0) // Catch:{ all -> 0x006b }\n java.lang.String r0 = \"\\nThe InputStream implementation is buggy.\"\n r2.append(r0) // Catch:{ all -> 0x006b }\n java.lang.String r0 = r2.toString() // Catch:{ all -> 0x006b }\n r9.<init>(r0) // Catch:{ all -> 0x006b }\n throw r9 // Catch:{ all -> 0x006b }\n L_0x006b:\n r9 = move-exception\n int r0 = r8.f9084k\n int r0 = r0 + r3\n r8.f9084k = r0\n r8.mo9764A()\n throw r9\n L_0x0075:\n int r0 = r8.f9084k\n int r0 = r0 + r3\n r8.f9084k = r0\n r8.mo9764A()\n L_0x007d:\n if (r3 >= r9) goto L_0x0097\n int r0 = r8.f9080g\n int r1 = r8.f9082i\n int r1 = r0 - r1\n r8.f9082i = r0\n r0 = 1\n L_0x0088:\n r8.mo9768h(r0)\n int r2 = r9 - r1\n int r3 = r8.f9080g\n if (r2 <= r3) goto L_0x0095\n int r1 = r1 + r3\n r8.f9082i = r3\n goto L_0x0088\n L_0x0095:\n r8.f9082i = r2\n L_0x0097:\n return\n L_0x0098:\n int r4 = r4 - r0\n int r4 = r4 - r1\n r8.mo9769i(r4)\n q.b.c.a.j0.a.c0 r9 = p213q.p217b.p301c.p302a.p311j0.p312a.C3606c0.m8181h()\n throw r9\n L_0x00a2:\n q.b.c.a.j0.a.c0 r9 = p213q.p217b.p301c.p302a.p311j0.p312a.C3606c0.m8179f()\n throw r9\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9769i(int):void\");\n }",
"public int mo9754s() {\n return mo9774x();\n }",
"private int[] m7232h() {\n this.f5578C[0] = this.f5594p;\n this.f5578C[1] = this.f5599u - this.f5594p;\n return this.f5578C;\n }",
"public int mo36g() {\n return 4;\n }",
"public void lowerAmountOfPlattforms(){\n if(plattformsPerChunk > 2 ){\n plattformsPerChunk--;\n\t}\n }",
"public abstract long mo9755t();",
"private final void m710e() {\n /*\n r12 = this;\n akn r0 = r12.f531p\n akl r0 = r0.f601d\n if (r0 == 0) goto L_0x0155\n boolean r1 = r0.f580d\n r2 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n if (r1 == 0) goto L_0x0017\n aws r1 = r0.f577a\n long r4 = r1.mo1486c()\n r8 = r4\n goto L_0x0019\n L_0x0017:\n r8 = r2\n L_0x0019:\n int r1 = (r8 > r2 ? 1 : (r8 == r2 ? 0 : -1))\n if (r1 != 0) goto L_0x0122\n ajf r1 = r12.f528m\n akn r2 = r12.f531p\n akl r2 = r2.f602e\n akx r3 = r1.f445c\n r4 = 0\n if (r3 == 0) goto L_0x008a\n boolean r3 = r3.mo486w()\n if (r3 != 0) goto L_0x008a\n akx r3 = r1.f445c\n boolean r3 = r3.mo485v()\n if (r3 == 0) goto L_0x0037\n goto L_0x0042\n L_0x0037:\n if (r0 != r2) goto L_0x008a\n akx r2 = r1.f445c\n boolean r2 = r2.mo359g()\n if (r2 == 0) goto L_0x0042\n goto L_0x008a\n L_0x0042:\n bkr r2 = r1.f446d\n long r2 = r2.mo379b()\n boolean r5 = r1.f447e\n if (r5 == 0) goto L_0x0068\n blf r5 = r1.f443a\n long r5 = r5.mo379b()\n int r7 = (r2 > r5 ? 1 : (r2 == r5 ? 0 : -1))\n if (r7 >= 0) goto L_0x005c\n blf r2 = r1.f443a\n r2.mo2109d()\n goto L_0x0096\n L_0x005c:\n r1.f447e = r4\n boolean r5 = r1.f448f\n if (r5 == 0) goto L_0x0068\n blf r5 = r1.f443a\n r5.mo2107a()\n L_0x0068:\n blf r5 = r1.f443a\n r5.mo2108a(r2)\n bkr r2 = r1.f446d\n akq r2 = r2.mo376Q()\n blf r3 = r1.f443a\n akq r3 = r3.f4280a\n boolean r3 = r2.equals(r3)\n if (r3 != 0) goto L_0x0096\n blf r3 = r1.f443a\n r3.mo378a(r2)\n aje r3 = r1.f444b\n ake r3 = (p000.ake) r3\n r3.m694a(r2, r4)\n goto L_0x0096\n L_0x008a:\n r2 = 1\n r1.f447e = r2\n boolean r2 = r1.f448f\n if (r2 == 0) goto L_0x0096\n blf r2 = r1.f443a\n r2.mo2107a()\n L_0x0096:\n long r1 = r1.mo379b()\n r12.f513D = r1\n long r0 = r0.mo440b(r1)\n akp r2 = r12.f533r\n long r2 = r2.f623m\n java.util.ArrayList r5 = r12.f530o\n boolean r5 = r5.isEmpty()\n if (r5 != 0) goto L_0x011d\n akp r5 = r12.f533r\n awt r5 = r5.f612b\n boolean r5 = r5.mo1504a()\n if (r5 != 0) goto L_0x011d\n akp r5 = r12.f533r\n long r6 = r5.f613c\n int r8 = (r6 > r2 ? 1 : (r6 == r2 ? 0 : -1))\n if (r8 != 0) goto L_0x00c5\n boolean r6 = r12.f515F\n if (r6 == 0) goto L_0x00c5\n r6 = -1\n long r2 = r2 + r6\n L_0x00c5:\n r12.f515F = r4\n alh r4 = r5.f611a\n awt r5 = r5.f612b\n java.lang.Object r5 = r5.f2566a\n int r4 = r4.mo525a(r5)\n int r5 = r12.f514E\n r6 = 0\n if (r5 <= 0) goto L_0x00e1\n java.util.ArrayList r7 = r12.f530o\n int r5 = r5 + -1\n java.lang.Object r5 = r7.get(r5)\n akb r5 = (p000.akb) r5\n goto L_0x00e3\n L_0x00e1:\n L_0x00e2:\n r5 = r6\n L_0x00e3:\n if (r5 != 0) goto L_0x00e6\n goto L_0x0109\n L_0x00e6:\n int r5 = r5.f502a\n if (r4 >= 0) goto L_0x00eb\n L_0x00ea:\n goto L_0x00f4\n L_0x00eb:\n if (r4 != 0) goto L_0x0109\n r7 = 0\n int r5 = (r2 > r7 ? 1 : (r2 == r7 ? 0 : -1))\n if (r5 >= 0) goto L_0x0109\n goto L_0x00ea\n L_0x00f4:\n int r5 = r12.f514E\n int r5 = r5 + -1\n r12.f514E = r5\n if (r5 <= 0) goto L_0x0108\n java.util.ArrayList r7 = r12.f530o\n int r5 = r5 + -1\n java.lang.Object r5 = r7.get(r5)\n akb r5 = (p000.akb) r5\n goto L_0x00e3\n L_0x0108:\n goto L_0x00e2\n L_0x0109:\n int r2 = r12.f514E\n java.util.ArrayList r3 = r12.f530o\n int r3 = r3.size()\n if (r2 >= r3) goto L_0x011d\n java.util.ArrayList r2 = r12.f530o\n int r3 = r12.f514E\n java.lang.Object r2 = r2.get(r3)\n akb r2 = (p000.akb) r2\n L_0x011d:\n akp r2 = r12.f533r\n r2.f623m = r0\n goto L_0x0140\n L_0x0122:\n r12.m691a(r8)\n akp r0 = r12.f533r\n long r0 = r0.f623m\n int r2 = (r8 > r0 ? 1 : (r8 == r0 ? 0 : -1))\n if (r2 == 0) goto L_0x0140\n akp r0 = r12.f533r\n awt r7 = r0.f612b\n long r10 = r0.f614d\n r6 = r12\n akp r0 = r6.m686a(r7, r8, r10)\n r12.f533r = r0\n akc r0 = r12.f529n\n r1 = 4\n r0.mo409b(r1)\n L_0x0140:\n akn r0 = r12.f531p\n akl r0 = r0.f603f\n akp r1 = r12.f533r\n long r2 = r0.mo442c()\n r1.f621k = r2\n akp r0 = r12.f533r\n long r1 = r12.m719n()\n r0.f622l = r1\n return\n L_0x0155:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p000.ake.m710e():void\");\n }",
"public long mo9775y() {\n /*\n r11 = this;\n int r0 = r11.f9082i\n int r1 = r11.f9080g\n if (r1 != r0) goto L_0x0008\n goto L_0x00b6\n L_0x0008:\n byte[] r2 = r11.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0014\n r11.f9082i = r3\n long r0 = (long) r0\n return r0\n L_0x0014:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x001b\n goto L_0x00b6\n L_0x001b:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0029\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n L_0x0026:\n long r2 = (long) r0\n goto L_0x00bd\n L_0x0029:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x003a\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n long r0 = (long) r0\n r9 = r0\n r1 = r3\n r2 = r9\n goto L_0x00bd\n L_0x003a:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0048\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0026\n L_0x0048:\n long r3 = (long) r0\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r5 = (long) r1\n r1 = 28\n long r5 = r5 << r1\n long r3 = r3 ^ r5\n r5 = 0\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 < 0) goto L_0x005f\n r1 = 266354560(0xfe03f80, double:1.315966377E-315)\n L_0x005b:\n long r2 = r3 ^ r1\n r1 = r0\n goto L_0x00bd\n L_0x005f:\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n r0 = 35\n long r7 = r7 << r0\n long r3 = r3 ^ r7\n int r0 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x0074\n r5 = -34093383808(0xfffffff80fe03f80, double:NaN)\n L_0x0071:\n long r2 = r3 ^ r5\n goto L_0x00bd\n L_0x0074:\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r7 = (long) r1\n r1 = 42\n long r7 = r7 << r1\n long r3 = r3 ^ r7\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 < 0) goto L_0x0087\n r1 = 4363953127296(0x3f80fe03f80, double:2.1560793202584E-311)\n goto L_0x005b\n L_0x0087:\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n r0 = 49\n long r7 = r7 << r0\n long r3 = r3 ^ r7\n int r0 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x009a\n r5 = -558586000294016(0xfffe03f80fe03f80, double:NaN)\n goto L_0x0071\n L_0x009a:\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r7 = (long) r1\n r1 = 56\n long r7 = r7 << r1\n long r3 = r3 ^ r7\n r7 = 71499008037633920(0xfe03f80fe03f80, double:6.838959413692434E-304)\n long r3 = r3 ^ r7\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 >= 0) goto L_0x00bb\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n int r0 = (r7 > r5 ? 1 : (r7 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x00bc\n L_0x00b6:\n long r0 = r11.mo9776z()\n return r0\n L_0x00bb:\n r1 = r0\n L_0x00bc:\n r2 = r3\n L_0x00bd:\n r11.f9082i = r1\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9775y():long\");\n }",
"public int method_2436() {\r\n return 16;\r\n }",
"public abstract long mo13681c();",
"int regionSplitBits4DownSampledTable();",
"public abstract int mo9749n();",
"public abstract Integer mo36210m();",
"private void m27469e() {\n int i;\n int i2 = this.f25262I * this.f25259F;\n if (this.f25281ae) {\n i = Integer.MIN_VALUE;\n } else {\n i = ((-this.f25259F) * (this.f25301p.size() - 1)) + i2;\n }\n this.f25264K = i;\n if (this.f25281ae) {\n i2 = Integer.MAX_VALUE;\n }\n this.f25265L = i2;\n }",
"private double RepulsionFactorSourceNodes(){\n \tdouble RepulsionFactor=10000.0d *(contextNodeSize*5);\n \t\n \treturn RepulsionFactor;\n }",
"public final int mo30256g() {\n return this.f7581c.f7036c.size();\n }",
"public static int[] buildBoxOutMap(int r15, int r16, int r17, int r18) {\n /*\n int r0 = r15 * r16\n int[] r1 = new int[r0]\n r2 = 0\n r3 = 0\n L_0x0006:\n r4 = 1\n if (r3 >= r0) goto L_0x000e\n r1[r3] = r4\n int r3 = r3 + 1\n goto L_0x0006\n L_0x000e:\n int r0 = r15 - r17\n int r0 = r0 / 2\n int r3 = r16 - r17\n int r3 = r3 / 2\n int r5 = r17 + -1\n r10 = r17\n r6 = r0\n r8 = r6\n r9 = r8\n r11 = r3\n r12 = r11\n r7 = r5\n r0 = r18\n r5 = r12\n r3 = 0\n L_0x0024:\n if (r3 >= r0) goto L_0x007e\n int r13 = r5 * r15\n int r13 = r13 + r6\n r14 = r1[r13]\n if (r14 != r4) goto L_0x002f\n r14 = 1\n goto L_0x0030\n L_0x002f:\n r14 = 0\n L_0x0030:\n if (r14 == 0) goto L_0x0034\n r1[r13] = r2\n L_0x0034:\n r13 = -1\n if (r7 != r13) goto L_0x0046\n if (r6 != r8) goto L_0x0046\n int r8 = r8 + -1\n int r6 = Max(r8, r2)\n int r7 = r17 * 2\n int r7 = r7 - r4\n r8 = r6\n L_0x0043:\n r10 = r7\n r7 = 0\n goto L_0x007c\n L_0x0046:\n if (r7 != r4) goto L_0x0058\n if (r6 != r9) goto L_0x0058\n int r9 = r9 + 1\n int r6 = r15 + -1\n int r6 = Min(r9, r6)\n int r7 = r17 * 2\n int r7 = 1 - r7\n r9 = r6\n goto L_0x0043\n L_0x0058:\n if (r10 != r13) goto L_0x0069\n if (r5 != r11) goto L_0x0069\n int r11 = r11 + -1\n int r5 = Max(r11, r2)\n int r7 = r17 * 2\n int r7 = 1 - r7\n r11 = r5\n L_0x0067:\n r10 = 0\n goto L_0x007c\n L_0x0069:\n if (r10 != r4) goto L_0x007a\n if (r5 != r12) goto L_0x007a\n int r12 = r12 + 1\n int r5 = r16 + -1\n int r5 = Min(r12, r5)\n int r7 = r17 * 2\n int r7 = r7 - r4\n r12 = r5\n goto L_0x0067\n L_0x007a:\n int r6 = r6 + r7\n int r5 = r5 + r10\n L_0x007c:\n int r3 = r3 + r14\n goto L_0x0024\n L_0x007e:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.jcodec.codecs.h264.decode.aso.SliceGroupMapBuilder.buildBoxOutMap(int, int, boolean, int):int[]\");\n }",
"public abstract long mo9748m();",
"public void method_258(int var1, int var2, int var3, int var4, int var5, int var6, int var7, int var8, boolean var9) {\n try {\n if(var6 == 0) {\n var6 = 16777215;\n }\n\n if(var7 == 0) {\n var7 = 16777215;\n }\n\n int var10 = this.field_736[var5];\n int var11 = this.field_737[var5];\n int var12 = 0;\n int var13 = 0;\n int var14 = var8 << 16;\n int var15 = (var10 << 16) / var3;\n int var16 = (var11 << 16) / var4;\n int var17 = -(var8 << 16) / var4;\n int var18;\n int var19;\n if(this.field_742[var5]) {\n var18 = this.spriteWidthFull[var5];\n var19 = this.field_741[var5];\n var15 = (var18 << 16) / var3;\n var16 = (var19 << 16) / var4;\n int var20 = this.field_738[var5];\n int var21 = this.field_739[var5];\n if(var9) {\n var20 = var18 - this.field_736[var5] - var20;\n }\n\n var1 += (var20 * var3 + var18 - 1) / var18;\n int var22 = (var21 * var4 + var19 - 1) / var19;\n var2 += var22;\n var14 += var22 * var17;\n if(var20 * var3 % var18 != 0) {\n var12 = (var18 - var20 * var3 % var18 << 16) / var3;\n }\n\n if(var21 * var4 % var19 != 0) {\n var13 = (var19 - var21 * var4 % var19 << 16) / var4;\n }\n\n var3 = ((this.field_736[var5] << 16) - var12 + var15 - 1) / var15;\n var4 = ((this.field_737[var5] << 16) - var13 + var16 - 1) / var16;\n }\n\n var18 = var2 * this.field_723;\n var14 += var1 << 16;\n if(var2 < this.field_743) {\n var19 = this.field_743 - var2;\n var4 -= var19;\n var2 = this.field_743;\n var18 += var19 * this.field_723;\n var13 += var16 * var19;\n var14 += var17 * var19;\n }\n\n if(var2 + var4 >= this.field_744) {\n var4 -= var2 + var4 - this.field_744 + 1;\n }\n\n var19 = var18 / this.field_723 & 1;\n if(!this.interlace) {\n var19 = 2;\n }\n\n if(var7 == 16777215) {\n if(this.spritePixels[var5] != null) {\n if(!var9) {\n this.method_259(this.pixels, this.spritePixels[var5], 0, var12, var13, var18, var3, var4, var15, var16, var10, var6, var14, var17, var19);\n } else {\n this.method_259(this.pixels, this.spritePixels[var5], 0, (this.field_736[var5] << 16) - var12 - 1, var13, var18, var3, var4, -var15, var16, var10, var6, var14, var17, var19);\n }\n } else if(!var9) {\n this.method_261(this.pixels, this.spriteColoursUsed[var5], this.spriteColourList[var5], 0, var12, var13, var18, var3, var4, var15, var16, var10, var6, var14, var17, var19);\n } else {\n this.method_261(this.pixels, this.spriteColoursUsed[var5], this.spriteColourList[var5], 0, (this.field_736[var5] << 16) - var12 - 1, var13, var18, var3, var4, -var15, var16, var10, var6, var14, var17, var19);\n }\n } else if(this.spritePixels[var5] != null) {\n if(!var9) {\n this.method_260(this.pixels, this.spritePixels[var5], 0, var12, var13, var18, var3, var4, var15, var16, var10, var6, var7, var14, var17, var19);\n } else {\n this.method_260(this.pixels, this.spritePixels[var5], 0, (this.field_736[var5] << 16) - var12 - 1, var13, var18, var3, var4, -var15, var16, var10, var6, var7, var14, var17, var19);\n }\n } else if(!var9) {\n this.method_262(this.pixels, this.spriteColoursUsed[var5], this.spriteColourList[var5], 0, var12, var13, var18, var3, var4, var15, var16, var10, var6, var7, var14, var17, var19);\n } else {\n this.method_262(this.pixels, this.spriteColoursUsed[var5], this.spriteColourList[var5], 0, (this.field_736[var5] << 16) - var12 - 1, var13, var18, var3, var4, -var15, var16, var10, var6, var7, var14, var17, var19);\n }\n } catch (Exception var23) {\n System.out.println(\"error in sprite clipping routine\"); // authentic System.out.println\n }\n }",
"private int m14719r() {\n int s = m14720s();\n if (s > 0) {\n try {\n if (this.f10949d == null) {\n this.f10949d = this.f10962q.mo12209b(255);\n }\n int i = this.f10951f - this.f10952g;\n if (i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, s);\n this.f10952g += s;\n } else if (this.f10948c.remaining() + i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, i);\n this.f10952g = this.f10951f;\n m14721t();\n int i2 = s - i;\n System.arraycopy(this.f10950e, 0, this.f10949d, i, i2);\n this.f10952g += i2;\n } else {\n this.f10965t = 1;\n }\n } catch (Exception e) {\n C3111h1.m14932d(f10944y, \"Error Reading Block\", e);\n this.f10965t = 1;\n }\n }\n return s;\n }",
"public void setDimensionRatio(java.lang.String r9) {\n /*\n r8 = this;\n r0 = 0;\n if (r9 == 0) goto L_0x008e;\n L_0x0003:\n r1 = r9.length();\n if (r1 != 0) goto L_0x000b;\n L_0x0009:\n goto L_0x008e;\n L_0x000b:\n r1 = -1;\n r2 = r9.length();\n r3 = 44;\n r3 = r9.indexOf(r3);\n r4 = 0;\n r5 = 1;\n if (r3 <= 0) goto L_0x0037;\n L_0x001a:\n r6 = r2 + -1;\n if (r3 >= r6) goto L_0x0037;\n L_0x001e:\n r6 = r9.substring(r4, r3);\n r7 = \"W\";\n r7 = r6.equalsIgnoreCase(r7);\n if (r7 == 0) goto L_0x002c;\n L_0x002a:\n r1 = 0;\n goto L_0x0035;\n L_0x002c:\n r4 = \"H\";\n r4 = r6.equalsIgnoreCase(r4);\n if (r4 == 0) goto L_0x0035;\n L_0x0034:\n r1 = 1;\n L_0x0035:\n r4 = r3 + 1;\n L_0x0037:\n r3 = 58;\n r3 = r9.indexOf(r3);\n if (r3 < 0) goto L_0x0075;\n L_0x003f:\n r2 = r2 - r5;\n if (r3 >= r2) goto L_0x0075;\n L_0x0042:\n r2 = r9.substring(r4, r3);\n r3 = r3 + r5;\n r9 = r9.substring(r3);\n r3 = r2.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0051:\n r3 = r9.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0057:\n r2 = java.lang.Float.parseFloat(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n r3 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0063:\n r3 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0067:\n if (r1 != r5) goto L_0x006f;\n L_0x0069:\n r9 = r9 / r2;\n r9 = java.lang.Math.abs(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x006f:\n r2 = r2 / r9;\n r9 = java.lang.Math.abs(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0075:\n r9 = r9.substring(r4);\n r2 = r9.length();\n if (r2 <= 0) goto L_0x0084;\n L_0x007f:\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0084:\n r9 = 0;\n L_0x0085:\n r0 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r0 <= 0) goto L_0x008d;\n L_0x0089:\n r8.mDimensionRatio = r9;\n r8.mDimensionRatioSide = r1;\n L_0x008d:\n return;\n L_0x008e:\n r8.mDimensionRatio = r0;\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.constraint.solver.widgets.ConstraintWidget.setDimensionRatio(java.lang.String):void\");\n }",
"public abstract int mo9753r();",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"private int parent(int i){return (i-1)/2;}",
"protected static void endPartial(long[] h) {\n h[11] += h[1]; \n h[2] ^= h[11]; \n h[1] = (h[1] << 44) | (h[1] >>> 20);\n h[0] += h[2]; \n h[3] ^= h[0]; \n h[2] = (h[2] << 15) | (h[2] >>> 49);\n h[1] += h[3]; \n h[4] ^= h[1]; \n h[3] = (h[3] << 34) | (h[3] >>> 30);\n h[2] += h[4]; \n h[5] ^= h[2]; \n h[4] = (h[4] << 21) | (h[4] >>> 43);\n h[3] += h[5]; \n h[6] ^= h[3]; \n h[5] = (h[5] << 38) | (h[5] >>> 26);\n h[4] += h[6]; \n h[7] ^= h[4]; \n h[6] = (h[6] << 33) | (h[6] >>> 31);\n h[5] += h[7]; \n h[8] ^= h[5]; \n h[7] = (h[7] << 10) | (h[7] >>> 54);\n h[6] += h[8]; \n h[9] ^= h[6]; \n h[8] = (h[8] << 13) | (h[8] >>> 51);\n h[7] += h[9]; \n h[10] ^= h[7]; \n h[9] = (h[9] << 38) | (h[9] >>> 26);\n h[8] += h[10]; \n h[11] ^= h[8]; \n h[10] = (h[10] << 53) | (h[10] >>> 11);\n h[9] += h[11]; \n h[0] ^= h[9]; \n h[11] = (h[11] << 42) | (h[11] >>> 22);\n h[10] += h[0]; \n h[1] ^= h[10]; \n h[0] = (h[0] << 54) | (h[0] >>> 10);\t\t\n\t}",
"public byte[] initialValue() {\n return new byte[]{(byte) -1, (byte) -40, (byte) -1, (byte) -37, (byte) 0, (byte) 67, (byte) 0, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -64, (byte) 0, (byte) 17, (byte) 8, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 3, (byte) 1, (byte) 34, (byte) 0, (byte) 2, (byte) 17, (byte) 0, (byte) 3, (byte) 17, (byte) 0, (byte) -1, (byte) -60, (byte) 0, (byte) 31, (byte) 0, (byte) 0, (byte) 1, (byte) 5, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 1, (byte) 2, (byte) 3, (byte) 4, (byte) 5, (byte) 6, (byte) 7, (byte) 8, (byte) 9, (byte) 10, (byte) 11, (byte) -1, (byte) -60, (byte) 0, (byte) -75, (byte) 16, (byte) 0, (byte) 2, (byte) 1, (byte) 3, (byte) 3, (byte) 2, (byte) 4, (byte) 3, (byte) 5, (byte) 5, (byte) 4, (byte) 4, (byte) 0, (byte) 0, (byte) 1, (byte) 125, (byte) 1, (byte) 2, (byte) 3, (byte) 0, (byte) 4, (byte) 17, (byte) 5, (byte) 18, (byte) 33, (byte) 49, (byte) 65, (byte) 6, (byte) 19, (byte) 81, (byte) 97, (byte) 7, (byte) 34, (byte) 113, (byte) 20, (byte) 50, (byte) -127, (byte) -111, (byte) -95, (byte) 8, (byte) 35, (byte) 66, (byte) -79, (byte) -63, (byte) 21, (byte) 82, (byte) -47, (byte) -16, (byte) 36, (byte) 51, (byte) 98, (byte) 114, (byte) -126, (byte) 9, (byte) 10, (byte) 22, (byte) 23, (byte) 24, (byte) 25, (byte) 26, (byte) 37, (byte) 38, (byte) 39, (byte) 40, (byte) 41, (byte) 42, (byte) 52, (byte) 53, (byte) 54, (byte) 55, (byte) 56, (byte) 57, (byte) 58, (byte) 67, (byte) 68, (byte) 69, (byte) 70, (byte) 71, (byte) 72, (byte) 73, (byte) 74, (byte) 83, (byte) 84, (byte) 85, (byte) 86, (byte) 87, (byte) 88, (byte) 89, (byte) 90, (byte) 99, (byte) 100, (byte) 101, (byte) 102, (byte) 103, (byte) 104, (byte) 105, (byte) 106, (byte) 115, (byte) 116, (byte) 117, (byte) 118, (byte) 119, (byte) 120, (byte) 121, (byte) 122, (byte) -125, (byte) -124, (byte) -123, (byte) -122, (byte) -121, (byte) -120, (byte) -119, (byte) -118, (byte) -110, (byte) -109, (byte) -108, (byte) -107, (byte) -106, (byte) -105, (byte) -104, (byte) -103, (byte) -102, (byte) -94, (byte) -93, (byte) -92, (byte) -91, (byte) -90, (byte) -89, (byte) -88, (byte) -87, (byte) -86, (byte) -78, (byte) -77, (byte) -76, (byte) -75, (byte) -74, (byte) -73, (byte) -72, (byte) -71, (byte) -70, (byte) -62, (byte) -61, (byte) -60, (byte) -59, (byte) -58, (byte) -57, (byte) -56, (byte) -55, (byte) -54, (byte) -46, (byte) -45, (byte) -44, (byte) -43, (byte) -42, (byte) -41, (byte) -40, (byte) -39, (byte) -38, (byte) -31, (byte) -30, (byte) -29, (byte) -28, (byte) -27, (byte) -26, (byte) -25, (byte) -24, (byte) -23, (byte) -22, (byte) -15, (byte) -14, (byte) -13, (byte) -12, (byte) -11, (byte) -10, (byte) -9, (byte) -8, (byte) -7, (byte) -6, (byte) -1, (byte) -60, (byte) 0, (byte) 31, (byte) 1, (byte) 0, (byte) 3, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 1, (byte) 2, (byte) 3, (byte) 4, (byte) 5, (byte) 6, (byte) 7, (byte) 8, (byte) 9, (byte) 10, (byte) 11, (byte) -1, (byte) -60, (byte) 0, (byte) -75, (byte) 17, (byte) 0, (byte) 2, (byte) 1, (byte) 2, (byte) 4, (byte) 4, (byte) 3, (byte) 4, (byte) 7, (byte) 5, (byte) 4, (byte) 4, (byte) 0, (byte) 1, (byte) 2, (byte) 119, (byte) 0, (byte) 1, (byte) 2, (byte) 3, (byte) 17, (byte) 4, (byte) 5, (byte) 33, (byte) 49, (byte) 6, (byte) 18, (byte) 65, (byte) 81, (byte) 7, (byte) 97, (byte) 113, (byte) 19, (byte) 34, (byte) 50, (byte) -127, (byte) 8, (byte) 20, (byte) 66, (byte) -111, (byte) -95, (byte) -79, (byte) -63, (byte) 9, (byte) 35, (byte) 51, (byte) 82, (byte) -16, (byte) 21, (byte) 98, (byte) 114, (byte) -47, (byte) 10, (byte) 22, (byte) 36, (byte) 52, (byte) -31, (byte) 37, (byte) -15, (byte) 23, (byte) 24, (byte) 25, (byte) 26, (byte) 38, (byte) 39, (byte) 40, (byte) 41, (byte) 42, (byte) 53, (byte) 54, (byte) 55, (byte) 56, (byte) 57, (byte) 58, (byte) 67, (byte) 68, (byte) 69, (byte) 70, (byte) 71, (byte) 72, (byte) 73, (byte) 74, (byte) 83, (byte) 84, (byte) 85, (byte) 86, (byte) 87, (byte) 88, (byte) 89, (byte) 90, (byte) 99, (byte) 100, (byte) 101, (byte) 102, (byte) 103, (byte) 104, (byte) 105, (byte) 106, (byte) 115, (byte) 116, (byte) 117, (byte) 118, (byte) 119, (byte) 120, (byte) 121, (byte) 122, (byte) -126, (byte) -125, (byte) -124, (byte) -123, (byte) -122, (byte) -121, (byte) -120, (byte) -119, (byte) -118, (byte) -110, (byte) -109, (byte) -108, (byte) -107, (byte) -106, (byte) -105, (byte) -104, (byte) -103, (byte) -102, (byte) -94, (byte) -93, (byte) -92, (byte) -91, (byte) -90, (byte) -89, (byte) -88, (byte) -87, (byte) -86, (byte) -78, (byte) -77, (byte) -76, (byte) -75, (byte) -74, (byte) -73, (byte) -72, (byte) -71, (byte) -70, (byte) -62, (byte) -61, (byte) -60, (byte) -59, (byte) -58, (byte) -57, (byte) -56, (byte) -55, (byte) -54, (byte) -46, (byte) -45, (byte) -44, (byte) -43, (byte) -42, (byte) -41, (byte) -40, (byte) -39, (byte) -38, (byte) -30, (byte) -29, (byte) -28, (byte) -27, (byte) -26, (byte) -25, (byte) -24, (byte) -23, (byte) -22, (byte) -14, (byte) -13, (byte) -12, (byte) -11, (byte) -10, (byte) -9, (byte) -8, (byte) -7, (byte) -6, (byte) -1, (byte) -38, (byte) 0, (byte) 12, (byte) 3, (byte) 1, (byte) 0, (byte) 2, (byte) 17, (byte) 3, (byte) 17, (byte) 0, (byte) 63, (byte) 0, (byte) -114, (byte) -118, (byte) 40, (byte) -96, (byte) 15, (byte) -1, (byte) -39};\n }",
"private int m672E() {\n int i = 0;\n if (this.f552g.mo501h() >= 5) {\n byte[] f = this.f552g.mo499f();\n int g = this.f552g.mo500g();\n int i2 = 0;\n int i3 = 0;\n while (true) {\n byte b = f[g + i];\n i2 |= (b & Byte.MAX_VALUE) << i3;\n if ((b & 128) != 128) {\n this.f552g.mo495a(i + 1);\n return i2;\n }\n i3 += 7;\n i++;\n }\n } else {\n int i4 = 0;\n while (true) {\n byte u = mo470u();\n i |= (u & Byte.MAX_VALUE) << i4;\n if ((u & 128) != 128) {\n return i;\n }\n i4 += 7;\n }\n }\n }",
"public void getTile_B8();",
"private void m50366E() {\n }",
"private int[] m7231g() {\n this.f5577B[0] = this.f5594p;\n this.f5577B[1] = this.f5600v - this.f5594p;\n return this.f5577B;\n }",
"private int m5278d(int pos, int cmd) {\n int end;\n int start;\n for (int i = this.f3533c.size() - 1; i >= 0; i--) {\n C1070b postponed = (C1070b) this.f3533c.get(i);\n int i2 = postponed.f3539a;\n if (i2 == 8) {\n if (postponed.f3540b < postponed.f3542d) {\n start = postponed.f3540b;\n end = postponed.f3542d;\n } else {\n start = postponed.f3542d;\n end = postponed.f3540b;\n }\n if (pos < start || pos > end) {\n int i3 = postponed.f3540b;\n if (pos < i3) {\n if (cmd == 1) {\n postponed.f3540b = i3 + 1;\n postponed.f3542d++;\n } else if (cmd == 2) {\n postponed.f3540b = i3 - 1;\n postponed.f3542d--;\n }\n }\n } else {\n int i4 = postponed.f3540b;\n if (start == i4) {\n if (cmd == 1) {\n postponed.f3542d++;\n } else if (cmd == 2) {\n postponed.f3542d--;\n }\n pos++;\n } else {\n if (cmd == 1) {\n postponed.f3540b = i4 + 1;\n } else if (cmd == 2) {\n postponed.f3540b = i4 - 1;\n }\n pos--;\n }\n }\n } else {\n int i5 = postponed.f3540b;\n if (i5 <= pos) {\n if (i2 == 1) {\n pos -= postponed.f3542d;\n } else if (i2 == 2) {\n pos += postponed.f3542d;\n }\n } else if (cmd == 1) {\n postponed.f3540b = i5 + 1;\n } else if (cmd == 2) {\n postponed.f3540b = i5 - 1;\n }\n }\n }\n for (int i6 = this.f3533c.size() - 1; i6 >= 0; i6--) {\n C1070b op = (C1070b) this.f3533c.get(i6);\n if (op.f3539a == 8) {\n int i7 = op.f3542d;\n if (i7 == op.f3540b || i7 < 0) {\n this.f3533c.remove(i6);\n mo8470a(op);\n }\n } else if (op.f3542d <= 0) {\n this.f3533c.remove(i6);\n mo8470a(op);\n }\n }\n return pos;\n }",
"byte[] mo38566a();",
"static int size_of_lxi(String passed){\n\t\treturn 3;\n\t}",
"private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"public abstract long mo24410c();",
"private static int getTreeSize(int totalSize) {\n if (totalSize <= 32) {\n return 0;\n } else {\n // TODO: Clojure does ((realSize - 1) >>> 5) << 5); is that faster?\n return ((totalSize - 1) & (~0x1F));\n }\n }",
"private void m50367F() {\n }",
"static int size_of_xri(String passed){\n\t\treturn 2;\n\t}",
"protected void method_4160() {\r\n String[] var10000 = class_752.method_4253();\r\n ++this.field_3416;\r\n String[] var1 = var10000;\r\n int var7 = this.field_3416;\r\n if(var1 != null) {\r\n label96: {\r\n if(this.field_3416 >= 180) {\r\n var7 = this.field_3416;\r\n if(var1 == null) {\r\n break label96;\r\n }\r\n\r\n if(this.field_3416 <= 200) {\r\n float var2 = (this.field_3028.nextFloat() - 0.5F) * 8.0F;\r\n float var3 = (this.field_3028.nextFloat() - 0.5F) * 4.0F;\r\n float var4 = (this.field_3028.nextFloat() - 0.5F) * 8.0F;\r\n String[] var10001 = field_3418;\r\n this.field_2990.method_2087(\"hugeexplosion\", this.field_2994 + (double)var2, this.field_2995 + 2.0D + (double)var3, this.field_2996 + (double)var4, 0.0D, 0.0D, 0.0D);\r\n }\r\n }\r\n\r\n var7 = this.field_2990.field_1832;\r\n }\r\n }\r\n\r\n int var5;\r\n int var6;\r\n class_715 var9;\r\n ahb var10;\r\n label101: {\r\n short var8;\r\n label102: {\r\n if(var1 != null) {\r\n label85: {\r\n if(var7 == 0) {\r\n var7 = this.field_3416;\r\n var8 = 150;\r\n if(var1 != null) {\r\n label80: {\r\n if(this.field_3416 > 150) {\r\n var7 = this.field_3416 % 5;\r\n if(var1 == null) {\r\n break label80;\r\n }\r\n\r\n if(var7 == 0) {\r\n var5 = 1000;\r\n\r\n while(var5 > 0) {\r\n var6 = class_715.method_4090(var5);\r\n var5 -= var6;\r\n var10 = this.field_2990;\r\n var9 = new class_715;\r\n var9.method_4087(this.field_2990, this.field_2994, this.field_2995, this.field_2996, var6);\r\n var10.method_2089(var9);\r\n if(var1 == null) {\r\n break label85;\r\n }\r\n\r\n if(var1 == null) {\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n var7 = this.field_3416;\r\n }\r\n\r\n var8 = 1;\r\n }\r\n\r\n if(var1 == null) {\r\n break label102;\r\n }\r\n\r\n if(var7 == var8) {\r\n this.field_2990.method_2209(1018, (int)this.field_2994, (int)this.field_2995, (int)this.field_2996, 0);\r\n }\r\n }\r\n\r\n this.method_3864(0.0D, 0.10000000149011612D, 0.0D);\r\n this.field_3330 = this.field_3000 += 20.0F;\r\n }\r\n\r\n var7 = this.field_3416;\r\n }\r\n\r\n if(var1 == null) {\r\n break label101;\r\n }\r\n\r\n var8 = 200;\r\n }\r\n\r\n if(var7 != var8) {\r\n return;\r\n }\r\n\r\n var7 = this.field_2990.field_1832;\r\n }\r\n\r\n if(var1 != null) {\r\n if(var7 != 0) {\r\n return;\r\n }\r\n\r\n var7 = 2000;\r\n }\r\n\r\n var5 = var7;\r\n\r\n while(true) {\r\n if(var5 > 0) {\r\n var6 = class_715.method_4090(var5);\r\n var5 -= var6;\r\n var10 = this.field_2990;\r\n var9 = new class_715;\r\n var9.method_4087(this.field_2990, this.field_2994, this.field_2995, this.field_2996, var6);\r\n var10.method_2089(var9);\r\n if(var1 == null) {\r\n break;\r\n }\r\n\r\n if(var1 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n this.method_4325(class_1715.method_9561(this.field_2994), class_1715.method_9561(this.field_2996));\r\n break;\r\n }\r\n\r\n this.method_3851();\r\n }",
"@Override\n\tpublic int computeSize() {\n\t\treturn 36;\n\t}",
"@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}",
"private int mo115245l() {\n int i = 0;\n while (i < this.f119298r) {\n int i2 = 0;\n while (i2 < this.f119297q.length && this.f119297q[i2] != i) {\n i2++;\n }\n if (i2 == this.f119297q.length) {\n return i;\n }\n i++;\n }\n return i;\n }",
"int getTribeSize();",
"public void mo18644a(byte[] r8, int r9, int r10, com.startapp.p154a.p155a.p158c.C5047b.C5048a r11) {\n /*\n r7 = this;\n boolean r0 = r11.f16357f\n if (r0 == 0) goto L_0x0005\n return\n L_0x0005:\n r0 = 0\n r1 = 1\n if (r10 >= 0) goto L_0x00df\n r11.f16357f = r1\n int r8 = r11.f16359h\n if (r8 != 0) goto L_0x0014\n int r8 = r7.f16349c\n if (r8 != 0) goto L_0x0014\n return\n L_0x0014:\n int r8 = r7.f16346k\n byte[] r8 = r7.mo18648a(r8, r11)\n int r9 = r11.f16355d\n int r10 = r11.f16359h\n r1 = 61\n switch(r10) {\n case 0: goto L_0x00bb;\n case 1: goto L_0x0081;\n case 2: goto L_0x003c;\n default: goto L_0x0023;\n }\n L_0x0023:\n java.lang.IllegalStateException r8 = new java.lang.IllegalStateException\n java.lang.StringBuilder r9 = new java.lang.StringBuilder\n r9.<init>()\n java.lang.String r10 = \"Impossible modulus \"\n r9.append(r10)\n int r10 = r11.f16359h\n r9.append(r10)\n java.lang.String r9 = r9.toString()\n r8.<init>(r9)\n throw r8\n L_0x003c:\n int r10 = r11.f16355d\n int r2 = r10 + 1\n r11.f16355d = r2\n byte[] r2 = r7.f16342g\n int r3 = r11.f16352a\n int r3 = r3 >> 10\n r3 = r3 & 63\n byte r2 = r2[r3]\n r8[r10] = r2\n int r10 = r11.f16355d\n int r2 = r10 + 1\n r11.f16355d = r2\n byte[] r2 = r7.f16342g\n int r3 = r11.f16352a\n int r3 = r3 >> 4\n r3 = r3 & 63\n byte r2 = r2[r3]\n r8[r10] = r2\n int r10 = r11.f16355d\n int r2 = r10 + 1\n r11.f16355d = r2\n byte[] r2 = r7.f16342g\n int r3 = r11.f16352a\n int r3 = r3 << 2\n r3 = r3 & 63\n byte r2 = r2[r3]\n r8[r10] = r2\n byte[] r10 = r7.f16342g\n byte[] r2 = f16339d\n if (r10 != r2) goto L_0x00bb\n int r10 = r11.f16355d\n int r2 = r10 + 1\n r11.f16355d = r2\n r8[r10] = r1\n goto L_0x00bb\n L_0x0081:\n int r10 = r11.f16355d\n int r2 = r10 + 1\n r11.f16355d = r2\n byte[] r2 = r7.f16342g\n int r3 = r11.f16352a\n int r3 = r3 >> 2\n r3 = r3 & 63\n byte r2 = r2[r3]\n r8[r10] = r2\n int r10 = r11.f16355d\n int r2 = r10 + 1\n r11.f16355d = r2\n byte[] r2 = r7.f16342g\n int r3 = r11.f16352a\n int r3 = r3 << 4\n r3 = r3 & 63\n byte r2 = r2[r3]\n r8[r10] = r2\n byte[] r10 = r7.f16342g\n byte[] r2 = f16339d\n if (r10 != r2) goto L_0x00bb\n int r10 = r11.f16355d\n int r2 = r10 + 1\n r11.f16355d = r2\n r8[r10] = r1\n int r10 = r11.f16355d\n int r2 = r10 + 1\n r11.f16355d = r2\n r8[r10] = r1\n L_0x00bb:\n int r10 = r11.f16358g\n int r1 = r11.f16355d\n int r1 = r1 - r9\n int r10 = r10 + r1\n r11.f16358g = r10\n int r9 = r7.f16349c\n if (r9 <= 0) goto L_0x0172\n int r9 = r11.f16358g\n if (r9 <= 0) goto L_0x0172\n byte[] r9 = r7.f16344i\n int r10 = r11.f16355d\n byte[] r1 = r7.f16344i\n int r1 = r1.length\n java.lang.System.arraycopy(r9, r0, r8, r10, r1)\n int r8 = r11.f16355d\n byte[] r9 = r7.f16344i\n int r9 = r9.length\n int r8 = r8 + r9\n r11.f16355d = r8\n goto L_0x0172\n L_0x00df:\n r2 = r9\n r9 = r0\n L_0x00e1:\n if (r9 >= r10) goto L_0x0172\n int r3 = r7.f16346k\n byte[] r3 = r7.mo18648a(r3, r11)\n int r4 = r11.f16359h\n int r4 = r4 + r1\n int r4 = r4 % 3\n r11.f16359h = r4\n int r4 = r2 + 1\n byte r2 = r8[r2]\n if (r2 >= 0) goto L_0x00f8\n int r2 = r2 + 256\n L_0x00f8:\n int r5 = r11.f16352a\n int r5 = r5 << 8\n int r5 = r5 + r2\n r11.f16352a = r5\n int r2 = r11.f16359h\n if (r2 != 0) goto L_0x016d\n int r2 = r11.f16355d\n int r5 = r2 + 1\n r11.f16355d = r5\n byte[] r5 = r7.f16342g\n int r6 = r11.f16352a\n int r6 = r6 >> 18\n r6 = r6 & 63\n byte r5 = r5[r6]\n r3[r2] = r5\n int r2 = r11.f16355d\n int r5 = r2 + 1\n r11.f16355d = r5\n byte[] r5 = r7.f16342g\n int r6 = r11.f16352a\n int r6 = r6 >> 12\n r6 = r6 & 63\n byte r5 = r5[r6]\n r3[r2] = r5\n int r2 = r11.f16355d\n int r5 = r2 + 1\n r11.f16355d = r5\n byte[] r5 = r7.f16342g\n int r6 = r11.f16352a\n int r6 = r6 >> 6\n r6 = r6 & 63\n byte r5 = r5[r6]\n r3[r2] = r5\n int r2 = r11.f16355d\n int r5 = r2 + 1\n r11.f16355d = r5\n byte[] r5 = r7.f16342g\n int r6 = r11.f16352a\n r6 = r6 & 63\n byte r5 = r5[r6]\n r3[r2] = r5\n int r2 = r11.f16358g\n int r2 = r2 + 4\n r11.f16358g = r2\n int r2 = r7.f16349c\n if (r2 <= 0) goto L_0x016d\n int r2 = r7.f16349c\n int r5 = r11.f16358g\n if (r2 > r5) goto L_0x016d\n byte[] r2 = r7.f16344i\n int r5 = r11.f16355d\n byte[] r6 = r7.f16344i\n int r6 = r6.length\n java.lang.System.arraycopy(r2, r0, r3, r5, r6)\n int r2 = r11.f16355d\n byte[] r3 = r7.f16344i\n int r3 = r3.length\n int r2 = r2 + r3\n r11.f16355d = r2\n r11.f16358g = r0\n L_0x016d:\n int r9 = r9 + 1\n r2 = r4\n goto L_0x00e1\n L_0x0172:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.startapp.p154a.p155a.p158c.C5046a.mo18644a(byte[], int, int, com.startapp.a.a.c.b$a):void\");\n }",
"public double getPerimiter(){return (2*height +2*width);}",
"static int size_of_shld(String passed){\n\t\treturn 3;\n\t}",
"public abstract long mo24409b();",
"private static int getSize(double loadFactor){\n return (primeSize((int) (3739/loadFactor))); // 3739 is the number of entries from the lexicon list\n }",
"static int size_of_xra(String passed){\n\t\treturn 1;\n\t}",
"public void method_246(int var1, int var2, int var3, int var4, int var5, int var6) {\n try {\n int var7 = this.field_736[var5];\n int var8 = this.field_737[var5];\n int var9 = 0;\n int var10 = 0;\n int var11 = (var7 << 16) / var3;\n int var12 = (var8 << 16) / var4;\n int var13;\n int var14;\n if(this.field_742[var5]) {\n var13 = this.spriteWidthFull[var5];\n var14 = this.field_741[var5];\n var11 = (var13 << 16) / var3;\n var12 = (var14 << 16) / var4;\n var1 += (this.field_738[var5] * var3 + var13 - 1) / var13;\n var2 += (this.field_739[var5] * var4 + var14 - 1) / var14;\n if(this.field_738[var5] * var3 % var13 != 0) {\n var9 = (var13 - this.field_738[var5] * var3 % var13 << 16) / var3;\n }\n\n if(this.field_739[var5] * var4 % var14 != 0) {\n var10 = (var14 - this.field_739[var5] * var4 % var14 << 16) / var4;\n }\n\n var3 = var3 * (this.field_736[var5] - (var9 >> 16)) / var13;\n var4 = var4 * (this.field_737[var5] - (var10 >> 16)) / var14;\n }\n\n var13 = var1 + var2 * this.field_723;\n var14 = this.field_723 - var3;\n int var15;\n if(var2 < this.field_743) {\n var15 = this.field_743 - var2;\n var4 -= var15;\n var2 = 0;\n var13 += var15 * this.field_723;\n var10 += var12 * var15;\n }\n\n if(var2 + var4 >= this.field_744) {\n var4 -= var2 + var4 - this.field_744 + 1;\n }\n\n if(var1 < this.field_745) {\n var15 = this.field_745 - var1;\n var3 -= var15;\n var1 = 0;\n var13 += var15;\n var9 += var11 * var15;\n var14 += var15;\n }\n\n if(var1 + var3 >= this.field_746) {\n var15 = var1 + var3 - this.field_746 + 1;\n var3 -= var15;\n var14 += var15;\n }\n\n byte var17 = 1;\n if(this.interlace) {\n var17 = 2;\n var14 += this.field_723;\n var12 += var12;\n if((var2 & 1) != 0) {\n var13 += this.field_723;\n --var4;\n }\n }\n\n this.method_253(this.pixels, this.spritePixels[var5], 0, var9, var10, var13, var14, var3, var4, var11, var12, var7, var17, var6);\n } catch (Exception var16) {\n System.out.println(\"error in sprite clipping routine\"); // authentic System.out.println\n }\n }",
"public abstract int getSpotsNeeded();",
"public void method_245(int var1, int var2, int var3, int var4, int var5, int var6) {\n try {\n int var7 = this.field_736[var5];\n int var8 = this.field_737[var5];\n int var9 = 0;\n int var10 = 0;\n int var11 = (var7 << 16) / var3;\n int var12 = (var8 << 16) / var4;\n int var13;\n int var14;\n if(this.field_742[var5]) {\n var13 = this.spriteWidthFull[var5];\n var14 = this.field_741[var5];\n var11 = (var13 << 16) / var3;\n var12 = (var14 << 16) / var4;\n var1 += (this.field_738[var5] * var3 + var13 - 1) / var13;\n var2 += (this.field_739[var5] * var4 + var14 - 1) / var14;\n if(this.field_738[var5] * var3 % var13 != 0) {\n var9 = (var13 - this.field_738[var5] * var3 % var13 << 16) / var3;\n }\n\n if(this.field_739[var5] * var4 % var14 != 0) {\n var10 = (var14 - this.field_739[var5] * var4 % var14 << 16) / var4;\n }\n\n var3 = var3 * (this.field_736[var5] - (var9 >> 16)) / var13;\n var4 = var4 * (this.field_737[var5] - (var10 >> 16)) / var14;\n }\n\n var13 = var1 + var2 * this.field_723;\n var14 = this.field_723 - var3;\n int var15;\n if(var2 < this.field_743) {\n var15 = this.field_743 - var2;\n var4 -= var15;\n var2 = 0;\n var13 += var15 * this.field_723;\n var10 += var12 * var15;\n }\n\n if(var2 + var4 >= this.field_744) {\n var4 -= var2 + var4 - this.field_744 + 1;\n }\n\n if(var1 < this.field_745) {\n var15 = this.field_745 - var1;\n var3 -= var15;\n var1 = 0;\n var13 += var15;\n var9 += var11 * var15;\n var14 += var15;\n }\n\n if(var1 + var3 >= this.field_746) {\n var15 = var1 + var3 - this.field_746 + 1;\n var3 -= var15;\n var14 += var15;\n }\n\n byte var17 = 1;\n if(this.interlace) {\n var17 = 2;\n var14 += this.field_723;\n var12 += var12;\n if((var2 & 1) != 0) {\n var13 += this.field_723;\n --var4;\n }\n }\n\n this.method_252(this.pixels, this.spritePixels[var5], 0, var9, var10, var13, var14, var3, var4, var11, var12, var7, var17, var6);\n } catch (Exception var16) {\n System.out.println(\"error in sprite clipping routine\"); // authentic System.out.println\n }\n }",
"BigInteger getWidth();",
"public int getBlockSize()\n/* */ {\n/* 43 */ return this.blockSize;\n/* */ }",
"private int m3423z(int i, int i2) {\n int i3;\n int i4;\n for (int size = this.f4373c.size() - 1; size >= 0; size--) {\n C0933b bVar = this.f4373c.get(size);\n int i5 = bVar.f4379a;\n if (i5 == 8) {\n int i6 = bVar.f4380b;\n int i7 = bVar.f4382d;\n if (i6 < i7) {\n i4 = i6;\n i3 = i7;\n } else {\n i3 = i6;\n i4 = i7;\n }\n if (i < i4 || i > i3) {\n if (i < i6) {\n if (i2 == 1) {\n bVar.f4380b = i6 + 1;\n bVar.f4382d = i7 + 1;\n } else if (i2 == 2) {\n bVar.f4380b = i6 - 1;\n bVar.f4382d = i7 - 1;\n }\n }\n } else if (i4 == i6) {\n if (i2 == 1) {\n bVar.f4382d = i7 + 1;\n } else if (i2 == 2) {\n bVar.f4382d = i7 - 1;\n }\n i++;\n } else {\n if (i2 == 1) {\n bVar.f4380b = i6 + 1;\n } else if (i2 == 2) {\n bVar.f4380b = i6 - 1;\n }\n i--;\n }\n } else {\n int i8 = bVar.f4380b;\n if (i8 <= i) {\n if (i5 == 1) {\n i -= bVar.f4382d;\n } else if (i5 == 2) {\n i += bVar.f4382d;\n }\n } else if (i2 == 1) {\n bVar.f4380b = i8 + 1;\n } else if (i2 == 2) {\n bVar.f4380b = i8 - 1;\n }\n }\n }\n for (int size2 = this.f4373c.size() - 1; size2 >= 0; size2--) {\n C0933b bVar2 = this.f4373c.get(size2);\n if (bVar2.f4379a == 8) {\n int i9 = bVar2.f4382d;\n if (i9 == bVar2.f4380b || i9 < 0) {\n this.f4373c.remove(size2);\n mo7620a(bVar2);\n }\n } else if (bVar2.f4382d <= 0) {\n this.f4373c.remove(size2);\n mo7620a(bVar2);\n }\n }\n return i;\n }",
"private static java.lang.String m586k() {\r\n /*\r\n r6 = 1;\r\n r0 = 0;\r\n r1 = \"/proc/cpuinfo\";\r\n r2 = new java.io.FileReader;\t Catch:{ IOException -> 0x0040, all -> 0x0050 }\r\n r2.<init>(r1);\t Catch:{ IOException -> 0x0040, all -> 0x0050 }\r\n r1 = new java.io.BufferedReader;\t Catch:{ IOException -> 0x0071, all -> 0x006a }\r\n r3 = 8192; // 0x2000 float:1.14794E-41 double:4.0474E-320;\r\n r1.<init>(r2, r3);\t Catch:{ IOException -> 0x0071, all -> 0x006a }\r\n L_0x0010:\r\n r3 = r1.readLine();\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r3 == 0) goto L_0x0039;\r\n L_0x0016:\r\n r4 = com.alipay.security.mobile.module.p010a.C0159a.m556a(r3);\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r4 != 0) goto L_0x0010;\r\n L_0x001c:\r\n r4 = \":\";\r\n r3 = r3.split(r4);\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r3 == 0) goto L_0x0010;\r\n L_0x0024:\r\n r4 = r3.length;\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r4 <= r6) goto L_0x0010;\r\n L_0x0027:\r\n r4 = 0;\r\n r4 = r3[r4];\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n r5 = \"BogoMIPS\";\r\n r4 = r4.contains(r5);\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r4 == 0) goto L_0x0010;\r\n L_0x0032:\r\n r4 = 1;\r\n r3 = r3[r4];\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n r0 = r3.trim();\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n L_0x0039:\r\n r2.close();\t Catch:{ IOException -> 0x0060 }\r\n L_0x003c:\r\n r1.close();\t Catch:{ IOException -> 0x0062 }\r\n L_0x003f:\r\n return r0;\r\n L_0x0040:\r\n r1 = move-exception;\r\n r1 = r0;\r\n r2 = r0;\r\n L_0x0043:\r\n if (r2 == 0) goto L_0x0048;\r\n L_0x0045:\r\n r2.close();\t Catch:{ IOException -> 0x0064 }\r\n L_0x0048:\r\n if (r1 == 0) goto L_0x003f;\r\n L_0x004a:\r\n r1.close();\t Catch:{ IOException -> 0x004e }\r\n goto L_0x003f;\r\n L_0x004e:\r\n r1 = move-exception;\r\n goto L_0x003f;\r\n L_0x0050:\r\n r1 = move-exception;\r\n r2 = r0;\r\n r7 = r0;\r\n r0 = r1;\r\n r1 = r7;\r\n L_0x0055:\r\n if (r2 == 0) goto L_0x005a;\r\n L_0x0057:\r\n r2.close();\t Catch:{ IOException -> 0x0066 }\r\n L_0x005a:\r\n if (r1 == 0) goto L_0x005f;\r\n L_0x005c:\r\n r1.close();\t Catch:{ IOException -> 0x0068 }\r\n L_0x005f:\r\n throw r0;\r\n L_0x0060:\r\n r2 = move-exception;\r\n goto L_0x003c;\r\n L_0x0062:\r\n r1 = move-exception;\r\n goto L_0x003f;\r\n L_0x0064:\r\n r2 = move-exception;\r\n goto L_0x0048;\r\n L_0x0066:\r\n r2 = move-exception;\r\n goto L_0x005a;\r\n L_0x0068:\r\n r1 = move-exception;\r\n goto L_0x005f;\r\n L_0x006a:\r\n r1 = move-exception;\r\n r7 = r1;\r\n r1 = r0;\r\n r0 = r7;\r\n goto L_0x0055;\r\n L_0x006f:\r\n r0 = move-exception;\r\n goto L_0x0055;\r\n L_0x0071:\r\n r1 = move-exception;\r\n r1 = r0;\r\n goto L_0x0043;\r\n L_0x0074:\r\n r3 = move-exception;\r\n goto L_0x0043;\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: com.alipay.security.mobile.module.b.a.k():java.lang.String\");\r\n }",
"public static int offset_cost() {\n return (56 / 8);\n }",
"public int get3dXtiles(int framenum)\n\t\t{ return dims[(framenum >> 5)&1]; }",
"public int mo12191c() {\n return this.f10948c.limit() + this.f10957l.length + (this.f10958m.length * 4);\n }",
"private byte[] m1034b(java.lang.String r8) {\n /*\n r7 = this;\n r6 = 2\n r4 = 6\n r2 = 0\n java.lang.String r0 = \":\"\n java.lang.String[] r0 = r8.split(r0)\n byte[] r1 = new byte[r4]\n if (r0 == 0) goto L_0x0010\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 == r4) goto L_0x001e\n L_0x0010:\n r0 = 6\n java.lang.String[] r0 = new java.lang.String[r0] // Catch:{ Throwable -> 0x0043 }\n r3 = r2\n L_0x0014:\n int r4 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 >= r4) goto L_0x001e\n java.lang.String r4 = \"0\"\n r0[r3] = r4 // Catch:{ Throwable -> 0x0043 }\n int r3 = r3 + 1\n goto L_0x0014\n L_0x001e:\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r2 >= r3) goto L_0x0041\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n int r3 = r3.length() // Catch:{ Throwable -> 0x0043 }\n if (r3 <= r6) goto L_0x0033\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 0\n r5 = 2\n java.lang.String r3 = r3.substring(r4, r5) // Catch:{ Throwable -> 0x0043 }\n r0[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n L_0x0033:\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 16\n int r3 = java.lang.Integer.parseInt(r3, r4) // Catch:{ Throwable -> 0x0043 }\n byte r3 = (byte) r3 // Catch:{ Throwable -> 0x0043 }\n r1[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n int r2 = r2 + 1\n goto L_0x001e\n L_0x0041:\n r0 = r1\n L_0x0042:\n return r0\n L_0x0043:\n r0 = move-exception\n java.lang.String r1 = \"Req\"\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n java.lang.String r3 = \"getMacBa \"\n java.lang.StringBuilder r2 = r2.append(r3)\n java.lang.StringBuilder r2 = r2.append(r8)\n java.lang.String r2 = r2.toString()\n com.amap.loc.C0310c.m956a(r0, r1, r2)\n java.lang.String r0 = \"00:00:00:00:00:00\"\n byte[] r0 = r7.m1034b(r0)\n goto L_0x0042\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.loc.C0321cj.m1034b(java.lang.String):byte[]\");\n }",
"public abstract int mo9797a();",
"Integer getDataLgth();",
"void mo27575a();",
"public abstract int mo123248g();",
"public abstract long mo9743h();",
"public void a()\r\n/* 49: */ {\r\n/* 50: 64 */ HashSet<BlockPosition> localHashSet = Sets.newHashSet();\r\n/* 51: */ \r\n/* 52: 66 */ int m = 16;\r\n/* 53: 67 */ for (int n = 0; n < 16; n++) {\r\n/* 54: 68 */ for (int i1 = 0; i1 < 16; i1++) {\r\n/* 55: 69 */ for (int i2 = 0; i2 < 16; i2++) {\r\n/* 56: 70 */ if ((n == 0) || (n == 15) || (i1 == 0) || (i1 == 15) || (i2 == 0) || (i2 == 15))\r\n/* 57: */ {\r\n/* 58: 74 */ double d1 = n / 15.0F * 2.0F - 1.0F;\r\n/* 59: 75 */ double d2 = i1 / 15.0F * 2.0F - 1.0F;\r\n/* 60: 76 */ double d3 = i2 / 15.0F * 2.0F - 1.0F;\r\n/* 61: 77 */ double d4 = Math.sqrt(d1 * d1 + d2 * d2 + d3 * d3);\r\n/* 62: */ \r\n/* 63: 79 */ d1 /= d4;\r\n/* 64: 80 */ d2 /= d4;\r\n/* 65: 81 */ d3 /= d4;\r\n/* 66: */ \r\n/* 67: 83 */ float f2 = this.i * (0.7F + this.d.rng.nextFloat() * 0.6F);\r\n/* 68: 84 */ double d6 = this.e;\r\n/* 69: 85 */ double d8 = this.f;\r\n/* 70: 86 */ double d10 = this.g;\r\n/* 71: */ \r\n/* 72: 88 */ float f3 = 0.3F;\r\n/* 73: 89 */ while (f2 > 0.0F)\r\n/* 74: */ {\r\n/* 75: 90 */ BlockPosition localdt = new BlockPosition(d6, d8, d10);\r\n/* 76: 91 */ Block localbec = this.d.getBlock(localdt);\r\n/* 77: 93 */ if (localbec.getType().getMaterial() != Material.air)\r\n/* 78: */ {\r\n/* 79: 94 */ float f4 = this.h != null ? this.h.a(this, this.d, localdt, localbec) : localbec.getType().a((Entity)null);\r\n/* 80: 95 */ f2 -= (f4 + 0.3F) * 0.3F;\r\n/* 81: */ }\r\n/* 82: 98 */ if ((f2 > 0.0F) && ((this.h == null) || (this.h.a(this, this.d, localdt, localbec, f2)))) {\r\n/* 83: 99 */ localHashSet.add(localdt);\r\n/* 84: */ }\r\n/* 85:102 */ d6 += d1 * 0.300000011920929D;\r\n/* 86:103 */ d8 += d2 * 0.300000011920929D;\r\n/* 87:104 */ d10 += d3 * 0.300000011920929D;\r\n/* 88:105 */ f2 -= 0.225F;\r\n/* 89: */ }\r\n/* 90: */ }\r\n/* 91: */ }\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94:111 */ this.j.addAll(localHashSet);\r\n/* 95: */ \r\n/* 96:113 */ float f1 = this.i * 2.0F;\r\n/* 97: */ \r\n/* 98:115 */ int i1 = MathUtils.floor(this.e - f1 - 1.0D);\r\n/* 99:116 */ int i2 = MathUtils.floor(this.e + f1 + 1.0D);\r\n/* 100:117 */ int i3 = MathUtils.floor(this.f - f1 - 1.0D);\r\n/* 101:118 */ int i4 = MathUtils.floor(this.f + f1 + 1.0D);\r\n/* 102:119 */ int i5 = MathUtils.floor(this.g - f1 - 1.0D);\r\n/* 103:120 */ int i6 = MathUtils.floor(this.g + f1 + 1.0D);\r\n/* 104:121 */ List<Entity> localList = this.d.b(this.h, new AABB(i1, i3, i5, i2, i4, i6));\r\n/* 105:122 */ Vec3 localbrw = new Vec3(this.e, this.f, this.g);\r\n/* 106:124 */ for (int i7 = 0; i7 < localList.size(); i7++)\r\n/* 107: */ {\r\n/* 108:125 */ Entity localwv = (Entity)localList.get(i7);\r\n/* 109:126 */ if (!localwv.aV())\r\n/* 110: */ {\r\n/* 111:129 */ double d5 = localwv.f(this.e, this.f, this.g) / f1;\r\n/* 112:131 */ if (d5 <= 1.0D)\r\n/* 113: */ {\r\n/* 114:132 */ double d7 = localwv.xPos - this.e;\r\n/* 115:133 */ double d9 = localwv.yPos + localwv.getEyeHeight() - this.f;\r\n/* 116:134 */ double d11 = localwv.zPos - this.g;\r\n/* 117: */ \r\n/* 118:136 */ double d12 = MathUtils.sqrt(d7 * d7 + d9 * d9 + d11 * d11);\r\n/* 119:137 */ if (d12 != 0.0D)\r\n/* 120: */ {\r\n/* 121:141 */ d7 /= d12;\r\n/* 122:142 */ d9 /= d12;\r\n/* 123:143 */ d11 /= d12;\r\n/* 124: */ \r\n/* 125:145 */ double d13 = this.d.a(localbrw, localwv.getAABB());\r\n/* 126:146 */ double d14 = (1.0D - d5) * d13;\r\n/* 127:147 */ localwv.receiveDamage(DamageSource.a(this), (int)((d14 * d14 + d14) / 2.0D * 8.0D * f1 + 1.0D));\r\n/* 128: */ \r\n/* 129:149 */ double d15 = EnchantmentProtection.a(localwv, d14);\r\n/* 130:150 */ localwv.xVelocity += d7 * d15;\r\n/* 131:151 */ localwv.yVelocity += d9 * d15;\r\n/* 132:152 */ localwv.zVelocity += d11 * d15;\r\n/* 133:154 */ if ((localwv instanceof EntityPlayer)) {\r\n/* 134:155 */ this.k.put((EntityPlayer)localwv, new Vec3(d7 * d14, d9 * d14, d11 * d14));\r\n/* 135: */ }\r\n/* 136: */ }\r\n/* 137: */ }\r\n/* 138: */ }\r\n/* 139: */ }\r\n/* 140: */ }",
"public byte[] mo3891a() {\n int i;\n int i2;\n int i3;\n int i4;\n int i5;\n int i6;\n int i7;\n int i8;\n int i9;\n int i10;\n int i11;\n int i12;\n int i13;\n int i14;\n int i15;\n int i16;\n int i17;\n int i18;\n byte[] b;\n int i19;\n int length;\n mo3892b();\n int i20 = 3072;\n if (this.f687G != null) {\n i20 = 3072 + this.f687G.length + 1;\n }\n byte[] bArr = new byte[i20];\n bArr[0] = Byte.parseByte(this.f688a);\n byte[] b2 = C0331cr.m1177b(this.f689b);\n System.arraycopy(b2, 0, bArr, 1, b2.length);\n int length2 = b2.length + 1;\n try {\n byte[] bytes = this.f690c.getBytes(\"GBK\");\n bArr[length2] = (byte) bytes.length;\n length2++;\n System.arraycopy(bytes, 0, bArr, length2, bytes.length);\n i = length2 + bytes.length;\n } catch (Throwable th) {\n C0310c.m956a(th, \"Req\", \"buildV4Dot2\");\n bArr[length2] = 0;\n i = length2 + 1;\n }\n try {\n byte[] bytes2 = this.f691d.getBytes(\"GBK\");\n bArr[i] = (byte) bytes2.length;\n i++;\n System.arraycopy(bytes2, 0, bArr, i, bytes2.length);\n i2 = i + bytes2.length;\n } catch (Throwable th2) {\n C0310c.m956a(th2, \"Req\", \"buildV4Dot21\");\n bArr[i] = 0;\n i2 = i + 1;\n }\n try {\n byte[] bytes3 = this.f702o.getBytes(\"GBK\");\n bArr[i2] = (byte) bytes3.length;\n i2++;\n System.arraycopy(bytes3, 0, bArr, i2, bytes3.length);\n i3 = i2 + bytes3.length;\n } catch (Throwable th3) {\n C0310c.m956a(th3, \"Req\", \"buildV4Dot22\");\n bArr[i2] = 0;\n i3 = i2 + 1;\n }\n try {\n byte[] bytes4 = this.f692e.getBytes(\"GBK\");\n bArr[i3] = (byte) bytes4.length;\n i3++;\n System.arraycopy(bytes4, 0, bArr, i3, bytes4.length);\n i4 = i3 + bytes4.length;\n } catch (Throwable th4) {\n C0310c.m956a(th4, \"Req\", \"buildV4Dot23\");\n bArr[i3] = 0;\n i4 = i3 + 1;\n }\n try {\n byte[] bytes5 = this.f693f.getBytes(\"GBK\");\n bArr[i4] = (byte) bytes5.length;\n i4++;\n System.arraycopy(bytes5, 0, bArr, i4, bytes5.length);\n i5 = i4 + bytes5.length;\n } catch (Throwable th5) {\n C0310c.m956a(th5, \"Req\", \"buildV4Dot24\");\n bArr[i4] = 0;\n i5 = i4 + 1;\n }\n try {\n byte[] bytes6 = this.f694g.getBytes(\"GBK\");\n bArr[i5] = (byte) bytes6.length;\n i5++;\n System.arraycopy(bytes6, 0, bArr, i5, bytes6.length);\n i6 = i5 + bytes6.length;\n } catch (Throwable th6) {\n C0310c.m956a(th6, \"Req\", \"buildV4Dot25\");\n bArr[i5] = 0;\n i6 = i5 + 1;\n }\n try {\n byte[] bytes7 = this.f708u.getBytes(\"GBK\");\n bArr[i6] = (byte) bytes7.length;\n i6++;\n System.arraycopy(bytes7, 0, bArr, i6, bytes7.length);\n i7 = i6 + bytes7.length;\n } catch (Throwable th7) {\n C0310c.m956a(th7, \"Req\", \"buildV4Dot26\");\n bArr[i6] = 0;\n i7 = i6 + 1;\n }\n try {\n byte[] bytes8 = this.f695h.getBytes(\"GBK\");\n bArr[i7] = (byte) bytes8.length;\n i7++;\n System.arraycopy(bytes8, 0, bArr, i7, bytes8.length);\n i8 = i7 + bytes8.length;\n } catch (Throwable th8) {\n C0310c.m956a(th8, \"Req\", \"buildV4Dot27\");\n bArr[i7] = 0;\n i8 = i7 + 1;\n }\n try {\n byte[] bytes9 = this.f703p.getBytes(\"GBK\");\n bArr[i8] = (byte) bytes9.length;\n i8++;\n System.arraycopy(bytes9, 0, bArr, i8, bytes9.length);\n i9 = i8 + bytes9.length;\n } catch (Throwable th9) {\n C0310c.m956a(th9, \"Req\", \"buildV4Dot28\");\n bArr[i8] = 0;\n i9 = i8 + 1;\n }\n try {\n byte[] bytes10 = this.f704q.getBytes(\"GBK\");\n bArr[i9] = (byte) bytes10.length;\n i9++;\n System.arraycopy(bytes10, 0, bArr, i9, bytes10.length);\n i10 = i9 + bytes10.length;\n } catch (Throwable th10) {\n C0310c.m956a(th10, \"Req\", \"buildV4Dot29\");\n bArr[i9] = 0;\n i10 = i9 + 1;\n }\n try {\n if (TextUtils.isEmpty(this.f707t)) {\n bArr[i10] = 0;\n length = i10 + 1;\n } else {\n byte[] b3 = m1034b(this.f707t);\n bArr[i10] = (byte) b3.length;\n int i21 = i10 + 1;\n System.arraycopy(b3, 0, bArr, i21, b3.length);\n length = b3.length + i21;\n }\n i11 = length;\n } catch (Throwable th11) {\n C0310c.m956a(th11, \"Req\", \"buildV4Dot219\");\n bArr[i10] = 0;\n i11 = i10 + 1;\n }\n try {\n byte[] bytes11 = this.f709v.getBytes(\"GBK\");\n bArr[i11] = (byte) bytes11.length;\n i11++;\n System.arraycopy(bytes11, 0, bArr, i11, bytes11.length);\n i12 = i11 + bytes11.length;\n } catch (Throwable th12) {\n C0310c.m956a(th12, \"Req\", \"buildV4Dot211\");\n bArr[i11] = 0;\n i12 = i11 + 1;\n }\n try {\n byte[] bytes12 = this.f710w.getBytes(\"GBK\");\n bArr[i12] = (byte) bytes12.length;\n i12++;\n System.arraycopy(bytes12, 0, bArr, i12, bytes12.length);\n i13 = i12 + bytes12.length;\n } catch (Throwable th13) {\n C0310c.m956a(th13, \"Req\", \"buildV4Dot212\");\n bArr[i12] = 0;\n i13 = i12 + 1;\n }\n try {\n byte[] bytes13 = this.f711x.getBytes(\"GBK\");\n bArr[i13] = (byte) bytes13.length;\n i13++;\n System.arraycopy(bytes13, 0, bArr, i13, bytes13.length);\n i14 = bytes13.length + i13;\n } catch (Throwable th14) {\n C0310c.m956a(th14, \"Req\", \"buildV4Dot213\");\n bArr[i13] = 0;\n i14 = i13 + 1;\n }\n bArr[i14] = Byte.parseByte(this.f712y);\n int i22 = i14 + 1;\n bArr[i22] = Byte.parseByte(this.f697j);\n int i23 = i22 + 1;\n bArr[i23] = Byte.parseByte(this.f713z);\n int i24 = i23 + 1;\n if (this.f713z.equals(\"1\")) {\n byte[] d = C0331cr.m1187d(mo3890a(\"mcc\"));\n System.arraycopy(d, 0, bArr, i24, d.length);\n int length3 = i24 + d.length;\n byte[] d2 = C0331cr.m1187d(mo3890a(\"mnc\"));\n System.arraycopy(d2, 0, bArr, length3, d2.length);\n int length4 = length3 + d2.length;\n byte[] d3 = C0331cr.m1187d(mo3890a(\"lac\"));\n System.arraycopy(d3, 0, bArr, length4, d3.length);\n int length5 = length4 + d3.length;\n byte[] e = C0331cr.m1190e(mo3890a(\"cellid\"));\n System.arraycopy(e, 0, bArr, length5, e.length);\n int length6 = e.length + length5;\n int parseInt = Integer.parseInt(mo3890a(\"signal\"));\n if (parseInt > 127) {\n parseInt = 0;\n }\n bArr[length6] = (byte) parseInt;\n int i25 = length6 + 1;\n if (this.f682B.length() == 0) {\n bArr[i25] = 0;\n i24 = i25 + 1;\n } else {\n int length7 = this.f682B.split(\"\\\\*\").length;\n bArr[i25] = (byte) length7;\n i24 = i25 + 1;\n int i26 = 0;\n while (i26 < length7) {\n byte[] d4 = C0331cr.m1187d(m1032a(\"lac\", i26));\n System.arraycopy(d4, 0, bArr, i24, d4.length);\n int length8 = i24 + d4.length;\n byte[] e2 = C0331cr.m1190e(m1032a(\"cellid\", i26));\n System.arraycopy(e2, 0, bArr, length8, e2.length);\n int length9 = e2.length + length8;\n int parseInt2 = Integer.parseInt(m1032a(\"signal\", i26));\n if (parseInt2 > 127) {\n parseInt2 = 0;\n }\n bArr[length9] = (byte) parseInt2;\n i26++;\n i24 = length9 + 1;\n }\n }\n } else if (this.f713z.equals(\"2\")) {\n byte[] d5 = C0331cr.m1187d(mo3890a(\"mcc\"));\n System.arraycopy(d5, 0, bArr, i24, d5.length);\n int length10 = i24 + d5.length;\n byte[] d6 = C0331cr.m1187d(mo3890a(\"sid\"));\n System.arraycopy(d6, 0, bArr, length10, d6.length);\n int length11 = length10 + d6.length;\n byte[] d7 = C0331cr.m1187d(mo3890a(\"nid\"));\n System.arraycopy(d7, 0, bArr, length11, d7.length);\n int length12 = length11 + d7.length;\n byte[] d8 = C0331cr.m1187d(mo3890a(\"bid\"));\n System.arraycopy(d8, 0, bArr, length12, d8.length);\n int length13 = length12 + d8.length;\n byte[] e3 = C0331cr.m1190e(mo3890a(\"lon\"));\n System.arraycopy(e3, 0, bArr, length13, e3.length);\n int length14 = length13 + e3.length;\n byte[] e4 = C0331cr.m1190e(mo3890a(C1447g.f3485ae));\n System.arraycopy(e4, 0, bArr, length14, e4.length);\n int length15 = e4.length + length14;\n int parseInt3 = Integer.parseInt(mo3890a(\"signal\"));\n if (parseInt3 > 127) {\n parseInt3 = 0;\n }\n bArr[length15] = (byte) parseInt3;\n int i27 = length15 + 1;\n bArr[i27] = 0;\n i24 = i27 + 1;\n }\n if (this.f683C.length() == 0) {\n bArr[i24] = 0;\n i15 = i24 + 1;\n } else {\n bArr[i24] = 1;\n int i28 = i24 + 1;\n try {\n String[] split = this.f683C.split(MiPushClient.ACCEPT_TIME_SEPARATOR);\n byte[] b4 = m1034b(split[0]);\n System.arraycopy(b4, 0, bArr, i28, b4.length);\n int length16 = i28 + b4.length;\n try {\n byte[] bytes14 = split[2].getBytes(\"GBK\");\n bArr[length16] = (byte) bytes14.length;\n length16++;\n System.arraycopy(bytes14, 0, bArr, length16, bytes14.length);\n i16 = length16 + bytes14.length;\n } catch (Throwable th15) {\n C0310c.m956a(th15, \"Req\", \"buildV4Dot214\");\n bArr[length16] = 0;\n i16 = length16 + 1;\n }\n int parseInt4 = Integer.parseInt(split[1]);\n if (parseInt4 > 127) {\n parseInt4 = 0;\n }\n bArr[i16] = Byte.parseByte(String.valueOf(parseInt4));\n i15 = i16 + 1;\n } catch (Throwable th16) {\n C0310c.m956a(th16, \"Req\", \"buildV4Dot216\");\n byte[] b5 = m1034b(\"00:00:00:00:00:00\");\n System.arraycopy(b5, 0, bArr, i28, b5.length);\n int length17 = b5.length + i28;\n bArr[length17] = 0;\n int i29 = length17 + 1;\n bArr[i29] = Byte.parseByte(\"0\");\n i15 = i29 + 1;\n }\n }\n String[] split2 = this.f684D.split(\"\\\\*\");\n if (TextUtils.isEmpty(this.f684D) || split2.length == 0) {\n bArr[i15] = 0;\n i17 = i15 + 1;\n } else {\n bArr[i15] = (byte) split2.length;\n int i30 = i15 + 1;\n for (String str : split2) {\n String[] split3 = str.split(MiPushClient.ACCEPT_TIME_SEPARATOR);\n try {\n b = m1034b(split3[0]);\n } catch (Throwable th17) {\n C0310c.m956a(th17, \"Req\", \"buildV4Dot2110\");\n b = m1034b(\"00:00:00:00:00:00\");\n }\n System.arraycopy(b, 0, bArr, i30, b.length);\n int length18 = i30 + b.length;\n try {\n byte[] bytes15 = split3[2].getBytes(\"GBK\");\n bArr[length18] = (byte) bytes15.length;\n length18++;\n System.arraycopy(bytes15, 0, bArr, length18, bytes15.length);\n i19 = bytes15.length + length18;\n } catch (Throwable th18) {\n C0310c.m956a(th18, \"Req\", \"buildV4Dot217\");\n bArr[length18] = 0;\n i19 = length18 + 1;\n }\n int parseInt5 = Integer.parseInt(split3[1]);\n if (parseInt5 > 127) {\n parseInt5 = 0;\n }\n bArr[i19] = Byte.parseByte(String.valueOf(parseInt5));\n i30 = i19 + 1;\n }\n byte[] b6 = C0331cr.m1177b(Integer.parseInt(this.f685E));\n System.arraycopy(b6, 0, bArr, i30, b6.length);\n i17 = i30 + b6.length;\n }\n try {\n byte[] bytes16 = this.f686F.getBytes(\"GBK\");\n if (bytes16.length > 127) {\n bytes16 = null;\n }\n if (bytes16 == null) {\n bArr[i17] = 0;\n i18 = i17 + 1;\n } else {\n bArr[i17] = (byte) bytes16.length;\n int i31 = i17 + 1;\n System.arraycopy(bytes16, 0, bArr, i31, bytes16.length);\n i18 = bytes16.length + i31;\n }\n } catch (Throwable th19) {\n C0310c.m956a(th19, \"Req\", \"buildV4Dot218\");\n bArr[i17] = 0;\n i18 = i17 + 1;\n }\n int length19 = this.f687G != null ? this.f687G.length : 0;\n byte[] b7 = C0331cr.m1177b(length19);\n System.arraycopy(b7, 0, bArr, i18, b7.length);\n int length20 = i18 + b7.length;\n if (length19 > 0) {\n System.arraycopy(this.f687G, 0, bArr, length20, this.f687G.length);\n length20 += this.f687G.length;\n }\n byte[] bArr2 = new byte[length20];\n System.arraycopy(bArr, 0, bArr2, 0, length20);\n CRC32 crc32 = new CRC32();\n crc32.update(bArr2);\n byte[] a = C0331cr.m1167a(crc32.getValue());\n byte[] bArr3 = new byte[(a.length + length20)];\n System.arraycopy(bArr2, 0, bArr3, 0, length20);\n System.arraycopy(a, 0, bArr3, length20, a.length);\n int length21 = length20 + a.length;\n m1033a(bArr3, 0);\n return bArr3;\n }",
"public abstract int mo13680b();",
"public void method_4270() {}",
"private static int trailzerofun(int num) {\n\t\tint count=0;\n\t\tif(num<0)\n\t\t\treturn -1;\n\t\tfor(int i=5;num/i>=1;i*=5)\n\t\t{\n\t\t\tcount+=num/i;\n\t\t}\n\t\treturn count;\n\t}",
"public int mo27483b() {\n return 0;\n }",
"public abstract long mo9750o();",
"public static int size_parentId() {\n return (16 / 8);\n }"
] | [
"0.5761186",
"0.57373387",
"0.5723506",
"0.5654589",
"0.56270444",
"0.5593662",
"0.55911255",
"0.556834",
"0.5564324",
"0.55607706",
"0.55291396",
"0.552551",
"0.5518346",
"0.5470354",
"0.54676914",
"0.54676914",
"0.54627514",
"0.5435474",
"0.5423218",
"0.54182917",
"0.53926057",
"0.5391751",
"0.5390292",
"0.53872925",
"0.53818965",
"0.53732085",
"0.53667784",
"0.5364065",
"0.53602624",
"0.5352119",
"0.5322658",
"0.53226346",
"0.53165215",
"0.52908915",
"0.5289254",
"0.52891994",
"0.52791625",
"0.52789134",
"0.52685815",
"0.52671534",
"0.5261849",
"0.5257554",
"0.5248305",
"0.5233379",
"0.52283525",
"0.5222765",
"0.5203857",
"0.5195087",
"0.51848984",
"0.5178369",
"0.51757395",
"0.517491",
"0.51741976",
"0.5168267",
"0.516405",
"0.51638347",
"0.51626736",
"0.5160384",
"0.5150191",
"0.51483566",
"0.5146652",
"0.51460886",
"0.514255",
"0.5137683",
"0.5136972",
"0.5120983",
"0.5116768",
"0.5116296",
"0.51101804",
"0.510905",
"0.5106754",
"0.5106",
"0.5105058",
"0.51034915",
"0.5103183",
"0.5100707",
"0.50993705",
"0.5098809",
"0.5098196",
"0.50966257",
"0.50932807",
"0.50900155",
"0.5083693",
"0.5082461",
"0.5079143",
"0.507433",
"0.5074116",
"0.50727314",
"0.5070779",
"0.5070479",
"0.5069441",
"0.5068935",
"0.50688744",
"0.5068051",
"0.50667673",
"0.50655603",
"0.5063687",
"0.506097",
"0.50596005",
"0.50578535",
"0.50577223"
] | 0.0 | -1 |
/ / / / / / / / / / / / / / / / | public DateAxis(String label, TimeZone zone, Locale locale) {
/* 402 */ super(label, createStandardDateTickUnits(zone, locale));
/* 403 */ this.tickUnit = new DateTickUnit(DateTickUnitType.DAY, true, new SimpleDateFormat());
/* */
/* 405 */ setAutoRangeMinimumSize(2.0D);
/* */
/* 407 */ setRange(DEFAULT_DATE_RANGE, false, false);
/* 408 */ this.dateFormatOverride = null;
/* 409 */ this.timeZone = zone;
/* 410 */ this.locale = locale;
/* 411 */ this.timeline = DEFAULT_TIMELINE;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"double passer();",
"public Integer getWidth(){return this.width;}",
"int getWidth() {return width;}",
"public void divide() {\n\t\t\n\t}",
"int width();",
"private int rightChild(int i){return 2*i+2;}",
"public abstract void bepaalGrootte();",
"static int getNumPatterns() { return 64; }",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void getTile_B8();",
"public void gored() {\n\t\t\n\t}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"int getTribeSize();",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public int getEdgeCount() \n {\n return 3;\n }",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public String ring();",
"void mo33732Px();",
"long getWidth();",
"public String toString(){ return \"DIV\";}",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"public double getWidth() { return _width<0? -_width : _width; }",
"double getNewWidth();",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"double seBlesser();",
"public int generateRoshambo(){\n ;]\n\n }",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"public int my_leaf_count();",
"public abstract int getSpotsNeeded();",
"public static int size_parent() {\n return (8 / 8);\n }",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"@Override\n public void bfs() {\n\n }",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public abstract String division();",
"long getMid();",
"long getMid();",
"int getSpriteArraySize();",
"int getSize ();",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"int expand();",
"public static int size_parentId() {\n return (16 / 8);\n }",
"public void leerPlanesDietas();",
"public void skystonePos4() {\n }",
"public int getWidth(){\n return width;\n }",
"public int getTakeSpace() {\n return 0;\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public abstract double getBaseWidth();",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}",
"public String getRing();",
"public int getWidth()\n {return width;}",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"Operations operations();",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"public double getPerimiter(){return (2*height +2*width);}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"double volume(){\n return width*height*depth;\n }",
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"int depth();",
"int depth();",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"public int length() { return 1+maxidx; }",
"public static int offset_parent() {\n return (40 / 8);\n }",
"@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"public String getRingback();",
"private void poetries() {\n\n\t}",
"String directsTo();",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"public int width();",
"Parallelogram(){\n length = width = height = 0;\n }",
"int align();",
"public double width() { return _width; }",
"@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}",
"int getWidth()\n {\n return width;\n }",
"public void Exterior() {\n\t\t\r\n\t}",
"public void method_4270() {}",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"public static void enrichmentMaxLowMem(String szinputsegment,String szinputcoorddir,String szinputcoordlist,\n\t\t\t\t int noffsetleft, int noffsetright,\n int nbinsize, boolean bcenter,boolean bunique, boolean busesignal,String szcolfields,\n\t\t\t\t boolean bbaseres, String szoutfile,boolean bcolscaleheat,Color theColor,String sztitle, \n\t\t\t\t\t String szlabelmapping, boolean bprintimage, boolean bstringlabels, boolean bbrowser) throws IOException\n {\n\n\n //for each enrichment category and state label gives a count of how often\n //overlapped by a segment optionally with signal\n\n String szLine;\n String[] files;\n\n if (szinputcoordlist == null)\n {\n File dir = new File(szinputcoorddir);\n\t //we don't have a specific list of files to include\n\t //will use all files in the directory\n\t if (dir.isDirectory())\t \n\t {\n\t //throw new IllegalArgumentException(szinputcoorddir+\" is not a directory!\");\n\t //added in v1.11 to skip hidden files\n\t String[] filesWithHidden = dir.list();\n\t int nnonhiddencount = 0;\n\t for (int nfile = 0; nfile < filesWithHidden.length; nfile++)\n\t {\n\t if (!(new File(filesWithHidden[nfile])).isHidden())\n\t\t{\n\t\t nnonhiddencount++;\n\t\t}\n\t }\t \n\n\t int nactualindex = 0;\n\t files = new String[nnonhiddencount];// dir.list(); \n\t if (nnonhiddencount == 0)\n\t {\n\t throw new IllegalArgumentException(\"No files found in \"+szinputcoorddir);\n\t }\n\n for (int nfile = 0; nfile < filesWithHidden.length; nfile++)\n\t {\n\t if (!(new File(filesWithHidden[nfile])).isHidden())\n\t {\n\t files[nactualindex] = filesWithHidden[nfile];\n\t\t nactualindex++;\n\t }\n\t }\n\t Arrays.sort(files);\n\t szinputcoorddir += \"/\";\n\t }\n\t else\n\t {\n\t files = new String[1];\n\t files[0] = szinputcoorddir;\n\t szinputcoorddir = \"\";\n\t }\n }\n else\n {\n szinputcoorddir += \"/\";\n\t //store in files all file names given in szinputcoordlist\n\t BufferedReader brfiles = Util.getBufferedReader(szinputcoordlist);\n\t ArrayList alfiles = new ArrayList();\n\t while ((szLine = brfiles.readLine())!=null)\n\t {\n\t alfiles.add(szLine);\n\t }\n\t brfiles.close(); \n\t files = new String[alfiles.size()];\n\t for (int nfile = 0; nfile < files.length; nfile++)\n\t {\n\t files[nfile] = (String) alfiles.get(nfile);\n\t }\n }\n\t\n ArrayList alchromindex = new ArrayList(); //stores the index of the chromosome\n\t\n if (busesignal)\n {\n bunique = false;\n }\n\n HashMap hmchromMax = new HashMap(); //maps chromosome to the maximum index\n HashMap hmchromToIndex = new HashMap(); //maps chromosome to an index\n HashMap hmLabelToIndex = new HashMap(); //maps label to an index\n HashMap hmIndexToLabel = new HashMap(); //maps index string to label\n int nmaxlabel=0; // the maximum label found\n String szlabel=\"\";\n boolean busedunderscore = false;\n //reads in the segmentation recording maximum position for each chromosome and\n //maximum label\n BufferedReader brinputsegment = Util.getBufferedReader(szinputsegment);\n while ((szLine = brinputsegment.readLine())!=null)\n {\n\n\t //added v1.24\n\t if (bbrowser)\n\t {\n\t if ((szLine.toLowerCase(Locale.ENGLISH).startsWith(\"browser\"))||(szLine.toLowerCase(Locale.ENGLISH).startsWith(\"track\")))\n\t {\n\t continue;\n\t }\n\t }\n\n\t StringTokenizer st;\n\t if (bstringlabels)\n\t {\n st = new StringTokenizer(szLine,\"\\t\");\n\t }\n\t else\n\t {\n\t st = new StringTokenizer(szLine,\"\\t \");\n }\n\n\t //added in v1.24\n\t int numtokens = st.countTokens();\n\t if (numtokens == 0)\n\t {\n\t //skip blank lines\n\t continue;\n\t }\n\t else if (numtokens < 4)\n\t {\n\t throw new IllegalArgumentException(\"Line \"+szLine+\" in \"+szinputsegment+\" only had \"+numtokens+\" token(s). Expecting at least 4\");\n\t }\n\n\t String szchrom = st.nextToken().trim();\n\t int nbegincoord = Integer.parseInt(st.nextToken().trim());\n\t int nendcoord = Integer.parseInt(st.nextToken().trim());\n\t if (nbegincoord % nbinsize != 0)\n\t {\n\t\tthrow new IllegalArgumentException(\"Binsize of \"+nbinsize+\" does not agree with coordinates in input segment \"+szLine+\". -b binsize should match parameter value to LearnModel or \"+\n \"MakeSegmentation used to produce segmentation. If segmentation is derived from a lift over from another assembly, then the '-b 1' option should be used\");\n\t }\n //int nbegin = nbegincoord/nbinsize;\n\t int nend = (nendcoord-1)/nbinsize;\n szlabel = st.nextToken().trim();\n\t short slabel;\n\n\n if (bstringlabels)\n\t {\n\n\t int nunderscoreindex = szlabel.indexOf(\"_\");\n\n\t if (nunderscoreindex >=0)\n\t {\n\t String szprefix = szlabel.substring(0,nunderscoreindex);\n\n try\n\t {\n\t\t slabel = (short) (Short.parseShort(szprefix));\n\t\t if (slabel > nmaxlabel)\n\t {\n\t nmaxlabel = slabel;\n\t }\n\t\t busedunderscore = true;\n\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n\t\t hmIndexToLabel.put(\"\"+slabel, szlabel);\n\t\t}\n catch (NumberFormatException ex)\n\t\t{\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix.substring(1)));\n\t\t if (slabel > nmaxlabel)\n\t\t {\n\t\t nmaxlabel = slabel;\n\t\t }\n\t\t busedunderscore = true;\n\t\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n\t\t hmIndexToLabel.put(\"\"+slabel, szlabel);\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t if (busedunderscore)\n\t\t {\n\t throw new IllegalArgumentException(\"Not a valid ID before '_' in \"+szlabel+\", while valid ID found for other entries\");\n\t\t }\n\t\t }\n\t\t}\n\t }\n\n\t if (!busedunderscore)\n\t {\n //handle string labels\n\t Short objshort = (Short) hmLabelToIndex.get(szlabel);\n\n\t if (objshort == null)\n\t {\n\t nmaxlabel = hmLabelToIndex.size()+1;\n\t slabel = (short) nmaxlabel;\n\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n \t hmIndexToLabel.put(\"\"+nmaxlabel, szlabel);\n\t }\n\t //else\n\t //{\n\t // slabel = ((Short) objshort).shortValue();\n\t //}\n\t }\n\t }\n\t else\n\t {\n try\n\t {\n slabel = (short) (Short.parseShort(szlabel));\n\t }\n\t catch (NumberFormatException ex)\n\t {\n try\n\t\t{\n slabel = (short) (Short.parseShort(szlabel.substring(1)));\n\t\t}\n\t catch (NumberFormatException ex2)\n\t {\n throw new IllegalArgumentException(\"In fourth column neither state number or ID found in segmentation file. Use '-labels' option to run overlap enrichment treating fourth column as labels\");\n\t\t}\n\t }\n\n\t //alsegments.add(new SegmentRec(szchrom,nbegin,nend,slabel));\n\t if (slabel > nmaxlabel)\n\t {\n\t nmaxlabel = slabel;\n\t }\n\t }\n\n\t Integer objMax = (Integer) hmchromMax.get(szchrom);\n\t if (objMax == null)\n\t {\n\t //System.out.println(\"on chrom \"+szchrom);\n\t hmchromMax.put(szchrom,Integer.valueOf(nend));\n\t hmchromToIndex.put(szchrom, Integer.valueOf(hmchromToIndex.size()));\n\t alchromindex.add(szchrom);\n\t }\n\t else\n\t {\n\t int ncurrmax = objMax.intValue();\n\t if (ncurrmax < nend)\n\t {\n\t hmchromMax.put(szchrom, Integer.valueOf(nend));\t\t \n\t }\n\t }\n }\n brinputsegment.close();\n\n double[][] tallyoverlaplabel = new double[files.length][nmaxlabel+1];\n double[] dsumoverlaplabel = new double[files.length];\n double[] tallylabel = new double[nmaxlabel+1];\n\n int numchroms = alchromindex.size();\n\n for (int nchrom = 0; nchrom < numchroms; nchrom++)\n {\n //ArrayList alsegments = new ArrayList(); //stores all the segments\n\t String szchromwant = (String) alchromindex.get(nchrom);\n\t //System.out.println(\"processing \"+szchromwant);\n\t int nsize = ((Integer) hmchromMax.get(szchromwant)).intValue()+1;\n\t short[] labels = new short[nsize]; //stores the hard label assignments\n\n\t //sets to -1 so missing segments not counted as label 0\n\t for (int npos = 0; npos < nsize; npos++)\n\t {\n labels[npos] = -1;\n\t }\n\n\t brinputsegment = Util.getBufferedReader(szinputsegment);\n\t while ((szLine = brinputsegment.readLine())!=null)\n\t {\n\t StringTokenizer st;\n\t if (bstringlabels)\n\t {\n\t st = new StringTokenizer(szLine,\"\\t\");\n\t }\n\t else\n\t {\n\t st = new StringTokenizer(szLine,\"\\t \");\n\t }\n\n\t String szchrom = st.nextToken().trim();\n\t if (!szchrom.equals(szchromwant)) \n\t continue;\n\n\t int nbegincoord = Integer.parseInt(st.nextToken().trim());\n\t int nendcoord = Integer.parseInt(st.nextToken().trim());\n\n\t //if (nbegincoord % nbinsize != 0)\n\t // {\n\t //\t throw new IllegalArgumentException(\"Binsize of \"+nbinsize+\" does not agree with input segment \"+szLine);\n\t //}\n\t int nbegin = nbegincoord/nbinsize;\n\t int nend = (nendcoord-1)/nbinsize;\n\t szlabel = st.nextToken().trim();\n\t short slabel = -1;\n\n\t if (bstringlabels)\n\t {\n\t\tint nunderscoreindex = szlabel.indexOf(\"_\");\n\n\t\tif (nunderscoreindex >=0)\n\t\t{\n\t\t String szprefix = szlabel.substring(0,nunderscoreindex);\n\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix));\n\t\t busedunderscore = true;\n\t\t }\n catch (NumberFormatException ex)\n\t\t {\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix.substring(1)));\n\t\t\t busedunderscore = true;\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t\t if (busedunderscore)\n\t\t\t {\n\t\t\t throw new IllegalArgumentException(\"Not a valid ID before '_' in \"+szlabel+\", while valid ID found for other entries\");\n\t\t\t }\n\t\t }\n\t\t }\n\t\t}\n\n\t\tif (!busedunderscore)\n\t\t{\n\t //handle string labels\n\t\t Short objshort = (Short) hmLabelToIndex.get(szlabel);\n\t\t slabel = ((Short) objshort).shortValue();\n\t\t}\n\t }\n\t else\n\t {\n try\n\t {\n\t slabel = (short) (Short.parseShort(szlabel));\n\t }\n\t catch (NumberFormatException ex)\n\t {\n try\n\t\t {\n slabel = (short) (Short.parseShort(szlabel.substring(1)));\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t throw new IllegalArgumentException(\"In fourth column neither state number or ID found in segmentation file. Use '-labels' option to run overlap enrichment treating fourth column as labels\");\n\t }\n\t\t}\n\t }\n\n\t if (nbegin < 0)\n\t {\n\t nbegin = 0;\n\t }\n\n\t if (nend >= labels.length)\n\t {\n\t nend = labels.length - 1;\n\t }\n\n\t //SegmentRec theSegmentRec = (SegmentRec) alsegments.get(nindex);\n\t //int nbegin = theSegmentRec.nbegin;\n\t //int nend = theSegmentRec.nend;\n\t //short slabel = theSegmentRec.slabel;\n\t //int nchrom = ((Integer) hmchromToIndex.get(theSegmentRec.szchrom)).intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\t //stores each label position in the genome\n\t for (int npos = nbegin; npos <= nend; npos++)\n\t {\n\t labels[npos] = slabel;\n\t //tallylabel[slabel]++; \n\t }\n\t tallylabel[slabel] += (nend-nbegin)+1;\n\t }\n\n\n\t for (int nfile = 0; nfile < files.length; nfile++)\n\t {\n\t double[] tallyoverlaplabel_nfile = tallyoverlaplabel[nfile];\n\n\t int nchromindex = 0;\n\t int nstartindex = 1;\n\t int nendindex = 2;\n\t int nsignalindex = 3;\n\n\t if (szcolfields != null)\n\t {\n\t StringTokenizer stcolfields = new StringTokenizer(szcolfields,\",\");\n\t\tnchromindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t\tnstartindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t\tnendindex = Integer.parseInt(stcolfields.nextToken().trim());\n\n\t if (busesignal)\n\t {\n\t nsignalindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t }\n\t }\n\n \t \n if (bunique)\n\t {\n\t //Iterator itrChroms = hmchromToIndex.entrySet().iterator();\n\t //while (itrChroms.hasNext())\n\t //{\n\t //Map.Entry pairs = (Map.Entry) itrChroms.next();\n\t //String szchrom =(String) pairs.getKey();\n\t //int nchrom = ((Integer) pairs.getValue()).intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\n\t //reading in the coordinates to overlap with\n BufferedReader brcoords = Util.getBufferedReader(szinputcoorddir +files[nfile]);\n\t ArrayList alrecs = new ArrayList();\n\t while ((szLine = brcoords.readLine())!=null)\n\t {\n\t if (szLine.trim().equals(\"\")) continue;\n\t String[] szLineA = szLine.split(\"\\\\s+\");\n\t\t if (nstartindex >= szLineA.length)\n\t\t {\n\t\t throw new IllegalArgumentException(nstartindex+\" is an invalid column index for \"+szLine+\" in \"+szinputcoorddir+files[nfile]);\n\t\t }\n\n if (nendindex >= szLineA.length)\n\t\t {\n\t\t throw new IllegalArgumentException(nendindex+\" is an invalid column index for \"+szLine+\" in \"+szinputcoorddir+files[nfile]);\n\t\t }\n\n\t String szcurrchrom = szLineA[nchromindex];\n\t \t if (szchromwant.equals(szcurrchrom))\n\t\t {\n\t\t int nbeginactual =Integer.parseInt(szLineA[nstartindex])-noffsetleft;\n\t\t int nendactual =Integer.parseInt(szLineA[nendindex])-noffsetright;\n\t\t if (bcenter)\n\t\t {\n\t\t nbeginactual = (nbeginactual+nendactual)/2;\n\t\t nendactual = nbeginactual;\n\t\t }\n\t\t alrecs.add(new Interval(nbeginactual,nendactual));\n\t\t }\n\t\t}\n\t brcoords.close();\n\n\t\tObject[] alrecA = alrecs.toArray();\n\t\tArrays.sort(alrecA,new IntervalCompare());\n\n\t\tboolean bclosed = true;\n\t int nintervalstart = -1;\n\t\tint nintervalend = -1;\n\t\tboolean bdone = false;\n\n\t\tfor (int nindex = 0; (nindex <= alrecA.length&&(alrecA.length>0)); nindex++)\n\t\t{\n\t\t int ncurrstart = -1;\n\t\t int ncurrend = -1;\n\n\t\t if (nindex == alrecA.length)\n\t\t {\n\t\t bdone = true;\n\t\t }\n\t\t else \n\t\t {\n\t\t ncurrstart = ((Interval) alrecA[nindex]).nstart;\n\t\t ncurrend = ((Interval) alrecA[nindex]).nend;\n if (nindex == 0)\n\t\t {\n\t\t nintervalstart = ncurrstart;\n\t\t\t nintervalend = ncurrend;\n\t\t }\n\t\t else if (ncurrstart <= nintervalend)\n\t\t {\n\t\t //this read is still in the active interval\n\t\t //extending the current active interval \n\t\t if (ncurrend > nintervalend)\n\t\t {\n\t\t nintervalend = ncurrend;\n\t\t }\n\t\t }\t\t \n\t\t else \n\t\t {\n\t\t //just finished the current active interval\n\t\t bdone = true;\n\t\t }\n\t\t }\n\n\t\t if (bdone)\n\t {\t\t \t\t\t\t\t\t\n\t int nbegin = nintervalstart/nbinsize;\n\t\t int nend = nintervalend/nbinsize;\n\n\t\t if (nbegin < 0)\n\t\t {\n\t\t nbegin = 0;\n\t\t }\n\n\t\t if (nend >= labels.length)\n\t\t {\n\t\t nend = labels.length - 1;\n\t\t }\n\n\t for (int nbin = nbegin; nbin <= nend; nbin++)\n\t {\n\t\t if (labels[nbin]>=0)\n\t\t {\n\t\t tallyoverlaplabel_nfile[labels[nbin]]++;\n\t\t }\n\t\t }\n\n\t\t if (bbaseres)\n\t\t { \n\t\t //dbeginfrac represents the fraction of bases the nbegin interval\n\t\t //which came after the actual nbeginactual\n\t double dbeginfrac = (nintervalstart - nbegin*nbinsize)/(double) nbinsize;\n\t\t\t \n\t\t\t //dendfrac represents the fraction of bases after the end position in the interval\n\t double dendfrac = ((nend+1)*nbinsize-nintervalend-1)/(double) nbinsize;\n\t\t\t \n\t\t\t if ((nbegin < labels.length)&&(labels[nbegin]>=0)&&(dbeginfrac>0))\n\t\t { \t\t\t \n\t\t //only counted the bases if nbegin was less than labels.length \n\t\t tallyoverlaplabel_nfile[labels[nbegin]]-=dbeginfrac;\n\t\t\t }\n\n if ((nend < labels.length)&&(labels[nend]>=0)&&(dendfrac>0))\n\t\t {\n\t\t //only counted the bases if nend was less than labels.length \n\t\t tallyoverlaplabel_nfile[labels[nend]]-=dendfrac;\n\t\t\t }\n\t\t }\t\t\t \n\n\t\t nintervalstart = ncurrstart; \n\t\t nintervalend = ncurrend;\n\t\t bdone = false;\n\t\t }\t \n\t\t}\n\t\t //}\n\t }\n\t else\n\t {\n\t BufferedReader brcoords = Util.getBufferedReader(szinputcoorddir +files[nfile]);\n\t while ((szLine = brcoords.readLine())!=null)\n\t {\n\t if (szLine.trim().equals(\"\")) continue;\n\t String[] szLineA = szLine.split(\"\\\\s+\");\n\n\t String szchrom = szLineA[nchromindex];\n\t\t if (!szchromwant.equals(szchrom))\n\t\t continue;\n\n\t int nbeginactual =Integer.parseInt(szLineA[nstartindex])-noffsetleft;\n\t int nbegin = nbeginactual/nbinsize;\n\n\t\t int nendactual =Integer.parseInt(szLineA[nendindex])-noffsetright;\n\t int nend = nendactual/nbinsize;\n\n\t\t double damount;\n\t if ((busesignal)&&(nsignalindex < szLineA.length))\n\t {\n\t \t damount = Double.parseDouble(szLineA[nsignalindex]);\n\t\t }\n\t else\n\t {\n\t damount = 1;\n\t\t }\n\n\t //Integer objChrom = (Integer) hmchromToIndex.get(szchrom);\n\t //if (objChrom != null)\n\t\t //{\n\t\t //we have the chromosome corresponding to this read\n\t //int nchrom = objChrom.intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\n\t\t if (bcenter)\n\t {\n\t //using the center position of the interval only\n\t\t int ncenter = (nbeginactual+nendactual)/(2*nbinsize);\n\t\t if ((ncenter < labels.length)&&(labels[ncenter]>=0))\n\t\t {\n\t tallyoverlaplabel_nfile[labels[ncenter]]+=damount;\t\t\t \n\t\t }\n\t\t }\n\t else\n\t {\n\t\t if (nbegin < 0)\n\t\t {\n\t\t nbegin = 0;\n\t\t }\n\t\t //using the full interval range\n\t\t //no requirement on uniqueness\n\t\t if (nend >= labels.length)\n\t\t {\n\t\t nend = labels.length - 1;\n\t\t }\n\t\t\t\n\t for (int nindex = nbegin; nindex <= nend; nindex++)\n\t {\n\t\t if (labels[nindex]>=0)\n\t\t {\n\t\t //increment overlap tally not checking for uniqueness\n \t tallyoverlaplabel_nfile[labels[nindex]]+=damount;\n\t\t\t }\n\t\t }\t \n\n\t\t if (bbaseres)\n\t\t { \n\t\t //dbeginfrac represents the fraction of bases the nbegin interval\n\t\t\t //which came after the actual nbeginactual\n\t double dbeginfrac = (nbeginactual - nbegin*nbinsize)/(double) nbinsize;\n\t\t\t \n\t\t\t //dendfrac represents the fraction of bases after the end position in the interval\n\t double dendfrac = ((nend+1)*nbinsize-nendactual-1)/(double) nbinsize;\n\n\t\t\t if ((nbegin < labels.length)&&(labels[nbegin]>=0)&&(dbeginfrac>0))\n\t\t\t { \n\t\t\t //only counted the bases if nbegin was less than labels.length \n\t\t\t tallyoverlaplabel_nfile[labels[nbegin]]-=damount*dbeginfrac;\n\t\t\t }\n\n if ((nend < labels.length)&&(labels[nend]>=0)&&(dendfrac>0))\n\t\t {\n\t\t //only counted the bases if nend was less than labels.length \n\t\t\t tallyoverlaplabel_nfile[labels[nend]]-=damount*dendfrac;\n\t\t\t }\t\t\t \n\t\t }\n\t\t }\n\t\t}\t \n\t\tbrcoords.close();\n\t }\n\t }\n }\n\n\n for (int nfile = 0; nfile < files.length; nfile++)\n {\n\t double[] tallyoverlaplabel_nfile = tallyoverlaplabel[nfile];\n\n\t for (int nindex = 0; nindex < tallyoverlaplabel_nfile.length; nindex++)\n {\n dsumoverlaplabel[nfile] += tallyoverlaplabel_nfile[nindex];\n }\n\t\t\n if (dsumoverlaplabel[nfile] < EPSILONOVERLAP) // 0.00000001)\n {\n\t throw new IllegalArgumentException(\"Coordinates in \"+files[nfile]+\" not assigned to any state. Check if chromosome naming in \"+files[nfile]+\n\t\t\t\t\t\t \" match those in the segmentation file.\");\n\t }\n\t}\n\n\toutputenrichment(szoutfile, files,tallyoverlaplabel, tallylabel, dsumoverlaplabel,theColor,\n\t\t\t bcolscaleheat,ChromHMM.convertCharOrderToStringOrder(szlabel.charAt(0)),sztitle,0,szlabelmapping,szlabel.charAt(0), bprintimage, bstringlabels, hmIndexToLabel);\n }",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();"
] | [
"0.5430595",
"0.53330356",
"0.5092637",
"0.50776035",
"0.50656015",
"0.5061517",
"0.50255305",
"0.501914",
"0.5013608",
"0.5012112",
"0.50097734",
"0.49939048",
"0.49924976",
"0.49502665",
"0.4925594",
"0.4921649",
"0.49190572",
"0.49077547",
"0.49070126",
"0.49018925",
"0.48999804",
"0.488493",
"0.48846358",
"0.48739335",
"0.48632213",
"0.48605266",
"0.4857587",
"0.4850445",
"0.4847252",
"0.48460993",
"0.4840025",
"0.48375157",
"0.4835153",
"0.48279664",
"0.48260632",
"0.4825089",
"0.48174995",
"0.4810252",
"0.47989792",
"0.47930446",
"0.4789371",
"0.4776887",
"0.4776887",
"0.47760046",
"0.4774504",
"0.4767123",
"0.4766668",
"0.4761947",
"0.47615656",
"0.47611192",
"0.4757967",
"0.47522596",
"0.47508425",
"0.47504175",
"0.47475496",
"0.47463676",
"0.47461066",
"0.4736013",
"0.47317326",
"0.47290143",
"0.47165486",
"0.47142136",
"0.47133484",
"0.47119215",
"0.4709692",
"0.4696957",
"0.469671",
"0.469411",
"0.46940878",
"0.46931034",
"0.4691934",
"0.46906507",
"0.46882108",
"0.46882108",
"0.46868974",
"0.4684452",
"0.46817034",
"0.46813998",
"0.46741885",
"0.46733153",
"0.4672824",
"0.467257",
"0.467188",
"0.4666837",
"0.46659094",
"0.4664564",
"0.46611282",
"0.4659277",
"0.4656269",
"0.4654199",
"0.46540377",
"0.46501794",
"0.46494237",
"0.46490437",
"0.46490437",
"0.46490437",
"0.46490437",
"0.46490437",
"0.46490437",
"0.46490437",
"0.46490437"
] | 0.0 | -1 |
/ / / / / / / / / / / / 424 | public TimeZone getTimeZone() { return this.timeZone; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int method_2436() {\r\n return 16;\r\n }",
"Info mo7564ix();",
"static int getNumPatterns() { return 64; }",
"public static int offset_group() {\n return (24 / 8);\n }",
"public void init24()\n {\n\t \twidth= p[21]<<24 | p[20]<<16 | p[19]<<8 | p[18];\n\t\theight= p[25]<<24 | p[24]<<16 | p[23]<<8 | p[22];\n\t\tint extra=(width*3)%4;\n \tif(extra!=0)\n \tpadding=4-extra;\n int x,z=54;\n l=0;\n int j=0;\n for(int q=0;q<height;q++)\n {\n x=0;\n \t while(x<width)\n \t {\n \t b=p[z]&0xff;\n if(j<maxbinary)\n {\n if(binary[j]!=0)\n {\n p1[z]=p[z]&0xff|binary[j++];\n b1=p1[z]&0xff;\n }\n else\n {\n p1[z]=p[z]&0xff & (binary[j++]|0xfe);\n b1=p1[z]&0xff;\n }\n }\n else\n b1=p[z]&0xff;\n \tg=p[z+1]&0xff;\n if(j<maxbinary)\n {\n if(binary[j]!=0)\n {\n p1[z+1]=p[z+1]&0xff|binary[j++];\n g1=p[z+1]&0xff;\n }\n else\n {\n p1[z+1]=p[z+1]&0xff & (binary[j++]|0xfe);\n g1=p1[z+1]&0xff;\n }\n }\n else\n g1=p[z]&0xff;\n r=p[z+2]&0xff;\n if(j<maxbinary)\n {\n if(binary[j]!=0)\n {\n p1[z+2]=p[z+2]&0xfe|binary[j++];\n r1=p[z+2]&0xff;\n }\n else\n {\n p1[z+2]=p[z+2]&0xff & (binary[j++]|0xfe);\n r1=p1[z+2]&0xff;\n }\n }\n else\n r1=p[z]&0xff;\n\tz=z+3;\n\tpix[l]= 255<<24 | r<<16 | g<<8 | b;\n pix1[l]= 255<<24 | r1<<16 | g1<<8 | b1;\n\tl++;\n\tx++;\n\t}\nz=z+padding;\n}\nint k;\nx=0;\n\tfor(i=l-width;i>=0;i=i-width) //l=WIDTH * height\n\t{\n\t\tfor(k=0;k<width;k++)\n\t\t{\n\t\tpixels[x]=pix[i+k];\n pixels1[x]=pix[i+k];\n\t\tx++;\n\t\t}\n\t}\n }",
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"public int mo36g() {\n return 8;\n }",
"public int mo36g() {\n return 4;\n }",
"@Override\n\tpublic int seatCapacity() {\n\t\treturn 4;\n\t}",
"public static int size_moteId() {\n return (16 / 8);\n }",
"int regionSplitBits4DownSampledTable();",
"@Override\n\tpublic int computeSize() {\n\t\treturn 36;\n\t}",
"long getUnknown72();",
"private static int getBytes(long r23) {\n /*\n java.lang.ThreadLocal<byte[]> r0 = TEMP_NUMBER_BUFFER\n java.lang.Object r0 = r0.get()\n byte[] r0 = (byte[]) r0\n r1 = 20\n if (r0 != 0) goto L_0x0013\n byte[] r0 = new byte[r1]\n java.lang.ThreadLocal<byte[]> r2 = TEMP_NUMBER_BUFFER\n r2.set(r0)\n L_0x0013:\n r2 = -9223372036854775808\n r4 = 54\n r5 = 57\n r6 = 45\n r7 = 53\n r8 = 56\n r9 = 55\n r10 = 51\n r11 = 50\n r12 = 0\n r13 = 48\n r14 = 1\n int r15 = (r23 > r2 ? 1 : (r23 == r2 ? 0 : -1))\n if (r15 != 0) goto L_0x0076\n r0[r12] = r6\n r0[r14] = r5\n r2 = 2\n r0[r2] = r11\n r2 = 3\n r0[r2] = r11\n r2 = 4\n r0[r2] = r10\n r2 = 5\n r0[r2] = r10\n r2 = 6\n r0[r2] = r9\n r2 = 7\n r0[r2] = r11\n r2 = 8\n r0[r2] = r13\n r2 = 9\n r0[r2] = r10\n r2 = 10\n r0[r2] = r4\n r2 = 11\n r0[r2] = r8\n r2 = 12\n r0[r2] = r7\n r2 = 13\n r3 = 52\n r0[r2] = r3\n r2 = 14\n r0[r2] = r9\n r2 = 15\n r0[r2] = r9\n r2 = 16\n r0[r2] = r7\n r2 = 17\n r0[r2] = r8\n r2 = 18\n r0[r2] = r13\n r2 = 19\n r0[r2] = r8\n return r1\n L_0x0076:\n r1 = 0\n int r3 = (r23 > r1 ? 1 : (r23 == r1 ? 0 : -1))\n if (r3 != 0) goto L_0x007f\n r0[r12] = r13\n return r14\n L_0x007f:\n if (r3 >= 0) goto L_0x0088\n r0[r12] = r6\n long r15 = java.lang.Math.abs(r23)\n goto L_0x008b\n L_0x0088:\n r14 = 0\n r15 = r23\n L_0x008b:\n r17 = 9\n r19 = 10\n r21 = 1\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0099\n r17 = r21\n goto L_0x017e\n L_0x0099:\n r17 = 99\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00a3\n r17 = r19\n goto L_0x017e\n L_0x00a3:\n r17 = 999(0x3e7, double:4.936E-321)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00ad\n r17 = 100\n goto L_0x017e\n L_0x00ad:\n r17 = 9999(0x270f, double:4.94E-320)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00b7\n r17 = 1000(0x3e8, double:4.94E-321)\n goto L_0x017e\n L_0x00b7:\n r17 = 99999(0x1869f, double:4.9406E-319)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00c2\n r17 = 10000(0x2710, double:4.9407E-320)\n goto L_0x017e\n L_0x00c2:\n r17 = 999999(0xf423f, double:4.94065E-318)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00ce\n r17 = 100000(0x186a0, double:4.94066E-319)\n goto L_0x017e\n L_0x00ce:\n r17 = 9999999(0x98967f, double:4.940656E-317)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00da\n r17 = 1000000(0xf4240, double:4.940656E-318)\n goto L_0x017e\n L_0x00da:\n r17 = 99999999(0x5f5e0ff, double:4.9406564E-316)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00e6\n r17 = 10000000(0x989680, double:4.9406565E-317)\n goto L_0x017e\n L_0x00e6:\n r17 = 999999999(0x3b9ac9ff, double:4.940656453E-315)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00f2\n r17 = 100000000(0x5f5e100, double:4.94065646E-316)\n goto L_0x017e\n L_0x00f2:\n r17 = 9999999999(0x2540be3ff, double:4.940656458E-314)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0100\n r17 = 1000000000(0x3b9aca00, double:4.94065646E-315)\n goto L_0x017e\n L_0x0100:\n r17 = 99999999999(0x174876e7ff, double:4.94065645836E-313)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0110\n r17 = 10000000000(0x2540be400, double:4.9406564584E-314)\n goto L_0x017e\n L_0x0110:\n r17 = 999999999999(0xe8d4a50fff, double:4.940656458408E-312)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x011f\n r17 = 100000000000(0x174876e800, double:4.9406564584E-313)\n goto L_0x017e\n L_0x011f:\n r17 = 9999999999999(0x9184e729fff, double:4.940656458412E-311)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x012e\n r17 = 1000000000000(0xe8d4a51000, double:4.94065645841E-312)\n goto L_0x017e\n L_0x012e:\n r17 = 99999999999999(0x5af3107a3fff, double:4.9406564584124E-310)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x013d\n r17 = 10000000000000(0x9184e72a000, double:4.9406564584125E-311)\n goto L_0x017e\n L_0x013d:\n r17 = 999999999999999(0x38d7ea4c67fff, double:4.94065645841246E-309)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x014c\n r17 = 100000000000000(0x5af3107a4000, double:4.94065645841247E-310)\n goto L_0x017e\n L_0x014c:\n r17 = 9999999999999999(0x2386f26fc0ffff, double:5.431165199810527E-308)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x015b\n r17 = 1000000000000000(0x38d7ea4c68000, double:4.940656458412465E-309)\n goto L_0x017e\n L_0x015b:\n r17 = 99999999999999999(0x16345785d89ffff, double:5.620395787888204E-302)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x016a\n r17 = 10000000000000000(0x2386f26fc10000, double:5.431165199810528E-308)\n goto L_0x017e\n L_0x016a:\n r17 = 999999999999999999(0xde0b6b3a763ffff, double:7.832953389245684E-242)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0179\n r17 = 100000000000000000(0x16345785d8a0000, double:5.620395787888205E-302)\n goto L_0x017e\n L_0x0179:\n r17 = 1000000000000000000(0xde0b6b3a7640000, double:7.832953389245686E-242)\n L_0x017e:\n long r1 = r15 / r17\n int r3 = (int) r1\n switch(r3) {\n case 0: goto L_0x01b6;\n case 1: goto L_0x01af;\n case 2: goto L_0x01aa;\n case 3: goto L_0x01a5;\n case 4: goto L_0x019e;\n case 5: goto L_0x0199;\n case 6: goto L_0x0194;\n case 7: goto L_0x018f;\n case 8: goto L_0x018a;\n case 9: goto L_0x0185;\n default: goto L_0x0184;\n }\n L_0x0184:\n goto L_0x01bb\n L_0x0185:\n int r3 = r14 + 1\n r0[r14] = r5\n goto L_0x01ba\n L_0x018a:\n int r3 = r14 + 1\n r0[r14] = r8\n goto L_0x01ba\n L_0x018f:\n int r3 = r14 + 1\n r0[r14] = r9\n goto L_0x01ba\n L_0x0194:\n int r3 = r14 + 1\n r0[r14] = r4\n goto L_0x01ba\n L_0x0199:\n int r3 = r14 + 1\n r0[r14] = r7\n goto L_0x01ba\n L_0x019e:\n int r3 = r14 + 1\n r6 = 52\n r0[r14] = r6\n goto L_0x01ba\n L_0x01a5:\n int r3 = r14 + 1\n r0[r14] = r10\n goto L_0x01ba\n L_0x01aa:\n int r3 = r14 + 1\n r0[r14] = r11\n goto L_0x01ba\n L_0x01af:\n int r3 = r14 + 1\n r6 = 49\n r0[r14] = r6\n goto L_0x01ba\n L_0x01b6:\n int r3 = r14 + 1\n r0[r14] = r13\n L_0x01ba:\n r14 = r3\n L_0x01bb:\n int r3 = (r17 > r21 ? 1 : (r17 == r21 ? 0 : -1))\n if (r3 != 0) goto L_0x01c0\n goto L_0x01d8\n L_0x01c0:\n java.lang.Long.signum(r17)\n long r1 = r1 * r17\n long r15 = r15 - r1\n r1 = 0\n int r3 = (r15 > r1 ? 1 : (r15 == r1 ? 0 : -1))\n if (r3 != 0) goto L_0x01d9\n L_0x01cc:\n int r1 = (r17 > r21 ? 1 : (r17 == r21 ? 0 : -1))\n if (r1 <= 0) goto L_0x01d8\n int r1 = r14 + 1\n r0[r14] = r13\n long r17 = r17 / r19\n r14 = r1\n goto L_0x01cc\n L_0x01d8:\n return r14\n L_0x01d9:\n long r17 = r17 / r19\n goto L_0x017e\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.unboundid.util.ByteStringBuffer.getBytes(long):int\");\n }",
"void mo33732Px();",
"public static int offset_sampleCnt() {\n return (24 / 8);\n }",
"public int getPatchNameLength() \n {\n return 16; \n }",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"public static int size_group() {\n return (8 / 8);\n }",
"public abstract long mo9746k();",
"public int m12824k() {\n return this.f10120g;\n }",
"private int m5345e() {\n if (Process.myUid() == 1000) {\n return 0;\n }\n boolean equals;\n try {\n equals = \"mounted\".equals(Environment.getExternalStorageState());\n } catch (Exception e) {\n equals = false;\n }\n if (C1222aj.m5343c() && !equals) {\n return 0;\n }\n File file = new File(C1222aj.m5334a(this.f4232a).getPath() + File.separator + \"carrierdata\");\n if (!file.exists() || !file.isDirectory()) {\n return 0;\n }\n File[] listFiles = file.listFiles();\n if (listFiles == null || listFiles.length <= 0) {\n return 0;\n }\n ArrayList a = C1222aj.m5336a(listFiles);\n return a.size() == 1 ? ((File) a.get(0)).length() <= 0 ? 10 : 1 : a.size() >= 2 ? 2 : 0;\n }",
"java.lang.String getField1648();",
"protected int bytesPerAtom() {\n return (2);\n }",
"protected int bytesPerAtom() {\n return (2);\n }",
"int regionSplitBits4PVTable();",
"public static int offset_count() {\n return (16 / 8);\n }",
"public static String m578g() {\r\n long j = 0;\r\n try {\r\n if (\"mounted\".equals(Environment.getExternalStorageState())) {\r\n StatFs statFs = new StatFs(Environment.getExternalStorageDirectory().getPath());\r\n j = ((long) statFs.getBlockCount()) * ((long) statFs.getBlockSize());\r\n }\r\n } catch (Exception e) {\r\n }\r\n return String.valueOf(j);\r\n }",
"public int getBlockSize()\n/* */ {\n/* 43 */ return this.blockSize;\n/* */ }",
"@Override\r\n\tpublic int getVDevInfo() {\r\n\t\treturn 0x08100302; // Diag-x24 Ry on VM/370R6 Sixpack 1.2 for a 3420 as 181 with or without a mounted tape\r\n\t}",
"static java.util.Map getLocalGroupsMap(java.lang.String r22, jcifs.smb.NtlmPasswordAuthentication r23, int r24) throws java.io.IOException {\n /*\n r5 = getServerSid(r22, r23);\n r10 = 0;\n r14 = 0;\n r3 = 0;\n r17 = new jcifs.dcerpc.msrpc.samr$SamrSamArray;\n r17.<init>();\n r19 = sid_cache;\n monitor-enter(r19);\n r18 = new java.lang.StringBuilder;\t Catch:{ all -> 0x013f }\n r18.<init>();\t Catch:{ all -> 0x013f }\n r20 = \"ncacn_np:\";\n r0 = r18;\n r1 = r20;\n r18 = r0.append(r1);\t Catch:{ all -> 0x013f }\n r0 = r18;\n r1 = r22;\n r18 = r0.append(r1);\t Catch:{ all -> 0x013f }\n r20 = \"[\\\\PIPE\\\\samr]\";\n r0 = r18;\n r1 = r20;\n r18 = r0.append(r1);\t Catch:{ all -> 0x013f }\n r18 = r18.toString();\t Catch:{ all -> 0x013f }\n r0 = r18;\n r1 = r23;\n r10 = jcifs.dcerpc.DcerpcHandle.getHandle(r0, r1);\t Catch:{ all -> 0x013f }\n r15 = new jcifs.dcerpc.msrpc.SamrPolicyHandle;\t Catch:{ all -> 0x013f }\n r18 = 33554432; // 0x2000000 float:9.403955E-38 double:1.6578092E-316;\n r0 = r22;\n r1 = r18;\n r15.<init>(r10, r0, r1);\t Catch:{ all -> 0x013f }\n r4 = new jcifs.dcerpc.msrpc.SamrDomainHandle;\t Catch:{ all -> 0x0142 }\n r18 = 33554432; // 0x2000000 float:9.403955E-38 double:1.6578092E-316;\n r0 = r18;\n r4.<init>(r10, r15, r0, r5);\t Catch:{ all -> 0x0142 }\n r16 = new jcifs.dcerpc.msrpc.MsrpcEnumerateAliasesInDomain;\t Catch:{ all -> 0x0081 }\n r18 = 65535; // 0xffff float:9.1834E-41 double:3.23786E-319;\n r0 = r16;\n r1 = r18;\n r2 = r17;\n r0.<init>(r4, r1, r2);\t Catch:{ all -> 0x0081 }\n r0 = r16;\n r10.sendrecv(r0);\t Catch:{ all -> 0x0081 }\n r0 = r16;\n r0 = r0.retval;\t Catch:{ all -> 0x0081 }\n r18 = r0;\n if (r18 == 0) goto L_0x0097;\n L_0x006d:\n r18 = new jcifs.smb.SmbException;\t Catch:{ all -> 0x0081 }\n r0 = r16;\n r0 = r0.retval;\t Catch:{ all -> 0x0081 }\n r20 = r0;\n r21 = 0;\n r0 = r18;\n r1 = r20;\n r2 = r21;\n r0.<init>(r1, r2);\t Catch:{ all -> 0x0081 }\n throw r18;\t Catch:{ all -> 0x0081 }\n L_0x0081:\n r18 = move-exception;\n r3 = r4;\n r14 = r15;\n L_0x0084:\n if (r10 == 0) goto L_0x0093;\n L_0x0086:\n if (r14 == 0) goto L_0x0090;\n L_0x0088:\n if (r3 == 0) goto L_0x008d;\n L_0x008a:\n r3.close();\t Catch:{ all -> 0x0094 }\n L_0x008d:\n r14.close();\t Catch:{ all -> 0x0094 }\n L_0x0090:\n r10.close();\t Catch:{ all -> 0x0094 }\n L_0x0093:\n throw r18;\t Catch:{ all -> 0x0094 }\n L_0x0094:\n r18 = move-exception;\n L_0x0095:\n monitor-exit(r19);\t Catch:{ all -> 0x0094 }\n throw r18;\n L_0x0097:\n r11 = new java.util.HashMap;\t Catch:{ all -> 0x0081 }\n r11.<init>();\t Catch:{ all -> 0x0081 }\n r6 = 0;\n L_0x009d:\n r0 = r16;\n r0 = r0.sam;\t Catch:{ all -> 0x0081 }\n r18 = r0;\n r0 = r18;\n r0 = r0.count;\t Catch:{ all -> 0x0081 }\n r18 = r0;\n r0 = r18;\n if (r6 >= r0) goto L_0x0129;\n L_0x00ad:\n r0 = r16;\n r0 = r0.sam;\t Catch:{ all -> 0x0081 }\n r18 = r0;\n r0 = r18;\n r0 = r0.entries;\t Catch:{ all -> 0x0081 }\n r18 = r0;\n r7 = r18[r6];\t Catch:{ all -> 0x0081 }\n r0 = r7.idx;\t Catch:{ all -> 0x0081 }\n r18 = r0;\n r0 = r18;\n r1 = r24;\n r12 = getGroupMemberSids0(r10, r4, r5, r0, r1);\t Catch:{ all -> 0x0081 }\n r8 = new jcifs.smb.SID;\t Catch:{ all -> 0x0081 }\n r0 = r7.idx;\t Catch:{ all -> 0x0081 }\n r18 = r0;\n r0 = r18;\n r8.<init>(r5, r0);\t Catch:{ all -> 0x0081 }\n r18 = 4;\n r0 = r18;\n r8.type = r0;\t Catch:{ all -> 0x0081 }\n r18 = r5.getDomainName();\t Catch:{ all -> 0x0081 }\n r0 = r18;\n r8.domainName = r0;\t Catch:{ all -> 0x0081 }\n r18 = new jcifs.dcerpc.UnicodeString;\t Catch:{ all -> 0x0081 }\n r0 = r7.name;\t Catch:{ all -> 0x0081 }\n r20 = r0;\n r21 = 0;\n r0 = r18;\n r1 = r20;\n r2 = r21;\n r0.<init>(r1, r2);\t Catch:{ all -> 0x0081 }\n r18 = r18.toString();\t Catch:{ all -> 0x0081 }\n r0 = r18;\n r8.acctName = r0;\t Catch:{ all -> 0x0081 }\n r13 = 0;\n L_0x00fa:\n r0 = r12.length;\t Catch:{ all -> 0x0081 }\n r18 = r0;\n r0 = r18;\n if (r13 >= r0) goto L_0x0125;\n L_0x0101:\n r18 = r12[r13];\t Catch:{ all -> 0x0081 }\n r0 = r18;\n r9 = r11.get(r0);\t Catch:{ all -> 0x0081 }\n r9 = (java.util.ArrayList) r9;\t Catch:{ all -> 0x0081 }\n if (r9 != 0) goto L_0x0119;\n L_0x010d:\n r9 = new java.util.ArrayList;\t Catch:{ all -> 0x0081 }\n r9.<init>();\t Catch:{ all -> 0x0081 }\n r18 = r12[r13];\t Catch:{ all -> 0x0081 }\n r0 = r18;\n r11.put(r0, r9);\t Catch:{ all -> 0x0081 }\n L_0x0119:\n r18 = r9.contains(r8);\t Catch:{ all -> 0x0081 }\n if (r18 != 0) goto L_0x0122;\n L_0x011f:\n r9.add(r8);\t Catch:{ all -> 0x0081 }\n L_0x0122:\n r13 = r13 + 1;\n goto L_0x00fa;\n L_0x0125:\n r6 = r6 + 1;\n goto L_0x009d;\n L_0x0129:\n if (r10 == 0) goto L_0x0138;\n L_0x012b:\n if (r15 == 0) goto L_0x0135;\n L_0x012d:\n if (r4 == 0) goto L_0x0132;\n L_0x012f:\n r4.close();\t Catch:{ all -> 0x013a }\n L_0x0132:\n r15.close();\t Catch:{ all -> 0x013a }\n L_0x0135:\n r10.close();\t Catch:{ all -> 0x013a }\n L_0x0138:\n monitor-exit(r19);\t Catch:{ all -> 0x013a }\n return r11;\n L_0x013a:\n r18 = move-exception;\n r3 = r4;\n r14 = r15;\n goto L_0x0095;\n L_0x013f:\n r18 = move-exception;\n goto L_0x0084;\n L_0x0142:\n r18 = move-exception;\n r14 = r15;\n goto L_0x0084;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: jcifs.smb.SID.getLocalGroupsMap(java.lang.String, jcifs.smb.NtlmPasswordAuthentication, int):java.util.Map\");\n }",
"private static double freqOfKey(int index) {\n return 440 * Math.pow(2, (double) (index - 12) / 24);\n }",
"short getDP1( byte[] buffer, short offset );",
"@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }",
"java.lang.String getField1280();",
"int getWayLength();",
"int processFourthShortForShort(int index, int keyLength) {\n\t\t// process the fourth Short integer in the Key Entry Set\n\t\tif(keyLength == 1) {\n\t\t\t// SET KeyValueOffset = GeoKeyDirectory + GeoKeyOffset + 6\n\t\t\treturn (int) keyEntrySet.get(index+3);\n\t\t} else {\n\t\t\t// SET KeyValueOffset = GeoKeyDirectory + (KeyValueOffset * 2)\n\t\t\treturn (int) keyEntrySet.get(keyLength);\n\t\t}\n\t}",
"private String m20344d(String str) {\n String valueOf = String.valueOf(Math.abs(str.hashCode() % 100));\n return this.f17416e + File.separator + valueOf;\n }",
"@Override\r\n\tpublic int getRDevInfo() {\r\n\t\treturn 0x08100802; // Diag-x24 Ry+1 on VM/370R6 Sixpack 1.2 for a 3420 as 181 with or without a mounted tape\r\n\t}",
"java.lang.String getField1624();",
"public static int size_infos_log_src() {\n return (16 / 8);\n }",
"public int arn() {\n return 383;\n }",
"int count() {\n return index.capacity() / 24;\n }",
"private byte[] m1034b(java.lang.String r8) {\n /*\n r7 = this;\n r6 = 2\n r4 = 6\n r2 = 0\n java.lang.String r0 = \":\"\n java.lang.String[] r0 = r8.split(r0)\n byte[] r1 = new byte[r4]\n if (r0 == 0) goto L_0x0010\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 == r4) goto L_0x001e\n L_0x0010:\n r0 = 6\n java.lang.String[] r0 = new java.lang.String[r0] // Catch:{ Throwable -> 0x0043 }\n r3 = r2\n L_0x0014:\n int r4 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 >= r4) goto L_0x001e\n java.lang.String r4 = \"0\"\n r0[r3] = r4 // Catch:{ Throwable -> 0x0043 }\n int r3 = r3 + 1\n goto L_0x0014\n L_0x001e:\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r2 >= r3) goto L_0x0041\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n int r3 = r3.length() // Catch:{ Throwable -> 0x0043 }\n if (r3 <= r6) goto L_0x0033\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 0\n r5 = 2\n java.lang.String r3 = r3.substring(r4, r5) // Catch:{ Throwable -> 0x0043 }\n r0[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n L_0x0033:\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 16\n int r3 = java.lang.Integer.parseInt(r3, r4) // Catch:{ Throwable -> 0x0043 }\n byte r3 = (byte) r3 // Catch:{ Throwable -> 0x0043 }\n r1[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n int r2 = r2 + 1\n goto L_0x001e\n L_0x0041:\n r0 = r1\n L_0x0042:\n return r0\n L_0x0043:\n r0 = move-exception\n java.lang.String r1 = \"Req\"\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n java.lang.String r3 = \"getMacBa \"\n java.lang.StringBuilder r2 = r2.append(r3)\n java.lang.StringBuilder r2 = r2.append(r8)\n java.lang.String r2 = r2.toString()\n com.amap.loc.C0310c.m956a(r0, r1, r2)\n java.lang.String r0 = \"00:00:00:00:00:00\"\n byte[] r0 = r7.m1034b(r0)\n goto L_0x0042\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.loc.C0321cj.m1034b(java.lang.String):byte[]\");\n }",
"int memSize() {\n return super.memSize() + 4 * 4; }",
"public abstract long mo9743h();",
"private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }",
"public static int m8655e() {\n return 8;\n }",
"public int getSipDscp();",
"public int m224a() {\n return 1;\n }",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"@Override\r\n protected int sizeOf(String key, Bitmap b) {\n return b.getHeight() * b.getWidth() * 4;\r\n }",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"public static int offsetBits_group() {\n return 24;\n }",
"public int NextMbAddress(int n) {\n\t\tint PicSizeInMapUnits= (sps0.pic_width_in_mbs_minus_1+1)*(sps0.pic_height_in_map_units_minus_1+1);\n\t\t// int FrameHeightInMbs = (2-(sps0.frame_mbs_only_flag ? 1:0))*(sps0.pic_height_in_map_units_minus_1+1);\n \t\t// int PicHeightInMbs = FrameHeightInMbs / (1+(field_pic_flag ? 1:0));\n\n \t\tint PicSizeInMbs = (sps0.pic_width_in_mbs_minus_1+1) * (PicHeightInMbs);\n\t\t// (7-34)\n\t\tint MapUnitsInSliceGroup0 = Math.min(((pps0.slice_group_change_rate_minus1 + 1) * slice_group_change_cycle), \n\t\t\t(PicSizeInMapUnits));\n\t\t// System.out.println(MapUnitsInSliceGroup0);\n\t\tint sizeOfUpperLeftGroup;\n\t\tif(pps0.num_slice_groups_minus1==1&&(pps0.slice_group_map_type==4||pps0.slice_group_map_type==5)){\n\n\t\t\tsizeOfUpperLeftGroup=(pps0.slice_group_change_direction_flag ? (PicSizeInMapUnits - MapUnitsInSliceGroup0)\n\t\t\t\t: MapUnitsInSliceGroup0);\n\t\t}\n\t\tint [] mapUnitToSliceGroupMap=new int[PicSizeInMapUnits];\n\t\tif(pps0.num_slice_groups_minus1==0){\n\t\t\t// System.out.println(\"zero \");\n\t\t\tfor(int i=0;i<pps0.pic_size_in_map_units_minus1+1;i++){\n\t\t\t\tmapUnitToSliceGroupMap[i]=0;\n\t\t\t}\t\t\t\n\t\t}\n\n\t\telse if(pps0.num_slice_groups_minus1!=0){\n\t\t\tif(pps0.slice_group_map_type==0){\n\t\t\t\t// 8.2.2.1\n\t\t\t}\n\t\t\telse if(pps0.slice_group_map_type==1){\n\t\t\t\t// 8.2.2.2\n\t\t\t}else if(pps0.slice_group_map_type==2){\n\t\t\t\t// 8.2.2.3\n\t\t\t}else if(pps0.slice_group_map_type==3){\n\t\t\t\t// 8.2.2.4\n\t\t\t}else if(pps0.slice_group_map_type==4){\n\t\t\t\t// 8.2.2.5\n\t\t\t}\n\t\t\telse if(pps0.slice_group_map_type==5){\n\t\t\t\t// 8.2.2.6\n\t\t\t}\n\t\t\telse if(pps0.slice_group_map_type==6){\n\t\t\t\t// 8.2.2.7\n\t\t\t}\n\t\t}\n\n\n\t\t\t\t\t\t\t\t\t/* 8.2.2.8 */\n \t\tint[] MbToSliceGroupMap=new int[PicSizeInMbs];\n \t\tfor(int i=0;i<PicSizeInMbs;i++){\n \t\t\tif(sps0.frame_mbs_only_flag==true||field_pic_flag==true){\n \t\t\t\t// System.out.println(PicSizeInMbs+\" \"+PicSizeInMapUnits);\n \t\t\t\tMbToSliceGroupMap[i]=mapUnitToSliceGroupMap[i];\n \t\t\t} else if(MbaffFrameFlag){\n \t\t\t\tMbToSliceGroupMap[i]=mapUnitToSliceGroupMap[(int)i/2];\n\n \t\t\t}else if(sps0.frame_mbs_only_flag==false&&sps0.mb_adaptive_frame_field_flag==false&&field_pic_flag==false){\n \t\t\t\tMbToSliceGroupMap[i]=mapUnitToSliceGroupMap[(int)(i/(2*sps0.pic_width_in_mbs_minus_1+1))\n \t\t\t\t*sps0.pic_width_in_mbs_minus_1+1+(i%sps0.pic_width_in_mbs_minus_1+1)];\n \t\t\t}\n\n \t\t}\n\t\t// i = n + 1 \n\t\t// while( i < PicSizeInMbs && MbToSliceGroupMap[ i ] != MbToSliceGroupMap[ n ] )\n\t\t // i++; \n\t\t// nextMbAddress = i\n\t\tint i = n + 1;\n\t\t// int nextMbAddress = i;\n\n\t\twhile(i<PicSizeInMbs &&( MbToSliceGroupMap[i]!=MbToSliceGroupMap[n])) {\n\t\t\ti++;\n\t\t\t// System.out.println(\"here mb address\");\n\t\t\t// nextMbAddress = i;\n\t\t}\n\t\t// System.out.println(\"nextMbAddress \"+i);\n\t\treturn i;\n\t}",
"public long mo2483h() {\n return mo2625k() != null ? (long) mo2625k().size() : 0;\n }",
"public abstract long mo9229aD();",
"public int getUnitSize() {\n\t\n\treturn 254; // A d64 block is 254 bytes (256 - pointer to the next sector).\n }",
"int getPadding();",
"private void m76768f() {\n m76770h();\n m76769g();\n }",
"private static String m21398d() {\n try {\n for (NetworkInterface networkInterface : Collections.list(NetworkInterface.getNetworkInterfaces())) {\n if (networkInterface.getName().equalsIgnoreCase(\"wlan0\")) {\n byte[] hardwareAddress = networkInterface.getHardwareAddress();\n if (hardwareAddress == null) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder();\n for (byte valueOf : hardwareAddress) {\n sb.append(String.format(\"%02X:\", new Object[]{Byte.valueOf(valueOf)}));\n }\n if (sb.length() > 0) {\n sb.deleteCharAt(sb.length() - 1);\n }\n return sb.toString();\n }\n }\n } catch (Throwable th) {\n C5205o.m21464a(th);\n }\n return \"02:00:00:00:00:00\";\n }",
"private static byte[] getEightBits(byte[] bits56) {\n byte[] bits64 = new byte[8];\n System.arraycopy(bits56, 0, bits64, 0, 7);\n bits64[7] = (byte) (((bits56[0] & 1) << 1) | ((bits56[1] & 1) << 2) | ((bits56[2] & 1) << 3)\n | ((bits56[3] & 1) << 4) | ((bits56[4] & 1) << 5) | ((bits56[5] & 1) << 6)\n | ((bits56[6] & 1) << 7));\n return bits64;\n }",
"private static byte[] m24635a(Context context, String str) {\n String f = C6014b.m23956f();\n String string = Secure.getString(context.getContentResolver(), \"android_id\");\n String substring = str.substring(0, Math.min(8, str.length() - 1));\n StringBuilder sb = new StringBuilder();\n sb.append(substring);\n sb.append(f.substring(0, Math.min(8, f.length() - 1)));\n String sb2 = sb.toString();\n StringBuilder sb3 = new StringBuilder();\n sb3.append(sb2);\n sb3.append(string.substring(0, Math.min(8, string.length() - 1)));\n String sb4 = sb3.toString();\n if (sb4.length() != 24) {\n StringBuilder sb5 = new StringBuilder();\n sb5.append(sb4);\n sb5.append(str.substring(8, 24 - sb4.length()));\n sb4 = sb5.toString();\n }\n return sb4.getBytes();\n }",
"private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }",
"public int getExtendedID()\r\n/* 50: */ {\r\n/* 51: 39 */ return 0;\r\n/* 52: */ }",
"void procedure()\n {\n try\n {\n fkey=new FileInputStream(file2);\n }\n catch(Exception e)\n {\n System.out.println(e);\n }\n keybuf= new byte[16];\n try\n {\n fkey.read(keybuf);\n z= new int[52];\n j1=0;\n i1=0;\n for(i=0;i<52;i++)\n z[i]=0;\n while( i1<8)\n {\n if((j1+1)%2==0)\n {\n z[i1]|=keybuf[j1]; // dividing 64 bit cypher block into four 16 bit registers\n\t i1++;\n }\n else\n \t {\n\t z[i1]=keybuf[j1];\n\t z[i1]<<=8;\n }\n\t j1++;\n }\n i=0;\n\t for(j1=1;j1<=5;j1++)\n\t {\n\t i++;\n\t z[i+7]=((z[i]<<9)&0xfe00)|((z[i+1]>>7)&0x1ff);\n\t z[i+8]=((z[i+1]<<9)&0xfe00)|((z[i+2]>>7)&0x1ff);\n\t z[i+9]=((z[i+2]<<9)&0xfe00)|((z[i+3]>>7)&0x1ff);\n\t z[i+10]=((z[i+3]<<9)&0xfe00)|((z[i+4]>>7)&0x1ff);\n\t z[i+11]=((z[i+4]<<9)&0xfe00)|((z[i+5]>>7)&0x1ff);\n\t z[i+12]=((z[i+5]<<9)&0xfe00)|((z[i+6]>>7)&0x1ff);\n z[i+13]=((z[i+6]<<9)&0xfe00)|((z[i-1]>>7)&0x1ff);\n\t z[i+14]=((z[i-1]<<9)&0xfe00)|((z[i]>>7)&0x1ff);\n\t i=i+7;\n\t }\n i1=41;\n\t z[48]=((z[i1]<<9)&0xfe00)|((z[i1+1]>>7)&0x1ff);\n\t z[49]=((z[i1+1]<<9)&0xfe00)|((z[i1+2]>>7)&0x1ff);\n\t z[50]=((z[i1+2]<<9)&0xfe00)|((z[i1+3]>>7)&0x1ff);\n\t z[51]=((z[i1+3]<<9)&0xfe00)|((z[i1+4]>>7)&0x1ff);\n}\ncatch(Exception e)\n{\nSystem.out.println(e);\n}\n}",
"public int getVideoDscp();",
"public int getPartsMask()\r\n/* 62: */ {\r\n/* 63: 52 */ return this.CoverSides | 0x20000000;\r\n/* 64: */ }",
"public int getSnakeStartLength();",
"public static int size_nodeid() {\n return (8 / 8);\n }",
"public long mo9743h() {\n return mo9773w();\n }",
"private static final byte[] xfsl_d_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -95, 0, 0, 86,\n\t\t\t\t86, 86, 51, 51, 51, -111, -111, -111, -1, -1, -1, 33, -2, 14,\n\t\t\t\t77, 97, 100, 101, 32, 119, 105, 116, 104, 32, 71, 73, 77, 80,\n\t\t\t\t0, 33, -7, 4, 1, 10, 0, 3, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0,\n\t\t\t\t2, 44, -100, -113, -87, -53, 7, -48, -36, -101, 108, 90, 42,\n\t\t\t\t-81, -122, 59, 108, 62, 5, -34, -122, -120, 95, 18, 12, -126,\n\t\t\t\t38, 40, 41, 32, -84, -16, -22, 14, 83, -116, -107, 54, -119,\n\t\t\t\t26, 90, -28, -125, 0, -127, 5, 0, 59 };\n\t\treturn data;\n\t}",
"private int m128366a() {\n String c = C40173d.m128358c();\n if (!new File(c).exists()) {\n new File(c).mkdirs();\n }\n for (MediaModel mediaModel : this.f104446a) {\n String str = mediaModel.f88156b;\n C7573i.m23582a((Object) str, \"model.filePath\");\n if (C40173d.m128357b(str)) {\n Bitmap a = C40168a.f104413a.mo99928a(mediaModel.f88156b, 720, 1280);\n if (a != null) {\n StringBuilder sb = new StringBuilder();\n sb.append(c);\n sb.append(C40173d.m128354a(\".png\"));\n String sb2 = sb.toString();\n C42341f.m134636a(a, new File(sb2), 50, CompressFormat.PNG);\n C40168a.m128334a(a);\n mediaModel.f88156b = sb2;\n }\n }\n }\n return 0;\n }",
"public static int sizeBits_parentId() {\n return 16;\n }",
"public static int size_receiverNodeID() {\n return (8 / 8);\n }",
"byte[] mo38566a();",
"public static int offset_cost() {\n return (56 / 8);\n }",
"public long mo9743h() {\n return mo9784w();\n }",
"@Override\n public int getSize() {\n return 64;\n }",
"public abstract long mo9748m();",
"private static String m21386a(int i) {\n StringBuilder sb = new StringBuilder();\n sb.append(i & 255);\n String str = \".\";\n sb.append(str);\n sb.append((i >> 8) & 255);\n sb.append(str);\n sb.append((i >> 16) & 255);\n sb.append(str);\n sb.append((i >> 24) & 255);\n return sb.toString();\n }",
"public static int offset_infos_log_src() {\n return (16 / 8);\n }",
"public abstract int getCntGrnd();",
"public void init241()\n {\n\t \twidth= p2[21]<<24 | p2[20]<<16 | p2[19]<<8 | p2[18];\n\n\n\n\t\theight= p2[25]<<24 | p2[24]<<16 | p2[23]<<8 | p2[22];\n\n\n\t\tint extra=(width*3)%4;\n \tif(extra!=0)\n \tpadding=4-extra;\n int x,z=54;\n l=0;\n int j=0;\n i=0;\n for(int q=0;q<height;q++)\n {\n x=0;\n \t while(x<width)\n \t{\n \t b=p2[z]&0xff;\n binary[j++]=b&0x01;\n g=p2[z+1]&0xff;\n binary[j++]=g&0x01;\n \t r=p2[z+2]&0xff;\n binary[j++]=r&0x01;\n \t pix[l]= 255<<24 | r<<16 | g<<8 | b;\n z=z+3;\n x++;\n \t l++;\n }\n z=z+padding;\n }\n int k;\n x=0;\n stringcon();\n\n\n\tfor(i=l-width;i>=0;i=i-width)\n\t{\n\t\tfor(k=0;k<width;k++)\n\t\t{\n\t\tpixels[x]=pix[i+k];\n// pixels1[x]=pix[i+k];\n\t\tx++;\n\t\t}\n\t}\n}",
"public long mo9743h() {\n return mo9760w();\n }",
"public static void main(String[] args) {\n// String before1 = \"27e80000\";\n// String before1 = \"715b00000\";\n String before1 = \"715b00000\";\n\n long after1 = Long.parseLong(before1, 16);\n System.out.println(after1);\n\n// String before2 = \"28d80000\";\n// String before2 = \"7c0000000\";\n// String before2 = \"71db80000\";\n String before2 = \"720580000\";\n long after2 = Long.parseLong(before2, 16);\n System.out.println(after2);\n\n long size = (after2 - after1) / 1024 / 1024;\n System.out.println(\"Size: \" + size + \"M\");\n }",
"public static int size_addr() {\n return (16 / 8);\n }",
"public static int size_parentId() {\n return (16 / 8);\n }",
"private int m23822a() {\n int min = Math.min(this.f25314a.getMemoryClass() * 1048576, Integer.MAX_VALUE);\n if (min < 33554432) {\n return 4194304;\n }\n if (min < 67108864) {\n return 6291456;\n }\n if (VERSION.SDK_INT < 11) {\n return 8388608;\n }\n return min / 4;\n }",
"public static int size_senderNodeID() {\n return (8 / 8);\n }",
"public static int size_infos_seq_num() {\n return (16 / 8);\n }",
"public int mo25072g() {\n return this.f14802d;\n }",
"public static int offsetBits_virtual_clk() {\n return 104;\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tint i, x=4,w=9,q;\r\n\t\tfor(i=-1;i<20;i+=3) {\r\n\t\t\tx++;\r\n\t\t\tfor(q=4;q<11;q++) {\r\n\t\t\t\tdo {\r\n\t\t\t\t\ti=+3;\r\n\t\t\t\t\tw=sizeof(i);\r\n\t\t\t\t\ti=x+w;\r\n\t\t\t\t\tx=w+i;\r\n\t\t\t\t\t\t\r\n\t\t\t\t} while (x<15);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"x:\"+x+\"i:\"+i);\r\n\r\n\t}",
"static int size_of_xri(String passed){\n\t\treturn 2;\n\t}",
"public abstract long mo24409b();",
"public static int offset_length() {\n return (32 / 8);\n }",
"public byte[] mo3891a() {\n int i;\n int i2;\n int i3;\n int i4;\n int i5;\n int i6;\n int i7;\n int i8;\n int i9;\n int i10;\n int i11;\n int i12;\n int i13;\n int i14;\n int i15;\n int i16;\n int i17;\n int i18;\n byte[] b;\n int i19;\n int length;\n mo3892b();\n int i20 = 3072;\n if (this.f687G != null) {\n i20 = 3072 + this.f687G.length + 1;\n }\n byte[] bArr = new byte[i20];\n bArr[0] = Byte.parseByte(this.f688a);\n byte[] b2 = C0331cr.m1177b(this.f689b);\n System.arraycopy(b2, 0, bArr, 1, b2.length);\n int length2 = b2.length + 1;\n try {\n byte[] bytes = this.f690c.getBytes(\"GBK\");\n bArr[length2] = (byte) bytes.length;\n length2++;\n System.arraycopy(bytes, 0, bArr, length2, bytes.length);\n i = length2 + bytes.length;\n } catch (Throwable th) {\n C0310c.m956a(th, \"Req\", \"buildV4Dot2\");\n bArr[length2] = 0;\n i = length2 + 1;\n }\n try {\n byte[] bytes2 = this.f691d.getBytes(\"GBK\");\n bArr[i] = (byte) bytes2.length;\n i++;\n System.arraycopy(bytes2, 0, bArr, i, bytes2.length);\n i2 = i + bytes2.length;\n } catch (Throwable th2) {\n C0310c.m956a(th2, \"Req\", \"buildV4Dot21\");\n bArr[i] = 0;\n i2 = i + 1;\n }\n try {\n byte[] bytes3 = this.f702o.getBytes(\"GBK\");\n bArr[i2] = (byte) bytes3.length;\n i2++;\n System.arraycopy(bytes3, 0, bArr, i2, bytes3.length);\n i3 = i2 + bytes3.length;\n } catch (Throwable th3) {\n C0310c.m956a(th3, \"Req\", \"buildV4Dot22\");\n bArr[i2] = 0;\n i3 = i2 + 1;\n }\n try {\n byte[] bytes4 = this.f692e.getBytes(\"GBK\");\n bArr[i3] = (byte) bytes4.length;\n i3++;\n System.arraycopy(bytes4, 0, bArr, i3, bytes4.length);\n i4 = i3 + bytes4.length;\n } catch (Throwable th4) {\n C0310c.m956a(th4, \"Req\", \"buildV4Dot23\");\n bArr[i3] = 0;\n i4 = i3 + 1;\n }\n try {\n byte[] bytes5 = this.f693f.getBytes(\"GBK\");\n bArr[i4] = (byte) bytes5.length;\n i4++;\n System.arraycopy(bytes5, 0, bArr, i4, bytes5.length);\n i5 = i4 + bytes5.length;\n } catch (Throwable th5) {\n C0310c.m956a(th5, \"Req\", \"buildV4Dot24\");\n bArr[i4] = 0;\n i5 = i4 + 1;\n }\n try {\n byte[] bytes6 = this.f694g.getBytes(\"GBK\");\n bArr[i5] = (byte) bytes6.length;\n i5++;\n System.arraycopy(bytes6, 0, bArr, i5, bytes6.length);\n i6 = i5 + bytes6.length;\n } catch (Throwable th6) {\n C0310c.m956a(th6, \"Req\", \"buildV4Dot25\");\n bArr[i5] = 0;\n i6 = i5 + 1;\n }\n try {\n byte[] bytes7 = this.f708u.getBytes(\"GBK\");\n bArr[i6] = (byte) bytes7.length;\n i6++;\n System.arraycopy(bytes7, 0, bArr, i6, bytes7.length);\n i7 = i6 + bytes7.length;\n } catch (Throwable th7) {\n C0310c.m956a(th7, \"Req\", \"buildV4Dot26\");\n bArr[i6] = 0;\n i7 = i6 + 1;\n }\n try {\n byte[] bytes8 = this.f695h.getBytes(\"GBK\");\n bArr[i7] = (byte) bytes8.length;\n i7++;\n System.arraycopy(bytes8, 0, bArr, i7, bytes8.length);\n i8 = i7 + bytes8.length;\n } catch (Throwable th8) {\n C0310c.m956a(th8, \"Req\", \"buildV4Dot27\");\n bArr[i7] = 0;\n i8 = i7 + 1;\n }\n try {\n byte[] bytes9 = this.f703p.getBytes(\"GBK\");\n bArr[i8] = (byte) bytes9.length;\n i8++;\n System.arraycopy(bytes9, 0, bArr, i8, bytes9.length);\n i9 = i8 + bytes9.length;\n } catch (Throwable th9) {\n C0310c.m956a(th9, \"Req\", \"buildV4Dot28\");\n bArr[i8] = 0;\n i9 = i8 + 1;\n }\n try {\n byte[] bytes10 = this.f704q.getBytes(\"GBK\");\n bArr[i9] = (byte) bytes10.length;\n i9++;\n System.arraycopy(bytes10, 0, bArr, i9, bytes10.length);\n i10 = i9 + bytes10.length;\n } catch (Throwable th10) {\n C0310c.m956a(th10, \"Req\", \"buildV4Dot29\");\n bArr[i9] = 0;\n i10 = i9 + 1;\n }\n try {\n if (TextUtils.isEmpty(this.f707t)) {\n bArr[i10] = 0;\n length = i10 + 1;\n } else {\n byte[] b3 = m1034b(this.f707t);\n bArr[i10] = (byte) b3.length;\n int i21 = i10 + 1;\n System.arraycopy(b3, 0, bArr, i21, b3.length);\n length = b3.length + i21;\n }\n i11 = length;\n } catch (Throwable th11) {\n C0310c.m956a(th11, \"Req\", \"buildV4Dot219\");\n bArr[i10] = 0;\n i11 = i10 + 1;\n }\n try {\n byte[] bytes11 = this.f709v.getBytes(\"GBK\");\n bArr[i11] = (byte) bytes11.length;\n i11++;\n System.arraycopy(bytes11, 0, bArr, i11, bytes11.length);\n i12 = i11 + bytes11.length;\n } catch (Throwable th12) {\n C0310c.m956a(th12, \"Req\", \"buildV4Dot211\");\n bArr[i11] = 0;\n i12 = i11 + 1;\n }\n try {\n byte[] bytes12 = this.f710w.getBytes(\"GBK\");\n bArr[i12] = (byte) bytes12.length;\n i12++;\n System.arraycopy(bytes12, 0, bArr, i12, bytes12.length);\n i13 = i12 + bytes12.length;\n } catch (Throwable th13) {\n C0310c.m956a(th13, \"Req\", \"buildV4Dot212\");\n bArr[i12] = 0;\n i13 = i12 + 1;\n }\n try {\n byte[] bytes13 = this.f711x.getBytes(\"GBK\");\n bArr[i13] = (byte) bytes13.length;\n i13++;\n System.arraycopy(bytes13, 0, bArr, i13, bytes13.length);\n i14 = bytes13.length + i13;\n } catch (Throwable th14) {\n C0310c.m956a(th14, \"Req\", \"buildV4Dot213\");\n bArr[i13] = 0;\n i14 = i13 + 1;\n }\n bArr[i14] = Byte.parseByte(this.f712y);\n int i22 = i14 + 1;\n bArr[i22] = Byte.parseByte(this.f697j);\n int i23 = i22 + 1;\n bArr[i23] = Byte.parseByte(this.f713z);\n int i24 = i23 + 1;\n if (this.f713z.equals(\"1\")) {\n byte[] d = C0331cr.m1187d(mo3890a(\"mcc\"));\n System.arraycopy(d, 0, bArr, i24, d.length);\n int length3 = i24 + d.length;\n byte[] d2 = C0331cr.m1187d(mo3890a(\"mnc\"));\n System.arraycopy(d2, 0, bArr, length3, d2.length);\n int length4 = length3 + d2.length;\n byte[] d3 = C0331cr.m1187d(mo3890a(\"lac\"));\n System.arraycopy(d3, 0, bArr, length4, d3.length);\n int length5 = length4 + d3.length;\n byte[] e = C0331cr.m1190e(mo3890a(\"cellid\"));\n System.arraycopy(e, 0, bArr, length5, e.length);\n int length6 = e.length + length5;\n int parseInt = Integer.parseInt(mo3890a(\"signal\"));\n if (parseInt > 127) {\n parseInt = 0;\n }\n bArr[length6] = (byte) parseInt;\n int i25 = length6 + 1;\n if (this.f682B.length() == 0) {\n bArr[i25] = 0;\n i24 = i25 + 1;\n } else {\n int length7 = this.f682B.split(\"\\\\*\").length;\n bArr[i25] = (byte) length7;\n i24 = i25 + 1;\n int i26 = 0;\n while (i26 < length7) {\n byte[] d4 = C0331cr.m1187d(m1032a(\"lac\", i26));\n System.arraycopy(d4, 0, bArr, i24, d4.length);\n int length8 = i24 + d4.length;\n byte[] e2 = C0331cr.m1190e(m1032a(\"cellid\", i26));\n System.arraycopy(e2, 0, bArr, length8, e2.length);\n int length9 = e2.length + length8;\n int parseInt2 = Integer.parseInt(m1032a(\"signal\", i26));\n if (parseInt2 > 127) {\n parseInt2 = 0;\n }\n bArr[length9] = (byte) parseInt2;\n i26++;\n i24 = length9 + 1;\n }\n }\n } else if (this.f713z.equals(\"2\")) {\n byte[] d5 = C0331cr.m1187d(mo3890a(\"mcc\"));\n System.arraycopy(d5, 0, bArr, i24, d5.length);\n int length10 = i24 + d5.length;\n byte[] d6 = C0331cr.m1187d(mo3890a(\"sid\"));\n System.arraycopy(d6, 0, bArr, length10, d6.length);\n int length11 = length10 + d6.length;\n byte[] d7 = C0331cr.m1187d(mo3890a(\"nid\"));\n System.arraycopy(d7, 0, bArr, length11, d7.length);\n int length12 = length11 + d7.length;\n byte[] d8 = C0331cr.m1187d(mo3890a(\"bid\"));\n System.arraycopy(d8, 0, bArr, length12, d8.length);\n int length13 = length12 + d8.length;\n byte[] e3 = C0331cr.m1190e(mo3890a(\"lon\"));\n System.arraycopy(e3, 0, bArr, length13, e3.length);\n int length14 = length13 + e3.length;\n byte[] e4 = C0331cr.m1190e(mo3890a(C1447g.f3485ae));\n System.arraycopy(e4, 0, bArr, length14, e4.length);\n int length15 = e4.length + length14;\n int parseInt3 = Integer.parseInt(mo3890a(\"signal\"));\n if (parseInt3 > 127) {\n parseInt3 = 0;\n }\n bArr[length15] = (byte) parseInt3;\n int i27 = length15 + 1;\n bArr[i27] = 0;\n i24 = i27 + 1;\n }\n if (this.f683C.length() == 0) {\n bArr[i24] = 0;\n i15 = i24 + 1;\n } else {\n bArr[i24] = 1;\n int i28 = i24 + 1;\n try {\n String[] split = this.f683C.split(MiPushClient.ACCEPT_TIME_SEPARATOR);\n byte[] b4 = m1034b(split[0]);\n System.arraycopy(b4, 0, bArr, i28, b4.length);\n int length16 = i28 + b4.length;\n try {\n byte[] bytes14 = split[2].getBytes(\"GBK\");\n bArr[length16] = (byte) bytes14.length;\n length16++;\n System.arraycopy(bytes14, 0, bArr, length16, bytes14.length);\n i16 = length16 + bytes14.length;\n } catch (Throwable th15) {\n C0310c.m956a(th15, \"Req\", \"buildV4Dot214\");\n bArr[length16] = 0;\n i16 = length16 + 1;\n }\n int parseInt4 = Integer.parseInt(split[1]);\n if (parseInt4 > 127) {\n parseInt4 = 0;\n }\n bArr[i16] = Byte.parseByte(String.valueOf(parseInt4));\n i15 = i16 + 1;\n } catch (Throwable th16) {\n C0310c.m956a(th16, \"Req\", \"buildV4Dot216\");\n byte[] b5 = m1034b(\"00:00:00:00:00:00\");\n System.arraycopy(b5, 0, bArr, i28, b5.length);\n int length17 = b5.length + i28;\n bArr[length17] = 0;\n int i29 = length17 + 1;\n bArr[i29] = Byte.parseByte(\"0\");\n i15 = i29 + 1;\n }\n }\n String[] split2 = this.f684D.split(\"\\\\*\");\n if (TextUtils.isEmpty(this.f684D) || split2.length == 0) {\n bArr[i15] = 0;\n i17 = i15 + 1;\n } else {\n bArr[i15] = (byte) split2.length;\n int i30 = i15 + 1;\n for (String str : split2) {\n String[] split3 = str.split(MiPushClient.ACCEPT_TIME_SEPARATOR);\n try {\n b = m1034b(split3[0]);\n } catch (Throwable th17) {\n C0310c.m956a(th17, \"Req\", \"buildV4Dot2110\");\n b = m1034b(\"00:00:00:00:00:00\");\n }\n System.arraycopy(b, 0, bArr, i30, b.length);\n int length18 = i30 + b.length;\n try {\n byte[] bytes15 = split3[2].getBytes(\"GBK\");\n bArr[length18] = (byte) bytes15.length;\n length18++;\n System.arraycopy(bytes15, 0, bArr, length18, bytes15.length);\n i19 = bytes15.length + length18;\n } catch (Throwable th18) {\n C0310c.m956a(th18, \"Req\", \"buildV4Dot217\");\n bArr[length18] = 0;\n i19 = length18 + 1;\n }\n int parseInt5 = Integer.parseInt(split3[1]);\n if (parseInt5 > 127) {\n parseInt5 = 0;\n }\n bArr[i19] = Byte.parseByte(String.valueOf(parseInt5));\n i30 = i19 + 1;\n }\n byte[] b6 = C0331cr.m1177b(Integer.parseInt(this.f685E));\n System.arraycopy(b6, 0, bArr, i30, b6.length);\n i17 = i30 + b6.length;\n }\n try {\n byte[] bytes16 = this.f686F.getBytes(\"GBK\");\n if (bytes16.length > 127) {\n bytes16 = null;\n }\n if (bytes16 == null) {\n bArr[i17] = 0;\n i18 = i17 + 1;\n } else {\n bArr[i17] = (byte) bytes16.length;\n int i31 = i17 + 1;\n System.arraycopy(bytes16, 0, bArr, i31, bytes16.length);\n i18 = bytes16.length + i31;\n }\n } catch (Throwable th19) {\n C0310c.m956a(th19, \"Req\", \"buildV4Dot218\");\n bArr[i17] = 0;\n i18 = i17 + 1;\n }\n int length19 = this.f687G != null ? this.f687G.length : 0;\n byte[] b7 = C0331cr.m1177b(length19);\n System.arraycopy(b7, 0, bArr, i18, b7.length);\n int length20 = i18 + b7.length;\n if (length19 > 0) {\n System.arraycopy(this.f687G, 0, bArr, length20, this.f687G.length);\n length20 += this.f687G.length;\n }\n byte[] bArr2 = new byte[length20];\n System.arraycopy(bArr, 0, bArr2, 0, length20);\n CRC32 crc32 = new CRC32();\n crc32.update(bArr2);\n byte[] a = C0331cr.m1167a(crc32.getValue());\n byte[] bArr3 = new byte[(a.length + length20)];\n System.arraycopy(bArr2, 0, bArr3, 0, length20);\n System.arraycopy(a, 0, bArr3, length20, a.length);\n int length21 = length20 + a.length;\n m1033a(bArr3, 0);\n return bArr3;\n }",
"private int[] m7232h() {\n this.f5578C[0] = this.f5594p;\n this.f5578C[1] = this.f5599u - this.f5594p;\n return this.f5578C;\n }",
"public static int offset_infos_seq_num() {\n return (64 / 8);\n }",
"int[] mo56160d();"
] | [
"0.5546143",
"0.55324805",
"0.551816",
"0.54615915",
"0.5413829",
"0.52866316",
"0.5254523",
"0.5183443",
"0.51754415",
"0.51560086",
"0.50926083",
"0.5080902",
"0.5043485",
"0.5040706",
"0.5010761",
"0.50069976",
"0.4993033",
"0.49787542",
"0.49768698",
"0.49740115",
"0.49452025",
"0.49327335",
"0.4929522",
"0.49253842",
"0.49253842",
"0.49216965",
"0.49165514",
"0.49158895",
"0.49154702",
"0.49098173",
"0.49093604",
"0.48968604",
"0.48832703",
"0.48731405",
"0.48637912",
"0.48590627",
"0.4857681",
"0.48554996",
"0.48531488",
"0.4821037",
"0.48129988",
"0.48122203",
"0.48085764",
"0.4806872",
"0.4801294",
"0.47902453",
"0.47882798",
"0.4787207",
"0.47816965",
"0.4779573",
"0.4779411",
"0.47760808",
"0.47744918",
"0.4764352",
"0.47558337",
"0.47556695",
"0.47551042",
"0.47541964",
"0.47538424",
"0.47451437",
"0.4744395",
"0.4736572",
"0.4733648",
"0.47330934",
"0.47320172",
"0.4727286",
"0.47272134",
"0.47255573",
"0.47185624",
"0.47148854",
"0.4709246",
"0.47085163",
"0.47053286",
"0.47042748",
"0.47032627",
"0.4701759",
"0.46944028",
"0.4693189",
"0.46885446",
"0.46878704",
"0.46849024",
"0.46836093",
"0.46819565",
"0.46819374",
"0.46778172",
"0.46778068",
"0.46763372",
"0.46759552",
"0.46751383",
"0.46732354",
"0.46725032",
"0.4670725",
"0.46699643",
"0.4669634",
"0.4669227",
"0.4667698",
"0.46667215",
"0.46657926",
"0.4663749",
"0.46606755",
"0.46603495"
] | 0.0 | -1 |
/ / / / / / / / / / / / / | public void setTimeZone(TimeZone zone) {
/* 438 */ ParamChecks.nullNotPermitted(zone, "zone");
/* 439 */ this.timeZone = zone;
/* 440 */ setStandardTickUnits(createStandardDateTickUnits(zone, this.locale));
/* 441 */ fireChangeEvent();
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"int getWidth() {return width;}",
"double passer();",
"public abstract void bepaalGrootte();",
"public Integer getWidth(){return this.width;}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"public double getWidth() {\n return this.size * 2.0; \n }",
"int width();",
"public void getTile_B8();",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public void gored() {\n\t\t\n\t}",
"public String ring();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public String toString(){ return \"DIV\";}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"static int getNumPatterns() { return 64; }",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"public int getEdgeCount() \n {\n return 3;\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"long getWidth();",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"public abstract String division();",
"int getTribeSize();",
"double getNewWidth();",
"public int my_leaf_count();",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"public int generateRoshambo(){\n ;]\n\n }",
"void mo33732Px();",
"@Override\n public void bfs() {\n\n }",
"double seBlesser();",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"public static int size_parent() {\n return (8 / 8);\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public abstract int getSpotsNeeded();",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"public int getWidth(){\n return width;\n }",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public void leerPlanesDietas();",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"public void skystonePos4() {\n }",
"double volume(){\n return width*height*depth;\n }",
"Operations operations();",
"public String getRing();",
"int expand();",
"public double getPerimiter(){return (2*height +2*width);}",
"public abstract double getBaseWidth();",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"long getMid();",
"long getMid();",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"int getSpriteArraySize();",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"public int getWidth()\n {return width;}",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"protected int parent(int i) { return (i - 1) / 2; }",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"int depth();",
"int depth();",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"String directsTo();",
"Parallelogram(){\n length = width = height = 0;\n }",
"static void pyramid(){\n\t}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"public static int size_parentId() {\n return (16 / 8);\n }",
"public String getRingback();",
"@Override\n\tprotected void interr() {\n\t}",
"public int getTakeSpace() {\n return 0;\n }",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"public void SubRect(){\n\t\n}",
"int getSize ();"
] | [
"0.55104524",
"0.54136074",
"0.51382613",
"0.511921",
"0.5069645",
"0.50632066",
"0.5061232",
"0.50567037",
"0.50560975",
"0.50190926",
"0.50086707",
"0.50070775",
"0.49875844",
"0.4968691",
"0.49646097",
"0.4947161",
"0.4947018",
"0.49441117",
"0.49407196",
"0.4928466",
"0.49275073",
"0.49161938",
"0.48980555",
"0.48958352",
"0.48763698",
"0.48674774",
"0.48627993",
"0.48618507",
"0.48581234",
"0.48564452",
"0.48533896",
"0.48423022",
"0.48398826",
"0.4830562",
"0.4829852",
"0.4826455",
"0.48149732",
"0.47983614",
"0.4795821",
"0.4788122",
"0.4787033",
"0.47857547",
"0.477811",
"0.47777838",
"0.47773185",
"0.47716594",
"0.47687408",
"0.4767555",
"0.47666657",
"0.4758684",
"0.47540286",
"0.47495034",
"0.47482887",
"0.47468567",
"0.4746059",
"0.47443146",
"0.47432604",
"0.47399372",
"0.47395262",
"0.47395262",
"0.47393134",
"0.47377515",
"0.47242114",
"0.47205007",
"0.47204065",
"0.47149622",
"0.47073272",
"0.4706161",
"0.47017768",
"0.47002885",
"0.47002885",
"0.46916506",
"0.4688795",
"0.4688655",
"0.4687753",
"0.46866032",
"0.4685604",
"0.46824268",
"0.46817905",
"0.46811056",
"0.4677107",
"0.4671675",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4671116",
"0.4668958",
"0.46668708"
] | 0.0 | -1 |
/ / / / / / / / / / 452 | public Locale getLocale() { return this.locale; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"Info mo7564ix();",
"static int getNumPatterns() { return 64; }",
"private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }",
"public int arn() {\n return 383;\n }",
"long getUnknown72();",
"public int method_2436() {\r\n return 16;\r\n }",
"public final int mo30256g() {\n return this.f7581c.f7036c.size();\n }",
"void mo33732Px();",
"public int mo36g() {\n return 8;\n }",
"public abstract int mo9754s();",
"public abstract long mo9229aD();",
"public abstract long mo9746k();",
"public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }",
"public abstract long mo13681c();",
"private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }",
"public int mo9754s() {\n return mo9774x();\n }",
"protected int bytesPerAtom() {\n return (2);\n }",
"protected int bytesPerAtom() {\n return (2);\n }",
"public int mo36g() {\n return 4;\n }",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"int regionSplitBits4DownSampledTable();",
"private int[] m7232h() {\n this.f5578C[0] = this.f5594p;\n this.f5578C[1] = this.f5599u - this.f5594p;\n return this.f5578C;\n }",
"private static int getBytes(long r23) {\n /*\n java.lang.ThreadLocal<byte[]> r0 = TEMP_NUMBER_BUFFER\n java.lang.Object r0 = r0.get()\n byte[] r0 = (byte[]) r0\n r1 = 20\n if (r0 != 0) goto L_0x0013\n byte[] r0 = new byte[r1]\n java.lang.ThreadLocal<byte[]> r2 = TEMP_NUMBER_BUFFER\n r2.set(r0)\n L_0x0013:\n r2 = -9223372036854775808\n r4 = 54\n r5 = 57\n r6 = 45\n r7 = 53\n r8 = 56\n r9 = 55\n r10 = 51\n r11 = 50\n r12 = 0\n r13 = 48\n r14 = 1\n int r15 = (r23 > r2 ? 1 : (r23 == r2 ? 0 : -1))\n if (r15 != 0) goto L_0x0076\n r0[r12] = r6\n r0[r14] = r5\n r2 = 2\n r0[r2] = r11\n r2 = 3\n r0[r2] = r11\n r2 = 4\n r0[r2] = r10\n r2 = 5\n r0[r2] = r10\n r2 = 6\n r0[r2] = r9\n r2 = 7\n r0[r2] = r11\n r2 = 8\n r0[r2] = r13\n r2 = 9\n r0[r2] = r10\n r2 = 10\n r0[r2] = r4\n r2 = 11\n r0[r2] = r8\n r2 = 12\n r0[r2] = r7\n r2 = 13\n r3 = 52\n r0[r2] = r3\n r2 = 14\n r0[r2] = r9\n r2 = 15\n r0[r2] = r9\n r2 = 16\n r0[r2] = r7\n r2 = 17\n r0[r2] = r8\n r2 = 18\n r0[r2] = r13\n r2 = 19\n r0[r2] = r8\n return r1\n L_0x0076:\n r1 = 0\n int r3 = (r23 > r1 ? 1 : (r23 == r1 ? 0 : -1))\n if (r3 != 0) goto L_0x007f\n r0[r12] = r13\n return r14\n L_0x007f:\n if (r3 >= 0) goto L_0x0088\n r0[r12] = r6\n long r15 = java.lang.Math.abs(r23)\n goto L_0x008b\n L_0x0088:\n r14 = 0\n r15 = r23\n L_0x008b:\n r17 = 9\n r19 = 10\n r21 = 1\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0099\n r17 = r21\n goto L_0x017e\n L_0x0099:\n r17 = 99\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00a3\n r17 = r19\n goto L_0x017e\n L_0x00a3:\n r17 = 999(0x3e7, double:4.936E-321)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00ad\n r17 = 100\n goto L_0x017e\n L_0x00ad:\n r17 = 9999(0x270f, double:4.94E-320)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00b7\n r17 = 1000(0x3e8, double:4.94E-321)\n goto L_0x017e\n L_0x00b7:\n r17 = 99999(0x1869f, double:4.9406E-319)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00c2\n r17 = 10000(0x2710, double:4.9407E-320)\n goto L_0x017e\n L_0x00c2:\n r17 = 999999(0xf423f, double:4.94065E-318)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00ce\n r17 = 100000(0x186a0, double:4.94066E-319)\n goto L_0x017e\n L_0x00ce:\n r17 = 9999999(0x98967f, double:4.940656E-317)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00da\n r17 = 1000000(0xf4240, double:4.940656E-318)\n goto L_0x017e\n L_0x00da:\n r17 = 99999999(0x5f5e0ff, double:4.9406564E-316)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00e6\n r17 = 10000000(0x989680, double:4.9406565E-317)\n goto L_0x017e\n L_0x00e6:\n r17 = 999999999(0x3b9ac9ff, double:4.940656453E-315)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00f2\n r17 = 100000000(0x5f5e100, double:4.94065646E-316)\n goto L_0x017e\n L_0x00f2:\n r17 = 9999999999(0x2540be3ff, double:4.940656458E-314)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0100\n r17 = 1000000000(0x3b9aca00, double:4.94065646E-315)\n goto L_0x017e\n L_0x0100:\n r17 = 99999999999(0x174876e7ff, double:4.94065645836E-313)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0110\n r17 = 10000000000(0x2540be400, double:4.9406564584E-314)\n goto L_0x017e\n L_0x0110:\n r17 = 999999999999(0xe8d4a50fff, double:4.940656458408E-312)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x011f\n r17 = 100000000000(0x174876e800, double:4.9406564584E-313)\n goto L_0x017e\n L_0x011f:\n r17 = 9999999999999(0x9184e729fff, double:4.940656458412E-311)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x012e\n r17 = 1000000000000(0xe8d4a51000, double:4.94065645841E-312)\n goto L_0x017e\n L_0x012e:\n r17 = 99999999999999(0x5af3107a3fff, double:4.9406564584124E-310)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x013d\n r17 = 10000000000000(0x9184e72a000, double:4.9406564584125E-311)\n goto L_0x017e\n L_0x013d:\n r17 = 999999999999999(0x38d7ea4c67fff, double:4.94065645841246E-309)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x014c\n r17 = 100000000000000(0x5af3107a4000, double:4.94065645841247E-310)\n goto L_0x017e\n L_0x014c:\n r17 = 9999999999999999(0x2386f26fc0ffff, double:5.431165199810527E-308)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x015b\n r17 = 1000000000000000(0x38d7ea4c68000, double:4.940656458412465E-309)\n goto L_0x017e\n L_0x015b:\n r17 = 99999999999999999(0x16345785d89ffff, double:5.620395787888204E-302)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x016a\n r17 = 10000000000000000(0x2386f26fc10000, double:5.431165199810528E-308)\n goto L_0x017e\n L_0x016a:\n r17 = 999999999999999999(0xde0b6b3a763ffff, double:7.832953389245684E-242)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0179\n r17 = 100000000000000000(0x16345785d8a0000, double:5.620395787888205E-302)\n goto L_0x017e\n L_0x0179:\n r17 = 1000000000000000000(0xde0b6b3a7640000, double:7.832953389245686E-242)\n L_0x017e:\n long r1 = r15 / r17\n int r3 = (int) r1\n switch(r3) {\n case 0: goto L_0x01b6;\n case 1: goto L_0x01af;\n case 2: goto L_0x01aa;\n case 3: goto L_0x01a5;\n case 4: goto L_0x019e;\n case 5: goto L_0x0199;\n case 6: goto L_0x0194;\n case 7: goto L_0x018f;\n case 8: goto L_0x018a;\n case 9: goto L_0x0185;\n default: goto L_0x0184;\n }\n L_0x0184:\n goto L_0x01bb\n L_0x0185:\n int r3 = r14 + 1\n r0[r14] = r5\n goto L_0x01ba\n L_0x018a:\n int r3 = r14 + 1\n r0[r14] = r8\n goto L_0x01ba\n L_0x018f:\n int r3 = r14 + 1\n r0[r14] = r9\n goto L_0x01ba\n L_0x0194:\n int r3 = r14 + 1\n r0[r14] = r4\n goto L_0x01ba\n L_0x0199:\n int r3 = r14 + 1\n r0[r14] = r7\n goto L_0x01ba\n L_0x019e:\n int r3 = r14 + 1\n r6 = 52\n r0[r14] = r6\n goto L_0x01ba\n L_0x01a5:\n int r3 = r14 + 1\n r0[r14] = r10\n goto L_0x01ba\n L_0x01aa:\n int r3 = r14 + 1\n r0[r14] = r11\n goto L_0x01ba\n L_0x01af:\n int r3 = r14 + 1\n r6 = 49\n r0[r14] = r6\n goto L_0x01ba\n L_0x01b6:\n int r3 = r14 + 1\n r0[r14] = r13\n L_0x01ba:\n r14 = r3\n L_0x01bb:\n int r3 = (r17 > r21 ? 1 : (r17 == r21 ? 0 : -1))\n if (r3 != 0) goto L_0x01c0\n goto L_0x01d8\n L_0x01c0:\n java.lang.Long.signum(r17)\n long r1 = r1 * r17\n long r15 = r15 - r1\n r1 = 0\n int r3 = (r15 > r1 ? 1 : (r15 == r1 ? 0 : -1))\n if (r3 != 0) goto L_0x01d9\n L_0x01cc:\n int r1 = (r17 > r21 ? 1 : (r17 == r21 ? 0 : -1))\n if (r1 <= 0) goto L_0x01d8\n int r1 = r14 + 1\n r0[r14] = r13\n long r17 = r17 / r19\n r14 = r1\n goto L_0x01cc\n L_0x01d8:\n return r14\n L_0x01d9:\n long r17 = r17 / r19\n goto L_0x017e\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.unboundid.util.ByteStringBuffer.getBytes(long):int\");\n }",
"public abstract long mo24410c();",
"public int mo1067a() {\n return this.f3256d.size();\n }",
"public abstract long mo9748m();",
"public static int m8655e() {\n return 8;\n }",
"public abstract long mo24409b();",
"private int m672E() {\n int i = 0;\n if (this.f552g.mo501h() >= 5) {\n byte[] f = this.f552g.mo499f();\n int g = this.f552g.mo500g();\n int i2 = 0;\n int i3 = 0;\n while (true) {\n byte b = f[g + i];\n i2 |= (b & Byte.MAX_VALUE) << i3;\n if ((b & 128) != 128) {\n this.f552g.mo495a(i + 1);\n return i2;\n }\n i3 += 7;\n i++;\n }\n } else {\n int i4 = 0;\n while (true) {\n byte u = mo470u();\n i |= (u & Byte.MAX_VALUE) << i4;\n if ((u & 128) != 128) {\n return i;\n }\n i4 += 7;\n }\n }\n }",
"public int mo9774x() {\n /*\n r5 = this;\n int r0 = r5.f9082i\n int r1 = r5.f9080g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9082i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9776z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9082i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9774x():int\");\n }",
"public int mo4452e() {\n /*\n r7 = this;\n int r0 = r7.f2518c\n r7.f2519d = r0\n r0 = 0\n r1 = 0\n r2 = 0\n L_0x0007:\n int r3 = r7.f2519d\n if (r3 <= 0) goto L_0x003b\n byte r3 = r7.mo4449a()\n r4 = -1\n if (r3 == 0) goto L_0x0034\n r5 = 1\n if (r3 == r5) goto L_0x002e\n r6 = 2\n if (r3 == r6) goto L_0x002e\n r6 = 9\n if (r3 == r6) goto L_0x0007\n switch(r3) {\n case 14: goto L_0x0028;\n case 15: goto L_0x0028;\n case 16: goto L_0x0025;\n case 17: goto L_0x0025;\n case 18: goto L_0x0022;\n default: goto L_0x001f;\n }\n L_0x001f:\n if (r2 != 0) goto L_0x0007\n goto L_0x0039\n L_0x0022:\n int r1 = r1 + 1\n goto L_0x0007\n L_0x0025:\n if (r2 != r1) goto L_0x002b\n return r5\n L_0x0028:\n if (r2 != r1) goto L_0x002b\n return r4\n L_0x002b:\n int r1 = r1 + -1\n goto L_0x0007\n L_0x002e:\n if (r1 != 0) goto L_0x0031\n return r5\n L_0x0031:\n if (r2 != 0) goto L_0x0007\n goto L_0x0039\n L_0x0034:\n if (r1 != 0) goto L_0x0037\n return r4\n L_0x0037:\n if (r2 != 0) goto L_0x0007\n L_0x0039:\n r2 = r1\n goto L_0x0007\n L_0x003b:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.core.text.BidiFormatter.C0510a.mo4452e():int\");\n }",
"public abstract long mo9743h();",
"C5537g mo4096b(int i);",
"public abstract long mo9755t();",
"private final void m710e() {\n /*\n r12 = this;\n akn r0 = r12.f531p\n akl r0 = r0.f601d\n if (r0 == 0) goto L_0x0155\n boolean r1 = r0.f580d\n r2 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n if (r1 == 0) goto L_0x0017\n aws r1 = r0.f577a\n long r4 = r1.mo1486c()\n r8 = r4\n goto L_0x0019\n L_0x0017:\n r8 = r2\n L_0x0019:\n int r1 = (r8 > r2 ? 1 : (r8 == r2 ? 0 : -1))\n if (r1 != 0) goto L_0x0122\n ajf r1 = r12.f528m\n akn r2 = r12.f531p\n akl r2 = r2.f602e\n akx r3 = r1.f445c\n r4 = 0\n if (r3 == 0) goto L_0x008a\n boolean r3 = r3.mo486w()\n if (r3 != 0) goto L_0x008a\n akx r3 = r1.f445c\n boolean r3 = r3.mo485v()\n if (r3 == 0) goto L_0x0037\n goto L_0x0042\n L_0x0037:\n if (r0 != r2) goto L_0x008a\n akx r2 = r1.f445c\n boolean r2 = r2.mo359g()\n if (r2 == 0) goto L_0x0042\n goto L_0x008a\n L_0x0042:\n bkr r2 = r1.f446d\n long r2 = r2.mo379b()\n boolean r5 = r1.f447e\n if (r5 == 0) goto L_0x0068\n blf r5 = r1.f443a\n long r5 = r5.mo379b()\n int r7 = (r2 > r5 ? 1 : (r2 == r5 ? 0 : -1))\n if (r7 >= 0) goto L_0x005c\n blf r2 = r1.f443a\n r2.mo2109d()\n goto L_0x0096\n L_0x005c:\n r1.f447e = r4\n boolean r5 = r1.f448f\n if (r5 == 0) goto L_0x0068\n blf r5 = r1.f443a\n r5.mo2107a()\n L_0x0068:\n blf r5 = r1.f443a\n r5.mo2108a(r2)\n bkr r2 = r1.f446d\n akq r2 = r2.mo376Q()\n blf r3 = r1.f443a\n akq r3 = r3.f4280a\n boolean r3 = r2.equals(r3)\n if (r3 != 0) goto L_0x0096\n blf r3 = r1.f443a\n r3.mo378a(r2)\n aje r3 = r1.f444b\n ake r3 = (p000.ake) r3\n r3.m694a(r2, r4)\n goto L_0x0096\n L_0x008a:\n r2 = 1\n r1.f447e = r2\n boolean r2 = r1.f448f\n if (r2 == 0) goto L_0x0096\n blf r2 = r1.f443a\n r2.mo2107a()\n L_0x0096:\n long r1 = r1.mo379b()\n r12.f513D = r1\n long r0 = r0.mo440b(r1)\n akp r2 = r12.f533r\n long r2 = r2.f623m\n java.util.ArrayList r5 = r12.f530o\n boolean r5 = r5.isEmpty()\n if (r5 != 0) goto L_0x011d\n akp r5 = r12.f533r\n awt r5 = r5.f612b\n boolean r5 = r5.mo1504a()\n if (r5 != 0) goto L_0x011d\n akp r5 = r12.f533r\n long r6 = r5.f613c\n int r8 = (r6 > r2 ? 1 : (r6 == r2 ? 0 : -1))\n if (r8 != 0) goto L_0x00c5\n boolean r6 = r12.f515F\n if (r6 == 0) goto L_0x00c5\n r6 = -1\n long r2 = r2 + r6\n L_0x00c5:\n r12.f515F = r4\n alh r4 = r5.f611a\n awt r5 = r5.f612b\n java.lang.Object r5 = r5.f2566a\n int r4 = r4.mo525a(r5)\n int r5 = r12.f514E\n r6 = 0\n if (r5 <= 0) goto L_0x00e1\n java.util.ArrayList r7 = r12.f530o\n int r5 = r5 + -1\n java.lang.Object r5 = r7.get(r5)\n akb r5 = (p000.akb) r5\n goto L_0x00e3\n L_0x00e1:\n L_0x00e2:\n r5 = r6\n L_0x00e3:\n if (r5 != 0) goto L_0x00e6\n goto L_0x0109\n L_0x00e6:\n int r5 = r5.f502a\n if (r4 >= 0) goto L_0x00eb\n L_0x00ea:\n goto L_0x00f4\n L_0x00eb:\n if (r4 != 0) goto L_0x0109\n r7 = 0\n int r5 = (r2 > r7 ? 1 : (r2 == r7 ? 0 : -1))\n if (r5 >= 0) goto L_0x0109\n goto L_0x00ea\n L_0x00f4:\n int r5 = r12.f514E\n int r5 = r5 + -1\n r12.f514E = r5\n if (r5 <= 0) goto L_0x0108\n java.util.ArrayList r7 = r12.f530o\n int r5 = r5 + -1\n java.lang.Object r5 = r7.get(r5)\n akb r5 = (p000.akb) r5\n goto L_0x00e3\n L_0x0108:\n goto L_0x00e2\n L_0x0109:\n int r2 = r12.f514E\n java.util.ArrayList r3 = r12.f530o\n int r3 = r3.size()\n if (r2 >= r3) goto L_0x011d\n java.util.ArrayList r2 = r12.f530o\n int r3 = r12.f514E\n java.lang.Object r2 = r2.get(r3)\n akb r2 = (p000.akb) r2\n L_0x011d:\n akp r2 = r12.f533r\n r2.f623m = r0\n goto L_0x0140\n L_0x0122:\n r12.m691a(r8)\n akp r0 = r12.f533r\n long r0 = r0.f623m\n int r2 = (r8 > r0 ? 1 : (r8 == r0 ? 0 : -1))\n if (r2 == 0) goto L_0x0140\n akp r0 = r12.f533r\n awt r7 = r0.f612b\n long r10 = r0.f614d\n r6 = r12\n akp r0 = r6.m686a(r7, r8, r10)\n r12.f533r = r0\n akc r0 = r12.f529n\n r1 = 4\n r0.mo409b(r1)\n L_0x0140:\n akn r0 = r12.f531p\n akl r0 = r0.f603f\n akp r1 = r12.f533r\n long r2 = r0.mo442c()\n r1.f621k = r2\n akp r0 = r12.f533r\n long r1 = r12.m719n()\n r0.f622l = r1\n return\n L_0x0155:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p000.ake.m710e():void\");\n }",
"public int mo12191c() {\n return this.f10948c.limit() + this.f10957l.length + (this.f10958m.length * 4);\n }",
"public static int m8651d() {\n return 4;\n }",
"public abstract Integer mo36210m();",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"public abstract int mo9753r();",
"public int mo27483b() {\n return 0;\n }",
"int memSize() {\n return super.memSize() + 4 * 4; }",
"C4945r5 mo19056B();",
"private static byte[] m2536b(Context context) {\n byte[] c = StatisticsManager.m2537c(context);\n byte[] e = StatisticsManager.m2539e(context);\n byte[] bArr = new byte[(c.length + e.length)];\n System.arraycopy(c, 0, bArr, 0, c.length);\n System.arraycopy(e, 0, bArr, c.length, e.length);\n return StatisticsManager.m2534a(context, bArr);\n }",
"public abstract int mo123248g();",
"public int getBlockSize()\n/* */ {\n/* 43 */ return this.blockSize;\n/* */ }",
"private byte[] m1034b(java.lang.String r8) {\n /*\n r7 = this;\n r6 = 2\n r4 = 6\n r2 = 0\n java.lang.String r0 = \":\"\n java.lang.String[] r0 = r8.split(r0)\n byte[] r1 = new byte[r4]\n if (r0 == 0) goto L_0x0010\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 == r4) goto L_0x001e\n L_0x0010:\n r0 = 6\n java.lang.String[] r0 = new java.lang.String[r0] // Catch:{ Throwable -> 0x0043 }\n r3 = r2\n L_0x0014:\n int r4 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 >= r4) goto L_0x001e\n java.lang.String r4 = \"0\"\n r0[r3] = r4 // Catch:{ Throwable -> 0x0043 }\n int r3 = r3 + 1\n goto L_0x0014\n L_0x001e:\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r2 >= r3) goto L_0x0041\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n int r3 = r3.length() // Catch:{ Throwable -> 0x0043 }\n if (r3 <= r6) goto L_0x0033\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 0\n r5 = 2\n java.lang.String r3 = r3.substring(r4, r5) // Catch:{ Throwable -> 0x0043 }\n r0[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n L_0x0033:\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 16\n int r3 = java.lang.Integer.parseInt(r3, r4) // Catch:{ Throwable -> 0x0043 }\n byte r3 = (byte) r3 // Catch:{ Throwable -> 0x0043 }\n r1[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n int r2 = r2 + 1\n goto L_0x001e\n L_0x0041:\n r0 = r1\n L_0x0042:\n return r0\n L_0x0043:\n r0 = move-exception\n java.lang.String r1 = \"Req\"\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n java.lang.String r3 = \"getMacBa \"\n java.lang.StringBuilder r2 = r2.append(r3)\n java.lang.StringBuilder r2 = r2.append(r8)\n java.lang.String r2 = r2.toString()\n com.amap.loc.C0310c.m956a(r0, r1, r2)\n java.lang.String r0 = \"00:00:00:00:00:00\"\n byte[] r0 = r7.m1034b(r0)\n goto L_0x0042\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.loc.C0321cj.m1034b(java.lang.String):byte[]\");\n }",
"public int mo9232aG() {\n return 0;\n }",
"public abstract long mo20901UQ();",
"public int mo45907b() {\n return this.f43062b.length;\n }",
"public final int mo9382ZU() {\n return 470;\n }",
"private int m14719r() {\n int s = m14720s();\n if (s > 0) {\n try {\n if (this.f10949d == null) {\n this.f10949d = this.f10962q.mo12209b(255);\n }\n int i = this.f10951f - this.f10952g;\n if (i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, s);\n this.f10952g += s;\n } else if (this.f10948c.remaining() + i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, i);\n this.f10952g = this.f10951f;\n m14721t();\n int i2 = s - i;\n System.arraycopy(this.f10950e, 0, this.f10949d, i, i2);\n this.f10952g += i2;\n } else {\n this.f10965t = 1;\n }\n } catch (Exception e) {\n C3111h1.m14932d(f10944y, \"Error Reading Block\", e);\n this.f10965t = 1;\n }\n }\n return s;\n }",
"public static int size_infos_log_src() {\n return (16 / 8);\n }",
"private void m50366E() {\n }",
"public int m21458g() {\n return this.f18796b == null ? 0 : this.f18796b.size();\n }",
"public int mo163c() {\n int size = this.f1963b.size();\n if (size < 1) {\n return 0;\n }\n int i = f1962a;\n return ((size / i) * (Lca.m828b(i) + 4)) + 4 + Lca.m828b(size % i);\n }",
"private static int m36201b(Rect rect) {\n return rect.width() * rect.height();\n }",
"public static int size_moteId() {\n return (16 / 8);\n }",
"public int mo45907b() {\n return this.f43064b.length;\n }",
"public static int size_parentId() {\n return (16 / 8);\n }",
"@Override\n\tpublic int computeSize() {\n\t\treturn 36;\n\t}",
"@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }",
"@Override\r\n\tpublic int size() {\n\t\treturn 27;\r\n\t}",
"public abstract int mo9749n();",
"public int getExtendedID()\r\n/* 50: */ {\r\n/* 51: 39 */ return 0;\r\n/* 52: */ }",
"private int calculateBinSize(int r15) throws java.io.IOException {\n /*\n r14 = this;\n r1 = 0\n java.io.InputStream r2 = r14.in\n int r12 = r2.available()\n r2.mark(r12)\n r4 = 0\n int r0 = r2.read() // Catch:{ all -> 0x0052 }\n L_0x000f:\n r14.checkComma(r0) // Catch:{ all -> 0x0052 }\n int r5 = r14.readByte(r2) // Catch:{ all -> 0x0052 }\n int r8 = r14.readAddress(r2) // Catch:{ all -> 0x0052 }\n int r9 = r14.readByte(r2) // Catch:{ all -> 0x0052 }\n switch(r9) {\n case 0: goto L_0x0072;\n case 1: goto L_0x0036;\n case 2: goto L_0x0057;\n case 3: goto L_0x0021;\n case 4: goto L_0x003a;\n default: goto L_0x0021;\n } // Catch:{ all -> 0x0052 }\n L_0x0021:\n int r12 = r5 * 2\n int r12 = r12 + 2\n long r10 = (long) r12 // Catch:{ all -> 0x0052 }\n r14.skip(r2, r10) // Catch:{ all -> 0x0052 }\n L_0x0029:\n int r0 = r2.read() // Catch:{ all -> 0x0052 }\n r12 = 10\n if (r0 == r12) goto L_0x0029\n r12 = 13\n if (r0 == r12) goto L_0x0029\n goto L_0x000f\n L_0x0036:\n r2.reset()\n L_0x0039:\n return r1\n L_0x003a:\n int r7 = r14.readAddress(r2) // Catch:{ all -> 0x0052 }\n if (r1 <= 0) goto L_0x004a\n int r12 = r4 >> 16\n int r12 = r12 + 1\n if (r7 == r12) goto L_0x004a\n r2.reset()\n goto L_0x0039\n L_0x004a:\n int r4 = r7 << 16\n r12 = 2\n r14.skip(r2, r12) // Catch:{ all -> 0x0052 }\n goto L_0x0029\n L_0x0052:\n r12 = move-exception\n r2.reset()\n throw r12\n L_0x0057:\n int r12 = r14.readAddress(r2) // Catch:{ all -> 0x0052 }\n int r6 = r12 << 4\n if (r1 <= 0) goto L_0x006b\n int r12 = r6 >> 16\n int r13 = r4 >> 16\n int r13 = r13 + 1\n if (r12 == r13) goto L_0x006b\n r2.reset()\n goto L_0x0039\n L_0x006b:\n r4 = r6\n r12 = 2\n r14.skip(r2, r12) // Catch:{ all -> 0x0052 }\n goto L_0x0029\n L_0x0072:\n int r3 = r4 + r8\n if (r3 < r15) goto L_0x0021\n int r1 = r1 + r5\n goto L_0x0021\n */\n throw new UnsupportedOperationException(\"Method not decompiled: no.nordicsemi.android.dfu.internal.HexInputStream.calculateBinSize(int):int\");\n }",
"public static int offsetBits_infos_seq_num() {\n return 64;\n }",
"public int length() { return 1+maxidx; }",
"public int mo9785x() {\n /*\n r10 = this;\n long r0 = r10.f9091i\n long r2 = r10.f9090h\n int r2 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1))\n if (r2 != 0) goto L_0x000a\n goto L_0x0085\n L_0x000a:\n r2 = 1\n long r4 = r0 + r2\n byte r0 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r0)\n if (r0 < 0) goto L_0x0017\n r10.f9091i = r4\n return r0\n L_0x0017:\n long r6 = r10.f9090h\n long r6 = r6 - r4\n r8 = 9\n int r1 = (r6 > r8 ? 1 : (r6 == r8 ? 0 : -1))\n if (r1 >= 0) goto L_0x0021\n goto L_0x0085\n L_0x0021:\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n int r1 = r1 << 7\n r0 = r0 ^ r1\n if (r0 >= 0) goto L_0x002f\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x008b\n L_0x002f:\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x003e\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x003c:\n r6 = r4\n goto L_0x008b\n L_0x003e:\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n int r1 = r1 << 21\n r0 = r0 ^ r1\n if (r0 >= 0) goto L_0x004e\n r1 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r1\n goto L_0x008b\n L_0x004e:\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n int r6 = r1 << 28\n r0 = r0 ^ r6\n r6 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r6\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n L_0x0085:\n long r0 = r10.mo9787z()\n int r0 = (int) r0\n return r0\n L_0x008b:\n r10.f9091i = r6\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3661d.mo9785x():int\");\n }",
"public static int offset_infos_seq_num() {\n return (64 / 8);\n }",
"public abstract long mo9750o();",
"static int size_of_xri(String passed){\n\t\treturn 2;\n\t}",
"@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}",
"C7562b<C10403b, C10328a> mo25041a();",
"public void mo8483f() {\n mo8472a((List<C1070b>) this.f3532b);\n mo8472a((List<C1070b>) this.f3533c);\n this.f3538h = 0;\n }",
"Integer getDataLgth();",
"public int method_2832() {\n return this.field_1651;\n }",
"byte[] mo38566a();",
"private void m50367F() {\n }",
"int[] mo56160d();",
"C4945r5 mo19057F();",
"public static void main(String[] args) {\n\t\t\r\n\t\tint i, x=4,w=9,q;\r\n\t\tfor(i=-1;i<20;i+=3) {\r\n\t\t\tx++;\r\n\t\t\tfor(q=4;q<11;q++) {\r\n\t\t\t\tdo {\r\n\t\t\t\t\ti=+3;\r\n\t\t\t\t\tw=sizeof(i);\r\n\t\t\t\t\ti=x+w;\r\n\t\t\t\t\tx=w+i;\r\n\t\t\t\t\t\t\r\n\t\t\t\t} while (x<15);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"x:\"+x+\"i:\"+i);\r\n\r\n\t}",
"public int mo36g() {\n return 2;\n }",
"public int mo45907b() {\n return this.f43066b.length;\n }",
"public byte[] mo3891a() {\n int i;\n int i2;\n int i3;\n int i4;\n int i5;\n int i6;\n int i7;\n int i8;\n int i9;\n int i10;\n int i11;\n int i12;\n int i13;\n int i14;\n int i15;\n int i16;\n int i17;\n int i18;\n byte[] b;\n int i19;\n int length;\n mo3892b();\n int i20 = 3072;\n if (this.f687G != null) {\n i20 = 3072 + this.f687G.length + 1;\n }\n byte[] bArr = new byte[i20];\n bArr[0] = Byte.parseByte(this.f688a);\n byte[] b2 = C0331cr.m1177b(this.f689b);\n System.arraycopy(b2, 0, bArr, 1, b2.length);\n int length2 = b2.length + 1;\n try {\n byte[] bytes = this.f690c.getBytes(\"GBK\");\n bArr[length2] = (byte) bytes.length;\n length2++;\n System.arraycopy(bytes, 0, bArr, length2, bytes.length);\n i = length2 + bytes.length;\n } catch (Throwable th) {\n C0310c.m956a(th, \"Req\", \"buildV4Dot2\");\n bArr[length2] = 0;\n i = length2 + 1;\n }\n try {\n byte[] bytes2 = this.f691d.getBytes(\"GBK\");\n bArr[i] = (byte) bytes2.length;\n i++;\n System.arraycopy(bytes2, 0, bArr, i, bytes2.length);\n i2 = i + bytes2.length;\n } catch (Throwable th2) {\n C0310c.m956a(th2, \"Req\", \"buildV4Dot21\");\n bArr[i] = 0;\n i2 = i + 1;\n }\n try {\n byte[] bytes3 = this.f702o.getBytes(\"GBK\");\n bArr[i2] = (byte) bytes3.length;\n i2++;\n System.arraycopy(bytes3, 0, bArr, i2, bytes3.length);\n i3 = i2 + bytes3.length;\n } catch (Throwable th3) {\n C0310c.m956a(th3, \"Req\", \"buildV4Dot22\");\n bArr[i2] = 0;\n i3 = i2 + 1;\n }\n try {\n byte[] bytes4 = this.f692e.getBytes(\"GBK\");\n bArr[i3] = (byte) bytes4.length;\n i3++;\n System.arraycopy(bytes4, 0, bArr, i3, bytes4.length);\n i4 = i3 + bytes4.length;\n } catch (Throwable th4) {\n C0310c.m956a(th4, \"Req\", \"buildV4Dot23\");\n bArr[i3] = 0;\n i4 = i3 + 1;\n }\n try {\n byte[] bytes5 = this.f693f.getBytes(\"GBK\");\n bArr[i4] = (byte) bytes5.length;\n i4++;\n System.arraycopy(bytes5, 0, bArr, i4, bytes5.length);\n i5 = i4 + bytes5.length;\n } catch (Throwable th5) {\n C0310c.m956a(th5, \"Req\", \"buildV4Dot24\");\n bArr[i4] = 0;\n i5 = i4 + 1;\n }\n try {\n byte[] bytes6 = this.f694g.getBytes(\"GBK\");\n bArr[i5] = (byte) bytes6.length;\n i5++;\n System.arraycopy(bytes6, 0, bArr, i5, bytes6.length);\n i6 = i5 + bytes6.length;\n } catch (Throwable th6) {\n C0310c.m956a(th6, \"Req\", \"buildV4Dot25\");\n bArr[i5] = 0;\n i6 = i5 + 1;\n }\n try {\n byte[] bytes7 = this.f708u.getBytes(\"GBK\");\n bArr[i6] = (byte) bytes7.length;\n i6++;\n System.arraycopy(bytes7, 0, bArr, i6, bytes7.length);\n i7 = i6 + bytes7.length;\n } catch (Throwable th7) {\n C0310c.m956a(th7, \"Req\", \"buildV4Dot26\");\n bArr[i6] = 0;\n i7 = i6 + 1;\n }\n try {\n byte[] bytes8 = this.f695h.getBytes(\"GBK\");\n bArr[i7] = (byte) bytes8.length;\n i7++;\n System.arraycopy(bytes8, 0, bArr, i7, bytes8.length);\n i8 = i7 + bytes8.length;\n } catch (Throwable th8) {\n C0310c.m956a(th8, \"Req\", \"buildV4Dot27\");\n bArr[i7] = 0;\n i8 = i7 + 1;\n }\n try {\n byte[] bytes9 = this.f703p.getBytes(\"GBK\");\n bArr[i8] = (byte) bytes9.length;\n i8++;\n System.arraycopy(bytes9, 0, bArr, i8, bytes9.length);\n i9 = i8 + bytes9.length;\n } catch (Throwable th9) {\n C0310c.m956a(th9, \"Req\", \"buildV4Dot28\");\n bArr[i8] = 0;\n i9 = i8 + 1;\n }\n try {\n byte[] bytes10 = this.f704q.getBytes(\"GBK\");\n bArr[i9] = (byte) bytes10.length;\n i9++;\n System.arraycopy(bytes10, 0, bArr, i9, bytes10.length);\n i10 = i9 + bytes10.length;\n } catch (Throwable th10) {\n C0310c.m956a(th10, \"Req\", \"buildV4Dot29\");\n bArr[i9] = 0;\n i10 = i9 + 1;\n }\n try {\n if (TextUtils.isEmpty(this.f707t)) {\n bArr[i10] = 0;\n length = i10 + 1;\n } else {\n byte[] b3 = m1034b(this.f707t);\n bArr[i10] = (byte) b3.length;\n int i21 = i10 + 1;\n System.arraycopy(b3, 0, bArr, i21, b3.length);\n length = b3.length + i21;\n }\n i11 = length;\n } catch (Throwable th11) {\n C0310c.m956a(th11, \"Req\", \"buildV4Dot219\");\n bArr[i10] = 0;\n i11 = i10 + 1;\n }\n try {\n byte[] bytes11 = this.f709v.getBytes(\"GBK\");\n bArr[i11] = (byte) bytes11.length;\n i11++;\n System.arraycopy(bytes11, 0, bArr, i11, bytes11.length);\n i12 = i11 + bytes11.length;\n } catch (Throwable th12) {\n C0310c.m956a(th12, \"Req\", \"buildV4Dot211\");\n bArr[i11] = 0;\n i12 = i11 + 1;\n }\n try {\n byte[] bytes12 = this.f710w.getBytes(\"GBK\");\n bArr[i12] = (byte) bytes12.length;\n i12++;\n System.arraycopy(bytes12, 0, bArr, i12, bytes12.length);\n i13 = i12 + bytes12.length;\n } catch (Throwable th13) {\n C0310c.m956a(th13, \"Req\", \"buildV4Dot212\");\n bArr[i12] = 0;\n i13 = i12 + 1;\n }\n try {\n byte[] bytes13 = this.f711x.getBytes(\"GBK\");\n bArr[i13] = (byte) bytes13.length;\n i13++;\n System.arraycopy(bytes13, 0, bArr, i13, bytes13.length);\n i14 = bytes13.length + i13;\n } catch (Throwable th14) {\n C0310c.m956a(th14, \"Req\", \"buildV4Dot213\");\n bArr[i13] = 0;\n i14 = i13 + 1;\n }\n bArr[i14] = Byte.parseByte(this.f712y);\n int i22 = i14 + 1;\n bArr[i22] = Byte.parseByte(this.f697j);\n int i23 = i22 + 1;\n bArr[i23] = Byte.parseByte(this.f713z);\n int i24 = i23 + 1;\n if (this.f713z.equals(\"1\")) {\n byte[] d = C0331cr.m1187d(mo3890a(\"mcc\"));\n System.arraycopy(d, 0, bArr, i24, d.length);\n int length3 = i24 + d.length;\n byte[] d2 = C0331cr.m1187d(mo3890a(\"mnc\"));\n System.arraycopy(d2, 0, bArr, length3, d2.length);\n int length4 = length3 + d2.length;\n byte[] d3 = C0331cr.m1187d(mo3890a(\"lac\"));\n System.arraycopy(d3, 0, bArr, length4, d3.length);\n int length5 = length4 + d3.length;\n byte[] e = C0331cr.m1190e(mo3890a(\"cellid\"));\n System.arraycopy(e, 0, bArr, length5, e.length);\n int length6 = e.length + length5;\n int parseInt = Integer.parseInt(mo3890a(\"signal\"));\n if (parseInt > 127) {\n parseInt = 0;\n }\n bArr[length6] = (byte) parseInt;\n int i25 = length6 + 1;\n if (this.f682B.length() == 0) {\n bArr[i25] = 0;\n i24 = i25 + 1;\n } else {\n int length7 = this.f682B.split(\"\\\\*\").length;\n bArr[i25] = (byte) length7;\n i24 = i25 + 1;\n int i26 = 0;\n while (i26 < length7) {\n byte[] d4 = C0331cr.m1187d(m1032a(\"lac\", i26));\n System.arraycopy(d4, 0, bArr, i24, d4.length);\n int length8 = i24 + d4.length;\n byte[] e2 = C0331cr.m1190e(m1032a(\"cellid\", i26));\n System.arraycopy(e2, 0, bArr, length8, e2.length);\n int length9 = e2.length + length8;\n int parseInt2 = Integer.parseInt(m1032a(\"signal\", i26));\n if (parseInt2 > 127) {\n parseInt2 = 0;\n }\n bArr[length9] = (byte) parseInt2;\n i26++;\n i24 = length9 + 1;\n }\n }\n } else if (this.f713z.equals(\"2\")) {\n byte[] d5 = C0331cr.m1187d(mo3890a(\"mcc\"));\n System.arraycopy(d5, 0, bArr, i24, d5.length);\n int length10 = i24 + d5.length;\n byte[] d6 = C0331cr.m1187d(mo3890a(\"sid\"));\n System.arraycopy(d6, 0, bArr, length10, d6.length);\n int length11 = length10 + d6.length;\n byte[] d7 = C0331cr.m1187d(mo3890a(\"nid\"));\n System.arraycopy(d7, 0, bArr, length11, d7.length);\n int length12 = length11 + d7.length;\n byte[] d8 = C0331cr.m1187d(mo3890a(\"bid\"));\n System.arraycopy(d8, 0, bArr, length12, d8.length);\n int length13 = length12 + d8.length;\n byte[] e3 = C0331cr.m1190e(mo3890a(\"lon\"));\n System.arraycopy(e3, 0, bArr, length13, e3.length);\n int length14 = length13 + e3.length;\n byte[] e4 = C0331cr.m1190e(mo3890a(C1447g.f3485ae));\n System.arraycopy(e4, 0, bArr, length14, e4.length);\n int length15 = e4.length + length14;\n int parseInt3 = Integer.parseInt(mo3890a(\"signal\"));\n if (parseInt3 > 127) {\n parseInt3 = 0;\n }\n bArr[length15] = (byte) parseInt3;\n int i27 = length15 + 1;\n bArr[i27] = 0;\n i24 = i27 + 1;\n }\n if (this.f683C.length() == 0) {\n bArr[i24] = 0;\n i15 = i24 + 1;\n } else {\n bArr[i24] = 1;\n int i28 = i24 + 1;\n try {\n String[] split = this.f683C.split(MiPushClient.ACCEPT_TIME_SEPARATOR);\n byte[] b4 = m1034b(split[0]);\n System.arraycopy(b4, 0, bArr, i28, b4.length);\n int length16 = i28 + b4.length;\n try {\n byte[] bytes14 = split[2].getBytes(\"GBK\");\n bArr[length16] = (byte) bytes14.length;\n length16++;\n System.arraycopy(bytes14, 0, bArr, length16, bytes14.length);\n i16 = length16 + bytes14.length;\n } catch (Throwable th15) {\n C0310c.m956a(th15, \"Req\", \"buildV4Dot214\");\n bArr[length16] = 0;\n i16 = length16 + 1;\n }\n int parseInt4 = Integer.parseInt(split[1]);\n if (parseInt4 > 127) {\n parseInt4 = 0;\n }\n bArr[i16] = Byte.parseByte(String.valueOf(parseInt4));\n i15 = i16 + 1;\n } catch (Throwable th16) {\n C0310c.m956a(th16, \"Req\", \"buildV4Dot216\");\n byte[] b5 = m1034b(\"00:00:00:00:00:00\");\n System.arraycopy(b5, 0, bArr, i28, b5.length);\n int length17 = b5.length + i28;\n bArr[length17] = 0;\n int i29 = length17 + 1;\n bArr[i29] = Byte.parseByte(\"0\");\n i15 = i29 + 1;\n }\n }\n String[] split2 = this.f684D.split(\"\\\\*\");\n if (TextUtils.isEmpty(this.f684D) || split2.length == 0) {\n bArr[i15] = 0;\n i17 = i15 + 1;\n } else {\n bArr[i15] = (byte) split2.length;\n int i30 = i15 + 1;\n for (String str : split2) {\n String[] split3 = str.split(MiPushClient.ACCEPT_TIME_SEPARATOR);\n try {\n b = m1034b(split3[0]);\n } catch (Throwable th17) {\n C0310c.m956a(th17, \"Req\", \"buildV4Dot2110\");\n b = m1034b(\"00:00:00:00:00:00\");\n }\n System.arraycopy(b, 0, bArr, i30, b.length);\n int length18 = i30 + b.length;\n try {\n byte[] bytes15 = split3[2].getBytes(\"GBK\");\n bArr[length18] = (byte) bytes15.length;\n length18++;\n System.arraycopy(bytes15, 0, bArr, length18, bytes15.length);\n i19 = bytes15.length + length18;\n } catch (Throwable th18) {\n C0310c.m956a(th18, \"Req\", \"buildV4Dot217\");\n bArr[length18] = 0;\n i19 = length18 + 1;\n }\n int parseInt5 = Integer.parseInt(split3[1]);\n if (parseInt5 > 127) {\n parseInt5 = 0;\n }\n bArr[i19] = Byte.parseByte(String.valueOf(parseInt5));\n i30 = i19 + 1;\n }\n byte[] b6 = C0331cr.m1177b(Integer.parseInt(this.f685E));\n System.arraycopy(b6, 0, bArr, i30, b6.length);\n i17 = i30 + b6.length;\n }\n try {\n byte[] bytes16 = this.f686F.getBytes(\"GBK\");\n if (bytes16.length > 127) {\n bytes16 = null;\n }\n if (bytes16 == null) {\n bArr[i17] = 0;\n i18 = i17 + 1;\n } else {\n bArr[i17] = (byte) bytes16.length;\n int i31 = i17 + 1;\n System.arraycopy(bytes16, 0, bArr, i31, bytes16.length);\n i18 = bytes16.length + i31;\n }\n } catch (Throwable th19) {\n C0310c.m956a(th19, \"Req\", \"buildV4Dot218\");\n bArr[i17] = 0;\n i18 = i17 + 1;\n }\n int length19 = this.f687G != null ? this.f687G.length : 0;\n byte[] b7 = C0331cr.m1177b(length19);\n System.arraycopy(b7, 0, bArr, i18, b7.length);\n int length20 = i18 + b7.length;\n if (length19 > 0) {\n System.arraycopy(this.f687G, 0, bArr, length20, this.f687G.length);\n length20 += this.f687G.length;\n }\n byte[] bArr2 = new byte[length20];\n System.arraycopy(bArr, 0, bArr2, 0, length20);\n CRC32 crc32 = new CRC32();\n crc32.update(bArr2);\n byte[] a = C0331cr.m1167a(crc32.getValue());\n byte[] bArr3 = new byte[(a.length + length20)];\n System.arraycopy(bArr2, 0, bArr3, 0, length20);\n System.arraycopy(a, 0, bArr3, length20, a.length);\n int length21 = length20 + a.length;\n m1033a(bArr3, 0);\n return bArr3;\n }",
"public String toString()\r\n/* 438: */ {\r\n/* 439:522 */ return \"Luffa-\" + (getDigestLength() << 3);\r\n/* 440: */ }",
"public int mo45907b() {\n return this.f43069b.length;\n }",
"public abstract long mo24412e();",
"@Override\n\tpublic int count() {\n\t\treturn 4;\n\t}",
"public abstract int mo13680b();",
"public abstract int mo8526p();",
"@Test(timeout = 4000)\n public void test52() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickSize(6372, 3, 2146363568);\n assertEquals(\"id=6372 askSize=2146363568\", string0);\n }",
"private static java.lang.String m586k() {\r\n /*\r\n r6 = 1;\r\n r0 = 0;\r\n r1 = \"/proc/cpuinfo\";\r\n r2 = new java.io.FileReader;\t Catch:{ IOException -> 0x0040, all -> 0x0050 }\r\n r2.<init>(r1);\t Catch:{ IOException -> 0x0040, all -> 0x0050 }\r\n r1 = new java.io.BufferedReader;\t Catch:{ IOException -> 0x0071, all -> 0x006a }\r\n r3 = 8192; // 0x2000 float:1.14794E-41 double:4.0474E-320;\r\n r1.<init>(r2, r3);\t Catch:{ IOException -> 0x0071, all -> 0x006a }\r\n L_0x0010:\r\n r3 = r1.readLine();\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r3 == 0) goto L_0x0039;\r\n L_0x0016:\r\n r4 = com.alipay.security.mobile.module.p010a.C0159a.m556a(r3);\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r4 != 0) goto L_0x0010;\r\n L_0x001c:\r\n r4 = \":\";\r\n r3 = r3.split(r4);\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r3 == 0) goto L_0x0010;\r\n L_0x0024:\r\n r4 = r3.length;\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r4 <= r6) goto L_0x0010;\r\n L_0x0027:\r\n r4 = 0;\r\n r4 = r3[r4];\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n r5 = \"BogoMIPS\";\r\n r4 = r4.contains(r5);\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r4 == 0) goto L_0x0010;\r\n L_0x0032:\r\n r4 = 1;\r\n r3 = r3[r4];\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n r0 = r3.trim();\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n L_0x0039:\r\n r2.close();\t Catch:{ IOException -> 0x0060 }\r\n L_0x003c:\r\n r1.close();\t Catch:{ IOException -> 0x0062 }\r\n L_0x003f:\r\n return r0;\r\n L_0x0040:\r\n r1 = move-exception;\r\n r1 = r0;\r\n r2 = r0;\r\n L_0x0043:\r\n if (r2 == 0) goto L_0x0048;\r\n L_0x0045:\r\n r2.close();\t Catch:{ IOException -> 0x0064 }\r\n L_0x0048:\r\n if (r1 == 0) goto L_0x003f;\r\n L_0x004a:\r\n r1.close();\t Catch:{ IOException -> 0x004e }\r\n goto L_0x003f;\r\n L_0x004e:\r\n r1 = move-exception;\r\n goto L_0x003f;\r\n L_0x0050:\r\n r1 = move-exception;\r\n r2 = r0;\r\n r7 = r0;\r\n r0 = r1;\r\n r1 = r7;\r\n L_0x0055:\r\n if (r2 == 0) goto L_0x005a;\r\n L_0x0057:\r\n r2.close();\t Catch:{ IOException -> 0x0066 }\r\n L_0x005a:\r\n if (r1 == 0) goto L_0x005f;\r\n L_0x005c:\r\n r1.close();\t Catch:{ IOException -> 0x0068 }\r\n L_0x005f:\r\n throw r0;\r\n L_0x0060:\r\n r2 = move-exception;\r\n goto L_0x003c;\r\n L_0x0062:\r\n r1 = move-exception;\r\n goto L_0x003f;\r\n L_0x0064:\r\n r2 = move-exception;\r\n goto L_0x0048;\r\n L_0x0066:\r\n r2 = move-exception;\r\n goto L_0x005a;\r\n L_0x0068:\r\n r1 = move-exception;\r\n goto L_0x005f;\r\n L_0x006a:\r\n r1 = move-exception;\r\n r7 = r1;\r\n r1 = r0;\r\n r0 = r7;\r\n goto L_0x0055;\r\n L_0x006f:\r\n r0 = move-exception;\r\n goto L_0x0055;\r\n L_0x0071:\r\n r1 = move-exception;\r\n r1 = r0;\r\n goto L_0x0043;\r\n L_0x0074:\r\n r3 = move-exception;\r\n goto L_0x0043;\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: com.alipay.security.mobile.module.b.a.k():java.lang.String\");\r\n }",
"@Override\n public int getSize() {\n return 64;\n }",
"public long mo9743h() {\n return mo9773w();\n }",
"public abstract int mo123249h();",
"public static int size_nodeid() {\n return (8 / 8);\n }",
"public int mo9754s() {\n return mo9761x();\n }",
"public static int sizeBits_parentId() {\n return 16;\n }",
"static int size_of_shld(String passed){\n\t\treturn 3;\n\t}"
] | [
"0.57995766",
"0.5765893",
"0.57391095",
"0.5715729",
"0.5695205",
"0.56742245",
"0.56703275",
"0.5653013",
"0.56337917",
"0.56333464",
"0.5611973",
"0.56103384",
"0.5594903",
"0.5582012",
"0.5574773",
"0.5566597",
"0.5561045",
"0.5556379",
"0.5556379",
"0.55349",
"0.5485734",
"0.54627395",
"0.5451558",
"0.5434833",
"0.5434227",
"0.54293406",
"0.54281026",
"0.54220814",
"0.5421947",
"0.5411459",
"0.5396426",
"0.5384067",
"0.5379362",
"0.5373306",
"0.5372768",
"0.5370102",
"0.5366874",
"0.5362719",
"0.5355477",
"0.535384",
"0.53330624",
"0.53286445",
"0.531399",
"0.5309842",
"0.52979743",
"0.52905834",
"0.5287256",
"0.52836585",
"0.5281434",
"0.5270982",
"0.52688974",
"0.526846",
"0.52650505",
"0.5264295",
"0.5257635",
"0.52572274",
"0.5256993",
"0.52547795",
"0.5254419",
"0.52494365",
"0.5248828",
"0.5243736",
"0.52437294",
"0.5241886",
"0.52383703",
"0.5234895",
"0.5233192",
"0.5231541",
"0.52246904",
"0.5223494",
"0.52215797",
"0.52206254",
"0.5220034",
"0.52146816",
"0.5212983",
"0.5211661",
"0.5211199",
"0.5210371",
"0.52004576",
"0.5199505",
"0.51988196",
"0.5188208",
"0.51841307",
"0.5182821",
"0.5180907",
"0.5178307",
"0.5177715",
"0.51774925",
"0.5176541",
"0.5175182",
"0.51745677",
"0.5174492",
"0.51728666",
"0.51721656",
"0.5172113",
"0.51715845",
"0.517016",
"0.5168915",
"0.5164848",
"0.5162739",
"0.515966"
] | 0.0 | -1 |
/ / / / / / / / / | public void setLocale(Locale locale) {
/* 462 */ ParamChecks.nullNotPermitted(locale, "locale");
/* 463 */ this.locale = locale;
/* 464 */ setStandardTickUnits(createStandardDateTickUnits(this.timeZone, this.locale));
/* */
/* 466 */ fireChangeEvent();
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"public void divide() {\n\t\t\n\t}",
"private int rightChild(int i){return 2*i+2;}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public abstract void bepaalGrootte();",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"double passer();",
"public String ring();",
"int getWidth() {return width;}",
"public void gored() {\n\t\t\n\t}",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public String toString(){ return \"DIV\";}",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void getTile_B8();",
"public Integer getWidth(){return this.width;}",
"public abstract String division();",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"int width();",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"@Override\n public void bfs() {\n\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"double volume(){\n return width*height*depth;\n }",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"public int generateRoshambo(){\n ;]\n\n }",
"Operations operations();",
"private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}",
"public int getEdgeCount() \n {\n return 3;\n }",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"double getNewWidth();",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"long getWidth();",
"public void SubRect(){\n\t\n}",
"void mo33732Px();",
"static void pyramid(){\n\t}",
"public double getPerimiter(){return (2*height +2*width);}",
"public int my_leaf_count();",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"public void skystonePos4() {\n }",
"public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }",
"void walk() {\n\t\t\n\t}",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }",
"private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}",
"double seBlesser();",
"void sharpen();",
"void sharpen();",
"public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}",
"Parallelogram(){\n length = width = height = 0;\n }",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"public void leerPlanesDietas();",
"public String getRing();",
"static int getNumPatterns() { return 64; }",
"private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"public int getWidth(){\n return width;\n }",
"@Override\n\tpublic void walk() {\n\t\t\n\t}",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"double getPerimeter(){\n return 2*height+width;\n }",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"protected int parent(int i) { return (i - 1) / 2; }",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public abstract double getBaseWidth();",
"public void stg() {\n\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}",
"void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }",
"public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }",
"int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}",
"int expand();",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}",
"@Override\n protected void paint2d(Graphics2D g) {\n \n }",
"public int upright();",
"int getTribeSize();",
"int getWidth1();",
"int getR();",
"String directsTo();",
"public int getWidth()\n {return width;}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"int depth();",
"int depth();",
"public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}",
"public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }",
"double getWidth();",
"double getWidth();"
] | [
"0.5531016",
"0.54378587",
"0.52516115",
"0.52405924",
"0.5151045",
"0.5127977",
"0.50680465",
"0.5066997",
"0.50218964",
"0.5013022",
"0.5007318",
"0.50048536",
"0.49997565",
"0.4994835",
"0.49735898",
"0.49699947",
"0.49680406",
"0.49594593",
"0.4937881",
"0.49361676",
"0.49287266",
"0.4884688",
"0.4874051",
"0.4871873",
"0.48511675",
"0.48435977",
"0.48318782",
"0.48268357",
"0.48253223",
"0.48089546",
"0.4805502",
"0.48046046",
"0.4803564",
"0.48035362",
"0.47987092",
"0.47966656",
"0.47941628",
"0.47918317",
"0.4789212",
"0.4783637",
"0.47747543",
"0.4774159",
"0.47730577",
"0.47666246",
"0.47664872",
"0.47615",
"0.4755131",
"0.47543177",
"0.47509375",
"0.47481856",
"0.47429588",
"0.47421312",
"0.47413164",
"0.47407025",
"0.47407025",
"0.47362685",
"0.47353023",
"0.47351807",
"0.47331676",
"0.47328842",
"0.47319365",
"0.4729934",
"0.47290468",
"0.47287467",
"0.47275317",
"0.47259426",
"0.47239763",
"0.4723621",
"0.4715134",
"0.47056246",
"0.47034666",
"0.47034577",
"0.4701833",
"0.46977103",
"0.46967983",
"0.46885592",
"0.46881223",
"0.46881223",
"0.4685835",
"0.4677769",
"0.46758488",
"0.46741006",
"0.46703368",
"0.46684504",
"0.4664061",
"0.4664013",
"0.46639267",
"0.46607205",
"0.4659042",
"0.46581274",
"0.4656714",
"0.46495056",
"0.464903",
"0.4648408",
"0.46467063",
"0.4643833",
"0.4643833",
"0.46426296",
"0.46422264",
"0.4639917",
"0.4639917"
] | 0.0 | -1 |
/ / / / / / / / 475 | public Timeline getTimeline() { return this.timeline; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"public double getPerimiter(){return (2*height +2*width);}",
"BigInteger getWidth();",
"public double getWidth() {\n return this.size * 2.0; \n }",
"void mo33732Px();",
"int regionSplitBits4DownSampledTable();",
"static int getNumPatterns() { return 64; }",
"@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"public float spiderScaleAmount()\n {\nreturn 1F;\n }",
"public int mo36g() {\n return 8;\n }",
"public float sizeMultiplier();",
"int getTribeSize();",
"public int mo9774x() {\n /*\n r5 = this;\n int r0 = r5.f9082i\n int r1 = r5.f9080g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9082i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9776z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9082i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9774x():int\");\n }",
"public static float getHalfTileWidth() {\r\n\t\treturn 64;\r\n\t}",
"public double getBaseStepSize() {\n \t\treturn 0.105;\n \t}",
"public double peri() {\n\t\treturn 2*(width+length);\n\t}",
"private static int m36201b(Rect rect) {\n return rect.width() * rect.height();\n }",
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"public void setDimensionRatio(java.lang.String r9) {\n /*\n r8 = this;\n r0 = 0;\n if (r9 == 0) goto L_0x008e;\n L_0x0003:\n r1 = r9.length();\n if (r1 != 0) goto L_0x000b;\n L_0x0009:\n goto L_0x008e;\n L_0x000b:\n r1 = -1;\n r2 = r9.length();\n r3 = 44;\n r3 = r9.indexOf(r3);\n r4 = 0;\n r5 = 1;\n if (r3 <= 0) goto L_0x0037;\n L_0x001a:\n r6 = r2 + -1;\n if (r3 >= r6) goto L_0x0037;\n L_0x001e:\n r6 = r9.substring(r4, r3);\n r7 = \"W\";\n r7 = r6.equalsIgnoreCase(r7);\n if (r7 == 0) goto L_0x002c;\n L_0x002a:\n r1 = 0;\n goto L_0x0035;\n L_0x002c:\n r4 = \"H\";\n r4 = r6.equalsIgnoreCase(r4);\n if (r4 == 0) goto L_0x0035;\n L_0x0034:\n r1 = 1;\n L_0x0035:\n r4 = r3 + 1;\n L_0x0037:\n r3 = 58;\n r3 = r9.indexOf(r3);\n if (r3 < 0) goto L_0x0075;\n L_0x003f:\n r2 = r2 - r5;\n if (r3 >= r2) goto L_0x0075;\n L_0x0042:\n r2 = r9.substring(r4, r3);\n r3 = r3 + r5;\n r9 = r9.substring(r3);\n r3 = r2.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0051:\n r3 = r9.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0057:\n r2 = java.lang.Float.parseFloat(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n r3 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0063:\n r3 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0067:\n if (r1 != r5) goto L_0x006f;\n L_0x0069:\n r9 = r9 / r2;\n r9 = java.lang.Math.abs(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x006f:\n r2 = r2 / r9;\n r9 = java.lang.Math.abs(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0075:\n r9 = r9.substring(r4);\n r2 = r9.length();\n if (r2 <= 0) goto L_0x0084;\n L_0x007f:\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0084:\n r9 = 0;\n L_0x0085:\n r0 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r0 <= 0) goto L_0x008d;\n L_0x0089:\n r8.mDimensionRatio = r9;\n r8.mDimensionRatioSide = r1;\n L_0x008d:\n return;\n L_0x008e:\n r8.mDimensionRatio = r0;\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.constraint.solver.widgets.ConstraintWidget.setDimensionRatio(java.lang.String):void\");\n }",
"long getWidth();",
"private double RepulsionFactorSourceNodes(){\n \tdouble RepulsionFactor=10000.0d *(contextNodeSize*5);\n \t\n \treturn RepulsionFactor;\n }",
"double muchMoreThenHalf() {\n return (this.getTotalNodeCount() + getFaultyNodeCount())/2;\n }",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }",
"public Integer getWidth(){return this.width;}",
"public static double computeDiameter(int wireGauge)\r\n{ \r\n return 0.127 * Math.pow(92.0, (36.0 - wireGauge) / 39.0); \r\n}",
"public final int mo30256g() {\n return this.f7581c.f7036c.size();\n }",
"@Override\n\tpublic double perimetro() {\n\t\treturn getBase()*4;\n\t}",
"public int mo36g() {\n return 4;\n }",
"double volume(){\n return width*height*depth;\n }",
"public abstract double getBaseWidth();",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"public abstract int getSpotsNeeded();",
"C5537g mo4096b(int i);",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"private static int getTreeSize(int totalSize) {\n if (totalSize <= 32) {\n return 0;\n } else {\n // TODO: Clojure does ((realSize - 1) >>> 5) << 5); is that faster?\n return ((totalSize - 1) & (~0x1F));\n }\n }",
"@Override\n\tpublic int computeSize() {\n\t\treturn 36;\n\t}",
"int getWidth() {return width;}",
"double getWidth();",
"double getWidth();",
"protected int bytesPerAtom() {\n return (2);\n }",
"protected int bytesPerAtom() {\n return (2);\n }",
"private int m672E() {\n int i = 0;\n if (this.f552g.mo501h() >= 5) {\n byte[] f = this.f552g.mo499f();\n int g = this.f552g.mo500g();\n int i2 = 0;\n int i3 = 0;\n while (true) {\n byte b = f[g + i];\n i2 |= (b & Byte.MAX_VALUE) << i3;\n if ((b & 128) != 128) {\n this.f552g.mo495a(i + 1);\n return i2;\n }\n i3 += 7;\n i++;\n }\n } else {\n int i4 = 0;\n while (true) {\n byte u = mo470u();\n i |= (u & Byte.MAX_VALUE) << i4;\n if ((u & 128) != 128) {\n return i;\n }\n i4 += 7;\n }\n }\n }",
"private static float m590o(Context context) {\r\n DisplayMetrics displayMetrics = context.getResources().getDisplayMetrics();\r\n Point point = new Point(displayMetrics.widthPixels, displayMetrics.heightPixels);\r\n return ((float) point.y) / ((float) point.x);\r\n }",
"Info mo7564ix();",
"int getMinimalPaletteDistance();",
"@Override\n public int estimateSize() {\n return 8 + 8 + 1 + 32 + 64;\n }",
"public double getWxInc() { return extents.getWidth() /getMyWidth(); }",
"public double width() { return _width; }",
"private static int multAndDivFixer(int size){\n return size;\n }",
"private int abstToDeskX(float x)\n {\n return (int)(width*x);\n }",
"public int getIconWidth()\r\n/* 50: */ {\r\n/* 51: 99 */ return SIZE;\r\n/* 52: */ }",
"double getPerimeter(){\n return 2*height+width;\n }",
"int width();",
"public static void main(String[] args) {\n\t\t\r\n\t\tint i, x=4,w=9,q;\r\n\t\tfor(i=-1;i<20;i+=3) {\r\n\t\t\tx++;\r\n\t\t\tfor(q=4;q<11;q++) {\r\n\t\t\t\tdo {\r\n\t\t\t\t\ti=+3;\r\n\t\t\t\t\tw=sizeof(i);\r\n\t\t\t\t\ti=x+w;\r\n\t\t\t\t\tx=w+i;\r\n\t\t\t\t\t\t\r\n\t\t\t\t} while (x<15);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"x:\"+x+\"i:\"+i);\r\n\r\n\t}",
"public double getWidth() { return _width<0? -_width : _width; }",
"@Override\r\n public double perimeter() {\n return (height+width)*2;\r\n }",
"@Override\n public double perimeter() {\n return 2 * (width + length);\n }",
"private double loadFactor()\n {\n double bucketsLength = buckets.length;\n return currentSize / bucketsLength;\n }",
"public static int m8655e() {\n return 8;\n }",
"private int[] m7232h() {\n this.f5578C[0] = this.f5594p;\n this.f5578C[1] = this.f5599u - this.f5594p;\n return this.f5578C;\n }",
"@Override\r\n\tpublic void CalcPeri() {\n\t\tSystem.out.println(4*side);\t\r\n\t}",
"@Override\n public double tuition(){\n return 2500;\n }",
"public int getWidth() {\n // Replace the following line with your solution.\n return width;\n }",
"public double utilisation(int h)\n {\n \tDouble result;\n \tDouble n1=(Math.pow(2,h))-1;\n \tresult=size()/n1;\n \treturn result;\n \t \t\n }",
"public int getNetworth();",
"@Test\n\tpublic void testLargeRingSystem5() throws Exception {\n\t\tString smiles = \"O=C1c2ccccc2C(=O)c3c1ccc4c3[nH]c5c6C(=O)c7ccccc7C(=O)c6c8[nH]c9c%10C(=O)c%11ccccc%11C(=O)c%10ccc9c8c45\";\n\t\t\n IAtomContainer mol = sp.parseSmiles(smiles);\n atasc.decideBondOrder(mol, true);\n \n int doubleBondCount = 0;\n for (IBond bond : mol.bonds()) {\n if (bond.getOrder().equals(Order.DOUBLE)) doubleBondCount++;\n }\n Assert.assertEquals(24, doubleBondCount);\n\t}",
"double getSize();",
"Integer getLNDFlgs();",
"@Test\n public void testSegmentationGreedyness() {\n assertMetrics(\"match:0.3717\",\"a b c\",\"a x b x x x x x x x x b c\");\n assertMetrics(\"match:0.4981\",\"a b c\",\"a x z x x x x x x x x b c\");\n }",
"public void method_246(int var1, int var2, int var3, int var4, int var5, int var6) {\n try {\n int var7 = this.field_736[var5];\n int var8 = this.field_737[var5];\n int var9 = 0;\n int var10 = 0;\n int var11 = (var7 << 16) / var3;\n int var12 = (var8 << 16) / var4;\n int var13;\n int var14;\n if(this.field_742[var5]) {\n var13 = this.spriteWidthFull[var5];\n var14 = this.field_741[var5];\n var11 = (var13 << 16) / var3;\n var12 = (var14 << 16) / var4;\n var1 += (this.field_738[var5] * var3 + var13 - 1) / var13;\n var2 += (this.field_739[var5] * var4 + var14 - 1) / var14;\n if(this.field_738[var5] * var3 % var13 != 0) {\n var9 = (var13 - this.field_738[var5] * var3 % var13 << 16) / var3;\n }\n\n if(this.field_739[var5] * var4 % var14 != 0) {\n var10 = (var14 - this.field_739[var5] * var4 % var14 << 16) / var4;\n }\n\n var3 = var3 * (this.field_736[var5] - (var9 >> 16)) / var13;\n var4 = var4 * (this.field_737[var5] - (var10 >> 16)) / var14;\n }\n\n var13 = var1 + var2 * this.field_723;\n var14 = this.field_723 - var3;\n int var15;\n if(var2 < this.field_743) {\n var15 = this.field_743 - var2;\n var4 -= var15;\n var2 = 0;\n var13 += var15 * this.field_723;\n var10 += var12 * var15;\n }\n\n if(var2 + var4 >= this.field_744) {\n var4 -= var2 + var4 - this.field_744 + 1;\n }\n\n if(var1 < this.field_745) {\n var15 = this.field_745 - var1;\n var3 -= var15;\n var1 = 0;\n var13 += var15;\n var9 += var11 * var15;\n var14 += var15;\n }\n\n if(var1 + var3 >= this.field_746) {\n var15 = var1 + var3 - this.field_746 + 1;\n var3 -= var15;\n var14 += var15;\n }\n\n byte var17 = 1;\n if(this.interlace) {\n var17 = 2;\n var14 += this.field_723;\n var12 += var12;\n if((var2 & 1) != 0) {\n var13 += this.field_723;\n --var4;\n }\n }\n\n this.method_253(this.pixels, this.spritePixels[var5], 0, var9, var10, var13, var14, var3, var4, var11, var12, var7, var17, var6);\n } catch (Exception var16) {\n System.out.println(\"error in sprite clipping routine\"); // authentic System.out.println\n }\n }",
"public void method_245(int var1, int var2, int var3, int var4, int var5, int var6) {\n try {\n int var7 = this.field_736[var5];\n int var8 = this.field_737[var5];\n int var9 = 0;\n int var10 = 0;\n int var11 = (var7 << 16) / var3;\n int var12 = (var8 << 16) / var4;\n int var13;\n int var14;\n if(this.field_742[var5]) {\n var13 = this.spriteWidthFull[var5];\n var14 = this.field_741[var5];\n var11 = (var13 << 16) / var3;\n var12 = (var14 << 16) / var4;\n var1 += (this.field_738[var5] * var3 + var13 - 1) / var13;\n var2 += (this.field_739[var5] * var4 + var14 - 1) / var14;\n if(this.field_738[var5] * var3 % var13 != 0) {\n var9 = (var13 - this.field_738[var5] * var3 % var13 << 16) / var3;\n }\n\n if(this.field_739[var5] * var4 % var14 != 0) {\n var10 = (var14 - this.field_739[var5] * var4 % var14 << 16) / var4;\n }\n\n var3 = var3 * (this.field_736[var5] - (var9 >> 16)) / var13;\n var4 = var4 * (this.field_737[var5] - (var10 >> 16)) / var14;\n }\n\n var13 = var1 + var2 * this.field_723;\n var14 = this.field_723 - var3;\n int var15;\n if(var2 < this.field_743) {\n var15 = this.field_743 - var2;\n var4 -= var15;\n var2 = 0;\n var13 += var15 * this.field_723;\n var10 += var12 * var15;\n }\n\n if(var2 + var4 >= this.field_744) {\n var4 -= var2 + var4 - this.field_744 + 1;\n }\n\n if(var1 < this.field_745) {\n var15 = this.field_745 - var1;\n var3 -= var15;\n var1 = 0;\n var13 += var15;\n var9 += var11 * var15;\n var14 += var15;\n }\n\n if(var1 + var3 >= this.field_746) {\n var15 = var1 + var3 - this.field_746 + 1;\n var3 -= var15;\n var14 += var15;\n }\n\n byte var17 = 1;\n if(this.interlace) {\n var17 = 2;\n var14 += this.field_723;\n var12 += var12;\n if((var2 & 1) != 0) {\n var13 += this.field_723;\n --var4;\n }\n }\n\n this.method_252(this.pixels, this.spritePixels[var5], 0, var9, var10, var13, var14, var3, var4, var11, var12, var7, var17, var6);\n } catch (Exception var16) {\n System.out.println(\"error in sprite clipping routine\"); // authentic System.out.println\n }\n }",
"public int getLargeur() {\n return getWidth();\n }",
"private int[] m7231g() {\n this.f5577B[0] = this.f5594p;\n this.f5577B[1] = this.f5600v - this.f5594p;\n return this.f5577B;\n }",
"public static int offset_quality() {\n return (48 / 8);\n }",
"@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }",
"private static int getSize(double loadFactor){\n return (primeSize((int) (3739/loadFactor))); // 3739 is the number of entries from the lexicon list\n }",
"public int mo9754s() {\n return mo9774x();\n }",
"double volume() {\n\treturn width*height*depth;\n}",
"public final void mo9756A() {\n int i = this.f9072g + this.f9073h;\n this.f9072g = i;\n int i2 = i - this.f9075j;\n int i3 = this.f9077l;\n if (i2 > i3) {\n int i4 = i2 - i3;\n this.f9073h = i4;\n this.f9072g = i - i4;\n return;\n }\n this.f9073h = 0;\n }",
"public int getEdgeCount() \n {\n return 3;\n }",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"@Override\r\n\tpublic int unitsToWagger() {\n\t\treturn 0;\r\n\t}",
"Length getWidth();",
"Integer getDataLgth();",
"public int mo9761x() {\n /*\n r5 = this;\n int r0 = r5.f9074i\n int r1 = r5.f9072g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9070e\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9074i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9763z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9074i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3658b.mo9761x():int\");\n }",
"protected int pixelOneSample() {\r\n\t\treturn getGraphWidth() / section.getLength();\r\n\t}",
"public static int size_group() {\n return (8 / 8);\n }",
"double volume(){\n\n return widgh*height*depth;\n\n }",
"public int getWidth()\n {\n return larghezza;\n }",
"protected static float[] getBinomialKernelSigmaZeroPointSevenOne() {\n float a = 1.f/200.f;\n return new float[]{9*a, 83*a, 0, -83*a, -9*a};\n }",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"private static double fds_h(Vec v) { return 2*ASTMad.mad(new Frame(v), null, 1.4826)*Math.pow(v.length(),-1./3.); }",
"public static int size_parent() {\n return (8 / 8);\n }",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"public int mo1067a() {\n return this.f3256d.size();\n }",
"@Test\n\tpublic void testLargeRingSystem4() throws Exception {\n\t\tString smiles = \"c1ccc(cc1)[Sn](c2ccccc2)(c3ccccc3)S[Sn](c4ccccc4)(c5ccccc5)c6ccccc6\";\n IAtomContainer mol = sp.parseSmiles(smiles);\n atasc.decideBondOrder(mol, true);\n \n int doubleBondCount = 0;\n for (IBond bond : mol.bonds()) {\n if (bond.getOrder().equals(Order.DOUBLE)) doubleBondCount++;\n }\n Assert.assertEquals(18, doubleBondCount);\n\t}",
"double getNewWidth();",
"private double triangleBase() {\n return cellWidth() / BASE_WIDTH;\n }",
"public double getBestWidth() { return getBestWidth(-1); }"
] | [
"0.6267649",
"0.5982671",
"0.5817717",
"0.58041155",
"0.5719764",
"0.568809",
"0.5635789",
"0.5609374",
"0.5561369",
"0.5535078",
"0.5533969",
"0.5524006",
"0.5484666",
"0.5468005",
"0.5466903",
"0.5466062",
"0.545359",
"0.54443926",
"0.5442252",
"0.5439749",
"0.5417638",
"0.5413759",
"0.54112643",
"0.54043704",
"0.53939205",
"0.53732246",
"0.5358528",
"0.5355632",
"0.5354981",
"0.53539944",
"0.53460646",
"0.53457123",
"0.533898",
"0.53340155",
"0.53215104",
"0.5318403",
"0.5309923",
"0.5306337",
"0.5299704",
"0.5297725",
"0.5297725",
"0.5295799",
"0.5295799",
"0.52924955",
"0.5288964",
"0.5286151",
"0.5271266",
"0.5270939",
"0.5264679",
"0.5262629",
"0.52604944",
"0.5255769",
"0.5251719",
"0.52510136",
"0.52422005",
"0.52373683",
"0.5237179",
"0.52355164",
"0.52334845",
"0.5232398",
"0.52281886",
"0.52277493",
"0.5227263",
"0.52212083",
"0.52211267",
"0.52206916",
"0.5218536",
"0.52180666",
"0.5217649",
"0.5206445",
"0.5206402",
"0.5205632",
"0.5204601",
"0.52038234",
"0.52009165",
"0.5193668",
"0.51931417",
"0.51767725",
"0.51734567",
"0.5172222",
"0.5170131",
"0.5169264",
"0.5168824",
"0.5168376",
"0.5166958",
"0.5165984",
"0.5165141",
"0.5161864",
"0.5159598",
"0.515944",
"0.5156916",
"0.5156356",
"0.5148687",
"0.51452327",
"0.51443064",
"0.5142426",
"0.5142168",
"0.5141302",
"0.5140209",
"0.51360625",
"0.51325405"
] | 0.0 | -1 |
/ / / / / / / / / | public void setTimeline(Timeline timeline) {
/* 485 */ if (this.timeline != timeline) {
/* 486 */ this.timeline = timeline;
/* 487 */ fireChangeEvent();
/* */ }
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"public void divide() {\n\t\t\n\t}",
"private int rightChild(int i){return 2*i+2;}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public abstract void bepaalGrootte();",
"double passer();",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public String ring();",
"int getWidth() {return width;}",
"public void gored() {\n\t\t\n\t}",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public String toString(){ return \"DIV\";}",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void getTile_B8();",
"public Integer getWidth(){return this.width;}",
"public abstract String division();",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"int width();",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"@Override\n public void bfs() {\n\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"double volume(){\n return width*height*depth;\n }",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"public int generateRoshambo(){\n ;]\n\n }",
"private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"Operations operations();",
"public int getEdgeCount() \n {\n return 3;\n }",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"double getNewWidth();",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"long getWidth();",
"public void SubRect(){\n\t\n}",
"void mo33732Px();",
"public double getPerimiter(){return (2*height +2*width);}",
"static void pyramid(){\n\t}",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"public int my_leaf_count();",
"public void skystonePos4() {\n }",
"void walk() {\n\t\t\n\t}",
"public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }",
"double seBlesser();",
"private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}",
"void sharpen();",
"void sharpen();",
"Parallelogram(){\n length = width = height = 0;\n }",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}",
"public String getRing();",
"public void leerPlanesDietas();",
"static int getNumPatterns() { return 64; }",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}",
"public int getWidth(){\n return width;\n }",
"@Override\n\tpublic void walk() {\n\t\t\n\t}",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"double getPerimeter(){\n return 2*height+width;\n }",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"protected int parent(int i) { return (i - 1) / 2; }",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public abstract double getBaseWidth();",
"public void stg() {\n\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}",
"void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }",
"public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }",
"int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}",
"int expand();",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}",
"public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"@Override\n protected void paint2d(Graphics2D g) {\n \n }",
"public int upright();",
"int getTribeSize();",
"int getWidth1();",
"int getR();",
"String directsTo();",
"public int getWidth()\n {return width;}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"int depth();",
"int depth();",
"public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }",
"public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}",
"public int getDireccion(Pixel p) {\r\n\t\tif (x == p.x && y < p.y)\r\n\t\t\treturn DIR_N;\r\n\t\tif (x > p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x == p.x && y > p.y)\r\n\t\t\treturn DIR_S;\r\n\t\tif (x > p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x > p.x && y == p.y)\r\n\t\t\treturn DIR_E;\r\n\t\tif (x < p.x && y == p.y)\r\n\t\t\treturn DIR_O;\r\n\t\treturn -1;\r\n\t}",
"double getWidth();"
] | [
"0.5532527",
"0.54391015",
"0.5251596",
"0.52418447",
"0.5150535",
"0.512878",
"0.50683415",
"0.5066834",
"0.50221753",
"0.50129646",
"0.50077325",
"0.50051177",
"0.49997202",
"0.499538",
"0.49736512",
"0.49707893",
"0.49684572",
"0.49598044",
"0.49381968",
"0.49364173",
"0.49284318",
"0.48852703",
"0.4875062",
"0.48727193",
"0.4851693",
"0.48446384",
"0.48325908",
"0.48282844",
"0.48261568",
"0.48090968",
"0.48057693",
"0.48047045",
"0.48043686",
"0.48037383",
"0.4799067",
"0.4796126",
"0.4795011",
"0.47925386",
"0.47889647",
"0.4784086",
"0.47752148",
"0.47746503",
"0.47734392",
"0.4767767",
"0.47666863",
"0.47617707",
"0.47546872",
"0.47541285",
"0.47520202",
"0.47481504",
"0.4742862",
"0.47424123",
"0.47418612",
"0.4740628",
"0.4740628",
"0.47359604",
"0.4735926",
"0.47354448",
"0.473334",
"0.47322544",
"0.47315875",
"0.47303522",
"0.47300366",
"0.4729194",
"0.47287259",
"0.47265247",
"0.47252014",
"0.47247088",
"0.47164094",
"0.4705852",
"0.47038704",
"0.47033063",
"0.470207",
"0.46977833",
"0.46977744",
"0.4688691",
"0.4688624",
"0.4688624",
"0.46859193",
"0.46792743",
"0.4674773",
"0.46735224",
"0.4671809",
"0.46690786",
"0.4666248",
"0.46633562",
"0.46632627",
"0.46615568",
"0.4659301",
"0.4658479",
"0.46570495",
"0.4650401",
"0.46498072",
"0.46485025",
"0.4647073",
"0.46437675",
"0.46437675",
"0.46425405",
"0.46415186",
"0.46407634",
"0.46398857"
] | 0.0 | -1 |
/ / / / / / / / / / / / / / / / 505 | public DateTickUnit getTickUnit() { return this.tickUnit; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int m5345e() {\n if (Process.myUid() == 1000) {\n return 0;\n }\n boolean equals;\n try {\n equals = \"mounted\".equals(Environment.getExternalStorageState());\n } catch (Exception e) {\n equals = false;\n }\n if (C1222aj.m5343c() && !equals) {\n return 0;\n }\n File file = new File(C1222aj.m5334a(this.f4232a).getPath() + File.separator + \"carrierdata\");\n if (!file.exists() || !file.isDirectory()) {\n return 0;\n }\n File[] listFiles = file.listFiles();\n if (listFiles == null || listFiles.length <= 0) {\n return 0;\n }\n ArrayList a = C1222aj.m5336a(listFiles);\n return a.size() == 1 ? ((File) a.get(0)).length() <= 0 ? 10 : 1 : a.size() >= 2 ? 2 : 0;\n }",
"Info mo7564ix();",
"@Test\n\tpublic void testLargeRingSystem5() throws Exception {\n\t\tString smiles = \"O=C1c2ccccc2C(=O)c3c1ccc4c3[nH]c5c6C(=O)c7ccccc7C(=O)c6c8[nH]c9c%10C(=O)c%11ccccc%11C(=O)c%10ccc9c8c45\";\n\t\t\n IAtomContainer mol = sp.parseSmiles(smiles);\n atasc.decideBondOrder(mol, true);\n \n int doubleBondCount = 0;\n for (IBond bond : mol.bonds()) {\n if (bond.getOrder().equals(Order.DOUBLE)) doubleBondCount++;\n }\n Assert.assertEquals(24, doubleBondCount);\n\t}",
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"@Test(timeout = 4000)\n public void test52() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickSize(6372, 3, 2146363568);\n assertEquals(\"id=6372 askSize=2146363568\", string0);\n }",
"public static String m576f() {\r\n long j = 0;\r\n try {\r\n StatFs statFs = new StatFs(Environment.getDataDirectory().getPath());\r\n j = ((long) statFs.getBlockCount()) * ((long) statFs.getBlockSize());\r\n } catch (Exception e) {\r\n }\r\n return String.valueOf(j);\r\n }",
"protected int bytesPerAtom() {\n return (2);\n }",
"protected int bytesPerAtom() {\n return (2);\n }",
"public int mo36g() {\n return 8;\n }",
"public int getBaseMP5()\r\n {\r\n return mBaseMP5;\r\n }",
"public static String m578g() {\r\n long j = 0;\r\n try {\r\n if (\"mounted\".equals(Environment.getExternalStorageState())) {\r\n StatFs statFs = new StatFs(Environment.getExternalStorageDirectory().getPath());\r\n j = ((long) statFs.getBlockCount()) * ((long) statFs.getBlockSize());\r\n }\r\n } catch (Exception e) {\r\n }\r\n return String.valueOf(j);\r\n }",
"int memSize() {\r\n\t\treturn BASE_NODE_SIZE + 5 * 4;\r\n\t}",
"C5537g mo4096b(int i);",
"int method20()\n {\n return 579190;\n }",
"@Override\n\tpublic int computeSize() {\n\t\treturn 36;\n\t}",
"C4945r5 mo19056B();",
"@Override\n public int getMaxCapacity() {\n return 156250000;\n }",
"private int m672E() {\n int i = 0;\n if (this.f552g.mo501h() >= 5) {\n byte[] f = this.f552g.mo499f();\n int g = this.f552g.mo500g();\n int i2 = 0;\n int i3 = 0;\n while (true) {\n byte b = f[g + i];\n i2 |= (b & Byte.MAX_VALUE) << i3;\n if ((b & 128) != 128) {\n this.f552g.mo495a(i + 1);\n return i2;\n }\n i3 += 7;\n i++;\n }\n } else {\n int i4 = 0;\n while (true) {\n byte u = mo470u();\n i |= (u & Byte.MAX_VALUE) << i4;\n if ((u & 128) != 128) {\n return i;\n }\n i4 += 7;\n }\n }\n }",
"private static byte[] m2536b(Context context) {\n byte[] c = StatisticsManager.m2537c(context);\n byte[] e = StatisticsManager.m2539e(context);\n byte[] bArr = new byte[(c.length + e.length)];\n System.arraycopy(c, 0, bArr, 0, c.length);\n System.arraycopy(e, 0, bArr, c.length, e.length);\n return StatisticsManager.m2534a(context, bArr);\n }",
"private static byte[] m2539e(Context context) {\n Throwable th;\n int i = 0;\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n byte[] bArr = new byte[0];\n String a = Log.m2547a(context, Log.f1857e);\n DiskLruCache diskLruCache = null;\n try {\n diskLruCache = DiskLruCache.m2767a(new File(a), 1, 1, 10240);\n File file = new File(a);\n if (file != null && file.exists()) {\n String[] list = file.list();\n int length = list.length;\n while (i < length) {\n String str = list[i];\n if (str.contains(\".0\")) {\n byteArrayOutputStream.write(StatisticsManager.m2535a(diskLruCache, str.split(\"\\\\.\")[0]));\n }\n i++;\n }\n }\n bArr = byteArrayOutputStream.toByteArray();\n if (byteArrayOutputStream != null) {\n try {\n byteArrayOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if (diskLruCache != null) {\n try {\n diskLruCache.close();\n } catch (Throwable th2) {\n th = th2;\n }\n }\n } catch (IOException th3) {\n BasicLogHandler.m2542a(th3, \"StatisticsManager\", \"getContent\");\n if (byteArrayOutputStream != null) {\n try {\n byteArrayOutputStream.close();\n } catch (IOException e2) {\n e2.printStackTrace();\n }\n }\n if (diskLruCache != null) {\n diskLruCache.close();\n }\n } catch (Throwable th4) {\n th3 = th4;\n }\n return bArr;\n th3.printStackTrace();\n return bArr;\n }",
"public long getBlockCount ( ) {\r\n\t\treturn 436;\r\n\t}",
"public int mo9754s() {\n return mo9774x();\n }",
"public int getBaseHP5()\r\n {\r\n return mBaseHP5;\r\n }",
"public int mo36g() {\n return 4;\n }",
"public int getUnknown5()\r\n\t{\r\n\t\treturn unknown5;\r\n\t}",
"static int getNumPatterns() { return 64; }",
"private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }",
"public static int size_receivets() {\n return (32 / 8);\n }",
"@Override\n\tpublic int seatCapacity() {\n\t\treturn 4;\n\t}",
"public int method_2436() {\r\n return 16;\r\n }",
"public abstract long mo9755t();",
"int memSize() {\n return super.memSize() + 4 * 4; }",
"public static int offset_cost() {\n return (56 / 8);\n }",
"@Override\n public int getCacheSize() {\n return 4 + 20 * 88;\n }",
"com.google.protobuf.ByteString\n getS5Bytes();",
"@Test(timeout = 4000)\n public void test50() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickEFP((-2147), 10, 10, \".^|7={wR>bl,rlfYN\", 10, 484, \".^|7={wR>bl,rlfYN\", 484, 484);\n assertEquals(\"id=-2147 bidOptComp: basisPoints = 10.0/.^|7={wR>bl,rlfYN impliedFuture = 10.0 holdDays = 484 futureExpiry = .^|7={wR>bl,rlfYN dividendImpact = 484.0 dividends to expiry = 484.0\", string0);\n }",
"@Test(timeout = 4000)\n public void test077() throws Throwable {\n byte[] byteArray0 = new byte[1];\n ValueLobDb valueLobDb0 = ValueLobDb.createSmallLob(1459, byteArray0, (byte)0);\n Reader reader0 = valueLobDb0.getReader();\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(reader0);\n streamTokenizer0.nval = 32768.0;\n String string0 = SQLUtil.renderNumber(streamTokenizer0);\n assertEquals(\"32768\", string0);\n }",
"public static int m8655e() {\n return 8;\n }",
"public abstract int mo9754s();",
"@Override\npublic int writingBenches() {\n\treturn 200;\n}",
"private double RepulsionFactorSourceNodes(){\n \tdouble RepulsionFactor=10000.0d *(contextNodeSize*5);\n \t\n \treturn RepulsionFactor;\n }",
"public long getDbsize()\n/* */ {\n/* 79 */ return this.dbsize;\n/* */ }",
"public final long mo20953WW() {\n AppMethodBeat.m2504i(60318);\n if (fXT <= 0) {\n fXT = ((ActivityManager) C4996ah.getContext().getSystemService(\"activity\")).getLargeMemoryClass();\n }\n if (fXT >= 512) {\n AppMethodBeat.m2505o(60318);\n return 41943040;\n }\n AppMethodBeat.m2505o(60318);\n return 20971520;\n }",
"public int arn() {\n return 383;\n }",
"@Test\n @Tag(\"bm1000\")\n public void testGROW7() {\n CuteNetlibCase.doTest(\"GROW7.SIF\", \"-4.7787811814711526E7\", \"0.0\", NumberContext.of(7, 4));\n }",
"@Test public void testParseManyDigits5() {\n String pows10 =\n \"1399008600149269883\\n\"+\n \"1399008600149269880\\n\"+\n \"\";\n double[][] pows10_exp = new double[][] {\n ard(1399008600149269883L),\n ard(1399008600149269880L),\n };\n Key k = FVecFactory.makeByteVec(pows10);\n Key r1 = Key.make(\"r1\");\n ParseDataset.parse(r1, k);\n testParsed(r1,pows10_exp);\n }",
"Integer diskSizeGB();",
"@Test\n @Tag(\"bm1000\")\n public void testGROW15() {\n CuteNetlibCase.doTest(\"GROW15.SIF\", \"-1.068709412935753E8\", \"0.0\", NumberContext.of(7, 4));\n }",
"public static int offset_receivets() {\n return (72 / 8);\n }",
"public void mo55583c() {\n C3561h5.m954c().mo55465a().execute(new C3629m());\n }",
"public abstract long mo9746k();",
"private int calculateBinSize(int r15) throws java.io.IOException {\n /*\n r14 = this;\n r1 = 0\n java.io.InputStream r2 = r14.in\n int r12 = r2.available()\n r2.mark(r12)\n r4 = 0\n int r0 = r2.read() // Catch:{ all -> 0x0052 }\n L_0x000f:\n r14.checkComma(r0) // Catch:{ all -> 0x0052 }\n int r5 = r14.readByte(r2) // Catch:{ all -> 0x0052 }\n int r8 = r14.readAddress(r2) // Catch:{ all -> 0x0052 }\n int r9 = r14.readByte(r2) // Catch:{ all -> 0x0052 }\n switch(r9) {\n case 0: goto L_0x0072;\n case 1: goto L_0x0036;\n case 2: goto L_0x0057;\n case 3: goto L_0x0021;\n case 4: goto L_0x003a;\n default: goto L_0x0021;\n } // Catch:{ all -> 0x0052 }\n L_0x0021:\n int r12 = r5 * 2\n int r12 = r12 + 2\n long r10 = (long) r12 // Catch:{ all -> 0x0052 }\n r14.skip(r2, r10) // Catch:{ all -> 0x0052 }\n L_0x0029:\n int r0 = r2.read() // Catch:{ all -> 0x0052 }\n r12 = 10\n if (r0 == r12) goto L_0x0029\n r12 = 13\n if (r0 == r12) goto L_0x0029\n goto L_0x000f\n L_0x0036:\n r2.reset()\n L_0x0039:\n return r1\n L_0x003a:\n int r7 = r14.readAddress(r2) // Catch:{ all -> 0x0052 }\n if (r1 <= 0) goto L_0x004a\n int r12 = r4 >> 16\n int r12 = r12 + 1\n if (r7 == r12) goto L_0x004a\n r2.reset()\n goto L_0x0039\n L_0x004a:\n int r4 = r7 << 16\n r12 = 2\n r14.skip(r2, r12) // Catch:{ all -> 0x0052 }\n goto L_0x0029\n L_0x0052:\n r12 = move-exception\n r2.reset()\n throw r12\n L_0x0057:\n int r12 = r14.readAddress(r2) // Catch:{ all -> 0x0052 }\n int r6 = r12 << 4\n if (r1 <= 0) goto L_0x006b\n int r12 = r6 >> 16\n int r13 = r4 >> 16\n int r13 = r13 + 1\n if (r12 == r13) goto L_0x006b\n r2.reset()\n goto L_0x0039\n L_0x006b:\n r4 = r6\n r12 = 2\n r14.skip(r2, r12) // Catch:{ all -> 0x0052 }\n goto L_0x0029\n L_0x0072:\n int r3 = r4 + r8\n if (r3 < r15) goto L_0x0021\n int r1 = r1 + r5\n goto L_0x0021\n */\n throw new UnsupportedOperationException(\"Method not decompiled: no.nordicsemi.android.dfu.internal.HexInputStream.calculateBinSize(int):int\");\n }",
"int getBurstNImages();",
"private static java.lang.String m586k() {\r\n /*\r\n r6 = 1;\r\n r0 = 0;\r\n r1 = \"/proc/cpuinfo\";\r\n r2 = new java.io.FileReader;\t Catch:{ IOException -> 0x0040, all -> 0x0050 }\r\n r2.<init>(r1);\t Catch:{ IOException -> 0x0040, all -> 0x0050 }\r\n r1 = new java.io.BufferedReader;\t Catch:{ IOException -> 0x0071, all -> 0x006a }\r\n r3 = 8192; // 0x2000 float:1.14794E-41 double:4.0474E-320;\r\n r1.<init>(r2, r3);\t Catch:{ IOException -> 0x0071, all -> 0x006a }\r\n L_0x0010:\r\n r3 = r1.readLine();\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r3 == 0) goto L_0x0039;\r\n L_0x0016:\r\n r4 = com.alipay.security.mobile.module.p010a.C0159a.m556a(r3);\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r4 != 0) goto L_0x0010;\r\n L_0x001c:\r\n r4 = \":\";\r\n r3 = r3.split(r4);\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r3 == 0) goto L_0x0010;\r\n L_0x0024:\r\n r4 = r3.length;\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r4 <= r6) goto L_0x0010;\r\n L_0x0027:\r\n r4 = 0;\r\n r4 = r3[r4];\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n r5 = \"BogoMIPS\";\r\n r4 = r4.contains(r5);\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r4 == 0) goto L_0x0010;\r\n L_0x0032:\r\n r4 = 1;\r\n r3 = r3[r4];\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n r0 = r3.trim();\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n L_0x0039:\r\n r2.close();\t Catch:{ IOException -> 0x0060 }\r\n L_0x003c:\r\n r1.close();\t Catch:{ IOException -> 0x0062 }\r\n L_0x003f:\r\n return r0;\r\n L_0x0040:\r\n r1 = move-exception;\r\n r1 = r0;\r\n r2 = r0;\r\n L_0x0043:\r\n if (r2 == 0) goto L_0x0048;\r\n L_0x0045:\r\n r2.close();\t Catch:{ IOException -> 0x0064 }\r\n L_0x0048:\r\n if (r1 == 0) goto L_0x003f;\r\n L_0x004a:\r\n r1.close();\t Catch:{ IOException -> 0x004e }\r\n goto L_0x003f;\r\n L_0x004e:\r\n r1 = move-exception;\r\n goto L_0x003f;\r\n L_0x0050:\r\n r1 = move-exception;\r\n r2 = r0;\r\n r7 = r0;\r\n r0 = r1;\r\n r1 = r7;\r\n L_0x0055:\r\n if (r2 == 0) goto L_0x005a;\r\n L_0x0057:\r\n r2.close();\t Catch:{ IOException -> 0x0066 }\r\n L_0x005a:\r\n if (r1 == 0) goto L_0x005f;\r\n L_0x005c:\r\n r1.close();\t Catch:{ IOException -> 0x0068 }\r\n L_0x005f:\r\n throw r0;\r\n L_0x0060:\r\n r2 = move-exception;\r\n goto L_0x003c;\r\n L_0x0062:\r\n r1 = move-exception;\r\n goto L_0x003f;\r\n L_0x0064:\r\n r2 = move-exception;\r\n goto L_0x0048;\r\n L_0x0066:\r\n r2 = move-exception;\r\n goto L_0x005a;\r\n L_0x0068:\r\n r1 = move-exception;\r\n goto L_0x005f;\r\n L_0x006a:\r\n r1 = move-exception;\r\n r7 = r1;\r\n r1 = r0;\r\n r0 = r7;\r\n goto L_0x0055;\r\n L_0x006f:\r\n r0 = move-exception;\r\n goto L_0x0055;\r\n L_0x0071:\r\n r1 = move-exception;\r\n r1 = r0;\r\n goto L_0x0043;\r\n L_0x0074:\r\n r3 = move-exception;\r\n goto L_0x0043;\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: com.alipay.security.mobile.module.b.a.k():java.lang.String\");\r\n }",
"public byte[] m5045d() {\n return this.f3986d;\n }",
"public int getFootprintLength() {\n return 1;\n }",
"public int getBlockSize()\n/* */ {\n/* 43 */ return this.blockSize;\n/* */ }",
"@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }",
"int steamPerDurability();",
"public final int mo50059a() {\n return 2;\n }",
"java.lang.String getField1024();",
"static long m61428a(File file) {\n long j;\n try {\n StatFs statFs = new StatFs(file.getAbsolutePath());\n j = (((long) statFs.getBlockCount()) * ((long) statFs.getBlockSize())) / 50;\n } catch (IllegalArgumentException unused) {\n j = 5242880;\n }\n return Math.max(Math.min(j, 52428800), 5242880);\n }",
"public String getLimit_Base();",
"public abstract int getSmallStackSizeWishInKb();",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n public int getSize() {\n return 64;\n }",
"void mo1507n();",
"public void setBaseMP5(int baseMP5)\r\n {\r\n this.mBaseMP5 = baseMP5;\r\n }",
"public int getCountRequests() {\n/* 415 */ return this.countRequests;\n/* */ }",
"public void testYourFifthPartition() {\n\tSystem.out.print(\"\\nTesting Fifth Partition...\\n\");\n executeTestPrintResult(\"http://abc.com:1/a?key=value\", true); // domain + port + path + query\n executeTestPrintResult(\"http://abc.com/a?key=value\", true); // domain + path + query\n executeTestPrintResult(\"http://abc.com:1/a\", true); // domain + port + path\n executeTestPrintResult(\"http://abc.com:1?key=value\", true); // domain + port + query\n\n executeTestPrintResult(\"http://abc.com/a/b:80\", false); // domain + path + port\n executeTestPrintResult(\"http://abc.com?key=value/a/b/c\", false); // domain + query + path\n executeTestPrintResult(\"http://abc.com?key=value:80\", false); // domain + query + port\n executeTestPrintResult(\"http://abc.com:1?key=value/a/b/c\", false); // domain + port + query + path\n executeTestPrintResult(\"http://abc.com?key=value/a/b/c:80\", false); // domain + query + path + port\n executeTestPrintResult(\"http://abc.com?key=value:80/a/b/c\", false); // domain + query + port + path\n executeTestPrintResult(\"http://abc.com/a/b/c:80?key=value\", false); // domain + path + port + query\n executeTestPrintResult(\"http://abc.com/a/b/c?key=value:80\", false); // domain + path + query + port\n\t \n }",
"protected void mo6255a() {\n }",
"private String calcRebillTPS() throws java.security.NoSuchAlgorithmException {\n\t\tString tps = BP_SECRET_KEY + BP_MERCHANT + TRANSACTION_TYPE + REBILL_ID;\n\t\treturn md5(tps);\n\t}",
"public final byte mo27874d() {\n return 15;\n }",
"public static int totalSize_infos_noise() {\n return (48 / 8);\n }",
"@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}",
"float getLoopbackDbfs();",
"public int mo9754s() {\n return mo9785x();\n }",
"public int getSize() {\r\n\t\treturn 5; // 1 (code) + 2 (data length) + 2 (branch offset)\r\n\t}",
"private void m43017g() {\n try {\n this.f40245p = this.f40244o + Long.valueOf(this.f40240k.getHeaderField(\"Content-Length\")).longValue();\n } catch (Exception e) {\n this.f40245p = -1;\n }\n }",
"C4945r5 mo19057F();",
"public static int size_moteId() {\n return (16 / 8);\n }",
"public int NextMbAddress(int n) {\n\t\tint PicSizeInMapUnits= (sps0.pic_width_in_mbs_minus_1+1)*(sps0.pic_height_in_map_units_minus_1+1);\n\t\t// int FrameHeightInMbs = (2-(sps0.frame_mbs_only_flag ? 1:0))*(sps0.pic_height_in_map_units_minus_1+1);\n \t\t// int PicHeightInMbs = FrameHeightInMbs / (1+(field_pic_flag ? 1:0));\n\n \t\tint PicSizeInMbs = (sps0.pic_width_in_mbs_minus_1+1) * (PicHeightInMbs);\n\t\t// (7-34)\n\t\tint MapUnitsInSliceGroup0 = Math.min(((pps0.slice_group_change_rate_minus1 + 1) * slice_group_change_cycle), \n\t\t\t(PicSizeInMapUnits));\n\t\t// System.out.println(MapUnitsInSliceGroup0);\n\t\tint sizeOfUpperLeftGroup;\n\t\tif(pps0.num_slice_groups_minus1==1&&(pps0.slice_group_map_type==4||pps0.slice_group_map_type==5)){\n\n\t\t\tsizeOfUpperLeftGroup=(pps0.slice_group_change_direction_flag ? (PicSizeInMapUnits - MapUnitsInSliceGroup0)\n\t\t\t\t: MapUnitsInSliceGroup0);\n\t\t}\n\t\tint [] mapUnitToSliceGroupMap=new int[PicSizeInMapUnits];\n\t\tif(pps0.num_slice_groups_minus1==0){\n\t\t\t// System.out.println(\"zero \");\n\t\t\tfor(int i=0;i<pps0.pic_size_in_map_units_minus1+1;i++){\n\t\t\t\tmapUnitToSliceGroupMap[i]=0;\n\t\t\t}\t\t\t\n\t\t}\n\n\t\telse if(pps0.num_slice_groups_minus1!=0){\n\t\t\tif(pps0.slice_group_map_type==0){\n\t\t\t\t// 8.2.2.1\n\t\t\t}\n\t\t\telse if(pps0.slice_group_map_type==1){\n\t\t\t\t// 8.2.2.2\n\t\t\t}else if(pps0.slice_group_map_type==2){\n\t\t\t\t// 8.2.2.3\n\t\t\t}else if(pps0.slice_group_map_type==3){\n\t\t\t\t// 8.2.2.4\n\t\t\t}else if(pps0.slice_group_map_type==4){\n\t\t\t\t// 8.2.2.5\n\t\t\t}\n\t\t\telse if(pps0.slice_group_map_type==5){\n\t\t\t\t// 8.2.2.6\n\t\t\t}\n\t\t\telse if(pps0.slice_group_map_type==6){\n\t\t\t\t// 8.2.2.7\n\t\t\t}\n\t\t}\n\n\n\t\t\t\t\t\t\t\t\t/* 8.2.2.8 */\n \t\tint[] MbToSliceGroupMap=new int[PicSizeInMbs];\n \t\tfor(int i=0;i<PicSizeInMbs;i++){\n \t\t\tif(sps0.frame_mbs_only_flag==true||field_pic_flag==true){\n \t\t\t\t// System.out.println(PicSizeInMbs+\" \"+PicSizeInMapUnits);\n \t\t\t\tMbToSliceGroupMap[i]=mapUnitToSliceGroupMap[i];\n \t\t\t} else if(MbaffFrameFlag){\n \t\t\t\tMbToSliceGroupMap[i]=mapUnitToSliceGroupMap[(int)i/2];\n\n \t\t\t}else if(sps0.frame_mbs_only_flag==false&&sps0.mb_adaptive_frame_field_flag==false&&field_pic_flag==false){\n \t\t\t\tMbToSliceGroupMap[i]=mapUnitToSliceGroupMap[(int)(i/(2*sps0.pic_width_in_mbs_minus_1+1))\n \t\t\t\t*sps0.pic_width_in_mbs_minus_1+1+(i%sps0.pic_width_in_mbs_minus_1+1)];\n \t\t\t}\n\n \t\t}\n\t\t// i = n + 1 \n\t\t// while( i < PicSizeInMbs && MbToSliceGroupMap[ i ] != MbToSliceGroupMap[ n ] )\n\t\t // i++; \n\t\t// nextMbAddress = i\n\t\tint i = n + 1;\n\t\t// int nextMbAddress = i;\n\n\t\twhile(i<PicSizeInMbs &&( MbToSliceGroupMap[i]!=MbToSliceGroupMap[n])) {\n\t\t\ti++;\n\t\t\t// System.out.println(\"here mb address\");\n\t\t\t// nextMbAddress = i;\n\t\t}\n\t\t// System.out.println(\"nextMbAddress \"+i);\n\t\treturn i;\n\t}",
"public short getReserved5()\n {\n return field_4_reserved5;\n }",
"@Override\n\tpublic int count() {\n\t\treturn 4;\n\t}",
"private static int getBytes(long r23) {\n /*\n java.lang.ThreadLocal<byte[]> r0 = TEMP_NUMBER_BUFFER\n java.lang.Object r0 = r0.get()\n byte[] r0 = (byte[]) r0\n r1 = 20\n if (r0 != 0) goto L_0x0013\n byte[] r0 = new byte[r1]\n java.lang.ThreadLocal<byte[]> r2 = TEMP_NUMBER_BUFFER\n r2.set(r0)\n L_0x0013:\n r2 = -9223372036854775808\n r4 = 54\n r5 = 57\n r6 = 45\n r7 = 53\n r8 = 56\n r9 = 55\n r10 = 51\n r11 = 50\n r12 = 0\n r13 = 48\n r14 = 1\n int r15 = (r23 > r2 ? 1 : (r23 == r2 ? 0 : -1))\n if (r15 != 0) goto L_0x0076\n r0[r12] = r6\n r0[r14] = r5\n r2 = 2\n r0[r2] = r11\n r2 = 3\n r0[r2] = r11\n r2 = 4\n r0[r2] = r10\n r2 = 5\n r0[r2] = r10\n r2 = 6\n r0[r2] = r9\n r2 = 7\n r0[r2] = r11\n r2 = 8\n r0[r2] = r13\n r2 = 9\n r0[r2] = r10\n r2 = 10\n r0[r2] = r4\n r2 = 11\n r0[r2] = r8\n r2 = 12\n r0[r2] = r7\n r2 = 13\n r3 = 52\n r0[r2] = r3\n r2 = 14\n r0[r2] = r9\n r2 = 15\n r0[r2] = r9\n r2 = 16\n r0[r2] = r7\n r2 = 17\n r0[r2] = r8\n r2 = 18\n r0[r2] = r13\n r2 = 19\n r0[r2] = r8\n return r1\n L_0x0076:\n r1 = 0\n int r3 = (r23 > r1 ? 1 : (r23 == r1 ? 0 : -1))\n if (r3 != 0) goto L_0x007f\n r0[r12] = r13\n return r14\n L_0x007f:\n if (r3 >= 0) goto L_0x0088\n r0[r12] = r6\n long r15 = java.lang.Math.abs(r23)\n goto L_0x008b\n L_0x0088:\n r14 = 0\n r15 = r23\n L_0x008b:\n r17 = 9\n r19 = 10\n r21 = 1\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0099\n r17 = r21\n goto L_0x017e\n L_0x0099:\n r17 = 99\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00a3\n r17 = r19\n goto L_0x017e\n L_0x00a3:\n r17 = 999(0x3e7, double:4.936E-321)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00ad\n r17 = 100\n goto L_0x017e\n L_0x00ad:\n r17 = 9999(0x270f, double:4.94E-320)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00b7\n r17 = 1000(0x3e8, double:4.94E-321)\n goto L_0x017e\n L_0x00b7:\n r17 = 99999(0x1869f, double:4.9406E-319)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00c2\n r17 = 10000(0x2710, double:4.9407E-320)\n goto L_0x017e\n L_0x00c2:\n r17 = 999999(0xf423f, double:4.94065E-318)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00ce\n r17 = 100000(0x186a0, double:4.94066E-319)\n goto L_0x017e\n L_0x00ce:\n r17 = 9999999(0x98967f, double:4.940656E-317)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00da\n r17 = 1000000(0xf4240, double:4.940656E-318)\n goto L_0x017e\n L_0x00da:\n r17 = 99999999(0x5f5e0ff, double:4.9406564E-316)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00e6\n r17 = 10000000(0x989680, double:4.9406565E-317)\n goto L_0x017e\n L_0x00e6:\n r17 = 999999999(0x3b9ac9ff, double:4.940656453E-315)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00f2\n r17 = 100000000(0x5f5e100, double:4.94065646E-316)\n goto L_0x017e\n L_0x00f2:\n r17 = 9999999999(0x2540be3ff, double:4.940656458E-314)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0100\n r17 = 1000000000(0x3b9aca00, double:4.94065646E-315)\n goto L_0x017e\n L_0x0100:\n r17 = 99999999999(0x174876e7ff, double:4.94065645836E-313)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0110\n r17 = 10000000000(0x2540be400, double:4.9406564584E-314)\n goto L_0x017e\n L_0x0110:\n r17 = 999999999999(0xe8d4a50fff, double:4.940656458408E-312)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x011f\n r17 = 100000000000(0x174876e800, double:4.9406564584E-313)\n goto L_0x017e\n L_0x011f:\n r17 = 9999999999999(0x9184e729fff, double:4.940656458412E-311)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x012e\n r17 = 1000000000000(0xe8d4a51000, double:4.94065645841E-312)\n goto L_0x017e\n L_0x012e:\n r17 = 99999999999999(0x5af3107a3fff, double:4.9406564584124E-310)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x013d\n r17 = 10000000000000(0x9184e72a000, double:4.9406564584125E-311)\n goto L_0x017e\n L_0x013d:\n r17 = 999999999999999(0x38d7ea4c67fff, double:4.94065645841246E-309)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x014c\n r17 = 100000000000000(0x5af3107a4000, double:4.94065645841247E-310)\n goto L_0x017e\n L_0x014c:\n r17 = 9999999999999999(0x2386f26fc0ffff, double:5.431165199810527E-308)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x015b\n r17 = 1000000000000000(0x38d7ea4c68000, double:4.940656458412465E-309)\n goto L_0x017e\n L_0x015b:\n r17 = 99999999999999999(0x16345785d89ffff, double:5.620395787888204E-302)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x016a\n r17 = 10000000000000000(0x2386f26fc10000, double:5.431165199810528E-308)\n goto L_0x017e\n L_0x016a:\n r17 = 999999999999999999(0xde0b6b3a763ffff, double:7.832953389245684E-242)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0179\n r17 = 100000000000000000(0x16345785d8a0000, double:5.620395787888205E-302)\n goto L_0x017e\n L_0x0179:\n r17 = 1000000000000000000(0xde0b6b3a7640000, double:7.832953389245686E-242)\n L_0x017e:\n long r1 = r15 / r17\n int r3 = (int) r1\n switch(r3) {\n case 0: goto L_0x01b6;\n case 1: goto L_0x01af;\n case 2: goto L_0x01aa;\n case 3: goto L_0x01a5;\n case 4: goto L_0x019e;\n case 5: goto L_0x0199;\n case 6: goto L_0x0194;\n case 7: goto L_0x018f;\n case 8: goto L_0x018a;\n case 9: goto L_0x0185;\n default: goto L_0x0184;\n }\n L_0x0184:\n goto L_0x01bb\n L_0x0185:\n int r3 = r14 + 1\n r0[r14] = r5\n goto L_0x01ba\n L_0x018a:\n int r3 = r14 + 1\n r0[r14] = r8\n goto L_0x01ba\n L_0x018f:\n int r3 = r14 + 1\n r0[r14] = r9\n goto L_0x01ba\n L_0x0194:\n int r3 = r14 + 1\n r0[r14] = r4\n goto L_0x01ba\n L_0x0199:\n int r3 = r14 + 1\n r0[r14] = r7\n goto L_0x01ba\n L_0x019e:\n int r3 = r14 + 1\n r6 = 52\n r0[r14] = r6\n goto L_0x01ba\n L_0x01a5:\n int r3 = r14 + 1\n r0[r14] = r10\n goto L_0x01ba\n L_0x01aa:\n int r3 = r14 + 1\n r0[r14] = r11\n goto L_0x01ba\n L_0x01af:\n int r3 = r14 + 1\n r6 = 49\n r0[r14] = r6\n goto L_0x01ba\n L_0x01b6:\n int r3 = r14 + 1\n r0[r14] = r13\n L_0x01ba:\n r14 = r3\n L_0x01bb:\n int r3 = (r17 > r21 ? 1 : (r17 == r21 ? 0 : -1))\n if (r3 != 0) goto L_0x01c0\n goto L_0x01d8\n L_0x01c0:\n java.lang.Long.signum(r17)\n long r1 = r1 * r17\n long r15 = r15 - r1\n r1 = 0\n int r3 = (r15 > r1 ? 1 : (r15 == r1 ? 0 : -1))\n if (r3 != 0) goto L_0x01d9\n L_0x01cc:\n int r1 = (r17 > r21 ? 1 : (r17 == r21 ? 0 : -1))\n if (r1 <= 0) goto L_0x01d8\n int r1 = r14 + 1\n r0[r14] = r13\n long r17 = r17 / r19\n r14 = r1\n goto L_0x01cc\n L_0x01d8:\n return r14\n L_0x01d9:\n long r17 = r17 / r19\n goto L_0x017e\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.unboundid.util.ByteStringBuffer.getBytes(long):int\");\n }",
"public int m2705f() {\n return ((Integer) this.f2439a.m2666a(ea.br)).intValue();\n }",
"@Test(timeout = 4000)\n public void test05() throws Throwable {\n Discretize discretize0 = new Discretize(\"^yH*RVC#\\\"|tm,k2XpGN\");\n String[] stringArray0 = new String[2];\n discretize0.m_ClassIndex = 906;\n discretize0.m_IgnoreClass = true;\n stringArray0[0] = \"^yH*RVC#\\\"|tm,k2XpGN\";\n stringArray0[1] = \"^yH*RVC#\\\"|tm,k2XpGN\";\n discretize0.setOptions(stringArray0);\n discretize0.setAttributeIndices(\"^yH*RVC#\\\"|tm,k2XpGN\");\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getFindNumBins());\n }",
"public abstract long mo9229aD();",
"@Test\n public void testHyperLogLog(){\n String redisKey= \"test:hll:01\";\n for (int i = 0; i <= 100000; i++) {\n redisTemplate.opsForHyperLogLog().add(redisKey,i);\n }\n\n for (int i = 0; i <= 100000; i++) {\n int r = (int) (Math.random() * 100000+1);\n redisTemplate.opsForHyperLogLog().add(redisKey,r);\n }\n\n Long size = redisTemplate.opsForHyperLogLog().size(redisKey);\n System.out.println(size);\n }",
"public synchronized int getUpperSizeLimit() {\n \t\treturn upper;\n \t}",
"@Test\n\tpublic void testLargeRingSystem4() throws Exception {\n\t\tString smiles = \"c1ccc(cc1)[Sn](c2ccccc2)(c3ccccc3)S[Sn](c4ccccc4)(c5ccccc5)c6ccccc6\";\n IAtomContainer mol = sp.parseSmiles(smiles);\n atasc.decideBondOrder(mol, true);\n \n int doubleBondCount = 0;\n for (IBond bond : mol.bonds()) {\n if (bond.getOrder().equals(Order.DOUBLE)) doubleBondCount++;\n }\n Assert.assertEquals(18, doubleBondCount);\n\t}",
"@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }",
"@Override\r\n\tpublic int size() {\n\t\treturn 27;\r\n\t}",
"public void mo55254a() {\n }"
] | [
"0.5600951",
"0.5483561",
"0.54818994",
"0.54070526",
"0.5382031",
"0.52840275",
"0.52724975",
"0.52724975",
"0.52585804",
"0.5233316",
"0.52039456",
"0.51991916",
"0.51767343",
"0.517457",
"0.51595175",
"0.5158456",
"0.5136364",
"0.51327616",
"0.5124568",
"0.5122001",
"0.5114882",
"0.5112964",
"0.5101752",
"0.50993204",
"0.5093637",
"0.5087044",
"0.5077816",
"0.5076376",
"0.5066122",
"0.5065216",
"0.50651044",
"0.5058201",
"0.5049097",
"0.5045798",
"0.504466",
"0.50410277",
"0.5021141",
"0.5013771",
"0.5008721",
"0.50021875",
"0.5001085",
"0.4996906",
"0.49848214",
"0.49840242",
"0.49825814",
"0.49736935",
"0.4966468",
"0.49600127",
"0.49566212",
"0.49470493",
"0.49469298",
"0.4945545",
"0.49451572",
"0.49443865",
"0.49402735",
"0.49399224",
"0.4937343",
"0.49344343",
"0.49307808",
"0.4927766",
"0.49253464",
"0.49165058",
"0.49097848",
"0.49028924",
"0.4902563",
"0.48996022",
"0.48996022",
"0.48996022",
"0.48996022",
"0.48996022",
"0.48996022",
"0.48996022",
"0.4887631",
"0.48867282",
"0.48836637",
"0.48787373",
"0.48764467",
"0.48712426",
"0.48567945",
"0.48509207",
"0.4850034",
"0.4850032",
"0.48491532",
"0.48463073",
"0.48430246",
"0.48414433",
"0.48413706",
"0.48386577",
"0.48382846",
"0.48381516",
"0.48369122",
"0.48356345",
"0.48342726",
"0.48331282",
"0.48319593",
"0.4828214",
"0.48267555",
"0.48255485",
"0.48252618",
"0.48251522",
"0.48228422"
] | 0.0 | -1 |
/ / / / / / / / / / / / / / 519 | public void setTickUnit(DateTickUnit unit) { setTickUnit(unit, true, true); } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"public abstract long mo9229aD();",
"Info mo7564ix();",
"public abstract long mo9746k();",
"long getUnknown72();",
"public int arn() {\n return 383;\n }",
"public abstract long mo13681c();",
"public abstract long mo24409b();",
"public int method_2436() {\r\n return 16;\r\n }",
"public int mo36g() {\n return 8;\n }",
"public abstract long mo9755t();",
"public abstract int mo9754s();",
"private static int getBytes(long r23) {\n /*\n java.lang.ThreadLocal<byte[]> r0 = TEMP_NUMBER_BUFFER\n java.lang.Object r0 = r0.get()\n byte[] r0 = (byte[]) r0\n r1 = 20\n if (r0 != 0) goto L_0x0013\n byte[] r0 = new byte[r1]\n java.lang.ThreadLocal<byte[]> r2 = TEMP_NUMBER_BUFFER\n r2.set(r0)\n L_0x0013:\n r2 = -9223372036854775808\n r4 = 54\n r5 = 57\n r6 = 45\n r7 = 53\n r8 = 56\n r9 = 55\n r10 = 51\n r11 = 50\n r12 = 0\n r13 = 48\n r14 = 1\n int r15 = (r23 > r2 ? 1 : (r23 == r2 ? 0 : -1))\n if (r15 != 0) goto L_0x0076\n r0[r12] = r6\n r0[r14] = r5\n r2 = 2\n r0[r2] = r11\n r2 = 3\n r0[r2] = r11\n r2 = 4\n r0[r2] = r10\n r2 = 5\n r0[r2] = r10\n r2 = 6\n r0[r2] = r9\n r2 = 7\n r0[r2] = r11\n r2 = 8\n r0[r2] = r13\n r2 = 9\n r0[r2] = r10\n r2 = 10\n r0[r2] = r4\n r2 = 11\n r0[r2] = r8\n r2 = 12\n r0[r2] = r7\n r2 = 13\n r3 = 52\n r0[r2] = r3\n r2 = 14\n r0[r2] = r9\n r2 = 15\n r0[r2] = r9\n r2 = 16\n r0[r2] = r7\n r2 = 17\n r0[r2] = r8\n r2 = 18\n r0[r2] = r13\n r2 = 19\n r0[r2] = r8\n return r1\n L_0x0076:\n r1 = 0\n int r3 = (r23 > r1 ? 1 : (r23 == r1 ? 0 : -1))\n if (r3 != 0) goto L_0x007f\n r0[r12] = r13\n return r14\n L_0x007f:\n if (r3 >= 0) goto L_0x0088\n r0[r12] = r6\n long r15 = java.lang.Math.abs(r23)\n goto L_0x008b\n L_0x0088:\n r14 = 0\n r15 = r23\n L_0x008b:\n r17 = 9\n r19 = 10\n r21 = 1\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0099\n r17 = r21\n goto L_0x017e\n L_0x0099:\n r17 = 99\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00a3\n r17 = r19\n goto L_0x017e\n L_0x00a3:\n r17 = 999(0x3e7, double:4.936E-321)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00ad\n r17 = 100\n goto L_0x017e\n L_0x00ad:\n r17 = 9999(0x270f, double:4.94E-320)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00b7\n r17 = 1000(0x3e8, double:4.94E-321)\n goto L_0x017e\n L_0x00b7:\n r17 = 99999(0x1869f, double:4.9406E-319)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00c2\n r17 = 10000(0x2710, double:4.9407E-320)\n goto L_0x017e\n L_0x00c2:\n r17 = 999999(0xf423f, double:4.94065E-318)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00ce\n r17 = 100000(0x186a0, double:4.94066E-319)\n goto L_0x017e\n L_0x00ce:\n r17 = 9999999(0x98967f, double:4.940656E-317)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00da\n r17 = 1000000(0xf4240, double:4.940656E-318)\n goto L_0x017e\n L_0x00da:\n r17 = 99999999(0x5f5e0ff, double:4.9406564E-316)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00e6\n r17 = 10000000(0x989680, double:4.9406565E-317)\n goto L_0x017e\n L_0x00e6:\n r17 = 999999999(0x3b9ac9ff, double:4.940656453E-315)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00f2\n r17 = 100000000(0x5f5e100, double:4.94065646E-316)\n goto L_0x017e\n L_0x00f2:\n r17 = 9999999999(0x2540be3ff, double:4.940656458E-314)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0100\n r17 = 1000000000(0x3b9aca00, double:4.94065646E-315)\n goto L_0x017e\n L_0x0100:\n r17 = 99999999999(0x174876e7ff, double:4.94065645836E-313)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0110\n r17 = 10000000000(0x2540be400, double:4.9406564584E-314)\n goto L_0x017e\n L_0x0110:\n r17 = 999999999999(0xe8d4a50fff, double:4.940656458408E-312)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x011f\n r17 = 100000000000(0x174876e800, double:4.9406564584E-313)\n goto L_0x017e\n L_0x011f:\n r17 = 9999999999999(0x9184e729fff, double:4.940656458412E-311)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x012e\n r17 = 1000000000000(0xe8d4a51000, double:4.94065645841E-312)\n goto L_0x017e\n L_0x012e:\n r17 = 99999999999999(0x5af3107a3fff, double:4.9406564584124E-310)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x013d\n r17 = 10000000000000(0x9184e72a000, double:4.9406564584125E-311)\n goto L_0x017e\n L_0x013d:\n r17 = 999999999999999(0x38d7ea4c67fff, double:4.94065645841246E-309)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x014c\n r17 = 100000000000000(0x5af3107a4000, double:4.94065645841247E-310)\n goto L_0x017e\n L_0x014c:\n r17 = 9999999999999999(0x2386f26fc0ffff, double:5.431165199810527E-308)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x015b\n r17 = 1000000000000000(0x38d7ea4c68000, double:4.940656458412465E-309)\n goto L_0x017e\n L_0x015b:\n r17 = 99999999999999999(0x16345785d89ffff, double:5.620395787888204E-302)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x016a\n r17 = 10000000000000000(0x2386f26fc10000, double:5.431165199810528E-308)\n goto L_0x017e\n L_0x016a:\n r17 = 999999999999999999(0xde0b6b3a763ffff, double:7.832953389245684E-242)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0179\n r17 = 100000000000000000(0x16345785d8a0000, double:5.620395787888205E-302)\n goto L_0x017e\n L_0x0179:\n r17 = 1000000000000000000(0xde0b6b3a7640000, double:7.832953389245686E-242)\n L_0x017e:\n long r1 = r15 / r17\n int r3 = (int) r1\n switch(r3) {\n case 0: goto L_0x01b6;\n case 1: goto L_0x01af;\n case 2: goto L_0x01aa;\n case 3: goto L_0x01a5;\n case 4: goto L_0x019e;\n case 5: goto L_0x0199;\n case 6: goto L_0x0194;\n case 7: goto L_0x018f;\n case 8: goto L_0x018a;\n case 9: goto L_0x0185;\n default: goto L_0x0184;\n }\n L_0x0184:\n goto L_0x01bb\n L_0x0185:\n int r3 = r14 + 1\n r0[r14] = r5\n goto L_0x01ba\n L_0x018a:\n int r3 = r14 + 1\n r0[r14] = r8\n goto L_0x01ba\n L_0x018f:\n int r3 = r14 + 1\n r0[r14] = r9\n goto L_0x01ba\n L_0x0194:\n int r3 = r14 + 1\n r0[r14] = r4\n goto L_0x01ba\n L_0x0199:\n int r3 = r14 + 1\n r0[r14] = r7\n goto L_0x01ba\n L_0x019e:\n int r3 = r14 + 1\n r6 = 52\n r0[r14] = r6\n goto L_0x01ba\n L_0x01a5:\n int r3 = r14 + 1\n r0[r14] = r10\n goto L_0x01ba\n L_0x01aa:\n int r3 = r14 + 1\n r0[r14] = r11\n goto L_0x01ba\n L_0x01af:\n int r3 = r14 + 1\n r6 = 49\n r0[r14] = r6\n goto L_0x01ba\n L_0x01b6:\n int r3 = r14 + 1\n r0[r14] = r13\n L_0x01ba:\n r14 = r3\n L_0x01bb:\n int r3 = (r17 > r21 ? 1 : (r17 == r21 ? 0 : -1))\n if (r3 != 0) goto L_0x01c0\n goto L_0x01d8\n L_0x01c0:\n java.lang.Long.signum(r17)\n long r1 = r1 * r17\n long r15 = r15 - r1\n r1 = 0\n int r3 = (r15 > r1 ? 1 : (r15 == r1 ? 0 : -1))\n if (r3 != 0) goto L_0x01d9\n L_0x01cc:\n int r1 = (r17 > r21 ? 1 : (r17 == r21 ? 0 : -1))\n if (r1 <= 0) goto L_0x01d8\n int r1 = r14 + 1\n r0[r14] = r13\n long r17 = r17 / r19\n r14 = r1\n goto L_0x01cc\n L_0x01d8:\n return r14\n L_0x01d9:\n long r17 = r17 / r19\n goto L_0x017e\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.unboundid.util.ByteStringBuffer.getBytes(long):int\");\n }",
"private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }",
"public abstract long mo24410c();",
"protected int bytesPerAtom() {\n return (2);\n }",
"protected int bytesPerAtom() {\n return (2);\n }",
"private int m14719r() {\n int s = m14720s();\n if (s > 0) {\n try {\n if (this.f10949d == null) {\n this.f10949d = this.f10962q.mo12209b(255);\n }\n int i = this.f10951f - this.f10952g;\n if (i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, s);\n this.f10952g += s;\n } else if (this.f10948c.remaining() + i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, i);\n this.f10952g = this.f10951f;\n m14721t();\n int i2 = s - i;\n System.arraycopy(this.f10950e, 0, this.f10949d, i, i2);\n this.f10952g += i2;\n } else {\n this.f10965t = 1;\n }\n } catch (Exception e) {\n C3111h1.m14932d(f10944y, \"Error Reading Block\", e);\n this.f10965t = 1;\n }\n }\n return s;\n }",
"public abstract long mo9743h();",
"C4945r5 mo19056B();",
"public int mo9754s() {\n return mo9774x();\n }",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"public static int m8655e() {\n return 8;\n }",
"public byte[] mo3891a() {\n int i;\n int i2;\n int i3;\n int i4;\n int i5;\n int i6;\n int i7;\n int i8;\n int i9;\n int i10;\n int i11;\n int i12;\n int i13;\n int i14;\n int i15;\n int i16;\n int i17;\n int i18;\n byte[] b;\n int i19;\n int length;\n mo3892b();\n int i20 = 3072;\n if (this.f687G != null) {\n i20 = 3072 + this.f687G.length + 1;\n }\n byte[] bArr = new byte[i20];\n bArr[0] = Byte.parseByte(this.f688a);\n byte[] b2 = C0331cr.m1177b(this.f689b);\n System.arraycopy(b2, 0, bArr, 1, b2.length);\n int length2 = b2.length + 1;\n try {\n byte[] bytes = this.f690c.getBytes(\"GBK\");\n bArr[length2] = (byte) bytes.length;\n length2++;\n System.arraycopy(bytes, 0, bArr, length2, bytes.length);\n i = length2 + bytes.length;\n } catch (Throwable th) {\n C0310c.m956a(th, \"Req\", \"buildV4Dot2\");\n bArr[length2] = 0;\n i = length2 + 1;\n }\n try {\n byte[] bytes2 = this.f691d.getBytes(\"GBK\");\n bArr[i] = (byte) bytes2.length;\n i++;\n System.arraycopy(bytes2, 0, bArr, i, bytes2.length);\n i2 = i + bytes2.length;\n } catch (Throwable th2) {\n C0310c.m956a(th2, \"Req\", \"buildV4Dot21\");\n bArr[i] = 0;\n i2 = i + 1;\n }\n try {\n byte[] bytes3 = this.f702o.getBytes(\"GBK\");\n bArr[i2] = (byte) bytes3.length;\n i2++;\n System.arraycopy(bytes3, 0, bArr, i2, bytes3.length);\n i3 = i2 + bytes3.length;\n } catch (Throwable th3) {\n C0310c.m956a(th3, \"Req\", \"buildV4Dot22\");\n bArr[i2] = 0;\n i3 = i2 + 1;\n }\n try {\n byte[] bytes4 = this.f692e.getBytes(\"GBK\");\n bArr[i3] = (byte) bytes4.length;\n i3++;\n System.arraycopy(bytes4, 0, bArr, i3, bytes4.length);\n i4 = i3 + bytes4.length;\n } catch (Throwable th4) {\n C0310c.m956a(th4, \"Req\", \"buildV4Dot23\");\n bArr[i3] = 0;\n i4 = i3 + 1;\n }\n try {\n byte[] bytes5 = this.f693f.getBytes(\"GBK\");\n bArr[i4] = (byte) bytes5.length;\n i4++;\n System.arraycopy(bytes5, 0, bArr, i4, bytes5.length);\n i5 = i4 + bytes5.length;\n } catch (Throwable th5) {\n C0310c.m956a(th5, \"Req\", \"buildV4Dot24\");\n bArr[i4] = 0;\n i5 = i4 + 1;\n }\n try {\n byte[] bytes6 = this.f694g.getBytes(\"GBK\");\n bArr[i5] = (byte) bytes6.length;\n i5++;\n System.arraycopy(bytes6, 0, bArr, i5, bytes6.length);\n i6 = i5 + bytes6.length;\n } catch (Throwable th6) {\n C0310c.m956a(th6, \"Req\", \"buildV4Dot25\");\n bArr[i5] = 0;\n i6 = i5 + 1;\n }\n try {\n byte[] bytes7 = this.f708u.getBytes(\"GBK\");\n bArr[i6] = (byte) bytes7.length;\n i6++;\n System.arraycopy(bytes7, 0, bArr, i6, bytes7.length);\n i7 = i6 + bytes7.length;\n } catch (Throwable th7) {\n C0310c.m956a(th7, \"Req\", \"buildV4Dot26\");\n bArr[i6] = 0;\n i7 = i6 + 1;\n }\n try {\n byte[] bytes8 = this.f695h.getBytes(\"GBK\");\n bArr[i7] = (byte) bytes8.length;\n i7++;\n System.arraycopy(bytes8, 0, bArr, i7, bytes8.length);\n i8 = i7 + bytes8.length;\n } catch (Throwable th8) {\n C0310c.m956a(th8, \"Req\", \"buildV4Dot27\");\n bArr[i7] = 0;\n i8 = i7 + 1;\n }\n try {\n byte[] bytes9 = this.f703p.getBytes(\"GBK\");\n bArr[i8] = (byte) bytes9.length;\n i8++;\n System.arraycopy(bytes9, 0, bArr, i8, bytes9.length);\n i9 = i8 + bytes9.length;\n } catch (Throwable th9) {\n C0310c.m956a(th9, \"Req\", \"buildV4Dot28\");\n bArr[i8] = 0;\n i9 = i8 + 1;\n }\n try {\n byte[] bytes10 = this.f704q.getBytes(\"GBK\");\n bArr[i9] = (byte) bytes10.length;\n i9++;\n System.arraycopy(bytes10, 0, bArr, i9, bytes10.length);\n i10 = i9 + bytes10.length;\n } catch (Throwable th10) {\n C0310c.m956a(th10, \"Req\", \"buildV4Dot29\");\n bArr[i9] = 0;\n i10 = i9 + 1;\n }\n try {\n if (TextUtils.isEmpty(this.f707t)) {\n bArr[i10] = 0;\n length = i10 + 1;\n } else {\n byte[] b3 = m1034b(this.f707t);\n bArr[i10] = (byte) b3.length;\n int i21 = i10 + 1;\n System.arraycopy(b3, 0, bArr, i21, b3.length);\n length = b3.length + i21;\n }\n i11 = length;\n } catch (Throwable th11) {\n C0310c.m956a(th11, \"Req\", \"buildV4Dot219\");\n bArr[i10] = 0;\n i11 = i10 + 1;\n }\n try {\n byte[] bytes11 = this.f709v.getBytes(\"GBK\");\n bArr[i11] = (byte) bytes11.length;\n i11++;\n System.arraycopy(bytes11, 0, bArr, i11, bytes11.length);\n i12 = i11 + bytes11.length;\n } catch (Throwable th12) {\n C0310c.m956a(th12, \"Req\", \"buildV4Dot211\");\n bArr[i11] = 0;\n i12 = i11 + 1;\n }\n try {\n byte[] bytes12 = this.f710w.getBytes(\"GBK\");\n bArr[i12] = (byte) bytes12.length;\n i12++;\n System.arraycopy(bytes12, 0, bArr, i12, bytes12.length);\n i13 = i12 + bytes12.length;\n } catch (Throwable th13) {\n C0310c.m956a(th13, \"Req\", \"buildV4Dot212\");\n bArr[i12] = 0;\n i13 = i12 + 1;\n }\n try {\n byte[] bytes13 = this.f711x.getBytes(\"GBK\");\n bArr[i13] = (byte) bytes13.length;\n i13++;\n System.arraycopy(bytes13, 0, bArr, i13, bytes13.length);\n i14 = bytes13.length + i13;\n } catch (Throwable th14) {\n C0310c.m956a(th14, \"Req\", \"buildV4Dot213\");\n bArr[i13] = 0;\n i14 = i13 + 1;\n }\n bArr[i14] = Byte.parseByte(this.f712y);\n int i22 = i14 + 1;\n bArr[i22] = Byte.parseByte(this.f697j);\n int i23 = i22 + 1;\n bArr[i23] = Byte.parseByte(this.f713z);\n int i24 = i23 + 1;\n if (this.f713z.equals(\"1\")) {\n byte[] d = C0331cr.m1187d(mo3890a(\"mcc\"));\n System.arraycopy(d, 0, bArr, i24, d.length);\n int length3 = i24 + d.length;\n byte[] d2 = C0331cr.m1187d(mo3890a(\"mnc\"));\n System.arraycopy(d2, 0, bArr, length3, d2.length);\n int length4 = length3 + d2.length;\n byte[] d3 = C0331cr.m1187d(mo3890a(\"lac\"));\n System.arraycopy(d3, 0, bArr, length4, d3.length);\n int length5 = length4 + d3.length;\n byte[] e = C0331cr.m1190e(mo3890a(\"cellid\"));\n System.arraycopy(e, 0, bArr, length5, e.length);\n int length6 = e.length + length5;\n int parseInt = Integer.parseInt(mo3890a(\"signal\"));\n if (parseInt > 127) {\n parseInt = 0;\n }\n bArr[length6] = (byte) parseInt;\n int i25 = length6 + 1;\n if (this.f682B.length() == 0) {\n bArr[i25] = 0;\n i24 = i25 + 1;\n } else {\n int length7 = this.f682B.split(\"\\\\*\").length;\n bArr[i25] = (byte) length7;\n i24 = i25 + 1;\n int i26 = 0;\n while (i26 < length7) {\n byte[] d4 = C0331cr.m1187d(m1032a(\"lac\", i26));\n System.arraycopy(d4, 0, bArr, i24, d4.length);\n int length8 = i24 + d4.length;\n byte[] e2 = C0331cr.m1190e(m1032a(\"cellid\", i26));\n System.arraycopy(e2, 0, bArr, length8, e2.length);\n int length9 = e2.length + length8;\n int parseInt2 = Integer.parseInt(m1032a(\"signal\", i26));\n if (parseInt2 > 127) {\n parseInt2 = 0;\n }\n bArr[length9] = (byte) parseInt2;\n i26++;\n i24 = length9 + 1;\n }\n }\n } else if (this.f713z.equals(\"2\")) {\n byte[] d5 = C0331cr.m1187d(mo3890a(\"mcc\"));\n System.arraycopy(d5, 0, bArr, i24, d5.length);\n int length10 = i24 + d5.length;\n byte[] d6 = C0331cr.m1187d(mo3890a(\"sid\"));\n System.arraycopy(d6, 0, bArr, length10, d6.length);\n int length11 = length10 + d6.length;\n byte[] d7 = C0331cr.m1187d(mo3890a(\"nid\"));\n System.arraycopy(d7, 0, bArr, length11, d7.length);\n int length12 = length11 + d7.length;\n byte[] d8 = C0331cr.m1187d(mo3890a(\"bid\"));\n System.arraycopy(d8, 0, bArr, length12, d8.length);\n int length13 = length12 + d8.length;\n byte[] e3 = C0331cr.m1190e(mo3890a(\"lon\"));\n System.arraycopy(e3, 0, bArr, length13, e3.length);\n int length14 = length13 + e3.length;\n byte[] e4 = C0331cr.m1190e(mo3890a(C1447g.f3485ae));\n System.arraycopy(e4, 0, bArr, length14, e4.length);\n int length15 = e4.length + length14;\n int parseInt3 = Integer.parseInt(mo3890a(\"signal\"));\n if (parseInt3 > 127) {\n parseInt3 = 0;\n }\n bArr[length15] = (byte) parseInt3;\n int i27 = length15 + 1;\n bArr[i27] = 0;\n i24 = i27 + 1;\n }\n if (this.f683C.length() == 0) {\n bArr[i24] = 0;\n i15 = i24 + 1;\n } else {\n bArr[i24] = 1;\n int i28 = i24 + 1;\n try {\n String[] split = this.f683C.split(MiPushClient.ACCEPT_TIME_SEPARATOR);\n byte[] b4 = m1034b(split[0]);\n System.arraycopy(b4, 0, bArr, i28, b4.length);\n int length16 = i28 + b4.length;\n try {\n byte[] bytes14 = split[2].getBytes(\"GBK\");\n bArr[length16] = (byte) bytes14.length;\n length16++;\n System.arraycopy(bytes14, 0, bArr, length16, bytes14.length);\n i16 = length16 + bytes14.length;\n } catch (Throwable th15) {\n C0310c.m956a(th15, \"Req\", \"buildV4Dot214\");\n bArr[length16] = 0;\n i16 = length16 + 1;\n }\n int parseInt4 = Integer.parseInt(split[1]);\n if (parseInt4 > 127) {\n parseInt4 = 0;\n }\n bArr[i16] = Byte.parseByte(String.valueOf(parseInt4));\n i15 = i16 + 1;\n } catch (Throwable th16) {\n C0310c.m956a(th16, \"Req\", \"buildV4Dot216\");\n byte[] b5 = m1034b(\"00:00:00:00:00:00\");\n System.arraycopy(b5, 0, bArr, i28, b5.length);\n int length17 = b5.length + i28;\n bArr[length17] = 0;\n int i29 = length17 + 1;\n bArr[i29] = Byte.parseByte(\"0\");\n i15 = i29 + 1;\n }\n }\n String[] split2 = this.f684D.split(\"\\\\*\");\n if (TextUtils.isEmpty(this.f684D) || split2.length == 0) {\n bArr[i15] = 0;\n i17 = i15 + 1;\n } else {\n bArr[i15] = (byte) split2.length;\n int i30 = i15 + 1;\n for (String str : split2) {\n String[] split3 = str.split(MiPushClient.ACCEPT_TIME_SEPARATOR);\n try {\n b = m1034b(split3[0]);\n } catch (Throwable th17) {\n C0310c.m956a(th17, \"Req\", \"buildV4Dot2110\");\n b = m1034b(\"00:00:00:00:00:00\");\n }\n System.arraycopy(b, 0, bArr, i30, b.length);\n int length18 = i30 + b.length;\n try {\n byte[] bytes15 = split3[2].getBytes(\"GBK\");\n bArr[length18] = (byte) bytes15.length;\n length18++;\n System.arraycopy(bytes15, 0, bArr, length18, bytes15.length);\n i19 = bytes15.length + length18;\n } catch (Throwable th18) {\n C0310c.m956a(th18, \"Req\", \"buildV4Dot217\");\n bArr[length18] = 0;\n i19 = length18 + 1;\n }\n int parseInt5 = Integer.parseInt(split3[1]);\n if (parseInt5 > 127) {\n parseInt5 = 0;\n }\n bArr[i19] = Byte.parseByte(String.valueOf(parseInt5));\n i30 = i19 + 1;\n }\n byte[] b6 = C0331cr.m1177b(Integer.parseInt(this.f685E));\n System.arraycopy(b6, 0, bArr, i30, b6.length);\n i17 = i30 + b6.length;\n }\n try {\n byte[] bytes16 = this.f686F.getBytes(\"GBK\");\n if (bytes16.length > 127) {\n bytes16 = null;\n }\n if (bytes16 == null) {\n bArr[i17] = 0;\n i18 = i17 + 1;\n } else {\n bArr[i17] = (byte) bytes16.length;\n int i31 = i17 + 1;\n System.arraycopy(bytes16, 0, bArr, i31, bytes16.length);\n i18 = bytes16.length + i31;\n }\n } catch (Throwable th19) {\n C0310c.m956a(th19, \"Req\", \"buildV4Dot218\");\n bArr[i17] = 0;\n i18 = i17 + 1;\n }\n int length19 = this.f687G != null ? this.f687G.length : 0;\n byte[] b7 = C0331cr.m1177b(length19);\n System.arraycopy(b7, 0, bArr, i18, b7.length);\n int length20 = i18 + b7.length;\n if (length19 > 0) {\n System.arraycopy(this.f687G, 0, bArr, length20, this.f687G.length);\n length20 += this.f687G.length;\n }\n byte[] bArr2 = new byte[length20];\n System.arraycopy(bArr, 0, bArr2, 0, length20);\n CRC32 crc32 = new CRC32();\n crc32.update(bArr2);\n byte[] a = C0331cr.m1167a(crc32.getValue());\n byte[] bArr3 = new byte[(a.length + length20)];\n System.arraycopy(bArr2, 0, bArr3, 0, length20);\n System.arraycopy(a, 0, bArr3, length20, a.length);\n int length21 = length20 + a.length;\n m1033a(bArr3, 0);\n return bArr3;\n }",
"public int mo36g() {\n return 4;\n }",
"public final long mo20953WW() {\n AppMethodBeat.m2504i(60318);\n if (fXT <= 0) {\n fXT = ((ActivityManager) C4996ah.getContext().getSystemService(\"activity\")).getLargeMemoryClass();\n }\n if (fXT >= 512) {\n AppMethodBeat.m2505o(60318);\n return 41943040;\n }\n AppMethodBeat.m2505o(60318);\n return 20971520;\n }",
"@Override\r\n\tpublic int size() {\n\t\treturn 27;\r\n\t}",
"void mo33732Px();",
"static int getNumPatterns() { return 64; }",
"int method20()\n {\n return 579190;\n }",
"@Override\n\tpublic int computeSize() {\n\t\treturn 36;\n\t}",
"public abstract long mo20901UQ();",
"private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }",
"private void m50366E() {\n }",
"long getUnknown12();",
"public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }",
"private final void m710e() {\n /*\n r12 = this;\n akn r0 = r12.f531p\n akl r0 = r0.f601d\n if (r0 == 0) goto L_0x0155\n boolean r1 = r0.f580d\n r2 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n if (r1 == 0) goto L_0x0017\n aws r1 = r0.f577a\n long r4 = r1.mo1486c()\n r8 = r4\n goto L_0x0019\n L_0x0017:\n r8 = r2\n L_0x0019:\n int r1 = (r8 > r2 ? 1 : (r8 == r2 ? 0 : -1))\n if (r1 != 0) goto L_0x0122\n ajf r1 = r12.f528m\n akn r2 = r12.f531p\n akl r2 = r2.f602e\n akx r3 = r1.f445c\n r4 = 0\n if (r3 == 0) goto L_0x008a\n boolean r3 = r3.mo486w()\n if (r3 != 0) goto L_0x008a\n akx r3 = r1.f445c\n boolean r3 = r3.mo485v()\n if (r3 == 0) goto L_0x0037\n goto L_0x0042\n L_0x0037:\n if (r0 != r2) goto L_0x008a\n akx r2 = r1.f445c\n boolean r2 = r2.mo359g()\n if (r2 == 0) goto L_0x0042\n goto L_0x008a\n L_0x0042:\n bkr r2 = r1.f446d\n long r2 = r2.mo379b()\n boolean r5 = r1.f447e\n if (r5 == 0) goto L_0x0068\n blf r5 = r1.f443a\n long r5 = r5.mo379b()\n int r7 = (r2 > r5 ? 1 : (r2 == r5 ? 0 : -1))\n if (r7 >= 0) goto L_0x005c\n blf r2 = r1.f443a\n r2.mo2109d()\n goto L_0x0096\n L_0x005c:\n r1.f447e = r4\n boolean r5 = r1.f448f\n if (r5 == 0) goto L_0x0068\n blf r5 = r1.f443a\n r5.mo2107a()\n L_0x0068:\n blf r5 = r1.f443a\n r5.mo2108a(r2)\n bkr r2 = r1.f446d\n akq r2 = r2.mo376Q()\n blf r3 = r1.f443a\n akq r3 = r3.f4280a\n boolean r3 = r2.equals(r3)\n if (r3 != 0) goto L_0x0096\n blf r3 = r1.f443a\n r3.mo378a(r2)\n aje r3 = r1.f444b\n ake r3 = (p000.ake) r3\n r3.m694a(r2, r4)\n goto L_0x0096\n L_0x008a:\n r2 = 1\n r1.f447e = r2\n boolean r2 = r1.f448f\n if (r2 == 0) goto L_0x0096\n blf r2 = r1.f443a\n r2.mo2107a()\n L_0x0096:\n long r1 = r1.mo379b()\n r12.f513D = r1\n long r0 = r0.mo440b(r1)\n akp r2 = r12.f533r\n long r2 = r2.f623m\n java.util.ArrayList r5 = r12.f530o\n boolean r5 = r5.isEmpty()\n if (r5 != 0) goto L_0x011d\n akp r5 = r12.f533r\n awt r5 = r5.f612b\n boolean r5 = r5.mo1504a()\n if (r5 != 0) goto L_0x011d\n akp r5 = r12.f533r\n long r6 = r5.f613c\n int r8 = (r6 > r2 ? 1 : (r6 == r2 ? 0 : -1))\n if (r8 != 0) goto L_0x00c5\n boolean r6 = r12.f515F\n if (r6 == 0) goto L_0x00c5\n r6 = -1\n long r2 = r2 + r6\n L_0x00c5:\n r12.f515F = r4\n alh r4 = r5.f611a\n awt r5 = r5.f612b\n java.lang.Object r5 = r5.f2566a\n int r4 = r4.mo525a(r5)\n int r5 = r12.f514E\n r6 = 0\n if (r5 <= 0) goto L_0x00e1\n java.util.ArrayList r7 = r12.f530o\n int r5 = r5 + -1\n java.lang.Object r5 = r7.get(r5)\n akb r5 = (p000.akb) r5\n goto L_0x00e3\n L_0x00e1:\n L_0x00e2:\n r5 = r6\n L_0x00e3:\n if (r5 != 0) goto L_0x00e6\n goto L_0x0109\n L_0x00e6:\n int r5 = r5.f502a\n if (r4 >= 0) goto L_0x00eb\n L_0x00ea:\n goto L_0x00f4\n L_0x00eb:\n if (r4 != 0) goto L_0x0109\n r7 = 0\n int r5 = (r2 > r7 ? 1 : (r2 == r7 ? 0 : -1))\n if (r5 >= 0) goto L_0x0109\n goto L_0x00ea\n L_0x00f4:\n int r5 = r12.f514E\n int r5 = r5 + -1\n r12.f514E = r5\n if (r5 <= 0) goto L_0x0108\n java.util.ArrayList r7 = r12.f530o\n int r5 = r5 + -1\n java.lang.Object r5 = r7.get(r5)\n akb r5 = (p000.akb) r5\n goto L_0x00e3\n L_0x0108:\n goto L_0x00e2\n L_0x0109:\n int r2 = r12.f514E\n java.util.ArrayList r3 = r12.f530o\n int r3 = r3.size()\n if (r2 >= r3) goto L_0x011d\n java.util.ArrayList r2 = r12.f530o\n int r3 = r12.f514E\n java.lang.Object r2 = r2.get(r3)\n akb r2 = (p000.akb) r2\n L_0x011d:\n akp r2 = r12.f533r\n r2.f623m = r0\n goto L_0x0140\n L_0x0122:\n r12.m691a(r8)\n akp r0 = r12.f533r\n long r0 = r0.f623m\n int r2 = (r8 > r0 ? 1 : (r8 == r0 ? 0 : -1))\n if (r2 == 0) goto L_0x0140\n akp r0 = r12.f533r\n awt r7 = r0.f612b\n long r10 = r0.f614d\n r6 = r12\n akp r0 = r6.m686a(r7, r8, r10)\n r12.f533r = r0\n akc r0 = r12.f529n\n r1 = 4\n r0.mo409b(r1)\n L_0x0140:\n akn r0 = r12.f531p\n akl r0 = r0.f603f\n akp r1 = r12.f533r\n long r2 = r0.mo442c()\n r1.f621k = r2\n akp r0 = r12.f533r\n long r1 = r12.m719n()\n r0.f622l = r1\n return\n L_0x0155:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p000.ake.m710e():void\");\n }",
"public abstract long mo9748m();",
"private static byte[] m2536b(Context context) {\n byte[] c = StatisticsManager.m2537c(context);\n byte[] e = StatisticsManager.m2539e(context);\n byte[] bArr = new byte[(c.length + e.length)];\n System.arraycopy(c, 0, bArr, 0, c.length);\n System.arraycopy(e, 0, bArr, c.length, e.length);\n return StatisticsManager.m2534a(context, bArr);\n }",
"@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }",
"int memSize() {\n return super.memSize() + 4 * 4; }",
"public final int mo30256g() {\n return this.f7581c.f7036c.size();\n }",
"public int mo12191c() {\n return this.f10948c.limit() + this.f10957l.length + (this.f10958m.length * 4);\n }",
"public long getBlockCount ( ) {\r\n\t\treturn 436;\r\n\t}",
"public void mo21877s() {\n }",
"C5537g mo4096b(int i);",
"public abstract int mo9753r();",
"public int mo163c() {\n int size = this.f1963b.size();\n if (size < 1) {\n return 0;\n }\n int i = f1962a;\n return ((size / i) * (Lca.m828b(i) + 4)) + 4 + Lca.m828b(size % i);\n }",
"public static int offset_infos_seq_num() {\n return (64 / 8);\n }",
"public static int offsetBits_infos_seq_num() {\n return 64;\n }",
"C4945r5 mo19057F();",
"byte[] mo38566a();",
"public int mo9774x() {\n /*\n r5 = this;\n int r0 = r5.f9082i\n int r1 = r5.f9080g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9082i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9776z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9082i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9774x():int\");\n }",
"public abstract Integer mo36210m();",
"public void method_4270() {}",
"public int mo27483b() {\n return 0;\n }",
"public int mo9232aG() {\n return 0;\n }",
"void mo1943l();",
"public abstract int mo13680b();",
"public abstract int mo9749n();",
"public abstract void mo56925d();",
"public abstract long mo9750o();",
"private static byte[] m2539e(Context context) {\n Throwable th;\n int i = 0;\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n byte[] bArr = new byte[0];\n String a = Log.m2547a(context, Log.f1857e);\n DiskLruCache diskLruCache = null;\n try {\n diskLruCache = DiskLruCache.m2767a(new File(a), 1, 1, 10240);\n File file = new File(a);\n if (file != null && file.exists()) {\n String[] list = file.list();\n int length = list.length;\n while (i < length) {\n String str = list[i];\n if (str.contains(\".0\")) {\n byteArrayOutputStream.write(StatisticsManager.m2535a(diskLruCache, str.split(\"\\\\.\")[0]));\n }\n i++;\n }\n }\n bArr = byteArrayOutputStream.toByteArray();\n if (byteArrayOutputStream != null) {\n try {\n byteArrayOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if (diskLruCache != null) {\n try {\n diskLruCache.close();\n } catch (Throwable th2) {\n th = th2;\n }\n }\n } catch (IOException th3) {\n BasicLogHandler.m2542a(th3, \"StatisticsManager\", \"getContent\");\n if (byteArrayOutputStream != null) {\n try {\n byteArrayOutputStream.close();\n } catch (IOException e2) {\n e2.printStackTrace();\n }\n }\n if (diskLruCache != null) {\n diskLruCache.close();\n }\n } catch (Throwable th4) {\n th3 = th4;\n }\n return bArr;\n th3.printStackTrace();\n return bArr;\n }",
"static int size_of_xri(String passed){\n\t\treturn 2;\n\t}",
"public int characteristics() {\n/* 1680 */ return this.characteristics;\n/* */ }",
"public int getBlockSize()\n/* */ {\n/* 43 */ return this.blockSize;\n/* */ }",
"public abstract long mo24412e();",
"public long mo1981x() throws cf {\r\n return m10270d(m10258F());\r\n }",
"public int m21458g() {\n return this.f18796b == null ? 0 : this.f18796b.size();\n }",
"void m8368b();",
"public abstract void mo6549b();",
"Integer getDataLgth();",
"public static void m94920d() {\n Application application = BaseApplication.get();\n m94915b((Context) application, C6969H.m41409d(\"G7991D01CBA22AE27E50BAF41F6DAC6D36097DA088031A53AF10B8277F4EACFDB6694EA0EB03FA73DEF1E8377F1EAD6D97D\"), m94906a((Context) application, C6969H.m41409d(\"G7991D01CBA22AE27E50BAF41F6DAC6D36097DA088031A53AF10B8277F4EACFDB6694EA0EB03FA73DEF1E8377F1EAD6D97D\"), 0) + 1);\n m94916b(application, C6969H.m41409d(\"G7991D01CBA22AE27E50BAF41F6DAC6D36097DA088031A53AF10B8277F4EACFDB6694EA0EB03FA73DEF1E8377E6ECCED2\"), System.currentTimeMillis());\n }",
"public final byte mo27874d() {\n return 15;\n }",
"public static int offset_cost() {\n return (56 / 8);\n }",
"public static int size_infos_timestamp() {\n return (32 / 8);\n }",
"private static java.lang.String m586k() {\r\n /*\r\n r6 = 1;\r\n r0 = 0;\r\n r1 = \"/proc/cpuinfo\";\r\n r2 = new java.io.FileReader;\t Catch:{ IOException -> 0x0040, all -> 0x0050 }\r\n r2.<init>(r1);\t Catch:{ IOException -> 0x0040, all -> 0x0050 }\r\n r1 = new java.io.BufferedReader;\t Catch:{ IOException -> 0x0071, all -> 0x006a }\r\n r3 = 8192; // 0x2000 float:1.14794E-41 double:4.0474E-320;\r\n r1.<init>(r2, r3);\t Catch:{ IOException -> 0x0071, all -> 0x006a }\r\n L_0x0010:\r\n r3 = r1.readLine();\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r3 == 0) goto L_0x0039;\r\n L_0x0016:\r\n r4 = com.alipay.security.mobile.module.p010a.C0159a.m556a(r3);\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r4 != 0) goto L_0x0010;\r\n L_0x001c:\r\n r4 = \":\";\r\n r3 = r3.split(r4);\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r3 == 0) goto L_0x0010;\r\n L_0x0024:\r\n r4 = r3.length;\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r4 <= r6) goto L_0x0010;\r\n L_0x0027:\r\n r4 = 0;\r\n r4 = r3[r4];\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n r5 = \"BogoMIPS\";\r\n r4 = r4.contains(r5);\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r4 == 0) goto L_0x0010;\r\n L_0x0032:\r\n r4 = 1;\r\n r3 = r3[r4];\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n r0 = r3.trim();\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n L_0x0039:\r\n r2.close();\t Catch:{ IOException -> 0x0060 }\r\n L_0x003c:\r\n r1.close();\t Catch:{ IOException -> 0x0062 }\r\n L_0x003f:\r\n return r0;\r\n L_0x0040:\r\n r1 = move-exception;\r\n r1 = r0;\r\n r2 = r0;\r\n L_0x0043:\r\n if (r2 == 0) goto L_0x0048;\r\n L_0x0045:\r\n r2.close();\t Catch:{ IOException -> 0x0064 }\r\n L_0x0048:\r\n if (r1 == 0) goto L_0x003f;\r\n L_0x004a:\r\n r1.close();\t Catch:{ IOException -> 0x004e }\r\n goto L_0x003f;\r\n L_0x004e:\r\n r1 = move-exception;\r\n goto L_0x003f;\r\n L_0x0050:\r\n r1 = move-exception;\r\n r2 = r0;\r\n r7 = r0;\r\n r0 = r1;\r\n r1 = r7;\r\n L_0x0055:\r\n if (r2 == 0) goto L_0x005a;\r\n L_0x0057:\r\n r2.close();\t Catch:{ IOException -> 0x0066 }\r\n L_0x005a:\r\n if (r1 == 0) goto L_0x005f;\r\n L_0x005c:\r\n r1.close();\t Catch:{ IOException -> 0x0068 }\r\n L_0x005f:\r\n throw r0;\r\n L_0x0060:\r\n r2 = move-exception;\r\n goto L_0x003c;\r\n L_0x0062:\r\n r1 = move-exception;\r\n goto L_0x003f;\r\n L_0x0064:\r\n r2 = move-exception;\r\n goto L_0x0048;\r\n L_0x0066:\r\n r2 = move-exception;\r\n goto L_0x005a;\r\n L_0x0068:\r\n r1 = move-exception;\r\n goto L_0x005f;\r\n L_0x006a:\r\n r1 = move-exception;\r\n r7 = r1;\r\n r1 = r0;\r\n r0 = r7;\r\n goto L_0x0055;\r\n L_0x006f:\r\n r0 = move-exception;\r\n goto L_0x0055;\r\n L_0x0071:\r\n r1 = move-exception;\r\n r1 = r0;\r\n goto L_0x0043;\r\n L_0x0074:\r\n r3 = move-exception;\r\n goto L_0x0043;\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: com.alipay.security.mobile.module.b.a.k():java.lang.String\");\r\n }",
"private void m50367F() {\n }",
"public static int offset_count() {\n return (16 / 8);\n }",
"public static int size_infos_log_src() {\n return (16 / 8);\n }",
"@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public abstract int mo8526p();",
"public abstract int mo123248g();",
"public abstract int mo123249h();",
"public void mo21786K() {\n }",
"public int characteristics() {\n/* 1350 */ return this.characteristics;\n/* */ }",
"public final int mo6465d() {\n return 19729000;\n }",
"private byte[] m1034b(java.lang.String r8) {\n /*\n r7 = this;\n r6 = 2\n r4 = 6\n r2 = 0\n java.lang.String r0 = \":\"\n java.lang.String[] r0 = r8.split(r0)\n byte[] r1 = new byte[r4]\n if (r0 == 0) goto L_0x0010\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 == r4) goto L_0x001e\n L_0x0010:\n r0 = 6\n java.lang.String[] r0 = new java.lang.String[r0] // Catch:{ Throwable -> 0x0043 }\n r3 = r2\n L_0x0014:\n int r4 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 >= r4) goto L_0x001e\n java.lang.String r4 = \"0\"\n r0[r3] = r4 // Catch:{ Throwable -> 0x0043 }\n int r3 = r3 + 1\n goto L_0x0014\n L_0x001e:\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r2 >= r3) goto L_0x0041\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n int r3 = r3.length() // Catch:{ Throwable -> 0x0043 }\n if (r3 <= r6) goto L_0x0033\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 0\n r5 = 2\n java.lang.String r3 = r3.substring(r4, r5) // Catch:{ Throwable -> 0x0043 }\n r0[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n L_0x0033:\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 16\n int r3 = java.lang.Integer.parseInt(r3, r4) // Catch:{ Throwable -> 0x0043 }\n byte r3 = (byte) r3 // Catch:{ Throwable -> 0x0043 }\n r1[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n int r2 = r2 + 1\n goto L_0x001e\n L_0x0041:\n r0 = r1\n L_0x0042:\n return r0\n L_0x0043:\n r0 = move-exception\n java.lang.String r1 = \"Req\"\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n java.lang.String r3 = \"getMacBa \"\n java.lang.StringBuilder r2 = r2.append(r3)\n java.lang.StringBuilder r2 = r2.append(r8)\n java.lang.String r2 = r2.toString()\n com.amap.loc.C0310c.m956a(r0, r1, r2)\n java.lang.String r0 = \"00:00:00:00:00:00\"\n byte[] r0 = r7.m1034b(r0)\n goto L_0x0042\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.loc.C0321cj.m1034b(java.lang.String):byte[]\");\n }",
"public int mo9785x() {\n /*\n r10 = this;\n long r0 = r10.f9091i\n long r2 = r10.f9090h\n int r2 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1))\n if (r2 != 0) goto L_0x000a\n goto L_0x0085\n L_0x000a:\n r2 = 1\n long r4 = r0 + r2\n byte r0 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r0)\n if (r0 < 0) goto L_0x0017\n r10.f9091i = r4\n return r0\n L_0x0017:\n long r6 = r10.f9090h\n long r6 = r6 - r4\n r8 = 9\n int r1 = (r6 > r8 ? 1 : (r6 == r8 ? 0 : -1))\n if (r1 >= 0) goto L_0x0021\n goto L_0x0085\n L_0x0021:\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n int r1 = r1 << 7\n r0 = r0 ^ r1\n if (r0 >= 0) goto L_0x002f\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x008b\n L_0x002f:\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x003e\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x003c:\n r6 = r4\n goto L_0x008b\n L_0x003e:\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n int r1 = r1 << 21\n r0 = r0 ^ r1\n if (r0 >= 0) goto L_0x004e\n r1 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r1\n goto L_0x008b\n L_0x004e:\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n int r6 = r1 << 28\n r0 = r0 ^ r6\n r6 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r6\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n L_0x0085:\n long r0 = r10.mo9787z()\n int r0 = (int) r0\n return r0\n L_0x008b:\n r10.f9091i = r6\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3661d.mo9785x():int\");\n }",
"public final int mo9382ZU() {\n return 470;\n }",
"public int characteristics() {\n/* 1460 */ return this.characteristics;\n/* */ }",
"void mo3194r();",
"private static int m18332b(int encoding) {\n if (encoding == 5) {\n return 80000;\n }\n if (encoding == 6) {\n return 768000;\n }\n if (encoding == 7) {\n return 192000;\n }\n if (encoding == 8) {\n return 2250000;\n }\n if (encoding == 14) {\n return 3062500;\n }\n throw new IllegalArgumentException();\n }",
"public void mo12628c() {\n }"
] | [
"0.59519166",
"0.5911183",
"0.5880068",
"0.5865933",
"0.5858787",
"0.5837384",
"0.5813619",
"0.57992965",
"0.57922816",
"0.57452494",
"0.57183784",
"0.56882817",
"0.56693983",
"0.56631285",
"0.56376815",
"0.5622208",
"0.5622208",
"0.5619794",
"0.5591939",
"0.5589374",
"0.55661976",
"0.5559717",
"0.55346715",
"0.55264884",
"0.5516807",
"0.5490946",
"0.5482923",
"0.54747725",
"0.5473665",
"0.5469642",
"0.546959",
"0.5466881",
"0.5446224",
"0.54424447",
"0.54386014",
"0.5427364",
"0.5426219",
"0.54173774",
"0.54128605",
"0.54077005",
"0.5405021",
"0.5392782",
"0.5390772",
"0.5389482",
"0.53858334",
"0.5385563",
"0.5385397",
"0.5385321",
"0.5382454",
"0.53805",
"0.5378245",
"0.5376932",
"0.5376164",
"0.5370259",
"0.53673553",
"0.5353349",
"0.5348676",
"0.53382725",
"0.5333124",
"0.5329111",
"0.53269506",
"0.5323381",
"0.5320954",
"0.53188115",
"0.53145736",
"0.5310496",
"0.53093666",
"0.5306432",
"0.53038275",
"0.53037745",
"0.530261",
"0.5300737",
"0.5300032",
"0.52992916",
"0.52986187",
"0.5298604",
"0.52944916",
"0.5291693",
"0.5291097",
"0.5286961",
"0.52822226",
"0.5281353",
"0.5281353",
"0.5281353",
"0.5281353",
"0.5281353",
"0.5281353",
"0.5281353",
"0.5277233",
"0.52624595",
"0.52619696",
"0.52591294",
"0.5255973",
"0.5254507",
"0.52489",
"0.52484095",
"0.5247769",
"0.52415466",
"0.5240863",
"0.5237145",
"0.5235979"
] | 0.0 | -1 |
/ / / / / / / / / / / / / / / | public void setTickUnit(DateTickUnit unit, boolean notify, boolean turnOffAutoSelection) {
/* 535 */ this.tickUnit = unit;
/* 536 */ if (turnOffAutoSelection) {
/* 537 */ setAutoTickUnitSelection(false, false);
/* */ }
/* 539 */ if (notify) {
/* 540 */ fireChangeEvent();
/* */ }
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"double passer();",
"int getWidth() {return width;}",
"public Integer getWidth(){return this.width;}",
"public void divide() {\n\t\t\n\t}",
"private int rightChild(int i){return 2*i+2;}",
"public abstract void bepaalGrootte();",
"int width();",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void getTile_B8();",
"static int getNumPatterns() { return 64; }",
"public void gored() {\n\t\t\n\t}",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public int getEdgeCount() \n {\n return 3;\n }",
"public String ring();",
"int getTribeSize();",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public String toString(){ return \"DIV\";}",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"long getWidth();",
"void mo33732Px();",
"public double getWidth() { return _width<0? -_width : _width; }",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"double getNewWidth();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public int generateRoshambo(){\n ;]\n\n }",
"double seBlesser();",
"public int my_leaf_count();",
"public static int size_parent() {\n return (8 / 8);\n }",
"public abstract int getSpotsNeeded();",
"public abstract String division();",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"@Override\n public void bfs() {\n\n }",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"long getMid();",
"long getMid();",
"int getSpriteArraySize();",
"public void leerPlanesDietas();",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"int expand();",
"public int getWidth(){\n return width;\n }",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"public void skystonePos4() {\n }",
"int getSize ();",
"public static int size_parentId() {\n return (16 / 8);\n }",
"public abstract double getBaseWidth();",
"public int getTakeSpace() {\n return 0;\n }",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"public String getRing();",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"Operations operations();",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"public int getWidth()\n {return width;}",
"public double getPerimiter(){return (2*height +2*width);}",
"double volume(){\n return width*height*depth;\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"int depth();",
"int depth();",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"String directsTo();",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"public String getRingback();",
"@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }",
"Parallelogram(){\n length = width = height = 0;\n }",
"public static int offset_parent() {\n return (40 / 8);\n }",
"public int width();",
"protected int parent(int i) { return (i - 1) / 2; }",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"public double width() { return _width; }",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();"
] | [
"0.54599804",
"0.5361702",
"0.50828",
"0.50729156",
"0.5065769",
"0.50643295",
"0.50565934",
"0.5055456",
"0.5028421",
"0.50179166",
"0.50039816",
"0.499804",
"0.49814743",
"0.49544477",
"0.49448815",
"0.49297482",
"0.49270833",
"0.49128833",
"0.49060607",
"0.49048623",
"0.49025092",
"0.48927355",
"0.48850867",
"0.48793495",
"0.4873459",
"0.48655418",
"0.48652473",
"0.48625624",
"0.48600852",
"0.48540562",
"0.4852789",
"0.48380706",
"0.4837795",
"0.48361942",
"0.48162308",
"0.48144838",
"0.48133746",
"0.4809166",
"0.48090833",
"0.4805904",
"0.47893128",
"0.47792563",
"0.477846",
"0.47676873",
"0.47675538",
"0.47675538",
"0.47663707",
"0.4764925",
"0.47641346",
"0.47622687",
"0.47604173",
"0.47586957",
"0.4758448",
"0.47558358",
"0.47437528",
"0.4740404",
"0.47399476",
"0.47302055",
"0.47294307",
"0.4727397",
"0.47248995",
"0.47240293",
"0.47203907",
"0.4720172",
"0.47157845",
"0.47106573",
"0.47105056",
"0.47027174",
"0.47006288",
"0.46993494",
"0.4694658",
"0.4694658",
"0.46940482",
"0.4689993",
"0.46848714",
"0.4680495",
"0.4680448",
"0.46780542",
"0.46775758",
"0.467456",
"0.46729854",
"0.46721813",
"0.4664212",
"0.4662582",
"0.4658465",
"0.465841",
"0.46579123",
"0.46579123",
"0.46579123",
"0.46579123",
"0.46579123",
"0.46579123",
"0.46579123",
"0.46579123",
"0.46579123",
"0.46579123",
"0.46579123",
"0.46579123",
"0.46579123",
"0.46579123",
"0.46579123"
] | 0.0 | -1 |
/ / / / / / / / / / 552 | public DateFormat getDateFormatOverride() { return this.dateFormatOverride; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static int getNumPatterns() { return 64; }",
"Info mo7564ix();",
"private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }",
"public int mo36g() {\n return 8;\n }",
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"public final int mo30256g() {\n return this.f7581c.f7036c.size();\n }",
"public abstract int mo9754s();",
"public int arn() {\n return 383;\n }",
"protected int bytesPerAtom() {\n return (2);\n }",
"protected int bytesPerAtom() {\n return (2);\n }",
"public abstract long mo9746k();",
"public int method_2436() {\r\n return 16;\r\n }",
"public int mo9754s() {\n return mo9774x();\n }",
"private int m672E() {\n int i = 0;\n if (this.f552g.mo501h() >= 5) {\n byte[] f = this.f552g.mo499f();\n int g = this.f552g.mo500g();\n int i2 = 0;\n int i3 = 0;\n while (true) {\n byte b = f[g + i];\n i2 |= (b & Byte.MAX_VALUE) << i3;\n if ((b & 128) != 128) {\n this.f552g.mo495a(i + 1);\n return i2;\n }\n i3 += 7;\n i++;\n }\n } else {\n int i4 = 0;\n while (true) {\n byte u = mo470u();\n i |= (u & Byte.MAX_VALUE) << i4;\n if ((u & 128) != 128) {\n return i;\n }\n i4 += 7;\n }\n }\n }",
"private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }",
"void mo33732Px();",
"long getUnknown72();",
"public int mo36g() {\n return 4;\n }",
"public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }",
"public abstract long mo9229aD();",
"public static int m8655e() {\n return 8;\n }",
"@Test\n\tpublic void testLargeRingSystem5() throws Exception {\n\t\tString smiles = \"O=C1c2ccccc2C(=O)c3c1ccc4c3[nH]c5c6C(=O)c7ccccc7C(=O)c6c8[nH]c9c%10C(=O)c%11ccccc%11C(=O)c%10ccc9c8c45\";\n\t\t\n IAtomContainer mol = sp.parseSmiles(smiles);\n atasc.decideBondOrder(mol, true);\n \n int doubleBondCount = 0;\n for (IBond bond : mol.bonds()) {\n if (bond.getOrder().equals(Order.DOUBLE)) doubleBondCount++;\n }\n Assert.assertEquals(24, doubleBondCount);\n\t}",
"public abstract long mo13681c();",
"@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }",
"public int mo1067a() {\n return this.f3256d.size();\n }",
"public abstract long mo9755t();",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"@Test(timeout = 4000)\n public void test52() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickSize(6372, 3, 2146363568);\n assertEquals(\"id=6372 askSize=2146363568\", string0);\n }",
"private static int getBytes(long r23) {\n /*\n java.lang.ThreadLocal<byte[]> r0 = TEMP_NUMBER_BUFFER\n java.lang.Object r0 = r0.get()\n byte[] r0 = (byte[]) r0\n r1 = 20\n if (r0 != 0) goto L_0x0013\n byte[] r0 = new byte[r1]\n java.lang.ThreadLocal<byte[]> r2 = TEMP_NUMBER_BUFFER\n r2.set(r0)\n L_0x0013:\n r2 = -9223372036854775808\n r4 = 54\n r5 = 57\n r6 = 45\n r7 = 53\n r8 = 56\n r9 = 55\n r10 = 51\n r11 = 50\n r12 = 0\n r13 = 48\n r14 = 1\n int r15 = (r23 > r2 ? 1 : (r23 == r2 ? 0 : -1))\n if (r15 != 0) goto L_0x0076\n r0[r12] = r6\n r0[r14] = r5\n r2 = 2\n r0[r2] = r11\n r2 = 3\n r0[r2] = r11\n r2 = 4\n r0[r2] = r10\n r2 = 5\n r0[r2] = r10\n r2 = 6\n r0[r2] = r9\n r2 = 7\n r0[r2] = r11\n r2 = 8\n r0[r2] = r13\n r2 = 9\n r0[r2] = r10\n r2 = 10\n r0[r2] = r4\n r2 = 11\n r0[r2] = r8\n r2 = 12\n r0[r2] = r7\n r2 = 13\n r3 = 52\n r0[r2] = r3\n r2 = 14\n r0[r2] = r9\n r2 = 15\n r0[r2] = r9\n r2 = 16\n r0[r2] = r7\n r2 = 17\n r0[r2] = r8\n r2 = 18\n r0[r2] = r13\n r2 = 19\n r0[r2] = r8\n return r1\n L_0x0076:\n r1 = 0\n int r3 = (r23 > r1 ? 1 : (r23 == r1 ? 0 : -1))\n if (r3 != 0) goto L_0x007f\n r0[r12] = r13\n return r14\n L_0x007f:\n if (r3 >= 0) goto L_0x0088\n r0[r12] = r6\n long r15 = java.lang.Math.abs(r23)\n goto L_0x008b\n L_0x0088:\n r14 = 0\n r15 = r23\n L_0x008b:\n r17 = 9\n r19 = 10\n r21 = 1\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0099\n r17 = r21\n goto L_0x017e\n L_0x0099:\n r17 = 99\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00a3\n r17 = r19\n goto L_0x017e\n L_0x00a3:\n r17 = 999(0x3e7, double:4.936E-321)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00ad\n r17 = 100\n goto L_0x017e\n L_0x00ad:\n r17 = 9999(0x270f, double:4.94E-320)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00b7\n r17 = 1000(0x3e8, double:4.94E-321)\n goto L_0x017e\n L_0x00b7:\n r17 = 99999(0x1869f, double:4.9406E-319)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00c2\n r17 = 10000(0x2710, double:4.9407E-320)\n goto L_0x017e\n L_0x00c2:\n r17 = 999999(0xf423f, double:4.94065E-318)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00ce\n r17 = 100000(0x186a0, double:4.94066E-319)\n goto L_0x017e\n L_0x00ce:\n r17 = 9999999(0x98967f, double:4.940656E-317)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00da\n r17 = 1000000(0xf4240, double:4.940656E-318)\n goto L_0x017e\n L_0x00da:\n r17 = 99999999(0x5f5e0ff, double:4.9406564E-316)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00e6\n r17 = 10000000(0x989680, double:4.9406565E-317)\n goto L_0x017e\n L_0x00e6:\n r17 = 999999999(0x3b9ac9ff, double:4.940656453E-315)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00f2\n r17 = 100000000(0x5f5e100, double:4.94065646E-316)\n goto L_0x017e\n L_0x00f2:\n r17 = 9999999999(0x2540be3ff, double:4.940656458E-314)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0100\n r17 = 1000000000(0x3b9aca00, double:4.94065646E-315)\n goto L_0x017e\n L_0x0100:\n r17 = 99999999999(0x174876e7ff, double:4.94065645836E-313)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0110\n r17 = 10000000000(0x2540be400, double:4.9406564584E-314)\n goto L_0x017e\n L_0x0110:\n r17 = 999999999999(0xe8d4a50fff, double:4.940656458408E-312)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x011f\n r17 = 100000000000(0x174876e800, double:4.9406564584E-313)\n goto L_0x017e\n L_0x011f:\n r17 = 9999999999999(0x9184e729fff, double:4.940656458412E-311)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x012e\n r17 = 1000000000000(0xe8d4a51000, double:4.94065645841E-312)\n goto L_0x017e\n L_0x012e:\n r17 = 99999999999999(0x5af3107a3fff, double:4.9406564584124E-310)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x013d\n r17 = 10000000000000(0x9184e72a000, double:4.9406564584125E-311)\n goto L_0x017e\n L_0x013d:\n r17 = 999999999999999(0x38d7ea4c67fff, double:4.94065645841246E-309)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x014c\n r17 = 100000000000000(0x5af3107a4000, double:4.94065645841247E-310)\n goto L_0x017e\n L_0x014c:\n r17 = 9999999999999999(0x2386f26fc0ffff, double:5.431165199810527E-308)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x015b\n r17 = 1000000000000000(0x38d7ea4c68000, double:4.940656458412465E-309)\n goto L_0x017e\n L_0x015b:\n r17 = 99999999999999999(0x16345785d89ffff, double:5.620395787888204E-302)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x016a\n r17 = 10000000000000000(0x2386f26fc10000, double:5.431165199810528E-308)\n goto L_0x017e\n L_0x016a:\n r17 = 999999999999999999(0xde0b6b3a763ffff, double:7.832953389245684E-242)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0179\n r17 = 100000000000000000(0x16345785d8a0000, double:5.620395787888205E-302)\n goto L_0x017e\n L_0x0179:\n r17 = 1000000000000000000(0xde0b6b3a7640000, double:7.832953389245686E-242)\n L_0x017e:\n long r1 = r15 / r17\n int r3 = (int) r1\n switch(r3) {\n case 0: goto L_0x01b6;\n case 1: goto L_0x01af;\n case 2: goto L_0x01aa;\n case 3: goto L_0x01a5;\n case 4: goto L_0x019e;\n case 5: goto L_0x0199;\n case 6: goto L_0x0194;\n case 7: goto L_0x018f;\n case 8: goto L_0x018a;\n case 9: goto L_0x0185;\n default: goto L_0x0184;\n }\n L_0x0184:\n goto L_0x01bb\n L_0x0185:\n int r3 = r14 + 1\n r0[r14] = r5\n goto L_0x01ba\n L_0x018a:\n int r3 = r14 + 1\n r0[r14] = r8\n goto L_0x01ba\n L_0x018f:\n int r3 = r14 + 1\n r0[r14] = r9\n goto L_0x01ba\n L_0x0194:\n int r3 = r14 + 1\n r0[r14] = r4\n goto L_0x01ba\n L_0x0199:\n int r3 = r14 + 1\n r0[r14] = r7\n goto L_0x01ba\n L_0x019e:\n int r3 = r14 + 1\n r6 = 52\n r0[r14] = r6\n goto L_0x01ba\n L_0x01a5:\n int r3 = r14 + 1\n r0[r14] = r10\n goto L_0x01ba\n L_0x01aa:\n int r3 = r14 + 1\n r0[r14] = r11\n goto L_0x01ba\n L_0x01af:\n int r3 = r14 + 1\n r6 = 49\n r0[r14] = r6\n goto L_0x01ba\n L_0x01b6:\n int r3 = r14 + 1\n r0[r14] = r13\n L_0x01ba:\n r14 = r3\n L_0x01bb:\n int r3 = (r17 > r21 ? 1 : (r17 == r21 ? 0 : -1))\n if (r3 != 0) goto L_0x01c0\n goto L_0x01d8\n L_0x01c0:\n java.lang.Long.signum(r17)\n long r1 = r1 * r17\n long r15 = r15 - r1\n r1 = 0\n int r3 = (r15 > r1 ? 1 : (r15 == r1 ? 0 : -1))\n if (r3 != 0) goto L_0x01d9\n L_0x01cc:\n int r1 = (r17 > r21 ? 1 : (r17 == r21 ? 0 : -1))\n if (r1 <= 0) goto L_0x01d8\n int r1 = r14 + 1\n r0[r14] = r13\n long r17 = r17 / r19\n r14 = r1\n goto L_0x01cc\n L_0x01d8:\n return r14\n L_0x01d9:\n long r17 = r17 / r19\n goto L_0x017e\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.unboundid.util.ByteStringBuffer.getBytes(long):int\");\n }",
"C5537g mo4096b(int i);",
"private static byte[] m2536b(Context context) {\n byte[] c = StatisticsManager.m2537c(context);\n byte[] e = StatisticsManager.m2539e(context);\n byte[] bArr = new byte[(c.length + e.length)];\n System.arraycopy(c, 0, bArr, 0, c.length);\n System.arraycopy(e, 0, bArr, c.length, e.length);\n return StatisticsManager.m2534a(context, bArr);\n }",
"public abstract Integer mo36210m();",
"private final void m710e() {\n /*\n r12 = this;\n akn r0 = r12.f531p\n akl r0 = r0.f601d\n if (r0 == 0) goto L_0x0155\n boolean r1 = r0.f580d\n r2 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n if (r1 == 0) goto L_0x0017\n aws r1 = r0.f577a\n long r4 = r1.mo1486c()\n r8 = r4\n goto L_0x0019\n L_0x0017:\n r8 = r2\n L_0x0019:\n int r1 = (r8 > r2 ? 1 : (r8 == r2 ? 0 : -1))\n if (r1 != 0) goto L_0x0122\n ajf r1 = r12.f528m\n akn r2 = r12.f531p\n akl r2 = r2.f602e\n akx r3 = r1.f445c\n r4 = 0\n if (r3 == 0) goto L_0x008a\n boolean r3 = r3.mo486w()\n if (r3 != 0) goto L_0x008a\n akx r3 = r1.f445c\n boolean r3 = r3.mo485v()\n if (r3 == 0) goto L_0x0037\n goto L_0x0042\n L_0x0037:\n if (r0 != r2) goto L_0x008a\n akx r2 = r1.f445c\n boolean r2 = r2.mo359g()\n if (r2 == 0) goto L_0x0042\n goto L_0x008a\n L_0x0042:\n bkr r2 = r1.f446d\n long r2 = r2.mo379b()\n boolean r5 = r1.f447e\n if (r5 == 0) goto L_0x0068\n blf r5 = r1.f443a\n long r5 = r5.mo379b()\n int r7 = (r2 > r5 ? 1 : (r2 == r5 ? 0 : -1))\n if (r7 >= 0) goto L_0x005c\n blf r2 = r1.f443a\n r2.mo2109d()\n goto L_0x0096\n L_0x005c:\n r1.f447e = r4\n boolean r5 = r1.f448f\n if (r5 == 0) goto L_0x0068\n blf r5 = r1.f443a\n r5.mo2107a()\n L_0x0068:\n blf r5 = r1.f443a\n r5.mo2108a(r2)\n bkr r2 = r1.f446d\n akq r2 = r2.mo376Q()\n blf r3 = r1.f443a\n akq r3 = r3.f4280a\n boolean r3 = r2.equals(r3)\n if (r3 != 0) goto L_0x0096\n blf r3 = r1.f443a\n r3.mo378a(r2)\n aje r3 = r1.f444b\n ake r3 = (p000.ake) r3\n r3.m694a(r2, r4)\n goto L_0x0096\n L_0x008a:\n r2 = 1\n r1.f447e = r2\n boolean r2 = r1.f448f\n if (r2 == 0) goto L_0x0096\n blf r2 = r1.f443a\n r2.mo2107a()\n L_0x0096:\n long r1 = r1.mo379b()\n r12.f513D = r1\n long r0 = r0.mo440b(r1)\n akp r2 = r12.f533r\n long r2 = r2.f623m\n java.util.ArrayList r5 = r12.f530o\n boolean r5 = r5.isEmpty()\n if (r5 != 0) goto L_0x011d\n akp r5 = r12.f533r\n awt r5 = r5.f612b\n boolean r5 = r5.mo1504a()\n if (r5 != 0) goto L_0x011d\n akp r5 = r12.f533r\n long r6 = r5.f613c\n int r8 = (r6 > r2 ? 1 : (r6 == r2 ? 0 : -1))\n if (r8 != 0) goto L_0x00c5\n boolean r6 = r12.f515F\n if (r6 == 0) goto L_0x00c5\n r6 = -1\n long r2 = r2 + r6\n L_0x00c5:\n r12.f515F = r4\n alh r4 = r5.f611a\n awt r5 = r5.f612b\n java.lang.Object r5 = r5.f2566a\n int r4 = r4.mo525a(r5)\n int r5 = r12.f514E\n r6 = 0\n if (r5 <= 0) goto L_0x00e1\n java.util.ArrayList r7 = r12.f530o\n int r5 = r5 + -1\n java.lang.Object r5 = r7.get(r5)\n akb r5 = (p000.akb) r5\n goto L_0x00e3\n L_0x00e1:\n L_0x00e2:\n r5 = r6\n L_0x00e3:\n if (r5 != 0) goto L_0x00e6\n goto L_0x0109\n L_0x00e6:\n int r5 = r5.f502a\n if (r4 >= 0) goto L_0x00eb\n L_0x00ea:\n goto L_0x00f4\n L_0x00eb:\n if (r4 != 0) goto L_0x0109\n r7 = 0\n int r5 = (r2 > r7 ? 1 : (r2 == r7 ? 0 : -1))\n if (r5 >= 0) goto L_0x0109\n goto L_0x00ea\n L_0x00f4:\n int r5 = r12.f514E\n int r5 = r5 + -1\n r12.f514E = r5\n if (r5 <= 0) goto L_0x0108\n java.util.ArrayList r7 = r12.f530o\n int r5 = r5 + -1\n java.lang.Object r5 = r7.get(r5)\n akb r5 = (p000.akb) r5\n goto L_0x00e3\n L_0x0108:\n goto L_0x00e2\n L_0x0109:\n int r2 = r12.f514E\n java.util.ArrayList r3 = r12.f530o\n int r3 = r3.size()\n if (r2 >= r3) goto L_0x011d\n java.util.ArrayList r2 = r12.f530o\n int r3 = r12.f514E\n java.lang.Object r2 = r2.get(r3)\n akb r2 = (p000.akb) r2\n L_0x011d:\n akp r2 = r12.f533r\n r2.f623m = r0\n goto L_0x0140\n L_0x0122:\n r12.m691a(r8)\n akp r0 = r12.f533r\n long r0 = r0.f623m\n int r2 = (r8 > r0 ? 1 : (r8 == r0 ? 0 : -1))\n if (r2 == 0) goto L_0x0140\n akp r0 = r12.f533r\n awt r7 = r0.f612b\n long r10 = r0.f614d\n r6 = r12\n akp r0 = r6.m686a(r7, r8, r10)\n r12.f533r = r0\n akc r0 = r12.f529n\n r1 = 4\n r0.mo409b(r1)\n L_0x0140:\n akn r0 = r12.f531p\n akl r0 = r0.f603f\n akp r1 = r12.f533r\n long r2 = r0.mo442c()\n r1.f621k = r2\n akp r0 = r12.f533r\n long r1 = r12.m719n()\n r0.f622l = r1\n return\n L_0x0155:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p000.ake.m710e():void\");\n }",
"private static int getTreeSize(int totalSize) {\n if (totalSize <= 32) {\n return 0;\n } else {\n // TODO: Clojure does ((realSize - 1) >>> 5) << 5); is that faster?\n return ((totalSize - 1) & (~0x1F));\n }\n }",
"public abstract long mo9748m();",
"public int mo9774x() {\n /*\n r5 = this;\n int r0 = r5.f9082i\n int r1 = r5.f9080g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9082i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9776z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9082i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9774x():int\");\n }",
"@Override\n\tpublic int computeSize() {\n\t\treturn 36;\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\tint i, x=4,w=9,q;\r\n\t\tfor(i=-1;i<20;i+=3) {\r\n\t\t\tx++;\r\n\t\t\tfor(q=4;q<11;q++) {\r\n\t\t\t\tdo {\r\n\t\t\t\t\ti=+3;\r\n\t\t\t\t\tw=sizeof(i);\r\n\t\t\t\t\ti=x+w;\r\n\t\t\t\t\tx=w+i;\r\n\t\t\t\t\t\t\r\n\t\t\t\t} while (x<15);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"x:\"+x+\"i:\"+i);\r\n\r\n\t}",
"int memSize() {\r\n\t\treturn BASE_NODE_SIZE + 5 * 4;\r\n\t}",
"private int calculateBinSize(int r15) throws java.io.IOException {\n /*\n r14 = this;\n r1 = 0\n java.io.InputStream r2 = r14.in\n int r12 = r2.available()\n r2.mark(r12)\n r4 = 0\n int r0 = r2.read() // Catch:{ all -> 0x0052 }\n L_0x000f:\n r14.checkComma(r0) // Catch:{ all -> 0x0052 }\n int r5 = r14.readByte(r2) // Catch:{ all -> 0x0052 }\n int r8 = r14.readAddress(r2) // Catch:{ all -> 0x0052 }\n int r9 = r14.readByte(r2) // Catch:{ all -> 0x0052 }\n switch(r9) {\n case 0: goto L_0x0072;\n case 1: goto L_0x0036;\n case 2: goto L_0x0057;\n case 3: goto L_0x0021;\n case 4: goto L_0x003a;\n default: goto L_0x0021;\n } // Catch:{ all -> 0x0052 }\n L_0x0021:\n int r12 = r5 * 2\n int r12 = r12 + 2\n long r10 = (long) r12 // Catch:{ all -> 0x0052 }\n r14.skip(r2, r10) // Catch:{ all -> 0x0052 }\n L_0x0029:\n int r0 = r2.read() // Catch:{ all -> 0x0052 }\n r12 = 10\n if (r0 == r12) goto L_0x0029\n r12 = 13\n if (r0 == r12) goto L_0x0029\n goto L_0x000f\n L_0x0036:\n r2.reset()\n L_0x0039:\n return r1\n L_0x003a:\n int r7 = r14.readAddress(r2) // Catch:{ all -> 0x0052 }\n if (r1 <= 0) goto L_0x004a\n int r12 = r4 >> 16\n int r12 = r12 + 1\n if (r7 == r12) goto L_0x004a\n r2.reset()\n goto L_0x0039\n L_0x004a:\n int r4 = r7 << 16\n r12 = 2\n r14.skip(r2, r12) // Catch:{ all -> 0x0052 }\n goto L_0x0029\n L_0x0052:\n r12 = move-exception\n r2.reset()\n throw r12\n L_0x0057:\n int r12 = r14.readAddress(r2) // Catch:{ all -> 0x0052 }\n int r6 = r12 << 4\n if (r1 <= 0) goto L_0x006b\n int r12 = r6 >> 16\n int r13 = r4 >> 16\n int r13 = r13 + 1\n if (r12 == r13) goto L_0x006b\n r2.reset()\n goto L_0x0039\n L_0x006b:\n r4 = r6\n r12 = 2\n r14.skip(r2, r12) // Catch:{ all -> 0x0052 }\n goto L_0x0029\n L_0x0072:\n int r3 = r4 + r8\n if (r3 < r15) goto L_0x0021\n int r1 = r1 + r5\n goto L_0x0021\n */\n throw new UnsupportedOperationException(\"Method not decompiled: no.nordicsemi.android.dfu.internal.HexInputStream.calculateBinSize(int):int\");\n }",
"public static int size_parentId() {\n return (16 / 8);\n }",
"private static int m36201b(Rect rect) {\n return rect.width() * rect.height();\n }",
"public abstract int mo9753r();",
"public int length() { return 1+maxidx; }",
"public abstract long mo24410c();",
"short getCopies();",
"public static void main(String[] args) {\n DGIM[] dgim = new DGIM[5];\n //从0到4分别代表2^4到2^0的位\n for (int i = 0; i < 5; i++) {\n dgim[i] = new DGIM(1000);\n }\n try (BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(\"cmsc5741_stream_data2.txt\")));) {\n while (true) {\n boolean isEnd = false;\n StringBuilder builder = new StringBuilder();\n int c1 = reader.read();\n builder.append((char) c1);\n while (true) {\n int c2 = reader.read();\n if ((char) c2 == ' ') {\n break;\n }\n if (c2 == -1) {\n isEnd = true;\n break;\n }\n builder.append((char) c2);\n }\n if (isEnd) {\n break;\n }\n char[] binary = Integer.toBinaryString(Integer.parseInt(builder.toString())).toCharArray();\n //寻找开始的位\n int start = 5 - binary.length;\n DGIM.number++;\n for (int i = 0; i < binary.length; i++) {\n if (binary[i] == '1') {\n dgim[start].add();\n }\n start++;\n }\n }\n Iterator<Bucket> iterator_16 = dgim[0].getQueue().iterator();\n Iterator<Bucket> iterator_8 = dgim[1].getQueue().iterator();\n Iterator<Bucket> iterator_4 = dgim[2].getQueue().iterator();\n Iterator<Bucket> iterator_2 = dgim[3].getQueue().iterator();\n Iterator<Bucket> iterator_1 = dgim[4].getQueue().iterator();\n\n\n while(iterator_16.hasNext()){\n System.out.println(\"Buckets for 16 :\"+iterator_16.next());\n }\n System.out.println(\"There are \"+dgim[0].getContent()+\" count of 16\");\n while(iterator_8.hasNext()){\n System.out.println(\"Buckets for 8 :\"+iterator_8.next());\n }\n System.out.println(\"There are \"+dgim[1].getContent()+\" count of 8\");\n while(iterator_4.hasNext()){\n System.out.println(\"Buckets for 4 :\"+iterator_4.next());\n }\n System.out.println(\"There are \"+dgim[2].getContent()+\" count of 4\");\n while(iterator_2.hasNext()){\n System.out.println(\"Buckets for 2 :\"+iterator_2.next());\n }\n System.out.println(\"There are \"+dgim[3].getContent()+\" count 2\");\n\n while(iterator_1.hasNext()){\n System.out.println(\"Buckets for 1 :\"+iterator_1.next());\n }\n System.out.println(\"There are \"+dgim[4].getContent()+\" times 1\");\n\n int result = (dgim[0].getContent()*16 + dgim[1].getContent()*8\n + dgim[2].getContent()*4 + dgim[3].getContent()*2 + dgim[4].getContent())/1000;\n System.out.println(\"The average price: \"+result);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"private static java.lang.String m586k() {\r\n /*\r\n r6 = 1;\r\n r0 = 0;\r\n r1 = \"/proc/cpuinfo\";\r\n r2 = new java.io.FileReader;\t Catch:{ IOException -> 0x0040, all -> 0x0050 }\r\n r2.<init>(r1);\t Catch:{ IOException -> 0x0040, all -> 0x0050 }\r\n r1 = new java.io.BufferedReader;\t Catch:{ IOException -> 0x0071, all -> 0x006a }\r\n r3 = 8192; // 0x2000 float:1.14794E-41 double:4.0474E-320;\r\n r1.<init>(r2, r3);\t Catch:{ IOException -> 0x0071, all -> 0x006a }\r\n L_0x0010:\r\n r3 = r1.readLine();\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r3 == 0) goto L_0x0039;\r\n L_0x0016:\r\n r4 = com.alipay.security.mobile.module.p010a.C0159a.m556a(r3);\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r4 != 0) goto L_0x0010;\r\n L_0x001c:\r\n r4 = \":\";\r\n r3 = r3.split(r4);\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r3 == 0) goto L_0x0010;\r\n L_0x0024:\r\n r4 = r3.length;\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r4 <= r6) goto L_0x0010;\r\n L_0x0027:\r\n r4 = 0;\r\n r4 = r3[r4];\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n r5 = \"BogoMIPS\";\r\n r4 = r4.contains(r5);\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r4 == 0) goto L_0x0010;\r\n L_0x0032:\r\n r4 = 1;\r\n r3 = r3[r4];\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n r0 = r3.trim();\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n L_0x0039:\r\n r2.close();\t Catch:{ IOException -> 0x0060 }\r\n L_0x003c:\r\n r1.close();\t Catch:{ IOException -> 0x0062 }\r\n L_0x003f:\r\n return r0;\r\n L_0x0040:\r\n r1 = move-exception;\r\n r1 = r0;\r\n r2 = r0;\r\n L_0x0043:\r\n if (r2 == 0) goto L_0x0048;\r\n L_0x0045:\r\n r2.close();\t Catch:{ IOException -> 0x0064 }\r\n L_0x0048:\r\n if (r1 == 0) goto L_0x003f;\r\n L_0x004a:\r\n r1.close();\t Catch:{ IOException -> 0x004e }\r\n goto L_0x003f;\r\n L_0x004e:\r\n r1 = move-exception;\r\n goto L_0x003f;\r\n L_0x0050:\r\n r1 = move-exception;\r\n r2 = r0;\r\n r7 = r0;\r\n r0 = r1;\r\n r1 = r7;\r\n L_0x0055:\r\n if (r2 == 0) goto L_0x005a;\r\n L_0x0057:\r\n r2.close();\t Catch:{ IOException -> 0x0066 }\r\n L_0x005a:\r\n if (r1 == 0) goto L_0x005f;\r\n L_0x005c:\r\n r1.close();\t Catch:{ IOException -> 0x0068 }\r\n L_0x005f:\r\n throw r0;\r\n L_0x0060:\r\n r2 = move-exception;\r\n goto L_0x003c;\r\n L_0x0062:\r\n r1 = move-exception;\r\n goto L_0x003f;\r\n L_0x0064:\r\n r2 = move-exception;\r\n goto L_0x0048;\r\n L_0x0066:\r\n r2 = move-exception;\r\n goto L_0x005a;\r\n L_0x0068:\r\n r1 = move-exception;\r\n goto L_0x005f;\r\n L_0x006a:\r\n r1 = move-exception;\r\n r7 = r1;\r\n r1 = r0;\r\n r0 = r7;\r\n goto L_0x0055;\r\n L_0x006f:\r\n r0 = move-exception;\r\n goto L_0x0055;\r\n L_0x0071:\r\n r1 = move-exception;\r\n r1 = r0;\r\n goto L_0x0043;\r\n L_0x0074:\r\n r3 = move-exception;\r\n goto L_0x0043;\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: com.alipay.security.mobile.module.b.a.k():java.lang.String\");\r\n }",
"@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}",
"private int m514b(int i, int i2) {\n return ((i + 7) + (i2 - 1)) / 7;\n }",
"public abstract int mo9749n();",
"public int mo12191c() {\n return this.f10948c.limit() + this.f10957l.length + (this.f10958m.length * 4);\n }",
"public static int size_moteId() {\n return (16 / 8);\n }",
"public int getHopCount()\r\n/* */ {\r\n/* 168 */ return this.nHops;\r\n/* */ }",
"public abstract long mo9750o();",
"public long getBlockCount ( ) {\r\n\t\treturn 436;\r\n\t}",
"int regionSplitBits4DownSampledTable();",
"@Override\r\n\tpublic int size() {\n\t\treturn 27;\r\n\t}",
"public abstract long mo9743h();",
"public int mo36g() {\n return 2;\n }",
"private double RepulsionFactorSourceNodes(){\n \tdouble RepulsionFactor=10000.0d *(contextNodeSize*5);\n \t\n \treturn RepulsionFactor;\n }",
"int memSize() {\n return super.memSize() + 4 * 4; }",
"private int m14719r() {\n int s = m14720s();\n if (s > 0) {\n try {\n if (this.f10949d == null) {\n this.f10949d = this.f10962q.mo12209b(255);\n }\n int i = this.f10951f - this.f10952g;\n if (i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, s);\n this.f10952g += s;\n } else if (this.f10948c.remaining() + i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, i);\n this.f10952g = this.f10951f;\n m14721t();\n int i2 = s - i;\n System.arraycopy(this.f10950e, 0, this.f10949d, i, i2);\n this.f10952g += i2;\n } else {\n this.f10965t = 1;\n }\n } catch (Exception e) {\n C3111h1.m14932d(f10944y, \"Error Reading Block\", e);\n this.f10965t = 1;\n }\n }\n return s;\n }",
"private int[] m7232h() {\n this.f5578C[0] = this.f5594p;\n this.f5578C[1] = this.f5599u - this.f5594p;\n return this.f5578C;\n }",
"public abstract long mo20901UQ();",
"private int m5345e() {\n if (Process.myUid() == 1000) {\n return 0;\n }\n boolean equals;\n try {\n equals = \"mounted\".equals(Environment.getExternalStorageState());\n } catch (Exception e) {\n equals = false;\n }\n if (C1222aj.m5343c() && !equals) {\n return 0;\n }\n File file = new File(C1222aj.m5334a(this.f4232a).getPath() + File.separator + \"carrierdata\");\n if (!file.exists() || !file.isDirectory()) {\n return 0;\n }\n File[] listFiles = file.listFiles();\n if (listFiles == null || listFiles.length <= 0) {\n return 0;\n }\n ArrayList a = C1222aj.m5336a(listFiles);\n return a.size() == 1 ? ((File) a.get(0)).length() <= 0 ? 10 : 1 : a.size() >= 2 ? 2 : 0;\n }",
"public static String nthrt(String bytes,int size, int value){\n if(value==1||value==0||size<1||size>bytes.length()||!Cript2010x8b.USEPOWNTHRT) return bytes; \n String out=\"\"; \n int max=bytes.length()/size; \n if(bytes.length()%size!=0) \n max++; \n for(int i=0;i<max;i++){ \n String subStr=\"\"; \n for(int l=0;l<size;l++) \n try{ \n subStr+=bytes.charAt(i*size+(size-l-1)); \n }catch(Exception e){ \n String bug=bytes.substring(i*size); \n bug=addLong(bug,1,value); \n return out+bug; \n } \n BigInteger current=strToBInt(subStr); \n int exiter=0;\n while(Operations.nthRootFloor(current, value).pow(value).compareTo(current)!=0){ \n if(exiter>66) break;\n current=current.add(BigInteger.valueOf(2).pow(8*size)); \n exiter++;\n } \n current=Operations.nthRootFloor(current, value); \n exiter=0;\n while(current.compareTo(BigInteger.valueOf(2).pow(8*size))>0){if(exiter>66) break;current=current.add(BigInteger.valueOf(2).pow(8*size).negate());exiter++;} \n exiter=0;\n while(current.compareTo(BigInteger.ZERO)<0){if(exiter>66) break;current=current.add(BigInteger.valueOf(2).pow(8*size));exiter++;} \n \n out+=BintToStr(current,size); \n } \n return out; \n }",
"public int getBlockSize()\n/* */ {\n/* 43 */ return this.blockSize;\n/* */ }",
"private static byte[] getEightBits(byte[] bits56) {\n byte[] bits64 = new byte[8];\n System.arraycopy(bits56, 0, bits64, 0, 7);\n bits64[7] = (byte) (((bits56[0] & 1) << 1) | ((bits56[1] & 1) << 2) | ((bits56[2] & 1) << 3)\n | ((bits56[3] & 1) << 4) | ((bits56[4] & 1) << 5) | ((bits56[5] & 1) << 6)\n | ((bits56[6] & 1) << 7));\n return bits64;\n }",
"public final int mo9382ZU() {\n return 470;\n }",
"public int mo163c() {\n int size = this.f1963b.size();\n if (size < 1) {\n return 0;\n }\n int i = f1962a;\n return ((size / i) * (Lca.m828b(i) + 4)) + 4 + Lca.m828b(size % i);\n }",
"public abstract long mo24409b();",
"C4945r5 mo19056B();",
"public int mo4452e() {\n /*\n r7 = this;\n int r0 = r7.f2518c\n r7.f2519d = r0\n r0 = 0\n r1 = 0\n r2 = 0\n L_0x0007:\n int r3 = r7.f2519d\n if (r3 <= 0) goto L_0x003b\n byte r3 = r7.mo4449a()\n r4 = -1\n if (r3 == 0) goto L_0x0034\n r5 = 1\n if (r3 == r5) goto L_0x002e\n r6 = 2\n if (r3 == r6) goto L_0x002e\n r6 = 9\n if (r3 == r6) goto L_0x0007\n switch(r3) {\n case 14: goto L_0x0028;\n case 15: goto L_0x0028;\n case 16: goto L_0x0025;\n case 17: goto L_0x0025;\n case 18: goto L_0x0022;\n default: goto L_0x001f;\n }\n L_0x001f:\n if (r2 != 0) goto L_0x0007\n goto L_0x0039\n L_0x0022:\n int r1 = r1 + 1\n goto L_0x0007\n L_0x0025:\n if (r2 != r1) goto L_0x002b\n return r5\n L_0x0028:\n if (r2 != r1) goto L_0x002b\n return r4\n L_0x002b:\n int r1 = r1 + -1\n goto L_0x0007\n L_0x002e:\n if (r1 != 0) goto L_0x0031\n return r5\n L_0x0031:\n if (r2 != 0) goto L_0x0007\n goto L_0x0039\n L_0x0034:\n if (r1 != 0) goto L_0x0037\n return r4\n L_0x0037:\n if (r2 != 0) goto L_0x0007\n L_0x0039:\n r2 = r1\n goto L_0x0007\n L_0x003b:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.core.text.BidiFormatter.C0510a.mo4452e():int\");\n }",
"public static int size_nodeid() {\n return (8 / 8);\n }",
"public int mo9754s() {\n return mo9761x();\n }",
"Integer getDataLgth();",
"@Override\n public int getSize() {\n return 64;\n }",
"public static int size_infos_log_src() {\n return (16 / 8);\n }",
"@Test\n\tpublic void testLargeRingSystem4() throws Exception {\n\t\tString smiles = \"c1ccc(cc1)[Sn](c2ccccc2)(c3ccccc3)S[Sn](c4ccccc4)(c5ccccc5)c6ccccc6\";\n IAtomContainer mol = sp.parseSmiles(smiles);\n atasc.decideBondOrder(mol, true);\n \n int doubleBondCount = 0;\n for (IBond bond : mol.bonds()) {\n if (bond.getOrder().equals(Order.DOUBLE)) doubleBondCount++;\n }\n Assert.assertEquals(18, doubleBondCount);\n\t}",
"public abstract int mo123248g();",
"public final int mo6062b() {\n return this.f10682a.size();\n }",
"private long m673F() {\n int i = 0;\n long j = 0;\n if (this.f552g.mo501h() >= 10) {\n byte[] f = this.f552g.mo499f();\n int g = this.f552g.mo500g();\n long j2 = 0;\n int i2 = 0;\n while (true) {\n byte b = f[g + i];\n j2 |= ((long) (b & Byte.MAX_VALUE)) << i2;\n if ((b & 128) != 128) {\n this.f552g.mo495a(i + 1);\n return j2;\n }\n i2 += 7;\n i++;\n }\n } else {\n while (true) {\n byte u = mo470u();\n j |= ((long) (u & Byte.MAX_VALUE)) << i;\n if ((u & 128) != 128) {\n return j;\n }\n i += 7;\n }\n }\n }",
"public void getTile_B8();",
"private void m50366E() {\n }",
"static int size_of_xri(String passed){\n\t\treturn 2;\n\t}",
"public static int totalSize_infos_noise() {\n return (48 / 8);\n }",
"public static int sizeBits_parentId() {\n return 16;\n }",
"public int mo9785x() {\n /*\n r10 = this;\n long r0 = r10.f9091i\n long r2 = r10.f9090h\n int r2 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1))\n if (r2 != 0) goto L_0x000a\n goto L_0x0085\n L_0x000a:\n r2 = 1\n long r4 = r0 + r2\n byte r0 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r0)\n if (r0 < 0) goto L_0x0017\n r10.f9091i = r4\n return r0\n L_0x0017:\n long r6 = r10.f9090h\n long r6 = r6 - r4\n r8 = 9\n int r1 = (r6 > r8 ? 1 : (r6 == r8 ? 0 : -1))\n if (r1 >= 0) goto L_0x0021\n goto L_0x0085\n L_0x0021:\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n int r1 = r1 << 7\n r0 = r0 ^ r1\n if (r0 >= 0) goto L_0x002f\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x008b\n L_0x002f:\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x003e\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x003c:\n r6 = r4\n goto L_0x008b\n L_0x003e:\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n int r1 = r1 << 21\n r0 = r0 ^ r1\n if (r0 >= 0) goto L_0x004e\n r1 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r1\n goto L_0x008b\n L_0x004e:\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n int r6 = r1 << 28\n r0 = r0 ^ r6\n r6 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r6\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n L_0x0085:\n long r0 = r10.mo9787z()\n int r0 = (int) r0\n return r0\n L_0x008b:\n r10.f9091i = r6\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3661d.mo9785x():int\");\n }",
"static int size_of_shld(String passed){\n\t\treturn 3;\n\t}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"public int NextMbAddress(int n) {\n\t\tint PicSizeInMapUnits= (sps0.pic_width_in_mbs_minus_1+1)*(sps0.pic_height_in_map_units_minus_1+1);\n\t\t// int FrameHeightInMbs = (2-(sps0.frame_mbs_only_flag ? 1:0))*(sps0.pic_height_in_map_units_minus_1+1);\n \t\t// int PicHeightInMbs = FrameHeightInMbs / (1+(field_pic_flag ? 1:0));\n\n \t\tint PicSizeInMbs = (sps0.pic_width_in_mbs_minus_1+1) * (PicHeightInMbs);\n\t\t// (7-34)\n\t\tint MapUnitsInSliceGroup0 = Math.min(((pps0.slice_group_change_rate_minus1 + 1) * slice_group_change_cycle), \n\t\t\t(PicSizeInMapUnits));\n\t\t// System.out.println(MapUnitsInSliceGroup0);\n\t\tint sizeOfUpperLeftGroup;\n\t\tif(pps0.num_slice_groups_minus1==1&&(pps0.slice_group_map_type==4||pps0.slice_group_map_type==5)){\n\n\t\t\tsizeOfUpperLeftGroup=(pps0.slice_group_change_direction_flag ? (PicSizeInMapUnits - MapUnitsInSliceGroup0)\n\t\t\t\t: MapUnitsInSliceGroup0);\n\t\t}\n\t\tint [] mapUnitToSliceGroupMap=new int[PicSizeInMapUnits];\n\t\tif(pps0.num_slice_groups_minus1==0){\n\t\t\t// System.out.println(\"zero \");\n\t\t\tfor(int i=0;i<pps0.pic_size_in_map_units_minus1+1;i++){\n\t\t\t\tmapUnitToSliceGroupMap[i]=0;\n\t\t\t}\t\t\t\n\t\t}\n\n\t\telse if(pps0.num_slice_groups_minus1!=0){\n\t\t\tif(pps0.slice_group_map_type==0){\n\t\t\t\t// 8.2.2.1\n\t\t\t}\n\t\t\telse if(pps0.slice_group_map_type==1){\n\t\t\t\t// 8.2.2.2\n\t\t\t}else if(pps0.slice_group_map_type==2){\n\t\t\t\t// 8.2.2.3\n\t\t\t}else if(pps0.slice_group_map_type==3){\n\t\t\t\t// 8.2.2.4\n\t\t\t}else if(pps0.slice_group_map_type==4){\n\t\t\t\t// 8.2.2.5\n\t\t\t}\n\t\t\telse if(pps0.slice_group_map_type==5){\n\t\t\t\t// 8.2.2.6\n\t\t\t}\n\t\t\telse if(pps0.slice_group_map_type==6){\n\t\t\t\t// 8.2.2.7\n\t\t\t}\n\t\t}\n\n\n\t\t\t\t\t\t\t\t\t/* 8.2.2.8 */\n \t\tint[] MbToSliceGroupMap=new int[PicSizeInMbs];\n \t\tfor(int i=0;i<PicSizeInMbs;i++){\n \t\t\tif(sps0.frame_mbs_only_flag==true||field_pic_flag==true){\n \t\t\t\t// System.out.println(PicSizeInMbs+\" \"+PicSizeInMapUnits);\n \t\t\t\tMbToSliceGroupMap[i]=mapUnitToSliceGroupMap[i];\n \t\t\t} else if(MbaffFrameFlag){\n \t\t\t\tMbToSliceGroupMap[i]=mapUnitToSliceGroupMap[(int)i/2];\n\n \t\t\t}else if(sps0.frame_mbs_only_flag==false&&sps0.mb_adaptive_frame_field_flag==false&&field_pic_flag==false){\n \t\t\t\tMbToSliceGroupMap[i]=mapUnitToSliceGroupMap[(int)(i/(2*sps0.pic_width_in_mbs_minus_1+1))\n \t\t\t\t*sps0.pic_width_in_mbs_minus_1+1+(i%sps0.pic_width_in_mbs_minus_1+1)];\n \t\t\t}\n\n \t\t}\n\t\t// i = n + 1 \n\t\t// while( i < PicSizeInMbs && MbToSliceGroupMap[ i ] != MbToSliceGroupMap[ n ] )\n\t\t // i++; \n\t\t// nextMbAddress = i\n\t\tint i = n + 1;\n\t\t// int nextMbAddress = i;\n\n\t\twhile(i<PicSizeInMbs &&( MbToSliceGroupMap[i]!=MbToSliceGroupMap[n])) {\n\t\t\ti++;\n\t\t\t// System.out.println(\"here mb address\");\n\t\t\t// nextMbAddress = i;\n\t\t}\n\t\t// System.out.println(\"nextMbAddress \"+i);\n\t\treturn i;\n\t}",
"public int mo9754s() {\n return mo9785x();\n }",
"private int m5278d(int pos, int cmd) {\n int end;\n int start;\n for (int i = this.f3533c.size() - 1; i >= 0; i--) {\n C1070b postponed = (C1070b) this.f3533c.get(i);\n int i2 = postponed.f3539a;\n if (i2 == 8) {\n if (postponed.f3540b < postponed.f3542d) {\n start = postponed.f3540b;\n end = postponed.f3542d;\n } else {\n start = postponed.f3542d;\n end = postponed.f3540b;\n }\n if (pos < start || pos > end) {\n int i3 = postponed.f3540b;\n if (pos < i3) {\n if (cmd == 1) {\n postponed.f3540b = i3 + 1;\n postponed.f3542d++;\n } else if (cmd == 2) {\n postponed.f3540b = i3 - 1;\n postponed.f3542d--;\n }\n }\n } else {\n int i4 = postponed.f3540b;\n if (start == i4) {\n if (cmd == 1) {\n postponed.f3542d++;\n } else if (cmd == 2) {\n postponed.f3542d--;\n }\n pos++;\n } else {\n if (cmd == 1) {\n postponed.f3540b = i4 + 1;\n } else if (cmd == 2) {\n postponed.f3540b = i4 - 1;\n }\n pos--;\n }\n }\n } else {\n int i5 = postponed.f3540b;\n if (i5 <= pos) {\n if (i2 == 1) {\n pos -= postponed.f3542d;\n } else if (i2 == 2) {\n pos += postponed.f3542d;\n }\n } else if (cmd == 1) {\n postponed.f3540b = i5 + 1;\n } else if (cmd == 2) {\n postponed.f3540b = i5 - 1;\n }\n }\n }\n for (int i6 = this.f3533c.size() - 1; i6 >= 0; i6--) {\n C1070b op = (C1070b) this.f3533c.get(i6);\n if (op.f3539a == 8) {\n int i7 = op.f3542d;\n if (i7 == op.f3540b || i7 < 0) {\n this.f3533c.remove(i6);\n mo8470a(op);\n }\n } else if (op.f3542d <= 0) {\n this.f3533c.remove(i6);\n mo8470a(op);\n }\n }\n return pos;\n }",
"public int m21458g() {\n return this.f18796b == null ? 0 : this.f18796b.size();\n }",
"private byte m1655h() {\n char charAt;\n int i = this.f2519d;\n while (true) {\n int i2 = this.f2519d;\n if (i2 <= 0) {\n break;\n }\n CharSequence charSequence = this.f2516a;\n int i3 = i2 - 1;\n this.f2519d = i3;\n char charAt2 = charSequence.charAt(i3);\n this.f2520e = charAt2;\n if (charAt2 == '<') {\n return 12;\n }\n if (charAt2 == '>') {\n break;\n } else if (charAt2 == '\\\"' || charAt2 == '\\'') {\n do {\n int i4 = this.f2519d;\n if (i4 <= 0) {\n break;\n }\n CharSequence charSequence2 = this.f2516a;\n int i5 = i4 - 1;\n this.f2519d = i5;\n charAt = charSequence2.charAt(i5);\n this.f2520e = charAt;\n } while (charAt != charAt2);\n }\n }\n this.f2519d = i;\n this.f2520e = '>';\n return 13;\n }",
"public int mo27483b() {\n return 0;\n }",
"public abstract int mo8526p();",
"public abstract int getSmallStackSizeWishInKb();",
"public int mo9232aG() {\n return 0;\n }",
"public static int[] buildBoxOutMap(int r15, int r16, int r17, int r18) {\n /*\n int r0 = r15 * r16\n int[] r1 = new int[r0]\n r2 = 0\n r3 = 0\n L_0x0006:\n r4 = 1\n if (r3 >= r0) goto L_0x000e\n r1[r3] = r4\n int r3 = r3 + 1\n goto L_0x0006\n L_0x000e:\n int r0 = r15 - r17\n int r0 = r0 / 2\n int r3 = r16 - r17\n int r3 = r3 / 2\n int r5 = r17 + -1\n r10 = r17\n r6 = r0\n r8 = r6\n r9 = r8\n r11 = r3\n r12 = r11\n r7 = r5\n r0 = r18\n r5 = r12\n r3 = 0\n L_0x0024:\n if (r3 >= r0) goto L_0x007e\n int r13 = r5 * r15\n int r13 = r13 + r6\n r14 = r1[r13]\n if (r14 != r4) goto L_0x002f\n r14 = 1\n goto L_0x0030\n L_0x002f:\n r14 = 0\n L_0x0030:\n if (r14 == 0) goto L_0x0034\n r1[r13] = r2\n L_0x0034:\n r13 = -1\n if (r7 != r13) goto L_0x0046\n if (r6 != r8) goto L_0x0046\n int r8 = r8 + -1\n int r6 = Max(r8, r2)\n int r7 = r17 * 2\n int r7 = r7 - r4\n r8 = r6\n L_0x0043:\n r10 = r7\n r7 = 0\n goto L_0x007c\n L_0x0046:\n if (r7 != r4) goto L_0x0058\n if (r6 != r9) goto L_0x0058\n int r9 = r9 + 1\n int r6 = r15 + -1\n int r6 = Min(r9, r6)\n int r7 = r17 * 2\n int r7 = 1 - r7\n r9 = r6\n goto L_0x0043\n L_0x0058:\n if (r10 != r13) goto L_0x0069\n if (r5 != r11) goto L_0x0069\n int r11 = r11 + -1\n int r5 = Max(r11, r2)\n int r7 = r17 * 2\n int r7 = 1 - r7\n r11 = r5\n L_0x0067:\n r10 = 0\n goto L_0x007c\n L_0x0069:\n if (r10 != r4) goto L_0x007a\n if (r5 != r12) goto L_0x007a\n int r12 = r12 + 1\n int r5 = r16 + -1\n int r5 = Min(r12, r5)\n int r7 = r17 * 2\n int r7 = r7 - r4\n r12 = r5\n goto L_0x0067\n L_0x007a:\n int r6 = r6 + r7\n int r5 = r5 + r10\n L_0x007c:\n int r3 = r3 + r14\n goto L_0x0024\n L_0x007e:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.jcodec.codecs.h264.decode.aso.SliceGroupMapBuilder.buildBoxOutMap(int, int, boolean, int):int[]\");\n }"
] | [
"0.57372636",
"0.56970197",
"0.5633279",
"0.56286687",
"0.56225383",
"0.55624074",
"0.555793",
"0.5543602",
"0.55351484",
"0.55351484",
"0.55245274",
"0.5515133",
"0.5511253",
"0.550764",
"0.54865575",
"0.5479448",
"0.5444919",
"0.5420666",
"0.53815114",
"0.5372531",
"0.5362764",
"0.536234",
"0.5356474",
"0.53533953",
"0.53459483",
"0.53259057",
"0.5325054",
"0.5323341",
"0.53133607",
"0.528886",
"0.52879596",
"0.528558",
"0.52744836",
"0.52734005",
"0.5267243",
"0.52564585",
"0.52561414",
"0.52458894",
"0.52420056",
"0.52395636",
"0.5238985",
"0.5237385",
"0.5235334",
"0.5235052",
"0.5223472",
"0.52142954",
"0.5214211",
"0.5210243",
"0.5203544",
"0.5195054",
"0.51921064",
"0.5188184",
"0.5181526",
"0.5181328",
"0.51789355",
"0.517644",
"0.51734334",
"0.5172592",
"0.5169273",
"0.5164267",
"0.5163801",
"0.51627505",
"0.51605165",
"0.5160193",
"0.5155205",
"0.515508",
"0.5154289",
"0.51539254",
"0.51527977",
"0.5149311",
"0.5149051",
"0.5140283",
"0.5136144",
"0.5135857",
"0.51321006",
"0.51291037",
"0.5127585",
"0.5124474",
"0.51165783",
"0.5108392",
"0.5105302",
"0.5102731",
"0.51009375",
"0.51001626",
"0.509908",
"0.50985664",
"0.50892425",
"0.5078086",
"0.50752246",
"0.5072795",
"0.50704277",
"0.5067232",
"0.5064171",
"0.50606483",
"0.5053049",
"0.50525254",
"0.5052489",
"0.5051602",
"0.5051558",
"0.5051286",
"0.5050602"
] | 0.0 | -1 |
/ / / / / / / / / / | public void setDateFormatOverride(DateFormat formatter) {
/* 563 */ this.dateFormatOverride = formatter;
/* 564 */ fireChangeEvent();
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"public abstract void bepaalGrootte();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"double passer();",
"int getWidth() {return width;}",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"public String ring();",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public Integer getWidth(){return this.width;}",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void gored() {\n\t\t\n\t}",
"public void getTile_B8();",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"public String toString(){ return \"DIV\";}",
"int width();",
"public abstract String division();",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"@Override\n public void bfs() {\n\n }",
"public int getEdgeCount() \n {\n return 3;\n }",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"@Override\npublic void processDirection() {\n\t\n}",
"double getNewWidth();",
"long getWidth();",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"public int generateRoshambo(){\n ;]\n\n }",
"double volume(){\n return width*height*depth;\n }",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"public int my_leaf_count();",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"Operations operations();",
"static int getNumPatterns() { return 64; }",
"void mo33732Px();",
"public double getPerimiter(){return (2*height +2*width);}",
"double seBlesser();",
"public void SubRect(){\n\t\n}",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"public void skystonePos4() {\n }",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"public int getWidth(){\n return width;\n }",
"static void pyramid(){\n\t}",
"private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}",
"public void leerPlanesDietas();",
"public String getRing();",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"protected int parent(int i) { return (i - 1) / 2; }",
"void walk() {\n\t\t\n\t}",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"int getTribeSize();",
"@Override\n\tpublic void walk() {\n\t\t\n\t}",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"Parallelogram(){\n length = width = height = 0;\n }",
"public abstract double getBaseWidth();",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }",
"public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }",
"public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}",
"double getPerimeter(){\n return 2*height+width;\n }",
"void sharpen();",
"void sharpen();",
"private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"int expand();",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}",
"public static int size_parent() {\n return (8 / 8);\n }",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"public int getWidth()\n {return width;}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}",
"String directsTo();",
"int depth();",
"int depth();",
"int getWidth1();",
"public int upright();",
"public abstract int getSpotsNeeded();",
"public void stg() {\n\n\t}",
"int getR();",
"int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();"
] | [
"0.5542132",
"0.5447128",
"0.5228179",
"0.5214033",
"0.5111349",
"0.5096622",
"0.50625235",
"0.50373936",
"0.50340563",
"0.5012307",
"0.5004564",
"0.50032336",
"0.49990067",
"0.49965036",
"0.49912918",
"0.4987793",
"0.49815953",
"0.49780196",
"0.4968169",
"0.49576157",
"0.491673",
"0.4904468",
"0.48956203",
"0.48818448",
"0.48603067",
"0.48477066",
"0.4838461",
"0.4828261",
"0.48225915",
"0.4821747",
"0.48202",
"0.4819123",
"0.4811463",
"0.48112586",
"0.48070896",
"0.48048383",
"0.4803643",
"0.47940737",
"0.4787235",
"0.4783877",
"0.47823367",
"0.47724506",
"0.47637272",
"0.47621053",
"0.47603345",
"0.47599968",
"0.47585115",
"0.475558",
"0.47504306",
"0.4749799",
"0.4749368",
"0.47491407",
"0.4747878",
"0.47467119",
"0.47431904",
"0.47389767",
"0.4730798",
"0.4729816",
"0.47277254",
"0.4727426",
"0.47259334",
"0.47255015",
"0.4720803",
"0.4719892",
"0.4719489",
"0.47184548",
"0.47171277",
"0.47132766",
"0.47111654",
"0.47058296",
"0.47013432",
"0.47008806",
"0.47008806",
"0.4696681",
"0.46959668",
"0.46945995",
"0.46912125",
"0.46817344",
"0.4679724",
"0.46779644",
"0.46761453",
"0.4673733",
"0.46732998",
"0.4672345",
"0.46694532",
"0.46694532",
"0.46660572",
"0.46614504",
"0.4660657",
"0.46580923",
"0.46560895",
"0.4652861",
"0.46525028",
"0.46525028",
"0.46525028",
"0.46525028",
"0.46525028",
"0.46525028",
"0.46525028",
"0.46525028",
"0.46525028"
] | 0.0 | -1 |
/ / / / / / / / / / / 576 | public void setRange(Range range) { setRange(range, true, true); } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public double getWidth() {\n return this.size * 2.0; \n }",
"@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"void table(){\n fill(0);\n rect(width/2, height/2, 600, 350); // boarder\n fill(100, 0 ,0);\n rect(width/2, height/2, 550, 300); //Felt\n \n \n}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"@Override\n public int getWidth() {\n return 260;\n }",
"int getWidth() {return width;}",
"@Override\n\tpublic int getWidth() {\n\t\treturn 0;\n\t}",
"public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }",
"long getWidth();",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"public static void topHalf() {\n \t\n for( int i = 1; i <= SIZE; i++){\n for(int spaces = 1; spaces <= 3*SIZE - 3*i; spaces++) {\n System.out.print(\" \"); \n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"__/\");\n }\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n System.out.print(\"||\");\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"\\\\__\");\n }\n \n System.out.println();\n }\n \n System.out.print(\"|\");\n \n for(int i = 1; i <= 6 * SIZE; i++) {\n System.out.print(\"\\\"\");\n }\n \n System.out.println(\"|\");\n }",
"static void print_disk(int size){\n for(int i = 0; i < 5-size; i++)\n System.out.print(\" \");\n for(int i = 0; i < size; i++){\n if(i == size/2 && size%2 == 0)\n System.out.print(\"||--\");\n else if(i == size/2 && size%2 == 1)\n System.out.print(\"-||-\");\n else\n System.out.print(\"--\");\n }\n for(int i = 0; i < 5-size; i++)\n System.out.print(\" \");\n System.out.print(\"\\t\");\n }",
"public Integer getWidth(){return this.width;}",
"short getPaperSize();",
"public float getSizeX(){return sx;}",
"@DISPID(100) //= 0x64. The runtime will prefer the VTID if present\r\n @VTID(10)\r\n float width();",
"public int getLargeur() {\n return getWidth();\n }",
"public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }",
"@Override\n\tpublic float getWidth() {\n\t\treturn 0;\n\t}",
"@Override\n protected float getDownScaleFactor() {\n return (float) 5.0;\n }",
"@Override\n\tpublic int computeSize() {\n\t\treturn 36;\n\t}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"private void calc_screen_size(){\r\n \tscn_grid.setFont(scn_font);\r\n \tscn_context = scn_grid.getFontRenderContext();\r\n \t scn_layout = new TextLayout(\"X\",scn_font,scn_context);\r\n scn_char_rect = scn_layout.getBlackBoxBounds(0,1).getBounds();\r\n scn_char_height = (int) (scn_char_rect.getHeight()); // RPI 630 was Width in err, 6 to *1.5\r\n \tscn_char_base = scn_char_height/2+1;\r\n \tscn_char_height = scn_char_height + scn_char_base+2;\r\n scn_char_width = (int) (scn_char_rect.getWidth()); // RPI 630 was Height in err\r\n \tscn_height = scn_rows * scn_char_height; // RPI 408 + 5 \r\n \tscn_width = scn_cols * scn_char_width + 3; // RPI 408 + 5 \r\n \tscn_size = new Dimension(scn_width,scn_height);\r\n \tscn_image = new BufferedImage(scn_width,scn_height,BufferedImage.TYPE_INT_ARGB);\r\n \tscn_grid = scn_image.createGraphics();\r\n \tscn_grid.setFont(scn_font); \r\n scn_grid.setColor(scn_text_color);\r\n \t scn_context = scn_grid.getFontRenderContext();\r\n scn_grid.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\r\n RenderingHints.VALUE_ANTIALIAS_ON);\r\n }",
"public int getIconWidth()\r\n/* 50: */ {\r\n/* 51: 99 */ return SIZE;\r\n/* 52: */ }",
"int getCurrentSize();",
"@Override\n public int estimateSize() {\n return 8 + 8 + 1 + 32 + 64;\n }",
"public int grWidth() { return width; }",
"public int mo3354b() {\n return Math.max(0, getChildAt(0).getHeight() - ((getHeight() - getPaddingTop()) - getPaddingBottom()));\n }",
"public Image getSemiquaverDown();",
"public void settings() { size(1200, 800); }",
"double getNewWidth();",
"protected int GetMaxSpacing() {\n\t\n return Card.HEIGHT/3;\n }",
"public double getPerimiter(){return (2*height +2*width);}",
"@Override\n public int getSize() {\n return 64;\n }",
"public float sizeMultiplier();",
"public abstract double getBaseWidth();",
"public static int[] setup()\r\n\t{\r\n\t\tint[] size = new int[2];\r\n\t\tGraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();\r\n\t\tint width = gd.getDisplayMode().getWidth();\r\n\t\tint length = gd.getDisplayMode().getHeight();\r\n\t\tsize[0] = width;\r\n\t\tsize[1] = length;\r\n\t\treturn size;\r\n\t}",
"void mo33732Px();",
"public int getIconHeight()\r\n/* 55: */ {\r\n/* 56:100 */ return SIZE;\r\n/* 57: */ }",
"public int getWidth(){\n return width;\n }",
"public Image getSemiquaverUp();",
"@Override\n public int getSize() {\n return 1;\n }",
"int getHeight() {return height;}",
"public static int size_parent() {\n return (8 / 8);\n }",
"Integer getCurrentWidth();",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public int getWidth()\n {return width;}",
"public abstract int getSmallStackSizeWishInKb();",
"protected byte desiredWinScale() { return 9; }",
"public void init24()\n {\n\t \twidth= p[21]<<24 | p[20]<<16 | p[19]<<8 | p[18];\n\t\theight= p[25]<<24 | p[24]<<16 | p[23]<<8 | p[22];\n\t\tint extra=(width*3)%4;\n \tif(extra!=0)\n \tpadding=4-extra;\n int x,z=54;\n l=0;\n int j=0;\n for(int q=0;q<height;q++)\n {\n x=0;\n \t while(x<width)\n \t {\n \t b=p[z]&0xff;\n if(j<maxbinary)\n {\n if(binary[j]!=0)\n {\n p1[z]=p[z]&0xff|binary[j++];\n b1=p1[z]&0xff;\n }\n else\n {\n p1[z]=p[z]&0xff & (binary[j++]|0xfe);\n b1=p1[z]&0xff;\n }\n }\n else\n b1=p[z]&0xff;\n \tg=p[z+1]&0xff;\n if(j<maxbinary)\n {\n if(binary[j]!=0)\n {\n p1[z+1]=p[z+1]&0xff|binary[j++];\n g1=p[z+1]&0xff;\n }\n else\n {\n p1[z+1]=p[z+1]&0xff & (binary[j++]|0xfe);\n g1=p1[z+1]&0xff;\n }\n }\n else\n g1=p[z]&0xff;\n r=p[z+2]&0xff;\n if(j<maxbinary)\n {\n if(binary[j]!=0)\n {\n p1[z+2]=p[z+2]&0xfe|binary[j++];\n r1=p[z+2]&0xff;\n }\n else\n {\n p1[z+2]=p[z+2]&0xff & (binary[j++]|0xfe);\n r1=p1[z+2]&0xff;\n }\n }\n else\n r1=p[z]&0xff;\n\tz=z+3;\n\tpix[l]= 255<<24 | r<<16 | g<<8 | b;\n pix1[l]= 255<<24 | r1<<16 | g1<<8 | b1;\n\tl++;\n\tx++;\n\t}\nz=z+padding;\n}\nint k;\nx=0;\n\tfor(i=l-width;i>=0;i=i-width) //l=WIDTH * height\n\t{\n\t\tfor(k=0;k<width;k++)\n\t\t{\n\t\tpixels[x]=pix[i+k];\n pixels1[x]=pix[i+k];\n\t\tx++;\n\t\t}\n\t}\n }",
"private void render() {\n StringBuilder builder = new StringBuilder();\n builder.append(horizontalEdge).append(\"\\n\");\n for (int i = 0; i < this.height; i++) {\n builder.append(VERTICAL_CHAR);\n for (int j = 0; j < this.width; j++) {\n builder.append(pixels[i][j]);\n }\n builder.append(VERTICAL_CHAR);\n builder.append(\"\\n\");\n }\n builder.append(horizontalEdge);\n System.out.printf(builder.toString());\n }",
"@Override\n public int getHeight() {\n return 320;\n }",
"public abstract int getMediumStackSizeWishInKb();",
"void calculateChevronTrim() {\n ToolBar tb = new ToolBar( parent, SWT.FLAT );\n ToolItem ti = new ToolItem( tb, SWT.PUSH );\n // Image image = new Image (display, 1, 1);\n // ti.setImage (image);\n Point size = tb.computeSize( SWT.DEFAULT, SWT.DEFAULT );\n size = parent.fixPoint( size.x, size.y );\n CHEVRON_HORIZONTAL_TRIM = size.x - 1;\n CHEVRON_VERTICAL_TRIM = size.y - 1;\n tb.dispose();\n ti.dispose();\n // image.dispose ();\n }",
"protected int getElementSize () {\n return 1;\n }",
"@Override\r\n protected int sizeOf(String key, Bitmap b) {\n return b.getHeight() * b.getWidth() * 4;\r\n }",
"private void m76768f() {\n m76770h();\n m76769g();\n }",
"public float getSizeY(){return sy;}",
"public static String m576f() {\r\n long j = 0;\r\n try {\r\n StatFs statFs = new StatFs(Environment.getDataDirectory().getPath());\r\n j = ((long) statFs.getBlockCount()) * ((long) statFs.getBlockSize());\r\n } catch (Exception e) {\r\n }\r\n return String.valueOf(j);\r\n }",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public static int totalSize_data() {\n return (480 / 8);\n }",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int width();",
"public int getIconWidth()\r\n/* 154: */ {\r\n/* 155:194 */ return SIZE;\r\n/* 156: */ }",
"@Override\n\tpublic void enlarge() {\n\t\t\n\t}",
"protected int GetMaxSpacing() {\n return Card.HEIGHT/3;\n }",
"protected int GetMaxSpacing() {\n return Card.HEIGHT/3;\n }",
"protected int GetMaxSpacing() {\n return Card.HEIGHT/3;\n }",
"void previewSized();",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"public void renderFlanges(int cons, int tex)\r\n/* 108: */ {\r\n/* 109:106 */ this.context.setTex(tex);\r\n/* 110:108 */ if ((cons & 0x1) > 0)\r\n/* 111: */ {\r\n/* 112:109 */ this.context.setTexFlags(0);\r\n/* 113:110 */ this.context.renderBox(63, 0.25D, 0.0D, 0.25D, 0.75D, 0.125D, 0.75D);\r\n/* 114: */ }\r\n/* 115:112 */ if ((cons & 0x2) > 0)\r\n/* 116: */ {\r\n/* 117:113 */ this.context.setTexFlags(112320);\r\n/* 118:114 */ this.context.renderBox(63, 0.25D, 0.875D, 0.25D, 0.75D, 1.0D, 0.75D);\r\n/* 119: */ }\r\n/* 120:116 */ if ((cons & 0x4) > 0)\r\n/* 121: */ {\r\n/* 122:117 */ this.context.setTexFlags(217134);\r\n/* 123:118 */ this.context.renderBox(63, 0.25D, 0.25D, 0.0D, 0.75D, 0.75D, 0.125D);\r\n/* 124: */ }\r\n/* 125:120 */ if ((cons & 0x8) > 0)\r\n/* 126: */ {\r\n/* 127:121 */ this.context.setTexFlags(188469);\r\n/* 128:122 */ this.context.renderBox(63, 0.25D, 0.25D, 0.875D, 0.75D, 0.75D, 1.0D);\r\n/* 129: */ }\r\n/* 130:124 */ if ((cons & 0x10) > 0)\r\n/* 131: */ {\r\n/* 132:125 */ this.context.setTexFlags(2944);\r\n/* 133:126 */ this.context.renderBox(63, 0.0D, 0.25D, 0.25D, 0.125D, 0.75D, 0.75D);\r\n/* 134: */ }\r\n/* 135:128 */ if ((cons & 0x20) > 0)\r\n/* 136: */ {\r\n/* 137:129 */ this.context.setTexFlags(3419);\r\n/* 138:130 */ this.context.renderBox(63, 0.875D, 0.25D, 0.25D, 1.0D, 0.75D, 0.75D);\r\n/* 139: */ }\r\n/* 140: */ }",
"public double width() { return _width; }",
"public int getWidth() { return width; }",
"public int getWidth() { return width; }",
"default int getSquareSize() {\n return java.awt.Toolkit.getDefaultToolkit().getScreenSize().width / 20;\n }",
"public int getTileWidth() {\n return 8;\n }",
"@Override\n\tpublic int[] getImageScaleDrawing() {\n\t\treturn new int[] {\n\t\t\t\t80, 80\n\t\t};\n\t}",
"private void drawHeart2 (float sx, float sy, float sz, Appearance[] app)\n {\n\tfloat x, y, z, r;\n \n BranchGroup tBG = new BranchGroup();\n\ttBG.setCapability (BranchGroup.ALLOW_DETACH);\n\n System.out.println(\"Aqui\");\n \n\tx = sx+0f; y = sy+0.04f; z = sz+0f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[0]);\n\t//tBG.addChild (makeText (new Vector3d (sx+0,sy+1.1,sz+0), \"AP\"));\n\n\tx = sx-0.2f; y = sy-0.1f; z = sz+0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[1]);\n\t//tBG.addChild (makeText (new Vector3d (sx-2,sy+0,sz+1.5), \"IS_\"));\n\n\tx = sx+0.2f; y = sy-0.1f; z = sz+0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[2]);\n\t//tBG.addChild (makeText (new Vector3d (sx+2,sy+0,sz+1.5), \"IL\"));\n\n\tx = sx-0.32f; y = sy-0.1f; z = sz+0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[3]);\n\t//tBG.addChild (makeText (new Vector3d (sx-2.5,sy+0,sz+0.5), \"SI\"));\n\n\tx = sx+0.32f; y = sy-0.1f; z = sz+0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[4]);\n\t//tBG.addChild (makeText (new Vector3d (sx+2.5,sy+0,sz+0.5), \"LI\"));\n\n\tx = sx-0.32f; y = sy-0.1f; z = sz-0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[5]);\n\t//tBG.addChild (makeText (new Vector3d (sx-2.5,sy+0,sz-0.5), \"SA\"));\n\n\tx = sx+0.32f; y = sy-0.1f; z = sz-0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[6]);\n\t//tBG.addChild (makeText (new Vector3d (sx+2.5,sy+0,sz-0.5), \"LA\"));\n\n\tx = sx-0.2f; y = sy-0.1f; z = sz-0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[7]);\n\t//tBG.addChild (makeText (new Vector3d (sx-2,sy+0,sz-1.5), \"AS_\"));\n\n\tx = sx+0.2f; y = sy-0.1f; z = sz-0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[8]);\n\t//tBG.addChild (makeText (new Vector3d (sx+2,sy+0,sz-1.5), \"AL\"));\n\n\tsceneBG.addChild (tBG);\n }",
"private void basicSize(){\n setSize(375,400);\n }",
"private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }",
"double volume(){\n return width*height*depth;\n }",
"public int width();"
] | [
"0.5755739",
"0.56758964",
"0.562419",
"0.550157",
"0.5461418",
"0.54506093",
"0.54449356",
"0.53924465",
"0.53888035",
"0.5368401",
"0.5348288",
"0.53212243",
"0.5305525",
"0.52999717",
"0.52993613",
"0.52940047",
"0.5293051",
"0.5253695",
"0.5250912",
"0.52447784",
"0.52307135",
"0.5228645",
"0.5224639",
"0.5223713",
"0.52182794",
"0.52132726",
"0.5210226",
"0.5209794",
"0.5206497",
"0.52007043",
"0.5199812",
"0.519979",
"0.5197881",
"0.51913553",
"0.51783407",
"0.51775366",
"0.5175106",
"0.51585084",
"0.5155346",
"0.5148712",
"0.5146873",
"0.5145411",
"0.5140926",
"0.5139021",
"0.51387817",
"0.51288545",
"0.51237863",
"0.51174927",
"0.51119214",
"0.5108253",
"0.51032704",
"0.5092931",
"0.50889665",
"0.50865066",
"0.50863326",
"0.50797635",
"0.507906",
"0.5071762",
"0.5069195",
"0.5064545",
"0.5063309",
"0.50583786",
"0.50579864",
"0.5040588",
"0.50405204",
"0.50405204",
"0.50405204",
"0.50405204",
"0.50405204",
"0.50405204",
"0.50405204",
"0.50405204",
"0.50405204",
"0.50405204",
"0.50405204",
"0.50405204",
"0.50405204",
"0.50405204",
"0.50405204",
"0.50405204",
"0.50405204",
"0.5039772",
"0.5039663",
"0.50390965",
"0.50385016",
"0.50385016",
"0.50385016",
"0.5037329",
"0.50368214",
"0.5034128",
"0.5033554",
"0.5025683",
"0.5025683",
"0.5021923",
"0.5013732",
"0.5011888",
"0.5006931",
"0.50066215",
"0.49976394",
"0.49974224",
"0.49973086"
] | 0.0 | -1 |
/ / / / / / / / / / / / / / / | public void setRange(Range range, boolean turnOffAutoRange, boolean notify) {
/* */ DateRange dateRange;
/* 593 */ ParamChecks.nullNotPermitted(range, "range");
/* */
/* */
/* 596 */ if (!(range instanceof DateRange)) {
/* 597 */ dateRange = new DateRange(range);
/* */ }
/* 599 */ super.setRange(dateRange, turnOffAutoRange, notify);
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"double passer();",
"int getWidth() {return width;}",
"public Integer getWidth(){return this.width;}",
"public void divide() {\n\t\t\n\t}",
"private int rightChild(int i){return 2*i+2;}",
"public abstract void bepaalGrootte();",
"int width();",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void getTile_B8();",
"static int getNumPatterns() { return 64; }",
"public void gored() {\n\t\t\n\t}",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public int getEdgeCount() \n {\n return 3;\n }",
"public String ring();",
"int getTribeSize();",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public String toString(){ return \"DIV\";}",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"long getWidth();",
"void mo33732Px();",
"public double getWidth() { return _width<0? -_width : _width; }",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"double getNewWidth();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public int generateRoshambo(){\n ;]\n\n }",
"double seBlesser();",
"public int my_leaf_count();",
"public static int size_parent() {\n return (8 / 8);\n }",
"public abstract int getSpotsNeeded();",
"public abstract String division();",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"@Override\n public void bfs() {\n\n }",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"long getMid();",
"long getMid();",
"int getSpriteArraySize();",
"public void leerPlanesDietas();",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"int expand();",
"public int getWidth(){\n return width;\n }",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"public void skystonePos4() {\n }",
"int getSize ();",
"public static int size_parentId() {\n return (16 / 8);\n }",
"public abstract double getBaseWidth();",
"public int getTakeSpace() {\n return 0;\n }",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"public String getRing();",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"Operations operations();",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"public int getWidth()\n {return width;}",
"public double getPerimiter(){return (2*height +2*width);}",
"double volume(){\n return width*height*depth;\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"int depth();",
"int depth();",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"String directsTo();",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"public String getRingback();",
"@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }",
"Parallelogram(){\n length = width = height = 0;\n }",
"public static int offset_parent() {\n return (40 / 8);\n }",
"public int width();",
"protected int parent(int i) { return (i - 1) / 2; }",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"public double width() { return _width; }",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();"
] | [
"0.54599804",
"0.5361702",
"0.50828",
"0.50729156",
"0.5065769",
"0.50643295",
"0.50565934",
"0.5055456",
"0.5028421",
"0.50179166",
"0.50039816",
"0.499804",
"0.49814743",
"0.49544477",
"0.49448815",
"0.49297482",
"0.49270833",
"0.49128833",
"0.49060607",
"0.49048623",
"0.49025092",
"0.48927355",
"0.48850867",
"0.48793495",
"0.4873459",
"0.48655418",
"0.48652473",
"0.48625624",
"0.48600852",
"0.48540562",
"0.4852789",
"0.48380706",
"0.4837795",
"0.48361942",
"0.48162308",
"0.48144838",
"0.48133746",
"0.4809166",
"0.48090833",
"0.4805904",
"0.47893128",
"0.47792563",
"0.477846",
"0.47676873",
"0.47675538",
"0.47675538",
"0.47663707",
"0.4764925",
"0.47641346",
"0.47622687",
"0.47604173",
"0.47586957",
"0.4758448",
"0.47558358",
"0.47437528",
"0.4740404",
"0.47399476",
"0.47302055",
"0.47294307",
"0.4727397",
"0.47248995",
"0.47240293",
"0.47203907",
"0.4720172",
"0.47157845",
"0.47106573",
"0.47105056",
"0.47027174",
"0.47006288",
"0.46993494",
"0.4694658",
"0.4694658",
"0.46940482",
"0.4689993",
"0.46848714",
"0.4680495",
"0.4680448",
"0.46780542",
"0.46775758",
"0.467456",
"0.46729854",
"0.46721813",
"0.4664212",
"0.4662582",
"0.4658465",
"0.465841",
"0.46579123",
"0.46579123",
"0.46579123",
"0.46579123",
"0.46579123",
"0.46579123",
"0.46579123",
"0.46579123",
"0.46579123",
"0.46579123",
"0.46579123",
"0.46579123",
"0.46579123",
"0.46579123",
"0.46579123"
] | 0.0 | -1 |
/ / / / / / / / / | public void setRange(Date lower, Date upper) {
/* 610 */ if (lower.getTime() >= upper.getTime()) {
/* 611 */ throw new IllegalArgumentException("Requires 'lower' < 'upper'.");
/* */ }
/* 613 */ setRange(new DateRange(lower, upper));
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"public void divide() {\n\t\t\n\t}",
"private int rightChild(int i){return 2*i+2;}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public abstract void bepaalGrootte();",
"double passer();",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public String ring();",
"int getWidth() {return width;}",
"public void gored() {\n\t\t\n\t}",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public String toString(){ return \"DIV\";}",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void getTile_B8();",
"public Integer getWidth(){return this.width;}",
"public abstract String division();",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"int width();",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"@Override\n public void bfs() {\n\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"double volume(){\n return width*height*depth;\n }",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"public int generateRoshambo(){\n ;]\n\n }",
"private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"Operations operations();",
"public int getEdgeCount() \n {\n return 3;\n }",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"double getNewWidth();",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"long getWidth();",
"public void SubRect(){\n\t\n}",
"void mo33732Px();",
"public double getPerimiter(){return (2*height +2*width);}",
"static void pyramid(){\n\t}",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"public int my_leaf_count();",
"public void skystonePos4() {\n }",
"void walk() {\n\t\t\n\t}",
"public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }",
"double seBlesser();",
"private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}",
"void sharpen();",
"void sharpen();",
"Parallelogram(){\n length = width = height = 0;\n }",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}",
"public String getRing();",
"public void leerPlanesDietas();",
"static int getNumPatterns() { return 64; }",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}",
"public int getWidth(){\n return width;\n }",
"@Override\n\tpublic void walk() {\n\t\t\n\t}",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"double getPerimeter(){\n return 2*height+width;\n }",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"protected int parent(int i) { return (i - 1) / 2; }",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public abstract double getBaseWidth();",
"public void stg() {\n\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}",
"void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }",
"public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }",
"int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}",
"int expand();",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}",
"public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"@Override\n protected void paint2d(Graphics2D g) {\n \n }",
"public int upright();",
"int getTribeSize();",
"int getWidth1();",
"int getR();",
"String directsTo();",
"public int getWidth()\n {return width;}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"int depth();",
"int depth();",
"public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }",
"public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}",
"public int getDireccion(Pixel p) {\r\n\t\tif (x == p.x && y < p.y)\r\n\t\t\treturn DIR_N;\r\n\t\tif (x > p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x == p.x && y > p.y)\r\n\t\t\treturn DIR_S;\r\n\t\tif (x > p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x > p.x && y == p.y)\r\n\t\t\treturn DIR_E;\r\n\t\tif (x < p.x && y == p.y)\r\n\t\t\treturn DIR_O;\r\n\t\treturn -1;\r\n\t}",
"double getWidth();"
] | [
"0.5532527",
"0.54391015",
"0.5251596",
"0.52418447",
"0.5150535",
"0.512878",
"0.50683415",
"0.5066834",
"0.50221753",
"0.50129646",
"0.50077325",
"0.50051177",
"0.49997202",
"0.499538",
"0.49736512",
"0.49707893",
"0.49684572",
"0.49598044",
"0.49381968",
"0.49364173",
"0.49284318",
"0.48852703",
"0.4875062",
"0.48727193",
"0.4851693",
"0.48446384",
"0.48325908",
"0.48282844",
"0.48261568",
"0.48090968",
"0.48057693",
"0.48047045",
"0.48043686",
"0.48037383",
"0.4799067",
"0.4796126",
"0.4795011",
"0.47925386",
"0.47889647",
"0.4784086",
"0.47752148",
"0.47746503",
"0.47734392",
"0.4767767",
"0.47666863",
"0.47617707",
"0.47546872",
"0.47541285",
"0.47520202",
"0.47481504",
"0.4742862",
"0.47424123",
"0.47418612",
"0.4740628",
"0.4740628",
"0.47359604",
"0.4735926",
"0.47354448",
"0.473334",
"0.47322544",
"0.47315875",
"0.47303522",
"0.47300366",
"0.4729194",
"0.47287259",
"0.47265247",
"0.47252014",
"0.47247088",
"0.47164094",
"0.4705852",
"0.47038704",
"0.47033063",
"0.470207",
"0.46977833",
"0.46977744",
"0.4688691",
"0.4688624",
"0.4688624",
"0.46859193",
"0.46792743",
"0.4674773",
"0.46735224",
"0.4671809",
"0.46690786",
"0.4666248",
"0.46633562",
"0.46632627",
"0.46615568",
"0.4659301",
"0.4658479",
"0.46570495",
"0.4650401",
"0.46498072",
"0.46485025",
"0.4647073",
"0.46437675",
"0.46437675",
"0.46425405",
"0.46415186",
"0.46407634",
"0.46398857"
] | 0.0 | -1 |
/ / / / / / / / / / | public void setRange(double lower, double upper) {
/* 625 */ if (lower >= upper) {
/* 626 */ throw new IllegalArgumentException("Requires 'lower' < 'upper'.");
/* */ }
/* 628 */ setRange(new DateRange(lower, upper));
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"public abstract void bepaalGrootte();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"double passer();",
"int getWidth() {return width;}",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"public String ring();",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public Integer getWidth(){return this.width;}",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void gored() {\n\t\t\n\t}",
"public void getTile_B8();",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"public String toString(){ return \"DIV\";}",
"int width();",
"public abstract String division();",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"@Override\n public void bfs() {\n\n }",
"public int getEdgeCount() \n {\n return 3;\n }",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"@Override\npublic void processDirection() {\n\t\n}",
"double getNewWidth();",
"long getWidth();",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"public int generateRoshambo(){\n ;]\n\n }",
"double volume(){\n return width*height*depth;\n }",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"public int my_leaf_count();",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"Operations operations();",
"static int getNumPatterns() { return 64; }",
"void mo33732Px();",
"public double getPerimiter(){return (2*height +2*width);}",
"double seBlesser();",
"public void SubRect(){\n\t\n}",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"public void skystonePos4() {\n }",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"public int getWidth(){\n return width;\n }",
"static void pyramid(){\n\t}",
"private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}",
"public void leerPlanesDietas();",
"public String getRing();",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"protected int parent(int i) { return (i - 1) / 2; }",
"void walk() {\n\t\t\n\t}",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"int getTribeSize();",
"@Override\n\tpublic void walk() {\n\t\t\n\t}",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"Parallelogram(){\n length = width = height = 0;\n }",
"public abstract double getBaseWidth();",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }",
"public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }",
"public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}",
"double getPerimeter(){\n return 2*height+width;\n }",
"void sharpen();",
"void sharpen();",
"private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"int expand();",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}",
"public static int size_parent() {\n return (8 / 8);\n }",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"public int getWidth()\n {return width;}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}",
"String directsTo();",
"int depth();",
"int depth();",
"int getWidth1();",
"public int upright();",
"public abstract int getSpotsNeeded();",
"public void stg() {\n\n\t}",
"int getR();",
"int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();"
] | [
"0.5542132",
"0.5447128",
"0.5228179",
"0.5214033",
"0.5111349",
"0.5096622",
"0.50625235",
"0.50373936",
"0.50340563",
"0.5012307",
"0.5004564",
"0.50032336",
"0.49990067",
"0.49965036",
"0.49912918",
"0.4987793",
"0.49815953",
"0.49780196",
"0.4968169",
"0.49576157",
"0.491673",
"0.4904468",
"0.48956203",
"0.48818448",
"0.48603067",
"0.48477066",
"0.4838461",
"0.4828261",
"0.48225915",
"0.4821747",
"0.48202",
"0.4819123",
"0.4811463",
"0.48112586",
"0.48070896",
"0.48048383",
"0.4803643",
"0.47940737",
"0.4787235",
"0.4783877",
"0.47823367",
"0.47724506",
"0.47637272",
"0.47621053",
"0.47603345",
"0.47599968",
"0.47585115",
"0.475558",
"0.47504306",
"0.4749799",
"0.4749368",
"0.47491407",
"0.4747878",
"0.47467119",
"0.47431904",
"0.47389767",
"0.4730798",
"0.4729816",
"0.47277254",
"0.4727426",
"0.47259334",
"0.47255015",
"0.4720803",
"0.4719892",
"0.4719489",
"0.47184548",
"0.47171277",
"0.47132766",
"0.47111654",
"0.47058296",
"0.47013432",
"0.47008806",
"0.47008806",
"0.4696681",
"0.46959668",
"0.46945995",
"0.46912125",
"0.46817344",
"0.4679724",
"0.46779644",
"0.46761453",
"0.4673733",
"0.46732998",
"0.4672345",
"0.46694532",
"0.46694532",
"0.46660572",
"0.46614504",
"0.4660657",
"0.46580923",
"0.46560895",
"0.4652861",
"0.46525028",
"0.46525028",
"0.46525028",
"0.46525028",
"0.46525028",
"0.46525028",
"0.46525028",
"0.46525028",
"0.46525028"
] | 0.0 | -1 |
/ / / / / / / / / / | public Date getMinimumDate() {
/* */ Date result;
/* 641 */ Range range = getRange();
/* 642 */ if (range instanceof DateRange) {
/* 643 */ DateRange r = (DateRange)range;
/* 644 */ result = r.getLowerDate();
/* */ } else {
/* */
/* 647 */ result = new Date((long)range.getLowerBound());
/* */ }
/* 649 */ return result;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"public abstract void bepaalGrootte();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"double passer();",
"int getWidth() {return width;}",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"public String ring();",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public Integer getWidth(){return this.width;}",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void gored() {\n\t\t\n\t}",
"public void getTile_B8();",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"public String toString(){ return \"DIV\";}",
"int width();",
"public abstract String division();",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"@Override\n public void bfs() {\n\n }",
"public int getEdgeCount() \n {\n return 3;\n }",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"@Override\npublic void processDirection() {\n\t\n}",
"double getNewWidth();",
"long getWidth();",
"public int generateRoshambo(){\n ;]\n\n }",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"double volume(){\n return width*height*depth;\n }",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"public int my_leaf_count();",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"Operations operations();",
"static int getNumPatterns() { return 64; }",
"void mo33732Px();",
"public double getPerimiter(){return (2*height +2*width);}",
"double seBlesser();",
"public void SubRect(){\n\t\n}",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"public void skystonePos4() {\n }",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"public int getWidth(){\n return width;\n }",
"static void pyramid(){\n\t}",
"public void leerPlanesDietas();",
"private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}",
"public String getRing();",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"void walk() {\n\t\t\n\t}",
"protected int parent(int i) { return (i - 1) / 2; }",
"int getTribeSize();",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"@Override\n\tpublic void walk() {\n\t\t\n\t}",
"Parallelogram(){\n length = width = height = 0;\n }",
"public abstract double getBaseWidth();",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }",
"public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }",
"public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}",
"void sharpen();",
"void sharpen();",
"double getPerimeter(){\n return 2*height+width;\n }",
"private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"int expand();",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"public static int size_parent() {\n return (8 / 8);\n }",
"public int getWidth()\n {return width;}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}",
"String directsTo();",
"int depth();",
"int depth();",
"int getWidth1();",
"public abstract int getSpotsNeeded();",
"public int upright();",
"public void stg() {\n\n\t}",
"int getR();",
"int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}",
"public String getRingback();",
"double getWidth();",
"double getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();"
] | [
"0.5540896",
"0.5446543",
"0.5227331",
"0.52141076",
"0.5111389",
"0.50963986",
"0.50654864",
"0.5038032",
"0.50336593",
"0.501189",
"0.50033337",
"0.5002645",
"0.4999724",
"0.4997505",
"0.49938273",
"0.4988672",
"0.4982446",
"0.49785286",
"0.4967535",
"0.49578318",
"0.4915642",
"0.49043542",
"0.4896837",
"0.48817068",
"0.48615584",
"0.48489416",
"0.4838888",
"0.48292333",
"0.48239383",
"0.48229367",
"0.48212478",
"0.48193154",
"0.48124096",
"0.48111546",
"0.4806745",
"0.4804178",
"0.48025957",
"0.47942734",
"0.4787015",
"0.47851548",
"0.47835702",
"0.47725245",
"0.47664967",
"0.476185",
"0.4760751",
"0.47598377",
"0.4759025",
"0.4757917",
"0.47506076",
"0.47504088",
"0.47497043",
"0.47486544",
"0.4747894",
"0.4746228",
"0.4741946",
"0.47376034",
"0.47327974",
"0.47300422",
"0.4727591",
"0.47272107",
"0.47263286",
"0.47261053",
"0.47214398",
"0.47212386",
"0.47205597",
"0.47184741",
"0.47169027",
"0.47127956",
"0.47109538",
"0.47052673",
"0.47015747",
"0.47015747",
"0.47005445",
"0.46963036",
"0.46961927",
"0.46945545",
"0.46940103",
"0.46804753",
"0.4678816",
"0.46784258",
"0.4676913",
"0.46759227",
"0.46728146",
"0.46719387",
"0.46686554",
"0.46686554",
"0.4666156",
"0.46614605",
"0.46611053",
"0.466004",
"0.46565068",
"0.46531367",
"0.4652937",
"0.4652573",
"0.4652573",
"0.46524948",
"0.46524948",
"0.46524948",
"0.46524948",
"0.46524948",
"0.46524948"
] | 0.0 | -1 |
/ / / / / / / / / / / / / / | public void setMinimumDate(Date date) {
/* 665 */ ParamChecks.nullNotPermitted(date, "date");
/* */
/* 667 */ Date maxDate = getMaximumDate();
/* 668 */ long maxMillis = maxDate.getTime();
/* 669 */ long newMinMillis = date.getTime();
/* 670 */ if (maxMillis <= newMinMillis) {
/* 671 */ Date oldMin = getMinimumDate();
/* 672 */ long length = maxMillis - oldMin.getTime();
/* 673 */ maxDate = new Date(newMinMillis + length);
/* */ }
/* 675 */ setRange(new DateRange(date, maxDate), true, false);
/* 676 */ fireChangeEvent();
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"int getWidth() {return width;}",
"double passer();",
"public Integer getWidth(){return this.width;}",
"public abstract void bepaalGrootte();",
"int width();",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void getTile_B8();",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"public void gored() {\n\t\t\n\t}",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"static int getNumPatterns() { return 64; }",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"public String ring();",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public String toString(){ return \"DIV\";}",
"public int getEdgeCount() \n {\n return 3;\n }",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"int getTribeSize();",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"long getWidth();",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"double getNewWidth();",
"void mo33732Px();",
"public int my_leaf_count();",
"public abstract String division();",
"public int generateRoshambo(){\n ;]\n\n }",
"double seBlesser();",
"@Override\n public void bfs() {\n\n }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"public static int size_parent() {\n return (8 / 8);\n }",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"public abstract int getSpotsNeeded();",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"@Override\npublic void processDirection() {\n\t\n}",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public void leerPlanesDietas();",
"public int getWidth(){\n return width;\n }",
"long getMid();",
"long getMid();",
"int expand();",
"int getSpriteArraySize();",
"public void skystonePos4() {\n }",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"public abstract double getBaseWidth();",
"public String getRing();",
"Operations operations();",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"double volume(){\n return width*height*depth;\n }",
"public double getPerimiter(){return (2*height +2*width);}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"public int getWidth()\n {return width;}",
"public static int size_parentId() {\n return (16 / 8);\n }",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"int getSize ();",
"public int getTakeSpace() {\n return 0;\n }",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"int depth();",
"int depth();",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"protected int parent(int i) { return (i - 1) / 2; }",
"@Override\n\tprotected void interr() {\n\t}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"String directsTo();",
"Parallelogram(){\n length = width = height = 0;\n }",
"public String getRingback();",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"static void pyramid(){\n\t}",
"@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}"
] | [
"0.5488944",
"0.539108",
"0.5100269",
"0.50899094",
"0.5069534",
"0.50693107",
"0.5066066",
"0.5061679",
"0.50442266",
"0.5015036",
"0.5014165",
"0.5003645",
"0.49693072",
"0.49573815",
"0.49514338",
"0.49499622",
"0.49293876",
"0.4927479",
"0.4927194",
"0.4917197",
"0.4910142",
"0.49028116",
"0.49017558",
"0.48824358",
"0.48823863",
"0.48808914",
"0.48726714",
"0.48720384",
"0.48627836",
"0.4855107",
"0.4846415",
"0.4840881",
"0.48384443",
"0.48339868",
"0.4824593",
"0.48169047",
"0.48134097",
"0.48049474",
"0.48004088",
"0.47979838",
"0.47910494",
"0.47845936",
"0.47841045",
"0.47744447",
"0.47726467",
"0.4771947",
"0.47681993",
"0.47658527",
"0.47648957",
"0.4755676",
"0.4755676",
"0.4753695",
"0.4753143",
"0.4752926",
"0.4749071",
"0.47434685",
"0.47425613",
"0.47384033",
"0.47334346",
"0.47321105",
"0.4731059",
"0.4729468",
"0.4726481",
"0.47170335",
"0.4715351",
"0.4713396",
"0.47059113",
"0.4705429",
"0.4704641",
"0.4699736",
"0.4699736",
"0.4697979",
"0.46902624",
"0.46879697",
"0.46878612",
"0.46878",
"0.46871263",
"0.46857345",
"0.4682048",
"0.46810246",
"0.46779624",
"0.46697363",
"0.46669462",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46661317",
"0.46645147"
] | 0.0 | -1 |
/ / / / / / / / / / | public Date getMaximumDate() {
/* */ Date result;
/* 689 */ Range range = getRange();
/* 690 */ if (range instanceof DateRange) {
/* 691 */ DateRange r = (DateRange)range;
/* 692 */ result = r.getUpperDate();
/* */ } else {
/* */
/* 695 */ result = new Date((long)range.getUpperBound());
/* */ }
/* 697 */ return result;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"public abstract void bepaalGrootte();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"double passer();",
"int getWidth() {return width;}",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"public String ring();",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public Integer getWidth(){return this.width;}",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void gored() {\n\t\t\n\t}",
"public void getTile_B8();",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"public String toString(){ return \"DIV\";}",
"int width();",
"public abstract String division();",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"@Override\n public void bfs() {\n\n }",
"public int getEdgeCount() \n {\n return 3;\n }",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"@Override\npublic void processDirection() {\n\t\n}",
"double getNewWidth();",
"long getWidth();",
"public int generateRoshambo(){\n ;]\n\n }",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"double volume(){\n return width*height*depth;\n }",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"public int my_leaf_count();",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"Operations operations();",
"static int getNumPatterns() { return 64; }",
"void mo33732Px();",
"public double getPerimiter(){return (2*height +2*width);}",
"double seBlesser();",
"public void SubRect(){\n\t\n}",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"public void skystonePos4() {\n }",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"public int getWidth(){\n return width;\n }",
"static void pyramid(){\n\t}",
"public void leerPlanesDietas();",
"private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}",
"public String getRing();",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"void walk() {\n\t\t\n\t}",
"protected int parent(int i) { return (i - 1) / 2; }",
"int getTribeSize();",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"@Override\n\tpublic void walk() {\n\t\t\n\t}",
"Parallelogram(){\n length = width = height = 0;\n }",
"public abstract double getBaseWidth();",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }",
"public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }",
"public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}",
"void sharpen();",
"void sharpen();",
"double getPerimeter(){\n return 2*height+width;\n }",
"private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"int expand();",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"public static int size_parent() {\n return (8 / 8);\n }",
"public int getWidth()\n {return width;}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}",
"String directsTo();",
"int depth();",
"int depth();",
"int getWidth1();",
"public abstract int getSpotsNeeded();",
"public int upright();",
"public void stg() {\n\n\t}",
"int getR();",
"int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}",
"public String getRingback();",
"double getWidth();",
"double getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();"
] | [
"0.5540896",
"0.5446543",
"0.5227331",
"0.52141076",
"0.5111389",
"0.50963986",
"0.50654864",
"0.5038032",
"0.50336593",
"0.501189",
"0.50033337",
"0.5002645",
"0.4999724",
"0.4997505",
"0.49938273",
"0.4988672",
"0.4982446",
"0.49785286",
"0.4967535",
"0.49578318",
"0.4915642",
"0.49043542",
"0.4896837",
"0.48817068",
"0.48615584",
"0.48489416",
"0.4838888",
"0.48292333",
"0.48239383",
"0.48229367",
"0.48212478",
"0.48193154",
"0.48124096",
"0.48111546",
"0.4806745",
"0.4804178",
"0.48025957",
"0.47942734",
"0.4787015",
"0.47851548",
"0.47835702",
"0.47725245",
"0.47664967",
"0.476185",
"0.4760751",
"0.47598377",
"0.4759025",
"0.4757917",
"0.47506076",
"0.47504088",
"0.47497043",
"0.47486544",
"0.4747894",
"0.4746228",
"0.4741946",
"0.47376034",
"0.47327974",
"0.47300422",
"0.4727591",
"0.47272107",
"0.47263286",
"0.47261053",
"0.47214398",
"0.47212386",
"0.47205597",
"0.47184741",
"0.47169027",
"0.47127956",
"0.47109538",
"0.47052673",
"0.47015747",
"0.47015747",
"0.47005445",
"0.46963036",
"0.46961927",
"0.46945545",
"0.46940103",
"0.46804753",
"0.4678816",
"0.46784258",
"0.4676913",
"0.46759227",
"0.46728146",
"0.46719387",
"0.46686554",
"0.46686554",
"0.4666156",
"0.46614605",
"0.46611053",
"0.466004",
"0.46565068",
"0.46531367",
"0.4652937",
"0.4652573",
"0.4652573",
"0.46524948",
"0.46524948",
"0.46524948",
"0.46524948",
"0.46524948",
"0.46524948"
] | 0.0 | -1 |
/ / / / / / / / / / / / / / | public void setMaximumDate(Date maximumDate) {
/* 713 */ ParamChecks.nullNotPermitted(maximumDate, "maximumDate");
/* */
/* 715 */ Date minDate = getMinimumDate();
/* 716 */ long minMillis = minDate.getTime();
/* 717 */ long newMaxMillis = maximumDate.getTime();
/* 718 */ if (minMillis >= newMaxMillis) {
/* 719 */ Date oldMax = getMaximumDate();
/* 720 */ long length = oldMax.getTime() - minMillis;
/* 721 */ minDate = new Date(newMaxMillis - length);
/* */ }
/* 723 */ setRange(new DateRange(minDate, maximumDate), true, false);
/* 724 */ fireChangeEvent();
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"int getWidth() {return width;}",
"double passer();",
"public Integer getWidth(){return this.width;}",
"public abstract void bepaalGrootte();",
"int width();",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void getTile_B8();",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"public void gored() {\n\t\t\n\t}",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"static int getNumPatterns() { return 64; }",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public String ring();",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public String toString(){ return \"DIV\";}",
"public int getEdgeCount() \n {\n return 3;\n }",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"int getTribeSize();",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"long getWidth();",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"double getNewWidth();",
"void mo33732Px();",
"public int my_leaf_count();",
"public abstract String division();",
"public int generateRoshambo(){\n ;]\n\n }",
"double seBlesser();",
"@Override\n public void bfs() {\n\n }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"public static int size_parent() {\n return (8 / 8);\n }",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"public abstract int getSpotsNeeded();",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"@Override\npublic void processDirection() {\n\t\n}",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public void leerPlanesDietas();",
"public int getWidth(){\n return width;\n }",
"long getMid();",
"long getMid();",
"int expand();",
"int getSpriteArraySize();",
"public void skystonePos4() {\n }",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"public abstract double getBaseWidth();",
"public String getRing();",
"Operations operations();",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"double volume(){\n return width*height*depth;\n }",
"public double getPerimiter(){return (2*height +2*width);}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"public int getWidth()\n {return width;}",
"public static int size_parentId() {\n return (16 / 8);\n }",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"int getSize ();",
"public int getTakeSpace() {\n return 0;\n }",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"int depth();",
"int depth();",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"protected int parent(int i) { return (i - 1) / 2; }",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"String directsTo();",
"Parallelogram(){\n length = width = height = 0;\n }",
"public String getRingback();",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"static void pyramid(){\n\t}",
"@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}"
] | [
"0.54896694",
"0.5391855",
"0.50999725",
"0.5089729",
"0.5071565",
"0.50698775",
"0.5066746",
"0.5062716",
"0.5045067",
"0.5015888",
"0.50144786",
"0.50042266",
"0.49699038",
"0.4958074",
"0.49504146",
"0.49493113",
"0.4928954",
"0.49281803",
"0.49264044",
"0.49144852",
"0.49096256",
"0.49023998",
"0.4900659",
"0.4883338",
"0.48826042",
"0.488078",
"0.4873465",
"0.48732233",
"0.48638675",
"0.485561",
"0.484706",
"0.4841978",
"0.48373556",
"0.4833697",
"0.48265693",
"0.48180372",
"0.48130226",
"0.480567",
"0.48006335",
"0.4799091",
"0.47895777",
"0.4785683",
"0.47836962",
"0.4774855",
"0.4773943",
"0.47699708",
"0.47685766",
"0.47670215",
"0.4765558",
"0.47566882",
"0.47566882",
"0.47550395",
"0.4754316",
"0.4753821",
"0.47496703",
"0.47440612",
"0.47428495",
"0.47382045",
"0.47344932",
"0.4732491",
"0.47317952",
"0.47295466",
"0.47266868",
"0.47174314",
"0.47159368",
"0.47122276",
"0.4708117",
"0.47059256",
"0.47053722",
"0.4700522",
"0.4700522",
"0.4698713",
"0.46902904",
"0.4689955",
"0.4688406",
"0.4688214",
"0.4687884",
"0.46857196",
"0.4681411",
"0.46810317",
"0.4679931",
"0.46686065",
"0.46676695",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46672636",
"0.46668667"
] | 0.0 | -1 |
/ / / / / / / / 733 | public DateTickMarkPosition getTickMarkPosition() { return this.tickMarkPosition; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"float getLoopbackDbfs();",
"Info mo7564ix();",
"static int SC(int db) {\n return (int) (db * ((3 / EG_STEP) * (1 << ENV_BITS))) + EG_DST;\n }",
"public void testYourSecondPartition() {\n\tSystem.out.print(\"\\nTesting Second Partition...\\n\");\n executeTestPrintResult(\"http://abc.com:65535\", true); // max allowed port number\n executeTestPrintResult(\"http://abc.com:0\", true); // min allowed port number\n executeTestPrintResult(\"http://abc.com:1\", true); // 1 digit port number \n executeTestPrintResult(\"http://abc.com:99\", true); // 2 digit port number \n executeTestPrintResult(\"http://abc.com:999\", true); // 3 digit port number \n executeTestPrintResult(\"http://abc.com:1000\", true); // 4 digit port number \n executeTestPrintResult(\"http://abc.com:65536\", false); // port number too high \n executeTestPrintResult(\"http://abc.com:-1\", false); // negative port\n executeTestPrintResult(\"http://abc.com:a\", false); // letter in port\n executeTestPrintResult(\"http://abc.com:\", false); // empty port \n executeTestPrintResult(\":123\", false); // no domain \n }",
"int getS1Port();",
"public abstract String apachedb(int size);",
"static int lanPort(String xxx) {\n\t\treturn 20000 + Integer.parseInt(xxx);\n\t}",
"long getUnknown72();",
"public native static int ULTRALIGHT_Connect(long hr,byte[]uid/* 7 bytes */,Long ht);",
"public int getGnutellaPort();",
"java.lang.String getField1433();",
"public static int size_nodeid() {\n return (8 / 8);\n }",
"int getS1Ip();",
"public int getL1UserInformation();",
"long dbSize();",
"private String createPID() {\n return \"7777\";\n }",
"protected int getDefaultPort() {\n/* 320 */ return -1;\n/* */ }",
"int getQueryPort();",
"@Test(timeout = 4000)\n public void test069() throws Throwable {\n StringBuilder stringBuilder0 = new StringBuilder();\n DBDataType dBDataType0 = DBDataType.getInstance((-503007620), \"pw?(g[&h!X$;C/\");\n Integer integer0 = new Integer(22);\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn((String) null, (DBTable) null, dBDataType0, integer0);\n SQLUtil.renderColumnTypeWithSize((DBColumn) defaultDBColumn0, stringBuilder0);\n assertEquals(\"PW?(G[&H!X$;C/(22)\", stringBuilder0.toString());\n }",
"@Test\n public void testCOH9787()\n {\n // Test distributed scheme with local backing map\n COH9787Helper(\"COH9787-local-BM\");\n\n // Test distributed scheme with RWBM\n COH9787Helper(\"COH9787-RWBM-local-front\");\n }",
"static int size_of_shld(String passed){\n\t\treturn 3;\n\t}",
"int getSnPort();",
"int getSnPort();",
"public void testYourFifthPartition() {\n\tSystem.out.print(\"\\nTesting Fifth Partition...\\n\");\n executeTestPrintResult(\"http://abc.com:1/a?key=value\", true); // domain + port + path + query\n executeTestPrintResult(\"http://abc.com/a?key=value\", true); // domain + path + query\n executeTestPrintResult(\"http://abc.com:1/a\", true); // domain + port + path\n executeTestPrintResult(\"http://abc.com:1?key=value\", true); // domain + port + query\n\n executeTestPrintResult(\"http://abc.com/a/b:80\", false); // domain + path + port\n executeTestPrintResult(\"http://abc.com?key=value/a/b/c\", false); // domain + query + path\n executeTestPrintResult(\"http://abc.com?key=value:80\", false); // domain + query + port\n executeTestPrintResult(\"http://abc.com:1?key=value/a/b/c\", false); // domain + port + query + path\n executeTestPrintResult(\"http://abc.com?key=value/a/b/c:80\", false); // domain + query + path + port\n executeTestPrintResult(\"http://abc.com?key=value:80/a/b/c\", false); // domain + query + port + path\n executeTestPrintResult(\"http://abc.com/a/b/c:80?key=value\", false); // domain + path + port + query\n executeTestPrintResult(\"http://abc.com/a/b/c?key=value:80\", false); // domain + path + query + port\n\t \n }",
"int localPort();",
"private int getSSN (){\n return ssn;\n }",
"public int getPort(){\r\n return localPort;\r\n }",
"public int getPort(){\r\n return localPort;\r\n }",
"static void resolveSids0(java.lang.String r8, jcifs.smb.NtlmPasswordAuthentication r9, jcifs.smb.SID[] r10) throws java.io.IOException {\n /*\n r1 = 0;\n r2 = 0;\n r6 = sid_cache;\n monitor-enter(r6);\n r5 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0067 }\n r5.<init>();\t Catch:{ all -> 0x0067 }\n r7 = \"ncacn_np:\";\n r5 = r5.append(r7);\t Catch:{ all -> 0x0067 }\n r5 = r5.append(r8);\t Catch:{ all -> 0x0067 }\n r7 = \"[\\\\PIPE\\\\lsarpc]\";\n r5 = r5.append(r7);\t Catch:{ all -> 0x0067 }\n r5 = r5.toString();\t Catch:{ all -> 0x0067 }\n r1 = jcifs.dcerpc.DcerpcHandle.getHandle(r5, r9);\t Catch:{ all -> 0x0067 }\n r4 = r8;\n r5 = 46;\n r0 = r4.indexOf(r5);\t Catch:{ all -> 0x0067 }\n if (r0 <= 0) goto L_0x003d;\n L_0x002d:\n r5 = 0;\n r5 = r4.charAt(r5);\t Catch:{ all -> 0x0067 }\n r5 = java.lang.Character.isDigit(r5);\t Catch:{ all -> 0x0067 }\n if (r5 != 0) goto L_0x003d;\n L_0x0038:\n r5 = 0;\n r4 = r4.substring(r5, r0);\t Catch:{ all -> 0x0067 }\n L_0x003d:\n r3 = new jcifs.dcerpc.msrpc.LsaPolicyHandle;\t Catch:{ all -> 0x0067 }\n r5 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0067 }\n r5.<init>();\t Catch:{ all -> 0x0067 }\n r7 = \"\\\\\\\\\";\n r5 = r5.append(r7);\t Catch:{ all -> 0x0067 }\n r5 = r5.append(r4);\t Catch:{ all -> 0x0067 }\n r5 = r5.toString();\t Catch:{ all -> 0x0067 }\n r7 = 2048; // 0x800 float:2.87E-42 double:1.0118E-320;\n r3.<init>(r1, r5, r7);\t Catch:{ all -> 0x0067 }\n resolveSids(r1, r3, r10);\t Catch:{ all -> 0x0079 }\n if (r1 == 0) goto L_0x0065;\n L_0x005d:\n if (r3 == 0) goto L_0x0062;\n L_0x005f:\n r3.close();\t Catch:{ all -> 0x0076 }\n L_0x0062:\n r1.close();\t Catch:{ all -> 0x0076 }\n L_0x0065:\n monitor-exit(r6);\t Catch:{ all -> 0x0076 }\n return;\n L_0x0067:\n r5 = move-exception;\n L_0x0068:\n if (r1 == 0) goto L_0x0072;\n L_0x006a:\n if (r2 == 0) goto L_0x006f;\n L_0x006c:\n r2.close();\t Catch:{ all -> 0x0073 }\n L_0x006f:\n r1.close();\t Catch:{ all -> 0x0073 }\n L_0x0072:\n throw r5;\t Catch:{ all -> 0x0073 }\n L_0x0073:\n r5 = move-exception;\n L_0x0074:\n monitor-exit(r6);\t Catch:{ all -> 0x0073 }\n throw r5;\n L_0x0076:\n r5 = move-exception;\n r2 = r3;\n goto L_0x0074;\n L_0x0079:\n r5 = move-exception;\n r2 = r3;\n goto L_0x0068;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: jcifs.smb.SID.resolveSids0(java.lang.String, jcifs.smb.NtlmPasswordAuthentication, jcifs.smb.SID[]):void\");\n }",
"public long getDbsize()\n/* */ {\n/* 79 */ return this.dbsize;\n/* */ }",
"public int arn() {\n return 383;\n }",
"void mo33732Px();",
"private int m5345e() {\n if (Process.myUid() == 1000) {\n return 0;\n }\n boolean equals;\n try {\n equals = \"mounted\".equals(Environment.getExternalStorageState());\n } catch (Exception e) {\n equals = false;\n }\n if (C1222aj.m5343c() && !equals) {\n return 0;\n }\n File file = new File(C1222aj.m5334a(this.f4232a).getPath() + File.separator + \"carrierdata\");\n if (!file.exists() || !file.isDirectory()) {\n return 0;\n }\n File[] listFiles = file.listFiles();\n if (listFiles == null || listFiles.length <= 0) {\n return 0;\n }\n ArrayList a = C1222aj.m5336a(listFiles);\n return a.size() == 1 ? ((File) a.get(0)).length() <= 0 ? 10 : 1 : a.size() >= 2 ? 2 : 0;\n }",
"public abstract long mo9743h();",
"String zookeeperQuorum();",
"private void m145780j() {\n String str;\n if (!this.f119477j.mo115499a() && !this.f119478k) {\n if ((this.f119477j.f119578d & 536870912) != 0) {\n str = \"WAL\";\n } else {\n str = \"PERSIST\";\n }\n m145773d(str);\n }\n }",
"int zookeeperClientPort();",
"Integer destinationPort();",
"private void m81855s() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA1BAF209420E2\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58082n = Integer.parseInt(c);\n }\n } catch (Throwable th) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), th.getMessage());\n this.f58082n = 0;\n }\n if (this.f58082n == 0 && C6969H.m41409d(\"G7E94C254A538A221F3409347FF\").equals(this.f58071c.getHost())) {\n this.f58082n = AppIdRouterHelper.m81728a(this.f58072d.getPath());\n }\n }",
"public int getPortCount() {\n return 4;\n }",
"void mo33731Pw();",
"@Override\n public int getConnectionPort() {\n return 10083;\n }",
"public interface Constants {\n String ASTYANAX_HOSTS = \"127.0.0.1:9160\";\n String DATASTAX_HOSTS = \"127.0.0.1:9042\";\n String GRAPHITE_HOSTS = \"127.0.0.1\";\n int ASTYANAX_PORT = 9160;\n int GRAPHITE_PORT = 2003;\n int WRITE_BATCH_SIZE = 20;\n int READ_BATCH_SIZE = 200;\n int NUMBER_OF_WRITE_THREADS = 10;\n int NUMBER_OF_READ_THREADS = 10;\n}",
"int memSize() {\r\n\t\treturn BASE_NODE_SIZE + 5 * 4;\r\n\t}",
"public void mo3370l() {\n }",
"String mo10312id();",
"private static String getSlaveIpPort() {\n\t\treturn \"\";\n\t}",
"static java.util.Map getLocalGroupsMap(java.lang.String r22, jcifs.smb.NtlmPasswordAuthentication r23, int r24) throws java.io.IOException {\n /*\n r5 = getServerSid(r22, r23);\n r10 = 0;\n r14 = 0;\n r3 = 0;\n r17 = new jcifs.dcerpc.msrpc.samr$SamrSamArray;\n r17.<init>();\n r19 = sid_cache;\n monitor-enter(r19);\n r18 = new java.lang.StringBuilder;\t Catch:{ all -> 0x013f }\n r18.<init>();\t Catch:{ all -> 0x013f }\n r20 = \"ncacn_np:\";\n r0 = r18;\n r1 = r20;\n r18 = r0.append(r1);\t Catch:{ all -> 0x013f }\n r0 = r18;\n r1 = r22;\n r18 = r0.append(r1);\t Catch:{ all -> 0x013f }\n r20 = \"[\\\\PIPE\\\\samr]\";\n r0 = r18;\n r1 = r20;\n r18 = r0.append(r1);\t Catch:{ all -> 0x013f }\n r18 = r18.toString();\t Catch:{ all -> 0x013f }\n r0 = r18;\n r1 = r23;\n r10 = jcifs.dcerpc.DcerpcHandle.getHandle(r0, r1);\t Catch:{ all -> 0x013f }\n r15 = new jcifs.dcerpc.msrpc.SamrPolicyHandle;\t Catch:{ all -> 0x013f }\n r18 = 33554432; // 0x2000000 float:9.403955E-38 double:1.6578092E-316;\n r0 = r22;\n r1 = r18;\n r15.<init>(r10, r0, r1);\t Catch:{ all -> 0x013f }\n r4 = new jcifs.dcerpc.msrpc.SamrDomainHandle;\t Catch:{ all -> 0x0142 }\n r18 = 33554432; // 0x2000000 float:9.403955E-38 double:1.6578092E-316;\n r0 = r18;\n r4.<init>(r10, r15, r0, r5);\t Catch:{ all -> 0x0142 }\n r16 = new jcifs.dcerpc.msrpc.MsrpcEnumerateAliasesInDomain;\t Catch:{ all -> 0x0081 }\n r18 = 65535; // 0xffff float:9.1834E-41 double:3.23786E-319;\n r0 = r16;\n r1 = r18;\n r2 = r17;\n r0.<init>(r4, r1, r2);\t Catch:{ all -> 0x0081 }\n r0 = r16;\n r10.sendrecv(r0);\t Catch:{ all -> 0x0081 }\n r0 = r16;\n r0 = r0.retval;\t Catch:{ all -> 0x0081 }\n r18 = r0;\n if (r18 == 0) goto L_0x0097;\n L_0x006d:\n r18 = new jcifs.smb.SmbException;\t Catch:{ all -> 0x0081 }\n r0 = r16;\n r0 = r0.retval;\t Catch:{ all -> 0x0081 }\n r20 = r0;\n r21 = 0;\n r0 = r18;\n r1 = r20;\n r2 = r21;\n r0.<init>(r1, r2);\t Catch:{ all -> 0x0081 }\n throw r18;\t Catch:{ all -> 0x0081 }\n L_0x0081:\n r18 = move-exception;\n r3 = r4;\n r14 = r15;\n L_0x0084:\n if (r10 == 0) goto L_0x0093;\n L_0x0086:\n if (r14 == 0) goto L_0x0090;\n L_0x0088:\n if (r3 == 0) goto L_0x008d;\n L_0x008a:\n r3.close();\t Catch:{ all -> 0x0094 }\n L_0x008d:\n r14.close();\t Catch:{ all -> 0x0094 }\n L_0x0090:\n r10.close();\t Catch:{ all -> 0x0094 }\n L_0x0093:\n throw r18;\t Catch:{ all -> 0x0094 }\n L_0x0094:\n r18 = move-exception;\n L_0x0095:\n monitor-exit(r19);\t Catch:{ all -> 0x0094 }\n throw r18;\n L_0x0097:\n r11 = new java.util.HashMap;\t Catch:{ all -> 0x0081 }\n r11.<init>();\t Catch:{ all -> 0x0081 }\n r6 = 0;\n L_0x009d:\n r0 = r16;\n r0 = r0.sam;\t Catch:{ all -> 0x0081 }\n r18 = r0;\n r0 = r18;\n r0 = r0.count;\t Catch:{ all -> 0x0081 }\n r18 = r0;\n r0 = r18;\n if (r6 >= r0) goto L_0x0129;\n L_0x00ad:\n r0 = r16;\n r0 = r0.sam;\t Catch:{ all -> 0x0081 }\n r18 = r0;\n r0 = r18;\n r0 = r0.entries;\t Catch:{ all -> 0x0081 }\n r18 = r0;\n r7 = r18[r6];\t Catch:{ all -> 0x0081 }\n r0 = r7.idx;\t Catch:{ all -> 0x0081 }\n r18 = r0;\n r0 = r18;\n r1 = r24;\n r12 = getGroupMemberSids0(r10, r4, r5, r0, r1);\t Catch:{ all -> 0x0081 }\n r8 = new jcifs.smb.SID;\t Catch:{ all -> 0x0081 }\n r0 = r7.idx;\t Catch:{ all -> 0x0081 }\n r18 = r0;\n r0 = r18;\n r8.<init>(r5, r0);\t Catch:{ all -> 0x0081 }\n r18 = 4;\n r0 = r18;\n r8.type = r0;\t Catch:{ all -> 0x0081 }\n r18 = r5.getDomainName();\t Catch:{ all -> 0x0081 }\n r0 = r18;\n r8.domainName = r0;\t Catch:{ all -> 0x0081 }\n r18 = new jcifs.dcerpc.UnicodeString;\t Catch:{ all -> 0x0081 }\n r0 = r7.name;\t Catch:{ all -> 0x0081 }\n r20 = r0;\n r21 = 0;\n r0 = r18;\n r1 = r20;\n r2 = r21;\n r0.<init>(r1, r2);\t Catch:{ all -> 0x0081 }\n r18 = r18.toString();\t Catch:{ all -> 0x0081 }\n r0 = r18;\n r8.acctName = r0;\t Catch:{ all -> 0x0081 }\n r13 = 0;\n L_0x00fa:\n r0 = r12.length;\t Catch:{ all -> 0x0081 }\n r18 = r0;\n r0 = r18;\n if (r13 >= r0) goto L_0x0125;\n L_0x0101:\n r18 = r12[r13];\t Catch:{ all -> 0x0081 }\n r0 = r18;\n r9 = r11.get(r0);\t Catch:{ all -> 0x0081 }\n r9 = (java.util.ArrayList) r9;\t Catch:{ all -> 0x0081 }\n if (r9 != 0) goto L_0x0119;\n L_0x010d:\n r9 = new java.util.ArrayList;\t Catch:{ all -> 0x0081 }\n r9.<init>();\t Catch:{ all -> 0x0081 }\n r18 = r12[r13];\t Catch:{ all -> 0x0081 }\n r0 = r18;\n r11.put(r0, r9);\t Catch:{ all -> 0x0081 }\n L_0x0119:\n r18 = r9.contains(r8);\t Catch:{ all -> 0x0081 }\n if (r18 != 0) goto L_0x0122;\n L_0x011f:\n r9.add(r8);\t Catch:{ all -> 0x0081 }\n L_0x0122:\n r13 = r13 + 1;\n goto L_0x00fa;\n L_0x0125:\n r6 = r6 + 1;\n goto L_0x009d;\n L_0x0129:\n if (r10 == 0) goto L_0x0138;\n L_0x012b:\n if (r15 == 0) goto L_0x0135;\n L_0x012d:\n if (r4 == 0) goto L_0x0132;\n L_0x012f:\n r4.close();\t Catch:{ all -> 0x013a }\n L_0x0132:\n r15.close();\t Catch:{ all -> 0x013a }\n L_0x0135:\n r10.close();\t Catch:{ all -> 0x013a }\n L_0x0138:\n monitor-exit(r19);\t Catch:{ all -> 0x013a }\n return r11;\n L_0x013a:\n r18 = move-exception;\n r3 = r4;\n r14 = r15;\n goto L_0x0095;\n L_0x013f:\n r18 = move-exception;\n goto L_0x0084;\n L_0x0142:\n r18 = move-exception;\n r14 = r15;\n goto L_0x0084;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: jcifs.smb.SID.getLocalGroupsMap(java.lang.String, jcifs.smb.NtlmPasswordAuthentication, int):java.util.Map\");\n }",
"void init(){\n \tRootServers = new String[15];\r\n RootServers[0] = \"198.41.0.4\";\r\n RootServers[1] = \"199.9.14.201\";\r\n RootServers[2] = \"192.33.4.12\";\r\n RootServers[3] = \"199.7.91.13[\";\r\n RootServers[4] = \"192.203.230.10\";\r\n RootServers[5] = \"192.5.5.241\";\r\n RootServers[6] = \"192.112.36.4\";\r\n RootServers[7] = \"198.97.190.53\";\r\n RootServers[8] = \"192.36.148.17\";\r\n RootServers[9] = \"192.58.128.30\";\r\n RootServers[10] = \"193.0.14.129\";\r\n RootServers[11] = \"199.7.83.42\";\r\n RootServers[12] = \"202.12.27.33\";\r\n }",
"int serverPort ();",
"int getServerId();",
"int familySize();",
"private static String[] getServerAddress(String p_78863_0_) {\n/* */ try {\n/* 87 */ String var1 = \"com.sun.jndi.dns.DnsContextFactory\";\n/* 88 */ Class.forName(\"com.sun.jndi.dns.DnsContextFactory\");\n/* 89 */ Hashtable<Object, Object> var2 = new Hashtable<>();\n/* 90 */ var2.put(\"java.naming.factory.initial\", \"com.sun.jndi.dns.DnsContextFactory\");\n/* 91 */ var2.put(\"java.naming.provider.url\", \"dns:\");\n/* 92 */ var2.put(\"com.sun.jndi.dns.timeout.retries\", \"1\");\n/* 93 */ InitialDirContext var3 = new InitialDirContext(var2);\n/* 94 */ Attributes var4 = var3.getAttributes(\"_minecraft._tcp.\" + p_78863_0_, new String[] { \"SRV\" });\n/* 95 */ String[] var5 = var4.get(\"srv\").get().toString().split(\" \", 4);\n/* 96 */ return new String[] { var5[3], var5[2] };\n/* */ }\n/* 98 */ catch (Throwable var6) {\n/* */ \n/* 100 */ return new String[] { p_78863_0_, Integer.toString(25565) };\n/* */ } \n/* */ }",
"private static int readEscapedHexString(java.lang.String r6, int r7, int r8, java.lang.StringBuilder r9) {\n /*\n int r0 = r8 - r7\n java.nio.ByteBuffer r0 = java.nio.ByteBuffer.allocate(r0)\n L_0x0006:\n if (r7 > r8) goto L_0x00f6\n int r1 = r7 + 1\n char r7 = r6.charAt(r7)\n r2 = 2\n r3 = 0\n r4 = 1\n switch(r7) {\n case 48: goto L_0x0068;\n case 49: goto L_0x0065;\n case 50: goto L_0x0062;\n case 51: goto L_0x005f;\n case 52: goto L_0x005c;\n case 53: goto L_0x0059;\n case 54: goto L_0x0056;\n case 55: goto L_0x0053;\n case 56: goto L_0x0050;\n case 57: goto L_0x004d;\n default: goto L_0x0014;\n }\n L_0x0014:\n switch(r7) {\n case 65: goto L_0x004a;\n case 66: goto L_0x0047;\n case 67: goto L_0x0044;\n case 68: goto L_0x0041;\n case 69: goto L_0x003e;\n case 70: goto L_0x003b;\n default: goto L_0x0017;\n }\n L_0x0017:\n switch(r7) {\n case 97: goto L_0x004a;\n case 98: goto L_0x0047;\n case 99: goto L_0x0044;\n case 100: goto L_0x0041;\n case 101: goto L_0x003e;\n case 102: goto L_0x003b;\n default: goto L_0x001a;\n }\n L_0x001a:\n com.unboundid.ldap.sdk.LDAPException r7 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r8 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r9 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_INVALID_HEX_CHAR\n java.lang.Object[] r0 = new java.lang.Object[r2]\n int r1 = r1 - r4\n char r6 = r6.charAt(r1)\n java.lang.Character r6 = java.lang.Character.valueOf(r6)\n r0[r3] = r6\n java.lang.Integer r6 = java.lang.Integer.valueOf(r1)\n r0[r4] = r6\n java.lang.String r6 = r9.get(r0)\n r7.<init>((com.unboundid.ldap.sdk.ResultCode) r8, (java.lang.String) r6)\n throw r7\n L_0x003b:\n r7 = -16\n goto L_0x0069\n L_0x003e:\n r7 = -32\n goto L_0x0069\n L_0x0041:\n r7 = -48\n goto L_0x0069\n L_0x0044:\n r7 = -64\n goto L_0x0069\n L_0x0047:\n r7 = -80\n goto L_0x0069\n L_0x004a:\n r7 = -96\n goto L_0x0069\n L_0x004d:\n r7 = -112(0xffffffffffffff90, float:NaN)\n goto L_0x0069\n L_0x0050:\n r7 = -128(0xffffffffffffff80, float:NaN)\n goto L_0x0069\n L_0x0053:\n r7 = 112(0x70, float:1.57E-43)\n goto L_0x0069\n L_0x0056:\n r7 = 96\n goto L_0x0069\n L_0x0059:\n r7 = 80\n goto L_0x0069\n L_0x005c:\n r7 = 64\n goto L_0x0069\n L_0x005f:\n r7 = 48\n goto L_0x0069\n L_0x0062:\n r7 = 32\n goto L_0x0069\n L_0x0065:\n r7 = 16\n goto L_0x0069\n L_0x0068:\n r7 = 0\n L_0x0069:\n if (r1 > r8) goto L_0x00db\n int r5 = r1 + 1\n char r1 = r6.charAt(r1)\n switch(r1) {\n case 48: goto L_0x00c8;\n case 49: goto L_0x00c5;\n case 50: goto L_0x00c2;\n case 51: goto L_0x00bf;\n case 52: goto L_0x00bc;\n case 53: goto L_0x00b9;\n case 54: goto L_0x00b6;\n case 55: goto L_0x00b3;\n case 56: goto L_0x00b0;\n case 57: goto L_0x00ad;\n default: goto L_0x0074;\n }\n L_0x0074:\n switch(r1) {\n case 65: goto L_0x00aa;\n case 66: goto L_0x00a7;\n case 67: goto L_0x00a4;\n case 68: goto L_0x00a1;\n case 69: goto L_0x009e;\n case 70: goto L_0x009b;\n default: goto L_0x0077;\n }\n L_0x0077:\n switch(r1) {\n case 97: goto L_0x00aa;\n case 98: goto L_0x00a7;\n case 99: goto L_0x00a4;\n case 100: goto L_0x00a1;\n case 101: goto L_0x009e;\n case 102: goto L_0x009b;\n default: goto L_0x007a;\n }\n L_0x007a:\n com.unboundid.ldap.sdk.LDAPException r7 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r8 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r9 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_INVALID_HEX_CHAR\n java.lang.Object[] r0 = new java.lang.Object[r2]\n int r5 = r5 - r4\n char r6 = r6.charAt(r5)\n java.lang.Character r6 = java.lang.Character.valueOf(r6)\n r0[r3] = r6\n java.lang.Integer r6 = java.lang.Integer.valueOf(r5)\n r0[r4] = r6\n java.lang.String r6 = r9.get(r0)\n r7.<init>((com.unboundid.ldap.sdk.ResultCode) r8, (java.lang.String) r6)\n throw r7\n L_0x009b:\n r7 = r7 | 15\n goto L_0x00c7\n L_0x009e:\n r7 = r7 | 14\n goto L_0x00c7\n L_0x00a1:\n r7 = r7 | 13\n goto L_0x00c7\n L_0x00a4:\n r7 = r7 | 12\n goto L_0x00c7\n L_0x00a7:\n r7 = r7 | 11\n goto L_0x00c7\n L_0x00aa:\n r7 = r7 | 10\n goto L_0x00c7\n L_0x00ad:\n r7 = r7 | 9\n goto L_0x00c7\n L_0x00b0:\n r7 = r7 | 8\n goto L_0x00c7\n L_0x00b3:\n r7 = r7 | 7\n goto L_0x00c7\n L_0x00b6:\n r7 = r7 | 6\n goto L_0x00c7\n L_0x00b9:\n r7 = r7 | 5\n goto L_0x00c7\n L_0x00bc:\n r7 = r7 | 4\n goto L_0x00c7\n L_0x00bf:\n r7 = r7 | 3\n goto L_0x00c7\n L_0x00c2:\n r7 = r7 | 2\n goto L_0x00c7\n L_0x00c5:\n r7 = r7 | 1\n L_0x00c7:\n byte r7 = (byte) r7\n L_0x00c8:\n r0.put(r7)\n if (r5 > r8) goto L_0x00d9\n char r7 = r6.charAt(r5)\n r1 = 92\n if (r7 != r1) goto L_0x00d9\n int r7 = r5 + 1\n goto L_0x0006\n L_0x00d9:\n r7 = r5\n goto L_0x00f6\n L_0x00db:\n com.unboundid.ldap.sdk.LDAPException r7 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r8 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r9 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_INVALID_ESCAPED_END_CHAR\n java.lang.Object[] r0 = new java.lang.Object[r4]\n int r1 = r1 - r4\n char r6 = r6.charAt(r1)\n java.lang.Character r6 = java.lang.Character.valueOf(r6)\n r0[r3] = r6\n java.lang.String r6 = r9.get(r0)\n r7.<init>((com.unboundid.ldap.sdk.ResultCode) r8, (java.lang.String) r6)\n throw r7\n L_0x00f6:\n r0.flip()\n int r6 = r0.limit()\n byte[] r6 = new byte[r6]\n r0.get(r6)\n java.lang.String r6 = com.unboundid.util.StaticUtils.toUTF8String(r6)\n r9.append(r6)\n return r7\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.unboundid.ldap.sdk.Filter.readEscapedHexString(java.lang.String, int, int, java.lang.StringBuilder):int\");\n }",
"@Override\n public int getServerBroadcastPort() {\n return 10081;\n }",
"private int lookup_port (String host) throws LookupException\n , NameServerContactException{\n return Integer.parseInt(lookup(host)[1]);\n }",
"int getAddr();",
"public long Time33Hash(String key) {\n\t\tlong hash = 0;\n\t\tchar[] cArr = key.toCharArray();\n\n\t\tfor (int i = 0; i < cArr.length; ++i) {\n\t\t\thash = (hash * 33) + cArr[i];\n\t\t}\n\n\t\treturn hash;\n\t}",
"static int size_of_lhld(String passed){\n\t\treturn 3;\n\t}",
"public final String zzqS() {\n return \"external_leaderboard_id\";\n }",
"private static int m31084a(zzss zzss) {\n int a = zzss.mo32193a(5);\n if (a == 31) {\n return zzss.mo32193a(6) + 32;\n }\n return a;\n }",
"public int mo3356c() {\n return 0;\n }",
"Integer getNLNDskp();",
"@Test(timeout = 4000)\n public void test70() throws Throwable {\n SQLUtil.normalize(\"selectfwx.wrsyj>:+f-&9\", false);\n Random.setNextRandom(818);\n Random.setNextRandom(818);\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n DBDataType dBDataType0 = DBDataType.getInstance(818, \" NULL\");\n Integer integer0 = RawTransaction.LOCK_ESCALATE;\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"}qis;\", defaultDBTable0, dBDataType0, integer0, integer0);\n defaultDBColumn0.setNullable(false);\n SQLUtil.renderColumn(defaultDBColumn0);\n System.setCurrentTimeMillis(818);\n }",
"public long get_node_id(long number) {\n return ptr_buff[(int) (number * POINTER_LENGTH / ptr_parts_size[0])].getLong((int) (number * POINTER_LENGTH % ptr_parts_size[0]));\n }",
"@Test(timeout = 4000)\n public void test21() throws Throwable {\n String string0 = SQLUtil.normalize(\"alter sessionv)y/b{p(k{:tw\", false);\n assertEquals(\"alter sessionv) y / b { p (k { : tw\", string0);\n }",
"public static int size_receiverNodeID() {\n return (8 / 8);\n }",
"@Test\n public void testHyperLogLog(){\n String redisKey= \"test:hll:01\";\n for (int i = 0; i <= 100000; i++) {\n redisTemplate.opsForHyperLogLog().add(redisKey,i);\n }\n\n for (int i = 0; i <= 100000; i++) {\n int r = (int) (Math.random() * 100000+1);\n redisTemplate.opsForHyperLogLog().add(redisKey,r);\n }\n\n Long size = redisTemplate.opsForHyperLogLog().size(redisKey);\n System.out.println(size);\n }",
"public int getAD_WF_Node_ID();",
"public A339355() {\n super(1, \"[[0],[35,32,10,1],[2,8,2],[3,0,-2,-1]]\",\"8\", 0);\n }",
"protected int bytesPerAtom() {\n return (2);\n }",
"protected int bytesPerAtom() {\n return (2);\n }",
"default public int getCodeToDevicePort()\t\t\t\t{ return 2225; }",
"@Override\n\t\tpublic int getServerPort() {\n\t\t\treturn 0;\n\t\t}",
"public static void main(String[] args) {\n\n\t\tBufferedReader br = null;\n\t\tFile fFile = new File(\"\");\n\t\tString cwd = fFile.getAbsolutePath();\n\n\t\tFile nodes = new File(cwd + \"\\\\cmhadd_nodes.config\");\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(nodes));\n\t\t\tint number_of_nodes = 0;\n\t\t\tString node_addr = br.readLine();\n\t\t\tArrayList<String> node_table = new ArrayList<String>();\n\n\t\t\twhile (node_addr != null) {\n\t\t\t\tnode_table.add(node_addr);\n\t\t\t\tnumber_of_nodes++;\n\t\t\t\tnode_addr = br.readLine();\n\n\t\t\t}\n\t\t\tbr.close();\n\t\t\t// System.out.println(number_of_nodes);\n\n\t\t\tint[] siteNumber = new int[number_of_nodes];\n\t\t\tString[] ip_addr = new String[number_of_nodes];\n\t\t\tint[] port = new int[number_of_nodes];\n\n\t\t\tString[] tmpAddress = null;\n\n\t\t\tfor (int counter = 0; counter < number_of_nodes; counter++) {\n\n\t\t\t\ttmpAddress = node_table.get(counter).split(\" \");\n\t\t\t\tsiteNumber[counter] = Integer.parseInt(tmpAddress[0]);\n\t\t\t\tip_addr[counter] = tmpAddress[1];\n\t\t\t\tport[counter] = Integer.parseInt(tmpAddress[2]);\n\n\t\t\t}\n\n\t\t\t// preparing this site\n\n\t\t\tScanner scan = new Scanner(System.in);\n\n\t\t\tint thissiteNumber = 0;\n\n\t\t\tint inFlag = 0;\n\n\t\t\tdo {\n\n\t\t\t\tSystem.out.print(\"Enter site number (1-\" + number_of_nodes + \"): \");\n\t\t\t\tthissiteNumber = Integer.parseInt(scan.nextLine());\n\n\t\t\t\tif (thissiteNumber >= 1 && thissiteNumber <= number_of_nodes) {\n\t\t\t\t\tinFlag = 1;\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Please enter the correct site number i.e. from 1 to \" + number_of_nodes);\n\t\t\t\t}\n\n\t\t\t} while (inFlag == 0);\n\n\t\t\t// Preparing processes\n\t\t\tFile process_site = new File(cwd + \"\\\\process.config\");\n\n\t\t\tBufferedReader br1 = new BufferedReader(new FileReader(process_site));\n\t\t\tint process_count = 0;\n\t\t\tString process = br1.readLine();\n\t\t\tArrayList<String> process_site_table = new ArrayList<String>();\n\n\t\t\twhile (process != null) {\n\t\t\t\tprocess_site_table.add(process);\n\t\t\t\tprocess_count++;\n\t\t\t\tprocess = br1.readLine();\n\n\t\t\t}\n\t\t\t// System.out.println(process_count);\n\n\t\t\t// Initializing process per site\n\n\t\t\tString[] process_site_map = null;\n\n\t\t\tString process_numbers = \"\";\n\t\t\tint site_process_count = 0;\n\n\t\t\tInteger[][] process_map = new Integer[process_count][2];\n\n\t\t\tfor (int i = 0; i < process_count; i++) {\n\n\t\t\t\tprocess_site_map = process_site_table.get(i).split(\",\");\n\n\t\t\t\tprocess_map[i][0] = Integer.parseInt(process_site_map[0]);\n\t\t\t\tprocess_map[i][1] = Integer.parseInt(process_site_map[1]);\n\n\t\t\t\tif (thissiteNumber == Integer.parseInt(process_site_map[1])) {\n\t\t\t\t\tsite_process_count++;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tprocess[] processes = new process[site_process_count];\n\n\t\t\tint j = 0;\n\n\t\t\tfor (int i = 0; i < process_count; i++) {\n\n\t\t\t\tprocess_site_map = process_site_table.get(i).split(\",\");\n\n\t\t\t\tif (thissiteNumber == Integer.parseInt(process_site_map[1])) {\n\n\t\t\t\t\tprocess_numbers += process_site_map[0] + \" \";\n\n\t\t\t\t\tprocesses[j] = new process(Integer.parseInt(process_site_map[0]),\n\t\t\t\t\t\t\tInteger.parseInt(process_site_map[1]), process_count, site_process_count);\n\t\t\t\t\tj++;\n\n\t\t\t\t}\n\n\t\t\t\t// System.out.println(process_map[i][0]+\" \"+process_map[i][1]);\n\n\t\t\t}\n\n\t\t\t// System.out.println(\"....................................\");\n\n\t\t\t// Constructing WFG\n\n\t\t\tString[] siteProcesses = process_numbers.split(\" \");\n\n\t\t\tFile dep_wfg = new File(cwd + \"\\\\dependency.config\");\n\n\t\t\tBufferedReader br2 = new BufferedReader(new FileReader(dep_wfg));\n\n\t\t\tArrayList<String> dep_edge = new ArrayList<String>();\n\n\t\t\tString dependecy = br2.readLine();\n\n\t\t\tString[] depVertex = null;\n\n\t\t\twhile (dependecy != null) {\n\n\t\t\t\tdepVertex = dependecy.split(\",\");\n\n\t\t\t\tfor (int i = 0; i < site_process_count; i++) {\n\n\t\t\t\t\tif (depVertex[0].equalsIgnoreCase(siteProcesses[i])) {\n\t\t\t\t\t\t// System.out.println(dependecy);\n\t\t\t\t\t\tprocesses[i].addDependOn(depVertex[1], 1);\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tdependecy = br2.readLine();\n\n\t\t\t}\n\n\t\t\t// for(int i=0;i<site_process_count;i++) {\n\t\t\t// System.out.println(\"Process: \"+processes[i].getProcessNo());\n\t\t\t// processes[i].printDepGraph();\n\t\t\t// }\n\n\t\t\t// Open a socket\n\n\t\t\tlistenToBroadcast listenBcst = new listenToBroadcast(processes, port[thissiteNumber - 1], process_map,\n\t\t\t\t\tip_addr, port, siteNumber);\n\n\t\t\tlistenBcst.start();\n\n\t\t\tString input_query = \"\";\n\n\t\t\tSystem.out.println(\"This site has \" + site_process_count + \" process in total. Process numbers are: \"\n\t\t\t\t\t+ process_numbers);\n\n\t\t\twhile (!input_query.equalsIgnoreCase(\"quit\")) {\n\t\t\t\tSystem.out.print(\"\\n\\nEnter process number for intitating deadlock check (\" + process_numbers + \"): \");\n\n\t\t\t\tScanner scan_query = new Scanner(System.in);\n\t\t\t\tinput_query = scan_query.nextLine();\n\t\t\t\tint process_flag = 0;\n\t\t\t\tint process_ref = 0;\n\n\t\t\t\tfor (int i = 0; i < site_process_count; i++) {\n\n\t\t\t\t\tif (processes[i].getProcessNo() == Integer.parseInt(input_query)) {\n\t\t\t\t\t\tprocess_flag = 1;\n\t\t\t\t\t\tprocess_ref = i;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (process_flag == 1) {\n\n\t\t\t\t\tchar result = processes[process_ref].checkDeadlock(processes, process_map);\n\n\t\t\t\t\tif (result == 'D') {\n\t\t\t\t\t\tSystem.out.println(\"Local deadlock detected.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tif (result == 'L') {\n\t\t\t\t\t\tSystem.out.println(\"The process is not dependent on any othe process, hence no deadloack .\");\n\t\t\t\t\t}\n\n\t\t\t\t\tif (result == 'N') {\n\t\t\t\t\t\tSystem.out.println(\"No Local deadlock detected.\");\n\t\t\t\t\t\tprocesses[process_ref].checkRemoteDeadlock(processes, process_map, ip_addr, port, siteNumber,\n\t\t\t\t\t\t\t\tInteger.parseInt(input_query));\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\"It seems this process does not belong this site. The process numbers belonging to this site (site number: \"\n\t\t\t\t\t\t\t\t\t+ thissiteNumber + \") are: \" + process_numbers);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"int getPrimarySnId();",
"int getPrimarySnId();",
"private void m145775e() {\n long j;\n String str;\n int i;\n if (!this.f119477j.mo115499a()) {\n if (this.f119484q != null) {\n str = \"PRAGMA cipher_page_size\";\n if (this.f119485r == null || this.f119485r.pageSize <= 0) {\n i = SQLiteGlobal.f119529a;\n } else {\n i = this.f119485r.pageSize;\n }\n j = (long) i;\n } else {\n str = \"PRAGMA page_size\";\n j = (long) SQLiteGlobal.f119529a;\n }\n if (mo115435b(str, null, null) != j) {\n StringBuilder sb = new StringBuilder();\n sb.append(str);\n sb.append(\"=\");\n sb.append(j);\n mo115433a(sb.toString(), null, null);\n }\n }\n }",
"public abstract long mo20901UQ();",
"public void testYourThirdPartition() {\n\tSystem.out.print(\"\\nTesting Third Partition...\\n\");\n executeTestPrintResult(\"http://abc.com/\", true); // empty \n executeTestPrintResult(\"http://abc.com/a/b/c/1/2/3\", true); // arbitrary length, letters and digits\n executeTestPrintResult(\"http://abc.com/a/#b\", false); // invalid char \n executeTestPrintResult(\"http://abc.com/a/$b\", true); // $ is valid char \n executeTestPrintResult(\"http://abc.com/../b\", false); // invalid relative path\n executeTestPrintResult(\"/a/b/c\", false); // no domain \n }",
"long storageSize();",
"public static int size_moteId() {\n return (16 / 8);\n }",
"private static int getBytes(long r23) {\n /*\n java.lang.ThreadLocal<byte[]> r0 = TEMP_NUMBER_BUFFER\n java.lang.Object r0 = r0.get()\n byte[] r0 = (byte[]) r0\n r1 = 20\n if (r0 != 0) goto L_0x0013\n byte[] r0 = new byte[r1]\n java.lang.ThreadLocal<byte[]> r2 = TEMP_NUMBER_BUFFER\n r2.set(r0)\n L_0x0013:\n r2 = -9223372036854775808\n r4 = 54\n r5 = 57\n r6 = 45\n r7 = 53\n r8 = 56\n r9 = 55\n r10 = 51\n r11 = 50\n r12 = 0\n r13 = 48\n r14 = 1\n int r15 = (r23 > r2 ? 1 : (r23 == r2 ? 0 : -1))\n if (r15 != 0) goto L_0x0076\n r0[r12] = r6\n r0[r14] = r5\n r2 = 2\n r0[r2] = r11\n r2 = 3\n r0[r2] = r11\n r2 = 4\n r0[r2] = r10\n r2 = 5\n r0[r2] = r10\n r2 = 6\n r0[r2] = r9\n r2 = 7\n r0[r2] = r11\n r2 = 8\n r0[r2] = r13\n r2 = 9\n r0[r2] = r10\n r2 = 10\n r0[r2] = r4\n r2 = 11\n r0[r2] = r8\n r2 = 12\n r0[r2] = r7\n r2 = 13\n r3 = 52\n r0[r2] = r3\n r2 = 14\n r0[r2] = r9\n r2 = 15\n r0[r2] = r9\n r2 = 16\n r0[r2] = r7\n r2 = 17\n r0[r2] = r8\n r2 = 18\n r0[r2] = r13\n r2 = 19\n r0[r2] = r8\n return r1\n L_0x0076:\n r1 = 0\n int r3 = (r23 > r1 ? 1 : (r23 == r1 ? 0 : -1))\n if (r3 != 0) goto L_0x007f\n r0[r12] = r13\n return r14\n L_0x007f:\n if (r3 >= 0) goto L_0x0088\n r0[r12] = r6\n long r15 = java.lang.Math.abs(r23)\n goto L_0x008b\n L_0x0088:\n r14 = 0\n r15 = r23\n L_0x008b:\n r17 = 9\n r19 = 10\n r21 = 1\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0099\n r17 = r21\n goto L_0x017e\n L_0x0099:\n r17 = 99\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00a3\n r17 = r19\n goto L_0x017e\n L_0x00a3:\n r17 = 999(0x3e7, double:4.936E-321)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00ad\n r17 = 100\n goto L_0x017e\n L_0x00ad:\n r17 = 9999(0x270f, double:4.94E-320)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00b7\n r17 = 1000(0x3e8, double:4.94E-321)\n goto L_0x017e\n L_0x00b7:\n r17 = 99999(0x1869f, double:4.9406E-319)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00c2\n r17 = 10000(0x2710, double:4.9407E-320)\n goto L_0x017e\n L_0x00c2:\n r17 = 999999(0xf423f, double:4.94065E-318)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00ce\n r17 = 100000(0x186a0, double:4.94066E-319)\n goto L_0x017e\n L_0x00ce:\n r17 = 9999999(0x98967f, double:4.940656E-317)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00da\n r17 = 1000000(0xf4240, double:4.940656E-318)\n goto L_0x017e\n L_0x00da:\n r17 = 99999999(0x5f5e0ff, double:4.9406564E-316)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00e6\n r17 = 10000000(0x989680, double:4.9406565E-317)\n goto L_0x017e\n L_0x00e6:\n r17 = 999999999(0x3b9ac9ff, double:4.940656453E-315)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00f2\n r17 = 100000000(0x5f5e100, double:4.94065646E-316)\n goto L_0x017e\n L_0x00f2:\n r17 = 9999999999(0x2540be3ff, double:4.940656458E-314)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0100\n r17 = 1000000000(0x3b9aca00, double:4.94065646E-315)\n goto L_0x017e\n L_0x0100:\n r17 = 99999999999(0x174876e7ff, double:4.94065645836E-313)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0110\n r17 = 10000000000(0x2540be400, double:4.9406564584E-314)\n goto L_0x017e\n L_0x0110:\n r17 = 999999999999(0xe8d4a50fff, double:4.940656458408E-312)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x011f\n r17 = 100000000000(0x174876e800, double:4.9406564584E-313)\n goto L_0x017e\n L_0x011f:\n r17 = 9999999999999(0x9184e729fff, double:4.940656458412E-311)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x012e\n r17 = 1000000000000(0xe8d4a51000, double:4.94065645841E-312)\n goto L_0x017e\n L_0x012e:\n r17 = 99999999999999(0x5af3107a3fff, double:4.9406564584124E-310)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x013d\n r17 = 10000000000000(0x9184e72a000, double:4.9406564584125E-311)\n goto L_0x017e\n L_0x013d:\n r17 = 999999999999999(0x38d7ea4c67fff, double:4.94065645841246E-309)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x014c\n r17 = 100000000000000(0x5af3107a4000, double:4.94065645841247E-310)\n goto L_0x017e\n L_0x014c:\n r17 = 9999999999999999(0x2386f26fc0ffff, double:5.431165199810527E-308)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x015b\n r17 = 1000000000000000(0x38d7ea4c68000, double:4.940656458412465E-309)\n goto L_0x017e\n L_0x015b:\n r17 = 99999999999999999(0x16345785d89ffff, double:5.620395787888204E-302)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x016a\n r17 = 10000000000000000(0x2386f26fc10000, double:5.431165199810528E-308)\n goto L_0x017e\n L_0x016a:\n r17 = 999999999999999999(0xde0b6b3a763ffff, double:7.832953389245684E-242)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0179\n r17 = 100000000000000000(0x16345785d8a0000, double:5.620395787888205E-302)\n goto L_0x017e\n L_0x0179:\n r17 = 1000000000000000000(0xde0b6b3a7640000, double:7.832953389245686E-242)\n L_0x017e:\n long r1 = r15 / r17\n int r3 = (int) r1\n switch(r3) {\n case 0: goto L_0x01b6;\n case 1: goto L_0x01af;\n case 2: goto L_0x01aa;\n case 3: goto L_0x01a5;\n case 4: goto L_0x019e;\n case 5: goto L_0x0199;\n case 6: goto L_0x0194;\n case 7: goto L_0x018f;\n case 8: goto L_0x018a;\n case 9: goto L_0x0185;\n default: goto L_0x0184;\n }\n L_0x0184:\n goto L_0x01bb\n L_0x0185:\n int r3 = r14 + 1\n r0[r14] = r5\n goto L_0x01ba\n L_0x018a:\n int r3 = r14 + 1\n r0[r14] = r8\n goto L_0x01ba\n L_0x018f:\n int r3 = r14 + 1\n r0[r14] = r9\n goto L_0x01ba\n L_0x0194:\n int r3 = r14 + 1\n r0[r14] = r4\n goto L_0x01ba\n L_0x0199:\n int r3 = r14 + 1\n r0[r14] = r7\n goto L_0x01ba\n L_0x019e:\n int r3 = r14 + 1\n r6 = 52\n r0[r14] = r6\n goto L_0x01ba\n L_0x01a5:\n int r3 = r14 + 1\n r0[r14] = r10\n goto L_0x01ba\n L_0x01aa:\n int r3 = r14 + 1\n r0[r14] = r11\n goto L_0x01ba\n L_0x01af:\n int r3 = r14 + 1\n r6 = 49\n r0[r14] = r6\n goto L_0x01ba\n L_0x01b6:\n int r3 = r14 + 1\n r0[r14] = r13\n L_0x01ba:\n r14 = r3\n L_0x01bb:\n int r3 = (r17 > r21 ? 1 : (r17 == r21 ? 0 : -1))\n if (r3 != 0) goto L_0x01c0\n goto L_0x01d8\n L_0x01c0:\n java.lang.Long.signum(r17)\n long r1 = r1 * r17\n long r15 = r15 - r1\n r1 = 0\n int r3 = (r15 > r1 ? 1 : (r15 == r1 ? 0 : -1))\n if (r3 != 0) goto L_0x01d9\n L_0x01cc:\n int r1 = (r17 > r21 ? 1 : (r17 == r21 ? 0 : -1))\n if (r1 <= 0) goto L_0x01d8\n int r1 = r14 + 1\n r0[r14] = r13\n long r17 = r17 / r19\n r14 = r1\n goto L_0x01cc\n L_0x01d8:\n return r14\n L_0x01d9:\n long r17 = r17 / r19\n goto L_0x017e\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.unboundid.util.ByteStringBuffer.getBytes(long):int\");\n }",
"public static void main(String args[]) {\n// \t/**\n// \t *test getLongId\n// \t */\n// \tfor (int i=0;i<100;i++){\n// \t\tSystem.out.println(i+\" getLongId=\" + getLongId()); \n// \t}\n// \t/**\n// \t * test uuid generate\n// \t */\n// for (int i=0; i< 100; i++) {\n// \tUUIDGenerator UUIDgenerator = UUIDGenerator.getInstance();\n// \tUUID uuid = UUIDgenerator.generateRandomBasedUUID();\n// \tString result = uuid.toString().replaceAll(\"-\", \"\");\n// \tSystem.out.println(i+\" UUID=\" + uuid.toString()); \t\n// \t System.out.println(i+\" resu=\" + result);\n// \t System.out.println(i+\" size=\" + result.length());\n// }\n \tSystem.out.println(UuidGenerator.getRandomPwd(8));\n }",
"int getVirtualUsers();",
"public static int m8655e() {\n return 8;\n }",
"private String getPhysicalDbName() {\n String pdbName =TestConfiguration.getCurrent().getJDBCUrl();\n if (pdbName != null)\n pdbName=pdbName.substring(pdbName.lastIndexOf(\"oneuse\"),pdbName.length());\n else {\n // with JSR169, we don't *have* a protocol, and so, no url, and so\n // we'll have had a null.\n // But we know the name of the db is something like system/singleUse/oneuse#\n // So, let's see if we can look it up, if everything's been properly\n // cleaned, there should be just 1...\n pdbName = (String) AccessController.doPrivileged(new java.security.PrivilegedAction() {\n String filesep = getSystemProperty(\"file.separator\");\n public Object run() {\n File dbdir = new File(\"system\" + filesep + \"singleUse\");\n String[] list = dbdir.list();\n // Some JVMs return null for File.list() when the directory is empty\n if( list != null)\n {\n if(list.length > 1)\n {\n for( int i = 0; i < list.length; i++ )\n {\n if(list[i].indexOf(\"oneuse\")<0)\n continue;\n else\n {\n return list[i];\n }\n }\n // give up trying to be smart, assume it's 0\n return \"oneuse0\";\n }\n else\n return list[0];\n }\n return null;\n }\n });\n \n }\n return pdbName;\n }",
"public static int size_addr() {\n return (16 / 8);\n }",
"private static String m21403f() {\n String str;\n String str2 = \"\";\n try {\n Enumeration networkInterfaces = NetworkInterface.getNetworkInterfaces();\n while (networkInterfaces.hasMoreElements()) {\n Enumeration inetAddresses = ((NetworkInterface) networkInterfaces.nextElement()).getInetAddresses();\n while (inetAddresses.hasMoreElements()) {\n InetAddress inetAddress = (InetAddress) inetAddresses.nextElement();\n if (!inetAddress.isLoopbackAddress()) {\n str2 = inetAddress.getHostAddress();\n }\n }\n }\n } catch (Throwable th) {\n C5205o.m21464a(th);\n }\n return str;\n }",
"int getServerProcessingIterations();",
"Eid localEid();",
"int getSnId();",
"int getSnId();",
"int getSnId();",
"int getSnId();",
"public void testYourFourthPartition() {\n\tSystem.out.print(\"\\nTesting Fourth Partition...\\n\");\n executeTestPrintResult(\"http://abc.com?\", false); // empty \n executeTestPrintResult(\"http://abc.com?key=value\", true); \n executeTestPrintResult(\"http://abc.com?a=1&b=2&c=3\", true); // arbitrary length, letters/digits \n executeTestPrintResult(\"http://abc.com?a=1+b=2\", false); // +\n executeTestPrintResult(\"http://abc.com?a\", false); // no value\n executeTestPrintResult(\"http://abc.com?=a\", false); // no key\n executeTestPrintResult(\"?key=value\", false); // no domain \n }",
"int getSysID();",
"String mo7390hn() throws RemoteException;",
"int mo742l() throws RemoteException;",
"private static int getHerokuAssignedPort() {\n return 4567;\n }",
"private DBMaster() {\r\n\t\t//The current address is localhost - needs to be changed at a later date\r\n\t\t_db = new GraphDatabaseFactory().newEmbeddedDatabase(\"\\\\etc\\\\neo4j\\\\default.graphdb\");\r\n\t\tregisterShutdownHook();\r\n\t}"
] | [
"0.52321947",
"0.51386696",
"0.5095668",
"0.50802535",
"0.49317524",
"0.4924139",
"0.48916772",
"0.48680338",
"0.4793264",
"0.47502685",
"0.4748944",
"0.47484633",
"0.47360885",
"0.47355822",
"0.4696801",
"0.4673733",
"0.46717802",
"0.46637002",
"0.46586892",
"0.46501356",
"0.4642019",
"0.46245816",
"0.46245816",
"0.46080917",
"0.46047208",
"0.46040967",
"0.4593942",
"0.4593942",
"0.45927978",
"0.45902544",
"0.45870823",
"0.4577207",
"0.45763767",
"0.45533344",
"0.45527667",
"0.45458928",
"0.45387474",
"0.45381626",
"0.45378754",
"0.45371684",
"0.45309848",
"0.4527031",
"0.45250383",
"0.45225942",
"0.45152757",
"0.45125526",
"0.45088014",
"0.45069048",
"0.45052487",
"0.44989347",
"0.44972798",
"0.44930774",
"0.44922364",
"0.44873804",
"0.448466",
"0.44846204",
"0.44813877",
"0.44737524",
"0.44675145",
"0.4460203",
"0.44582635",
"0.44548696",
"0.44506395",
"0.44463253",
"0.4444994",
"0.44439963",
"0.44434896",
"0.44417503",
"0.44399098",
"0.44398916",
"0.44363487",
"0.44363487",
"0.44293198",
"0.44292974",
"0.442803",
"0.44269425",
"0.44269425",
"0.4417919",
"0.4417207",
"0.44129997",
"0.44126427",
"0.44122416",
"0.44106582",
"0.44105744",
"0.44089392",
"0.44030222",
"0.4400645",
"0.4397886",
"0.43956563",
"0.4393248",
"0.43929183",
"0.4391144",
"0.4391144",
"0.4391144",
"0.4391144",
"0.43901053",
"0.4388767",
"0.43837428",
"0.43794683",
"0.43755835",
"0.43745187"
] | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.