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
ENTITY LINKS ( RELATIONSHIP ) CONSTRUCTOR(S)
public TIdRelationGroupInfoViewEntity() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PhysicalLink() {\n\n }", "LinkRelation createLinkRelation();", "public Link() {\n }", "public Relationship() {\r\n\t}", "public LinkElement() { }", "Link(Object it, Link inp, Link inn) { e = it; p = inp; n = inn; }", "LINK createLINK();", "@Override\n\tpublic Entity createEntity() {\n\t\tEntity entity = new Entity(LINKS_ENTITY_KIND);\n\t\tentity.setProperty(id_property, ID);\n\t\tentity.setProperty(url_property, url);\n\t\tentity.setProperty(CategoryID_property, CategoryID);\n\t\tentity.setProperty(note_property, note);\n\t\tentity.setProperty(createdOn_property, createdOn);\n\t\tentity.setProperty(updatedOn_property, updatedOn);\t\t\t\n\t\treturn entity;\n\t}", "public Links() {\n }", "public RelationshipElement ()\n\t{\n\t\tthis(null, null);\n\t}", "protected DefaultLink() {\n }", "@Override\n\tpublic void initEntity() {\n\n\t}", "public LinksResource() {\n }", "Link createLink();", "LinkRelationsLibrary createLinkRelationsLibrary();", "private LinkLayer() {\r\n }", "public Relations() {\n relations = new ArrayList();\n }", "public DefaultEntity(Node<A> node) {\r\n\t\tsuper(node);\r\n\t\tevents = new Vector<Event<A>>();\r\n\t}", "public LinkBuilder() {\n }", "private Link() {\n }", "protected void entityInit() {}", "Relationship createRelationship();", "public Related() {\n }", "public CMSLinkComponentDTO()\n\t{\n\t\tsuper();\n\t}", "public Link(Node from, Node to) {\n\t this.from = from;\n\t this.to = to;\n\t}", "public AbstractGameObject(Level linksTo, int atX, int atY) {\n level = linksTo;\n xPosition = atX;\n yPosition = atY;\n }", "public DoublyLink() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "protected SpatialRelationBlock() {\n\t\t/* intentionally empty block */}", "public AbstractGameObject(Level linksTo, Point at) {\n level = linksTo;\n xPosition = at.x;\n yPosition = at.y;\n }", "public Reference() {\n super();\n }", "void relationshipCreate( long id, int typeId, long startNodeId,\n long endNodeId );", "Relation createRelation();", "public Link(long id) // constructor\r\n { iData = id; }", "public EntityID() {\n }", "public newRelationship() {\n initComponents();\n }", "protected Entity() {\n UID = GEN_COUNT;\n GEN_COUNT++;\n }", "protected LineRelation(GeomE geometry) {\n this.geometry = geometry;\n }", "public TmRelationship() {\n this(\"TM_RELATIONSHIP\", null);\n }", "public SpatialRelationBlock(int addr, TOP_Type type) {\n\t\tsuper(addr, type);\n\t\treadObject();\n\t}", "public RelationshipElement (RelationshipElement.Impl impl, \n\t\tPersistenceClassElement declaringClass)\n\t{\n\t\tsuper(impl, declaringClass);\n\t}", "public LinksBean() {\n }", "@Override\n public void initSelf(OrchidContext oc) throws OrchidException\n {\n super.initSelf(oc);\n\n try {\n BlogPolicy blog = getParentBlog();\n if (blog != null) {\n ContentId blogId = blog.getContentId().getContentId();\n\n parentBlogLink = new OContentIdLink();\n parentBlogLink.setContentId(blogId);\n parentBlogLink.setLabel(blog.getName());\n parentBlogLink.setTitle(blogId.getContentIdString());\n parentBlogLink.init(oc);\n }\n } catch (CMException e) {\n e.printStackTrace();\n }\n }", "protected abstract ENTITY createEntity();", "IEntity<A> connectEntity( @NonNull final IEntity<IAttribute> p_entity, @NonNull final String p_cardinality );", "public MapEntity() {\n\t}", "@Override\n public void createObject (Link l,\n Connection conn)\n throws GeneralException\n {\n\n List params = new ArrayList ();\n params.add (l.getKey ());\n params.add (l.getObject1 ().getKey ());\n params.add (l.getObject1 ().getObjectType ());\n params.add (l.getObject2 ().getKey ());\n params.add (l.getObject2 ().getObjectType ());\n\n this.objectManager.executeStatement (\"INSERT INTO link (dbkey, object1dbkey, object1objtype, object2dbkey, object2objtype) VALUES (?, ?, ?, ?, ?)\",\n params,\n conn);\n\n }", "@Override\n public void initialize(Object entity) {\n entity.hashCode();\n }", "public ExcursionEntity() {\n\t}", "public LinkException() {\n }", "SimpleLink createSimpleLink();", "public DBFKRelationPropertySheet ()\r\n {\r\n initComponents ();\r\n }", "public CCLayerGradientEntityLoader() {\n\t\tsuper(CCLayerGradientEntityLoader.ENTITY_NAMES);\n\t}", "public interface Link<T> extends ITable<T>, List<T>, RandomAccess {\r\n /**\r\n * Set number of the linked objects \r\n * @param newSize new number of linked objects (if it is greater than original number, \r\n * than extra elements will be set to null)\r\n */\r\n public void setSize(int newSize);\r\n \r\n /**\r\n * Returns <tt>true</tt> if there are no related object\r\n *\r\n * @return <tt>true</tt> if there are no related object\r\n */\r\n boolean isEmpty();\r\n\r\n /**\r\n * Get related object by index\r\n * @param i index of the object in the relation\r\n * @return referenced object\r\n */\r\n public T get(int i);\r\n\r\n /**\r\n * Get related object by index without loading it.\r\n * Returned object can be used only to get it OID or to compare with other objects using\r\n * <code>equals</code> method\r\n * @param i index of the object in the relation\r\n * @return stub representing referenced object\r\n */\r\n public Object getRaw(int i);\r\n\r\n /**\r\n * Replace i-th element of the relation\r\n * @param i index in the relartion\r\n * @param obj object to be included in the relation \r\n * @return the element previously at the specified position.\r\n */\r\n public T set(int i, T obj);\r\n\r\n /**\r\n * Assign value to i-th element of the relation.\r\n * Unlike Link.set methos this method doesn't return previous value of the element\r\n * and so is faster if previous element value is not needed (it has not to be fetched from the database)\r\n * @param i index in the relartion\r\n * @param obj object to be included in the relation \r\n */\r\n public void setObject(int i, T obj);\r\n\r\n /**\r\n * Remove object with specified index from the relation\r\n * Unlike Link.remove methos this method doesn't return removed element and so is faster \r\n * if it is not needed (it has not to be fetched from the database)\r\n * @param i index in the relartion\r\n */\r\n public void removeObject(int i);\r\n\r\n /**\r\n * Insert new object in the relation\r\n * @param i insert poistion, should be in [0,size()]\r\n * @param obj object inserted in the relation\r\n */\r\n public void insert(int i, T obj);\r\n\r\n /**\r\n * Add all elements of the array to the relation\r\n * @param arr array of obects which should be added to the relation\r\n */\r\n public void addAll(T[] arr);\r\n \r\n /**\r\n * Add specified elements of the array to the relation\r\n * @param arr array of obects which should be added to the relation\r\n * @param from index of the first element in the array to be added to the relation\r\n * @param length number of elements in the array to be added in the relation\r\n */\r\n public void addAll(T[] arr, int from, int length);\r\n\r\n /**\r\n * Add all object members of the other relation to this relation\r\n * @param link another relation\r\n */\r\n public boolean addAll(Link<T> link);\r\n\r\n /**\r\n * Return array with relation members. Members are not loaded and \r\n * size of the array can be greater than actual number of members. \r\n * @return array of object with relation members used in implementation of Link class\r\n */\r\n public Object[] toRawArray(); \r\n\r\n /**\r\n * Get all relation members as array.\r\n * The runtime type of the returned array is that of the specified array. \r\n * If the index fits in the specified array, it is returned therein. \r\n * Otherwise, a new array is allocated with the runtime type of the \r\n * specified array and the size of this index.<p>\r\n *\r\n * If this index fits in the specified array with room to spare\r\n * (i.e., the array has more elements than this index), the element\r\n * in the array immediately following the end of the index is set to\r\n * <tt>null</tt>. This is useful in determining the length of this\r\n * index <i>only</i> if the caller knows that this index does\r\n * not contain any <tt>null</tt> elements.)<p>\r\n * @return array of object with relation members\r\n */\r\n public <T> T[] toArray(T[] arr);\r\n\r\n /**\r\n * Checks if relation contains specified object instance\r\n * @param obj specified object\r\n * @return <code>true</code> if object is present in the collection, <code>false</code> otherwise\r\n */\r\n public boolean containsObject(T obj);\r\n\r\n /**\r\n * Check if i-th element of Link is the same as specified obj\r\n * @param i element index\r\n * @param obj object to compare with\r\n * @return <code>true</code> if i-th element of Link reference the same object as \"obj\"\r\n */\r\n public boolean containsElement(int i, T obj);\r\n\r\n /**\r\n * Get index of the specified object instance in the relation. \r\n * This method use comparison by object identity (instead of equals() method) and\r\n * is significantly faster than List.indexOf() method\r\n * @param obj specified object instance\r\n * @return zero based index of the object or -1 if object is not in the relation\r\n */\r\n public int indexOfObject(Object obj);\r\n\r\n /**\r\n * Get index of the specified object instance in the relation\r\n * This method use comparison by object identity (instead of equals() method) and\r\n * is significantly faster than List.indexOf() method\r\n * @param obj specified object instance\r\n * @return zero based index of the object or -1 if object is not in the relation\r\n */\r\n public int lastIndexOfObject(Object obj);\r\n\r\n /**\r\n * Remove all members from the relation\r\n */\r\n public void clear();\r\n\r\n /**\r\n * Get iterator through link members\r\n * This iterator supports remove() method.\r\n * @return iterator through linked objects\r\n */\r\n public Iterator<T> iterator();\r\n\r\n /**\r\n * Replace all direct references to linked objects with stubs. \r\n * This method is needed tyo avoid memory exhaustion in case when \r\n * there is a large numebr of objectys in databasse, mutually\r\n * refefencing each other (each object can directly or indirectly \r\n * be accessed from other objects).\r\n */\r\n public void unpin();\r\n \r\n /**\r\n * Replace references to elements with direct references.\r\n * It will impove spped of manipulations with links, but it can cause\r\n * recursive loading in memory large number of objects and as a result - memory\r\n * overflow, because garbage collector will not be able to collect them\r\n */\r\n public void pin(); \r\n}", "public Relation (String name, ArrayList<String> attributes, ArrayList<String> dNames) {\n this.name = name;\n this.attributes = attributes;\n this.domains = dNames;\n table = new ArrayList<Tuple>();\n }", "public AssociationClass(UmlClass lc, Relationship r) {\n\t // Initialize the values\n id = lc.getId();\n logicalClass = lc;\n relationship = r;\n\t}", "public EntityHierarchyItem() {\n }", "public void _linkClient(ModelElement client1);", "public OSLink( rcNode creator, HashMap hAttrs) {\n rcSource = creator;\n szSourcePort = (OSPort)hAttrs.get( \"SourcePort\");\n szDestPort = (String)hAttrs.get( \"DestinationPort\");\n szDestName =(String) hAttrs.get( \"DestinationName\");\n }", "public CopyEntityAttributes()\n\t{\n\t\tsetMandatory(ENTITY_PARAM, COPY_MODE);\n\t}", "public RelationObject(String relation, EVAnnotation relatum) {\n\t\tthis.relation = relation;\n\t\tthis.relatum = relatum;\n\t}", "public RelationIsA() {\r\n\t\tsuper();\r\n\t}", "public interface IRelationship<A extends IAttribute> extends IErdNode\n{\n\n /**\n * check the relationship, if the two connected entities are the same\n *\n * @return recursive\n */\n boolean isRecursive();\n\n /**\n * check if this relationship is a weak relationship\n * -> one of the entities is weak\n *\n * @return weak\n */\n boolean isWeakRelationship();\n\n /**\n * return the description of the relationship\n *\n * @return description\n */\n String getDescription();\n\n /**\n * create new attribute to relationship\n *\n * @param p_id name of the attribute\n * @param p_property of the attribute\n * @return self-reference\n */\n A createAttribute( @NonNull final String p_id, @Nonnull final String p_property );\n\n /**\n * get all connected attributes from the relationship in a map\n *\n * @return map with all attributes\n */\n Map<String, IAttribute> getConnectedAttributes();\n\n /**\n * connect entity incl. cardinality to the relationship\n *\n * @param p_entity name of the entity\n * @param p_cardinality cardinality\n * @return self-reference\n */\n IEntity<A> connectEntity( @NonNull final IEntity<IAttribute> p_entity, @NonNull final String p_cardinality );\n\n /**\n * return the connected entities in a map\n *\n * @return connected entities\n */\n Map<String, Collection<String>> getConnectedEntities();\n\n}", "public interface AttributeLink extends org.omg.uml.foundation.core.ModelElement {\n /**\n * Returns the value of reference attribute.\n * @return Value of reference attribute.\n */\n public org.omg.uml.foundation.core.Attribute getAttribute();\n /**\n * Sets the value of reference attribute. See {@link #getAttribute} for description \n * on the reference.\n * @param newValue New value to be set.\n */\n public void setAttribute(org.omg.uml.foundation.core.Attribute newValue);\n /**\n * Returns the value of reference value.\n * @return Value of reference value.\n */\n public org.omg.uml.behavioralelements.commonbehavior.Instance getValue();\n /**\n * Sets the value of reference value. See {@link #getValue} for description \n * on the reference.\n * @param newValue New value to be set.\n */\n public void setValue(org.omg.uml.behavioralelements.commonbehavior.Instance newValue);\n /**\n * Returns the value of reference instance.\n * @return Value of reference instance.\n */\n public org.omg.uml.behavioralelements.commonbehavior.Instance getInstance();\n /**\n * Sets the value of reference instance. See {@link #getInstance} for description \n * on the reference.\n * @param newValue New value to be set.\n */\n public void setInstance(org.omg.uml.behavioralelements.commonbehavior.Instance newValue);\n /**\n * Returns the value of reference linkEnd.\n * @return Value of reference linkEnd.\n */\n public org.omg.uml.behavioralelements.commonbehavior.LinkEnd getLinkEnd();\n /**\n * Sets the value of reference linkEnd. See {@link #getLinkEnd} for description \n * on the reference.\n * @param newValue New value to be set.\n */\n public void setLinkEnd(org.omg.uml.behavioralelements.commonbehavior.LinkEnd newValue);\n}", "protected DirectProductNodeModel() {\n\t\tsuper(2, 1);\n\t}", "public LinkButton() {\n\t\tsuper();\n\t\tinit();\n\t}", "public AbstractEntity() {\r\n\t}", "public EnsembleLettre() {\n\t\t\n\t}", "public CreditChainDao() {\n super(CreditChain.CREDIT_CHAIN, com.generator.tables.pojos.CreditChain.class);\n }", "public ACTable() {\r\n super();\r\n }", "public LinkedLists() {\n }", "protected GraphNode() {\n }", "protected GraphNode() {\n }", "@Test\n\tpublic void testAddLinkOkMult1toN() {\n\n\t\t// create 1 Address and 2 Persons\n\t\tAddress adr = new Address();\n\t\tPerson martin = new Person(\"\\\"Martin\\\" \\\"Bl�mel\\\" \\\"19641014\\\"\");\n\t\tPerson jojo = new Person(\"\\\"Johannes\\\" \\\"Bl�mel\\\" \\\"19641014\\\"\");\n\t\tAssert.assertNull(adr.getInhabitants());\n\t\tAssert.assertNull(martin.getAddress());\n\t\tAssert.assertNull(jojo.getAddress());\n\n\t\t// add the 2 Persons to the Address as inhabitants\n\t\tadr.addInhabitant(martin);\n\t\tadr.addInhabitant(jojo);\n\n\t\t// assert the Persons being linked to the Address\n\t\tAssert.assertEquals(2, adr.getInhabitants().size());\n\t\tIterator<?> iter = adr.getInhabitants().iterator();\n\t\tAssert.assertSame(martin, iter.next());\n\t\tAssert.assertSame(jojo, iter.next());\n\t\t// assert the Address being linked to both Persons implicitely\n\t\tAssert.assertSame(adr, martin.getAddress());\n\t\tAssert.assertSame(adr, jojo.getAddress());\n\t}", "public ClientEntity(final Entity e) {\r\n\t\tsuper(e);\r\n\t}", "public ItsNatImpl()\r\n {\r\n }", "public LinkListPessoa() // constructor\r\n\t{\r\n\t\tfirst = null;\r\n\t}", "public RelARelatorios() {\n initComponents();\n }", "public ShopArticle() {\r\n\t\tsuper();\r\n\t}", "public IDReferences()\n {\n idReferences = new Hashtable();\n idValidation = new Hashtable();\n }", "public Orders()\n {\n setEntityDelegate(DELEGATE);\n _init();\n }", "@Override\n public void init(Entity entity) {\n entity.add(AI_DATA, new BuildingSpawnerStratAIData());\n }", "@Override\n\tpublic void entityDeclaration() {\n\t\t\n\t}", "public EnchantArrow(Projectile entity) {\r\n this(entity, 0);\r\n }", "public MMCAgent() {\n\n\t}", "public DLL(){\r\n\t\tsize=0;\r\n\t\tfirst=new CustomerNode<Customer>();\r\n\t\tlast=new CustomerNode<Customer>();\r\n\t\tfirst.setNext(last);\r\n\t\tlast.setPrev(first);\r\n\t}", "public Entity( int x, int y){\n this.x = x;\n this.y = y;\n }", "ReferenceLink createReferenceLink();", "@PostConstruct\n public void initRoad(){\n LinearReference();\n }", "protected AddTranscriptNodeModel() {\r\n this(1,2);\r\n }", "public RelationshipNode( metamodel.Relationship r ) {\n this.relationship = r;\n }", "public Entity() {\n this.position = new Point(0,0);\n realX=0;\n realY=0;\n }", "public Link(DvText meaning, DvText type, DvEHRURI target) {\n if(meaning == null) {\n throw new IllegalArgumentException(\"null meaning\");\n }\n if(type == null) {\n throw new IllegalArgumentException(\"null type\");\n }\n if(target == null) {\n throw new IllegalArgumentException(\"null target\");\n }\n this.meaning = meaning;\n this.type = type;\n this.target = target;\n }", "public NodeLinkManager(Node node) throws RemoteException\n\t{\n\t\tnodeLinks = new NodeLinks(node);\n\t}", "public Article() {\n\t}", "@Override\n\tprotected void start () {\n\t\tsuper.start();\t\t\n\t\tncName = mNode.getAttribute( AT_LINK_NAME );\n\n\t}", "public RoadAgent(String startNode, String endNode, Point startPosition, Point endPosition, String roadBelongingType)\r\n\t{\r\n\t\tthis.startNode = startNode;\r\n\t\tthis.endNode = endNode;\r\n\t\tthis.startPosition = startPosition;\r\n\t\tthis.endPosition = endPosition;\r\n\t\tthis.roadBelongingType = roadBelongingType;\r\n\t}", "public Entity(String ref,int x,int y) {\n\t\tthis.sprite = SpriteStore.get().getSprite(ref);\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}", "public void from(cn.vertxup.atom.domain.tables.interfaces.IMRelation from);", "private void initEntities() {\n\t\tship = new ShipEntity(this,\"ship.gif\",370,550);\n\t\tentities.add(ship);\n\t\tscore = 0;\n\t\t// create a block of aliens (5 rows, by 12 aliens, spaced evenly)\n\t\talienCount = 0;\n\t\tfor (int row=0;row<5;row++) {\n\t\t\tfor (int x=0;x<12;x++) {\n\t\t\t\tEntity alien = new AlienEntity(this,\"alien.gif\",100+(x*50),(50)+row*30);\n\t\t\t\tentities.add(alien);\n\t\t\t\talienCount++;\n\t\t\t}\n\t\t}\n\t}", "public StudentSubjectLink() {\n this(DSL.name(\"student_subject_link\"), null);\n }", "public Relation(String relationString, MinecraftObject obj,\n ImmutableList<MinecraftObject> otherob) {\n this(relationString, EnumSet.noneOf(Aspects.class), obj, otherob);\n }" ]
[ "0.6985306", "0.6650387", "0.6523312", "0.63983077", "0.63958997", "0.639019", "0.63633317", "0.63190186", "0.6260647", "0.61578566", "0.6072709", "0.59755176", "0.5969509", "0.59667385", "0.5942489", "0.59314007", "0.59152997", "0.58642596", "0.58603394", "0.5841855", "0.5838912", "0.58374023", "0.5823888", "0.57948655", "0.57778865", "0.5750557", "0.5740141", "0.5707784", "0.5697024", "0.5686958", "0.56688184", "0.5650301", "0.56030166", "0.5579071", "0.5575607", "0.55570924", "0.5551617", "0.5548324", "0.55304897", "0.5524285", "0.5515424", "0.55083936", "0.55040896", "0.55031395", "0.5502062", "0.54939413", "0.54909223", "0.5490622", "0.5474508", "0.54656017", "0.5457422", "0.5446187", "0.5427528", "0.54177827", "0.54077476", "0.5407224", "0.5406807", "0.5386054", "0.53826016", "0.5376694", "0.5372705", "0.53632396", "0.53566015", "0.53546983", "0.53488195", "0.5344286", "0.5321488", "0.5313012", "0.5307066", "0.52986544", "0.52894956", "0.52894956", "0.5289042", "0.52820784", "0.5277189", "0.5275944", "0.5272728", "0.5270225", "0.52646625", "0.5262287", "0.5257943", "0.5255097", "0.52421093", "0.523691", "0.5236637", "0.5230896", "0.5230505", "0.52261555", "0.5223553", "0.52095586", "0.5208293", "0.5201048", "0.5195503", "0.5187039", "0.5186694", "0.51785076", "0.51776725", "0.5174001", "0.5171925", "0.51696193", "0.5166819" ]
0.0
-1
GETTER & SETTER FOR THE KEY FIELD GETTERS & SETTERS FOR FIELDS DATABASE MAPPING : prl_key ( BIGINT )
public void setPrlKey( Long prlKey ) { this.prlKey = prlKey; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "org.apache.calcite.avatica.proto.Common.DatabaseProperty getKey();", "public void setKey( Long key ) {\n this.key = key ;\n }", "public KeyField getKey() {\n\treturn keyField;\n }", "public int getKey(){\n return key;\n }", "public void setKey(int key){\r\n this.key = key; \r\n }", "@Override\n public String getKey()\n {\n return id; \n }", "public void setIdkey(String pIdkey){\n this.idkey = pIdkey;\n }", "public KeyField getKeyField() {\n\treturn keyField;\n }", "public Object get_KeyValue(){return\t\t\t Id;}", "int getKey();", "int getKey();", "abstract public String getKey();", "Key getPrimaryKey();", "public java.lang.String getKey(){\n return localKey;\n }", "int getKey() {\n return this.key;\n }", "@Override\n public int getKey() {\n return key_;\n }", "@Override\n public int getKey() {\n return this.key;\n }", "public long getKeyID()\n {\n return keyID;\n }", "void setLong(String key, long val);", "void setKey(int key);", "@Override\n public int getKey() {\n return key_;\n }", "@Override\n public void setPrimaryKey(java.lang.Object key) {\n\n mnDbmsType = ((int[]) key)[0];\n mnPkYearId = ((int[]) key)[1];\n mnPkTypeCostObjectId = ((int[]) key)[2];\n mnPkRefCompanyBranchId = ((int[]) key)[3];\n mnPkRefReferenceId = ((int[]) key)[4];\n mnPkRefEntityId = ((int[]) key)[5];\n mnPkBizPartnerId = ((int[]) key)[6];\n mtDbmsDateStart = ((java.util.Date[]) key)[7];\n mtDbmsDateEnd = ((java.util.Date[]) key)[8];\n }", "org.apache.calcite.avatica.proto.Common.DatabasePropertyOrBuilder getKeyOrBuilder();", "@Override\n public int key() {\n return this.key;\n }", "@Override\n\tpublic String getKey() {\n\t\treturn id+\"\";\n\t}", "public abstract String getRefKey();", "@Id\n @Column(name=\"term_key\")\n public int getTermKey() {\n\treturn termKey;\n }", "private void setKey() {\n\t\t \n\t}", "public abstract int getKeybind();", "public void setKey(int key);", "public void setKey(int key);", "@Override\n\t\tpublic K getKey(){\n\t\t\treturn key;\n\t\t}", "public int keyId() {\n return keyId;\n }", "public int getKey() {\r\n return key;\r\n }", "public int getKey() {\n return this.key;\n }", "public void setPrlPinKey( Long prlPinKey ) {\n this.prlPinKey = prlPinKey;\n }", "BListKey getKey();", "public Integer getKey()\r\n {\r\n return key;\r\n }", "public void setKey(java.lang.String param){\n localKeyTracker = true;\n \n this.localKey=param;\n \n\n }", "public void setPk(double pk)\n {\n this.pk = pk;\n }", "public IdKey getKey() {\n return idKey;\n }", "protected long getUniqueLong(FieldDescriptor field) throws SequenceManagerException\n {\n return ++tempKey;\n }", "public K llave() {\n return key;\n }", "Object getKey();", "public void setKeyField(KeyField k) {\n\tkeyField = k;\n }", "@Override\n public String getKey() {\n return key;\n }", "public String getKey();", "public String getKey();", "public String getKey();", "public String getKey();", "public abstract FieldKey getParticipantIDFieldKey(Map<LinkToStudyKeys, FieldKey> fieldKeyMap);", "private com.hps.july.persistence.CarKey keyFromFields ( int f0 ) {\n com.hps.july.persistence.CarKey keyClass = new com.hps.july.persistence.CarKey();\n keyClass.car = f0;\n return keyClass;\n }", "protected String getKey(String baseKey){\n \treturn getKey(baseKey, id);\n }", "public int getKey() {\n return key;\n }", "public TableKey getKey() {\n \treturn key;\n }", "@Override\n protected final Object getKey()\n {\n return this;\n }", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "private void setKey(String key){\n\t\tthis.key=key;\n\t}", "public void setPrimaryKey(ObjectKey key) throws TorqueException\n {\n SimpleKey[] keys = (SimpleKey[]) key.getValue();\n SimpleKey tmpKey = null;\n setMailId(((NumberKey)keys[0]).intValue());\n setReceiverId(((NumberKey)keys[1]).intValue());\n }", "String getLongNameKey();", "PrimaryKey getPrimaryKey();", "public Long L(String key) throws AgentBuilderRuntimeException {\n\t\treturn getLong(key);\n\t}", "public void setRowKeyProperty(String rowKeyProperty)\n {\n _rowKeyProperty = rowKeyProperty;\n }", "public static String getKey(){\n\t\treturn key;\n\t}", "@Test\n public void testSetPK() {\n System.out.println(\"setPK\");\n int pk = 5;\n Regime instance = r1;\n instance.setPK(pk);\n int result=instance.getPK();\n int expResult=5;\n assertEquals(expResult, result);\n }", "private String key(RepositoryModel repository, KeyType key, long id) {\n\t\treturn key(repository, key, \"\" + id);\n\t}", "public interface IKeyNumber extends IEntityDao<KeyNumber> {\n Integer nextNumber(final String key);\n\n Integer currNumber(final String key);\n}", "public int getKeyNumber()\r\n {\r\n return number_of_key;\r\n }", "public String getKey() {\n\treturn key;\n }", "@Override\n\tpublic String getKey() {\n\t\treturn key;\n\t}", "public int getKey() {\n\t\treturn 0;\n\t}", "void setKeyNumber(int number)\r\n {\r\n number_of_key = number;\r\n }", "private com.hps.july.persistence.StoragePlaceKey keyFromFields ( int f0 ) {\n com.hps.july.persistence.StoragePlaceKey keyClass = new com.hps.july.persistence.StoragePlaceKey();\n keyClass.storageplace = f0;\n return keyClass;\n }", "public Object getKey() {\r\n return key;\r\n }", "@Override\n\tpublic void baja(Integer pk) {\n\t\t\n\t}", "public org.apache.calcite.avatica.proto.Common.DatabasePropertyOrBuilder getKeyOrBuilder() {\n return getKey();\n }", "public char getKey(){ return key;}", "private com.hps.july.persistence.SuperRegionAccKey keyFromFields ( int f0 ) {\n com.hps.july.persistence.SuperRegionAccKey keyClass = new com.hps.july.persistence.SuperRegionAccKey();\n keyClass.accessid = f0;\n return keyClass;\n }", "void setKey(String key);", "public Key getKey()\r\n { \r\n return key; \r\n }", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "public int getKey() {\n\t\t\treturn this.key; // to be replaced by student code\n\t\t}", "@Override\n default String getKey(){\n return key();\n }", "public org.apache.calcite.avatica.proto.Common.DatabaseProperty getKey() {\n return key_ == null ? org.apache.calcite.avatica.proto.Common.DatabaseProperty.getDefaultInstance() : key_;\n }", "PmKeyDbObj selectByPrimaryKey(Integer pmKeyId);" ]
[ "0.63549554", "0.6342529", "0.61684036", "0.61423427", "0.61354625", "0.610626", "0.6100517", "0.607837", "0.6026477", "0.602215", "0.602215", "0.60000885", "0.59613717", "0.59593695", "0.5934355", "0.5903527", "0.5895749", "0.5889531", "0.58705753", "0.58590263", "0.5832053", "0.58119565", "0.58109725", "0.5792016", "0.5781717", "0.5780048", "0.5759529", "0.5747276", "0.5747124", "0.574439", "0.574439", "0.5729074", "0.57013994", "0.5691945", "0.56679", "0.56678045", "0.56670344", "0.5662413", "0.56500554", "0.5641685", "0.56411284", "0.5629198", "0.5624496", "0.56234366", "0.5601097", "0.5588907", "0.5565865", "0.5565865", "0.5565865", "0.5565865", "0.55539036", "0.55537933", "0.5549804", "0.55467474", "0.55413854", "0.55377376", "0.5514848", "0.5514848", "0.5514848", "0.5514848", "0.55091196", "0.5507568", "0.55051535", "0.54989964", "0.5498578", "0.54724896", "0.5471652", "0.5467159", "0.5449917", "0.544537", "0.54365987", "0.5432079", "0.5428843", "0.5428832", "0.54246485", "0.5424005", "0.5423533", "0.54171294", "0.54155105", "0.5413222", "0.540781", "0.5403143", "0.5398412", "0.5397512", "0.5397512", "0.5397512", "0.5397512", "0.5397512", "0.5397512", "0.5397512", "0.5397512", "0.5397512", "0.5397512", "0.5397512", "0.5397512", "0.5397512", "0.5396904", "0.53955805", "0.53881955", "0.5387729" ]
0.65149933
0
DATABASE MAPPING : prl_pin_key ( BIGINT )
public void setPrlPinKey( Long prlPinKey ) { this.prlPinKey = prlPinKey; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPinKey() {\r\n return pinKey;\r\n }", "public void setPrlKey( Long prlKey ) {\n this.prlKey = prlKey;\n }", "public void setApsPinKey( Long apsPinKey ) {\n this.apsPinKey = apsPinKey;\n }", "int getPinNumber();", "public void setPinKey(String pinKey) {\r\n this.pinKey = pinKey == null ? null : pinKey.trim();\r\n }", "public short key();", "public void setKey( Long key ) {\n this.key = key ;\n }", "private Integer newPrimaryKey( )\n {\n DAOUtil daoUtil = new DAOUtil( SQL_QUERY_NEW_PK );\n daoUtil.executeQuery( );\n Integer nKey = null;\n\n if ( daoUtil.next( ) )\n {\n nKey = daoUtil.getInt( 1 );\n }\n else\n {\n nKey = 1;\n }\n daoUtil.close( );\n\n return nKey.intValue( );\n }", "public void setConnectionKey(long value) {\n\t\tthis.connectionKey = value;\n\t}", "Key getPrimaryKey();", "public PIEBankPlatinumKey(java.lang.String argIdbankplatinum, int argOwner) {\n\tidbankplatinum = argIdbankplatinum;\n\towner = argOwner;\n}", "short generateKeyAndWrap(byte[] applicationParameter, short applicationParameterOffset, byte[] publicKey, short publicKeyOffset, byte[] keyHandle, short keyHandleOffset, byte info);", "public PIEBankPlatinumKey() {\n\tsuper();\n}", "private int newPrimaryKey( )\n {\n int nKey;\n DAOUtil daoUtil = new DAOUtil( SQL_QUERY_NEW_PK );\n\n daoUtil.executeQuery( );\n\n if ( daoUtil.next( ) )\n {\n nKey = daoUtil.getInt( 1 ) + 1;\n }\n else\n {\n // If the table is empty\n nKey = 1;\n }\n\n daoUtil.free( );\n\n return nKey;\n }", "PrimaryKey createPrimaryKey();", "public String getPIN();", "OpenSSLKey mo134201a();", "public String getPincode() {\r\n\t\treturn pincode;\r\n\t}", "public long key()\n\t\t{\n\t\t\treturn nid.key();\n\t\t}", "public String getPIN() {\n return PIN;\n }", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void setPrimaryKey(long primaryKey);", "public void pin();", "public void pin();", "int getProductKey();", "public void setSourcePortKey(long value) {\n\t\tthis.sourcePortKey = value;\n\t}", "public long getKey()\r\n {\r\n return bitboard + mask;\r\n }", "public void setIdkey(String pIdkey){\n this.idkey = pIdkey;\n }", "String getPIN() {\n\t\treturn PIN;\n\t}", "PmKeyDbObj selectByPrimaryKey(Integer pmKeyId);", "public void setPrimaryKey(long primaryKey) {\n this.primaryKey = primaryKey;\n }", "private static String generateServerKey(Poi poi) {\n LonLat viewPoint = poi.getViewPosition();\n int lon = viewPoint.getLonInt();\n int lat = viewPoint.getLatInt();\n int alt = viewPoint.getAltInt();\n return generateServerKey(poi.getName(), poi.getAddress(), lon, lat, alt);\n }", "@Override\n public String createRecoveryKey() {\n nextRecoveryKey++;\n return Integer.toString(nextRecoveryKey);\n }", "public void setPIN (String PIN);", "private int newPrimaryKey( Plugin plugin )\n {\n DAOUtil daoUtil = new DAOUtil( SQL_QUERY_NEW_PK, plugin );\n daoUtil.executeQuery( );\n\n int nKey;\n\n if ( !daoUtil.next( ) )\n {\n // if the table is empty\n nKey = 1;\n }\n\n nKey = daoUtil.getInt( 1 ) + 1;\n daoUtil.free( );\n\n return nKey;\n }", "DigitalPin createDigitalPin();", "private long packValues(int key, int next) {\n return ((long)next << 32) | ((long)key & 0xFFFFFFFFL);\n }", "PrimaryKey getPrimarykey();", "private KeyStore askForPin() throws KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException {\n char newPin[] = PinDialog.getPIN(this.providerDesc);\n try {\n KeyStore ks = getKeyStore(newPin);\n pin = newPin;\n return ks;\n } catch (IOException e2) {\n e2.printStackTrace();\n if (e2.getCause() instanceof LoginException) {\n JOptionPane.showMessageDialog(null, \"Wrong PIN\", \"Cryptographic card\", JOptionPane.WARNING_MESSAGE);\n }\n throw e2;\n }\n }", "public int getRsaKeyB(){\n\treturn this.rsaKeyB;\n }", "public String getMinKey();", "private String generatePrimaryKey(Connection conn, String tableName) {\n String returnValue = null;\n String existingPkValue = null;\n String nextPkValue = null;\n\n try {\n existingPkValue = sql.selectKeyValueFromLastUsedKey(conn, tableName);\n\n if (existingPkValue == null) {\n System.out.println(\"Last used key value is NULL\");\n return null;\n }\n // remove first 1 alphabetic characters from this\n String prefix = existingPkValue.substring(0, 1);\n String existingPkValueWithPrefixStripped = existingPkValue.substring(1);\n\n // get number of characters in lastUsedId\n int completeLength = existingPkValueWithPrefixStripped.length();\n\n // convert lastUsedId into number\n int existingIdNum = 0;\n existingIdNum = Integer.parseInt(existingPkValueWithPrefixStripped.trim());\n\n // add 1 to this number\n int nextIdNum = existingIdNum + 1;\n\n // convert this number back to String\n String nextId = String.valueOf(nextIdNum);\n int newLength = nextId.length();\n // depending on the number of characters calculated initially,\n int zeroes = completeLength - newLength;\n // prefix Zeros accordingly to this String\n for (int i = 1; i <= zeroes; i++) {\n nextId = \"0\" + nextId;\n }\n\n // add the 4 character alphabetic prefix to this string\n nextPkValue = prefix + nextId;\n\n // update the system_last_used_id table\n sql.updateLastUsedPrimaryKeyValue(conn, tableName, nextPkValue);\n returnValue = nextPkValue;\n } catch (NumberFormatException ex) {\n System.out.println(\"generatePrimaryKey: \" + ex.getMessage());\n }\n return returnValue;\n\n }", "java.lang.String getPubkey();", "public void setPknum(Integer pknum) {\n this.pknum = pknum;\n }", "public long getMandatoryLong(String key) throws ConfigNotFoundException;", "public String getPin() {\n return this.pin;\n }", "public static SaplingExtendedSpendingKey m10458a(HDSeed brq) {\n long j;\n byte[] c = brq.mo42963c();\n byte[] bArr = new byte[169];\n if (c == null) {\n j = 0;\n } else {\n j = (long) c.length;\n }\n RustZCash.zip32_xsk_master(c, j, bArr);\n try {\n SaplingExtendedSpendingKey brw = new SaplingExtendedSpendingKey();\n brw.decodeSerialStream(bArr, 0);\n return brw;\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }", "public long getKeyID()\n {\n return keyID;\n }", "String getLongNameKey();", "public String getPin() {\n\t\treturn pin;\n\t}", "@Test\n public void setPrimaryKey_length_good_case_min()\n {\n // Arrange\n String key = \"0123456789012345\";\n SymmetricKey symmetricKey = new SymmetricKey();\n // Act\n symmetricKey.setPrimaryKeyFinal(key);\n // Assert\n assertEquals(key, Deencapsulation.getField(symmetricKey, \"primaryKey\"));\n }", "public void setPin(int pin);", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_phieugiahan.setPrimaryKey(primaryKey);\n\t}", "public Pin(int pin) {\r\n if (is4Digit(pin))\r\n this.pin = pin;\r\n }", "boolean containsKey(long key);", "public long getSurrogateKey()\n {\n \n return __surrogateKey;\n }", "byte[] getActualRowKey(ConsumerConfig consumerConfig, byte[] originalRowKey);", "long nextUniqueKey() throws IOException;", "Pin createPin();", "public int newPrimaryKey( Plugin plugin)\n {\n DAOUtil daoUtil = new DAOUtil( SQL_QUERY_NEW_PK , plugin );\n daoUtil.executeQuery( );\n\n int nKey = 1;\n\n if( daoUtil.next( ) )\n {\n nKey = daoUtil.getInt( 1 ) + 1;\n }\n\n daoUtil.free();\n\n return nKey;\n }", "void setKey(int key);", "private boolean needPIN() {\n return datafacade.getInt(\"pin\")!=-1;\n }", "public void setDestinationPortKey(long value) {\n\t\tthis.destinationPortKey = value;\n\t}", "public void setPincode(java.lang.String pincode) {\r\n this.pincode = pincode;\r\n }", "public int newPrimaryKey( Plugin plugin )\r\n {\r\n DAOUtil daoUtil = new DAOUtil( SQL_QUERY_NEW_PK, plugin );\r\n daoUtil.executeQuery( );\r\n\r\n int nKey;\r\n\r\n daoUtil.next( );\r\n\r\n nKey = daoUtil.getInt( 1 ) + 1;\r\n daoUtil.free( );\r\n\r\n return nKey;\r\n }", "int insert(Lbm83ChohyokanriPkey record);", "@Override\n\tpublic String getPK(){\n\t\treturn parkOpeningNo;\n\t}", "int getKey();", "int getKey();", "public ECP getPublicKGCKey(){return pkS;}", "@Test\n public void setPrimaryKey_length_good_case_max()\n {\n // Arrange\n String key = \"0123456789012345678901234567890123456789012345678901234567890123\";\n SymmetricKey symmetricKey = new SymmetricKey();\n // Act\n symmetricKey.setPrimaryKeyFinal(key);\n // Assert\n assertEquals(key, Deencapsulation.getField(symmetricKey, \"primaryKey\"));\n }", "public String selectPKAuthKeys(int id) throws SQLException {\n String sql = \"SELECT publickey FROM authenticatedkeys WHERE id_user=?\";\n\n try (Connection conn = this.connect(); PreparedStatement pstmt = conn.prepareStatement(sql)) {\n \n pstmt.setInt(1, id);\n ResultSet rs = pstmt.executeQuery();\n String value = rs.getString(\"publickey\");\n\n return value;\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n return \"\";\n }\n }", "public void setKey(int key);", "public void setKey(int key);", "public java.lang.String getBnft_pin_num() {\n\t\treturn bnft_pin_num;\n\t}", "short getDefaultKeyIx();", "public void setPin(java.lang.String pin) {\r\n this.pin = pin;\r\n }", "public String selectPKUser(int id) {\n String sql = \"SELECT publickey FROM users WHERE id = ?\";\n\n try (Connection conn = this.connect(); PreparedStatement pstmt = conn.prepareStatement(sql)) {\n pstmt.setInt(1, id);\n ResultSet rs = pstmt.executeQuery();\n String value = rs.getString(\"publickey\");\n return value;\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n return \"\";\n }\n }", "java.lang.String getPublicEciesKey();", "public void setPrimaryKey(long primaryKey) {\n\t\t_tempNoTiceShipMessage.setPrimaryKey(primaryKey);\n\t}", "public java.lang.String getPincode() {\r\n return pincode;\r\n }", "public void setKinkenriyou11(Long kinkenriyou11) {\r\n this.kinkenriyou11 = kinkenriyou11;\r\n }", "public int newPrimaryKey( Plugin plugin )\n {\n DAOUtil daoUtil = new DAOUtil( SQL_QUERY_NEW_PK, plugin );\n daoUtil.executeQuery( );\n\n int nKey;\n\n if ( !daoUtil.next( ) )\n {\n // if the table is empty\n nKey = 1;\n }\n\n nKey = daoUtil.getInt( 1 ) + 1;\n daoUtil.free( );\n\n return nKey;\n }", "public static String md5PrefixedKey(long key) {\n String stringKey = Long.toString(key);\n String md5hash = MD5Hash.getMD5AsHex(Bytes.toBytes(stringKey));\n\n // flip the key to randomize\n return md5hash + \"-\" + stringKey;\n }", "long nextLong();" ]
[ "0.65403783", "0.63427234", "0.58245564", "0.57382154", "0.5679003", "0.55964714", "0.5587527", "0.55266434", "0.5495033", "0.5464542", "0.5429753", "0.5422805", "0.5419639", "0.53772956", "0.537299", "0.5332977", "0.53327966", "0.53251815", "0.53243744", "0.5315007", "0.53124726", "0.53124726", "0.53124726", "0.53124726", "0.53124726", "0.53124726", "0.53124726", "0.53124726", "0.53124726", "0.53124726", "0.53124726", "0.53124726", "0.53124726", "0.53124726", "0.53124726", "0.53124726", "0.53124726", "0.5302484", "0.5302484", "0.5300215", "0.5297491", "0.5291628", "0.5284615", "0.52840686", "0.5283888", "0.52835375", "0.5279896", "0.527869", "0.52695626", "0.52636254", "0.5259223", "0.52578765", "0.5256824", "0.525426", "0.5217629", "0.5209816", "0.52082115", "0.52079034", "0.520397", "0.52018017", "0.51976264", "0.5196377", "0.519282", "0.51881105", "0.518181", "0.51806134", "0.5178524", "0.5173187", "0.51710826", "0.516226", "0.5152824", "0.51507866", "0.5142675", "0.51214486", "0.51128465", "0.510525", "0.50897396", "0.5088951", "0.508451", "0.50810057", "0.50799555", "0.5071777", "0.5061082", "0.5061082", "0.5060383", "0.505575", "0.50536853", "0.50519556", "0.50519556", "0.5045255", "0.50437087", "0.5043455", "0.504158", "0.50370365", "0.5027898", "0.50264794", "0.5021302", "0.5015778", "0.5014442", "0.5012887" ]
0.6936636
0
DATABASE MAPPING : prl_first_name ( TEXT )
public void setRelationshipGroupName( String relationshipGroupName ) { this.relationshipGroupName = relationshipGroupName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFirstName(java.lang.CharSequence value) {\n this.first_name = value;\n }", "public void setFirst_name(String first_name) {\n this.first_name = first_name;\n }", "public void setFirst_name(java.lang.String first_name) {\n this.first_name = first_name;\n }", "public java.lang.CharSequence getFirstName() {\n return first_name;\n }", "public void setFirst_name(String first_name);", "public void showFirstName() {\n Cursor cursor = db.firstName();\n if (cursor.getCount() > 0) {\n while (cursor.moveToNext()) {\n firstName.setText(cursor.getString(cursor.getColumnIndex(\"firstName\")));\n }\n } else {\n Toast.makeText(getApplicationContext(), \"NO DATA\", Toast.LENGTH_LONG).show();\n }\n }", "public String getFirst_name_textFieldText() {\n return first_name_textField.getText();\n }", "public java.lang.CharSequence getFirstName() {\n return first_name;\n }", "public String getFirstName() {\r\n return insertMode ? \"\" : stringValue(CONTACTS_FIRST_NAME);\r\n }", "public void setFirstName(String fname) {\n firstNameField.setText(fname);\n }", "@AutoEscape\n\tpublic String getFirst_name();", "public void setFirstname(String firstname) {\n this.firstname = firstname;\n }", "public void setFirstname(String firstname) {\n this.firstname = firstname;\n }", "public void setFirstname(String firstname) {\r\n\t\tthis.firstname = firstname;\r\n\t}", "public String getFirst_name() {\n return first_name;\n }", "public FirstName(String entryString){\n super(entryString);\n }", "public void setLast_name(String last_name);", "public com.politrons.avro.AvroPerson.Builder setFirstName(java.lang.CharSequence value) {\n validate(fields()[4], value);\n this.first_name = value;\n fieldSetFlags()[4] = true;\n return this; \n }", "java.lang.String getFirstName();", "java.lang.String getFirstName();", "public String getFirstName() {\n return firstNameField.getText();\n }", "public String getFirstname() {\r\n\t\treturn firstname;\r\n\t}", "public void setLastName(java.lang.CharSequence value) {\n this.last_name = value;\n }", "public String getFirstname() {\n return (String) get(\"firstname\");\n }", "public String getFirstname() {\n\t\treturn firstname;\n\t}", "public java.lang.String getFirst_name() {\n return first_name;\n }", "String getFirstName();", "String getFirstName();", "String getFirstName();", "@AutoEscape\n\tpublic String getFirstName();", "public void name(String first, String last) {\r\n String display = first + \" \" + last;\r\n textName.setText(display);\r\n }", "public void setLastName(java.lang.CharSequence value) {\n this.lastName = value;\n }", "Name(String fName, String lName) {\n if (fName.length() == 0 || lName.length() == 0) {\n throw new IllegalArgumentException(\"first \" +\n \"and/or last name cannot be empty\");\n }\n this.firstName = Utilities.capitalizeString(fName);\n this.lastName = Utilities.capitalizeString(lName);\n this.initials = createInitials(getFirstName(), getLastName());\n }", "String getFirstName( String key ) {\n return developer.firstName;\n }", "public void setFirstName( String first )\r\n {\r\n firstName = first;\r\n }", "public java.lang.String getFirstName();", "public String getGoogleUserFirstName(){\n return (String) attributes.get(GOOGLE_USER_FIRST_NAME);\n }", "@Override\n\t public void onCreate(SQLiteDatabase db) {\n\t db.execSQL(\n\t \"create table contacts \" +\n\t \"(id integer primary key, name text,phone text,last text, state text,place text)\"\n\t );\n\t }", "public void setFirstName(String fname){ firstName.set(fname); }", "protected void setFirstName(String first)\n {\n firstName = first;\n }", "@Override\r\n\tpublic String getFistName() {\n\t\treturn first_name;\r\n\t}", "public String getFirstNameFieldName() {\n return getStringProperty(FIRST_NAME_FIELD_NAME_KEY);\n }", "java.lang.String getSurname();", "String getSurname();", "public void setFirstName(String fName) {\n this.firstName = fName;\n }", "public void setLastname(String lastname);", "public FirstName() {\n super();\n }", "public void setLast_name(String last_name) {\r\n this.last_name = last_name;\r\n }", "public void setFirstName(String fn)\n\t{\n\t\tfirstName = fn;\n\t}", "public String getFirstName()\r\n\t{\r\n\t\treturn firstName.getModelObjectAsString();\r\n\t}", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setLast_name(String last_name) {\n this.last_name = last_name;\n }", "public void setFirstName(String firstName){\r\n\t\tthis.firstName = firstName;\r\n\t}", "@Override\r\n\tpublic void setFistName(String fname) {\n\t\tif (fname == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"Null argument is not allowed\");\r\n\t\t}\r\n\t\tif (fname.equals(\"\")) {\r\n\t\t\tthrow new IllegalArgumentException(\"Empty argument is not allowed\");\r\n\t\t}\r\n\t\tthis.first_name = fname;\r\n\t}", "void setFirstName(String firstName);", "public String getFirstName();", "public void setFirstname(String firstname) throws SQLException\r\n\t{\r\n\t\tif (firstname == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString SQL_USER = \"UPDATE user SET firstname =? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setString(1, firstname);\r\n\t\t\tstatement.setInt(2, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setFirstname(String \"+ firstname + \")\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}", "@Override\n\tpublic void FirstName(String firstName) {\n\t\t\n\t}", "String getLastName();", "String getLastName();", "public Builder setFirstName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n firstName_ = value;\n onChanged();\n return this;\n }", "private String getFirstName() {\n System.out.println(\"Enter Your Last Name Of First Letter In Capital \");\n return sc.next();\n }", "public void setFirstName(String firstName) {\n if (firstName.length() >= 3 && firstName.length() <= 20)\n this.firstName = firstName;\n }", "public String firstName() { return firstName; }", "public String getFirstName() {\n return fName;\n }", "public Builder setFirstName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n firstName_ = value;\n onChanged();\n return this;\n }", "public Builder setFirstName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n firstName_ = value;\n onChanged();\n return this;\n }", "public String getFirstName() {\n\t\treturn this.FirstName ;\n\t}", "public void setLastName(String lname) {\n lastNameField.setText(lname);\n }", "public void setFirstName(String firstName) {\r\n this.firstName = firstName;\r\n }", "public String getFirstName(){\r\n\t\treturn firstName;\r\n\t}", "public void getFirstAndLastName( String name ){//\r\n String nameNew = name.trim();\r\n String[] arr = nameNew.split(\"\\\\s\");\r\n firstName = arr[0];\r\n lastName = arr[1];\r\n }", "public String getFirstName() {\n return userItem.getFirstName();\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String newFirstName) {\n this.firstName = newFirstName;\n }", "public void setFirstName(String s) {\r\n\t\tfirstName = s;\t\r\n\t}", "public String getFirstName() {\n\t\treturn getfirstName.getText();\n\t}", "public void setFirstName(String firstName)\r\n {\r\n this.firstName = firstName;\r\n }", "public void setFirstName() {\n\n\t}", "public String getFirstName()\n\t{\n\t\t//local consants\n\n\t\t//local variables\n\n\t\t/*******************************************************************************/\n\n\t\t//Return the firstName.\n\t\treturn firstName;\n\n\t}", "public void setFirstName(String firstName)\n\t{\n\t\tthis.firstName = firstName;\n\t}", "public String getNameFirst() {\n\t\t\treturn nameFirst;\n\t\t}", "public String getFirstName(){\r\n return firstname;\r\n }", "public CustomerAddressQuery firstname() {\n startField(\"firstname\");\n\n return this;\n }", "public void setFirstName(String firstName) {\r\n\t\tthis.firstName = firstName;\r\n\t}", "public void setFirstName(String firstName) {\r\n\t\tthis.firstName = firstName;\r\n\t}", "public String getFirstName(){\n\t\treturn this.firstName;\r\n\t}", "public void setFirstName(java.lang.String firstName) {\r\n this.firstName = firstName;\r\n }", "public void setFirstName(java.lang.String firstName) {\r\n this.firstName = firstName;\r\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n String sqlQuery = \"create table \" + TABLE_FRIENDS + \"( \";\n sqlQuery += ID + \" integer primary key autoincrement, \";\n sqlQuery += FIRST_NAME + \" text, \" + LAST_NAME + \" text, \" + EMAIL_ADDRESS + \" text )\";\n\n db.execSQL(sqlQuery);\n }", "public void setFirstName(String fName){\n\t\t//If the user hits cancel a null is sent. Error message to let the user know they must enter a first name. \n\t\tif(fName == null){\n\t\t\tthrow new IllegalArgumentException(\"Sorry, but a first name must be entered.\");\n\t\t}\n\t\t\n\t\t//If the name is blank then an exception is thrown to inform the user.\n\t\tif(fName.trim().equals(\"\")){\n\t\t\tthrow new IllegalArgumentException(\"The first name cannot be blank\");\n\t\t}\n\t\t//If the name is not blank then the name is stored and a true is return.\n\t\telse{\n\t\t\t//Loop to check that all characters are letters and there are no digits.\n\t\t\tfor(int x = 0; x < fName.length(); x++){\n\t\t\t\tif(Character.isDigit(fName.charAt(x))){\n\t\t\t\t\tthrow new IllegalArgumentException(\"No digits are allowed in the name.\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.firstName = fName;\n\t\t}\n\t}" ]
[ "0.67111075", "0.63531643", "0.62488955", "0.62401503", "0.6185561", "0.6180327", "0.6175222", "0.61679643", "0.61572015", "0.61561143", "0.603826", "0.6026458", "0.6026458", "0.6020783", "0.59976596", "0.59800154", "0.5950381", "0.59330004", "0.59015137", "0.59015137", "0.588928", "0.58836204", "0.58709526", "0.5829242", "0.5824146", "0.58145213", "0.57086277", "0.57086277", "0.57086277", "0.5702563", "0.5690313", "0.5687293", "0.56848776", "0.56787026", "0.56769454", "0.5663451", "0.56476897", "0.5623445", "0.56164306", "0.5612319", "0.558691", "0.55727077", "0.55691695", "0.5568192", "0.55620074", "0.5555364", "0.55126774", "0.5507421", "0.54914373", "0.5487067", "0.54831403", "0.54760015", "0.54703647", "0.546459", "0.5464303", "0.54542786", "0.54487056", "0.5445367", "0.54447716", "0.54447716", "0.5442544", "0.544172", "0.54365134", "0.5420296", "0.54191005", "0.5415441", "0.5415441", "0.541249", "0.539429", "0.5391976", "0.5390351", "0.53898114", "0.538896", "0.53885007", "0.53885007", "0.53885007", "0.53885007", "0.53885007", "0.53885007", "0.53885007", "0.53885007", "0.53885007", "0.53885007", "0.53885007", "0.53867555", "0.53688514", "0.53671974", "0.536485", "0.5363898", "0.5361808", "0.5349533", "0.53493804", "0.53477037", "0.53434545", "0.53432584", "0.53432584", "0.534235", "0.5336276", "0.5336276", "0.53358495", "0.53357285" ]
0.0
-1
DATABASE MAPPING : rcd_order_by ( BIGINT )
public void setRcdOrderBy( Long rcdOrderBy ) { this.rcdOrderBy = rcdOrderBy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "OrderByColumnFull createOrderByColumnFull();", "com.google.protobuf.ByteString\n getOrderByBytes();", "R_order selectByPrimaryKey(Integer oId);", "OrderByClauseArg createOrderByClauseArg();", "OrderByClause createOrderByClause();", "java.lang.String getOrderBy();", "public static void setOrderBy (String columnList){\n fetchAllOrderBy=columnList;\n }", "Orderall selectByPrimaryKey(String orderid);", "io.dstore.values.IntegerValue getSortNo();", "@Override\n\tpublic String getOrder() {\n\t\treturn \"zjlxdm,asc\";\n\t}", "List<R_order> selectByExample(R_orderExample example);", "public void setOrderbyid(Integer orderbyid) {\r\n this.orderbyid = orderbyid;\r\n }", "public final native String getOrderBy() /*-{\n return this.getOrderBy();\n }-*/;", "OrderByClauseArgs createOrderByClauseArgs();", "public String getSortOrder();", "Map<String, org.springframework.batch.item.database.Order> genBatchOrderByFromSort(TableFields tableFields, Sort sort);", "@java.lang.Deprecated\n com.google.protobuf.ByteString getOrderByBytes();", "com.google.protobuf.ByteString getOrderByDataItemBytes();", "public Integer getOrder();", "private static void DoOrderBy()\n\t{\n\t\tArrayList<Attribute> inAtts = new ArrayList<Attribute>();\n\t\tinAtts.add(new Attribute(\"Int\", \"n_n_nationkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"n_n_name\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"n_n_regionkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"n_n_comment\"));\n\n\t\tArrayList<Attribute> outAtts = new ArrayList<Attribute>();\n\t\toutAtts.add(new Attribute(\"Int\", \"att1\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att2\"));\n\t\toutAtts.add(new Attribute(\"Int\", \"att3\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att4\"));\n\n\t\t// These could be more complicated expressions than simple input columns\n\t\tMap<String, String> exprsToCompute = new HashMap<String, String>();\n\t\texprsToCompute.put(\"att1\", \"n_n_nationkey\");\n\t\texprsToCompute.put(\"att2\", \"n_n_name\");\n\t\texprsToCompute.put(\"att3\", \"n_n_regionkey\");\n\t\texprsToCompute.put(\"att4\", \"n_n_comment\");\n\t\t\n\t\t// Order by region key descending then nation name ascending\n\t\tArrayList<SortKeyExpression> sortingKeys = new ArrayList<SortKeyExpression>();\n\t\tsortingKeys.add(new SortKeyExpression(\"Int\", \"n_n_regionkey\", false));\n\t\tsortingKeys.add(new SortKeyExpression(\"Str\", \"n_n_name\", true));\n\t\t\n\t\t// run the selection operation\n\t\ttry\n\t\t{\n\t\t\tnew Order(inAtts, outAtts, exprsToCompute, sortingKeys, \"nation.tbl\", \"out.tbl\", \"g++\", \"cppDir/\");\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "ExchangeOrder selectByPrimaryKey(String id);", "BusnessOrder selectByPrimaryKey(Integer id);", "OrOrderByColumn createOrOrderByColumn();", "int order();", "@Override\n\tpublic String queryOrderByOrderNo(String orderno) {\n\treturn null;\n\t}", "io.dstore.values.IntegerValue getMoveSortNo();", "@Query(\"SELECT p FROM Person p ORDER BY p.id\")\nList<Person> findAllSortById();", "public void changeSortOrder();", "Order findById(Long id);", "OrderExpression<T> desc();", "private ByPrefixOrder(int r) {\n this.r = r;\n }", "Sort asc(QueryParameter parameter);", "@Query(\"select a from Account a order by a.age\")\n List<Account> getAccountSortedByAge();", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "Order find(Long id);", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public int getOrder();", "public String sortOrder();", "public final native String getSortOrder() /*-{\n return this.getSortOrder();\n }-*/;", "@java.lang.Deprecated\n java.lang.String getOrderBy();", "public Integer getOrderbyid() {\r\n return orderbyid;\r\n }", "TSortOrder selectByPrimaryKey(Integer sortOrderId);", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "public String getOrderByClause() {\r\n return orderByClause;\r\n }", "@VTID(10)\r\n int getOrder();", "public void addOrderingToQuery(ObjectLevelReadQuery theQuery, GenerationContext context) {\n if (theQuery.isReadAllQuery()) {\n Iterator iter = getOrderByItems().iterator();\n while (iter.hasNext()) {\n Node nextNode = (Node)iter.next();\n ((ReadAllQuery)theQuery).addOrdering(nextNode.generateExpression(context));\n }\n }\n }", "public final AstValidator.order_by_clause_return order_by_clause() throws RecognitionException {\n AstValidator.order_by_clause_return retval = new AstValidator.order_by_clause_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree STAR308=null;\n CommonTree set309=null;\n AstValidator.order_col_return order_col310 =null;\n\n\n CommonTree STAR308_tree=null;\n CommonTree set309_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:490:17: ( STAR ( ASC | DESC )? | ( order_col )+ )\n int alt85=2;\n int LA85_0 = input.LA(1);\n\n if ( (LA85_0==STAR) ) {\n alt85=1;\n }\n else if ( (LA85_0==CUBE||LA85_0==DOLLARVAR||LA85_0==GROUP||LA85_0==IDENTIFIER||LA85_0==COL_RANGE) ) {\n alt85=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 85, 0, input);\n\n throw nvae;\n\n }\n switch (alt85) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:490:19: STAR ( ASC | DESC )?\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n STAR308=(CommonTree)match(input,STAR,FOLLOW_STAR_in_order_by_clause2579); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n STAR308_tree = (CommonTree)adaptor.dupNode(STAR308);\n\n\n adaptor.addChild(root_0, STAR308_tree);\n }\n\n\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:490:24: ( ASC | DESC )?\n int alt83=2;\n int LA83_0 = input.LA(1);\n\n if ( (LA83_0==ASC||LA83_0==DESC) ) {\n alt83=1;\n }\n switch (alt83) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:\n {\n _last = (CommonTree)input.LT(1);\n set309=(CommonTree)input.LT(1);\n\n if ( input.LA(1)==ASC||input.LA(1)==DESC ) {\n input.consume();\n if ( state.backtracking==0 ) {\n set309_tree = (CommonTree)adaptor.dupNode(set309);\n\n\n adaptor.addChild(root_0, set309_tree);\n }\n\n state.errorRecovery=false;\n state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n\n }\n break;\n\n }\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:491:19: ( order_col )+\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:491:19: ( order_col )+\n int cnt84=0;\n loop84:\n do {\n int alt84=2;\n int LA84_0 = input.LA(1);\n\n if ( (LA84_0==CUBE||LA84_0==DOLLARVAR||LA84_0==GROUP||LA84_0==IDENTIFIER||LA84_0==COL_RANGE) ) {\n alt84=1;\n }\n\n\n switch (alt84) {\n \tcase 1 :\n \t // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:491:19: order_col\n \t {\n \t _last = (CommonTree)input.LT(1);\n \t pushFollow(FOLLOW_order_col_in_order_by_clause2610);\n \t order_col310=order_col();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) \n \t adaptor.addChild(root_0, order_col310.getTree());\n\n\n \t if ( state.backtracking==0 ) {\n \t }\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt84 >= 1 ) break loop84;\n \t if (state.backtracking>0) {state.failed=true; return retval;}\n EarlyExitException eee =\n new EarlyExitException(84, input);\n throw eee;\n }\n cnt84++;\n } while (true);\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 String getOrderCallsStatement(String field) {\n\t\treturn \"SELECT * FROM CALLS ORDER BY \" + field;\n\t}", "@Override\n public List<OrderByExpression> resultsOrderedBy() {\n return null;\n }", "Sort desc(QueryParameter parameter);", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }", "public String getOrderByClause() {\n return orderByClause;\n }" ]
[ "0.649481", "0.62665343", "0.6137348", "0.59890205", "0.59671766", "0.5937952", "0.5863353", "0.5860696", "0.5807258", "0.57872367", "0.57771766", "0.5756917", "0.5741793", "0.57153994", "0.5688587", "0.566745", "0.56261307", "0.5570027", "0.5566617", "0.5546891", "0.54973656", "0.5473039", "0.54678583", "0.5464971", "0.5456123", "0.54182833", "0.54055864", "0.54032475", "0.5402388", "0.5391731", "0.5372291", "0.53582174", "0.5353458", "0.53484714", "0.53484714", "0.53428537", "0.53404915", "0.5335431", "0.5333241", "0.5322028", "0.5319801", "0.5284362", "0.5273845", "0.5273441", "0.5273441", "0.5273441", "0.5273441", "0.5273441", "0.5273441", "0.5273441", "0.5273441", "0.5273441", "0.5273441", "0.5273441", "0.5273441", "0.5273441", "0.5273441", "0.5273441", "0.5273441", "0.5273441", "0.5273441", "0.5273441", "0.5273441", "0.5273441", "0.5273441", "0.5264797", "0.5255435", "0.5250061", "0.52453274", "0.5244983", "0.5227501", "0.52259105", "0.52259105", "0.52259105", "0.52259105", "0.52259105", "0.52259105", "0.52259105", "0.52259105", "0.52259105", "0.52259105", "0.52259105", "0.52259105", "0.52259105", "0.52259105", "0.52259105", "0.52259105", "0.52259105", "0.52259105", "0.52259105", "0.52259105", "0.52259105", "0.52259105", "0.52259105", "0.52259105", "0.52259105", "0.52259105", "0.52259105", "0.52259105", "0.52259105" ]
0.68619925
0
DATABASE MAPPING : relationtype ( VARCHAR )
public void setRelationtype( String relationtype ) { this.relationtype = relationtype; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void set_relation(String relation){\n\t\tthis.relation = relation;\n\t}", "public String getRelationType()\n {\n String relationType = \"PSX\";\n Iterator i = m_keyNames.iterator();\n while (i.hasNext())\n {\n relationType += i.next().toString();\n }\n relationType += \"Relation\";\n\n return relationType;\n }", "public void addRelation(String value) {\n/* 262 */ addStringToBag(\"relation\", value);\n/* */ }", "public String get_relation() {\n\t\treturn relation;\n\t}", "Relation createRelation();", "public String getType() {\n return relationshipName;\n }", "public String getRelation() {\n return relation;\n }", "public static interface Relation {\n\t\t//some relations are read-only\n\t\tpublic boolean isWriteable();\n\n\t\tpublic String getName();\n\n\t\t/**\n\t\t* Get the model for the relation. This will return a blank tuple, which will show\n\t\t* the ordered list of columns and the type for each. This is basically metadata.\n\t\t*/\n\t\tpublic Tuple getModel();\n\n\t\t/**\n\t\t* Get the number of rows (Tuples) in the relation.\n\t\t*/\n\t\tpublic int getRows();\n\n\t\t//----------------------------\n\t\t//operations on a Relation\n\t\t/**\n\t\t* projection narrows the number of columns in a relation.\n\t\t* This is the part of an sql statement that list the columns, e.g.\n\t\t*\tSELECT firstname,lastname FROM contact.\n\t\t* The contact table has a lot columns that these, but we only need these\n\t\t* two.\n\t\t*/\n\t\tpublic Relation project(Tuple t) throws RelationException;\n\n\t\t/**\n\t\t* Select narrows the number of rows returned.\n\t\t*/\n\t\tpublic Relation select(Condition c) throws RelationException;\n\n\t\t/**\n\t\t* Join this relation with another one based on the condition, and give it a name.\n\t\t* The implementation of this is complicated, because it must also create a dynamic\n\t\t* Tuple\n\t\t*/\n\t\tpublic Relation join(Relation r, Condition c, String name) throws RelationException;\n\t\t//-------------------------------\n\n\t\t/**\n\t\t* A cursor is the equivalent of a ResultSet. There may be different types\n\t\t* of Cursors depending on if this is coming directly from the database\n\t\t* or from a derived relation.\n\t\t*/\n\t\tpublic Cursor getCursor() throws RelationException;\n\n\t\t//-------------------------------\n\t\t//change data in the relation\n\t\t//I had this as part of Transaction, but I guess it belongs here.\n\t\t/**\n\t\t* Insert a Tuple into the relation. This may fail for various reasons\n\t\t* including IO problems, invalid transaction state, or constraint violations.\n\t\t* Or if the relation is read-only\n\t\t*/\n\t\tpublic Key insert(Transaction tx,Tuple t) throws RelationException;\n\n\t\t/**\n\t\t* Get the tuple that you just inserted by the Key\n\t\t*/\n\t\tpublic Tuple get(Key k) throws RelationException;\n\n\t\t/**\n\t\t* Update the relation with changed data in the Tuple.\n\t\t* The old data is stored in the _audit table.\n\t\t*/\n\t\tpublic void update(Transaction tx,Tuple old, Tuple nu) throws RelationException;\n\n\t\t/**\n\t\t* Delete the object. Must provide old state of object before doing so, so it\n\t\t* can be audited.\n\t\t*/\n\t\tpublic void delete(Transaction tx,Tuple old) throws RelationException;\n\n\t}", "public String getType() {\n\t\t\n\t\tif(this instanceof Friend_Connection) {\n\t\t\treturn \"[FRIEND]\";\n\t\t\t\n\t\t}else if(this instanceof Couple_Connection){\n\t\t\treturn \"[COUPLE]\";\n\t\t\n\t\t}else if(this instanceof Parent_Connection) {\n\t\t\treturn \"[RELATIVE]\";\n\t\t\n\t\t}else if(this instanceof Colleagues_Connection) {\n\t\t\treturn \"[COLLEAGUE]\";\n\t\t\n\t\t}else if(this instanceof Classmates_Connection) {\n\t\t\treturn \"[CLASSMATE]\";\n\t\t}else {\n\t\t\treturn \"\";\n\t\t}\n\t\t\n\t}", "public String toStringWithRelation();", "public void addInheritanceRelation(InheritanceRelation relation);", "@DISPID(1610940428) //= 0x6005000c. The runtime will prefer the VTID if present\n @VTID(34)\n Relations relations();", "RelatedPerson<Person, Person> relatePerson(String person1, String person2, String relation);", "RelDataType getColumnType(String sql);", "@Generated(\n value = {\n \"http://www.jooq.org\",\n \"jOOQ version:3.10.8\"\n },\n comments = \"This class is generated by jOOQ\"\n)\n@SuppressWarnings({ \"all\", \"unchecked\", \"rawtypes\" })\npublic interface IMRelation extends Serializable {\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.KEY</code>. 「key」- 关系定义的主键\n */\n public IMRelation setKey(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.KEY</code>. 「key」- 关系定义的主键\n */\n public String getKey();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.TYPE</code>. 「type」- 关系类型 - 来自(字典)\n */\n public IMRelation setType(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.TYPE</code>. 「type」- 关系类型 - 来自(字典)\n */\n public String getType();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.UPSTREAM</code>. 「upstream」- 当前关系是 upstream,表示上级\n */\n public IMRelation setUpstream(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.UPSTREAM</code>. 「upstream」- 当前关系是 upstream,表示上级\n */\n public String getUpstream();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.DOWNSTREAM</code>. 「downstream」- 当前关系是 downstream,表示下级\n */\n public IMRelation setDownstream(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.DOWNSTREAM</code>. 「downstream」- 当前关系是 downstream,表示下级\n */\n public String getDownstream();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.COMMENTS</code>. 「comments」- 关系定义的描述信息\n */\n public IMRelation setComments(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.COMMENTS</code>. 「comments」- 关系定义的描述信息\n */\n public String getComments();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.SIGMA</code>. 「sigma」- 统一标识\n */\n public IMRelation setSigma(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.SIGMA</code>. 「sigma」- 统一标识\n */\n public String getSigma();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.LANGUAGE</code>. 「language」- 使用的语言\n */\n public IMRelation setLanguage(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.LANGUAGE</code>. 「language」- 使用的语言\n */\n public String getLanguage();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.ACTIVE</code>. 「active」- 是否启用\n */\n public IMRelation setActive(Boolean value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.ACTIVE</code>. 「active」- 是否启用\n */\n public Boolean getActive();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.METADATA</code>. 「metadata」- 附加配置数据\n */\n public IMRelation setMetadata(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.METADATA</code>. 「metadata」- 附加配置数据\n */\n public String getMetadata();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.CREATED_AT</code>. 「createdAt」- 创建时间\n */\n public IMRelation setCreatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.CREATED_AT</code>. 「createdAt」- 创建时间\n */\n public LocalDateTime getCreatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.CREATED_BY</code>. 「createdBy」- 创建人\n */\n public IMRelation setCreatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.CREATED_BY</code>. 「createdBy」- 创建人\n */\n public String getCreatedBy();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.UPDATED_AT</code>. 「updatedAt」- 更新时间\n */\n public IMRelation setUpdatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.UPDATED_AT</code>. 「updatedAt」- 更新时间\n */\n public LocalDateTime getUpdatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.UPDATED_BY</code>. 「updatedBy」- 更新人\n */\n public IMRelation setUpdatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.UPDATED_BY</code>. 「updatedBy」- 更新人\n */\n public String getUpdatedBy();\n\n // -------------------------------------------------------------------------\n // FROM and INTO\n // -------------------------------------------------------------------------\n\n /**\n * Load data from another generated Record/POJO implementing the common interface IMRelation\n */\n public void from(cn.vertxup.atom.domain.tables.interfaces.IMRelation from);\n\n /**\n * Copy data into another generated Record/POJO implementing the common interface IMRelation\n */\n public <E extends cn.vertxup.atom.domain.tables.interfaces.IMRelation> E into(E into);\n\n default IMRelation fromJson(io.vertx.core.json.JsonObject json) {\n setKey(json.getString(\"KEY\"));\n setType(json.getString(\"TYPE\"));\n setUpstream(json.getString(\"UPSTREAM\"));\n setDownstream(json.getString(\"DOWNSTREAM\"));\n setComments(json.getString(\"COMMENTS\"));\n setSigma(json.getString(\"SIGMA\"));\n setLanguage(json.getString(\"LANGUAGE\"));\n setActive(json.getBoolean(\"ACTIVE\"));\n setMetadata(json.getString(\"METADATA\"));\n // Omitting unrecognized type java.time.LocalDateTime for column CREATED_AT!\n setCreatedBy(json.getString(\"CREATED_BY\"));\n // Omitting unrecognized type java.time.LocalDateTime for column UPDATED_AT!\n setUpdatedBy(json.getString(\"UPDATED_BY\"));\n return this;\n }\n\n\n default io.vertx.core.json.JsonObject toJson() {\n io.vertx.core.json.JsonObject json = new io.vertx.core.json.JsonObject();\n json.put(\"KEY\",getKey());\n json.put(\"TYPE\",getType());\n json.put(\"UPSTREAM\",getUpstream());\n json.put(\"DOWNSTREAM\",getDownstream());\n json.put(\"COMMENTS\",getComments());\n json.put(\"SIGMA\",getSigma());\n json.put(\"LANGUAGE\",getLanguage());\n json.put(\"ACTIVE\",getActive());\n json.put(\"METADATA\",getMetadata());\n // Omitting unrecognized type java.time.LocalDateTime for column CREATED_AT!\n json.put(\"CREATED_BY\",getCreatedBy());\n // Omitting unrecognized type java.time.LocalDateTime for column UPDATED_AT!\n json.put(\"UPDATED_BY\",getUpdatedBy());\n return json;\n }\n\n}", "@ApiModelProperty(value = \"A categorization of the relationship (e.g.: migration, substitution, dependency, exclusivity)\")\n public String getType() {\n return type;\n }", "public interface RelationsType {\n\n int OBSERVERS = 1;\n int FANS = 2;\n int FRIENDS = 3;\n\n}", "public String[] getRelations() {\n/* 270 */ return getStringArray(\"relation\");\n/* */ }", "private String getPostgresTypeForAccessDataType(DataType type) {\n\t\tif (type.equals(DataType.BOOLEAN))\n\t\t\treturn \"bool\";\n\t\tif (type.equals(DataType.BINARY))\n\t\t\treturn \"int2\";\n\t\tif (type.equals(DataType.BYTE))\n\t\t\treturn \"int2\";\n\t\tif (type.equals(DataType.COMPLEX_TYPE))\n\t\t\treturn \"bit\";\n\t\tif (type.equals(DataType.DOUBLE))\n\t\t\treturn \"double precision\";\n\t\tif (type.equals(DataType.FLOAT))\n\t\t\treturn \"float4\";\n\t\tif (type.equals(DataType.GUID))\n\t\t\treturn \"character varying(255)\";\n\t\tif (type.equals(DataType.INT))\n\t\t\treturn \"int4\";\n\t\tif (type.equals(DataType.LONG))\n\t\t\treturn \"int8\";\n\t\tif (type.equals(DataType.MEMO))\n\t\t\treturn \"text\";\n\t\tif (type.equals(DataType.MONEY))\n\t\t\treturn \"numeric\";\n\t\tif (type.equals(DataType.NUMERIC))\n\t\t\treturn \"decimal(20,4)\";\n\t\tif (type.equals(DataType.OLE))\n\t\t\treturn \"bytea\";\n\t\t//\n\t\t// Note that we can't tell if its really a DATE, TIME or TIMESTAMP. So\n\t\t// users will\n\t\t// have to use the schema editor to change it as appropriate.\n\t\t//\n\t\tif (type.equals(DataType.SHORT_DATE_TIME))\n\t\t\treturn \"timestamp\";\n\t\tif (type.equals(DataType.TEXT))\n\t\t\treturn \"character varying(255)\";\n\t\treturn \"text\";\n\t}", "public Set<RelationType> getRelationTypes();", "LinkRelation createLinkRelation();", "private Long getRelationTypeId(EntityRelationshipType changingRelation) {\n\t\treturn changingRelation.getEntityRelationConfigDetail().getConfigId();\n\t}", "public interface RelationTypeExtractor {\n String getType(RelationEval e, boolean isActual);\n}", "public RelationObject(String relation, EVAnnotation relatum) {\n\t\tthis.relation = relation;\n\t\tthis.relatum = relatum;\n\t}", "public abstract RelationDeclaration getRelation();", "@Override\n final public Map<Integer, String> getType3InputRelations() {\n return new HashMap<Integer, String>() {{\n put(1, \"SELECT * FROM TR1_DB1_PROPHECY_Q5_S1\");\n put(5, \"SELECT * FROM TR1_DB1_PROPHECY_Q5_S5\");\n }};\n }", "com.rpg.framework.database.Protocol.ItemType getType();", "public String getTypeSpecification(){\n return productRelation.getTypeSpecification();\n }", "private String relationGenerator(ArrayList<Verb> candidateRelation){\n String relation = candidateRelation.get(0).token;\n if(candidateRelation.size()>=3){\n if(isBe(candidateRelation.get(0).token) && isAdv(candidateRelation.get(1).type)\n && isVerb(candidateRelation.get(2).type)){\n relation += \" \" + candidateRelation.get(1).token + \" \" + candidateRelation.get(2).token;\n }else if(isBe(candidateRelation.get(0).token) && isPast(candidateRelation.get(1).type)){\n relation += \" \" + candidateRelation.get(1).token;\n }else if(isHave(candidateRelation.get(0).token) && isPast(candidateRelation.get(1).type)){\n relation += \" \" + candidateRelation.get(1).token;\n }\n }\n return relation;\n }", "public static void set_RelationAttributeStereotype(String s, String v) throws RuntimeException\n {\n read_if_needed_();\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaRelationAttributeStereotypeCmd, s, v);\n UmlCom.check();\n \n UmlStereotype st = (UmlStereotype) UmlSettings._map_relation_attribute_stereotypes.get(s);\n \n if (st == null)\n st = UmlSettings.add_rel_attr_stereotype(s);\n st.java = v;\n }", "public void createRelation(Agent source, Agent target, double relation) {\n this.gamygdala.createRelation(source, target, relation);\n }", "public static String relationDecl(String multiplicity)\n {\n read_if_needed_();\n \n return _rel_decl[UmlSettings.multiplicity_column(multiplicity)];\n }", "public String getTipoSqlite(AtributoEntidade atributo) {\n\t\tString saida = getTipoSqliteSinc(atributo);\n\t\tif (atributo.getChave()) {\n\t\t\tsaida += \" PRIMARY KEY\";\n\t\t}\n\t\treturn saida;\n\t}", "public final expressionParser.relation_return relation() throws RecognitionException {\n expressionParser.relation_return retval = new expressionParser.relation_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token string_literal30=null;\n Token string_literal31=null;\n Token char_literal32=null;\n Token string_literal33=null;\n Token string_literal34=null;\n Token char_literal35=null;\n expressionParser.add_return add29 = null;\n\n expressionParser.add_return add36 = null;\n\n\n CommonTree string_literal30_tree=null;\n CommonTree string_literal31_tree=null;\n CommonTree char_literal32_tree=null;\n CommonTree string_literal33_tree=null;\n CommonTree string_literal34_tree=null;\n CommonTree char_literal35_tree=null;\n\n try {\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:76:3: ( ( add ( ( '==' | '!=' | '<' | '<=' | '>=' | '>' ) add )* ) )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:76:5: ( add ( ( '==' | '!=' | '<' | '<=' | '>=' | '>' ) add )* )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:76:5: ( add ( ( '==' | '!=' | '<' | '<=' | '>=' | '>' ) add )* )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:76:6: add ( ( '==' | '!=' | '<' | '<=' | '>=' | '>' ) add )*\n {\n pushFollow(FOLLOW_add_in_relation374);\n add29=add();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, add29.getTree());\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:76:10: ( ( '==' | '!=' | '<' | '<=' | '>=' | '>' ) add )*\n loop15:\n do {\n int alt15=2;\n int LA15_0 = input.LA(1);\n\n if ( ((LA15_0>=40 && LA15_0<=45)) ) {\n alt15=1;\n }\n\n\n switch (alt15) {\n \tcase 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:76:11: ( '==' | '!=' | '<' | '<=' | '>=' | '>' ) add\n \t {\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:76:11: ( '==' | '!=' | '<' | '<=' | '>=' | '>' )\n \t int alt14=6;\n \t switch ( input.LA(1) ) {\n \t case 40:\n \t {\n \t alt14=1;\n \t }\n \t break;\n \t case 41:\n \t {\n \t alt14=2;\n \t }\n \t break;\n \t case 42:\n \t {\n \t alt14=3;\n \t }\n \t break;\n \t case 43:\n \t {\n \t alt14=4;\n \t }\n \t break;\n \t case 44:\n \t {\n \t alt14=5;\n \t }\n \t break;\n \t case 45:\n \t {\n \t alt14=6;\n \t }\n \t break;\n \t default:\n \t if (state.backtracking>0) {state.failed=true; return retval;}\n \t NoViableAltException nvae =\n \t new NoViableAltException(\"\", 14, 0, input);\n\n \t throw nvae;\n \t }\n\n \t switch (alt14) {\n \t case 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:76:12: '=='\n \t {\n \t string_literal30=(Token)match(input,40,FOLLOW_40_in_relation378); if (state.failed) return retval;\n \t if ( state.backtracking==0 ) {\n \t string_literal30_tree = (CommonTree)adaptor.create(string_literal30);\n \t root_0 = (CommonTree)adaptor.becomeRoot(string_literal30_tree, root_0);\n \t }\n\n \t }\n \t break;\n \t case 2 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:76:20: '!='\n \t {\n \t string_literal31=(Token)match(input,41,FOLLOW_41_in_relation383); if (state.failed) return retval;\n \t if ( state.backtracking==0 ) {\n \t string_literal31_tree = (CommonTree)adaptor.create(string_literal31);\n \t root_0 = (CommonTree)adaptor.becomeRoot(string_literal31_tree, root_0);\n \t }\n\n \t }\n \t break;\n \t case 3 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:76:28: '<'\n \t {\n \t char_literal32=(Token)match(input,42,FOLLOW_42_in_relation388); if (state.failed) return retval;\n \t if ( state.backtracking==0 ) {\n \t char_literal32_tree = (CommonTree)adaptor.create(char_literal32);\n \t root_0 = (CommonTree)adaptor.becomeRoot(char_literal32_tree, root_0);\n \t }\n\n \t }\n \t break;\n \t case 4 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:76:35: '<='\n \t {\n \t string_literal33=(Token)match(input,43,FOLLOW_43_in_relation393); if (state.failed) return retval;\n \t if ( state.backtracking==0 ) {\n \t string_literal33_tree = (CommonTree)adaptor.create(string_literal33);\n \t root_0 = (CommonTree)adaptor.becomeRoot(string_literal33_tree, root_0);\n \t }\n\n \t }\n \t break;\n \t case 5 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:76:43: '>='\n \t {\n \t string_literal34=(Token)match(input,44,FOLLOW_44_in_relation398); if (state.failed) return retval;\n \t if ( state.backtracking==0 ) {\n \t string_literal34_tree = (CommonTree)adaptor.create(string_literal34);\n \t root_0 = (CommonTree)adaptor.becomeRoot(string_literal34_tree, root_0);\n \t }\n\n \t }\n \t break;\n \t case 6 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:76:51: '>'\n \t {\n \t char_literal35=(Token)match(input,45,FOLLOW_45_in_relation403); if (state.failed) return retval;\n \t if ( state.backtracking==0 ) {\n \t char_literal35_tree = (CommonTree)adaptor.create(char_literal35);\n \t root_0 = (CommonTree)adaptor.becomeRoot(char_literal35_tree, root_0);\n \t }\n\n \t }\n \t break;\n\n \t }\n\n \t pushFollow(FOLLOW_add_in_relation407);\n \t add36=add();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) adaptor.addChild(root_0, add36.getTree());\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop15;\n }\n } while (true);\n\n\n }\n\n\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "public static String relationAttributeStereotype(String s)\n {\n read_if_needed_();\n \n UmlStereotype b = (UmlStereotype) UmlSettings._map_relation_attribute_stereotypes.get(s);\n \n return (b != null) ? b.java : s;\n }", "public String[] listRelations();", "public Relation getRelation(String relationName);", "@Ignore\r\n @Test\r\n public void testSetType() {\r\n System.out.println(\"testSetType()\");\r\n Relation instance = new Relation(null, null);\r\n instance.setDirection(Relation.OUT);\r\n instance.setType(\"singer\");\r\n }", "public String getType() \t\t\t\t{ return DATABASE_NAME; }", "protected abstract String statementType();", "public String insertContactTypeStatement() {\n\t\treturn \"INSERT INTO CONTACTSTYPES(\\\"CONTACT_TYPE\\\") VALUES (?)\";\n\t}", "RelationalPackage getRelationalPackage();", "private Long getEntityRelationId(EntityRelationshipType eachRelation) {\n\t\treturn getRelationTypeId(eachRelation);\n\t}", "ContextRelation getContextRelation();", "public String getRelationshipTypeGUID()\n {\n return relationshipTypeGUID;\n }", "public interface One extends RelationQuantifier\n{\n}", "void relationshipCreate( long id, int typeId, long startNodeId,\n long endNodeId );", "public void setRelation(Relation<L, Tr, T> r) {\n this.relation = r;\n }", "public void setRelationship( String relationship ) {\n this.relationship = relationship;\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"(relation \" +\n\t\t\t\t(this.source != null ? this.source.getId() : \"nil\") + \" \" +\n\t\t\t\tthis.name.toString() + \" \" +\n\t\t\t\t(this.dest != null ? this.dest.toString() : \"nil\") + \")\";\n\t}", "@Override\n final public String getInputRelation() {\n return \"SELECT * FROM TR1_DB1_PROPHECY_Q5_INNER\";\n }", "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}", "public boolean relationshipToTyped(String rel_str) {\n StringTokenizer st = new StringTokenizer(rel_str, BundlesDT.DELIM);\n String fm_hdr = Utils.decFmURL(st.nextToken()), fm_ico = Utils.decFmURL(st.nextToken()); boolean fm_typed = st.nextToken().toLowerCase().equals(\"true\");\n String to_hdr = Utils.decFmURL(st.nextToken()), to_ico = Utils.decFmURL(st.nextToken()); boolean to_typed = st.nextToken().toLowerCase().equals(\"true\");\n String style = Utils.decFmURL(st.nextToken()); return to_typed; }", "@Override\n public String getCondimentType() {\n return TYPE;\n }", "private RelationMapping createRelationMapping(RoleSchema role, EJB ejb, Table table, Table relatedTable) throws DeploymentException {\n Map columnNameMapping = role.getPkMapping();\n LinkedHashMap ejbFieldMappings = new LinkedHashMap();\n LinkedHashMap columnMappings = new LinkedHashMap();\n for (Iterator iterator = table.getPrimaryKeyFields().iterator(); iterator.hasNext();) {\n Column column = (Column) iterator.next();\n \n // -- column names\n String columnName = column.getPhysicalName();\n String relatedColumnName = (String) columnNameMapping.get(columnName);\n if (null == relatedColumnName) {\n throw new DeploymentException(\"Role \" + role + \" is misconfigured: primary key column [\" +\n columnName + \"] is not mapped to a foreign key.\");\n }\n \n // -- field Names\n String ejbFieldName = column.getName();\n String relatedEjbFieldName = relatedColumnName;\n for (Iterator iter = relatedTable.getAttributes().iterator(); iter.hasNext();) {\n Column relatedTableColumn = (Column) iter.next();\n if (relatedTableColumn.getPhysicalName().equals(relatedColumnName)) {\n relatedEjbFieldName = relatedTableColumn.getName();\n break;\n }\n }\n \n // -- create related ejb field\n FKField relatedEjbField = new FKField(relatedEjbFieldName, relatedColumnName, column.getType());\n ejbFieldMappings.put(ejb.getAttribute(ejbFieldName), relatedEjbField);\n \n \n // -- create related column\n FKColumn relatedcolumn = new FKColumn(relatedEjbFieldName, relatedColumnName, column.getType());\n if (column.isSQLTypeSet()) {\n relatedcolumn.setSQLType(column.getSQLType());\n }\n if (column.isTypeConverterSet()) {\n relatedcolumn.setTypeConverter(column.getTypeConverter());\n }\n columnMappings.put(column, relatedcolumn);\n }\n return new RelationMapping(ejbFieldMappings, columnMappings);\n }", "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); }", "DatabaseTypes getDatabaseType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public void addRelationAttribute(String key, String value) {\n this.relationAttributes.put(key, value);\n }", "public static void set_RelationDecl(String multiplicity, String v) throws RuntimeException\n {\n read_if_needed_();\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaRelationDeclCmd, multiplicity, v);\n UmlCom.check();\n \n _rel_decl[UmlSettings.multiplicity_column(multiplicity)] = v;\n \n }", "@ApiModelProperty(required = true, value = \"Type of the product relationship, such as [bundled] if the product is a bundle and you want to describe the bundled products inside this bundle; [reliesOn] if the product needs another already owned product to rely on (e.g. an option on an already owned mobile access product) [targets] or [isTargeted] (depending on the way of expressing the link) for any other kind of links that may be useful\")\n @NotNull\n\n\n public String getRelationshipType() {\n return relationshipType;\n }", "void addConstraintRelation(IViewRelation relation);", "protected abstract String getType();", "public int getDatabaseType()\n {\n return DBConstants.TABLE | DBConstants.MAPPED;\n }", "void setType(java.lang.String type);", "boolean hasRelation();", "public String getOntologyType(){\r\n\t\treturn null;\r\n\t}", "void createRelationshipTypeToken( int id, String name );", "private String getCloneSetLinkTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table CLONE_SET_LINK(\");\n \t\tbuilder.append(\"CLONE_SET_LINK_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"BEFORE_ELEMENT_ID LONG,\");\n \t\tbuilder.append(\"AFTER_ELEMENT_ID LONG,\");\n \t\tbuilder.append(\"BEFORE_REVISION_ID LONG,\");\n \t\tbuilder.append(\"AFTER_REVISION_ID LONG,\");\n \t\tbuilder.append(\"CHANGED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"ADDED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"DELETED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"CO_CHANGED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"CODE_FRAGMENT_LINKS TEXT NOT NULL\");\n \t\tbuilder.append(\")\");\n \n \t\treturn builder.toString();\n \t}", "public String getType() {\n return DATABASE_NAME;\n }", "public String getClazz() {\n return relationshipName;\n }", "abstract public String getType();", "public static int numJoinTypes() {\n return 3;\n }", "void addRelation(IViewRelation relation);", "@Override\n\tpublic void savePersonRelation(PersonRelation personRelation) {\n\t\t\n\t}", "public void setType(String type);", "public void setType(String type);", "public void setType(String type);", "public void addRelations(T model);", "protected abstract DbType getDatabaseType();", "public boolean relationshipFromTyped(String rel_str) {\n StringTokenizer st = new StringTokenizer(rel_str, BundlesDT.DELIM);\n String fm_hdr = Utils.decFmURL(st.nextToken()), fm_ico = Utils.decFmURL(st.nextToken()); boolean fm_typed = st.nextToken().toLowerCase().equals(\"true\");\n String to_hdr = Utils.decFmURL(st.nextToken()), to_ico = Utils.decFmURL(st.nextToken()); boolean to_typed = st.nextToken().toLowerCase().equals(\"true\");\n String style = Utils.decFmURL(st.nextToken()); return fm_typed; }", "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}", "public interface CollectionField extends RelationField {\n\n}", "public void set_type(String type)\r\n\t{\r\n\t\tthis.type = type;\r\n\t}", "private static void process_relation(GraphDatabaseService db, CSVRecord record){\n\t\tString item_dwid_str = record.get(\"ITEM_DWID\").trim();\n\t\tString rxcui_norm_str = record.get(\"RXCUI_NORM\").trim();\n\t\tif(item_dwid_str.isEmpty()) return;\n\t\tif(rxcui_norm_str.isEmpty()) return;\n\t\tint item_dwid = Integer.parseInt(item_dwid_str);\n\t\tint rxcui_norm = Integer.parseInt(rxcui_norm_str);\n\t\tNode n1 = db.findNode(Labels.ITEM, \"dwid\", item_dwid);\n\t\t//if(n1==null) throw new AssertionError(\"Item missing: \"+item_dwid_str);\n\t\tif(n1==null) return;\n\t\tNode n2 = db.findNode(Labels.Concept, \"cui\", rxcui_norm);\n\t\t//if(n2==null) throw new AssertionError(\"Concept missing: \"+rxcui_norm_str);\n\t\tif(n2==null) return;\n\t\tn1.createRelationshipTo(n2, RelTypes.is_a);\n\t}", "private String getJoinType() {\n if (joinQueryInputs.queryType == null) {\n return null;\n }\n switch (joinQueryInputs.queryType) {\n case Constants.JOIN_TYPE_INNER_JOIN:\n return Constants.JOIN_INNER_JOIN;\n case Constants.JOIN_TYPE_LEFT_JOIN:\n return Constants.JOIN_LEFT_JOIN;\n case Constants.JOIN_TYPE_RIGHT_JOIN:\n return Constants.JOIN_RIGHT_JOIN;\n case Constants.JOIN_TYPE_FULL_JOIN:\n return Constants.JOIN_FULL_JOIN;\n }\n return null;\n }", "public void setType (String type) { n.setAttribute(ATTNAMECOMMONPREFIX + ATTNAMESUFFIX_TYPE , type); }", "public static void addConditionCategoryRelationship(int cid, int type_id) {\n\t\tConnection conn = null;\n PreparedStatement ps = null;\n try {\n \t// Get a connection to the specified JDBC URL.\n \t\tconn = JDBCConnection.getConnection();\n // Create a Statement object for sending SQL statements to the database.\n \t\t// Statement: The object used for executing a static SQL statement and returning the results it produces.\n \t\tps = conn.prepareStatement(\"INSERT INTO cond_obser_relationships ( cid, type_id ) VALUES ( ?, ? )\");\n \t\tps.setInt( 1, cid );\n \t\tps.setInt(2, type_id);\n \t\tps.execute();\n \t} catch(SQLException e) {\n \te.printStackTrace();\n } finally {\n\t\t\tJDBCConnection.closeConnection(conn, ps, null);\n\t\t}\n }", "public void setType(String type) {\n this.type = type;\n }", "public RelationManager getRelationManager();", "public void setType(String type) \n {\n this.type = type;\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}", "public void setType(String type){\n this.type = type;\n }" ]
[ "0.6665837", "0.63968974", "0.62042564", "0.59369063", "0.5851548", "0.58028674", "0.5695246", "0.55946237", "0.55736566", "0.55617744", "0.5556788", "0.5522355", "0.54857177", "0.5477926", "0.54393816", "0.5434686", "0.54333985", "0.54256487", "0.53870416", "0.5368982", "0.5365166", "0.53542286", "0.533989", "0.5333439", "0.53193355", "0.5313105", "0.52906394", "0.52062637", "0.5193028", "0.5178736", "0.5158143", "0.51563066", "0.5133684", "0.51296175", "0.51294786", "0.50908434", "0.5089479", "0.5065501", "0.5022745", "0.50204015", "0.50045", "0.49967456", "0.4956863", "0.4956409", "0.49502546", "0.49473", "0.49469426", "0.49388024", "0.49149075", "0.48801386", "0.4877363", "0.4867573", "0.4857967", "0.48554936", "0.4850795", "0.4842838", "0.4838154", "0.4827653", "0.4827653", "0.4827653", "0.4827653", "0.4827653", "0.4827653", "0.4827653", "0.4827653", "0.48248768", "0.4820515", "0.48120064", "0.47993425", "0.47878158", "0.47853395", "0.47814414", "0.4779634", "0.47771418", "0.47713718", "0.47703892", "0.47670588", "0.47670475", "0.476004", "0.47561264", "0.47498283", "0.4735106", "0.47331053", "0.47331053", "0.47331053", "0.47326595", "0.47323984", "0.4726379", "0.47226575", "0.47201338", "0.47188056", "0.47187173", "0.47125268", "0.47081637", "0.47073472", "0.4703095", "0.4701029", "0.46990234", "0.46930563", "0.4690259" ]
0.7297871
0
DATABASE MAPPING : relationship ( VARCHAR )
public void setRelationship( String relationship ) { this.relationship = relationship; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Relationship createRelationship();", "public String toStringWithRelation();", "public void addRelation(String value) {\n/* 262 */ addStringToBag(\"relation\", value);\n/* */ }", "Relation createRelation();", "Column referencedColumn();", "LinkRelation createLinkRelation();", "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}", "public void set_relation(String relation){\n\t\tthis.relation = relation;\n\t}", "private void setRelationships(Map<String, StringBuilder> tablesSQLMap, \n\t\t\tTable table) {\n\t\tfor(String tableName : table.getRelationships().keySet()) {\n\t\t\tStringBuilder createStatement = tablesSQLMap.get(tableName);\n\t\t\tint length;\n\t\t\tStringBuilder constraint;\n\t\t\t\n\t\t\tswitch(table.getRelationships().get(tableName)) {\n\t\t\t\tcase MANYTOMANY:\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase ONETOMANY:\n\t\t\t\t\tconstraint = new StringBuilder();\n\t\t\t\t\tconstraint\n\t\t\t\t\t\t.append(\",\\n\\t\"+table.getTableName()+\"_id \")\n\t\t\t\t\t\t.append(ColumnType.INTEGER.getValue())\n\t\t\t\t\t\t.append(\" \"+ColumnConstraint.NOT_NULL.getValue()+\", \\n\\t\");\n\t\t\t\t\t\n\t\t\t\t\tconstraint\n\t\t\t\t\t\t.append(TableConstraint.FOREIGN_KEY.getValue())\n\t\t\t\t\t\t.append(\" (\"+tableName+\"_id)\")\n\t\t\t\t\t\t.append(\" \"+TableConstraint.REFERENCES)\n\t\t\t\t\t\t.append(\" \"+table.getTableName()+\"(\"+table.getTableName()+\"_id)\")\n\t\t\t\t\t\t.append(\" \"+TableConstraint.DELETE_CASCADE.getValue());\n\t\t\t\t\t\n\t\t\t\t\tlength = createStatement.length();\n\t\t\t\t\tcreateStatement.replace(length-6, length-5, constraint.toString());\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase ONETOONE:\n\t\t\t\t\tconstraint = new StringBuilder();\n\t\t\t\t\tconstraint\n\t\t\t\t\t\t.append(\",\\n\\t\"+table.getTableName()+\"_id \")\n\t\t\t\t\t\t.append(ColumnType.INTEGER.getValue())\n\t\t\t\t\t\t.append(\" \"+ColumnConstraint.NOT_NULL.getValue()+\", \\n\\t\");\n\t\t\t\t\t\n\t\t\t\t\tconstraint.append(TableConstraint.CONSTRAINT.getValue()+\" \")\n\t\t\t\t\t\t.append(\"fk_\"+table.getTableName()+\"_id\"+\" \")\n\t\t\t\t\t\t.append(TableConstraint.FOREIGN_KEY.getValue())\n\t\t\t\t\t\t.append(\" (\"+table.getTableName()+\"_id)\")\n\t\t\t\t\t\t.append(\" \"+TableConstraint.REFERENCES)\n\t\t\t\t\t\t.append(\" \"+table.getTableName()+\"(\"+table.getTableName()+\"_id)\")\n\t\t\t\t\t\t.append(\" \"+TableConstraint.DELETE_CASCADE.getValue());\n\t\t\t\t\t\n\t\t\t\t\tlength = createStatement.length();\n\t\t\t\t\tcreateStatement.replace(length-6, length-5, constraint.toString());\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "RelatedPerson<Person, Person> relatePerson(String person1, String person2, String relation);", "@Override\n\tpublic String toString() {\n\t\treturn \"(relation \" +\n\t\t\t\t(this.source != null ? this.source.getId() : \"nil\") + \" \" +\n\t\t\t\tthis.name.toString() + \" \" +\n\t\t\t\t(this.dest != null ? this.dest.toString() : \"nil\") + \")\";\n\t}", "@DISPID(1610940428) //= 0x6005000c. The runtime will prefer the VTID if present\n @VTID(34)\n Relations relations();", "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 String get_relation() {\n\t\treturn relation;\n\t}", "private String getCloneSetLinkTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table CLONE_SET_LINK(\");\n \t\tbuilder.append(\"CLONE_SET_LINK_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"BEFORE_ELEMENT_ID LONG,\");\n \t\tbuilder.append(\"AFTER_ELEMENT_ID LONG,\");\n \t\tbuilder.append(\"BEFORE_REVISION_ID LONG,\");\n \t\tbuilder.append(\"AFTER_REVISION_ID LONG,\");\n \t\tbuilder.append(\"CHANGED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"ADDED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"DELETED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"CO_CHANGED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"CODE_FRAGMENT_LINKS TEXT NOT NULL\");\n \t\tbuilder.append(\")\");\n \n \t\treturn builder.toString();\n \t}", "private String[] getRelationshipQuery(Predicate p,\n\t HashMap<String, String> keyObjects) throws MediatorException {\n\tString query[] = new String[2];\n\tString tableName = p.getName();\n\tif (p.getVars().size() != 2) {\n\t throw new MediatorException(\n\t\t \"A relationship predicate must have exactly 2 attributes.\");\n\t}\n\tString var1 = p.getVars().get(0);\n\tString var2 = p.getVars().get(1);\n\tString obj = keyObjects.get(var1);\n\tif (obj != null)\n\t var1 = obj;\n\tobj = keyObjects.get(var2);\n\tif (obj != null)\n\t var2 = obj;\n\t// I don't know which way the relationship is, so go both ways\n\tquery[0] = \" ?\" + var2 + \" vocab:\" + dbName + tableName + \" ?\" + var1\n\t\t+ \" . \\n\";\n\tquery[1] = \" ?\" + var1 + \" vocab:\" + dbName + tableName + \" ?\" + var2\n\t\t+ \" . \\n\";\n\n\t// System.out.println(\"PQ=\" + query);\n\treturn query;\n }", "public String[] getRelations() {\n/* 270 */ return getStringArray(\"relation\");\n/* */ }", "private static void process_relation(GraphDatabaseService db, CSVRecord record){\n\t\tString item_dwid_str = record.get(\"ITEM_DWID\").trim();\n\t\tString rxcui_norm_str = record.get(\"RXCUI_NORM\").trim();\n\t\tif(item_dwid_str.isEmpty()) return;\n\t\tif(rxcui_norm_str.isEmpty()) return;\n\t\tint item_dwid = Integer.parseInt(item_dwid_str);\n\t\tint rxcui_norm = Integer.parseInt(rxcui_norm_str);\n\t\tNode n1 = db.findNode(Labels.ITEM, \"dwid\", item_dwid);\n\t\t//if(n1==null) throw new AssertionError(\"Item missing: \"+item_dwid_str);\n\t\tif(n1==null) return;\n\t\tNode n2 = db.findNode(Labels.Concept, \"cui\", rxcui_norm);\n\t\t//if(n2==null) throw new AssertionError(\"Concept missing: \"+rxcui_norm_str);\n\t\tif(n2==null) return;\n\t\tn1.createRelationshipTo(n2, RelTypes.is_a);\n\t}", "void relationshipCreate( long id, int typeId, long startNodeId,\n long endNodeId );", "public String getInverseRelationshipName ();", "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}", "public static interface Relation {\n\t\t//some relations are read-only\n\t\tpublic boolean isWriteable();\n\n\t\tpublic String getName();\n\n\t\t/**\n\t\t* Get the model for the relation. This will return a blank tuple, which will show\n\t\t* the ordered list of columns and the type for each. This is basically metadata.\n\t\t*/\n\t\tpublic Tuple getModel();\n\n\t\t/**\n\t\t* Get the number of rows (Tuples) in the relation.\n\t\t*/\n\t\tpublic int getRows();\n\n\t\t//----------------------------\n\t\t//operations on a Relation\n\t\t/**\n\t\t* projection narrows the number of columns in a relation.\n\t\t* This is the part of an sql statement that list the columns, e.g.\n\t\t*\tSELECT firstname,lastname FROM contact.\n\t\t* The contact table has a lot columns that these, but we only need these\n\t\t* two.\n\t\t*/\n\t\tpublic Relation project(Tuple t) throws RelationException;\n\n\t\t/**\n\t\t* Select narrows the number of rows returned.\n\t\t*/\n\t\tpublic Relation select(Condition c) throws RelationException;\n\n\t\t/**\n\t\t* Join this relation with another one based on the condition, and give it a name.\n\t\t* The implementation of this is complicated, because it must also create a dynamic\n\t\t* Tuple\n\t\t*/\n\t\tpublic Relation join(Relation r, Condition c, String name) throws RelationException;\n\t\t//-------------------------------\n\n\t\t/**\n\t\t* A cursor is the equivalent of a ResultSet. There may be different types\n\t\t* of Cursors depending on if this is coming directly from the database\n\t\t* or from a derived relation.\n\t\t*/\n\t\tpublic Cursor getCursor() throws RelationException;\n\n\t\t//-------------------------------\n\t\t//change data in the relation\n\t\t//I had this as part of Transaction, but I guess it belongs here.\n\t\t/**\n\t\t* Insert a Tuple into the relation. This may fail for various reasons\n\t\t* including IO problems, invalid transaction state, or constraint violations.\n\t\t* Or if the relation is read-only\n\t\t*/\n\t\tpublic Key insert(Transaction tx,Tuple t) throws RelationException;\n\n\t\t/**\n\t\t* Get the tuple that you just inserted by the Key\n\t\t*/\n\t\tpublic Tuple get(Key k) throws RelationException;\n\n\t\t/**\n\t\t* Update the relation with changed data in the Tuple.\n\t\t* The old data is stored in the _audit table.\n\t\t*/\n\t\tpublic void update(Transaction tx,Tuple old, Tuple nu) throws RelationException;\n\n\t\t/**\n\t\t* Delete the object. Must provide old state of object before doing so, so it\n\t\t* can be audited.\n\t\t*/\n\t\tpublic void delete(Transaction tx,Tuple old) throws RelationException;\n\n\t}", "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); }", "static void generate(Link link, PrintWriter outData, String mComma)\r\n {\r\n String comma = \" ( \";\r\n outData.println(mComma+\"CONSTRAINT \" + link.linkName + \" FOREIGN KEY\");\r\n for (int i=0; i < link.fields.size(); i++, comma = \" , \")\r\n {\r\n String name = (String) link.fields.elementAt(i);\r\n outData.println(comma+name);\r\n }\r\n outData.println(\" ) REFERENCES \"+link.name);\r\n }", "public String[] listRelations();", "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 static void main(String args[]) {\n Model model = ModelFactory.createDefaultModel(); \n\n//set namespace\n Resource NAMESPACE = model.createResource( relationshipUri );\n \tmodel.setNsPrefix( \"rela\", relationshipUri);\n \n// Create the types of Property we need to describe relationships in the model\n Property childOf = model.createProperty(relationshipUri,\"childOf\"); \n Property siblingOf = model.createProperty(relationshipUri,\"siblingOf\");\n Property spouseOf = model.createProperty(relationshipUri,\"spouseOf\");\n Property parentOf = model.createProperty(relationshipUri,\"parentOf\"); \n \n \n// Create resources representing the people in our model\n Resource Siddharth = model.createResource(familyUri+\"Siddharth\");\n Resource Dhvanit = model.createResource(familyUri+\"Dhvanit\");\n Resource Rekha = model.createResource(familyUri+\"Rekha\");\n Resource Sandeep = model.createResource(familyUri+\"Sandeep\");\n Resource Kanchan = model.createResource(familyUri+\"Kanchan\");\n Resource Pihu = model.createResource(familyUri+\"Pihu\");\n Resource DwarkaPrasad = model.createResource(familyUri+\"Dwarkesh\");\n Resource Shakuntala = model.createResource(familyUri+\"Shakuntala\");\n Resource Santosh = model.createResource(familyUri+\"Santosh\");\n Resource Usha = model.createResource(familyUri+\"Usha\");\n Resource Priyadarshan = model.createResource(familyUri+\"Priyadarshan\");\n Resource Sudarshan = model.createResource(familyUri+\"Sudarshan\");\n Resource Pragya = model.createResource(familyUri+\"Pragya\");\n Resource Shailendra = model.createResource(familyUri+\"Shailendra\");\n Resource Rajni = model.createResource(familyUri+\"Rajni\");\n Resource Harsh = model.createResource(familyUri+\"Harsh\");\n Resource Satendra = model.createResource(familyUri+\"Satendra\");\n Resource Vandana = model.createResource(familyUri+\"Vandana\");\n Resource Priyam = model.createResource(familyUri+\"Priyam\");\n Resource Darshan = model.createResource(familyUri+\"Darshan\");\n Resource Vardhan = model.createResource(familyUri+\"Vardhan\");\n \n List<Statement> list = new ArrayList(); \n list.add(model.createStatement(Dhvanit,spouseOf,Kanchan)); \n list.add(model.createStatement(Sandeep,spouseOf,Rekha)); \n list.add(model.createStatement(DwarkaPrasad,spouseOf,Shakuntala)); \n list.add(model.createStatement(Santosh,spouseOf,Usha)); \n list.add(model.createStatement(Shailendra,spouseOf,Rajni)); \n list.add(model.createStatement(Satendra,spouseOf,Vandana)); \n list.add(model.createStatement(Sandeep,childOf,DwarkaPrasad)); \n list.add(model.createStatement(Sandeep,childOf,Shakuntala)); \n list.add(model.createStatement(Santosh,childOf,DwarkaPrasad)); \n list.add(model.createStatement(Santosh,childOf,Shakuntala)); \n list.add(model.createStatement(Shailendra,childOf,DwarkaPrasad)); \n list.add(model.createStatement(Shailendra,childOf,Shakuntala)); \n list.add(model.createStatement(Satendra,childOf,DwarkaPrasad)); \n list.add(model.createStatement(Satendra,childOf,Shakuntala)); \n list.add(model.createStatement(DwarkaPrasad,parentOf,Sandeep)); \n list.add(model.createStatement(DwarkaPrasad,parentOf,Santosh)); \n list.add(model.createStatement(DwarkaPrasad,parentOf,Shailendra)); \n list.add(model.createStatement(DwarkaPrasad,parentOf,Satendra)); \n list.add(model.createStatement(Shakuntala,parentOf,Sandeep)); \n list.add(model.createStatement(Shakuntala,parentOf,Santosh)); \n list.add(model.createStatement(Shakuntala,parentOf,Shailendra)); \n list.add(model.createStatement(Shakuntala,parentOf,Satendra)); \n list.add(model.createStatement(Sandeep,parentOf,Siddharth)); \n list.add(model.createStatement(Sandeep,parentOf,Dhvanit)); \n list.add(model.createStatement(Rekha,parentOf,Siddharth)); \n list.add(model.createStatement(Rekha,parentOf,Dhvanit)); \n list.add(model.createStatement(Siddharth,childOf,Rekha)); \n list.add(model.createStatement(Dhvanit,childOf,Rekha)); \n list.add(model.createStatement(Siddharth,childOf,Sandeep)); \n list.add(model.createStatement(Dhvanit,childOf,Sandeep)); \n list.add(model.createStatement(Harsh,childOf,Shailendra)); \n list.add(model.createStatement(Harsh,childOf,Rajni)); \n list.add(model.createStatement(Shailendra,parentOf,Harsh)); \n list.add(model.createStatement(Rajni,parentOf,Harsh)); \n list.add(model.createStatement(Santosh,parentOf,Priyadarshan)); \n list.add(model.createStatement(Santosh,parentOf,Sudarshan));\n list.add(model.createStatement(Santosh,parentOf,Pragya));\n list.add(model.createStatement(Usha,parentOf,Priyadarshan)); \n list.add(model.createStatement(Usha,parentOf,Sudarshan));\n list.add(model.createStatement(Usha,parentOf,Pragya));\n list.add(model.createStatement(Priyadarshan,childOf,Santosh));\n list.add(model.createStatement(Pragya,childOf,Santosh));\n list.add(model.createStatement(Sudarshan,childOf,Santosh));\n list.add(model.createStatement(Priyadarshan,childOf,Usha));\n list.add(model.createStatement(Pragya,childOf,Usha));\n list.add(model.createStatement(Sudarshan,childOf,Usha));\n list.add(model.createStatement(Satendra,parentOf,Priyam)); \n list.add(model.createStatement(Satendra,parentOf,Darshan));\n list.add(model.createStatement(Satendra,parentOf,Vardhan));\n list.add(model.createStatement(Vandana,parentOf,Priyam)); \n list.add(model.createStatement(Vandana,parentOf,Darshan));\n list.add(model.createStatement(Vandana,parentOf,Vardhan));\n list.add(model.createStatement(Priyam,childOf,Satendra));\n list.add(model.createStatement(Darshan,childOf,Satendra));\n list.add(model.createStatement(Vardhan,childOf,Satendra));\n list.add(model.createStatement(Priyam,childOf,Vandana));\n list.add(model.createStatement(Darshan,childOf,Vandana));\n list.add(model.createStatement(Vardhan,childOf,Vandana));\n list.add(model.createStatement(Pihu,childOf,Dhvanit));\n list.add(model.createStatement(Pihu,childOf,Kanchan));\n list.add(model.createStatement(Dhvanit,parentOf,Pihu));\n list.add(model.createStatement(Kanchan,parentOf,Pihu));\n list.add(model.createStatement(Siddharth,siblingOf,Dhvanit));\n list.add(model.createStatement(Dhvanit,siblingOf,Siddharth)); \n list.add(model.createStatement(Priyadarshan,siblingOf,Sudarshan));\n list.add(model.createStatement(Priyadarshan,siblingOf,Pragya));\n list.add(model.createStatement(Sudarshan,siblingOf,Priyadarshan));\n list.add(model.createStatement(Sudarshan,siblingOf,Pragya));\n list.add(model.createStatement(Pragya,siblingOf,Priyadarshan));\n list.add(model.createStatement(Pragya,siblingOf,Sudarshan)); \n list.add(model.createStatement(Priyam,siblingOf,Darshan));\n list.add(model.createStatement(Priyam,siblingOf,Vardhan)); \n list.add(model.createStatement(Darshan,siblingOf,Vardhan)); \n list.add(model.createStatement(Darshan,siblingOf,Priyam));\n list.add(model.createStatement(Vardhan,siblingOf,Priyam));\n list.add(model.createStatement(Vardhan,siblingOf,Darshan));\n list.add(model.createStatement(Santosh,siblingOf,Sandeep));\n list.add(model.createStatement(Santosh,siblingOf,Shailendra));\n list.add(model.createStatement(Santosh,siblingOf,Satendra));\n list.add(model.createStatement(Sandeep,siblingOf,Santosh));\n list.add(model.createStatement(Sandeep,siblingOf,Shailendra));\n list.add(model.createStatement(Sandeep,siblingOf,Satendra));\n list.add(model.createStatement(Shailendra,siblingOf,Santosh));\n list.add(model.createStatement(Shailendra,siblingOf,Sandeep));\n list.add(model.createStatement(Shailendra,siblingOf,Satendra));\n list.add(model.createStatement(Satendra,siblingOf,Shailendra));\n list.add(model.createStatement(Satendra,siblingOf,Santosh));\n list.add(model.createStatement(Satendra,siblingOf,Sandeep));\n \n model.add(list);\n try{\n \t File file=new File(\"/Users/siddharthgupta/Documents/workspace/FamilyModel/src/family/family.rdf\");\n \t \tFileOutputStream f1=new FileOutputStream(file);\n \t \tRDFWriter d = model.getWriter(\"RDF/XML-ABBREV\");\n \t \t\t\td.write(model,f1,null);\n \t\t}catch(Exception e) {}\n }", "private RelationMapping createRelationMapping(RoleSchema role, EJB ejb, Table table, Table relatedTable) throws DeploymentException {\n Map columnNameMapping = role.getPkMapping();\n LinkedHashMap ejbFieldMappings = new LinkedHashMap();\n LinkedHashMap columnMappings = new LinkedHashMap();\n for (Iterator iterator = table.getPrimaryKeyFields().iterator(); iterator.hasNext();) {\n Column column = (Column) iterator.next();\n \n // -- column names\n String columnName = column.getPhysicalName();\n String relatedColumnName = (String) columnNameMapping.get(columnName);\n if (null == relatedColumnName) {\n throw new DeploymentException(\"Role \" + role + \" is misconfigured: primary key column [\" +\n columnName + \"] is not mapped to a foreign key.\");\n }\n \n // -- field Names\n String ejbFieldName = column.getName();\n String relatedEjbFieldName = relatedColumnName;\n for (Iterator iter = relatedTable.getAttributes().iterator(); iter.hasNext();) {\n Column relatedTableColumn = (Column) iter.next();\n if (relatedTableColumn.getPhysicalName().equals(relatedColumnName)) {\n relatedEjbFieldName = relatedTableColumn.getName();\n break;\n }\n }\n \n // -- create related ejb field\n FKField relatedEjbField = new FKField(relatedEjbFieldName, relatedColumnName, column.getType());\n ejbFieldMappings.put(ejb.getAttribute(ejbFieldName), relatedEjbField);\n \n \n // -- create related column\n FKColumn relatedcolumn = new FKColumn(relatedEjbFieldName, relatedColumnName, column.getType());\n if (column.isSQLTypeSet()) {\n relatedcolumn.setSQLType(column.getSQLType());\n }\n if (column.isTypeConverterSet()) {\n relatedcolumn.setTypeConverter(column.getTypeConverter());\n }\n columnMappings.put(column, relatedcolumn);\n }\n return new RelationMapping(ejbFieldMappings, columnMappings);\n }", "public final native String getRelationship() /*-{\n return this.getRelationship();\n }-*/;", "public void addRelationAttribute(String key, String value) {\n this.relationAttributes.put(key, value);\n }", "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 }", "public void setRelatedTo(java.lang.String value);", "boolean hasRelation();", "public static String relationDecl(String multiplicity)\n {\n read_if_needed_();\n \n return _rel_decl[UmlSettings.multiplicity_column(multiplicity)];\n }", "public RelationObject(String relation, EVAnnotation relatum) {\n\t\tthis.relation = relation;\n\t\tthis.relatum = relatum;\n\t}", "public void setRelationship(Relationship r) {\n\t\trelationship = r;\n\t}", "String findRelation(String person1, String person2);", "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 }", "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 String getRelation() {\n return relation;\n }", "public String getRelationPropertyName() {\n return getForeignPropertyName();\n }", "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 String setToRelationship(Context context,\r\n\t\t\tjava.lang.String relID, String targetrelationshipId,\r\n \t\tboolean isFrom)throws Exception\r\n {\r\n\r\n \tString connId = null;\r\n \t//StringBuffer sbCmd = new StringBuffer();\r\n \tStringBuffer sbCmd2 = new StringBuffer();\r\n\r\n try\r\n {\r\n \t//sbCmd.append(\"mod connection \\\"\");\r\n \tsbCmd2.append(\"mod connection $1 \");\r\n \t//sbCmd.append(relID);\r\n \tif(isFrom)\r\n \t{\r\n \t\t//sbCmd.append(\"\\\" fromrel \\\"\");\r\n \t\tsbCmd2.append(\" fromrel $2 \");\r\n \t//sbCmd.append(targetrelationshipId);\r\n \t}\r\n \telse\r\n \t{\r\n \t\t//sbCmd.append(\"\\\" torel \\\"\");\r\n \t\tsbCmd2.append(\" torel $2 \");\r\n \t//sbCmd.append(targetrelationshipId);\r\n\r\n \t}\r\n \t//sbCmd.append(\"\\\" select id dump;\");\r\n \tsbCmd2.append(\" select $3 dump\");\r\n \tconnId = MqlUtil.mqlCommand(context, sbCmd2.toString(), true,relID,targetrelationshipId,\"id\");\r\n }\r\n catch (Exception e)\r\n {\r\n throw new FrameworkException(e);\r\n }\r\n\r\n\t\treturn connId;\r\n }", "public void addRelation(int from, int to){\n this.setAdjacencyMatrixEntry(from, to, 1);\n }", "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 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 final native void setRelationship(String relationship) /*-{\n this.setRelationship(relationship);\n }-*/;", "@Override\n final public String getInputRelation() {\n return \"SELECT * FROM TR1_DB1_PROPHECY_Q5_INNER\";\n }", "private void switchRelations() throws TransactionAbortedException, DbException {\n // IMPLEMENT ME\n }", "public void delRelations();", "public void createRelation(Agent source, Agent target, double relation) {\n this.gamygdala.createRelation(source, target, relation);\n }", "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 }", "public abstract RelationDeclaration getRelation();", "private String replaceIntermediateObjectWithRel(Context context, String strOldRelId ,String strNewRelId ,String strNewRelIdSide,Map attributeMap) throws Exception {\r\n\r\n\t\tString strNewConnId=\"\";\r\n\t\tboolean isRelToRel = true;\r\n\t\tboolean isFrom = true;\r\n\r\n\t\ttry{\r\n\r\n\t\tDomainRelationship domRel = new DomainRelationship(strOldRelId);\r\n //Get the attributes on Relationship\r\n /*Map attributeMap = new HashMap();\r\n attributeMap = domRel.getAttributeMap(context,true);*/\r\n\r\n\r\n\t\t//Get the \"Type\" of rel\r\n\t\tStringList slRelSelects = new StringList(1);\r\n slRelSelects.addElement(DomainRelationship.SELECT_TYPE);\r\n\r\n if(strNewRelIdSide!=null && strNewRelIdSide.equalsIgnoreCase(\"from\")){\r\n \t//New Rel replaces FL/GBOM which is on \"from\" side of Old Rel hence we query now \"to\" side of Old Rel\r\n \tslRelSelects.add(\"to.id\");\r\n slRelSelects.add(\"torel.id\");\r\n\r\n }else if(strNewRelIdSide!=null && strNewRelIdSide.equalsIgnoreCase(\"to\")){\r\n \t//New Rel replaces FL/GBOM which is on \"to\" side of Old Rel hence we query now \"from\" side of Old Rel\r\n \tslRelSelects.add(\"from.id\");\r\n slRelSelects.add(\"fromrel.id\");\r\n }\r\n\r\n Hashtable htRelData = domRel.getRelationshipData(context,slRelSelects);\r\n\r\n String strFromSideOfRel =\"\";\r\n String strToSideOfRel =\"\";\r\n String strRelId =\"\";\r\n String strObjId =\"\";\r\n\r\n StringList slRelTypes = (StringList) htRelData.get(DomainRelationship.SELECT_TYPE);\r\n String strRelType = (String) slRelTypes.get(0);\r\n RelationshipType RelType = new RelationshipType(strRelType);\r\n\r\n\r\n if((StringList) htRelData.get(\"from.id\")!=null || ((StringList)htRelData.get(\"fromrel.id\"))!=null ){\r\n\r\n \tStringList slFromSideOfRel = new StringList();\r\n \tif(!((StringList)htRelData.get(\"from.id\")).isEmpty()){\r\n \t\tslFromSideOfRel = (StringList) htRelData.get(\"from.id\");\r\n \t\tstrFromSideOfRel = (String) slFromSideOfRel.get(0);\r\n\r\n \t\tisRelToRel = false;\r\n \t\t//isFrom = false;\r\n \t\tstrObjId = strFromSideOfRel;\r\n\r\n\r\n \t}else if(!((StringList)htRelData.get(\"fromrel.id\")).isEmpty()){\r\n \t\tslFromSideOfRel = (StringList) htRelData.get(\"fromrel.id\");\r\n \t\tstrFromSideOfRel = (String) slFromSideOfRel.get(0);\r\n\r\n \t\tstrRelId = strFromSideOfRel;\r\n \t\tisFrom = false;\r\n \t}\r\n }\r\n\r\n if((StringList) htRelData.get(\"to.id\")!=null || ((StringList)htRelData.get(\"torel.id\"))!=null ){\r\n\r\n \tStringList slToSideOfRel = new StringList();\r\n \tif(!((StringList)htRelData.get(\"to.id\")).isEmpty()){\r\n \t\tslToSideOfRel = (StringList) htRelData.get(\"to.id\");\r\n \t\tstrToSideOfRel = (String) slToSideOfRel.get(0);\r\n\r\n \t\tisRelToRel = false;\r\n \t\tstrObjId = strToSideOfRel;\r\n \t\tisFrom = false;\r\n \t}else if(!((StringList)htRelData.get(\"torel.id\")).isEmpty()){\r\n\r\n \t\tslToSideOfRel = (StringList) htRelData.get(\"torel.id\");\r\n\r\n \t\tstrToSideOfRel = (String) slToSideOfRel.get(0);\r\n \t\tstrRelId =strToSideOfRel;\r\n \t\t//isFrom = false;\r\n \t}\r\n }\r\n\r\n\r\n if(isRelToRel){\r\n\r\n strNewConnId = connectRelationship(context, RelType, strRelId,strNewRelId, isFrom);\r\n\r\n }else{\r\n\r\n \tstrNewConnId = connectObject(context, RelType, strObjId,strNewRelId, isFrom);\r\n }\r\n\r\n\t\t\t StringList relDataSelects = new StringList();\r\n\t\t\t relDataSelects.addElement(\"frommid.id\");\r\n\t\t\t relDataSelects.addElement(\"tomid.id\");\r\n\r\n\t\t\t Map gbomRelData = domRel.getRelationshipData(context,relDataSelects);\r\n\t\t\t StringList sLFrommid = new StringList();\r\n\t\t\t StringList sLTomid = new StringList();\r\n\r\n\t\t\t sLFrommid = (StringList) gbomRelData.get(\"frommid.id\");\r\n\t\t\t if(!sLFrommid.isEmpty()){\r\n\t\t\t\tfor(int i=0;i<sLFrommid.size();i++){\r\n\r\n\t\t\t\t\tString strFromMid = (String)sLFrommid.get(i);\r\n\t\t\t\t\tsetToRelationship(context,strFromMid,strNewConnId,true);\r\n\t\t\t }\r\n\t\t\t }\r\n\r\n\r\n\t\t\t sLTomid = (StringList) gbomRelData.get(\"tomid.id\");\r\n\t\t\t if(!sLTomid.isEmpty()){\r\n\t\t\t\tfor(int i=0;i<sLTomid.size();i++){\r\n\r\n\t\t\t\t\tString strToMid = (String)sLTomid.get(i);\r\n\t\t\t\t\tsetToRelationship(context,strToMid,strNewConnId,false);\r\n\t\t\t }\r\n\t\t\t }\r\n\r\n\t\t\tDomainRelationship domNewConnId = new DomainRelationship(strNewConnId);\r\n\t\t\tmqlLogRequiredInformationWriter(\"Rel id :: \"+ strNewConnId +\"\\n\");\r\n\t\t mqlLogRequiredInformationWriter(\"Attribute value Map set for this rel id :: \"+ attributeMap +\"\\n\\n\");\r\n\t domNewConnId.setAttributeValues(context, attributeMap);\r\n\r\n\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn strNewConnId;\r\n\t}", "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 String toStringWithRelation() {\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(toString());\r\n String l = \"\\n \";\r\n if (_member != null)\r\n { sb.append(l).append(xbRDS(_member, \"member\")); }\r\n if (_region != null)\r\n { sb.append(l).append(xbRDS(_region, \"region\")); }\r\n return sb.toString();\r\n }", "public Future<Person> createRelationship( String personId, String friendId );", "@Generated(\n value = {\n \"http://www.jooq.org\",\n \"jOOQ version:3.10.8\"\n },\n comments = \"This class is generated by jOOQ\"\n)\n@SuppressWarnings({ \"all\", \"unchecked\", \"rawtypes\" })\npublic interface IMRelation extends Serializable {\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.KEY</code>. 「key」- 关系定义的主键\n */\n public IMRelation setKey(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.KEY</code>. 「key」- 关系定义的主键\n */\n public String getKey();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.TYPE</code>. 「type」- 关系类型 - 来自(字典)\n */\n public IMRelation setType(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.TYPE</code>. 「type」- 关系类型 - 来自(字典)\n */\n public String getType();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.UPSTREAM</code>. 「upstream」- 当前关系是 upstream,表示上级\n */\n public IMRelation setUpstream(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.UPSTREAM</code>. 「upstream」- 当前关系是 upstream,表示上级\n */\n public String getUpstream();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.DOWNSTREAM</code>. 「downstream」- 当前关系是 downstream,表示下级\n */\n public IMRelation setDownstream(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.DOWNSTREAM</code>. 「downstream」- 当前关系是 downstream,表示下级\n */\n public String getDownstream();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.COMMENTS</code>. 「comments」- 关系定义的描述信息\n */\n public IMRelation setComments(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.COMMENTS</code>. 「comments」- 关系定义的描述信息\n */\n public String getComments();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.SIGMA</code>. 「sigma」- 统一标识\n */\n public IMRelation setSigma(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.SIGMA</code>. 「sigma」- 统一标识\n */\n public String getSigma();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.LANGUAGE</code>. 「language」- 使用的语言\n */\n public IMRelation setLanguage(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.LANGUAGE</code>. 「language」- 使用的语言\n */\n public String getLanguage();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.ACTIVE</code>. 「active」- 是否启用\n */\n public IMRelation setActive(Boolean value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.ACTIVE</code>. 「active」- 是否启用\n */\n public Boolean getActive();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.METADATA</code>. 「metadata」- 附加配置数据\n */\n public IMRelation setMetadata(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.METADATA</code>. 「metadata」- 附加配置数据\n */\n public String getMetadata();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.CREATED_AT</code>. 「createdAt」- 创建时间\n */\n public IMRelation setCreatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.CREATED_AT</code>. 「createdAt」- 创建时间\n */\n public LocalDateTime getCreatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.CREATED_BY</code>. 「createdBy」- 创建人\n */\n public IMRelation setCreatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.CREATED_BY</code>. 「createdBy」- 创建人\n */\n public String getCreatedBy();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.UPDATED_AT</code>. 「updatedAt」- 更新时间\n */\n public IMRelation setUpdatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.UPDATED_AT</code>. 「updatedAt」- 更新时间\n */\n public LocalDateTime getUpdatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.M_RELATION.UPDATED_BY</code>. 「updatedBy」- 更新人\n */\n public IMRelation setUpdatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.M_RELATION.UPDATED_BY</code>. 「updatedBy」- 更新人\n */\n public String getUpdatedBy();\n\n // -------------------------------------------------------------------------\n // FROM and INTO\n // -------------------------------------------------------------------------\n\n /**\n * Load data from another generated Record/POJO implementing the common interface IMRelation\n */\n public void from(cn.vertxup.atom.domain.tables.interfaces.IMRelation from);\n\n /**\n * Copy data into another generated Record/POJO implementing the common interface IMRelation\n */\n public <E extends cn.vertxup.atom.domain.tables.interfaces.IMRelation> E into(E into);\n\n default IMRelation fromJson(io.vertx.core.json.JsonObject json) {\n setKey(json.getString(\"KEY\"));\n setType(json.getString(\"TYPE\"));\n setUpstream(json.getString(\"UPSTREAM\"));\n setDownstream(json.getString(\"DOWNSTREAM\"));\n setComments(json.getString(\"COMMENTS\"));\n setSigma(json.getString(\"SIGMA\"));\n setLanguage(json.getString(\"LANGUAGE\"));\n setActive(json.getBoolean(\"ACTIVE\"));\n setMetadata(json.getString(\"METADATA\"));\n // Omitting unrecognized type java.time.LocalDateTime for column CREATED_AT!\n setCreatedBy(json.getString(\"CREATED_BY\"));\n // Omitting unrecognized type java.time.LocalDateTime for column UPDATED_AT!\n setUpdatedBy(json.getString(\"UPDATED_BY\"));\n return this;\n }\n\n\n default io.vertx.core.json.JsonObject toJson() {\n io.vertx.core.json.JsonObject json = new io.vertx.core.json.JsonObject();\n json.put(\"KEY\",getKey());\n json.put(\"TYPE\",getType());\n json.put(\"UPSTREAM\",getUpstream());\n json.put(\"DOWNSTREAM\",getDownstream());\n json.put(\"COMMENTS\",getComments());\n json.put(\"SIGMA\",getSigma());\n json.put(\"LANGUAGE\",getLanguage());\n json.put(\"ACTIVE\",getActive());\n json.put(\"METADATA\",getMetadata());\n // Omitting unrecognized type java.time.LocalDateTime for column CREATED_AT!\n json.put(\"CREATED_BY\",getCreatedBy());\n // Omitting unrecognized type java.time.LocalDateTime for column UPDATED_AT!\n json.put(\"UPDATED_BY\",getUpdatedBy());\n return json;\n }\n\n}", "public void saveMediaRelation(MediaRelation mediarelation_1);", "private String relationGenerator(ArrayList<Verb> candidateRelation){\n String relation = candidateRelation.get(0).token;\n if(candidateRelation.size()>=3){\n if(isBe(candidateRelation.get(0).token) && isAdv(candidateRelation.get(1).type)\n && isVerb(candidateRelation.get(2).type)){\n relation += \" \" + candidateRelation.get(1).token + \" \" + candidateRelation.get(2).token;\n }else if(isBe(candidateRelation.get(0).token) && isPast(candidateRelation.get(1).type)){\n relation += \" \" + candidateRelation.get(1).token;\n }else if(isHave(candidateRelation.get(0).token) && isPast(candidateRelation.get(1).type)){\n relation += \" \" + candidateRelation.get(1).token;\n }\n }\n return relation;\n }", "@Override\n\t\tpublic boolean hasRelationship() {\n\t\t\treturn false;\n\t\t}", "@Override\n public void setRelationships(com.gensym.util.Sequence relationships) throws G2AccessException {\n setAttributeValue (SystemAttributeSymbols.RELATIONSHIPS_, relationships);\n }", "public String connectRelationship(Context context,\r\n \t\tRelationshipType relationshipType,\r\n \t\tjava.lang.String relId, String strNewRelId,\r\n \t\tboolean isFrom)throws Exception\r\n {\r\n \tString fromRelId = null;\r\n \tString toRelId = null;\r\n \tString connId = null;\r\n \tStringBuffer sbCmd = new StringBuffer();\r\n \tStringBuffer sbCmd2 = new StringBuffer();\r\n try\r\n {\r\n \tif(isFrom)\r\n \t{\r\n \t\tfromRelId = strNewRelId;\r\n \t\ttoRelId = relId;\r\n \t}else\r\n \t{\r\n \t\tfromRelId = relId;\r\n \t\ttoRelId = strNewRelId;\r\n \t}\r\n\r\n \tsbCmd.append(\"add connection \\\"\");\r\n \tsbCmd.append(relationshipType);\r\n \tsbCmd.append(\"\\\" fromrel \\\"\");\r\n \tsbCmd.append(fromRelId);\r\n \tsbCmd.append(\"\\\" torel \\\"\");\r\n \tsbCmd.append(toRelId);\r\n \tsbCmd.append(\"\\\" select id dump;\");\r\n \t\r\n \tsbCmd2.append(\"add connection \");\r\n \tsbCmd2.append(\"$1\");\r\n \tsbCmd2.append(\" fromrel \");\r\n \tsbCmd2.append(\"$2\");\r\n \tsbCmd2.append(\" torel \");\r\n \tsbCmd2.append(\"$3\");\r\n \tsbCmd2.append(\" select $4 dump\");\r\n\r\n \tmqlLogRequiredInformationWriter(\"MQL command to be executed ::\" + \"\\n\" + sbCmd.toString()+ \"\\n\");\r\n \tconnId = MqlUtil.mqlCommand(context, sbCmd2.toString(), true,relationshipType.getName(),fromRelId,toRelId,\"id\");\r\n\r\n }\r\n catch (Exception e)\r\n {\r\n \tmqlLogRequiredInformationWriter(\"MQL command execution failed in 'connectRelationship' API ::\" + sbCmd.toString()+ \"\\n\");\r\n \te.printStackTrace();\r\n throw new FrameworkException(e);\r\n }\r\n\t\treturn connId;\r\n }", "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 }", "public abstract String toSQL();", "public Relation (String name, ArrayList<String> attributes, ArrayList<String> dNames) {\n this.name = name;\n this.attributes = attributes;\n this.domains = dNames;\n table = new ArrayList<Tuple>();\n }", "public static void set_RelationDecl(String multiplicity, String v) throws RuntimeException\n {\n read_if_needed_();\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaRelationDeclCmd, multiplicity, v);\n UmlCom.check();\n \n _rel_decl[UmlSettings.multiplicity_column(multiplicity)] = v;\n \n }", "@Override public String toString()\n{\n return \"JOIN\";\n}", "public Relationship createRelationshipTo( Node otherNode, \n \t\tRelationshipType type );", "public MediaRelation saveMediaRelationMediaId(Long idMediaRelation_6, MediaTable related_mediaid);", "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 }", "private boolean isRelationship(Predicate p) throws MediatorException {\n\t// check if properties represented by the column names exist\n\tif (p.getName().startsWith(\"XW_\"))\n\t return true;\n\treturn false;\n\n }", "public void displayRelation() {\n System.out.print(this.name + \"(\");\n for (int i = 0; i < attributes.size(); i++) {\n System.out.print(attributes.get(i) + \":\" + domains.get(i));\n // Don't add a comma on the last key, value pair\n if (i < attributes.size() - 1)\n System.out.print(\",\");\n\n }\n System.out.print(\")\");\n System.out.print(\"\\nNumber of Tuples: \" + table.size() + \"\\n\");\n for (Tuple t : table)\n System.out.println(t);\n\n }", "private void addOneToManyJoin(QueryBuilder sb, String entityAliasName, String collectionAttrName, String joinVarName) {\n\t\tsb.append(\" \")\n\t\t .append(entityAliasName).append(\".\").append(collectionAttrName)\n\t\t .append(\" \")\n\t\t .append(joinVarName);\n\t}", "public TmRelationship(String alias) {\n this(alias, TM_RELATIONSHIP);\n }", "@Override\n public com.gensym.util.Sequence getRelationships() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.RELATIONSHIPS_);\n return (com.gensym.util.Sequence)retnValue;\n }", "public String relation_str(DaikonVariableInfo var) {\n String out = parent_ppt_name + \" \" + id;\n if (!var.isStatic() && (local_prefix != null) && !local_prefix.equals(parent_prefix)) {\n out += \" \" + var.getName().replaceFirst(Pattern.quote(local_prefix), parent_prefix);\n }\n return out;\n }", "Join createJoin();", "Relations getGroupOfRelations();", "public void onRelationshipChanged();", "@Override\r\n\tpublic void addClassmate(String name) {\n\t\tclassmateRelations = classmateRelations.concat(\" \"+name);\r\n\t}", "private String getJoins() {\r\n\t\treturn joins;\r\n\t}", "public interface IEntry extends IRelation {\r\n\r\n String getJoinColumnName();\r\n\r\n\r\n void setJoinColumnName(String joinColumnName);\r\n\r\n\r\n String getJoinAttributeName();\r\n\r\n\r\n void setJoinAttributeName(String joinAttributeName);\r\n\r\n\r\n String getJoinEntityIdentifier();\r\n\r\n\r\n void setJoinEntityIdentifier(String joinEntityIdentifier);\r\n\r\n \r\n Entity getJoinEntity();\r\n}", "boolean isOneToMany();", "public void relate(HNode id, Object o);", "public Relation getRelation(String relationName);", "public TmRelationship() {\n this(\"TM_RELATIONSHIP\", null);\n }", "Cascade createCascade();", "private String addClassAssociations() {\n\n symplifyClassRelationMap();\n\n String result = \"\";\n Set<String> keys = classRelationMap.keySet(); // get all keys\n\n for (String key : keys) {\n\n String[] classes = key.split(\"-\");\n\n if (mapIfInterface.get(classes[0])) result += \"[<interface>;\" + classes[0] + \"]\";\n else result += \"[\" + classes[0] + \"]\";\n\n result += classRelationMap.get(key); // Add connection\n\n if (mapIfInterface.get(classes[1])) result += \"[<interface>;\" + classes[1] + \"]\";\n else result += \"[\" + classes[1] + \"]\";\n\n result += \",\";\n }\n return result;\n }", "@Test(timeout = 4000)\n public void test045() throws Throwable {\n String[] stringArray0 = new String[8];\n String string0 = SQLUtil.innerJoin(\"\", stringArray0, \"x\", \" REFERENCES \", stringArray0);\n assertEquals(\"x as REFERENCES on .null = REFERENCES .null and .null = REFERENCES .null and .null = REFERENCES .null and .null = REFERENCES .null and .null = REFERENCES .null and .null = REFERENCES .null and .null = REFERENCES .null and .null = REFERENCES .null\", string0);\n }", "public ObjectProp getRelationship() {\n return relationship;\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n DBSchema dBSchema0 = new DBSchema(\"truncate\");\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\"createnuniqe inde*]/$]($%;qgq`gg\", dBSchema0);\n DBForeignKeyConstraint dBForeignKeyConstraint0 = new DBForeignKeyConstraint(\"&]ZYR\", false, defaultDBTable0, (String[]) null, defaultDBTable0, (String[]) null);\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n String string0 = SQLUtil.fkSpec(dBForeignKeyConstraint0, nameSpec0);\n assertEquals(\"CONSTRAINT &]ZYR FOREIGN KEY () REFERENCES createnuniqe inde*]/$]($%;qgq`gg()\", string0);\n }", "public static List<String> toJoinParts(String relation) {\n String[] path = relation.split(Pattern.quote(\".\"));\n List<String> joins = new ArrayList<>();\n String latestAlias = \"e\";\n for (int i = 0; i < path.length; i++) {\n joins.add(\" join \" + latestAlias + \".\" + path[i] + \" \" + (latestAlias = \"j\" + i));\n }\n System.out.println(joins);\n return joins;\n }", "public static String formatRelationship(String relationship) {\n\t\tDate asofToday = ErdUtils.asOfToday();\n\t\tPsTranslationItem psXlatItem = PsTranslationItem.findByFieldNameAndFieldValueAndEffectiveDate(\"RELATIONSHIP\", relationship, asofToday);\n\t\trelationship = psXlatItem.getXlatLongName();\n\t\tif(relationship != null) {\n\t\t\trelationship = relationship.toUpperCase();\n\t\t\tif(relationship.length() > 20) {\n\t\t\t\trelationship = relationship.substring(0, 20);\n\t\t\t}\n\t\t}\n\t\treturn relationship;\n\t}", "@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}", "ContextRelation getContextRelation();", "public String toStringPrologFormatListRelationship()\r\n\t{\n\t\t\r\n\t\tString output = \"[\";\r\n\r\n\t\tfor (Relationship Re : this.listRelationship)\r\n\t\t{\r\n\t\t\toutput += Re.toStringPrologFormat();\r\n\t\t\toutput += \",\";\r\n\t\t}\r\n\t\toutput = output.substring(0, output.length()-1);\r\n\t\toutput += \"]\";\r\n\t\treturn output;\t\r\n\t}", "@Test\n\tpublic void testCreateRowRelation() throws SQLException\n\t{\n\t\tnew PowerTool(\"asdf\", 5, 5, \"PowerTooldescription\", true);\n\t\tnew StripNail(\"UPC\", 5, 5, 3.33, 9);\n\t\t\n\t\tnew PowerToolsToStripNailsMapper(1,2);\n\t\t\n\t\tResultSet rs = DatabaseGateway.getTable(\"PowerToolsTOStripNails\");\n\t\tif(rs.next())\n\t\t{\n\t\t\tassertEquals(rs.getInt(\"PowerToolid\"),1);\n\t\t\tassertEquals(rs.getInt(\"StripNailid\"),2);\n\t\t}\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 }", "@Override\n\tpublic PersonRelation createRelationshipBetween(Person person,\n\t\t\tPerson relatedPerson, int relationship) {\n\t\treturn null;\n\t}" ]
[ "0.6028155", "0.6014126", "0.601127", "0.59696233", "0.58467543", "0.5838681", "0.5824947", "0.58212864", "0.57080805", "0.5599237", "0.5561426", "0.5530644", "0.5502876", "0.5474707", "0.54689896", "0.54545224", "0.54502195", "0.5448105", "0.54477143", "0.542481", "0.53998667", "0.53886044", "0.53843576", "0.53667164", "0.5351319", "0.53393", "0.52928096", "0.52765113", "0.52619284", "0.52618414", "0.5251249", "0.524116", "0.5209886", "0.52073747", "0.5198261", "0.5186735", "0.518116", "0.51752335", "0.51651466", "0.5164175", "0.51619595", "0.51577944", "0.5142353", "0.513421", "0.5118841", "0.51153576", "0.51102954", "0.510534", "0.5102125", "0.5098729", "0.5093684", "0.50905037", "0.50674653", "0.50569063", "0.5054402", "0.50534445", "0.50434893", "0.5037575", "0.5036578", "0.5003223", "0.49942073", "0.4992837", "0.49783328", "0.49743187", "0.4965997", "0.49641863", "0.49574372", "0.49467957", "0.49437425", "0.4931706", "0.49311322", "0.4928131", "0.4927489", "0.4926898", "0.49234968", "0.49174628", "0.49120754", "0.49112824", "0.49101982", "0.4906884", "0.49024737", "0.48959213", "0.48949268", "0.4894745", "0.48933414", "0.489169", "0.48853248", "0.48756212", "0.4868449", "0.4864263", "0.48629516", "0.4860886", "0.48602536", "0.48584068", "0.48497915", "0.48455238", "0.48429725", "0.48362187", "0.48341128", "0.4821737" ]
0.57234925
8
DATABASE MAPPING : active_status ( VARCHAR )
public void setActiveStatus( String activeStatus ) { this.activeStatus = activeStatus; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setActiveStatus(Boolean active){ this.status = active; }", "public boolean getStatus(){\n return activestatus;\n }", "@Override\r\n public List<ActiveStatusModel> listActiveStatus() {\r\n return jdbcTemplate.query(SQL_SELECT, new ActiveStatusHelper());\r\n }", "public Boolean isActive(){return status;}", "public abstract String currentStatus();", "public void setDbStatus(String dbStatus) {\n\t\tthis.dbStatus = dbStatus;\n\t}", "public void setStatus(boolean newstatus){activestatus = newstatus;}", "public String getDbStatus() {\n\t\treturn dbStatus;\n\t}", "public void buildAccountStatus() {\n try (PreparedStatement prep = Database.getConnection()\n .prepareStatement(\"CREATE TABLE IF NOT EXISTS account_status (user_id\"\n + \" TEXT UNIQUE, status INT, FOREIGN KEY (user_id) REFERENCES users\"\n + \"(id)\" + \" ON DELETE CASCADE ON UPDATE CASCADE);\")) {\n prep.executeUpdate();\n } catch (final SQLException e) {\n e.printStackTrace();\n }\n }", "public boolean isActive() {\n\t\treturn (active_status);\n\t}", "java.lang.String getStatus();", "java.lang.String getStatus();", "java.lang.String getStatus();", "java.lang.String getStatus();", "String getStatus();", "String getStatus();", "String getStatus();", "String getStatus();", "String getStatus();", "@GET\n @Path(\"jobs/status/{value}\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response jobActive(@PathParam(\"value\") String status) {\n if (status.equalsIgnoreCase(\"NEW\")\n || status.equalsIgnoreCase(\"PROCESSING\")\n || status.equalsIgnoreCase(\"QUEUED\")\n || status.equalsIgnoreCase(\"STOPPED\")\n || status.equalsIgnoreCase(\"EXPIRED\")\n || status.equalsIgnoreCase(\"RESET\")\n || status.equalsIgnoreCase(\"FINISHED_WITH_ERRORS\")\n || status.equalsIgnoreCase(\"FINISHED\")\n || (status.equalsIgnoreCase(\"ERROR\"))) {\n List<LGJob> jobs = Utils.getJobManager().getAllByStatus(status);\n JSONObject ob = new JSONObject();\n for (LGJob job : jobs) {\n ob.put(job.getJobId(), job.toJson());\n }\n return Response.status(200).entity(ob.toString(1)).build();\n }\n return Response.status(500).entity(\"Invalid State Query [\"+status+\"]\").build();\n }", "public String getStatus(){\n\n //returns the value of the status field\n return this.status;\n }", "public void setStatus(String status) { this.status = status; }", "public void setActiveflag(String value) {\n setAttributeInternal(ACTIVEFLAG, value);\n }", "protected String getCurrentStatusColumn() {\n\t\treturn \"CurrentPhase\";\n\t}", "public String getStatus() { return status; }", "@Enumerated(EnumType.STRING)\n@Column(name = \"STATUS\", length = EntityWithId.COLUMNLENGTH)\n \n @NotNull(message = \"{NotNull.gov.nih.nci.calims2.domain.administration.customerservice.BillingInformation.status}\")\n public gov.nih.nci.calims2.domain.administration.customerservice.enumeration.BillingInformationStatus getStatus() {\n return status;\n }", "public String getStatus()\r\n {\n return (\"1\".equals(getField(\"ApprovalStatus\")) && \"100\".equals(getField(\"HostRespCode\")) ? \"Approved\" : \"Declined\");\r\n }", "public String getStatus(){\r\n\t\treturn status;\r\n\t}", "UserStatus getStatus();", "public Boolean getStatus() {return status;}", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "public void setStatus(String status) {\r\n this.status = status;\r\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(java.lang.String status) {\r\n this.status = status;\r\n }", "public java.lang.CharSequence getStatus() {\n return status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public void setStatus(String status) {\n this.status = status;\n }", "public java.lang.CharSequence getStatus() {\n return status;\n }", "public void setStatus(java.lang.String status) {\n this.status = status;\n }", "public void setStatus(java.lang.String status) {\n this.status = status;\n }", "public void setStatus(boolean status) {\r\n this.AsGraph.setEnabled(status);\r\n this.AsDia.setEnabled(status);\r\n this.AsFile.setEnabled(status);\r\n this.AsDB.setEnabled(status);\r\n\r\n this.FileOutBox.setEnabled(status);\r\n this.DBOutBox.setEnabled(status);\r\n this.startFileDB.setEnabled(status);\r\n if (status && (this.DBOutBox.isSelected() || this.FileOutBox.isSelected())) {\r\n this.startFileDB.setEnabled(true);\r\n } else {\r\n this.startFileDB.setEnabled(false);\r\n }\r\n }", "public String getStatusQuery() {\n return \"where \" + IBOUB_OPX_NettingScheduler.SCHEDULERSTATUS + \" = ? \";\n }", "public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}", "public void setActiveFlag(String value) {\n setAttributeInternal(ACTIVEFLAG, value);\n }", "String status();", "String status();", "public void setStatus( boolean avtive ){\r\n\t\tthis.activ = avtive;\r\n\t}", "public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }", "ChangeStatus checkStatus(Database database);", "public void setStatus(java.lang.CharSequence value) {\n this.status = value;\n }", "public void setStatus(String status)\n\t{\n\t\tPresence statusPacket = new Presence(Presence.Type.available, status, 0, Presence.Mode.available);\n\t\tcurrentStatus = status;\n\t\tserverConnection.sendPacket(statusPacket);\n\t\tfireStatusChangeEvent(Login.username,statusPacket);\n\t}", "int isActive();", "public void setStatus(char status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}", "public void setStatus(String status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(String status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(String status) {\n\t\tthis.status = status;\n\t}", "public void setStatus(String status) {\n\t\tthis.status = status;\n\t}", "public static String getStatus(Connection conn)\n {\n String status = \"Current Status\\n---------------\\nRooms: \";\n if(RoomDB.exist(conn) == -1)\n {\n status += \"No Database\\n\";\n }\n else if(RoomDB.exist(conn) == 0)\n {\n status += \"Empty\\n\";\n }\n else\n {\n status += \"Full\\n\";\n }\n status += \"Reservations: \";\n if(ResDB.exist(conn) == -1)\n {\n status += \"No Database\\n\";\n }\n else if(ResDB.exist(conn) == 0)\n {\n status += \"Empty\\n\";\n }\n else\n {\n status += \"Full\\n\";\n }\n \n return status;\n }", "AclActiveStatusEnum(int aclActiveStatusEnum, String schemaName) {\n this.aclActiveStatusEnum = aclActiveStatusEnum;\n this.schemaName = schemaName;\n }", "public void printDbStatus() {\n\t\tSystem.out.println(\"Max.: \" + getConnectionPool().getMaxActive() + \"; Active: \"\n\t\t\t\t+ getConnectionPool().getNumActive() + \"; Idle: \" + getConnectionPool().getNumIdle());\n\t}", "public String status() {\n return this.status;\n }", "public String status() {\n return this.status;\n }", "public void setStatus (java.lang.String status) {\r\n\t\tthis.status = status;\r\n\t}", "public String getSTATUS() {\r\n return STATUS;\r\n }", "public String getSTATUS() {\r\n return STATUS;\r\n }", "public String getSTATUS() {\r\n return STATUS;\r\n }", "public String getSTATUS() {\r\n return STATUS;\r\n }", "public String getSTATUS() {\r\n return STATUS;\r\n }", "public boolean getStatus() {\n\treturn status;\n }", "public void setStatus (java.lang.String status) {\n\t\tthis.status = status;\n\t}", "public void setStatus (java.lang.String status) {\n\t\tthis.status = status;\n\t}", "public void setStatus (java.lang.String status) {\n\t\tthis.status = status;\n\t}", "public void setStatus (java.lang.String status) {\n\t\tthis.status = status;\n\t}", "public void setStatus (java.lang.String status) {\n\t\tthis.status = status;\n\t}", "boolean getStatus();", "boolean getStatus();", "boolean getStatus();", "public void setStatus(Integer status) {\r\n this.status = status;\r\n }" ]
[ "0.6796891", "0.6299215", "0.62050134", "0.61949146", "0.60952324", "0.60617423", "0.6060506", "0.60374975", "0.6009127", "0.59321976", "0.59261864", "0.59261864", "0.59261864", "0.59261864", "0.5914418", "0.5914418", "0.5914418", "0.5914418", "0.5914418", "0.58686656", "0.5793273", "0.5784855", "0.5781265", "0.57698315", "0.57653576", "0.5761577", "0.57597846", "0.57583076", "0.5756543", "0.5753673", "0.57438856", "0.57438856", "0.57433003", "0.573146", "0.573146", "0.5723432", "0.5723212", "0.5718404", "0.5718404", "0.5718404", "0.5718404", "0.5718404", "0.5718404", "0.5718404", "0.5718404", "0.5718404", "0.5718404", "0.5718404", "0.5718404", "0.5718404", "0.5718404", "0.5718404", "0.5718404", "0.56960064", "0.5691948", "0.5691948", "0.56827605", "0.56814927", "0.56797767", "0.56654346", "0.56640756", "0.56640756", "0.56579244", "0.56579", "0.56568235", "0.5653609", "0.56349623", "0.56330377", "0.5632666", "0.5631648", "0.5631648", "0.5631648", "0.5631648", "0.5631648", "0.56298935", "0.56298935", "0.56298935", "0.56298935", "0.56194896", "0.5617242", "0.5617198", "0.56163543", "0.56163543", "0.56089026", "0.56035954", "0.56035954", "0.56035954", "0.56035954", "0.56035954", "0.5597034", "0.5589385", "0.5589385", "0.5589385", "0.5589385", "0.5589385", "0.5588367", "0.5588367", "0.5588367", "0.558612" ]
0.67832536
2
GETTERS & SETTERS FOR LINKS toString METHOD
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("["); sb.append("]:"); sb.append(prlKey); sb.append("|"); sb.append(prlPinKey); // attribute 'prlFirstName' not usable (type = String Long Text) sb.append("|"); sb.append(rcdOrderBy); sb.append("|"); sb.append(relationtype); sb.append("|"); sb.append(relationship); sb.append("|"); sb.append(activeStatus); return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String linkString()\n {\n Iterator<DSAGraphNode<E>> iter = links.iterator();\n String outputString = \"\";\n DSAGraphNode<E> node = null;\n while (iter.hasNext())\n {\n node = iter.next();\n outputString = (outputString + node.getLabel() + \", \");\n }\n return outputString;\n }", "String getLink();", "public String getLink();", "public String getLinkName();", "public String getLinkString() {\n\t\treturn linkString;\n\t}", "public abstract String linkText();", "String getLinkName();", "public String toString() {\n return getURLString();\n }", "public String getLink(){\n return mLink;\n }", "public String toString() {\r\n\t\t\r\n\t\tif(this.counter <= 20) {\r\n\t\t\tcounter++;\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\tString fromLink = null, fromData = null;\r\n\t\t\r\n\t\tif (this.link != null) {\r\n\t\t\tfromLink = link.toString();\r\n\t\t}\r\n\t\t\r\n\t\tif(this.data != null) {\r\n\t\t\tfromData = data.toString();\r\n\t\t}\r\n\t\t\r\n\t\tString concat = String.format(\"\\nData: %s\\n\" + \"Link: %s\", fromData, fromLink);\r\n\t\treturn concat;\r\n\t}", "public java.lang.String getLink()\n {\n return this.link;\n }", "@Override\n\t\tpublic String toString() {\n\t\t\treturn \"下载链接:\"+showLink;\n\t\t}", "public String getLink()\n {\n return link;\n }", "public String toStringWithRelation();", "public String getLink() {\n return link;\n }", "public String getLink() {\r\n return link;\r\n }", "public String getLink() {\n return link;\n }", "public String getLink() {\n return link;\n }", "public String getLink() {\n return link;\n }", "public String getLink() {\n return link;\n }", "CharNode getLink();", "public abstract String getManipulatorLinkLabel();", "public java.lang.String getLinkid(){\r\n return localLinkid;\r\n }", "public String getLink() {\n\t\treturn link;\n\t}", "public String getLink() {\n\t\treturn link;\n\t}", "@objid (\"780bebb2-6884-4789-bdef-ca10444ad5fb\")\n Link getLink();", "public String toString()\n {\n return \"Label: \" + label + \", Value: \" + value + \", List: \"+linkString()\n + \", Edges: \" + edgeString() + \", Visited: \" + visited + \", Previous: \"\n + previous.getLabel() + \", Distance From Source: \" + distanceFromSource;\n }", "public String toString() {\n return \"[\" + this.getNoLink() + \"|\" + this.getValue() + \"|\" + this.getYesLink() + \"]\";\n }", "@Override\n\tpublic ArrayList<String> getLinks() {\n\t\treturn this.description.getLinks();\n\t}", "@Override\n\tpublic\n\tString toString () {\n\n\t\treturn nextIsA\n\t\t\t? aString\n\t\t\t: bString;\n\n\t}", "public String toString()\n {\n return url.toString();\n }", "@Override\r\n public String toString() {\r\n return getURI();\r\n }", "@Override String toString();", "@Override\r\n\tpublic String toString() {\n\t\treturn \"Url:\"+this.getUrl()+\" Name:\"+this.getName()+\" Column:\"+this.getColumn()+\" Type:\"+this.getType()+\" Rank:\"+this.getRank()+\" Incidence:\"+this.getIncidence()+\" Weight:\"+this.getWeight()+\" MaintenanceStatus:\"+this.getMaintenanceStatus();\r\n\t}", "public String getLink() {\n\t\t\treturn link;\n\t\t}", "SimpleLink createSimpleLink();", "public Link getLink() {\r\n return link;\r\n }", "@DOMSupport(DomLevel.ONE)\r\n @Property String getLinkColor();", "protected java.util.Vector _getLinks() {\n\tjava.util.Vector links = new java.util.Vector();\n\tlinks.addElement(getPeopleLink());\n\tlinks.addElement(getChangeLogDetailsesLink());\n\treturn links;\n}", "public List<String> getLinks();", "Link getL();", "@Override\n public String convertToString(LinkedProperty property, Object val) {\n return null;\n }", "@Override\r\n public String print() {\r\n String attribute = \"Title of resource:\\t\" + getTitle() + \"\\n\" + \"url of resource:\\t\" + url;\r\n System.out.println(attribute);\r\n return attribute;\r\n }", "@Override\r\n\tpublic String toString()\r\n\t{\n\t\treturn this.id +\" \" +\" \" + this.host +\" \" + this.url +\" flag = \"+this.flag +\" type=\"+this.type + \" lastCrawled = \" +this.lastCrawled;\r\n\t}", "public String getSLinkName() {\n return sLinkName;\n }", "@Override\r\n String toString();", "java.lang.String getRef();", "LINK createLINK();", "@Override\n String toString();", "@Override\n String toString();", "@Override public String toString();", "@Override\n public String toString() {\n String str = head.getValue() + \"->\";\n Node holder = head.getNext();\n for (int i = 2; i < size(); i++) {\n str = str + holder.getValue() + \"->\";\n holder = holder.getNext();\n }\n str = str + tail.getValue();\n return str;\n }", "public String toString() ;", "public String getHyperlinkBase()\r\n {\r\n return (m_hyperlinkBase);\r\n }", "@Override\n String toString();", "@Override\n\tString toString();", "@Override\n public String toString()\n {\n return this.toLsString();\n }", "public String toString() {\r\n\t\tString s = \"\";\r\n\t\t\r\n\t\tfor ( IntNode i = this; i!= null; i = i.link ) {\r\n\t\t\tif (i.link == null)\r\n\t\t\t\ts = s + i.data;\r\n\t\t\telse\r\n\t\t\t\ts = s + i.data + \"->\";\r\n\t\t} // end for\r\n\t\t\r\n\t\treturn s;\r\n\t}", "public String toString ()\n {\n String str = \"\";\n Node nodeRef = head;\n for (int i = 0; i < size&& nodeRef!= null; i++) {\n str = str + nodeRef.data + \"\\n\";\n nodeRef = nodeRef.next;}\n return str;\n }", "public String getLinkName() {\n return linkName;\n }", "@IcalProperty(pindex = PropertyInfoIndex.URL,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true)\n public void setLink(final String val) {\n link = val;\n }", "public String toString() {\n\t\tcheckRep();\n\t\treturn (this.getLabel() + \" pointing to \" + this.getChild());\n\t}", "@Override\r\n public String toString();", "@Column(name=\"link\")\n\tpublic String getLink() {\n\t\treturn link;\n\t}", "@Override\n public String toString(){\n String str = \"\";\n DLNode<T> current = first;//a reference to the first node\n while (current != null) {//loop as long as we reach the end of the list\n str += current + \"\\n\";//store current element in a String at every iteration\n current = current.next;\n }\n return str;\n }", "public List<String> linkTexts()\n\t{\n\t\t\n\t\tList<String> links=new ArrayList<String>();\n\t\tlinks.add(linkString);\n\t\tlinks.add(\"Facebook.com\");\n\t\tlinks.add(\"google.com;\");\n\t\tlinks.add(\"gmail.com\");\n\t\tlinks.add(\"shine.com\");\n\t\tlinks.add(\"nukari.com\");\n\t\t\n\t\t// Like the above we have to add number of link text are passed to achieve the DataDriven approach through BBD \n\t\t\t\n\t\treturn links;\n\t\t\n\t}", "@Override\n\tpublic String toString();", "@Override\r\n\tpublic String toString();", "public String toString(){\r\n\t DoubleLinkedSeq clone = new DoubleLinkedSeq(); \r\n\t clone = this.clone();\r\n\t String elements = \"{\";\r\n\t for(clone.cursor = head; clone.cursor != null; clone.cursor = clone.cursor.getLink()){\r\n\t\t elements = elements + (clone.cursor.getData() + \",\"); \r\n\t }\r\n\t \r\n\t elements = elements + \")\";\r\n\t \r\n\t return elements; \r\n }", "public String toStringWithRelation() {\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(toString());\r\n String l = \"\\n \";\r\n if (_member != null)\r\n { sb.append(l).append(xbRDS(_member, \"member\")); }\r\n if (_region != null)\r\n { sb.append(l).append(xbRDS(_region, \"region\")); }\r\n return sb.toString();\r\n }", "@Override\n public String toString();", "@Override\n public String toString();", "@Override\n public String toString(){\n String result = \"\";\n Node n = first;\n while(n != null){\n result += n.value + \" \";\n n = n.next;\n }\n return result;\n }", "String getHref();", "public void setLinkName(String linkName);", "@Override\n public StringBuilder toString(StringBuilder sb) {\n super.toString(sb);\n sb.append(\" Alias: \").append(name).append(\"\\n\")\n .append(\" URI: \").append(uri).append(\"\\n\");\n return sb;\n }", "@Override\n public String toString(){\n Node curr=this.head;\n String str=\"\";\n while(curr!=null){\n str+=(curr.data + \" -> \");\n curr=curr.next;\n }\n return str;\n }", "@Override\n public String toString() {\n return ObjectContracts.toString(this, \"objectType\", \"name\", \"atPath\");\n }", "public void setLinkItem(String string) {\r\n this.linkItem = string;\r\n }", "@Nullable\n public String getLink() {\n return mLink;\n }", "@Override\r\n public String toString(){ // toString methodu\r\n return head.data.toString();\r\n }", "Link createLink();", "public interface LinkGenerator {\n\n String ATTRIBUTE_CONTROLLER = \"controller\";\n String ATTRIBUTE_RESOURCE = \"resource\";\n String ATTRIBUTE_ACTION = \"action\";\n String ATTRIBUTE_METHOD = \"method\";\n String ATTRIBUTE_URI = \"uri\";\n String ATTRIBUTE_RELATIVE_URI = \"relativeUri\";\n String ATTRIBUTE_INCLUDE_CONTEXT = \"includeContext\";\n String ATTRIBUTE_CONTEXT_PATH = \"contextPath\";\n String ATTRIBUTE_URL = \"url\";\n String ATTRIBUTE_BASE = \"base\";\n String ATTRIBUTE_ABSOLUTE = \"absolute\";\n String ATTRIBUTE_ID = \"id\";\n String ATTRIBUTE_FRAGMENT = \"fragment\";\n String ATTRIBUTE_PARAMS = \"params\";\n String ATTRIBUTE_MAPPING = \"mapping\";\n String ATTRIBUTE_EVENT = \"event\";\n String ATTRIBUTE_ELEMENT_ID = \"elementId\";\n String ATTRIBUTE_PLUGIN = \"plugin\";\n String ATTRIBUTE_NAMESPACE = \"namespace\";\n \n\n Set<String> LINK_ATTRIBUTES = CollectionUtils.newSet(\n ATTRIBUTE_RESOURCE,\n ATTRIBUTE_METHOD,\n ATTRIBUTE_CONTROLLER,\n ATTRIBUTE_ACTION,\n ATTRIBUTE_URI,\n ATTRIBUTE_RELATIVE_URI,\n ATTRIBUTE_CONTEXT_PATH,\n ATTRIBUTE_URL,\n ATTRIBUTE_BASE,\n ATTRIBUTE_ABSOLUTE,\n ATTRIBUTE_ID,\n ATTRIBUTE_FRAGMENT,\n ATTRIBUTE_PARAMS,\n ATTRIBUTE_MAPPING,\n ATTRIBUTE_EVENT,\n ATTRIBUTE_ELEMENT_ID,\n ATTRIBUTE_PLUGIN,\n ATTRIBUTE_NAMESPACE\n );\n\n Map<String, String> REST_RESOURCE_ACTION_TO_HTTP_METHOD_MAP = CollectionUtils.<String, String>newMap(\n \"create\", \"GET\",\n \"save\", \"POST\",\n \"show\", \"GET\",\n \"index\", \"GET\",\n \"edit\", \"GET\",\n \"update\", \"PUT\",\n \"patch\", \"PATCH\",\n \"delete\", \"DELETE\"\n );\n\n Map<String, String> REST_RESOURCE_HTTP_METHOD_TO_ACTION_MAP = CollectionUtils.<String, String>newMap(\n \"GET_ID\", \"show\",\n \"GET\", \"index\",\n \"POST\", \"save\",\n \"DELETE\", \"delete\",\n \"PUT\", \"update\",\n \"PATCH\", \"patch\"\n );\n\n\n /**\n * Generates a link to a static resource for the given named parameters.\n *\n * Possible named parameters include:\n *\n * <ul>\n * <li>base - The base path of the URL, typically an absolute server path</li>\n * <li>contextPath - The context path to link to, defaults to the servlet context path</li>\n * <li>dir - The directory to link to</li>\n * <li>file - The file to link to (relative to the directory if specified)</li>\n * <li>plugin - The plugin that provides the resource</li>\n * <li>absolute - Whether the link should be absolute or not</li>\n * </ul>\n *\n * @param params The named parameters\n * @return The link to the static resource\n */\n String resource(@SuppressWarnings(\"rawtypes\") Map params);\n\n /**\n * Generates a link to a controller, action or URI for the given named parameters.\n *\n * Possible named parameters include:\n *\n * <ul>\n * <li>resource - If linking to a REST resource, the name of the resource or resource path to link to. Either 'resource' or 'controller' should be specified, but not both</li>\n * <li>controller - The name of the controller to use in the link, if not specified the current controller will be linked</li>\n * <li>action - The name of the action to use in the link, if not specified the default action will be linked</li>\n * <li>uri - relative URI</li>\n * <li>url - A map containing the action,controller,id etc.</li>\n * <li>base - Sets the prefix to be added to the link target address, typically an absolute server URL. This overrides the behaviour of the absolute property, if both are specified.</li>\n * <li>absolute - If set to \"true\" will prefix the link target address with the value of the grails.serverURL property from Config, or http://localhost:&lt;port&gt; if no value in Config and not running in production.</li>\n * <li>contextPath - The context path to link to, defaults to the servlet context path</li>\n * <li>id - The id to use in the link</li>\n * <li>fragment - The link fragment (often called anchor tag) to use</li>\n * <li>params - A map containing URL query parameters</li>\n * <li>mapping - The named URL mapping to use to rewrite the link</li>\n * <li>event - Webflow _eventId parameter</li>\n * </ul>\n * @param params The named parameters\n * @return The generator link\n */\n String link(@SuppressWarnings(\"rawtypes\") Map params);\n\n /**\n * Generates a link to a controller, action or URI for the given named parameters.\n *\n * Possible named parameters include:\n *\n * <ul>\n * <li>resource - If linking to a REST resource, the name of the resource or resource path to link to. Either 'resource' or 'controller' should be specified, but not both</li>\n * <li>controller - The name of the controller to use in the link, if not specified the current controller will be linked</li>\n * <li>action - The name of the action to use in the link, if not specified the default action will be linked</li>\n * <li>uri - relative URI</li>\n * <li>url - A map containing the action,controller,id etc.</li>\n * <li>base - Sets the prefix to be added to the link target address, typically an absolute server URL. This overrides the behaviour of the absolute property, if both are specified.</li>\n * <li>absolute - If set to \"true\" will prefix the link target address with the value of the grails.serverURL property from Config, or http://localhost:&lt;port&gt; if no value in Config and not running in production.</li>\n * <li>id - The id to use in the link</li>\n * <li>fragment - The link fragment (often called anchor tag) to use</li>\n * <li>params - A map containing URL query parameters</li>\n * <li>mapping - The named URL mapping to use to rewrite the link</li>\n * <li>event - Webflow _eventId parameter</li>\n * </ul>\n * @param params The named parameters\n * @param encoding The character encoding to use\n * @return The generator link\n */\n String link(@SuppressWarnings(\"rawtypes\") Map params, String encoding);\n\n /**\n * Obtains the context path from which this link generator is operating.\n *\n * @return The base context path\n */\n String getContextPath();\n\n /**\n * The base URL of the server used for creating absolute links.\n *\n * @return The base URL of the server\n */\n String getServerBaseURL();\n}", "public String toString() {\n\t}", "public Hyperlink(){\n this.href = \"\";\n this.text = new TextSpan(\"\");\n }", "@Override\n\tpublic String toString() {\n\t\treturn toText();\n\t}", "@Override\n public String toString() {\n String ret = \"\";\n Node curr = head;\n while (curr != null) {\n ret += curr.data + \" \";\n curr = curr.next;\n }\n return ret;\n }", "@Override\r\n public synchronized String getLabelExtension() {\r\n int sourceSize = (getSource() != null) ? 1 : 0;\r\n int targetSize = (getTarget() != null) ? getTarget().size() : 0;\r\n String prefix = (!super.getLabelExtension().equals(Constant.EMPTY_STRING)) ? super\r\n .getLabelExtension()\r\n : Schema.TYPE_LINK;\r\n return prefix + Constant.BLANK + Constant.OPEN_PARENTHESIS + sourceSize\r\n + Constant.COMMA + Constant.BLANK + targetSize\r\n + Constant.CLOSE_PARENTHESIS;\r\n }", "@Override\n public String toString(){\n Node curr=this.head;\n String str=\"\";\n while(curr!=null){\n str+=(curr.data + \" -> \");\n curr=curr.next;\n }\n return str;\n }", "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();" ]
[ "0.77301913", "0.7180817", "0.70524865", "0.6945341", "0.6867595", "0.6823091", "0.6801906", "0.6656569", "0.6632852", "0.66288406", "0.66045886", "0.65924823", "0.6538305", "0.6531128", "0.6517371", "0.6494687", "0.64175856", "0.64175856", "0.64175856", "0.64175856", "0.63901436", "0.6351584", "0.6329185", "0.63265127", "0.63265127", "0.63180983", "0.62957036", "0.6274226", "0.62509954", "0.6250233", "0.62492746", "0.6227199", "0.6187869", "0.6178541", "0.6157476", "0.6142638", "0.6133234", "0.6127592", "0.6126153", "0.6122149", "0.61163664", "0.608873", "0.60773313", "0.60722715", "0.60717916", "0.6065969", "0.60556227", "0.60488844", "0.6048189", "0.6048189", "0.6045888", "0.6044838", "0.60270137", "0.6017913", "0.6011794", "0.60078275", "0.60040456", "0.60037196", "0.6001065", "0.5989842", "0.5987286", "0.5973696", "0.59565896", "0.59456927", "0.59320116", "0.59304416", "0.59293014", "0.5924592", "0.5924104", "0.58981246", "0.5888023", "0.5888023", "0.58815396", "0.5880139", "0.5855579", "0.5847178", "0.5822631", "0.58140725", "0.58119273", "0.58051157", "0.5796845", "0.579264", "0.57894", "0.57837594", "0.57829297", "0.5778373", "0.5776641", "0.5774962", "0.5771236", "0.5767737", "0.5767737", "0.5767737", "0.5767737", "0.5767737", "0.5767737", "0.5767737", "0.5767737", "0.5767737", "0.5767737", "0.5767737", "0.5767737" ]
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jPanel2 = new javax.swing.JPanel(); sutlukadayif = new javax.swing.JCheckBox(); kemalpasa = new javax.swing.JCheckBox(); kabaktatlisi = new javax.swing.JCheckBox(); ekmekkadayifi = new javax.swing.JCheckBox(); mozaikpasta = new javax.swing.JCheckBox(); cheesscake = new javax.swing.JCheckBox(); supangle = new javax.swing.JCheckBox(); cay = new javax.swing.JCheckBox(); turkkahvesi = new javax.swing.JCheckBox(); americano = new javax.swing.JCheckBox(); latte = new javax.swing.JCheckBox(); limonata = new javax.swing.JCheckBox(); milkshake = new javax.swing.JCheckBox(); mojito = new javax.swing.JCheckBox(); txt_sutlukadayif = new javax.swing.JTextField(); txt_kemalpasa = new javax.swing.JTextField(); txt_kabaktatlisi = new javax.swing.JTextField(); txt_ekmekkadayifi = new javax.swing.JTextField(); txt_mozaikpasta = new javax.swing.JTextField(); txt_cheesscake = new javax.swing.JTextField(); txt_supangle = new javax.swing.JTextField(); txt_cay = new javax.swing.JTextField(); txt_turkkahvesi = new javax.swing.JTextField(); txt_americano = new javax.swing.JTextField(); txt_latte = new javax.swing.JTextField(); txt_limonata = new javax.swing.JTextField(); txt_milkshake = new javax.swing.JTextField(); txt_mojito = new javax.swing.JTextField(); jPanel3 = new javax.swing.JPanel(); jTabbedPane1 = new javax.swing.JTabbedPane(); jPanel5 = new javax.swing.JPanel(); btnce = new javax.swing.JButton(); ekran = new javax.swing.JTextField(); btnc = new javax.swing.JButton(); btnbckspc = new javax.swing.JButton(); btndivided = new javax.swing.JButton(); btn7 = new javax.swing.JButton(); btn8 = new javax.swing.JButton(); btn9 = new javax.swing.JButton(); btnmultiple = new javax.swing.JButton(); btn4 = new javax.swing.JButton(); btn5 = new javax.swing.JButton(); btn6 = new javax.swing.JButton(); btnminus = new javax.swing.JButton(); btn1 = new javax.swing.JButton(); btn2 = new javax.swing.JButton(); btn3 = new javax.swing.JButton(); btnplus = new javax.swing.JButton(); btnposneg = new javax.swing.JButton(); btn0 = new javax.swing.JButton(); btndot = new javax.swing.JButton(); btnequal = new javax.swing.JButton(); jPanel6 = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); faturaalan = new javax.swing.JTextArea(); jPanel4 = new javax.swing.JPanel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); txt_iceceklertoplam = new javax.swing.JTextField(); txt_tatlilartoplam = new javax.swing.JTextField(); txt_bahsis = new javax.swing.JTextField(); txt_bruttoplam = new javax.swing.JTextField(); txt_kdv = new javax.swing.JTextField(); txt_nettoplam = new javax.swing.JTextField(); jPanel7 = new javax.swing.JPanel(); toplam = new javax.swing.JButton(); fatura = new javax.swing.JButton(); reset = new javax.swing.JButton(); kapat = new javax.swing.JButton(); jButton1 = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jLabel1.setFont(new java.awt.Font("Verdana", 1, 36)); // NOI18N jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel1.setText("KAFE YÖNETİM OTOMASYONU"); sutlukadayif.setText("Sütlü Kadayıf"); sutlukadayif.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { sutlukadayifMouseClicked(evt); } }); kemalpasa.setText("Kemal Paşa"); kemalpasa.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { kemalpasaMouseClicked(evt); } }); kabaktatlisi.setText("Kabak Tatlısı"); kabaktatlisi.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { kabaktatlisiMouseClicked(evt); } }); ekmekkadayifi.setText("Ekmek Kadayıf"); ekmekkadayifi.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { ekmekkadayifiMouseClicked(evt); } }); mozaikpasta.setText("Mozaik Pasta"); mozaikpasta.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { mozaikpastaMouseClicked(evt); } }); cheesscake.setText("Cheesscake"); cheesscake.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { cheesscakeMouseClicked(evt); } }); supangle.setText("Supangle"); supangle.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { supangleMouseClicked(evt); } }); cay.setText("Çay"); cay.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { cayMouseClicked(evt); } }); turkkahvesi.setText("Türk Kahvesi"); turkkahvesi.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { turkkahvesiMouseClicked(evt); } }); americano.setText("Americano"); americano.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { americanoMouseClicked(evt); } }); latte.setText("Latte"); latte.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { latteMouseClicked(evt); } }); limonata.setText("Limonata"); limonata.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { limonataMouseClicked(evt); } }); milkshake.setText("Milkshake"); milkshake.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { milkshakeMouseClicked(evt); } }); mojito.setText("Mojito"); mojito.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { mojitoMouseClicked(evt); } }); txt_sutlukadayif.setText("0"); txt_kemalpasa.setText("0"); txt_kabaktatlisi.setText("0"); txt_ekmekkadayifi.setText("0"); txt_mozaikpasta.setText("0"); txt_cheesscake.setText("0"); txt_supangle.setText("0"); txt_turkkahvesi.setText("0"); txt_americano.setText("0"); txt_latte.setText("0"); txt_limonata.setText("0"); txt_milkshake.setText("0"); txt_mojito.setText("0"); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(kemalpasa) .addComponent(sutlukadayif) .addComponent(kabaktatlisi) .addComponent(supangle) .addComponent(cheesscake) .addComponent(mozaikpasta) .addComponent(ekmekkadayifi)) .addGap(18, 18, 18) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(txt_cheesscake, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(txt_mozaikpasta, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(txt_ekmekkadayifi) .addComponent(txt_kabaktatlisi) .addComponent(txt_kemalpasa) .addComponent(txt_sutlukadayif, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(txt_supangle, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(60, 60, 60) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(turkkahvesi) .addComponent(cay) .addComponent(americano) .addComponent(latte) .addComponent(limonata) .addComponent(milkshake) .addComponent(mojito)) .addGap(18, 18, 18) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(txt_cay, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(txt_turkkahvesi, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(txt_americano, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(txt_latte, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(txt_limonata, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(txt_milkshake, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(txt_mojito, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(sutlukadayif) .addComponent(cay) .addComponent(txt_sutlukadayif, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txt_cay, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(kemalpasa) .addComponent(turkkahvesi) .addComponent(txt_kemalpasa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txt_turkkahvesi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(kabaktatlisi) .addComponent(americano) .addComponent(txt_kabaktatlisi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txt_americano, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(ekmekkadayifi) .addComponent(latte) .addComponent(txt_ekmekkadayifi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txt_latte, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(mozaikpasta) .addComponent(limonata) .addComponent(txt_mozaikpasta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txt_limonata, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(cheesscake) .addComponent(milkshake) .addComponent(txt_cheesscake, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txt_milkshake, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(supangle) .addComponent(mojito) .addComponent(txt_supangle, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txt_mojito, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); btnce.setText("CE"); btnce.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnceActionPerformed(evt); } }); ekran.setText("0"); btnc.setText("C"); btnbckspc.setText("←"); btnbckspc.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnbckspcActionPerformed(evt); } }); btndivided.setText("÷"); btndivided.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btndividedActionPerformed(evt); } }); btn7.setText("7"); btn7.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btn7ActionPerformed(evt); } }); btn8.setText("8"); btn8.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btn8ActionPerformed(evt); } }); btn9.setText("9"); btn9.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btn9ActionPerformed(evt); } }); btnmultiple.setText("x"); btnmultiple.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnmultipleActionPerformed(evt); } }); btn4.setText("4"); btn4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btn4ActionPerformed(evt); } }); btn5.setText("5"); btn5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btn5ActionPerformed(evt); } }); btn6.setText("6"); btn6.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btn6ActionPerformed(evt); } }); btnminus.setText("-"); btnminus.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnminusActionPerformed(evt); } }); btn1.setText("1"); btn1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btn1ActionPerformed(evt); } }); btn2.setText("2"); btn2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btn2ActionPerformed(evt); } }); btn3.setText("3"); btn3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btn3ActionPerformed(evt); } }); btnplus.setText("+"); btnplus.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnplusActionPerformed(evt); } }); btnposneg.setText("+ -"); btn0.setText("0"); btn0.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btn0ActionPerformed(evt); } }); btndot.setText("."); btndot.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btndotActionPerformed(evt); } }); btnequal.setText("="); btnequal.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnequalActionPerformed(evt); } }); javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5); jPanel5.setLayout(jPanel5Layout); jPanel5Layout.setHorizontalGroup( jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel5Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(ekran) .addGroup(jPanel5Layout.createSequentialGroup() .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(jPanel5Layout.createSequentialGroup() .addComponent(btnposneg, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btn0, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(jPanel5Layout.createSequentialGroup() .addComponent(btn1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btn2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(jPanel5Layout.createSequentialGroup() .addComponent(btn4, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btn5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(jPanel5Layout.createSequentialGroup() .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(btn7, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnce, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(btnc, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btn8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(btnbckspc, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btn9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btn6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btn3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btndot, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(btndivided, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnmultiple, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnminus, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnplus, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnequal, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel5Layout.setVerticalGroup( jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel5Layout.createSequentialGroup() .addContainerGap() .addComponent(ekran, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(btnce, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE) .addComponent(btnc, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnbckspc, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btndivided, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(btn7, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE) .addComponent(btn8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btn9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnmultiple, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(btn4, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE) .addComponent(btn5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btn6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnminus, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(btn1, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE) .addComponent(btn2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btn3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnplus, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(btnposneg, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE) .addComponent(btn0, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btndot, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnequal, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jTabbedPane1.addTab("Hesap Makinesi", jPanel5); faturaalan.setColumns(20); faturaalan.setRows(5); jScrollPane1.setViewportView(faturaalan); javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6); jPanel6.setLayout(jPanel6Layout); jPanel6Layout.setHorizontalGroup( jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 304, Short.MAX_VALUE) ); jPanel6Layout.setVerticalGroup( jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 439, Short.MAX_VALUE) ); jTabbedPane1.addTab("Fatura", jPanel6); javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 309, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); jPanel3Layout.setVerticalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jTabbedPane1) ); jLabel2.setText("İçecekler Toplamı"); jLabel3.setText("Tatlılar Toplamı"); jLabel4.setText("Bahşiş"); jLabel5.setText("Brüt Toplam"); jLabel6.setText("KDV"); jLabel7.setText("Net Toplam"); txt_iceceklertoplam.setText("0"); txt_iceceklertoplam.setEnabled(false); txt_tatlilartoplam.setText("0"); txt_tatlilartoplam.setEnabled(false); txt_bahsis.setText("0"); txt_bahsis.setEnabled(false); txt_bruttoplam.setText("0"); txt_bruttoplam.setEnabled(false); txt_kdv.setText("0"); txt_kdv.setEnabled(false); txt_nettoplam.setText("0"); txt_nettoplam.setEnabled(false); javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4); jPanel4.setLayout(jPanel4Layout); jPanel4Layout.setHorizontalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel2) .addComponent(jLabel3) .addComponent(jLabel4) .addComponent(jLabel5) .addComponent(jLabel6) .addComponent(jLabel7)) .addGap(18, 18, 18) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(txt_nettoplam, javax.swing.GroupLayout.DEFAULT_SIZE, 126, Short.MAX_VALUE) .addComponent(txt_kdv) .addComponent(txt_bruttoplam) .addComponent(txt_bahsis) .addComponent(txt_tatlilartoplam) .addComponent(txt_iceceklertoplam, javax.swing.GroupLayout.Alignment.TRAILING)) .addContainerGap()) ); jPanel4Layout.setVerticalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel2) .addComponent(txt_iceceklertoplam, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel3) .addComponent(txt_tatlilartoplam, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel4) .addComponent(txt_bahsis, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel5) .addComponent(txt_bruttoplam, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel6) .addComponent(txt_kdv, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel7) .addComponent(txt_nettoplam, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); toplam.setText("Toplam"); toplam.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { toplamMouseClicked(evt); } }); fatura.setText("Fatura"); fatura.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { faturaMouseClicked(evt); } }); reset.setText("Reset"); reset.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { resetActionPerformed(evt); } }); kapat.setText("Kapat"); kapat.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { kapatActionPerformed(evt); } }); jButton1.setText("PDF"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7); jPanel7.setLayout(jPanel7Layout); jPanel7Layout.setHorizontalGroup( jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel7Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(toplam, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(fatura, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(reset, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(kapat, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); jPanel7Layout.setVerticalGroup( jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel7Layout.createSequentialGroup() .addContainerGap() .addComponent(toplam, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(2, 2, 2) .addComponent(fatura) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(reset) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(kapat) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton1) .addContainerGap()) ); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 873, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 611, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.731952", "0.72909003", "0.72909003", "0.72909003", "0.72862417", "0.7248404", "0.7213685", "0.72086793", "0.7195972", "0.71903807", "0.71843296", "0.7158833", "0.71475875", "0.70933676", "0.7081167", "0.7056787", "0.69876975", "0.6977383", "0.6955115", "0.6953839", "0.69452274", "0.6942602", "0.6935845", "0.6931919", "0.6928187", "0.6925288", "0.69251484", "0.69117147", "0.6911646", "0.6892842", "0.68927234", "0.6891408", "0.68907607", "0.68894386", "0.68836755", "0.688209", "0.6881168", "0.68787616", "0.68757504", "0.68741524", "0.68721044", "0.685922", "0.68570775", "0.6855737", "0.6855207", "0.68546575", "0.6853559", "0.6852262", "0.6852262", "0.68443567", "0.6837038", "0.6836797", "0.68291426", "0.6828922", "0.68269444", "0.6824652", "0.682331", "0.68175536", "0.68167555", "0.6810103", "0.6809546", "0.68085015", "0.68083894", "0.6807979", "0.68027437", "0.67950374", "0.67937446", "0.67921823", "0.67911226", "0.67900467", "0.6788873", "0.67881", "0.6781613", "0.67669237", "0.67660683", "0.6765841", "0.6756988", "0.675558", "0.6752552", "0.6752146", "0.6742482", "0.67395985", "0.673791", "0.6736197", "0.6733452", "0.67277217", "0.6726687", "0.67204696", "0.67168", "0.6714824", "0.6714823", "0.6708782", "0.67071444", "0.670462", "0.67010295", "0.67004406", "0.6699407", "0.6698219", "0.669522", "0.66916007", "0.6689694" ]
0.0
-1
$FF: renamed from: (wL) void
public void method_9696(class_776 var1) { super.method_9648(); this.field_9138 = var1; this.method_9655(5); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo57277b();", "void mo80455b();", "void m1864a() {\r\n }", "public void m23075a() {\n }", "void mo72113b();", "void mo80452a();", "void mo28194a();", "void mo41086b();", "void mo41083a();", "void mo54405a();", "void mo119582b();", "public void mo115190b() {\n }", "void mo67923b();", "public abstract void mo27386d();", "void mo80457c();", "void mo22249a();", "public void mo21825b() {\n }", "void mo28306a();", "void mo88523b();", "void mo57275a();", "void mo72111a();", "public void mo97908d() {\n }", "public final void mo91715d() {\n }", "public void mo21879u() {\n }", "public void mo21787L() {\n }", "public abstract void mo70713b();", "public void mo21779D() {\n }", "void mo21073d();", "void mo88521a();", "void mo84655a();", "void mo7353b();", "public void mo44053a() {\n }", "public void mo6944a() {\n }", "public void mo21781F() {\n }", "public void mo9137b() {\n }", "void mo38026a();", "void mo13368a();", "void mo12634a();", "void mo17023d();", "void mo21074e();", "public abstract void mo27385c();", "void mo69874a();", "void m8368b();", "public abstract void mo27464a();", "public abstract void mo30696a();", "void m5769c() throws C0841b;", "public abstract void mo6549b();", "public abstract void mo56925d();", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "void mo2311a();", "public void mo2740a() {\n }", "void mo119581a();", "void mo57278c();", "public void mo2471e() {\n }", "public void mo21782G() {\n }", "void mo67920a();", "void mo17013d();", "void mo3311a();", "void mo98969a();", "public abstract void mo42329d();", "void mo37810a();", "void mo27575a();", "public abstract void mo42330e();", "public void mo97906c() {\n }", "static void feladat9() {\n\t}", "void mo72114c();", "public abstract void mo35054b();", "public abstract void mo53562a(C18796a c18796a);", "public void mo21878t() {\n }", "public void mo5097b() {\n }", "public final void mo8775b() {\n }", "public void mo3376r() {\n }", "void mo9693a();", "public final void mo1285b() {\n }", "public void mo8738a() {\n }", "void mo60893b();", "void mo60892a();", "public void mo115188a() {\n }", "public void mo9233aH() {\n }", "void berechneFlaeche() {\n\t}", "public void mo3287b() {\n }", "void mo105476a();", "public void mo3370l() {\n }", "public void mo23813b() {\n }", "public abstract void mo42331g();", "void m5768b() throws C0841b;", "public void mo5248a() {\n }", "public abstract void mo102899a();", "private void m50366E() {\n }", "public void func_70305_f() {}", "public final void mo51373a() {\n }", "void mo56163g();", "void mo21076g();", "void mo12143a();", "void mo7350a();", "void mo17012c();", "void mo54435d();", "public void mo38117a() {\n }", "void mo12637b();", "void mo67924c();" ]
[ "0.6983962", "0.69781595", "0.6922291", "0.690151", "0.68855256", "0.6871132", "0.68234706", "0.680319", "0.676496", "0.67570037", "0.6749283", "0.6725603", "0.6713647", "0.67109376", "0.66717553", "0.6664511", "0.6661668", "0.66587484", "0.66507995", "0.6647268", "0.66413414", "0.66297454", "0.6622374", "0.6608388", "0.6590221", "0.6574103", "0.6570192", "0.6564646", "0.6563931", "0.655586", "0.65510005", "0.65498376", "0.65454876", "0.65365285", "0.6523086", "0.6521906", "0.651389", "0.6508648", "0.65063095", "0.6493746", "0.6491349", "0.648967", "0.6485817", "0.6483286", "0.6481499", "0.6475663", "0.6473109", "0.6467121", "0.6464818", "0.6463474", "0.6454974", "0.6451331", "0.64463824", "0.6445742", "0.64362156", "0.6432835", "0.6432054", "0.64299047", "0.64234334", "0.6419221", "0.64149225", "0.6414743", "0.6413628", "0.6412983", "0.6407006", "0.63979024", "0.63933593", "0.6392967", "0.6389031", "0.63886654", "0.6386953", "0.6382124", "0.6380954", "0.63792354", "0.637806", "0.6374571", "0.63739514", "0.6370852", "0.63656265", "0.6365145", "0.6361804", "0.6360618", "0.63603145", "0.6356099", "0.6353578", "0.634637", "0.63454443", "0.63394576", "0.6339109", "0.6335023", "0.6328684", "0.6326941", "0.63246626", "0.6321944", "0.6320512", "0.63169307", "0.63150346", "0.63066065", "0.63064116", "0.63003254", "0.62976915" ]
0.0
-1
$FF: renamed from: b () boolean
public boolean method_9649() { String[] var1 = class_752.method_4253(); boolean var10000 = this.field_9138.method_4476(); if(var1 != null) { if(!var10000) { return false; } var10000 = this.field_9138.method_3876(); } Object var3; label46: { if(var1 != null) { if(var10000) { return false; } var3 = this.field_9138; if(var1 == null) { break label46; } var10000 = this.field_9138.field_3005; } if(!var10000) { return false; } var3 = this.field_9138.method_4481(); } Object var2 = var3; if(var2 == null) { return true; } else { double var5; int var4 = (var5 = this.field_9138.method_3891((class_689)var2) - 144.0D) == 0.0D?0:(var5 < 0.0D?-1:1); if(var1 != null) { if(var4 < 0 && ((class_752)var2).method_4166() != null) { return false; } var4 = this.field_9139; } return (boolean)var4; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean mo66253b();", "@ReflectiveMethod(name = \"b\", types = {})\n public boolean b(){\n return (boolean) NMSWrapper.getInstance().exec(nmsObject);\n }", "public abstract boolean mo9735b();", "@Override // c.d.a.m.w.n\n public /* bridge */ /* synthetic */ boolean b(byte[] bArr) {\n return true;\n }", "boolean mo54429b();", "void mo197b(boolean z);", "public Boolean asBoolean();", "void mo1492b(boolean z);", "boolean getB22();", "public boolean b()\r\n {\r\n return false;\r\n }", "boolean getB23();", "public boolean b()\n {\n return false;\n }", "public boolean b()\n {\n return false;\n }", "boolean getB21();", "public boolean b() {\n return true;\n }", "boolean mo30282b();", "public void a(boolean ☃) {\r\n/* 64 */ this.ab.b(a, Boolean.valueOf(☃));\r\n/* */ }", "boolean booleanOf();", "@SuppressFBWarnings(\"NP_BOOLEAN_RETURN_NULL\")\r\n public static Boolean fromByte(byte b)\r\n {\r\n return b == 0 ? null : b == 1 ? Boolean.FALSE : Boolean.TRUE;\r\n }", "boolean getB27();", "boolean hasB21();", "public boolean b()\r\n/* 709: */ {\r\n/* 710:702 */ return this.l;\r\n/* 711: */ }", "public interface btf {\n boolean e();\n}", "BooleanValue createBooleanValue();", "BooleanValue createBooleanValue();", "BooleanValue createBooleanValue();", "BooleanValue createBooleanValue();", "void mo21071b(boolean z);", "abstract public boolean getAsBoolean();", "void mo98208a(boolean z);", "boolean hasB23();", "boolean mo1836b();", "boolean hasB27();", "void mo6661a(boolean z);", "boolean getB20();", "boolean getB25();", "void mo64153a(boolean z);", "public abstract boolean a();", "void mo1488a(boolean z);", "public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }", "void mo99838a(boolean z);", "void mo21069a(boolean z);", "boolean hasB22();", "boolean getB19();", "BSubFalse createBSubFalse();", "abstract void mo956a(boolean z);", "protected boolean func_70814_o() { return true; }", "public abstract C0631bt mo9251e(boolean z);", "public abstract boolean mo9234ar();", "boolean getB24();", "public Boolean b(org.threeten.bp.temporal.b bVar) {\n if (bVar instanceof a) {\n return Boolean.valueOf(((a) bVar).fHC);\n }\n return Boolean.FALSE;\n }", "public boolean b() {\n/* 365 */ switch (this.h) {\n/* */ case 0:\n/* */ case 1:\n/* 368 */ return true;\n/* */ case 2:\n/* 370 */ return false;\n/* */ } \n/* 372 */ throw new IllegalArgumentException(\"Non JPEG 2000 part I component transformation\");\n/* */ }", "boolean hasB();", "boolean hasB();", "public static boolean bVal( Boolean value ) {\n return value != null && value; \n }", "public void mo97905b(boolean z) {\n }", "void boolean1(boolean a);", "public void b(boolean paramBoolean)\r\n/* 603: */ {\r\n/* 604:601 */ this.l = paramBoolean;\r\n/* 605: */ }", "public abstract boolean read_boolean();", "boolean internal();", "void mo9701a(boolean z);", "void mo3305a(boolean z);", "default boolean asBool() {\n\t\tthrow new EvaluatorException(\"Expecting a bool value\");\n\t}", "boolean hasB20();", "public boolean b(IBlockAccess paramard, BlockPosition paramdt)\r\n/* 31: */ {\r\n/* 32:46 */ return true;\r\n/* 33: */ }", "boolean hasB19();", "boolean getB26();", "public abstract boolean mo70717b(String str);", "boolean mo4834b(C0153fp fpVar);", "public abstract boolean zzbek();", "void mo2508a(bxb bxb);", "public void b(boolean paramBoolean)\r\n/* 184: */ {\r\n/* 185:183 */ this.g = paramBoolean;\r\n/* 186: */ }", "@ZenCodeType.Caster\n @ZenCodeType.Method\n default boolean asBool() {\n \n return notSupportedCast(BasicTypeID.BOOL);\n }", "public abstract void mo9246b(C0707b bVar);", "boolean hasB25();", "void mo12636a(boolean z);", "@Override public byte isBitShape(Type t) { throw AA.unimpl(); }", "public abstract BoundType b();", "boolean mo1293b() {\n return true;\n }", "boolean mo44967d();", "public abstract void mo9254f(boolean z);", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public /* bridge */ /* synthetic */ boolean mo9980b(C1082d dVar) {\n return super.mo9980b(dVar);\n }", "boolean hasNumb();", "boolean getIsBcast();", "boolean mo44966c();", "BSubTrue createBSubTrue();", "public final boolean func_boolean_a(int var1, int var2) {\n if (this.func_boolean_b(var1, var2)) {\n return true;\n } else if (var2 != 53 && var1 != 8) {\n if (var2 == -8) {\n super.field_class_cb_a.func_void_a(this.field_byte_c, (byte)0);\n return true;\n } else {\n return true;\n }\n } else {\n super.field_class_cb_a.func_void_a(this.field_byte_c, (byte)1);\n return true;\n }\n }", "public static boolean toBoolean(byte[] value) {\r\n\t\treturn toBoolean(value, 0);\r\n\t}", "BoolOperation createBoolOperation();", "private CheckBoolean() {\n\t}", "boolean mo54442g();", "public abstract boolean mo9230aE();", "@JsSupport( {JsVersion.MOZILLA_ONE_DOT_ONE, \r\n\t\tJsVersion.JSCRIPT_TWO_DOT_ZERO})\r\npublic interface Boolean extends Object {\r\n\t\r\n\t@Constructor void Boolean();\r\n\t\r\n\t@Constructor void Boolean(boolean value);\r\n\t\r\n\t@Constructor void Boolean(Number value);\r\n\t\r\n\t@Constructor void Boolean(String value);\r\n\t\r\n\t@Function boolean valueOf();\r\n\t\r\n}", "public boolean b(alq paramalq)\r\n/* 259: */ {\r\n/* 260:278 */ int i = c(paramalq);\r\n/* 261:279 */ if (i < 0) {\r\n/* 262:280 */ return false;\r\n/* 263: */ }\r\n/* 264:283 */ return true;\r\n/* 265: */ }", "void mo54420a(boolean z, boolean z2);", "public boolean b(int paramInt, amj paramamj)\r\n/* 578: */ {\r\n/* 579:621 */ return true;\r\n/* 580: */ }", "boolean hasB24();", "private boolean m32574c(C10331b bVar) {\n C10332c cVar = this.f24466c;\n return cVar != null && cVar.mo26877a(bVar);\n }", "boolean isBinary();", "@Test @Ignore\n public void testUfWithBoolArg() throws SolverException, InterruptedException {\n\n UninterpretedFunctionDeclaration<IntegerFormula> uf = fmgr.declareUninterpretedFunction(\"fun_bi\", FormulaType.IntegerType, FormulaType.BooleanType);\n IntegerFormula ufTrue = fmgr.callUninterpretedFunction(uf, ImmutableList.of(bmgr.makeBoolean(true)));\n IntegerFormula ufFalse = fmgr.callUninterpretedFunction(uf, ImmutableList.of(bmgr.makeBoolean(false)));\n\n BooleanFormula f = bmgr.not(imgr.equal(ufTrue, ufFalse));\n assertThat(f.toString()).isEmpty();\n assert_().about(BooleanFormula()).that(f).isSatisfiable();\n }" ]
[ "0.71186924", "0.7095943", "0.7035659", "0.6998864", "0.69913363", "0.6977807", "0.6858498", "0.6842377", "0.6839328", "0.6770244", "0.6758909", "0.6741566", "0.6741566", "0.67308074", "0.6725132", "0.66944313", "0.66722196", "0.66665316", "0.6649153", "0.661904", "0.6591122", "0.65900344", "0.6556306", "0.65472186", "0.65472186", "0.65472186", "0.65472186", "0.6508722", "0.64980066", "0.64889115", "0.6475339", "0.64643764", "0.6450642", "0.64441764", "0.6430044", "0.6406647", "0.63948613", "0.63927674", "0.6392409", "0.63850427", "0.6378383", "0.6376452", "0.63590527", "0.63536465", "0.6349632", "0.6335062", "0.6329746", "0.62996984", "0.6296053", "0.6291486", "0.62914413", "0.6282827", "0.6282232", "0.6282232", "0.628146", "0.6267877", "0.62675047", "0.6243965", "0.6242305", "0.62383664", "0.62124836", "0.6211022", "0.6208062", "0.6207559", "0.6206348", "0.61897624", "0.6189236", "0.618585", "0.61579907", "0.61554915", "0.61507213", "0.61349624", "0.6131103", "0.61214", "0.61210173", "0.6119644", "0.61124665", "0.6109187", "0.61088765", "0.6101367", "0.60982436", "0.6079013", "0.6077225", "0.6076764", "0.6066506", "0.6064702", "0.60625947", "0.6059428", "0.60525686", "0.605086", "0.60491586", "0.60453236", "0.6042728", "0.60408354", "0.6038365", "0.60278213", "0.60233575", "0.6022098", "0.6015565", "0.6015363", "0.60056084" ]
0.0
-1
$FF: renamed from: e () void
public void method_9652() { this.field_9138.method_4257().method_9802(); this.field_9138.method_4479(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void e() {\n\n\t}", "public void e() {\n }", "void event(Event e) throws Exception;", "@Override\n public void e(int i0, int i1) {\n\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n public void e(String TAG, String msg) {\n }", "public void mo2471e() {\n }", "void berechneFlaeche() {\n\t}", "public static void feec() {\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\r\n\tpublic void onEvent(Object e) {\n\t}", "public void mo1405e() {\n }", "public void mo21780E() {\n }", "@Override\n public void b() {\n }", "public final void mo91720e() {\n super.mo91720e();\n }", "void mo21074e();", "public abstract void mo27386d();", "private final void i() {\n }", "@Override\n public void actionPerformed( final ActionEvent e ) {\n // NO OPERATION\n }", "private void m50366E() {\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "@Override\n\tpublic void processEvent(Event e) {\n\n\t}", "public void furyo ()\t{\n }", "@Override\n\tpublic void b() {\n\n\t}", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public void mo6944a() {\n }", "Event () {\n // Nothing to do here.\n }", "@Override\n\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\n\t}", "@Override\r\n\tpublic void onEvent(Event arg0) {\n\r\n\t}", "@Override\n\tpublic void yürü() {\n\n\t}", "void m5771e() throws C0841b;", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}", "public /* bridge */ /* synthetic */ void mo22963g(C7059Ec ec) {\n super.mo22963g(ec);\n }", "void bye();", "public void mo97908d() {\n }", "@Override\r\n\tpublic void performAction(Event e) {\n\r\n\t}", "public interface e {\n}", "public void m23075a() {\n }", "public abstract void mo42330e();", "public void compile(Emitter e)\n {\n throw new RuntimeException(\"Implement me!!!!!\");\n }", "@Override\n\tpublic void aaa() {\n\t\t\n\t}", "public void mo21779D() {\n }", "public abstract void mo70713b();", "public void o_()\r\n/* 533: */ {\r\n/* 534:539 */ this.e = true;\r\n/* 535: */ }", "@Override\n public void func_104112_b() {\n \n }", "void saySomething(String desc, MouseEvent e) {\n\t}", "@Override\r\n public void actionPerformed( ActionEvent e )\r\n {\n }", "public final void mo91715d() {\n }", "public void mo21825b() {\n }", "void mo56161e();", "@Override\n public void actionPerformed(ActionEvent e) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public byte e()\r\n/* 84: */ {\r\n/* 85:86 */ return this.e;\r\n/* 86: */ }", "public void mo44053a() {\n }", "public void g() {\n }", "public void b() {\r\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }", "public void mo21879u() {\n }", "public void mo21781F() {\n }", "public abstract void mo27464a();", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\r\n\t\t}", "public abstract void mo56925d();", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void h() {\n }", "public void b(Object obj) {\n e();\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t}", "protected void h() {}", "public void e() {\n v.b bVar = this.i;\n if (bVar != null) {\n this.f.a(bVar);\n }\n a1 a1Var = this.g;\n if (a1Var != null) {\n a1Var.a();\n }\n this.g = null;\n }", "public void mo9137b() {\n }", "void mo43357a(C16726e eVar) throws RemoteException;", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e)\n\t{\n\t\t\n\t}", "void element() {}", "public void mo5248a() {\n }", "public void mo115188a() {\n }", "void m5770d() throws C0841b;", "void m5769c() throws C0841b;", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t}" ]
[ "0.831217", "0.8263482", "0.7269824", "0.72477543", "0.6976275", "0.697018", "0.6889901", "0.6827704", "0.6785928", "0.6783425", "0.6774625", "0.672212", "0.6708503", "0.6701176", "0.6678974", "0.6656218", "0.6601006", "0.65706503", "0.6567137", "0.6552242", "0.65276957", "0.6522749", "0.6515653", "0.6512856", "0.6511813", "0.65081984", "0.6506679", "0.6499969", "0.64983875", "0.6498185", "0.6485638", "0.64746606", "0.64746606", "0.64732", "0.6466666", "0.6465825", "0.64641607", "0.64508533", "0.6449492", "0.6448094", "0.6435308", "0.64343846", "0.64279884", "0.6416256", "0.6413805", "0.6407288", "0.64010876", "0.637232", "0.6370135", "0.63652164", "0.63568014", "0.6348783", "0.63385797", "0.6334325", "0.63286734", "0.63254976", "0.631731", "0.63168305", "0.6300768", "0.62965035", "0.6294951", "0.6294178", "0.6293082", "0.6279628", "0.6275983", "0.62609804", "0.62563", "0.62536854", "0.62536854", "0.62536854", "0.62536854", "0.62536854", "0.62536854", "0.62536854", "0.62536854", "0.62536854", "0.62536854", "0.62536854", "0.62536854", "0.62536854", "0.62536854", "0.62536854", "0.62536854", "0.62536854", "0.62536854", "0.62536854", "0.62536854", "0.62489796", "0.6247958", "0.6243452", "0.6241137", "0.62364215", "0.623408", "0.6233669", "0.62335414", "0.62274885", "0.6226707", "0.6224322", "0.62189674", "0.62189674", "0.62189674" ]
0.0
-1
$FF: renamed from: f () void
public void method_9653() { this.field_9138.method_4479(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void func_70305_f() {}", "public void f() {\n }", "public void f() {\n }", "@Override\n public int f() {\n return 0;\n }", "void f1() {\r\n\t}", "@Override\n\tpublic void f1() {\n\n\t}", "@Override\n\tpublic void f2() {\n\t\t\n\t}", "void testMethod() {\n f();\n }", "void mo3193f();", "public void f() {\n Message q_ = q_();\n e.c().a(new f(255, a(q_.toByteArray())), getClass().getSimpleName(), i().a(), q_);\n }", "void mo84656a(float f);", "void mo21075f();", "public void f() {\n this.f25459e.J();\n }", "public abstract int mo123247f();", "public void furyo ()\t{\n }", "void mo54440f();", "public abstract int mo9741f();", "public byte f()\r\n/* 89: */ {\r\n/* 90:90 */ return this.f;\r\n/* 91: */ }", "void mo67923b();", "public abstract long f();", "public interface f {\n void a();\n}", "public abstract int f(int i2);", "void mo57277b();", "void mo80455b();", "void mo72112a(float f);", "public abstract void mo42330e();", "void b();", "public void g() {\n <caret>f(null, null);\n }", "void mo56155a(float f);", "public abstract void mo42331g();", "void berechneFlaeche() {\n\t}", "void mo72113b();", "void mo119582b();", "static void feladat9() {\n\t}", "void mo28194a();", "public void t();", "public void mo21781F() {\n }", "public final void mo8765a(float f) {\n }", "void mo41086b();", "void mo41083a();", "void mo9694a(float f, float f2);", "void mo88523b();", "@Override\n\tpublic void function() {\n\t\t\n\t}", "public void mo42331g() {\n mo42335f();\n }", "void mo80452a();", "public abstract void mo42329d();", "public void foo() {\r\n\t}", "public abstract void mo70713b();", "public void b() {\r\n }", "void mo28306a();", "public abstract void mo27386d();", "public void g() {\n }", "@Override\n\tpublic void visit(Function arg0) {\n\t\t\n\t}", "void mo69874a();", "void mo54405a();", "static void feladat4() {\n\t}", "public static void func() {\n }", "private void m50367F() {\n }", "@Override\n public void visitFunction(Function function) {\n }", "@Override\n public void func_104112_b() {\n \n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "public void b() {\n }", "public void b() {\n }", "void mo56161e();", "void mo67920a();", "void mo22249a();", "void mo84655a();", "public amj p()\r\n/* 543: */ {\r\n/* 544:583 */ return this.f;\r\n/* 545: */ }", "void mo72111a();", "public void mo1406f() {\n }", "public static void feec() {\n\t}", "public int F()\r\n/* 24: */ {\r\n/* 25: 39 */ return aqt.a(0.5D, 1.0D);\r\n/* 26: */ }", "void fun();", "void fun();", "void mo13368a();", "public abstract void mo45765b();", "public abstract void afvuren();", "public void a() {\r\n }", "static void feladat7() {\n\t}", "void mo9693a();", "public void m51745d() {\n this.f42403b.a();\n }", "void mo98969a();", "public abstract void mo102899a();", "public abstract void mo3994a();", "void mo196b(float f) throws RemoteException;", "public Fun_yet_extremely_useless()\n {\n\n }", "public abstract void mo30696a();", "public abstract void mo35054b();", "public abstract void mo6549b();", "static void feladat5() {\n\t}", "static void feladat3() {\n\t}", "@Override\n\tpublic void visit(Function arg0) {\n\n\t}", "public void mo6944a() {\n }", "void mo38026a();", "void mo21073d();", "void mo9704b(float f, float f2, int i);", "void mo119581a();", "void mo37810a();", "public void a() {\n }", "public void a() {\n }", "static void feladat10() {\n\t}" ]
[ "0.8133922", "0.8054612", "0.80336934", "0.7644505", "0.74619853", "0.70730615", "0.7063645", "0.69087774", "0.6881769", "0.6876434", "0.68606323", "0.68485004", "0.68447775", "0.6792766", "0.67660826", "0.6716051", "0.66668606", "0.66173965", "0.66109085", "0.6604501", "0.65903294", "0.65891963", "0.65590733", "0.6513031", "0.6479555", "0.6471524", "0.6469559", "0.646176", "0.6458121", "0.6456285", "0.64516306", "0.642904", "0.64172435", "0.6407768", "0.64026934", "0.6395339", "0.6392344", "0.63861054", "0.63848424", "0.63815475", "0.6371362", "0.6369365", "0.6363598", "0.63475883", "0.63418835", "0.6336259", "0.63288605", "0.6325537", "0.6324804", "0.63121647", "0.6303259", "0.62982064", "0.62954247", "0.62951183", "0.6293314", "0.6283218", "0.6281851", "0.6274829", "0.6270525", "0.6263156", "0.6248446", "0.62481135", "0.62481135", "0.6245377", "0.62437546", "0.6241513", "0.6238241", "0.62358874", "0.6235542", "0.6235215", "0.62347907", "0.6234143", "0.62144893", "0.62144893", "0.61904794", "0.61869794", "0.61849296", "0.6183859", "0.6173948", "0.61698323", "0.6167649", "0.6164593", "0.6158782", "0.615217", "0.6151364", "0.61459726", "0.614288", "0.6139995", "0.6134458", "0.6126292", "0.6125536", "0.61243904", "0.61211056", "0.61178696", "0.61168104", "0.6115284", "0.6114826", "0.6108612", "0.61048645", "0.61048645", "0.61036104" ]
0.0
-1
$FF: renamed from: b (boolean) void
public void method_9697(boolean var1) { this.field_9139 = var1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo197b(boolean z);", "void mo1492b(boolean z);", "public void b(boolean paramBoolean)\r\n/* 603: */ {\r\n/* 604:601 */ this.l = paramBoolean;\r\n/* 605: */ }", "public void b(boolean paramBoolean)\r\n/* 184: */ {\r\n/* 185:183 */ this.g = paramBoolean;\r\n/* 186: */ }", "void mo98208a(boolean z);", "public void a(boolean ☃) {\r\n/* 64 */ this.ab.b(a, Boolean.valueOf(☃));\r\n/* */ }", "void mo1488a(boolean z);", "void mo6661a(boolean z);", "void mo21069a(boolean z);", "void mo99838a(boolean z);", "void boolean1(boolean a);", "abstract void mo956a(boolean z);", "void mo64153a(boolean z);", "void mo21071b(boolean z);", "void mo3305a(boolean z);", "public void mo97905b(boolean z) {\n }", "public boolean b()\r\n {\r\n return false;\r\n }", "public void b() {\r\n }", "public abstract void mo9254f(boolean z);", "void b();", "void mo9701a(boolean z);", "@Override\n\tpublic void b() {\n\n\t}", "@Override\n public void b() {\n }", "void mo12636a(boolean z);", "public boolean b()\n {\n return false;\n }", "public boolean b()\n {\n return false;\n }", "public abstract boolean mo66253b();", "void mo54420a(boolean z, boolean z2);", "public void b() {\n }", "public void b() {\n }", "public abstract boolean a();", "public void a(boolean paramBoolean)\r\n/* 593: */ {\r\n/* 594:593 */ this.k = paramBoolean;\r\n/* 595: */ }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "final void a(boolean paramBoolean) {\n/* 14387 */ this.d = true;\n/* */ }", "@ReflectiveMethod(name = \"b\", types = {})\n public boolean b(){\n return (boolean) NMSWrapper.getInstance().exec(nmsObject);\n }", "public abstract C0631bt mo9251e(boolean z);", "public boolean b() {\n return true;\n }", "public abstract void mo32006dL(boolean z);", "public boolean b()\r\n/* 709: */ {\r\n/* 710:702 */ return this.l;\r\n/* 711: */ }", "public void am(boolean z) {\n }", "void mo728b(boolean z) throws RemoteException;", "public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }", "public abstract boolean mo9735b();", "@Override\n\tpublic void bbb() {\n\t\t\n\t}", "@Override // c.d.a.m.w.n\n public /* bridge */ /* synthetic */ boolean b(byte[] bArr) {\n return true;\n }", "void mo717a(boolean z) throws RemoteException;", "public interface btf {\n boolean e();\n}", "void mo2508a(bxb bxb);", "void mo54415a(int i, boolean z);", "void mo28742b(boolean z, int i);", "void mo22049es(boolean z);", "@Override\n\tpublic void b1() {\n\t\t\n\t}", "public void method_217(boolean var1) {}", "public final void mo5689a(boolean z) {\n }", "public boolean method_2153(boolean param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "public void a(boolean paramBoolean)\r\n/* 80: */ {\r\n/* 81: 83 */ this.splash = paramBoolean;\r\n/* 82: */ }", "public abstract void mo9806a(int i, boolean z);", "@Override\n public void func_104112_b() {\n \n }", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public abstract int b();", "public boolean a()\r\n {\r\n return false;\r\n }", "public void mo97903a(boolean z) {\n }", "public abstract void mo70702a(C30989b c30989b);", "boolean mo54429b();", "public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }", "public void ak(boolean z) {\n }", "public void method_2249(boolean param1, class_81 param2) {\r\n // $FF: Couldn't be decompiled\r\n }", "public boolean b(IBlockAccess paramard, BlockPosition paramdt)\r\n/* 31: */ {\r\n/* 32:46 */ return true;\r\n/* 33: */ }", "void mo26249mh(boolean z);", "public boolean b(int paramInt, amj paramamj)\r\n/* 578: */ {\r\n/* 579:621 */ return true;\r\n/* 580: */ }", "public final void mo12411a(boolean z) {\n }", "public void mo97907c(boolean z) {\n }", "public void ae(boolean z) {\n }", "public abstract boolean zzbek();", "public final boolean func_boolean_a(int var1, int var2) {\n if (this.func_boolean_b(var1, var2)) {\n return true;\n } else if (var2 != 53 && var1 != 8) {\n if (var2 == -8) {\n super.field_class_cb_a.func_void_a(this.field_byte_c, (byte)0);\n return true;\n } else {\n return true;\n }\n } else {\n super.field_class_cb_a.func_void_a(this.field_byte_c, (byte)1);\n return true;\n }\n }", "public boolean a(World paramaqu, BlockPosition paramdt, Block parambec, boolean paramBoolean)\r\n/* 67: */ {\r\n/* 68: 83 */ return true;\r\n/* 69: */ }", "public abstract void mo70713b();", "void visitBooleanValue(BooleanValue value);", "boolean mo30282b();", "private CheckBoolean() {\n\t}", "private BooleanFunctions()\n {\n }", "BSubFalse createBSubFalse();", "@Nullable\n /* renamed from: a */\n public abstract C4891ao mo18474a(Object obj, boolean z);", "public abstract void mo9246b(C0707b bVar);", "public abstract boolean a(e parame, b paramb, int paramInt1, int paramInt2);", "public boolean c()\r\n/* 36: */ {\r\n/* 37:51 */ return false;\r\n/* 38: */ }", "public final void mo5392bA(boolean z) {\n }", "public boolean b(alq paramalq)\r\n/* 259: */ {\r\n/* 260:278 */ int i = c(paramalq);\r\n/* 261:279 */ if (i < 0) {\r\n/* 262:280 */ return false;\r\n/* 263: */ }\r\n/* 264:283 */ return true;\r\n/* 265: */ }", "public boolean b(int paramInt, ItemStack paramamj)\r\n/* 86: */ {\r\n/* 87:107 */ return true;\r\n/* 88: */ }", "public abstract void mo4360a(byte b);", "public boolean a()\n {\n return true;\n }", "public abstract void mo32007dM(boolean z);", "public abstract void mo32005dK(boolean z);", "public boolean isVoid()\r\n/* 146: */ {\r\n/* 147:177 */ return false;\r\n/* 148: */ }", "public final void mo66089a(boolean z) {\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "void mo41086b();", "void mo198c(boolean z) throws RemoteException;", "public abstract void mo9798a(byte b);", "protected void a(bug parambug)\r\n/* 35: */ {\r\n/* 36:36 */ this.j.a((bxf)null);\r\n/* 37: */ }", "public final void mo91723e(boolean z) {\n }" ]
[ "0.77071303", "0.7701807", "0.74319416", "0.7429783", "0.7410599", "0.73887473", "0.73516256", "0.7350655", "0.73125917", "0.72970283", "0.7263645", "0.7263413", "0.7182996", "0.7160118", "0.7135618", "0.7128356", "0.70488834", "0.7034204", "0.7009944", "0.699277", "0.69874233", "0.6984061", "0.69754505", "0.69748455", "0.69686794", "0.69686794", "0.6953163", "0.6944493", "0.6941258", "0.6941258", "0.6934851", "0.6867756", "0.68621033", "0.68351066", "0.68209475", "0.68115485", "0.67867947", "0.6781206", "0.67808235", "0.6772553", "0.6767397", "0.6764791", "0.67590904", "0.67118895", "0.6675278", "0.6673166", "0.66549695", "0.6653892", "0.66401863", "0.6626171", "0.6610674", "0.6605666", "0.65989614", "0.6596296", "0.65942156", "0.65569973", "0.65542835", "0.655028", "0.65453506", "0.65401995", "0.65314335", "0.6523063", "0.65146405", "0.65137005", "0.64946777", "0.64747214", "0.64659095", "0.64593095", "0.64584553", "0.64500964", "0.6432418", "0.6428775", "0.64174885", "0.6404151", "0.6386471", "0.63846034", "0.6376695", "0.63746446", "0.6366792", "0.63452065", "0.63432574", "0.6337003", "0.6334599", "0.6332012", "0.6324601", "0.6323815", "0.63218117", "0.6320133", "0.63160324", "0.63013226", "0.62973017", "0.6295003", "0.629233", "0.6286825", "0.62736696", "0.62718725", "0.6269903", "0.625329", "0.6238143", "0.6229136", "0.62242997" ]
0.0
-1
Constructor for a maze state.
public MazeState(Node pawnOne, Node pawnTwo) { this.pawnOne = pawnOne; this.pawnTwo = pawnTwo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Maze(){}", "public BFSMaze(MazeConstructor maze) {\n this.maze = maze;\n this.r = maze.getR();\n queue = new LinkedList<>();\n parents = new LinkedList<>();\n }", "public Maze() {\n\t\tmaze = new Block[1][1];\n\t\tfileName=\"\";\n\t}", "public MazeBug() {\n\n\tsetColor(Color.BLACK);\n\tlast = new Location(0, 0);\n\n\tdirCounter.put(Location.NORTH, 0);\n\tdirCounter.put(Location.SOUTH, 0);\n\tdirCounter.put(Location.EAST, 0);\n\tdirCounter.put(Location.WEST, 0);\n\n }", "public MazeModel() {\n\n mazeGeneration = new LinkedList<>();\n\n cells = new Cell[MAX_ROWS][MAX_COLUMNS];\n\n for (int r = 0; r < MAX_ROWS; r++) {\n for (int c = 0; c < MAX_COLUMNS; c++) {\n cells[r][c] = new Cell();\n cells[r][c].setR(r);\n cells[r][c].setC(c);\n }\n }\n }", "public Maze(int size) {\n \t\tthis.size = size;\n \t\ttarget = new Point(size, 1);\n \n \t\tvisited = new boolean[size + 2][size + 2];\n \t\tnorth = new boolean[size + 2][size + 2];\n \t\teast = new boolean[size + 2][size + 2];\n \t\tsouth = new boolean[size + 2][size + 2];\n \t\twest = new boolean[size + 2][size + 2];\n \t\t\n \t\tinit();\n \t\tcalculateCentre();\n \t\tcreateSwitches(); //needs to be done after centre is created\n \t\t\n \t\t //create 15 motion sensors, but don't create any in the centre\n \t\tms = new MotionSensors(size, 15, centreMin, centreMax);\n \t\t//System.out.println(ms); //print motion sensor coordinates\n \t\t\n \t\tcreateSubmarineMaze();//generates maze for the submarine\n \t}", "public Maze(int[][] mazeArray) {\n this.r = mazeArray.length - 2; //r is the length of the array minus the top and bottom outside walls\n this.c = mazeArray[0].length - 2; //c is the length of the first row minus the side walls\n this.x = 1; //Start at the x coordinate of 1\n this.y = 1; //Start at the y coordinate of 1\n this.steps = 1; //Start steps at 1, includes the first spot\n this.maze = mazeArray; //Set the maze to the passed mazeArray\n stack = new MyStack(); //Create a new empty stack\n }", "public MazeBug() {\r\n setColor(Color.GREEN);\r\n last = new Location(0, 0);\r\n crossLocation = new Stack<ArrayList<Location>>();\r\n crossLocation.push(new ArrayList<Location>());\r\n hasShown = false;\r\n isEnd = false;\r\n probablyDir = new int[] { 0, 0, 0, 0 };\r\n stepCount = 0;\r\n }", "public SampleMaze() {\r\n\t\twidth = 5;\r\n\t\theight = 5;\r\n\t\tgrid = new Grid(width,height);\r\n\t\tgridSheet = grid.getGrid();\r\n\t\t\r\n\t\tconstructMaze(); // construct the maze\r\n\t\t\r\n\t\t// construct the graph of the maze and get the complexity, traversal length, \r\n\t\t// intersections, and dead ends of the maze.\r\n\t\tgraph = new Graph(grid);\r\n\t\tmazeComplexity = graph.mazeComplexity();\r\n\t\ttravelLength = graph.traversalLength();\r\n\t\tdeadEndCount = graph.numberOfDeadEnds();\r\n\t\tiCount = graph.numberOfIntersections();\r\n\t}", "public MazeBug() {\n setColor(Color.GREEN);\n last = null;\n next = null;\n }", "public State(){}", "private MazeBuilder() {\n\t}", "public SolvedMaze(Maze m)\r\n\t{\r\n\t\tsuper(m);\r\n\t\t\r\n\t\tpath = new ArrayList<>();\r\n\t}", "Maze makeMaze();", "public MazeComponent(Maze maze) {\n\t\tthis.maze = maze;\n\t}", "public Cell(int state) {\n \t\tthis.state = state;\n \t}", "@Override\n\tpublic Maze MakeMaze() {\n\t\treturn new Maze();\t\n\t}", "public Maze(Scanner source)\n\t{\n String s=\"\";\n Scanner filescan = source;\n while (filescan.hasNext())\n {\n s=filescan.nextLine();\n \n }\n Scanner filescan2 = new Scanner(s);\n start=new Position(filescan2.nextInt(),filescan2.nextInt());\n grid= new MazeGrid(source);\n path= new MazePath();\n //path.extend(start);\n grid.setState(start, SquareState.SELECTED);\n\t}", "public WorldState ()\n\t{\n\t\tproperties = new HashMap<String, WorldStateProperty>();\n\t}", "public State()\n {\n this(\"\");\n }", "public Maze(String mazeData)\r\n\t{\r\n\t\tfinal int END_OF_HEIGHT = 6; //\"HEIGHT=\" ends at mazeData[6]\r\n\t\tint position;\r\n\t\tint height;\r\n\t\tint width;\r\n\t\tint numRow = 0;\r\n\t\tint numCol = 0;\r\n\t\tint i;\r\n\t\tint j;\r\n\r\n\t\tmazeData = mazeData.toUpperCase(); //just in case it is not in upper case as the specs show\r\n\r\n\t\tfor(position = END_OF_HEIGHT + 1; position <= mazeData.length() - 1; position++) //it should never reach mazeData.length() -1, but you can't be too careful\r\n\t\t{\r\n\t\t\tif(mazeData.charAt(position) == ' ')\r\n\t\t\t{break;}\r\n\t\t}\r\n\t\theight = Integer.parseInt(mazeData.substring(END_OF_HEIGHT + 1, position)); //parse the part of the string which represents the height integer into an integer\r\n\r\n\t\tfinal int END_OF_WIDTH = position + 6; //same idea as END_OF_HEIGHT above, but it can't be defined until you know where the height definition ends; normally I would never declare things in the middle of a function\r\n\r\n\t\tfor(position = END_OF_WIDTH + 1; position <= mazeData.length() - 1; position++)\r\n\t\t{\r\n\t\t\tif(mazeData.charAt(position) == ' ')\r\n\t\t\t{break;}\r\n\t\t}\r\n\t\twidth = Integer.parseInt(mazeData.substring(END_OF_WIDTH + 1, position)); //as above\r\n\r\n\t\troom = new MazeRoom[height][width];\r\n\t\tfor(i = 0; i <= room.length - 1; i++)\r\n\t\t{\r\n\t\t\tfor(j = 0; j <= room[i].length - 1; j++)\r\n\t\t\t{\r\n\t\t\t\troom[i][j] = new MazeRoom();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor(position = position + 1; position <= mazeData.length() - 1; position++)\r\n\t\t{\r\n\t\t\tswitch(mazeData.charAt(position))\r\n\t\t\t{\r\n\t\t\t\tcase ' ':\r\n\t\t\t\t\tnumCol++;\r\n\t\t\t\t\tif(numCol % (room[numRow].length) == 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tnumCol = 0;\r\n\t\t\t\t\t\tnumRow++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase '0':\r\n\t\t\t\t\troom[numRow][numCol].setNorth(true);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase '1':\r\n\t\t\t\t\troom[numRow][numCol].setEast(true);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase '2':\r\n\t\t\t\t\troom[numRow][numCol].setSouth(true);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase '3':\r\n\t\t\t\t\troom[numRow][numCol].setWest(true);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'S':\r\n\t\t\t\t\troom[numRow][numCol].setStart(true);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'E':\r\n\t\t\t\t\troom[numRow][numCol].setEnd(true);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'X':\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tSystem.out.println(\"uh-oh\" + mazeData.charAt(position));\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Node(State state) {\r\n\t\t\tthis.state=state;\r\n\t\t}", "public Cell(final Boolean state) {\n this.alive = state;\n this.newState = state;\n this.neighbors = new LinkedList<Cell>();\n }", "public Maze(int gridSize, int planeSize) {\n if (gridSize < 1)\n throw new IllegalArgumentException(\"The maze (grid) size must be at least 1.\");\n if (planeSize < 1)\n throw new IllegalArgumentException(\"The plane size must be at least 1.\");\n this.grid = new Box[gridSize][gridSize];\n this.wallSizePerBox = planeSize / (float) gridSize; // cast because we want a float, not an integer.\n // System.out.println(wallSizePerBox);\n float xAxis = 0;\n float yAxis = 0;\n for (int i = 0; i < grid.length; i++) {\n for (int j = 0; j < grid.length; j++) {\n Point[] verticesNewBox = new Point[4];\n verticesNewBox[0] = new Point(xAxis, yAxis);\n verticesNewBox[1] = new Point(xAxis + this.wallSizePerBox, yAxis);\n verticesNewBox[2] = new Point(xAxis, yAxis + this.wallSizePerBox);\n verticesNewBox[3] = new Point(xAxis + this.wallSizePerBox, yAxis + this.wallSizePerBox);\n int[] position = { i, j };\n this.grid[i][j] = new Box(verticesNewBox, position);\n xAxis += this.wallSizePerBox;\n }\n xAxis = 0;\n yAxis += wallSizePerBox;\n }\n this.stateOfTheMaze = 0;\n this.startBox = this.grid[0][0];\n this.endBox = this.grid[this.grid.length - 1][this.grid[0].length - 1];\n this.startBox.setAsSolution();\n this.endBox.setAsSolution();\n }", "public Cell(String state, int x, int y) {\n this.state = state;\n this.nextState = state;\n this.coordinate = new Point(x, y);\n }", "public MazeBug() {\n\t\tsetColor(Color.GREEN);\n\n\t\tisVisited = new boolean[SIZE][SIZE];\n\t\tfor (int i = 0; i < SIZE; ++i) {\n\t\t\tfor (int j = 0; j < SIZE; ++j) {\n\t\t\t\tisVisited[i][j] = false;\n\t\t\t}\n\t\t}\n\n\t\tpath = new ArrayList<Location>();\n\t\tpath.add(getLocation());\n\t}", "public int getStateOfTheMaze() {\n return this.stateOfTheMaze;\n }", "public RouteFinder(Maze m) {\n maze = m;\n }", "public Mazealgo() {\n Random number = new Random();\n long i = number.nextLong();\n this.random = new Random(i);\n this.seed = i;\n }", "public StateManager(StateData state, int offset)\r\n {\r\n this.state = state;\r\n\r\n offsetY = offset*5;\r\n\r\n velocity = VELOCITY / 1000.0f;\r\n }", "public State(T state) {\r\n\t\tthis.state = state;\r\n\t}", "public Cell(int row, int col, int startingState, int[] neighborRowIndexes,\n int[] neighborColIndexes) {\n myState = startingState;\n myRow = row;\n myCol = col;\n neighborRowIndex = neighborRowIndexes;\n if (hexagon) {\n neighborEvenColIndex = new int[]{-1, -1, 0, 1, 0, -1};\n neighborOddColIndex = new int[]{-1, 0, 1, 1, 1, 0};\n neighborRowIndex = new int[]{0, -1, -1, 0, 1, 1};\n } else {\n neighborEvenColIndex = neighborColIndexes;\n neighborOddColIndex = neighborColIndexes;\n }\n }", "void setMaze(IMaze maze);", "public KripkeStructure() {\n states = new HashMap<>();\n }", "public GameState() {}", "public CurrentRobotState() {\r\n currentPos = new RobotCoordinates();\r\n motorState = new Motor();\r\n reInitialize();\r\n }", "public StateVisualizer() {\r\n }", "public State(GameStateManager gameStateManager){ //constructor\n this.gameStateManager = gameStateManager;\n camera = new OrthographicCamera();\n mouse = new Vector3();\n }", "private void constructMaze() {\r\n\t\t\r\n\t\t// manual code to construct a sample maze going cell by cell\r\n\t\tgridSheet[0][0].breakSouthWall();\r\n\t\tgridSheet[1][0].breakEastWall();\r\n\t\tgridSheet[1][1].breakSouthWall();\r\n\t\tgridSheet[2][1].breakWestWall();\r\n\t\tgridSheet[2][0].breakSouthWall();\r\n\t\tgridSheet[2][1].breakEastWall();\r\n\t\tgridSheet[2][2].breakSouthWall();\r\n\t\tgridSheet[3][2].breakSouthWall();\r\n\t\tgridSheet[4][2].breakWestWall();\r\n\t\tgridSheet[4][1].breakNorthWall();\r\n\t\tgridSheet[4][1].breakWestWall();\r\n\t\tgridSheet[2][2].breakEastWall();\r\n\t\tgridSheet[2][3].breakNorthWall();\r\n\t\tgridSheet[1][3].breakWestWall();\r\n\t\tgridSheet[1][3].breakNorthWall();\r\n\t\tgridSheet[0][3].breakWestWall();\r\n\t\tgridSheet[0][2].breakWestWall();\r\n\t\tgridSheet[0][3].breakEastWall();\r\n\t\tgridSheet[0][4].breakSouthWall();\r\n\t\tgridSheet[1][4].breakSouthWall();\r\n\t\tgridSheet[2][4].breakSouthWall();\r\n\t\tgridSheet[3][4].breakWestWall();\r\n\t\tgridSheet[3][4].breakSouthWall();\r\n\t\tgridSheet[4][4].breakWestWall();\r\n\t\t\r\n\t}", "public State() {\r\n this.root = Directory.createRoot();\r\n this.setExit(false);\r\n this.directoryStack = new Stack<>();\r\n this.returnObject = new ReturnObject();\r\n workingDirectory = this.root;\r\n\r\n // Create a new ArrayList for the command history\r\n commandHistory = new ArrayList<>();\r\n }", "public void generateMaze() {\n if (this.stateOfTheMaze != 0)\n throw new IllegalArgumentException(\"To generate the maze the state of it must be \\\"untouched grid\\\".\");\n Stack<Box> stack = new Stack<>();\n Random random = new Random();\n int randomRow = random.nextInt(this.grid.length);\n int randomColumn = random.nextInt(this.grid[randomRow].length);\n Box startBox = this.grid[randomRow][randomColumn];\n startBox.use();\n stack.push(startBox);\n while (!stack.isEmpty()) {\n Box aux = stack.peek();\n if (allAdjacentUsed(aux))\n stack.pop();\n else\n stack.push(movement(aux));\n }\n this.stateOfTheMaze++;\n }", "public void init_cells()\n\t{\n\t\tint i, j;\n\n\t\t// create a maze of cells\n\t\tMaze = new int[ROWS][COLS];\n//\t\tfor (i = 0; i < ROWS; i++)\n//\t\t\tMaze[i] = new Array(COLS);\n\n\t\t// set all walls of each cell in maze by setting bits : N E S W\n\t\tfor (i = 0; i < ROWS; i++)\n\t\t\tfor (j = 0; j < COLS; j++)\n\t\t\t\tMaze[i][j] = (N + E + S + W);\n\t\t\n\t\t// create stack for storing previously visited locations\n\t\tstack = new Vector<int[]>(ROWS*COLS);\n\t\tfor (i = 0; i < ROWS*COLS; i++)\n\t\t\tstack.add(i, new int[2]);\n\n\t\t// initialize stack\n\t\tfor (i = 0; i < ROWS*COLS; i++)\n\t\t\tfor (j = 0; j < 2; j++)\n\t\t\t\tstack.elementAt(i)[j] = 0;\n\t}", "public Maze(int x, int y) {\n\t\tthis.visited = new HashSet<Point>();\n\t\tthis.width = x*2+1;\n\t\tthis.height = y*2+1;\n\t\tthis.maze = new int[width][height];\n\t\tfor (int i = 0; i < width; i++) {\n\t\t\tfor (int j = 0; j < height; j++) {\n\t\t\t\tif (i % 2 == 1 && j % 2 == 1) {\n\t\t\t\t\tmaze[i][j] = 0;\n\t\t\t\t} else {\n\t\t\t\t\tmaze[i][j] = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcreateMaze(1, 1);\n\t\tsetPoints();\n\t}", "public void moveConstructor() {\n this.loopAndAddMoves(1, 1);\n this.loopAndAddMoves(-1, 1);\n this.loopAndAddMoves(1, -1);\n this.loopAndAddMoves(-1, -1);\n this.loopAndAddMoves(0, 1);\n this.loopAndAddMoves(0, -1);\n this.loopAndAddMoves(1, 0);\n this.loopAndAddMoves(-1, 0);\n }", "public Maze(int m, int p) {\n\t\tmaze = new int[m + 2][p + 2];\n\t\tmark = new int[m + 2][p + 2];\n\t\tfor(int i = 0; i < m + 2; i++)\n\t\t\tfor(int j = 0; j < p + 2; j++) {\n\t\t\t\tmaze[i][j] = 1;\n\t\t\t\tmark[i][j] = 0;\n\t\t\t}\n\t}", "@Generated\n public FlexState() {\n }", "public Maze(final List<String> rawData) {\r\n\r\n this(rawData.toArray(new String[0])); \r\n }", "public GameState() {\n positionToPieceMap = new HashMap<Position, Piece>();\n }", "public Node(String name, String state) {\n\t\tthis.name = name;\n\t\tthis.state = state;\n\t\tID = (name + state + lon + \"\" + lat).hashCode();\n\n\t\tedgeList = new ArrayList<Edge>();\n\t}", "public Maze3d() {\r\n\t\tthis.maze = null;\r\n\t\tthis.startPosition = null;\r\n\t\tthis.goalPosition = null;\r\n\t}", "public Mesh() {\n this(DEFAULT_COORDS);\n }", "public GameState(State.StateView state) {\n }", "@Override\n public ArrayList<AState> getAllPossibleStates(AState state){\n MazeState s = (MazeState)state;\n ArrayList<AState> moves = new ArrayList<AState> ();\n\n\n int row = s.getState().getRowIndex();\n int col = s.getState().getColumnIndex();\n int [][] matrix = mySearchableMaze.getMazeMatrix();\n\n\n if(row+1 < matrix.length){\n if( matrix[row+1][col]==0 ){\n moves.add(new MazeState(new Position(row+1,col),false,s.getCost()+1));\n\n }\n }\n if(row-1 >= 0 ){\n if( matrix[row-1][col]==0){\n moves.add(new MazeState(new Position(row-1,col),false,s.getCost()+1));\n\n }\n }\n if(col+1 < matrix[0].length ){\n if( matrix[row][col+1]==0 ){\n moves.add(new MazeState(new Position(row,col+1),false,s.getCost()+1));\n\n }\n }\n if(col-1 >= 0 ){\n if( matrix[row][col-1]==0 ){\n moves.add(new MazeState(new Position(row,col-1),false,s.getCost()+1));\n }\n }\n return moves;\n }", "public Maze(byte[] arrayByte){\n start=new Position(toDecimal(0,arrayByte),toDecimal(numOfBits,arrayByte));\n goal=new Position(toDecimal(numOfBits*2,arrayByte),toDecimal(numOfBits*3,arrayByte));\n maze=new int[toDecimal(numOfBits*4,arrayByte)][toDecimal(numOfBits*5,arrayByte)];\n int counter=numOfBits*6;\n for(int i=0;i<maze.length;i++){\n for (int j=0;j<maze[0].length;j++){\n maze[i][j]=arrayByte[counter];\n counter++;\n }\n }\n mazeID=toByteArray().toString().hashCode();\n }", "public Maze3d(int[][][] m)\r\n\t{\r\n\t\tthis.maze = m;\r\n\t}", "public AbstractGameState() {\n\t\tsuper();\n\t}", "public Solution(){\r\n\r\n this.path_solution =new ArrayList<AState>();\r\n this.sol_for_debbage =new ArrayList<MazeState>();\r\n }", "State(Main aMain) {\n\tmain = aMain;\n\tback = Integer.parseInt(main.myProps.getProperty(\"yesterdays\"));\n\tfront = Integer.parseInt(main.myProps.getProperty(\"tomorrows\"));\n\tmaps = new Hashtable();\n availWeath = new Hashtable();\n\n main.myFrw.listen(new MapListener(), ScaledMap.TYPE, null);\n main.myFrw.announce(this);\n stateDoc = Framework.parse(main.myPath + \"state.xml\", \"state\");\n availWeath = loadFromDoc();\n }", "public FSM() {\r\n \t\tstates = new HashMap<String, State>();\r\n \t\ttransitions = new LinkedHashMap<String, Transition>();\r\n \t}", "public Maze(File inputFile) throws IllegalStateException\r\n , FileNotFoundException {\r\n\r\n this.checkMaze(inputFile);\r\n this.calculateMaze(inputFile);\r\n this.setMaze(inputFile);\r\n }", "public Coordinate() { row = col = -1; }", "public Board()\r\n\t{\r\n\t\tthis.grid = new CellState[GRID_SIZE][GRID_SIZE];\r\n\t\tthis.whiteMarblesCount = MARBLES_COUNT;\r\n\t\tthis.blackMarblesCount = MARBLES_COUNT;\r\n\t\t\r\n\t\t/**\r\n\t\t * Initializes the board with empty value\r\n\t\t */\r\n\t\tfor (int indexcol = 0; indexcol < GRID_SIZE; indexcol++)\r\n\t\t{\r\n\t\t\tfor (int indexrow = 0; indexrow < GRID_SIZE; indexrow++)\r\n\t\t\t{\r\n\t\t\t\tthis.grid[indexrow][indexcol] = CellState.EMPTY;\t\t\t\t\r\n\t\t\t}\t\r\n\t\t}\r\n\t\t\r\n\t\t/**\r\n\t\t * Sets marbles on the board with default style\r\n\t\t */\r\n\t\tfor (int indexcol = 0; indexcol < 5; indexcol++)\r\n\t\t{\r\n\t\t\tthis.grid[0][indexcol] = CellState.WHITE_MARBLE;\r\n\t\t\tthis.grid[8][8 - indexcol] = CellState.BLACK_MARBLE;\r\n\t\t}\r\n\t\tfor (int indexcol = 0; indexcol < 6; indexcol++)\r\n\t\t{\r\n\t\t\tthis.grid[1][indexcol] = CellState.WHITE_MARBLE;\r\n\t\t\tthis.grid[7][8 - indexcol] = CellState.BLACK_MARBLE;\r\n\t\t}\r\n\t\tfor (int indexcol = 2; indexcol < 5; indexcol++)\r\n\t\t{\r\n\t\t\tthis.grid[2][indexcol] = CellState.WHITE_MARBLE;\r\n\t\t\tthis.grid[6][8 - indexcol] = CellState.BLACK_MARBLE;\r\n\t\t}\r\n\t\tthis.grid[3][8] = CellState.INVALID;\r\n\t\tthis.grid[2][7] = CellState.INVALID;\r\n\t\tthis.grid[1][6] = CellState.INVALID;\r\n\t\tthis.grid[0][5] = CellState.INVALID;\r\n\t\tthis.grid[5][0] = CellState.INVALID;\r\n\t\tthis.grid[6][1] = CellState.INVALID;\r\n\t\tthis.grid[7][2] = CellState.INVALID;\r\n\t\tthis.grid[8][3] = CellState.INVALID;\r\n\t}", "public GameState(Cell[][] board, int difficulty, int mines) {\n\t\tthis.board = board;\n\t\tthis.dimensions = board.length;\n\t\tthis.difficulty = difficulty;\n\t\tthis.mines = mines;\n\t}", "public State () {\n\t\tthis.stateId = generateStateId();\n\t}", "public Cell()\n\t{\n\t\tthis.alive = 0;\n\t\tthis.neighbors = 0;\n\t}", "private List<List<Node>> initializeMaze(int rows, int cols, List<List<Node>> maze) {\n\t\t \n\t\tint count = 0;\n\t\tfor(int i=0; i<rows; i++) {\n\t\t\tList<Node> row = new ArrayList<>();\n\t\t\tfor(int j=0; j<cols; j++) {\n\t\t\t\trow.add(new Node(count++, true, true)); //Stores current index as value of the node\n\t\t\t}\n\t\t\tmaze.add(row);\n\t\t}\n\t\t \n\t\treturn maze;\n\t}", "private State(String name, int index) {\r\n \t\t\tthis.index = index;\r\n \t\t\tthis.name = name;\r\n \t\t}", "public void initMaze() {\n\t\tif (mMazeChars == null || mMazeChars.size() == 0)\n\t\t\treturn;\n\t\t\n\t\tint row = mMazeChars.size();\n\t\tint col = getMazeWidth();\n\t\t\n\t\t\n\t\tmIntegerMaze = new int[row][col];\n\t\t\n\t\tfor (int i = 0; i < row; i++) {\n\t\t\tString line = mMazeChars.get(i);\n\t\t\tfor (int j = 0; j < line.length(); j++) {\n\t\t\t\tchar tmpChar = line.charAt(j);\n\t\t\t\tint tmpNum = -1;\n\t\t\t\t\n\t\t\t\tif (tmpChar == LEVEL_WALL_CHAR || tmpChar == LEVEL_BOX_CHAR || tmpChar == LEVEL_BOX_ON_TARGET) {\n\t\t\t\t\ttmpNum = -1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttmpNum = 0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tmIntegerMaze[i][j] = tmpNum;\n\t\t\t}\n\t\t}\n\t}", "public CubeState(){\n ep = new PermutationGroup(12);\n cp = new PermutationGroup(8);\n eo = new EdgeOrientation();\n co = new CubieOrientation();\n }", "public MazeHelper(int height, int width) {\n this.height = height;\n this.width = width;\n\n this.paths = new boolean[height][width];\n this.frontiers = new boolean[height][width];\n this.frontierCells = new MazeArray<>();\n \n this.newPaths = new MazeArray<>();\n this.newFrontiers = new MazeArray<>();\n }", "public Location() {\n\t\t\n\t\txCoord=0;\n\t\tyCoord=0;\n\t\t\n\t}", "public MazePanel(int size) \r\n\t{\r\n\t\tthis.size = size;\r\n\t\tthis.setPreferredSize( getSize() );\r\n\t\tReset ( );\r\n\t}", "public void initialize() {\n\t\tmaze = new Block[width][height];\n\t\tborder();\n\t}", "public Location()\n\t{\n\t\tline = -1;\n\t\tcolumn = -1;\n\t}", "public FlagPositions() {\r\n this(6);\r\n }", "public JokeState(){\n\t\tsuper();\n\t}", "public State(int stateNum, int[] genes) throws IllegalArgumentEvent {\r\n\t\tthis.stateNum = stateNum;\r\n\t\t\r\n\t\tthis.command = toCommand(genes[0]);\r\n\t\tswitch(this.command){\r\n\t\t//Sense senseDir st1 st2 condition (senseMarker)\r\n\t\tcase SENSE:\r\n\t\t\tif(genes[1] < 0 || genes[1] > 3){\r\n\t\t\t\tthrow new IllegalArgumentEvent(\"Illegal SenseDir ordinal \" +\r\n\t\t\t\t\t\"argument in State constructor\");\r\n\t\t\t}\r\n\t\t\tthis.senseDir = toSenseDir(genes[1]);\r\n\t\t\tthis.turnDir = null;\r\n\t\t\tthis.marker = -1;\r\n\t\t\tthis.p = -1;\r\n\t\t\tif(genes[5] < 0 || genes[5] > max){\r\n\t\t\t\tthrow new IllegalArgumentEvent(\"Illegal st1 argument \" +\r\n\t\t\t\t\t\"in State constructor\");\r\n\t\t\t}\r\n\t\t\tthis.st1 = genes[5];\r\n\t\t\tif(genes[6] < 0 || genes[6] > max){\r\n\t\t\t\tthrow new IllegalArgumentEvent(\"Illegal st2 argument \" +\r\n\t\t\t\t\t\"in State constructor\");\r\n\t\t\t}\r\n\t\t\tthis.st2 = genes[6];\r\n\t\t\tif(genes[7] < 0 || genes[7] > 9){\r\n\t\t\t\tthrow new IllegalArgumentEvent(\"Illegal Condition ordinal \" +\r\n\t\t\t\t\t\"argument in State constructor\");\r\n\t\t\t}\r\n\t\t\tthis.condition = toCondition(genes[7]);\r\n\t\t\tif(this.condition == Condition.MARKER){\r\n\t\t\t\tif(genes[8] < 0 || genes[8] > 5){\r\n\t\t\t\t\tthrow new IllegalArgumentEvent(\"Illegal SenseMarker \" +\r\n\t\t\t\t\t\t\"argument in State constructor\");\r\n\t\t\t\t}\r\n\t\t\t\tthis.senseMarker = genes[8];\r\n\t\t\t}else{\r\n\t\t\t\tthis.senseMarker = -1;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t//Mark marker st1\r\n\t\tcase MARK:\r\n\t\t\tthis.senseDir = null;\r\n\t\t\tthis.turnDir = null;\r\n\t\t\tif(genes[3] < 0 || genes[3] > 5){\r\n\t\t\t\tthrow new IllegalArgumentEvent(\"Illegal marker \" +\r\n\t\t\t\t\t\"argument in State constructor\");\r\n\t\t\t}\r\n\t\t\tthis.marker = genes[3];\r\n\t\t\tthis.p = -1;\r\n\t\t\tif(genes[5] < 0 || genes[5] > max){\r\n\t\t\t\tthrow new IllegalArgumentEvent(\"Illegal st1 \" +\r\n\t\t\t\t\t\"argument in State constructor\");\r\n\t\t\t}\r\n\t\t\tthis.st1 = genes[5];\r\n\t\t\tthis.st2 = -1;\r\n\t\t\tthis.condition = null;\r\n\t\t\tthis.senseMarker = -1;\r\n\t\t\tbreak;\r\n\t\t//Unmark marker st1\r\n\t\tcase UNMARK:\r\n\t\t\tthis.senseDir = null;\r\n\t\t\tthis.turnDir = null;\r\n\t\t\tif(genes[3] < 0 || genes[3] > 5){\r\n\t\t\t\tthrow new IllegalArgumentEvent(\"Illegal marker \" +\r\n\t\t\t\t\t\"argument in State constructor\");\r\n\t\t\t}\r\n\t\t\tthis.marker = genes[3];\r\n\t\t\tthis.p = -1;\r\n\t\t\tif(genes[5] < 0 || genes[5] > max){\r\n\t\t\t\tthrow new IllegalArgumentEvent(\"Illegal st1 \" +\r\n\t\t\t\t\t\"argument in State constructor\");\r\n\t\t\t}\r\n\t\t\tthis.st1 = genes[5];\r\n\t\t\tthis.st2 = -1;\r\n\t\t\tthis.condition = null;\r\n\t\t\tthis.senseMarker = -1;\r\n\t\t\tbreak;\r\n\t\t//PickUp st1 st2\r\n\t\tcase PICKUP:\r\n\t\t\tthis.senseDir = null;\r\n\t\t\tthis.turnDir = null;\r\n\t\t\tthis.marker = -1;\r\n\t\t\tthis.p = -1;\r\n\t\t\tif(genes[5] < 0 || genes[5] > max){\r\n\t\t\t\tthrow new IllegalArgumentEvent(\"Illegal st1 \" +\r\n\t\t\t\t\t\"argument in State constructor\");\r\n\t\t\t}\r\n\t\t\tthis.st1 = genes[5];\r\n\t\t\tif(genes[6] < 0 || genes[6] > max){\r\n\t\t\t\tthrow new IllegalArgumentEvent(\"Illegal st2 \" +\r\n\t\t\t\t\t\"argument in State constructor\");\r\n\t\t\t}\r\n\t\t\tthis.st2 = genes[6];\r\n\t\t\tthis.condition = null;\r\n\t\t\tthis.senseMarker = -1;\r\n\t\t\tbreak;\r\n\t\t//Drop st1\r\n\t\tcase DROP:\r\n\t\t\tthis.senseDir = null;\r\n\t\t\tthis.turnDir = null;\r\n\t\t\tthis.marker = -1;\r\n\t\t\tthis.p = -1;\r\n\t\t\tif(genes[5] < 0 || genes[5] > max){\r\n\t\t\t\tthrow new IllegalArgumentEvent(\"Illegal st1 \" +\r\n\t\t\t\t\t\"argument in State constructor\");\r\n\t\t\t}\r\n\t\t\tthis.st1 = genes[5];\r\n\t\t\tthis.st2 = -1;\r\n\t\t\tthis.condition = null;\r\n\t\t\tthis.senseMarker = -1;\r\n\t\t\tbreak;\r\n\t\t//Turn turnDir st1\r\n\t\tcase TURN:\r\n\t\t\tthis.senseDir = null;\r\n\t\t\tif(genes[2] < 0 || genes[2] > 1){\r\n\t\t\t\tthrow new IllegalArgumentEvent(\"Illegal TurnDir ordinal \" +\r\n\t\t\t\t\t\"argument in State constructor\");\r\n\t\t\t}\r\n\t\t\tthis.turnDir = toTurnDir(genes[2]);\r\n\t\t\tthis.marker = -1;\r\n\t\t\tthis.p = -1;\r\n\t\t\tif(genes[5] < 0 || genes[5] > max){\r\n\t\t\t\tthrow new IllegalArgumentEvent(\"Illegal st1 \" +\r\n\t\t\t\t\t\"argument in State constructor\");\r\n\t\t\t}\r\n\t\t\tthis.st1 = genes[5];\r\n\t\t\tthis.st2 = -1;\r\n\t\t\tthis.condition = null;\r\n\t\t\tthis.senseMarker = -1;\r\n\t\t\tbreak;\r\n\t\t//Move st1 st2\r\n\t\tcase MOVE:\r\n\t\t\tthis.senseDir = null;\r\n\t\t\tthis.turnDir = null;\r\n\t\t\tthis.marker = -1;\r\n\t\t\tthis.p = -1;\r\n\t\t\tif(genes[5] < 0 || genes[5] > max){\r\n\t\t\t\tthrow new IllegalArgumentEvent(\"Illegal st1 \" +\r\n\t\t\t\t\t\"argument in State constructor\");\r\n\t\t\t}\r\n\t\t\tthis.st1 = genes[5];\r\n\t\t\tif(genes[6] < 0 || genes[6] > max){\r\n\t\t\t\tthrow new IllegalArgumentEvent(\"Illegal st2 \" +\r\n\t\t\t\t\t\"argument in State constructor\");\r\n\t\t\t}\r\n\t\t\tthis.st2 = genes[6];\r\n\t\t\tthis.condition = null;\r\n\t\t\tthis.senseMarker = -1;\r\n\t\t\tbreak;\r\n\t\t//Flip p st1 st2\r\n\t\tcase FLIP:\r\n\t\t\tthis.senseDir = null;\r\n\t\t\tthis.turnDir = null;\r\n\t\t\tthis.marker = -1;\r\n\t\t\tif(genes[4] < 1){\r\n\t\t\t\tthrow new IllegalArgumentEvent(\"Illegal p \" +\r\n\t\t\t\t\t\"argument in State constructor\");\r\n\t\t\t}\r\n\t\t\tthis.p = genes[4];\r\n\t\t\tif(genes[5] < 0 || genes[5] > max){\r\n\t\t\t\tthrow new IllegalArgumentEvent(\"Illegal st1 \" +\r\n\t\t\t\t\t\"argument in State constructor\");\r\n\t\t\t}\r\n\t\t\tthis.st1 = genes[5];\r\n\t\t\tif(genes[6] < 0 || genes[6] > max){\r\n\t\t\t\tthrow new IllegalArgumentEvent(\"Illegal st2 \" +\r\n\t\t\t\t\t\"argument in State constructor\");\r\n\t\t\t}\r\n\t\t\tthis.st2 = genes[6];\r\n\t\t\tthis.condition = null;\r\n\t\t\tthis.senseMarker = -1;\r\n\t\t\tbreak;\r\n\t\t//This should never be reached\r\n\t\tdefault:\r\n\t\t\tthrow new IllegalArgumentEvent(\"Illegal Command ordinal \" +\r\n\t\t\t\t\"argument in State constructor\");\r\n\t\t}\r\n\t}", "public BSState() {\n this.playerTurn=1;\n this.p1TotalHits=0;\n this.p2TotalHits=0;\n this.shipsAlive=10;\n this.shipsSunk=0;\n this.isHit=false;\n this.phaseOfGame=\"SetUp\";\n this.shotLocations=null;\n this.shipLocations=null;\n this.shipType=1;\n this.board=new String[10][20];\n //this.player1=new HumanPlayer;\n //this.player2=new ComputerPlayer;\n\n }", "public DepthFirst(MazePoint[][] cMaze, LinkedList<String> inventoryList, HashMap<Item, ItemValue> availableItemsHashMap)\n {\n // initialise instance variables\n this.cMaze = cMaze;\n this.inventoryList = inventoryList;\n this.availableItemsHashMap = availableItemsHashMap;\n }", "public Node(Status state, int x, int y){\n this.x=x;\n this.y=y;\n pathsToBaseStation = new LinkedList<>();\n this.neighbors=new LinkedList<>();\n this.liveNeighbors = new LinkedList<>();\n this.state = state;\n queue = new LinkedBlockingQueue<LinkedList<Object>>();\n Thread thread = new Thread(this);\n thread.start();\n }", "public FormatterStateMachine() {\n }", "State(int[][] startBoardState, int [][] goalBoardState){\n this.currentBoardState = startBoardState;\n this.goalBoardState = goalBoardState;\n this.g_cost = 0;\n this.parentState = null;\n }", "public GridMapCompassMoves() {\n super();\n }", "public MoveState(ArrayList<Box> possibleMovesby0,ArrayList<Box> possibleMovesby1, boolean pushWorker, boolean swapWorker, boolean heraIsActive, Model model,boolean firstAction)\n {\n\n //If possibleMoves is empty the player has lost\n stateID = StateEnum.Move;\n if(possibleMovesby0.isEmpty() && possibleMovesby1.isEmpty() && firstAction)\n {\n playerHasLost(model);\n }\n this.firstAction=firstAction;\n\n possibleMovesWorker0 = possibleMovesby0;\n possibleMovesWorker1 = possibleMovesby1;\n pushWorkerBack = pushWorker;\n swapWorkerPosition = swapWorker;\n hasFinished = false;\n this.heraIsActive = heraIsActive;\n\n startup(model);\n if(model.getTurn().getCurrentPlayer().getHasLost())\n {\n hasFinished=true;\n }\n }", "public MapTile() {}", "private void init() {\n mPaint = new Paint(Paint.ANTI_ALIAS_FLAG);\n mPaint.setStyle(Style.STROKE);\n mPaint.setColor(ContextCompat.getColor(getContext(), R.color.colorPrimary));\n mPaint.setStrokeCap(Paint.Cap.ROUND);\n mPaint.setStrokeJoin(Paint.Join.ROUND);\n mPaint.setStrokeWidth(10f);\n mPath = new Path();\n\n solutionCellsVisited = 0;\n\n solvedMaze = false;\n\n solved = new ArrayList<Boolean>();\n\n for (int i = 0; i < solutionPath.length; i++) {\n solved.add(false);\n }\n // Log.d(\"SOLVED_LENGTH\", Integer.toString(solved.size()));\n }", "public StateofPancakes(StateofPancakes state) {\r\n N = state.N;\r\n\tcurr_state = new int[N];\r\n for(int i=0; i<N; i++) \r\n curr_state[i] = state.curr_state[i];\r\n}", "public Zombie() {\r\n\t\tsuper(myAnimationID, 0, 0, 60, 60);\r\n\t}", "public Move() {\r\n\t}", "public Cube222 () {\n\t\tstate_ = new Cubie[8];\n\t\tstate_[0] = new Cubie('O','W','G',0); // front, clockwise\n\t\tstate_[1] = new Cubie('O','W','B',1);\n\t\tstate_[2] = new Cubie('R','W','B',2);\n\t\tstate_[3] = new Cubie('R','W','G',3);\n\t\tstate_[4] = new Cubie('O','Y','G',4); // back, behind front\n\t\tstate_[5] = new Cubie('O','Y','B',5);\n\t\tstate_[6] = new Cubie('R','Y','B',6);\n\t\tstate_[7] = new Cubie('R','Y','G',7);\n\t}", "public void setMaze(Location[][] maze){\n this.maze = maze;\n }", "public void initializeMaze(){\n for(int i = 0; i < 20; i ++){\n for(int j = 0; j < 15; j ++){\n if((i % 2 == 1) && (j % 2 == 1)){\n maze[i][j] = NOTVISIBLESPACE;\n }\n else{\n maze[i][j] = NOTVISIBLEWALL;\n }\n }\n }\n\n for(int i = 0; i < 15; i ++){\n maze[19][i] = NOTVISIBLEWALL;\n }\n }", "public sensorstate(int id){// int loction, int direction)\r\n this.id = id;\r\n //Location = loction;\r\n //direction = direction;\r\n \r\n }", "public Cell()\n\t{\n\t}", "public State(Square tractor, int k, int max, int rows, int columns) {\n\t\tthis.tractor = tractor;\n\t\tthis.k = k;\n\t\tthis.max = max;\n\t\tthis.rows = rows;\n\t\tthis.columns = columns;\n\t\tcells = new Square [rows][columns]; \n\t}", "public Cell ()\n {\n cellStatus = false;\n xCoordinate = 0;\n yCoordinate = 0;\n button = new JButton();\n }", "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1000, 600, 1);\n planets();\n stars();\n }", "public State(ArrayList<Tile> tiles){\n tiles.forEach(tile->this.tiles.add(((Tile) tile.clone())));\n }", "public GameState(int initialStones) \n {\n \tif (initialStones < 1) initialStones = 4;\n \tfor (int i=0; i<6; i++)\n \t\tstate[i] = state[i+7] = initialStones;\n }", "public States(Gameengine game) {\r\n\t\tthis.game = game;\r\n\t}" ]
[ "0.78032964", "0.71986234", "0.68996775", "0.6808502", "0.6791386", "0.6772276", "0.67525125", "0.67203486", "0.658515", "0.654313", "0.6497348", "0.64370596", "0.6430668", "0.6415884", "0.639687", "0.63475806", "0.6329972", "0.62866765", "0.62654203", "0.61869144", "0.6145605", "0.61323357", "0.6095904", "0.60650027", "0.6055807", "0.60550416", "0.60190403", "0.60174966", "0.59956104", "0.5994317", "0.59928983", "0.59290254", "0.5928657", "0.5925229", "0.58771265", "0.5863302", "0.58461696", "0.5842885", "0.582143", "0.58211756", "0.58144724", "0.58122605", "0.57985926", "0.5787291", "0.5781493", "0.57704425", "0.57457924", "0.57407784", "0.57377654", "0.5734682", "0.57270455", "0.5727001", "0.5713927", "0.5710966", "0.5708438", "0.57003474", "0.5695479", "0.569389", "0.5692794", "0.56885135", "0.5681788", "0.56749374", "0.5661386", "0.5659053", "0.5652969", "0.5623927", "0.5623607", "0.5620932", "0.5607028", "0.5601313", "0.5599664", "0.5597184", "0.5595868", "0.55828875", "0.55674714", "0.5558805", "0.5547395", "0.5531934", "0.552539", "0.55205774", "0.54965335", "0.5489431", "0.54856026", "0.5475237", "0.5461862", "0.5460522", "0.5460308", "0.54548347", "0.54532754", "0.5439734", "0.54364043", "0.54361606", "0.5433484", "0.54193455", "0.54162765", "0.5414226", "0.5410915", "0.53981155", "0.5396547", "0.5395348" ]
0.6927006
2
Append the path to get to this state base on the previous state
public void setPath(String path) { this.path = path; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setPath(){\r\n // get the reversed path\r\n ArrayList<Grid> reversedPath = new ArrayList<>();\r\n int index = _endIndex;\r\n reversedPath.add(_map.get_grid(index));\r\n while(index != _startIndex){\r\n index = _map.get_grid(index).get_parent();\r\n reversedPath.add(_map.get_grid(index));\r\n }\r\n\r\n // get the final path in the correct order\r\n int length = reversedPath.size();\r\n for(int i=length-1;i>=0;i--){\r\n _path.add(reversedPath.get(i));\r\n }\r\n }", "public void pushCurPath()\n\t {\n\t \t this.currentpath.simpleAppend((SoNode)( null), -1);\n\t \t}", "public void setPath(int sender, Stack<Integer> prevPath)\n { \n if (prevPath.isEmpty() || prevPath.peek()!=sender)\n prevPath.push(sender);\n path = (Stack)prevPath.clone();\n }", "public static void back() {\n\t\tString[] parts = MenuPath.path.split(\"_\");\n\t\tint len = parts.length;\n\t\t\n\t\tMenuPath.path = parts[0];\n\t\t\n\t\tfor(int i = 1; i < (len - 1); i++) {\t\t\t\n\t\t\tMenuPath.path = MenuPath.path + \"_\" + parts[i];\n\t\t}\t\n\t}", "public void appendPath(GeneralPath path, BuildHistory hist)\r\n {\r\n float offx = isRelative ? hist.history[0].x : 0f;\r\n float offy = hist.history[0].y;\r\n\r\n path.lineTo(x + offx, offy);\r\n hist.setPoint(x + offx, offy);\r\n }", "public void add(AState state){ this.path_solution.add(0,state);}", "public void updatePath() {\n\t\tString oldPath = this.path;\n\t\tif (materializePath()) {\n\t\t\tPageAlias.create(this, oldPath);\n\t\t\tupdateChildPaths();\n\t\t}\n\t}", "private void buildPath() {\r\n int xNext = 1;\r\n int yNext = map.getStartPos() + 1;\r\n CellLayered before = cells[yNext][xNext];\r\n while(true)\r\n {\r\n Byte[] xy = map.getDirection(xNext-1, yNext-1);\r\n xNext = xNext + xy[0];\r\n yNext = yNext + xy[1];\r\n\r\n CellLayered next = cells[yNext][xNext];\r\n\r\n if(xy[0]==-1)\r\n before.setRight(false);\r\n else\r\n before.setRight(true);\r\n before.setPath(true);\r\n if(next==null)\r\n break;\r\n\r\n before.setNextInPath(next);\r\n before = next;\r\n }\r\n }", "void setPath() {\n\t\tif(from.getSelectedItem() != null){\n\t\t\tint ifrom = (int) from.getSelectedItem();\n\t\t\tint ito = (int) to.getSelectedItem();\n\t\t\tPathFinder finder = new BellmanFord(this.app.graph, ifrom-1);\n\t\t\tfinder.findAll();\n\t\t\tArrayList<Integer> path = finder.getPath(ito-1);\n\t\t\tStringBuilder pathStr = new StringBuilder(\"[\");\n\t\t\tif(path != null){\n\t\t\t\tfor(int i = path.size()-1; i >= 0 ; i--){\n\t\t\t\t\tpathStr.append((path.get(i)+1) + \" \");\n\t\t\t\t}\n\t\t\t\tpathStr.append(\"]\");\n\t\t\t\t\n\t\t\t}\n\t\t\tthis.pathLabel.setText(pathStr.toString());\n\t\t}\n\t\t\n\t}", "private String backtrackPath(int[][] backtrack, int startRow) {\r\n\t\t// start the path with the state given by startRow\r\n\t\tString path = states[startRow].toString();\r\n\t\t// initialize curRow to the starting row\r\n\t\tint curRow = startRow;\r\n\t\t// loop over all columns backwards through the matrix\r\n\t\tfor (int i = backtrack[0].length - 1; i >= 0; --i) {\r\n\t\t\t// update the current row by backtracking\r\n\t\t\tcurRow = backtrack[curRow][i];\r\n\t\t\t// add this new state to the front of the string\r\n\t\t\tpath = states[curRow].toString() + path;\r\n\t\t}\r\n\t\t\r\n\t\treturn path;\r\n\t}", "public static Path getOnePathTo(ARGState pLastElement) {\n Path path = new Path();\n Set<ARGState> seenElements = new HashSet<ARGState>();\n\n // each element of the path consists of the abstract state and the outgoing\n // edge to its successor\n\n ARGState currentARGState = pLastElement;\n // add the error node and its -first- outgoing edge\n // that edge is not important so we pick the first even\n // if there are more outgoing edges\n\n CFANode loc = extractLocation(currentARGState);\n CFAEdge lastEdge = null;\n if (loc.getNumLeavingEdges() > 0) {\n lastEdge = loc.getLeavingEdge(0);\n }\n /*\n\n */\n path.addFirst(Pair.of(currentARGState, lastEdge));\n seenElements.add(currentARGState);\n\n while (!currentARGState.getParents().isEmpty()) {\n Iterator<ARGState> parents = currentARGState.getParents().iterator();\n\n ARGState parentElement = parents.next();\n //System.out.println(currentARGState.getStateId()+\":\"+parentElement);\n while (!seenElements.add(parentElement) && parents.hasNext()) {\n // while seenElements already contained parentElement, try next parent\n parentElement = parents.next();\n // System.out.println(currentARGState.getStateId()+\":\"+parentElement);\n }\n\n CFAEdge edge = parentElement.getEdgeToChild(currentARGState);\n path.addFirst(Pair.of(parentElement, edge));\n //输出当前路径\n //System.out.println(currentARGState.getStateId()+\",\"+currentARGState.getValuesOfKeyVariables());\n //System.out.println(edge);\n currentARGState = parentElement;\n\n //测试用\n /*if(!(edge instanceof CAssumeEdge) &&edge.getRawStatement().contains(\"a3\")){\n System.out.println(currentARGState.getStateId()+\":\"+currentARGState.getValuesOfKeyVariables());\n }*/\n\n }\n // System.out.println(\"跳出getOnePathTo\");\n return path;\n }", "public void setRingback(String path);", "private static ArrayList<String> getPath(SearchTreeNode last) {\n\t\tArrayList<String> result = new ArrayList<>();\n\t\tfor (SearchTreeNode current = last; current.parent != null; current = current.parent) {\n\t\t\tresult.add(current.action);\n\t\t}\n\t\tCollections.reverse(result);\n\t\treturn result;\n\t}", "public void back() {\n\t\tif (path.isEmpty()) {\n\t\t\tpath = crossLocation.pop();\n\t\t\tLocation loc = path.get(path.size() - 1);\n\t\t\tint dir = getLocation().getDirectionToward(loc);\n\t\t\tif (dir == Location.HALF_CIRCLE) {\n\t\t\t\tdirsCount[0]--;\n\t\t\t} else if (dir == Location.AHEAD) {\n\t\t\t\tdirsCount[1]--;\n\t\t\t} else if (dir == Location.RIGHT) {\n\t\t\t\tdirsCount[2]--;\n\t\t\t} else {\n\t\t\t\tdirsCount[3]--;\n\t\t\t}\n\t\t}\n\t\tnext = path.remove(path.size() - 1);\n\t\tmove();\n\t}", "public SequencePairAlignment generatePath ()\n\t{\n\t\tif (isGenerative() == false)\n\t\t\tthrow new IllegalStateException (\"Transducer is not generative.\");\n\t\tArrayList initialStates = new ArrayList ();\n\t\tIterator iter = initialStateIterator ();\n\t\twhile (iter.hasNext()) { initialStates.add (iter.next()); }\n\t\t// xxx Not yet finished.\n\t\tthrow new UnsupportedOperationException ();\n\t}", "public void updatAssemblyLineState(AssemblyLineState previousState, AssemblyLineState currentState);", "private void upPath() {\n if (!path.equals(FilePathUtil.getRootPath())) {\n onPathChanged(path, new File(path.getParent()));\n path = new File(path.getParent());\n load(null);\n }\n }", "public static String getNewPath() {\n return homePath + Integer.toString(++elementCounter) + \".ser\";\n }", "private void printPath() {\n // generate and print the shortest path.\n if (this == this.previous) {\n graphPathRef.add(this);\n } else if (this.previous == null) {\n System.out.print(\"\");\n } else {\n graphPathRef.add(this);\n this.previous.printPath();\n }\n }", "public void appendPath(LinkedList newTree) {\n EtmPoint current = (EtmPoint) newTree.removeFirst();\n\n ExecutionAggregate aggregate = getChild(current.getName());\n\n if (newTree.isEmpty()) {\n aggregate.addTransaction(current);\n } else {\n aggregate.appendPath(newTree);\n }\n }", "private void addPath(double prevXPos, double prevYPos, double xPos, double yPos) {\n\n\t\tif (penShowing) {\n\t\t\tDouble[] newPath = { prevXPos, prevYPos, xPos, yPos };\n\t\t\tpathList.add(newPath);\n\t\t\tpenColorList.add(screen.getPenColor());\n\t\t\torientationList.add(orientation);\n\n\t\t}\n\t}", "@Override\n\tpublic String addstate() {\n\t\treturn \"Open folder so Open state applied \";\n\t}", "public void ungeneratePath() {\n path = oldPaths.pop();\n }", "private void goUp() {\n\t\ttry {\n\t\t\tif (currentRootPath == null) {\n\t\t\t\treturn; //Invalid path\n\t\t\t}\n\t\t\tfinal Path parent2 = currentRootPath.getPath().getParent();\n\t\t\tif (parent2 == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ttxtRootPath.setText(parent2.toString());\n\t\t\tgotoPath();\n\t\t} catch (Exception e) {\n\t\t\tMessageDialog.openError(getShell(), Messages.msgError, e.getMessage());\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic Stack<MenuChoice> getPath() {\r\n\t\treturn ((Stack<MenuChoice>) path.clone());\r\n\t}", "public AbstractPathElement<V, E> getPrevPathElement()\r\n/* */ {\r\n/* 188 */ return this.prevPathElement;\r\n/* */ }", "public static Set<ARGState> getOnePathToARGStateForSimpleProperty(ARGState source, ARGState destination) {\n Set<Integer> seenElements = new HashSet<Integer>();\n ARGState currentARGState = source;\n seenElements.add(source.getStateId());\n List<ARGState> path = new ArrayList<ARGState>();\n path.add(currentARGState);\n // Set<ARGState> result = new HashSet<ARGState>();\n while (currentARGState.getStateId() != destination.getStateId()) {\n boolean end = true;\n if (!currentARGState.getChildren().isEmpty()) {\n Iterator<ARGState> children = currentARGState.getChildren().iterator();\n ARGState childrenElement ;\n do {\n childrenElement = children.next();\n if (!seenElements.contains(childrenElement.getStateId())) {\n path.add(childrenElement);\n currentARGState=childrenElement;\n seenElements.add(childrenElement.getStateId());\n end = false;\n break;\n }\n } while(children.hasNext());\n if(end){\n path.remove(path.size()-1);\n if(path.size()!=0){\n currentARGState=path.get(path.size()-1);\n seenElements.add(currentARGState.getStateId());\n }\n else\n break;\n }\n\n }\n else{\n path.remove(path.size()-1);\n if(path.size()!=0){\n currentARGState=path.get(path.size()-1);\n seenElements.add(currentARGState.getStateId());\n }\n else\n break;\n }\n }\n if(currentARGState.getStateId() != destination.getStateId())\n return null;\n if(!destination.getChildren().contains(source))\n return null;\n System.out.println(\"path.size=\"+path.size());\n Iterator<ARGState> it=path.iterator();\n for(int i=0;i<path.size()-1;i++){\n ARGState pre=path.get(i);\n ARGState suc=path.get(i+1);\n CFAEdge edge=pre.getEdgeToChild(suc);\n if(edge.getRawStatement().equals(\"BLANKEDGE\")){\n pre.getChildren().remove(suc);\n suc.getParents().remove(pre);\n AbstractStates.extractLocation(pre).getLeavingEdge().remove(edge);\n AbstractStates.extractLocation(suc).getEnteringEdges().remove(edge);\n }\n }\n return new HashSet<ARGState>(path);\n }", "private void tracePath(Node lastVisitedNode)\r\n {\r\n Node pathPtr = lastVisitedNode;\r\n while (pathPtr != Start)\r\n {\r\n pathPtr.isVisited = true;\r\n pathPtr = pathPtr.parent;\r\n }\r\n }", "public String getAppendedPath() {\n return appendedPath;\n }", "public void makePath() {\n\t\tQueue<GamePoint> newPath = new LinkedList<GamePoint>();\n\t\ttarget.setOnMouseEntered(e -> target.getGrid().setGridLinesVisible(true));\n\t\ttarget.setOnMouseExited(e -> target.getGrid().setGridLinesVisible(false));\n\t\ttarget.setOnMouseDragged(e -> targetSetOnMouseDragged(target, e, newPath));\n\t\ttarget.setOnMouseReleased(e -> replacePath(newPath));\n\t}", "private void selectNextPath(boolean inc) {\n\t\tif (this.allPathsList.size() < 1)\n\t\t\treturn;\n\t\tList<GraphPath<PathwayVertexRep, DefaultEdge>> paths = this.allPathsList.get(this.allPathsList.size() - 1)\n\t\t\t\t.getFirst();\n\t\tif (paths.size() > 1) {\n\t\t\t// System.out.println(\"allPaths.size() > 1\");\n\n\t\t\tif (inc)\n\t\t\t\tselectedPathID++;\n\t\t\telse\n\t\t\t\tselectedPathID--;\n\n\t\t\tif (selectedPathID < 0)\n\t\t\t\tselectedPathID = paths.size() - 1;\n\t\t\tif (selectedPathID > paths.size() - 1)\n\t\t\t\tselectedPathID = 0;\n\n\t\t\tif (allPaths.size() > 0) {\n\t\t\t\tselectedPath = paths.get(selectedPathID);\n\t\t\t\t// System.out.println(\"selectedPathID\"+selectedPathID);\n\t\t\t\tif (selectedPath.getEdgeList().size() > 0 && !isShiftKeyDown) {\n\t\t\t\t\tPathwayVertexRep startPrevVertex = selectedPath.getStartVertex();\n\t\t\t\t\tPathwayVertexRep endPrevVertex = selectedPath.getEndVertex();\n\t\t\t\t\tList<DefaultEdge> edgePrevList = selectedPath.getEdgeList();\n\t\t\t\t\tpreviousSelectedPath = new GraphPathImpl<PathwayVertexRep, DefaultEdge>(pathway, startPrevVertex,\n\t\t\t\t\t\t\tendPrevVertex, edgePrevList, 0);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tselectedPathID = 0;\n\t\t}\n\n\t\t// System.out.println(\"selectedPathID=\"+selectedPathID);\n\t\tthis.allPathsList.get(this.allPathsList.size() - 1).setSecond(selectedPathID);\n\t\tisBubbleTextureDirty = true;\n\t\tsetDisplayListDirty();\n\t\ttriggerPathUpdate();\n\t}", "void addPathFromStart() {\n for (String aPathFromStart : pathFromStart) {\n newFutureTargets.push(aPathFromStart);\n }\n }", "private Iterable<V> reconstructPath(V last, V from, HashMap<V, V> previous){\n LinkedList<V> ret = new LinkedList<>();\n ret.addFirst(last);\n while (!last.equals(from)){\n V prev = previous.get(last);\n ret.addFirst(prev);\n last = prev;\n }\n return ret;\n }", "public PathCode getCurPathCode() { return /*appliedTo.curPathCode*/currentpathcode;}", "public String appendToSelfURL(final String path) {\r\n \r\n String selfUrl = get(ESCIDOC_CORE_SELFURL);\r\n \r\n if (selfUrl != null) {\r\n if (selfUrl.endsWith(\"/\")) {\r\n selfUrl = selfUrl.substring(0, selfUrl.length() - 1);\r\n }\r\n selfUrl += path;\r\n }\r\n return selfUrl;\r\n }", "private List<BPPath> restoreState(FileProcess bkFile) {\n\t\tEnvironment env = new Environment();\n\t\tAbsoluteAddress location = getContinuosPoint(bkFile);\n\t\tgetEnvironment(env, bkFile);\t\t\n\t\tInstruction inst = Program.getProgram().getInstruction(location, env);\n\t\tList<BPPath> pathList = new ArrayList<BPPath>();\n\t\t// BPVertex startNode = null;\n\t\t// BPState curState = null;\n\t\t// BPPath path = null;\n\t\t// startNode = new BPVertex(location, inst);\n\t\t// startNode.setType(0);\n\t\t// cfg.insertVertex(startNode);\n\t\tBPState curState = new BPState(env, location, inst);\n\t\tBPPath path = new BPPath(curState, new PathList(), new Formulas());\n\t\tpath.setCurrentState(curState);\n\n\t\tBPCFG cfg = Program.getProgram().getBPCFG();\n\t\tBPVertex startNode = null;\n\t\tstartNode = new BPVertex(location, inst);\n\t\tstartNode.setType(0);\n\t\tcfg.removeVertex(0);\n\t\tcfg.insertVertex(startNode);\n\t\tpathList.add(path);\n\n\t\treturn pathList;\n\t}", "final public void updatePath(EventPacket<?> in) {\n if (!pathsEnabled) {\n return;\n }\n path.add(new PathPoint(location.x, location.y, in.getLastTimestamp(), numEvents - previousNumEvents));\n previousNumEvents = numEvents;\n if (path.size() > getPathLength()) {\n path.remove(path.get(0));\n }\n updateVelocity();\n }", "private void computePath(){\n LinkedStack<T> reversePath = new LinkedStack<T>();\n // adding end vertex to reversePath\n T current = end; // first node is the end one\n while (!current.equals(start)){\n reversePath.push(current); // adding current to path\n current = closestPredecessor[vertexIndex(current)]; // changing to closest predecessor to current\n }\n reversePath.push(current); // adding the start vertex\n \n while (!reversePath.isEmpty()){\n path.enqueue(reversePath.pop());\n }\n }", "public void finalizePath(){\n\t\tif(getCompletePath()||temp.isEmpty())\n\t\t\treturn;//path has already been finalized or there is no path defined\n\t\telse{\n\t\t\tint LastPos=temp.peekLast().getPos();\n\t\t\tint d = currentPath.getDirection(LastPos);\n\t\t\tPathType type = Map.createPathTileOfType(d,caseEdge);\n\t\t\tPath p = PathFactory.makePath(type,currentPos);\n\t\t\t\n\t\t\tif(p.getEntry()!= LastPos)\n\t\t\t\tp.rotate();\n\t\t\tp.setEnd();\n\t\t\tsetExitPoint(p);\n\t\t\tp.storePathTile();\n\t\t\t\n\t\t\tsetCompletePath(true);\n\t\t\tsetRemainingToScenery();\n\t\t}\n\t\t\n\t\t\n\t}", "public String getPath()\r\n/* 26: */ {\r\n/* 27:57 */ return this.path;\r\n/* 28: */ }", "public void setAppendedPath(String path) {\n appendedPath = path;\n }", "@Override\n\tprotected void updateWanderPath() {\n\t}", "public com.google.protobuf.ByteString\n getCurrentPathBytes() {\n java.lang.Object ref = currentPath_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n currentPath_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\r\n\tpublic String toString() {\r\n\t\treturn \"State: \" + state + \" Action: \" + action + \" Path Cost: \" + pathCost + \"Parent:\\n\" + parent;\r\n\t}", "public void resetPath();", "public void back() {\n\n\tGrid<Actor> gr = getGrid();\n\tif (gr == null)\n\t return;\n\n\tif (!crossLocation.isEmpty()) {\n\t\t\n\t crossLocation.pop();\n\n\t //back\n\t ArrayList<Location> lastNode = crossLocation.peek();\n\t next = lastNode.get(0);\n\t}\n\n\tLocation loc = getLocation();\n\t\n\tif (gr.isValid(next)) {\n\n\t setDirection(loc.getDirectionToward(next));\n\t moveTo(next);\n\n\t} else {\n\t removeSelfFromGrid();\n\t}\n\t\n\tint counter = dirCounter.get(getDirection());\n\tdirCounter.put(getDirection(), --counter);\n\n\tFlower flower = new Flower(getColor());\n\tflower.putSelfInGrid(gr, loc);\n\t\n\tlast = loc;\n }", "public void storeState() {\n if (best == null || best.getCost() > path.getCost()) {\n best = new IterativeState(path);\n }\n }", "public Builder setCurrentPath(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n currentPath_ = value;\n onChanged();\n return this;\n }", "public void changePath(String newPath){\n this.path=newPath;\n }", "public com.google.protobuf.ByteString\n getCurrentPathBytes() {\n java.lang.Object ref = currentPath_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n currentPath_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "protected Path constructPath(DFNode node) {\n if (node == null) {\n return null;\n }\n\n Path result = new Path();\n result.cost = node.getCost();\n while (node.parent != null) {\n result.add(0, new ActionStatePair(node.action, node.state));\t//add state to the beginning of list\n node = node.parent;\n }\n result.head = node.state;\t//now node is the head of the path\n\n return result;\n }", "private void navigateToPreviousSearchState() {\n Logger.logMessage(TAG, \"Current adapter in nav back is\" + currentAdapter);\n switch (currentAdapter) {\n case \"R\":\n navToPreviousRegions();\n break;\n case \"S\":\n mRecyclerView.setAdapter(regionsAdapter);\n if (currentDisplayingParentId == 0) {\n displayingNowTextView.setText(\"Regions\");\n searchBack.setVisibility(View.GONE);\n } else {\n navToPreviousRegions();\n }\n currentAdapter = \"R\";\n break;\n }\n }", "private void addState(Pointer pointer, AssemblyState state) {\r\n\t\t// recurse and make sure that all parents exist already\r\n\t\tif (pointer.length() != 0) {\r\n\t\t\tPointer parent = new Pointer(pointer, 1);\r\n\t\t\tif (! applicationElements.containsKey(parent)) {\r\n\t\t\t\taddState(parent, null);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// now comes the actual implementation\r\n\t\tDeviceFigure device = null;\r\n\t\tif (state != null) {\r\n\t\t\tdevice = (DeviceFigure)applicationElements.get(state.getSystemID());\r\n\t\t}\r\n\t\tStateFigure figure = null;\r\n\t\tif (pointer.length() == 0) {\r\n\t\t\tfigure = new StateFigure();\r\n\t\t} else {\r\n\t\t\tfigure = new StateFigure(pointer.getName(pointer.length() -1), \r\n\t\t\t\tpointer.isInstance(pointer.length() - 1));\r\n\t\t}\r\n\t\tfigure.setAvailable(state != null);\r\n\t\tapplicationElements.put(pointer, figure);\r\n\t\tif (device != null) {\r\n\t\t\tapplicationGraph.insertNode(figure, device);\t\r\n\t\t\tPolylineConnection edge = new PolylineConnection();\r\n\t\t\tedge.setSourceAnchor(new ChopboxAnchor(device));\r\n\t\t\tedge.setTargetAnchor(new ChopboxAnchor(figure));\t\r\n\t\t\tedge.setLineStyle(Graphics.LINE_DOT);\r\n\t\t\tedge.setForegroundColor(ColorConstants.lightBlue);\r\n\t\t\tapplicationGraph.add(edge);\r\n\t\t} else {\r\n\t\t\tapplicationGraph.addNode(figure);\r\n\t\t}\r\n\t\tif (pointer.length() != 0) {\r\n\t\t\t// recurse in order to create all parent if that has not\r\n\t\t\t// been done so far\r\n\t\t\tPointer parent = new Pointer(pointer, 1);\r\n\t\t\tFigure parentFigure = (Figure)applicationElements.get(parent);\r\n\t\t\tPolylineConnection edge = new PolylineConnection();\r\n\t\t\tedge.setSourceAnchor(new ChopboxAnchor(parentFigure));\r\n\t\t\tedge.setTargetAnchor(new ChopboxAnchor(figure));\t\r\n\t\t\tapplicationGraph.addEdge(edge);\r\n\t\t}\r\n\t}", "org.openxmlformats.schemas.drawingml.x2006.main.CTPath2D addNewPath();", "public void\nsetPath(SoPath path)\n{\n // ref the input path\n if (path != null)\n path.ref();\n\n // nuke the old path\n if (pathOfInterest != null) {\n pathOfInterest.unref();\n pathOfInterest = null;\n }\n // and copy the new path\n if (path != null) {\n pathOfInterest = path.copy();\n pathOfInterest.ref();\n }\n\n // unref the input path\n if (path != null)\n path.unref();\n\n}", "public void setPath(Path path)\n\t{\n\t\tpathList.clear();\n\t\tpathList.add(path);\n\t}", "private void addPath(final Path p) {\n\t\taddIdIfContainsSpecialPrefix();\n\t\t// TODO: Should we be doing this check? What if the evaluator expects there to be a\n\t\t// Style object?\n\t\tif (this.mProperties.svgStyle != null) {\n\t\t\taddStyle();\n\t\t}\n\n\t\t// The transform MUST be the item that goes immediately before the path in the instruction\n\t\t// code sequence, as the evaluator expects this. So the order is style, transform, path.\n\n\t\t// TODO: Previously I only added a Matrix for a Path if that Path has a transform. However,\n\t\t// this means that any transform belonging specifically to a previous path would still\n\t\t// be applied. So at the moment I have to add a Matrix for every Path, which might\n\t\t// be wasteful as most Paths might have an identity Matrix (no transform). One\n\t\t// way of optimising this could be to add an identity tranform ONLY if the previous\n\t\t// path had a non-identity transform.\n\t\t// (I think what I meant by this is when you have two path elements in parallel, not nested.)\n\t\t// (Or maintain a matrix stack in the evaluator.)\n\t\t// Note: The parser uses a Matrix stack. The evaluator uses a Matrix list.\n\n\t\t// if(this.mProperties.transformData!=null){\n\t\taddTransform();\n\t\t// }\n\n\t\tthis.pathList.add(p);\n\t\taddInstruction(INST_PATH);\n\t}", "void addPathToStart() {\n for (int i=0; i<pathFromStart.size(); i++) {\n newFutureTargets.push(composeWebviewBackMessage());\n }\n }", "public java.lang.String getCurrentPath() {\n java.lang.Object ref = currentPath_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n currentPath_ = s;\n return s;\n }\n }", "private void backtrack(int index, StringBuilder path) {\n if (path.length() == phoneDigits.length()) {\n combinations.add(path.toString());\n return; // Backtrack\n }\n\n // Get the letters that the current digit maps to, and loop through them\n String possibleLetters = letters.get(phoneDigits.charAt(index));\n\n for (char letter : possibleLetters.toCharArray()) {\n // Add the letter to our current path\n path.append(letter);\n // Move on to the next digit\n backtrack(index + 1, path);\n // Backtrack by removing the letter before moving onto the next\n path.deleteCharAt(path.length() - 1);\n }\n }", "public static void getOnePathTo(ARGState pLastElement, Set<Integer> utilFlag) {\n Set<Integer> seenElements = new HashSet<Integer>();\n\n // each element of the path consists of the abstract state and the outgoing\n // edge to its successor\n\n ARGState currentARGState = pLastElement;\n // add the error node and its -first- outgoing edge\n // that edge is not important so we pick the first even\n // if there are more outgoing edges\n\n CFANode loc = extractLocation(currentARGState);\n CFAEdge lastEdge = null;\n if (loc.getNumLeavingEdges() > 0) {\n lastEdge = loc.getLeavingEdge(0);\n }\n /*\n\n */\n //path.addFirst(Pair.of(currentARGState, lastEdge));\n seenElements.add(currentARGState.getStateId());\n utilFlag.addAll(currentARGState.getFlag());\n while (!currentARGState.getParents().isEmpty()) {\n Iterator<ARGState> parents = currentARGState.getParents().iterator();\n\n ARGState parentElement = parents.next();\n //System.out.println(currentARGState.getStateId()+\":\"+parentElement);\n while (!seenElements.add(parentElement.getStateId()) && parents.hasNext()) {\n // while seenElements already contained parentElement, try next parent\n parentElement = parents.next();\n // System.out.println(currentARGState.getStateId()+\":\"+parentElement);\n }\n\n CFAEdge edge = parentElement.getEdgeToChild(currentARGState);\n //path.addFirst(Pair.of(parentElement, edge));\n utilFlag.addAll(parentElement.getFlag());\n currentARGState = parentElement;\n }\n // System.out.println(\"跳出getOnePathTo\");\n }", "private void storeViewState()\n\t{\n\t\tCommand lastCmd = project.getLastCommand();\n\t\tif (lastCmd != null)\n\t\t{\n\t\t\tlastCmd.setOptionalState(view.toJSONString(lastCmd.getProjectState()));\n\t\t}\n\t}", "private static void bfs(State curr) {\n curr.buildStack(curr.getSuccessors(curr));\r\n \r\n if(curr.isGoalState()) \r\n System.out.println(curr.getOrderedPair()+\" Goal\");//initial is goal state\r\n else\r\n System.out.println(curr.getOrderedPair());//initial\r\n \r\n curr.close.add(curr);\r\n while(!curr.open.isEmpty()&&!curr.isGoalState()) {\r\n curr.buildStack(curr.getSuccessors(curr));\r\n curr.printHelp(curr, 3);\r\n curr = curr.open.get(0);\r\n curr.close.add(curr.open.remove(0));\r\n }\r\n \r\n if(curr.isGoalState()) {\r\n System.out.println(curr.getOrderedPair() + \" Goal\");\r\n curr.printPath(curr);\r\n }\r\n }", "public Builder clearCurrentPath() {\n \n currentPath_ = getDefaultInstance().getCurrentPath();\n onChanged();\n return this;\n }", "void setChosenPath(Path path) throws Exception {\r\n\t\t// Changing direction, assume we need to clear current set of choices\r\n\t\tcurrentChoices.clear();\r\n\r\n\t\tsetCurrentPath(path);\r\n\r\n\t\tcurrentTurnIndex++;\r\n\t}", "public List<MapPoint> buildPath(MapPoint point) { // Palauttaa polun alusta loppuun listana.\n List<MapPoint> finalPath = new ArrayList<>();\n MapPoint tempPoint = point;\n while (true) {\n finalPath.add(0, tempPoint);\n \n if (!tempPoint.hasPrevious()) {\n break;\n }\n tempPoint = tempPoint.getPrevious();\n }\n return finalPath; \n }", "public synchronized void back ()\n\t// one move up\n\t{\n\t\tState = 1;\n\t\tgetinformation();\n\t\tgoback();\n\t\tshowinformation();\n\t\tcopy();\n\t}", "private void initErrorPath()\n\t{\n\t\tfinal Path errorPath = Paths.get(\"io/errors\");\n\t\tthis.errorState.path().set(errorPath);\n\t\tthis.log.info(\"Set ErrorPath in Model.\");\n\t}", "public java.lang.String getCurrentPath() {\n java.lang.Object ref = currentPath_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n currentPath_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n\tpublic void setLastState(STATE state) {\n\n\t}", "private Stack<MapLocation> returnPath(MapLocation goal, MapLocation start) {\n\t\tStack<MapLocation> path = new Stack<MapLocation>();\n\n\t\tMapLocation iter = goal;\n\t\twhile (iter.cameFrom != null) {\n\t\t\tpath.add(iter.cameFrom);\n\t\t\titer = iter.cameFrom;\n\t\t}\n\t\t// to remove start\n\n\t\tif (path.isEmpty()) {\n\t\t\treturn path;\n\t\t}\n\n\t\tpath.pop();\n\n\t\treturn path;\n\t}", "@SuppressWarnings(\"rawtypes\")\n protected LocationPath checkForSingleKeyCurrent(LocationPath locationPath, DynaBean dynaBean) {\n LocationPath newPath = locationPath;\n Step[] oldSteps = locationPath.getSteps();\n DynaBean contextBean = dynaBean;\n Step[] newSteps = new Step[oldSteps.length];\n SchemaPath currentPath = null;\n int index = 0;\n if (locationPath.toString().contains(DataStoreValidationUtil.CURRENT_SINGLE_KEY) || locationPath.toString().contains(DataStoreValidationUtil.CURRENT_PARENT_SINGLE_KEY)) {\n if (locationPath.isAbsolute()) {\n ModelNode rootNode = getRootNodeFor(locationPath);\n contextBean = (DynaBean) rootNode.getValue();\n newSteps[0] = oldSteps[0];\n index = 1;\n }\n for (int i = index; i < oldSteps.length; i++) {\n Object value = null;\n if (contextBean != null && DataStoreValidationUtil.isReadable(contextBean, DataStoreValidationUtil.getLocalName(oldSteps[i]))) {\n value = contextBean.get(DataStoreValidationUtil.getLocalName(oldSteps[i]));\n } else if (contextBean != null && oldSteps[i].getAxis() == Compiler.AXIS_PARENT) {\n value = contextBean.get(ModelNodeWithAttributes.PARENT);\n }\n\n if (value instanceof DynaBean) {\n contextBean = (DynaBean) value;\n } else if (value instanceof Collection) {\n Object object = ((Collection)value).iterator().next();\n if (object instanceof DynaBean) {\n contextBean = (DynaBean) object;\n } else {\n // last leaf/leaf list. no point going further\n object = null;\n }\n } else if (value != null && oldSteps.length - 1 == i) {\n // we are at the last step\n contextBean = null;\n if (newSteps[0] != null) {\n // most likely the last leaf/leaf-list in the xPath\n newSteps[i] = oldSteps[i];\n }\n break;\n } else if (value != null && currentPath == null) {\n // well we chose a wrong list node, which does not have further children down.\n // but we can still traverse the schema.\n \tModelNode modelNode = (ModelNode) contextBean.get(ModelNodeWithAttributes.MODEL_NODE);\n\t\t\t SchemaRegistry registry = SchemaRegistryUtil.getSchemaRegistry(modelNode, m_schemaRegistry);\n SchemaPath previousPath = modelNode.getModelNodeSchemaPath();\n String name = ModelNodeDynaBeanFactory.getModelNodeAttributeName(DataStoreValidationUtil.getLocalName(oldSteps[i]));\n currentPath = DataStoreValidationUtil.getChildPath(registry, previousPath, name);\n contextBean = null;\n } else if (currentPath != null) {\n String name = ModelNodeDynaBeanFactory.getModelNodeAttributeName(DataStoreValidationUtil.getLocalName(oldSteps[i]));\n currentPath = DataStoreValidationUtil.getChildPath(m_schemaRegistry, currentPath, name);\n } else if (value == null && currentPath == null && contextBean != null && DataStoreValidationUtil.isReadable(contextBean, ModelNodeWithAttributes.MODEL_NODE)) {\n \tModelNode modelNode = (ModelNode) contextBean.get(ModelNodeWithAttributes.MODEL_NODE);\n\t\t\t SchemaRegistry registry = SchemaRegistryUtil.getSchemaRegistry(modelNode, m_schemaRegistry);\n String stepName = ModelNodeDynaBeanFactory.getModelNodeAttributeName(DataStoreValidationUtil.getLocalName(oldSteps[i]));\n currentPath = DataStoreValidationUtil.getChildPath(registry, modelNode.getModelNodeSchemaPath(), stepName);\n contextBean = null;\n if (currentPath == null) {\n newSteps = null;\n break;\n }\n } else {\n logDebug(null, \" we had a wrong contextNode to start with for path - {} and bean {}\", locationPath, dynaBean);\n newSteps = null;\n break;\n }\n\n if (isSingleKeyCurrent(oldSteps[i])) {\n // Since [current()] is applicable only on List, the DynaBean will have a modelNode and it is\n // expected to have only one key\n DataSchemaNode schemaNode = null;\n if (contextBean != null) {\n ModelNode modelNode = (ModelNode) contextBean.get(ModelNodeWithAttributes.MODEL_NODE);\n SchemaPath schemaPath = modelNode.getModelNodeSchemaPath();\n schemaNode = (ListSchemaNode) modelNode.getSchemaRegistry().getDataSchemaNode(schemaPath);\n } else if (currentPath != null) {\n schemaNode = m_schemaRegistry.getDataSchemaNode(currentPath);\n } else {\n LOGGER.warn(\" neither contextBean/CurrentPath can be null for {} and bean -\", locationPath, dynaBean);\n newSteps = null;\n break;\n }\n\n if (schemaNode == null) {\n logDebug(\"we traversed a wrong path for {} and bean \", locationPath, dynaBean);\n newSteps = null;\n break;\n }\n \n QName keyName = null;\n if (schemaNode instanceof ListSchemaNode) {\n keyName = ((ListSchemaNode)schemaNode).getKeyDefinition().get(0);\n }\n\n // build key = current() as the new predicate\n Expression[] newExpression = new Expression[1];\n if (keyName != null) {\n String dynaBeanAlignedName = ModelNodeDynaBeanFactory.getDynaBeanAttributeName(keyName.getLocalName());\n StringBuilder newPredicate = new StringBuilder().append(dynaBeanAlignedName).append(\"=\")\n .append(oldSteps[i].getPredicates()[0].toString());\n newExpression[0] = JXPathUtils.getExpression(newPredicate.toString());\n }\n\n // build the new Step\n if (oldSteps[i].getNodeTest() instanceof NodeNameTest) {\n NodeNameTest node = (NodeNameTest) oldSteps[i].getNodeTest();\n Step newStep = new YangStep(node.getNodeName(), node.getNamespaceURI(), newExpression);\n newSteps[i] = newStep;\n }\n } else {\n newSteps[i] = oldSteps[i];\n }\n }\n }\n\n if (newSteps != null && newSteps[0] != null) {\n newPath = new LocationPath(locationPath.isAbsolute(), newSteps);\n }\n\n return newPath;\n }", "private boolean[][] reconstructPath(String[][] prev,int currentX,int currentY,int goalX, int goalY, Level level) {\n\t\tboolean[][] path = new boolean[level.getWidth()+2][level.getHeight()+2];\n\t\tfor (int x = 0; x < level.getHeight(); x++) {\n\t\t\tfor (int y = 0; y < level.getWidth(); y++) {\n\t\t\t\tpath[y][x] = false;\n\t\t\t}\n\t\t} String parentString = prev[goalX][goalY];\n\t\twhile (parentString != null) {\n\t\t\tScanner in = new Scanner(parentString);\n\t\t\tin.useDelimiter(\",\");\n\t\t\tint parentX = in.nextInt();\n\t\t\tint parentY = in.nextInt();\n\t\t\tparentString = prev[parentX][parentY];\n\t\t\tpath[parentX][parentY] = true;\n\t\t\tif (parentString != null) {\n\t\t\t\tin.close();\n\t\t\t}\n\t\t} return path;\n\t}", "public void withdrawPath(AS peer, int dest) {\n this.incUpdateQueue.add(new BGPUpdate(dest, peer));\n }", "public void undo(){\n if(!isFreeDraw) { //in waypoint mode delete the last point\n int size = mMapInterface.getPathFrame().size();\n if (size >= 1) {\n isPathReady=false;\n mMapInterface.getPathFrame().remove(size - 1);\n pointsCounter--;\n googleMap.clear();\n drawLine();\n }\n }\n else{ //in continu mode delete all path\n deletePath();\n drawFree();\n }\n }", "protected void reversePath() {\n\t\t\n\t\tif(_reverse) {\n\t\t\t\n\t\t\tif(_nextMove + 1 > movingPattern.size() - 1)\n\t\t\t\t_nextMove = 0;\n\t\t\telse\n\t\t\t\t_nextMove++;\n\t\t\t\n\t\t\t_reverse = false;\n\t\t}\n\t\telse {\n\t\t\t\n\t\t\tif(_nextMove - 1 < 0)\n\t\t\t\t_nextMove = movingPattern.size() - 1;\n\t\t\telse\n\t\t\t\t_nextMove--;\n\t\t\t\n\t\t\t_reverse = true;\n\t\t}\n\t}", "protected void popPath(String path) {\n if (path.equals(getCurrentBasePath())) {\n final LinkedList<String> pathStack = basePathStack_.get();\n pathStack.removeFirst();\n if (pathStack.isEmpty()) {\n basePathStack_.set(null);\n }\n }\n }", "protected Solution<T> backTrace(State<T> s){\r\n\t\tSolution<T> sol = new Solution<T>(); // Initiate Solution\r\n\t\tState<T> itr = s; // Initiate Iterator as the given state (needs to be the goal state)\r\n\t\tsol.addState(itr);\r\n\t\twhile(itr != null) {\r\n\t\t\titr = itr.getCameFrom();\r\n\t\t\tsol.addState(itr); // add to the solution where it came from\r\n\t\t}\r\n\t\treturn sol;\r\n\t}", "private static void dfs(State curr) {\n curr.buildStack(curr.getSuccessors(curr));\r\n \r\n if(curr.isGoalState()) \r\n System.out.println(curr.getOrderedPair()+\" Goal\");//initial is goal state\r\n else\r\n System.out.println(curr.getOrderedPair());//initial\r\n \r\n curr.close.add(curr);\r\n while(!curr.open.isEmpty()&&!curr.isGoalState()) {\r\n curr.buildStack(curr.getSuccessors(curr));\r\n curr.printHelp(curr, 4);\r\n curr = curr.open.get(curr.open.size()-1);\r\n curr.close.add(curr.open.remove(curr.open.size()-1));\r\n }\r\n \r\n if(curr.isGoalState()) {\r\n System.out.println(curr.getOrderedPair() + \" Goal\");\r\n curr.printPath(curr);\r\n }\r\n }", "private ArrayList<Action> recoverPath(SearchNode cur){\n\t\t\tArrayList<Action> moves = new ArrayList<Action>();\n\t\t\twhile (cur.cameFrom != null){\n\t\t\t\tmoves.add(0, cur.direction);\n\t\t\t\t\n\t\t\t\tBoxContainer curBox = getElement(cur.posX, cur.posY);\n\t\t\t\tif (curBox == BoxContainer.Door)\n\t\t\t\t\tmoves.add(0, Action.Use);\n\t\t\t\tif (curBox == BoxContainer.Key)\n\t\t\t\t\tmoves.add(1, Action.Pickup);\n\t\t\t\t\n\t\t\t\tcur = cur.cameFrom;\t\n\t\t\t}\n\t\t\t\n\t\t\treturn moves;\n\t\t}", "public void setPath(Square finish) {\n // TODO\n \tpath = \"Found Nemo!\\n\" + \"Path from start to finish: \";\n \tString extnPAth = \"\";\n \twhile(finish != null) {\n \tSquare realSquare = sea.getSea()[finish.getRow()][finish.getCol()];\n \t\trealSquare.setFinalPath();\n \t\t//Add to stack\n \t\tstack.push(finish);\n \t\tfinish = finish.getPrevious();\n \t}\n \t\n \t//get start and add start\n \twhile(!stack.empty()) {\n \t\tSquare c = stack.pop();\n \t\textnPAth = extnPAth + \"[\" + c.getRow() + \",\" + c.getCol() + \"] \"; \n \t}\n\t\tpath = path + extnPAth;\n }", "public SoNode \ngetCurPathTail() \n{\n//#ifdef DEBUG\n if (currentpath.getTail() != (SoFullPath.cast(getCurPath())).getTail()){\n SoDebugError.post(\"SoAction::getCurPathTail\\n\", \n \"Inconsistent path tail. Did you change the scene graph\\n\"+\n \"During traversal?\\n\");\n }\n//#endif /*DEBUG*/\n return(currentpath.getTail());\n}", "@Override\n protected String handleGetExceptionPath()\n {\n\n final StateVertexFacade target = this.getTarget();\n\n if (target instanceof GuiForward)\n {\n\n return (target).getFullyQualifiedNamePath() + \".gui\";\n\n } else if (target instanceof GuiFinalState)\n {\n\n return ((GuiFinalState) target).getFullyQualifiedNamePath();\n\n } else\n {\n\n return \"\";\n\n }\n\n }", "public String getCurrentPath() {\n\t\treturn \"\";\n\t}", "public void mutateState(State state) {\r\n this.root = state.getRoot();\r\n this.setExit(state.getExit());\r\n this.directoryStack = state.directoryStack;\r\n this.workingDirectory = state.getWorkingDirectory();\r\n this.commandHistory = state.commandHistory;\r\n }", "protected String getPath ()\n\t{\n\t\treturn path;\n\t}", "private void setFramePath()\n\t{\n\t\tcurrFramePath = location + \"/\" + currentSet + \"/\" + \"frame\"\n\t\t\t\t+ Integer.toString(currFrame) + \".png\";\n\t}", "void updatePathListings() {\n\t\tpathSelector.updatePathListings();\n\t}", "public MazeArray<Cell> getNewPaths() {\n return newPaths;\n }", "protected LinkedList<IVertex<String>> getPath(IVertex<String> target) {\n\n LinkedList<IVertex<String>> path = new LinkedList<IVertex<String>>();\n\n IVertex<String> step = target;\n\n // check if a path exists\n if (predecessors.get(step) == null) {\n return null;\n }\n path.add(step);\n while (predecessors.get(step) != null) {\n step = predecessors.get(step);\n path.add(step);\n }\n // Put it into the correct order\n Collections.reverse(path);\n return path;\n }", "public Builder addPath(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensurePathIsMutable();\n path_.add(value);\n onChanged();\n return this;\n }", "public SoPath \n\t getCurPath()\n\t {\n\t \t return this.currentpath;\n//\t if(tempPath == null){\n//\t tempPath = new SoTempPath(32);\n//\t tempPath.ref();\n//\t }\n//\t currentpath.makeTempPath(tempPath);\n//\t return tempPath;\n\t }", "private String solutionPath(State goal)\n\t{\n\t\t// TODO \n\t\t\n\t\treturn null; \n\t}", "public Builder setCurrentPathBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n currentPath_ = value;\n onChanged();\n return this;\n }", "public void addTransition(String state1, String state2, String input1, String input2, String dir){\n Tuple t = new Tuple(state1, input1);\n Node<String> child = new Node<String>(state2, input2);\n child.setDir(dir);\n if(tree.containsKey(t)){\n Node<String> parent = tree.get(t);\n child.setParent(parent);\n parent.addChild(child);\n tree.put(t, parent);\n }\n else{\n Node<String> n = new Node<String>(state1, input1);\n child.setParent(n);\n n.addChild(child);\n tree.put(t, n);\n }\n\n }", "public void addPathPointToHistory(double[] pathPoint){\r\n //Check for null condition\r\n if(pathPoint == null)\r\n return;\r\n \r\n //Makes sure that there are no duplicate points\r\n if(pathPointHistory.size() != 0){\r\n double xLast = pathPointHistory.get(pathPointHistory.size() - 1)[0];\r\n double yLast = pathPointHistory.get(pathPointHistory.size() - 1)[1];\r\n if(xLast == pathPoint[0] && yLast == pathPoint[1])\r\n return;\r\n }\r\n \r\n //Adds to the path array\r\n if(pathPointHistory.size() == PATH_SIZE){\r\n ArrayList<double[]> temp = new ArrayList();\r\n for(int i = 1; i < pathPointHistory.size(); i++){\r\n temp.add(pathPointHistory.get(i));\r\n }\r\n temp.add(pathPoint);\r\n pathPointHistory = temp;\r\n }else{\r\n pathPointHistory.add(pathPoint);\r\n }\r\n }", "private void appendBreadcrumb(Context context, ExternalFileInfo newFolder) {\n int currentCrumb = -1;\n if (mBreadcrumbBarLayout.getChildCount() > 0) {\n // Find the current folder's crumb in the bar\n if (mCurrentFolder != null && mCurrentRoot != null) {\n currentCrumb = findBreadcrumb(mCurrentFolder);\n } else {\n // In the root folder, so current crumb is the first child\n currentCrumb = 0;\n }\n // Check if the next crumb (right) corresponds to the new folder\n if (currentCrumb >= 0) {\n if (currentCrumb + 1 < mBreadcrumbBarLayout.getChildCount()) {\n boolean clearToRight = true;\n LinearLayout crumb = (LinearLayout) mBreadcrumbBarLayout.getChildAt(currentCrumb + 1);\n Object tag = crumb.getTag();\n if (tag != null && tag instanceof ExternalFileInfo) {\n ExternalFileInfo file = (ExternalFileInfo) tag;\n if (file.getUri().equals(newFolder.getUri())) {\n // New folder is already in breadcrumb bar\n clearToRight = false;\n }\n }\n if (clearToRight) {\n // let's rebuild bread crumb bar from scratch, since it can be a\n // non-immediate child\n rebuildBreadcrumbBar(getContext(), newFolder);\n }\n } else {\n // let's rebuild bread crumb bar from scratch, since it can be a\n // non-immediate child\n rebuildBreadcrumbBar(getContext(), newFolder);\n }\n setCurrentBreadcrumb(currentCrumb + 1);\n }\n }\n if (currentCrumb < 0) {\n // Current crumb could not be found or bar is not built, try (re)building the bar\n rebuildBreadcrumbBar(context, null);\n // Create a new crumb and add to end of bar\n createBreadcrumb(context, newFolder, -1);\n\n setCurrentBreadcrumb(-1);\n }\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}", "@Override\r\n\tpublic void undo() \r\n\t\t{\n\t\tif (parent.addChild(child)) \r\n\t\t\t{\r\n\t\t\taddArcs(sourceArcs);\r\n\t\t\taddArcs(targetArcs);\r\n\t\t\t}\r\n\t\t}", "private void gotoPath() {\n\t\tfinal String hdfs = getFullPath(txtRootPath.getText().trim());\n\t\tif (StringUtils.isEmpty(hdfs)) {\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tFileStatus fs = getFileStatusWithProgress(hdfs);\n\t\t\tgotoPath(fs);\n\t\t} catch (Exception e) {\n\t\t\tMessageDialog.openError(getShell(), Messages.msgError, e.getMessage());\n\t\t}\n\t}", "default void popNestedPath() throws IllegalStateException {\n\t\tthrow new IllegalStateException(\"Cannot pop nested path: no nested path on stack\");\n\t}" ]
[ "0.65352315", "0.65303135", "0.6313112", "0.6186019", "0.6027743", "0.60146284", "0.58225924", "0.5805301", "0.5803441", "0.5793448", "0.5786757", "0.57069826", "0.56825536", "0.56339425", "0.561265", "0.5577219", "0.5535309", "0.55161285", "0.5508373", "0.5486451", "0.5483288", "0.548125", "0.54779524", "0.5465375", "0.54643553", "0.5447616", "0.5444343", "0.5418869", "0.5395852", "0.5354804", "0.53205115", "0.5319999", "0.53155845", "0.5308845", "0.53001285", "0.52843", "0.52713054", "0.5256417", "0.5256055", "0.52308035", "0.5229131", "0.5227962", "0.52082974", "0.5194141", "0.5193078", "0.51856744", "0.51777434", "0.5176017", "0.5172524", "0.51723117", "0.51691395", "0.51582825", "0.5156418", "0.51423", "0.5134787", "0.5133245", "0.51290405", "0.5128834", "0.5127744", "0.51128227", "0.51030785", "0.5089239", "0.5085843", "0.5085061", "0.50598013", "0.50565237", "0.5055199", "0.5045368", "0.50410694", "0.50348145", "0.5029749", "0.5028752", "0.5028329", "0.5027475", "0.5025646", "0.5012019", "0.5007233", "0.5005682", "0.500332", "0.5002073", "0.49970418", "0.49930283", "0.49897322", "0.49803066", "0.49793276", "0.49782747", "0.49778354", "0.49684626", "0.49626318", "0.4960092", "0.49564394", "0.4951786", "0.49450448", "0.4943839", "0.49315354", "0.49272707", "0.491909", "0.49153548", "0.4910652", "0.49105024", "0.49053" ]
0.0
-1
Check if two states is equal or not
@Override public boolean equals(Object other) { if (other == null) return false; else if (!(other instanceof MazeState)) return false; return this.getPawnOne().getPositionNr() == ((MazeState) other).getPawnOne().getPositionNr() && this.getPawnTwo().getPositionNr() == ((MazeState) other).getPawnTwo().getPositionNr(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testEquals() throws Exception {\n State state1 = new State();\n state1.setCanJump(1);\n state1.setDirection(1);\n state1.setGotHit(1);\n state1.setHeight(1);\n state1.setMarioMode(1);\n state1.setOnGround(1);\n state1.setEnemiesSmall(new boolean[3]);\n state1.setObstacles(new boolean[4]);\n state1.setDistance(1);\n state1.setStuck(1);\n\n State state2 = new State();\n state2.setCanJump(1);\n state2.setDirection(1);\n state2.setGotHit(1);\n state2.setHeight(1);\n state2.setMarioMode(1);\n state2.setOnGround(1);\n state2.setEnemiesSmall(new boolean[3]);\n state2.setObstacles(new boolean[4]);\n state2.setStuck(1);\n\n State state3 = new State();\n state3.setCanJump(1);\n state3.setDirection(1);\n state3.setGotHit(1);\n state3.setHeight(1);\n state3.setMarioMode(2);\n state3.setOnGround(1);\n state3.setEnemiesSmall(new boolean[3]);\n state3.setObstacles(new boolean[4]);\n assertEquals(state1,state2);\n assertTrue(state1.equals(state2));\n assertFalse(state1.equals(state3));\n Set<State> qTable = new HashSet<State>();\n qTable.add(state1);\n qTable.add(state2);\n assertEquals(1,qTable.size());\n qTable.add(state3);\n assertEquals(2,qTable.size());\n\n }", "public boolean sameState(State s){\n\t\tint i = s.getHound1();\n\t\tint j = s.getHound2();\n\t\tint k = s.getHound3();\n\t\tint hare = s.getHare();\n\t\tif(hare==r){\n\t\t\tif((i==h1||i==h2||i==h3)&&(j==h1||j==h2||j==h3)&&(k==h1||k==h2||k==h3)){\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public boolean equals(Object obj) {\n if(obj == null || obj.getClass() != getClass()) return false;\n\n State state = (State)obj;\n\n // if both side equals then we say this state is equivalent to the other state\n if(state.getSideInfo(\"left\") == getSideInfo(\"left\"))\n if(state.getSideInfo(\"right\") == getSideInfo(\"right\"))\n return true;\n\n return false;\n }", "public boolean equals(TransitionRecord test){\r\n return (fromstate == test.getFromState() && \r\n tostate == test.getToState());\r\n }", "boolean hasSameAs();", "@Override\n public boolean equals(Object obj){\n \tState s=(State) obj;\n if (this.state==s.getState())\n \treturn true;\n else\n \treturn false;\n \t\t\n }", "public boolean isStateEquals(State state) {\n\t\treturn environmentStatus.equals(state.name());\n\t}", "private static void assertStatesEquals(State[] statesFsaExpected, State[] statesFsaActual) {\n\t\t\n\t\t\n\t\tArrayList<String> statesNamesExpected = new ArrayList<String>();\n\t\tArrayList<String> statesNamesActual = new ArrayList<String>();\n\t\t\n\t\t\n\t\t//populate\n\t\tfor ( State s : statesFsaExpected ){\n\t\t\tstatesNamesExpected.add(s.getName());\n\t\t}\n\t\t\n\t\tfor ( State s : statesFsaActual ) {\n\t\t\tstatesNamesActual.add(s.getName());\n\t\t}\n\t\t\n\t\t\n\t\t//check\n\t\tfor ( String expected : statesNamesExpected ){\n\t\t\tif ( ! statesNamesActual.contains(expected) ){\n\t\t\t\tfail(\"State \"+expected+\" not found\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor ( String actual : statesNamesActual ){\n\t\t\tif ( ! statesNamesExpected.contains(actual) ){\n\t\t\t\tfail(\"State \"+actual+\" not expected\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "@Override\r\n public boolean equals(Object obj) {\r\n // check for null\r\n if (obj == null) {\r\n System.out.println(\"State.equals() null fail\");\r\n return false;\r\n }\r\n // check that these objects are both States\r\n if (getClass() != obj.getClass()) {\r\n System.out.println(\"State.equals() class fail\");\r\n return false;\r\n }\r\n // cast to State\r\n State other = (State) obj;\r\n // check if these have the same root stored\r\n if (!this.root.equals(other.root)) {\r\n System.out.println(\"State.equals() root fail\");\r\n return false;\r\n }\r\n // check if these have the same exit state\r\n if (this.getExit() != (other.getExit())) {\r\n System.out.println(\"State.equals() exit fail\");\r\n return false;\r\n }\r\n // check if these have the same directory stack\r\n if (!this.directoryStack.equals(other.directoryStack)) {\r\n System.out.println(\"State.equals() dirStack fail\");\r\n return false;\r\n }\r\n // check if these have the same working directory\r\n return this.getWorkingDirectory().equals(other.getWorkingDirectory());\r\n }", "private static boolean Equal(State o, State goal) {\n\t\tif (o==null || goal==null) return false;\n\t\tfor (int i=0;i<3;i++)\n\t\t\tfor (int j=0;j<3;j++)\n\t\t\t\tif (o.d[i][j]!=goal.d[i][j]) return false;\n\t\treturn true;\n\t}", "@Override\n public boolean equals(Object other) {\n return Arrays.equals(state, ((CannibalNode) other).state);\n }", "private static boolean identityEqual(final I_GameState state1, final I_GameState state2) {\n if (state1 == state2)\n return true;\n\n return Stream.of(new SimpleEntry<>(state1, state2))\n .flatMap( // transform the elements by making a new stream with the transformation to be used\n pair -> Arrays.stream(E_PileID.values()) // stream the pileIDs\n // make new pair of the elements of that pile from each state\n .map(pileID -> new SimpleEntry<>(\n pair.getKey().get(pileID),\n pair.getValue().get(pileID)\n )\n )\n )\n .allMatch(pair -> pair.getKey() == pair.getValue());\n }", "private final boolean AreListStatesEqual(List<State> list1, List<State> list2) {\r\n if ((list1.size() != list2.size())) {\r\n return false;\r\n }\r\n \r\n for (State state : list1) {\r\n if (!list2.contains(state)) {\r\n return false;\r\n }\r\n \r\n }\r\n \r\n return true;\r\n }", "private static boolean contentEqual(final I_GameState state1, final I_GameState state2) {\n //if a state is null there surely must be a mistake somewhere\n if (state1 == null || state2 == null) throw new NullPointerException(\"A state cannot be null when comparing\");\n //if ( !sizeEqual(state1, state2) ) return false;\n\n return Stream.of(new SimpleImmutableEntry<>(state1, state2))\n .flatMap( //map the pair of states to many pairs of piles\n statePair -> Arrays.stream(E_PileID.values())\n .map(pileID -> new SimpleEntry<>(\n statePair.getKey().get(pileID),\n statePair.getValue().get(pileID)\n )\n )\n )\n .map(I_GameHistory::replaceNulls)\n .flatMap( // map the pairs of piles to many pairs of Optional<I_card>s.\n listPair -> IntStream //make sure to always traverse the longer list\n .range(0, Math.max(listPair.getKey().size(), listPair.getValue().size()))\n .mapToObj(i -> new SimpleEntry<>(\n getIfExists(listPair.getKey(), i),\n getIfExists(listPair.getValue(), i))\n )\n )\n // map pairs to booleans by checking that the element in a pair are equal\n .map(cardPair -> Objects.equals(cardPair.getKey(), cardPair.getValue()))\n // reduce the many values to one bool by saying all must be true or the statement is false\n .reduce(true, (e1, e2) -> e1 && e2);\n }", "public boolean checkEquality(){\n boolean flag = true;\n for (int i = 0; i < boardRows ; i++) {\n for (int j = 0; j < boardColumns; j++) {\n if(this.currentBoardState[i][j] != this.goalBoardState[i][j]){\n flag = false;\n }\n }\n }\n return flag;\n }", "public boolean equals(Object s)\n {\n if(!(s instanceof State))\n return false;\n \n return toString().equals(s.toString());\n }", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (this == obj)\n\t\t\treturn true;\n\t\tif (obj == null)\n\t\t\treturn false;\n\t\tif (getClass() != obj.getClass())\n\t\t\treturn false;\n\t\tState other = (State) obj;\n\t\tif (state_rep == null) {\n\t\t\tif (other.state_rep != null)\n\t\t\t\treturn false;\n\t\t} else if (!state_rep.equals(other.state_rep))\n\t\t\treturn false;\n\t\treturn true;\n\t}", "public boolean equals(Object o) {\r\n\t\tif (!(o instanceof State)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tState other = (State) o;\r\n\t\treturn id.equals(other.id) && flow.equals(other.flow);\r\n\t}", "@Override\n\t\tpublic boolean equals(Object other) {\n\t\t\treturn Arrays.equals(state, ((MazeNode) other).state);\n\t\t}", "@Test\n @DisplayName(\"Test should detect equality between equal states.\")\n public void testShouldResultInEquality() {\n ObjectBag os1 = new ObjectBag(null, \"Hi\");\n ObjectBag os2 = new ObjectBag(null, \"Hi\");\n\n Assertions.assertThat(os1).isEqualTo(os2);\n }", "public boolean compareTo(SLR1_automat.State state);", "@Test\n @DisplayName(\"Test should detect inequality between unequal states.\")\n public void testShouldResultInInequality() {\n ObjectBag os1 = new ObjectBag(null, \"Hi\");\n ObjectBag os2 = new ObjectBag(null, \"Goodbye\");\n\n Assertions.assertThat(os1).isNotEqualTo(os2);\n }", "private boolean hasUniqueState()\n {\n return (getExternalArcState() == getMiddleArcState() && getExternalArcState() == getInternalArcState() && getExternalArcState() == getCircleState());\n }", "@Override\n public boolean equals(Object object) {\n DFAState otherState = (DFAState) object;\n return this.hashCode == otherState.hashCode();\n }", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tState State = (State) obj;\n\t\tSquare aux = null;\n\t\tboolean isequal = true;\n\t\tif (getTractor().getColumn()!=State.getTractor().getColumn() || getTractor().getRow()!=State.getTractor().getRow())\n\t\t\tisequal = false;\n\t\telse {\n\t\t\tfor (int i = 0;i<getRows() && isequal; i++) {\n\t\t\t\tfor (int j = 0;j < getColumns() && isequal; j++) {\n\t\t\t\t\taux = new Square (i,j);\n\t\t\t\t\tif (cells[i][j].getSand() != State.getSquare(aux).getSand()) \n\t\t\t\t\t\tisequal = false; \n\t\t\t\t}\n\t\t\t} \n\t\t} \n\t\treturn isequal;\n\t}", "private static boolean sizeEqual(final I_GameState state1, final I_GameState state2) {\n //if a state is null there surely must be a mistake somewhere\n if (state1 == null || state2 == null) throw new NullPointerException(\"A state cannot be null when comparing\");\n\n // make a stream with a data structure containing both states\n return Stream.of(new SimpleEntry<>(state1, state2))\n .flatMap( // transform the elements by making a new stream with the transformation to be used\n pair -> Arrays.stream(E_PileID.values()) // stream the pileIDs\n // make new pair of the elements of that pile from each state\n .map(pileID -> new SimpleEntry<>(\n pair.getKey().get(pileID),\n pair.getValue().get(pileID)\n )\n )\n )\n .map(I_GameHistory::replaceNulls)\n .allMatch(pair -> pair.getKey().size() == pair.getValue().size()); // check they have equal sizes\n }", "public boolean equals(AsNode other) {\n\t\treturn this.state.getHash() == other.state.getHash();\n\t}", "private boolean checkIfAlreadyIsState(ArrayList<ArrayList<Integer>> states, ArrayList<Integer> state){\n boolean res=true;\n Collections.sort(state);\n\n for (int i = 0 ; i < states.size();i++){\n ArrayList<Integer> currState = states.get(i);\n\n if(currState.size() != state.size())\n continue;\n else{\n Collections.sort(currState);\n\n if(state.equals(currState)){\n res = false;\n break;\n }\n }\n }\n\n return res;\n }", "private State assertState(State... states)\r\n\t{\r\n\t\tfor (State state : states)\r\n\t\t{\r\n\t\t\tif (this.state == state) return this.state;\r\n\t\t}\r\n\r\n\t\tthrow new IllegalStateException(this.state.toString());\r\n\t}", "public boolean isequal(Transition t){\n\t\tif( !this.sourcestate.isequal(t.sourcestate)){\n\t\t\treturn false;\n\t\t}\n\t\tif( !this.targetstate.isequal(t.targetstate)){\n\t\t\treturn false;\n\t\t}\n\t\tint len = this.triggers.size();\n\t\tif( len == t.getTriggers().size()){\n\t\t\tfor(int i = 0; i < len; i ++){\n\t\t\t\tString tempTriggers = this.triggers.get(i);\n\t\t\t\t\n\t\t\t\tboolean temp = false;//This means one condition has the same condition in the other transition.\n\t\t\t\tfor(int j = 0; j < len; j ++){\n\t\t\t\t\tif(tempTriggers.equals(t.getTriggers().get(j))){\n\t\t\t\t\t\ttemp = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(temp == false){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t\n\t\treturn true;\n\t}", "boolean equals(GameState b) {\n for (int i = 0; i < SIZE; i++) {\n for (int j = 0; j < SIZE; j++) {\n if (board[i][j] != b.board[i][j]) {\n return false;\n }\n }\n }\n return true;\n\n }", "@Test\n public void testHashCodeAndEquals() throws Exception {\n final String name = \"testName\";\n\n TestStateDescriptor<String> original = new TestStateDescriptor<>(name, String.class);\n TestStateDescriptor<String> same = new TestStateDescriptor<>(name, String.class);\n TestStateDescriptor<String> sameBySerializer =\n new TestStateDescriptor<>(name, StringSerializer.INSTANCE);\n\n // test that hashCode() works on state descriptors with initialized and uninitialized\n // serializers\n assertEquals(original.hashCode(), same.hashCode());\n assertEquals(original.hashCode(), sameBySerializer.hashCode());\n\n assertEquals(original, same);\n assertEquals(original, sameBySerializer);\n\n // equality with a clone\n TestStateDescriptor<String> clone = CommonTestUtils.createCopySerializable(original);\n assertEquals(original, clone);\n\n // equality with an initialized\n clone.initializeSerializerUnlessSet(new ExecutionConfig());\n assertEquals(original, clone);\n\n original.initializeSerializerUnlessSet(new ExecutionConfig());\n assertEquals(original, same);\n }", "public void testGetStateName() {\r\n test1 = state2;\r\n assertEquals(test1.getStateName(), \"Virginia\");\r\n }", "boolean hasIsEquivalent();", "@Override\n\tpublic boolean equals( Object other) {\n\n\t\tif( !( other instanceof BooleanStateValue)) {\n return false;\n }\n\n\t\tBooleanStateValue otherValue = (BooleanStateValue) other;\n\n\t\treturn _storage == otherValue._storage;\n\t}", "private final static boolean equivalent(Automaton automaton,\n\t\t\tBinaryMatrix equivs, Automaton.Bag b1, Automaton.Bag b2) {\n\t\tint b1_size = b1.size();\n\t\tint b2_size = b2.size();\n\n\t\tif (b1_size != b2_size) {\n\t\t\t// Observe that, unlike a set, the size of a bag will never be\n\t\t\t// changed by the identification of equivalent states. Therefore,\n\t\t\t// the size of both collection must be identical, otherwise they can\n\t\t\t// never be equivalent.\n\t\t\treturn false;\n\t\t}\n\n\t\tint[] b1_children = b1.children;\n\t\tint[] b2_children = b2.children;\n\t\t// maps vertices in b2 to those they are matched against in b1\n\t\tint[] matches = new int[b1_size];\n\t\tArrays.fill(matches, -1);\n\t\t// Used to ensure no vertex is explored more than once during\n\t\t// reconfiguration.\n\t\tboolean[] visited = new boolean[b1_size];\n\t\t\n\t\t// For every state in s1\n\t\tfor (int i = 0; i != b1_size; ++i) {\n\t\t\tint b1_child = b1_children[i];\n\t\t\tif(b1_child < 0) {\n\t\t\t\t// In this case, we have to do something different.\n\t\t\t\tif(!findNegativeMatch(i,b1_children,b2_children,equivs,matches)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tArrays.fill(visited,false);\n\t\t\t\tif(!findMatch(i,b1_children,b2_children,equivs,matches,visited)) {\n\t\t\t\t\t// If we can't find a match, then it's game over and we know for\n\t\t\t\t\t// sure these two states are not equivalent.\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "default boolean isRepeatState() {\n return isRepeatState(FULL_EQUAL);\n }", "@Override\n\t\tpublic boolean goalTest() {\n\t\t\tfor (int i = 0; i < k; i++) {\n\t\t\t\tif (state[i] != xGoals[i] || state[i + k] != yGoals[i]) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}", "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "boolean hasState();", "public void compareAddress()\n {\n Address a = new Address(\"Amapolas\",1500,\"Providencia\",\"Santiago\");\n Address b = new Address(\"amapolas\",1500, \"providencia\",\"santiago\");\n Address c = new Address(\"Hernando Aguirre\",1133,\"Providencia\", \"Santiago\");\n \n boolean d = a.equals(b); \n }", "private void assertSameTask(ReadOnlyTask task1, ReadOnlyTask task2) {\n if (task1 == null && task2 == null) {\n // both null\n return;\n }\n\n if (task1 == null) {\n fail(\"task1 is null but task2 is NOT null\");\n }\n\n if (task2 == null) {\n fail(\"task1 is NOT null but task2 is null\");\n }\n\n assertTrue(\"Expected: <\" + task1 + \"> but was <\" + task2 + \">\", task1.isSameStateAs(task2));\n }", "@Override\n public boolean equals(Object otherMaze) {\n if (otherMaze instanceof AbstractNavigate) {\n return Arrays.equals(((AbstractNavigate) otherMaze).getState(), this.getState());\n }\n\n return false;\n }", "public AlgoAreEqual(Construction cons, GeoElement inputElement1,\n\t\t\tGeoElement inputElement2) {\n\t\tsuper(cons);\n\t\tthis.inputElement1 = inputElement1;\n\t\tthis.inputElement2 = inputElement2;\n\n\t\toutputBoolean = new GeoBoolean(cons);\n\n\t\tsetInputOutput();\n\t\tcompute();\n\n\t}", "private static boolean equalityTest3(String a, String b)\n {\n return System.identityHashCode(a) == System.identityHashCode(b);\n }", "private Map<State, State> equivalentStates() {\n\t\tMap<State, State> prevEcc = new HashMap<State, State>();\n\t\tMap<State, State> ecc = new HashMap<State, State>();\n\t\t\n\t\t/*\n\t\t * We will represent each equivalence classes with a representative member and\n\t\t * use a dictionary to map each state to this representative.\n\t\t * \n\t\t * First we create two equivalence classes, put all the accepting states in the\n\t\t * first and all the non accepting states in the second.\n\t\t */\n\n\t\tif (!this.acceptingStates.isEmpty()) {\n\t\t\tState rep = this.acceptingStates.iterator().next();\n\t\t\tfor (State state : this.acceptingStates) {\n\t\t\t\tecc.put(state, rep);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSet<State> nonAcceptingStates = new HashSet<State>(this.states);\n\t\tnonAcceptingStates.removeAll(this.acceptingStates);\n\t\t\n\t\tif (!nonAcceptingStates.isEmpty()) {\n\t\t\tState rep = nonAcceptingStates.iterator().next();\n\t\t\tfor (State state : nonAcceptingStates) {\n\t\t\t\tecc.put(state, rep);\n\t\t\t}\n\t\t\t\n\t\t\t/*\n\t\t\t * The invariant for the following loop is:\n\t\t\t * \n\t\t\t * 1. for any s -> r association in ecc, s is equivalent to r in prevEcc, 2. for\n\t\t\t * any input symbol c, the destination of the transition from s on c is\n\t\t\t * equivalent (in prevEcc) to the destiation of the transition from r to c, 3.\n\t\t\t * for any two values r1, r2 in ecc, they are not equivalent to each other in\n\t\t\t * prevEcc, 4. all the equivalence classes in prevEcc have a representative in\n\t\t\t * ecc.\n\t\t\t * \n\t\t\t */\n\t\t\t\n\t\t}\n\t\twhile (!prevEcc.equals(ecc)) {\n\t\t\t\n\t\t\tprevEcc = ecc;\n\t\t\t\n\t\t\tecc = new HashMap<State, State>();\n\n\t\t\t/*\n\t\t\t * To establish the invariant we will set ecc with the associations of the form\n\t\t\t * \n\t\t\t * r -> r where r is a representative from prevEcc.\n\t\t\t * \n\t\t\t * This will initially satisfy the invariant because our action establishes\n\t\t\t * condition (4) and conditions (1) and (2) and (3) are correct by induction\n\t\t\t * from the validity of prevEcc.\"\n\t\t\t */\n\t\t\tfor (State state : prevEcc.values()) {\n\t\t\t\tecc.put(state, state);\n\t\t\t}\n\t\t\tfor (State state : this.states) {\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * For each state s, we look in ecc for a rep r that is equivalent to s in\n\t\t\t\t * prevEcc (that is, s's rep in prevEcc is r and for every input they transition\n\t\t\t\t * to the same equivalence class in prevEcc) and add s to ecc with the same\n\t\t\t\t * equivalence rep. If no state is equivalent to s, we add s to ecc as its own\n\t\t\t\t * rep.\n\t\t\t\t */\n\n\t\t\t\tIterator<State> p = ecc.keySet().iterator();\n\t\t\t\tState rep = null;\n\t\t\t\tboolean equivalent = false;\n\t\t\t\twhile (p.hasNext() && !equivalent) {\n\t\t\t\t\trep = (State) p.next();\n\t\t\t\t\tequivalent = this.equivalentIn(prevEcc, state, rep);\n\t\t\t\t}\n\t\t\t\tif (equivalent) {\n\t\t\t\t\tecc.put(state, rep);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tecc.put(state, state);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn ecc;\n\t\t\n\t}", "public boolean same(GameState c, GameState g) \n\t{\n\t\tfor(int x = 0; x<18; x++) //loop through the boards\n\t\t{\n\t\t\tif(c.getBoard()[x] != g.getBoard()[x]) //if one value is not the same in the afrra return false\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;//if they all are the same return true\n\t}", "@Test\n\tpublic void testSampleEquals() {\n\n\t\tassertTrue(square.equals(squareRotate));\n\t\t\n\t\tassertTrue(pyr1.equals(pyr5));\n\t\t\n\t\tassertTrue(s.equals(sInitial));\n\t\tassertFalse(stick.equals(stickRotated));\n\t\tassertFalse(s.equals(sRotated));\n\n\n\t}", "private boolean sameTeamCheck(char state)\r\n {\r\n if((state == 'b' && isHuman) || (state == 'p' && !isHuman))\r\n return true;\r\n return false;\r\n }", "@Test\n public void testEquals_2() {\n LOGGER.info(\"testEquals_2\");\n final AtomString atomString = new AtomString(\"Hello\");\n final Atom atom = new AtomString(\"Hej\");\n final boolean actual = atomString.equals(atom);\n assertFalse(actual);\n }", "public AlgoAreEqual(Construction cons, String label,\n\t\t\tGeoElement inputElement1, GeoElement inputElement2) {\n\t\tthis(cons, inputElement1, inputElement2);\n\t\toutputBoolean.setLabel(label);\n\t}", "public boolean equalsWith(TraceGraph<?> other,\n IBoolBinary<EventNode, EventNode> pred) {\n\n EventNode unusedOther = other.getDummyInitialNode();\n EventNode n1 = this.getDummyInitialNode();\n EventNode n2 = unusedOther;\n\n if (pred.eval(n1, n2) && transitionEquality(n1, n2, pred)) {\n return true;\n }\n return false;\n }", "public boolean differ(Object a, Object b) {\n Node set1 = find(getNode(a));\n Node set2 = find(getNode(b));\n\n return set1 != set2;\n }", "public boolean isEquals() {\n long len = -1L;\n\n //1. check the lengths of the words\n for(S left : slp.getAxioms()) {\n if(len == -1L) {\n len = slp.length(left);\n }\n else {\n if(len != slp.length(left)) {\n return false;\n }\n }\n }\n\n // all words are the empty word\n if(len == 0) {\n return true;\n }\n\n // 2. the length are all equals and not zero => execute the recompression\n execute();\n\n S otherSymbol = null;\n boolean first = true;\n\n // 3. chech now if for all axioms X : |val(X)| = 1 and all val(X) are equals.\n for(S left : slp.getAxioms()) {\n if(first) {\n slp.length(left, true);\n first = false;\n }\n\n if(slp.length(left) != 1) {\n return false;\n }\n else {\n S symbol = slp.get(left, 1);\n if(otherSymbol == null) {\n otherSymbol = symbol;\n }\n\n if(!symbol.equals(otherSymbol)) {\n return false;\n }\n }\n }\n\n return true;\n }", "public final void testDifferentNameEquals() {\n assertFalse(testTransaction1.equals(testTransaction2)); // pmd doesn't\n // like either\n // way\n }", "private boolean isValuesEqual(BinaryMessage tocmp, BinaryMessage original) {\n\t\tif(tocmp.getValue().equals(original.getValue())) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "@Test\n public void testEqualsTrue() {\n Rectangle r5 = new Rectangle(7, 4, new Color(255, 0, 0), new Position2D(50, 75));\n Rectangle r6 = new Rectangle(0, 4, new Color(255, 255, 255),\n new Position2D(-50, 75));\n Rectangle r7 = new Rectangle(7, 0, new Color(255, 255, 0), new Position2D(50, -75));\n Rectangle r8 = new Rectangle(0, 0, new Color(200, 150, 133),\n new Position2D(-50, -75));\n\n assertEquals(r1, r5);\n assertEquals(r2, r6);\n assertEquals(r3, r7);\n assertEquals(r4, r8);\n }", "private boolean contain(Estado state, List<Estado> states) {\n\t\tfor (Estado valid : states) {\n\t\t\tif (valid.getValue() == state.getValue()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Test\n void testEquals() {\n final boolean expected_boolean = true;\n\n // Properties for the objects\n final String username = \"username\";\n final String name = \"their_name\";\n final String password = \"password\";\n\n // Create two LoginAccount objects\n LoginAccount first_account = new LoginAccount(username, name, password);\n LoginAccount second_account = new LoginAccount(username, name, password);\n\n // Variable to check\n boolean objects_are_equal = first_account.equals(second_account);\n\n // Assert that the two boolean values are the same\n assertEquals(expected_boolean, objects_are_equal);\n }", "@Override\n\tpublic int compareTo(State o) {\n\t\t//add something for different lengths?\n\t\t//if (this.state_rep.length() != o.state_rep.length())\n\t\t\t//throw something\n\t\t\t//throw IllegalArgumentException;\n\t\t\n\t\treturn this.state_rep.compareTo(o.state_rep);\n\t}", "@Test\n\tpublic void test_equals2() {\n\tTvShow t1 = new TvShow(\"Sherlock\",\"BBC\");\n\tTvShow t2 = new TvShow(\"NotSherlock\",\"BBC\");\n\tassertFalse(t1.equals(t2));\n }", "boolean hasHasState();", "public boolean isSame(MoveLabel other) {\n if (other == this) {\n return true;\n }\n return Objects.equals(in, other.in) && Objects.equals(out, other.out);\n }", "@Test\n public void testEquals() {\n assertFalse(jesseOberstein.equals(nathanGoodman));\n assertTrue(kateHutchinson.equals(kateHutchinson));\n }", "default boolean isSameStateAs(ReadOnlyTask other) {\n return other == this // short circuit if same object\n || (other != null // this is first to avoid NPE below\n && other.getContent().equals(this.getContent())); // state checks here onwards\n //&& other.getDate().equals(this.getDate())\n //&& other.getTime().equals(this.getTime()));\n }", "@Override\n public boolean isLessOrEqual(BindState that) throws CPAException, InterruptedException {\n\n TreeLessEqualComparator<String, BindingPoint> comparator =\n new TreeLessEqualComparator<String, BindingPoint>() {\n @Override\n public boolean isLessEqual(BindingPoint pA, BindingPoint pB) {\n return BindingPoint.isLessEqual(pA, pB);\n }\n };\n\n return PathCopyingPersistentTree.isLessEqual(this.localDefs, that.localDefs, comparator) &&\n PathCopyingPersistentTree.isLessEqual(this.globalDefs, that.globalDefs, comparator);\n }", "private boolean eq(int[] a,int[] b){\n\t\tboolean eq = true;\n\t\tif(a.length != b.length) return false;\n\t\tfor(int i=0;i<a.length;i++){\n\t\t\tif( a[i] != b[i] ){\n\t\t\t\teq = false;\n\t\t\t\tbreak;\n\t\t\t}else{\n\n\t\t\t}\n\t\t}\n\t\treturn eq;\n\t}", "@Test\n\tpublic void testEqualityCheck() {\n\t\tadd(\"f(x)=x^3\");\n\t\tadd(\"g(x)=-x^3\");\n\t\tt(\"f==g\", \"false\");\n\t\tt(\"f!=g\", \"true\");\n\t\tt(\"f==-g\", \"true\");\n\t\tt(\"f!=-g\", \"false\");\n\t}", "@Test \n\tpublic void checkEquality() {\n\t\tassertTrue(testCell.equals(testCell));\n\t\tassertFalse(testCell.equals(new Cell(false)));\n\n\t}", "@Test\n public void equals2() throws Exception {\n SmartPlayer x = new SmartPlayer(0, 1);\n SmartPlayer y = new SmartPlayer(0, 2);\n assertFalse(x.equals(y));\n }", "public boolean isSameAs(Move comp){ \n return this.xFrom==comp.xFrom &&\n this.xTo==comp.xTo &&\n this.yFrom==comp.yFrom &&\n this.yTo==comp.yTo;\n }", "private static boolean equalityTest1(String a, String b)\n {\n return a == b;\n }", "@Test\n public void testEqual () {\n CountDownTimer s1 = new CountDownTimer(5, 59, 00);\n CountDownTimer s2 = new CountDownTimer(6, 01, 00);\n CountDownTimer s3 = new CountDownTimer(6, 01, 00);\n CountDownTimer s4 = new CountDownTimer(\"5:59:00\");\n\n assertFalse(s1.equals(s2));\n assertTrue(s1.equals(s4));\n assertFalse(CountDownTimer.equals(s1,s3));\n assertTrue(CountDownTimer.equals(s2, s3));\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof AppStates)) {\n return false;\n }\n AppStates other = (AppStates) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "@Test\n //checks for state switching (on/off)\n void SwitchStates() {\n Assertions.assertFalse(machine.isTurnedOn());\n\n //then, switch on and check if on\n machine.setTurnedOn(true);\n Assertions.assertTrue(machine.isTurnedOn());\n\n //switch off to see if turned off correctly\n machine.setTurnedOn(false);\n Assertions.assertFalse(machine.isTurnedOn());\n\n //and now check the inversion\n machine.flipSwitch();\n\n Assertions.assertTrue(machine.isTurnedOn());\n }", "public boolean equivalentInteractions(InteractionObject first, InteractionObject second) {\n\t\tboolean result = \n\t\t\tfirst.getType() == second.getType() &&\n\t\t\tfirst.getIndex() == second.getIndex();\n\t\treturn result;\n\t}", "protected boolean statusIs(String state)\n { return call_state.equals(state); \n }", "public void testEquals()\n {\n // test passing null to equals returns false\n // (as specified in the JDK docs for Object)\n EthernetAddress x =\n new EthernetAddress(VALID_ETHERNET_ADDRESS_BYTE_ARRAY);\n assertFalse(\"equals(null) didn't return false\",\n x.equals((Object)null));\n \n // test passing an object which is not a EthernetAddress returns false\n assertFalse(\"x.equals(non_EthernetAddress_object) didn't return false\",\n x.equals(new Object()));\n \n // test a case where two EthernetAddresss are definitly not equal\n EthernetAddress w =\n new EthernetAddress(ANOTHER_VALID_ETHERNET_ADDRESS_BYTE_ARRAY);\n assertFalse(\"x == w didn't return false\",\n x == w);\n assertFalse(\"x.equals(w) didn't return false\",\n x.equals(w));\n\n // test refelexivity\n assertTrue(\"x.equals(x) didn't return true\",\n x.equals(x));\n \n // test symmetry\n EthernetAddress y =\n new EthernetAddress(VALID_ETHERNET_ADDRESS_BYTE_ARRAY);\n assertFalse(\"x == y didn't return false\",\n x == y);\n assertTrue(\"y.equals(x) didn't return true\",\n y.equals(x));\n assertTrue(\"x.equals(y) didn't return true\",\n x.equals(y));\n \n // now we'll test transitivity\n EthernetAddress z =\n new EthernetAddress(VALID_ETHERNET_ADDRESS_BYTE_ARRAY);\n assertFalse(\"x == y didn't return false\",\n x == y);\n assertFalse(\"x == y didn't return false\",\n y == z);\n assertFalse(\"x == y didn't return false\",\n x == z);\n assertTrue(\"x.equals(y) didn't return true\",\n x.equals(y));\n assertTrue(\"y.equals(z) didn't return true\",\n y.equals(z));\n assertTrue(\"x.equals(z) didn't return true\",\n x.equals(z));\n \n // test consistancy (this test is just calling equals multiple times)\n assertFalse(\"x == y didn't return false\",\n x == y);\n assertTrue(\"x.equals(y) didn't return true\",\n x.equals(y));\n assertTrue(\"x.equals(y) didn't return true\",\n x.equals(y));\n assertTrue(\"x.equals(y) didn't return true\",\n x.equals(y));\n }", "boolean equalTo(ObjectPassDemo o) {\n return (o.a == a && o.b == b);\n }", "@Test\n void testEqualsFalse() {\n assertFalse(loginRequest1.equals(loginRequest2));\n }", "public final boolean equals(Object obj) {\n AppMethodBeat.m2504i(109592);\n if (this != obj) {\n if (obj instanceof C22192a) {\n C22192a c22192a = (C22192a) obj;\n if (C25052j.m39373j(this.username, c22192a.username)) {\n if (this.state == c22192a.state) {\n }\n }\n }\n AppMethodBeat.m2505o(109592);\n return false;\n }\n AppMethodBeat.m2505o(109592);\n return true;\n }", "@Test\n\tpublic void test_equals1() {\n\tTvShow t1 = new TvShow(\"Sherlock\",\"BBC\");\n\tTvShow t2 = new TvShow(\"Sherlock\",\"BBC\");\n\tassertTrue(t1.equals(t2));\n }", "@Test\n public void testEquals_sameParameters() {\n CellIdentityNr cellIdentityNr =\n new CellIdentityNr(PCI, TAC, NRARFCN, BANDS, MCC_STR, MNC_STR, NCI,\n ALPHAL, ALPHAS, Collections.emptyList());\n CellIdentityNr anotherCellIdentityNr =\n new CellIdentityNr(PCI, TAC, NRARFCN, BANDS, MCC_STR, MNC_STR, NCI,\n ALPHAL, ALPHAS, Collections.emptyList());\n\n // THEN this two objects are equivalent\n assertThat(cellIdentityNr).isEqualTo(anotherCellIdentityNr);\n }", "@Nonnull \r\n\tpublic static <T> Observable<Boolean> sequenceEqual(\r\n\t\t\t@Nonnull final Observable<? extends T> first,\r\n\t\t\t@Nonnull final Observable<? extends T> second) {\r\n\t\treturn sequenceEqual(first, second, Functions.equals());\r\n\t}", "@Test\n public void equals_DifferentDiningHallBitfield_Test() {\n Assert.assertFalse(bq1.equals(bq6));\n Assert.assertFalse(bq1.equals(bq7));\n }", "public static void main(String[] args) {\n // Reflexive\n System.out.println(o.equals(o));\n System.out.println(r.equals(r));\n\n // Symmetric\n System.out.println(o.equals(p) + \" = \" + p.equals(o));\n System.out.println(r.equals(s) + \" = \" + s.equals(r));\n\n // Transitive\n System.out.println(o.equals(p) + \" = \" + p.equals(q) + \" = \" + o.equals(q));\n System.out.println(r.equals(s) + \" = \" + s.equals(t) + \" = \" + r.equals(t));\n\n // Comparing Point to ColorPoint\n System.out.println(p.equals(s.asPoint()));\n System.out.println(s.asPoint().equals(p));\n }", "boolean isSetState();", "@Test\n void equals1() {\n Student s1=new Student(\"emina\",\"milanovic\",18231);\n Student s2=new Student(\"emina\",\"milanovic\",18231);\n assertEquals(true,s1.equals(s2));\n }", "@Test\n public void testCaseIsInputEqualsMatchPredicateBool() {\n String o = \"\";\n AtomicBoolean success = new AtomicBoolean(false);\n match(o).caseIs(s -> s == o, () -> success.set(true));\n assertTrue(success.get());\n }", "public static void equalsDemo() {\n\n//\t\tSystem.out.printf(\"demo1 == demo2 = %s%n\", demo1 == demo2);\n//\t\tSystem.out.printf(\"demo2 == demo3 = %s%n\", demo2 == demo3);\n//\t\tSystem.out.printf(\"demo2.equals(demo3) = %s%n\", demo2.equals(demo3));\n//\t\tSystem.out.printf(\"%n\");\n\t}", "@Test\n public void testEquals_differentParameters() {\n CellIdentityNr cellIdentityNr =\n new CellIdentityNr(PCI, TAC, NRARFCN, BANDS, MCC_STR, MNC_STR, NCI,\n ALPHAL, ALPHAS, Collections.emptyList());\n CellIdentityNr anotherCellIdentityNr =\n new CellIdentityNr(PCI, TAC, NRARFCN, BANDS, MCC_STR, MNC_STR, NCI + 1,\n ALPHAL, ALPHAS, Collections.emptyList());\n\n // THEN this two objects are different\n assertThat(cellIdentityNr).isNotEqualTo(anotherCellIdentityNr);\n }", "public final void testSameObjectEquals() {\n final Transaction copy = testTransaction1;\n assertTrue(testTransaction1.equals(copy)); // pmd doesn't like either\n // way\n\n }", "boolean newequals(DataBT a, DataBT b) \n\t {\n\t \tSystem.out.println(\"!!\");\n\t \t\n\t /*1. both empty */\n\t if ((IBinTree)a instanceof MtBT && (IBinTree)b instanceof MtBT)\n\t return true;\n\t System.out.println(\"1 \" + a.data);\n\t \t \n\t /* 2. both non-empty -> compare them */\n\t if ( !((IBinTree)a instanceof MtBT) && !((IBinTree)b instanceof MtBT)) {\n\n\t \tboolean check = (a.data == b.data);\n\t\t System.out.println(\"1112\");\n\t\t \n\t\t if(a.left instanceof MtBT && b.left instanceof MtBT);else\n\t\t if((a.left instanceof MtBT) != (a.left instanceof MtBT))check = false;else\n\t \tif(!newequals((DataBT)a.left, (DataBT)b.left))check = false;\n\t\t \n\t\t \n\t\t System.out.println(\"1113\");\n\t\t \n\t\t \n\t\t if(a.right instanceof MtBT && b.right instanceof MtBT);else\n\t\t\t if((a.right instanceof MtBT) != (a.right instanceof MtBT))check = false;else\n\t\t if(!newequals((DataBT)a.right, (DataBT)b.right))check = false;\n\n\t\t System.out.println(\"112\");\n\n\t\t return (check);\n\t }\n\t System.out.println(\"2\");\n\t \n\t /* 3. one empty, one not -> false */\n\t if ( ((IBinTree)a instanceof MtBT) && (!((IBinTree)b instanceof MtBT))) {\n\t \treturn false;\n\t }\n\t System.out.println(\"3\");\n\t return false;\n\t }", "boolean equivalent(Concept x, Concept y);" ]
[ "0.7238769", "0.71619105", "0.7011005", "0.6980648", "0.6907944", "0.68888545", "0.68578374", "0.6841902", "0.68258864", "0.6779539", "0.6771408", "0.6753326", "0.6747125", "0.67121154", "0.6682158", "0.666946", "0.6621373", "0.65516067", "0.651946", "0.64432687", "0.6429585", "0.6412178", "0.6406678", "0.6365348", "0.63465273", "0.63244975", "0.62905884", "0.6262225", "0.6251378", "0.6239772", "0.62005913", "0.6169839", "0.6153349", "0.614892", "0.612695", "0.6124662", "0.60982686", "0.6021298", "0.60181737", "0.60181737", "0.60181737", "0.60181737", "0.60181737", "0.60181737", "0.60181737", "0.60181737", "0.5983156", "0.59612966", "0.5931373", "0.59142494", "0.5911796", "0.5885589", "0.58698803", "0.5854666", "0.58298063", "0.5828385", "0.5828355", "0.5822043", "0.57791746", "0.576426", "0.575606", "0.57480097", "0.5746506", "0.57402277", "0.57368326", "0.57280326", "0.57117605", "0.5707259", "0.57005835", "0.5682485", "0.5665373", "0.56651616", "0.5663676", "0.56522125", "0.5649688", "0.5635874", "0.5632318", "0.56200624", "0.5615016", "0.56095314", "0.5592", "0.5588739", "0.55817395", "0.55720717", "0.55647856", "0.55618316", "0.5561194", "0.5544156", "0.5543377", "0.5539212", "0.55323124", "0.55268407", "0.5520817", "0.55156374", "0.5508774", "0.55083644", "0.5504223", "0.55007464", "0.54998237", "0.54966295" ]
0.6471356
19
Get the hashCode for this state. Hashcode is based of the identifiers of the two pawn nodes. Because we override equals, the hashCode need to be overridden in order for the hashSet to function correctly
@Override public int hashCode() { return Integer.parseInt(this.getPawnOne().getPositionNr() + "" + this.getPawnTwo().getPositionNr()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic int hashCode() {\r\n\t\t// Only this because other fields could be modified after you hash this.\r\n\t\treturn state.hashCode();\r\n\t}", "public int hashCode() {\n return state.hashCode();\n }", "public abstract int hashCode();", "@Override\n\tpublic int hashCode() {\n\t\tfinal int prime = 31;\n\t\tint result = 1;\n\t\tresult = prime * result + ((state_rep == null) ? 0 : state_rep.hashCode());\n\t\treturn result;\n\t}", "@Override\n public int hashCode() {\n return hash(this.getCoordinate(), this.getSide());\n }", "public int hashCode();", "public int hashCode();", "public int hashCode();", "public int hashCode();", "public int hashCode() {\n\t\tint h = 0, i = 0, j = count;\n\t\twhile (j-- != 0) {\n\t\t\twhile (state[i] != OCCUPIED)\n\t\t\t\ti++;\n\t\t\th += longHash2IntHash(key[i]);\n\t\t\ti++;\n\t\t}\n\t\treturn h;\n\t}", "@Override\n public int hashCode() {\n return Arrays.hashCode(getState());\n }", "int hashCode();", "int hashCode();", "@Override\n public int hashCode() {\n if (this.shape1.uniqueShapeID < this.shape2.uniqueShapeID) {\n return shape1.uniqueShapeID * 65536 + shape2.uniqueShapeID;\n } else {\n return shape2.uniqueShapeID * 65536 + shape1.uniqueShapeID;\n }\n }", "public int hashCode() {\n return (7 + this.key.hashCode() + this.value.hashCode() / 5) \n + this.left.hashCode()\n + this.right.hashCode();\n }", "public int hashCode() {\n if (hashCode != 0){\n return hashCode;\n }\n return hashCode = computeHash();\n }", "public int hashCode() {\n\t\tint hash = 0;\n\t\tif (isGameOver()) {\n\t\t\treturn (1 + (winner() == Game.FIRST_PLAYER ? 1 : 2));\n\t\t}\n\t\thash = 4;\n\t\tfor (int i = 1; i < NUMBER_OF_MOVES; i++) {\n\t\t\thash *= 3;\n\t\t\tif (contains(moves1, i)) {\n\t\t\t\thash++;\n\t\t\t} else if (contains(moves2, i)) {\n\t\t\t\thash += 2;\n\t\t\t}\n\t\t}\n\t\treturn hash;\n\t}", "@Override\n public int hashCode() {\n int hash = 7;\n hash = 29 * hash + Objects.hashCode(this.id);\n hash = 29 * hash + Objects.hashCode(this.name);\n return hash;\n }", "@Override\n public int hashCode() {\n return Objects.hashCode(nodes(), edgeToIncidentNodes);\n }", "@Override\n\tpublic int hashCode()\n\t{\n\t\t// This is really simple, but it works... and prevents a deep hash\n\t\treturn nodeList.size() + edgeList.size() * 23;\n\t}", "public int hashCode() {\n final int HASH_MULTIPLIER = 29;\n int h = HASH_MULTIPLIER * FName.hashCode() + LName.hashCode();\n h = HASH_MULTIPLIER * h + ((Integer)ID).hashCode();\n return h;\n }", "@Override\n public abstract int hashCode();", "@Override\n public abstract int hashCode();", "@Override\n public abstract int hashCode();", "public int hashCode()\r\n/* 124: */ {\r\n/* 125:126 */ return this.id;\r\n/* 126: */ }", "public synchronized int hashCode() {\n\t\treturn super.hashCode();\n\t}", "@Override\n public int hashCode() {\n int hash = 7;\n hash = 31 * hash + (predicate != null ? predicate.hashCode() : 0);\n hash = 31 * hash + leftChild.hashCode();\n hash = 31 * hash + rightChild.hashCode();\n return hash;\n }", "public int hashCode() {\n return hash.hashCode();\n }", "@Override\n\t public int hashCode();", "public int hashCode() {\n return Objects.hashCode(this);\n }", "public int hashCode() {\r\n\t\treturn this.value().hashCode();\r\n\t}", "@Override\n public int hashCode() {\n return new HashCodeBuilder(17, 37)\n .append(level)\n .append(bosses)\n .append(time)\n .toHashCode();\n }", "@Override\n\t\tpublic int hashCode()\n\t\t{\n\t\t\treturn super.hashCode(); //Default implementation; may need to bring in line to equals\n\t\t}", "@Override\r\n public int hashCode() {\n int key=(Integer)(this.capsule.get(0)); // Get the key\r\n Integer bkey=Integer.parseInt(Integer.toBinaryString(key)); // Convert into binary \r\n int n=setcount(bkey); //counts the number of 1's in the binary\r\n key=key*n + Objects.hashCode(this.capsule.get(0)); //multiplies that with the hashcode of the pId\r\n return key;\r\n }", "public final int hashCode() {\n return super.hashCode();\n }", "@Override\n public int hashCode() {\n return Objects.hash(mGx, mGy, mGz);\n }", "public int hashCode(){\n return this.id; // this.hashCode()\n }", "@Override\r\n \tpublic int hashCode() {\r\n \t\t// Insert code to generate a hash code for the receiver here.\r\n \t\t// This implementation forwards the message to super. You may replace or supplement this.\r\n \t\t// NOTE: if two objects are equal (equals(Object) returns true) they must have the same hash code\r\n \t\treturn super.hashCode();\r\n \t}", "public int hashCode() {\n\t\treturn (label1 == null) ? end : ((label2 == null) ? end\n\t\t\t\t+ label1.hashCode() : end + label1.hashCode()\n\t\t\t\t+ label2.hashCode());\n\t}", "public int hashCode() {\n return super.hashCode() ^ 0x1;\n }", "@Override\r\n\tpublic int hashCode() {\n\t\treturn this.id;\r\n\t}", "public int hashCode()\n\t{\n\t\treturn y<<16+x;\n\t}", "public int hashCode() {\r\n int result = 17;\r\n result = xCH(result, getTableDbName());\r\n result = xCH(result, getMemberAddressId());\r\n return result;\r\n }", "public int hashCode()\r\n/* */ {\r\n/* 89 */ int hash = 3;\r\n/* 90 */ hash = 19 * hash + Objects.hashCode(this.id);\r\n/* 91 */ return hash;\r\n/* */ }", "public int hashCode() {\n return getId();\n }", "public int hashCode() {\n return getId();\n }", "public int hashCode()\n {\n return hash;\n }", "@Override\n public int hashCode() {\n return this.id;\n }", "public int hashCode()\r\n {\r\n if (this.hashValue == 0)\r\n {\r\n int result = 17;\r\n int purSubcateIdValue = this.getId() == null ? 0 : this.getId().hashCode();\r\n result = result * 37 + purSubcateIdValue;\r\n this.hashValue = result;\r\n }\r\n return this.hashValue;\r\n }", "public int hashCode()\n\t{\n\t\treturn id.hashCode();\n\t}", "public int hashCode() {\n int hash = 0;\n hash = width;\n hash <<= 8;\n hash ^= height;\n hash <<= 8;\n hash ^= numBands;\n hash <<= 8;\n hash ^= dataType;\n hash <<= 8;\n for (int i = 0; i < bandOffsets.length; i++) {\n hash ^= bandOffsets[i];\n hash <<= 8;\n }\n for (int i = 0; i < bankIndices.length; i++) {\n hash ^= bankIndices[i];\n hash <<= 8;\n }\n hash ^= numBands;\n hash <<= 8;\n hash ^= numBanks;\n hash <<= 8;\n hash ^= scanlineStride;\n hash <<= 8;\n hash ^= pixelStride;\n return hash;\n }", "public int hashCode() {\n\t\treturn this.eid + 25;\n\t}", "@Override\n public int hashCode() {\n return Objects.hash(this.getValue());\n }", "public int hashCode() {\n // For speed, this hash code relies only on the hash codes of its select\n // and criteria clauses, not on the from, order by, or option clauses\n int myHash = 0;\n myHash = HashCodeUtil.hashCode(myHash, this.operation);\n myHash = HashCodeUtil.hashCode(myHash, getProjectedQuery());\n return myHash;\n }", "@Override\n\tpublic int hashCode() {\n\t\tcheckRep();\n\t\treturn label.hashCode() + child.hashCode();\n\t}", "public int hashCode() {\r\n\t return super.hashCode();\r\n\t}", "public int hashCode() {\r\n\t\treturn this.iD;\r\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn getId();\n\t}", "@Override\n public int hashCode() {\n int result = 17;\n result = 31 * result + x + y;\n return result;\n }", "@Override\n public int hashCode()\n {\n if (hash != 0) {\n return hash;\n }\n\n hash = provider.hashCode() * 127 + id.hashCode();\n return hash;\n }", "@Override\n\tpublic int hashCode() {\n\t\tint ret = 0;\n\t\tfor (final Object o : states) {\n\t\t\tret += ((State) o).specialHash();\n\t\t}\n\t\tfor (final Object o : transitions) {\n\t\t\tret += ((Transition) o).specialHash();\n\t\t}\n\t\tfor (final Object o : myNotes) {\n\t\t\tret += ((Note) o).specialHash();\n\t\t}\n\t\tret += finalStates.hashCode();\n\t\tret += initialState == null ? 0 : (int) (initialState.specialHash() * Math.PI);\n\n\t\t// EDebug.print(ret);\n\t\treturn ret;\n\t}", "@Override\r\n public int hashCode() {\r\n int hash = 0;\r\n hash += (this.id != null ? this.id.hashCode() : 0);\r\n return hash;\r\n }", "@Override\n public int hashCode() {\n return this.id.hashCode();\n }", "@Override\r\n \tpublic int hashCode() {\n \t\treturn id.hashCode();\r\n \t}", "@Override\n public int hashCode() {\n int hash = 7;\n hash = 43 * hash + this.id;\n hash = 43 * hash + this.size;\n hash = 43 * hash + Objects.hashCode(this.orientation);\n hash = 43 * hash + Objects.hashCode(this.currentPosition);\n return hash;\n }", "public int hashCode()\n {\n int i = 0;\n if ( hasBatchId() )\n i ^= getBatchId().hashCode();\n if ( hasNestId() )\n i ^= getNestId().hashCode();\n return i;\n }", "@Override\n public int hashCode() {\n int hash = 0;\n hash += (id != null ? id.hashCode() : 0);\n return hash;\n }", "@Override\r\n\tpublic int hashCode()\r\n\t{\r\n\t\tint hash = 1;\r\n\r\n\t\tif (containingExpression != null)\r\n\t\t{\r\n\t\t\thash = hash & Constants.HASH_PRIME + containingExpression.hashCode();\r\n\t\t}\r\n\r\n\t\tif (conditions != null)\r\n\t\t{\r\n\t\t\thash = hash * Constants.HASH_PRIME + new HashSet<ICondition>(conditions).hashCode();\r\n\t\t}\r\n\r\n\t\treturn hash;\r\n\t}", "public int hashCode() {\n return (name.ordinal() + 5) * 51;\n }", "public int hashCode() {\n return lho.hashCode() + op.hashCode() + rho.hashCode();\n }", "public int hashCode() {\n int hash = 0;\n JMLListEqualsNode<E> ptr = this;\n while (ptr != null) {\n E v = ptr.val;\n if (v != null) {\n hash += v.hashCode();\n }\n ptr = ptr.next;\n }\n return hash;\n }", "public int hashCode() {\n return this.trieNode.hashCode();\n }", "@Override\n int hashCode();", "@Override\n public int hashCode()\n {\n\n return Objects.hash(getRelationshipTypeGUID(),\n getInitialProperties(),\n getEntityOneGUID(),\n getEntityTwoGUID(),\n getInitialStatus());\n }", "@Override\n public int hashCode() {\n return Objects.hash(name, type, id);\n }", "public int hashCode()\r\n\t{\r\n\t return edgeType.hashCode();\r\n\t}", "public int hashCode() {\n\t\treturn hash(objects); //return the hash code of the objects\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn id.hashCode();\n\t}", "@Override\n public int hashCode() {\n int hash = 0;\n hash += (id != null ? id.hashCode() : 0);\n return hash;\n }", "public int hashCode() {\n return 37 * 17;\n }", "public int hashCode() {\n\t\treturn toString().hashCode();\n\t}", "public int hashCode() {\n/* 781 */ return getUniqueId().hashCode();\n/* */ }", "@Override\n public int hashCode() {\n int hash = 3;\n hash = 97 * hash + this.x;\n hash = 97 * hash + this.y;\n return hash;\n }", "@Override\n public int hashCode();", "@Override\n public int hashCode()\n {\n return new HashCodeBuilder(17, 31).\n append(_name).\n toHashCode();\n }", "@Override\n public int hashCode() {\n return hashCode;\n }", "@Override\n\tpublic int hashCode() {\n\t\treturn getId() == null ? super.hashCode() : getId().hashCode();\n\t}", "int\thashCode();", "@Override\n public int hashCode() {\n int hash = 0;\n hash += (pid != null ? pid.hashCode() : 0);\n return hash;\n }", "public int hashCode() {\n\t\treturn src.hashCode() ^ dst.hashCode() ^ data_len ^ type ^ group ^ data.hashCode();\n\t}", "public int hashCode() {\n return new HashCodeBuilder(7, 29)\n .append(meaning)\n .append(type)\n .append(target)\n .toHashCode(); \n }", "public int hashCode() {\n ID id = getId();\n\n if (id != null) {\n return id.hashCode();\n }\n\n return super.hashCode();\n }", "public int hashCode() {\r\n \treturn super.hashCode();\r\n }", "@Override\n\tpublic int hashCode() {\n\t\t\n\t\treturn (int)id * name.hashCode() * email.hashCode();\n\t\t//int hash = new HashCodeBuilder(17,37).append(id).append(name); //can be added from Apache Commons Lang's HashCodeBuilder class\n\t}", "@Override\n public int hashCode() {\n return Objects.hash(color,id);\n }", "@Override\n public int hashCode() {\n return hashcode;\n }", "@Override\n public int hashCode() {\n return Objects.hash(id,address1, address2, zip, city, state_long, state, phone);\n }", "@Override\n public int hashCode() {\n return Objects.hash(parent, predicate);\n }", "public int hashCode() {\n if (hash == -1) {\n hash = 0;\n byte b[] = packet.getData();\n int len = b.length;\n for (int ix = 0; ix < len; ix++) {\n\thash = 31 * hash + b[ix];\n }\n hash ^= (packet.getAddress().hashCode() ^\n\t (packet.getPort() << 15) ^\n\t (packet.getLength() << 3) ^\n\t (packet.getOffset() << 8));\n }\n return hash;\n }", "@Override\n public int hashCode()\n {\n return hashCode;\n }" ]
[ "0.7490091", "0.74752", "0.73346734", "0.7277777", "0.7212242", "0.72108364", "0.72108364", "0.72108364", "0.72108364", "0.7210707", "0.7186765", "0.71850747", "0.71850747", "0.7149127", "0.7131824", "0.71183693", "0.7105073", "0.70961314", "0.7094987", "0.70774186", "0.70663744", "0.70637167", "0.70637167", "0.70637167", "0.70396787", "0.70257586", "0.7000498", "0.6998612", "0.69745636", "0.69593006", "0.6951551", "0.6940559", "0.69305897", "0.692216", "0.6909563", "0.690841", "0.69033295", "0.6899868", "0.68950397", "0.68946385", "0.6891035", "0.6890162", "0.6887718", "0.68857986", "0.6883928", "0.6883221", "0.6863022", "0.6854509", "0.6847247", "0.6834793", "0.68298763", "0.68170506", "0.68162507", "0.6813106", "0.6809411", "0.68093324", "0.6807123", "0.6796247", "0.6794766", "0.67939574", "0.6793626", "0.6792197", "0.67901504", "0.6788352", "0.67869985", "0.67789364", "0.6773589", "0.6773516", "0.67715394", "0.6769378", "0.6763589", "0.675922", "0.67553616", "0.67506623", "0.67504984", "0.6750097", "0.6744915", "0.673125", "0.6730431", "0.67270494", "0.67244995", "0.67221844", "0.6720681", "0.67143846", "0.6709052", "0.67082787", "0.67079794", "0.670452", "0.67044187", "0.6703421", "0.67030144", "0.6702774", "0.67025465", "0.66997445", "0.6697801", "0.66874313", "0.6687335", "0.66802186", "0.66752297", "0.66697973" ]
0.7282895
3
Convert information of a maze state to string
@Override public String toString() { return String.format("[%s,%s]" , pawnOne.getPositionNr(), pawnTwo.getPositionNr()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String toString() {\n // | <M,C,B> |\n // | Depth = d |\n // -----------\n return \"\\n ----------- \\n\" + \"| <\" + this.state[0] + \",\" + this.state[1] + \",\" + this.state[2] + \"> |\\n\"\n + \"| Depth = \" + this.depth + \" |\\n\" + \" ----------- \\n\";\n }", "public String toString() {\n\tStringBuffer buffer = new StringBuffer();\n\t//\tbuffer.append(\" 6 5 4 3 2 1 \\n\");\n\tbuffer.append(\"+---------------------------------------+\\n\");\n\t\n\tbuffer.append(\"| |\");\n\tfor (int i = 12; i >= 7; --i) {\n\t buffer.append(toString(state[i]));\n\t}\n\tbuffer.append(\" |\\n\");\n\t\n\tbuffer.append(\"|\");\n\tbuffer.append(toString(state[13]));\n\tbuffer.append(\"-----------------------------|\");\n\tbuffer.append(toString(state[6]));\n\tbuffer.append(\"\\n\");\n\t\n\tbuffer.append(\"| |\");\n\tfor (int i = 0; i <= 5; ++i) {\n\t buffer.append(toString(state[i]));\n\t}\n\tbuffer.append(\" |\\n\");\n\t\n\tbuffer.append(\"+---------------------------------------+\\n\");\n\tbuffer.append(\" 0 1 2 3 4 5 \\n\");\n\t\n\treturn buffer.toString();\n }", "public String getState() {\r\n StringBuilder builder = new StringBuilder();\r\n builder.append(mLastLarge);\r\n builder.append(',');\r\n builder.append(mLastSmall);\r\n builder.append(',');\r\n for (int large = 0; large < 9; large++) {\r\n for (int small = 0; small < 9; small++) {\r\n builder.append(mSmallTiles[large][small].getOwner().name());\r\n builder.append(',');\r\n }\r\n }\r\n return builder.toString();\r\n }", "@Override\n\tpublic String toString()\n\t{\n\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\tfor (int i = 0; i < 2 * size + 1; i++)\n\t\t{\n\t\t\tstringBuilder.append(\"-\");\n\t\t}\n\t\tstringBuilder.append(\"\\n|\");\n\t\tfor (int i = 0; i < state.size(); i++)\n\t\t{\n\t\t\tstringBuilder.append(state.get(i)).append(\"|\");\n\t\t\tif (i % size == size - 1 && i < state.size() - 1)\n\t\t\t{\n\t\t\t\tstringBuilder.append(\"\\n|\");\n\t\t\t}\n\t\t}\n\t\tstringBuilder.append(\"\\n\");\n\t\tfor (int i = 0; i < 2 * size + 1; i++)\n\t\t{\n\t\t\tstringBuilder.append(\"-\");\n\t\t}\n\t\treturn stringBuilder.toString();\n\t}", "public String getState() {\n StringBuilder builder = new StringBuilder();\n //builder.append(muteMusic.getBackground().getLevel());\n //builder.append(',');\n builder.append(muteClicked);\n builder.append(',');\n builder.append(gameOver);\n builder.append(',');\n builder.append(wordsDetectedByUser.size());\n builder.append(',');\n for(int i =0;i<wordsDetectedByUser.size();i++)\n { builder.append(wordsDetectedByUser.get(i));\n builder.append(',');}\n builder.append(notValidWord);\n builder.append(',');\n // m1Handler.removeCallbacks(m1Runnable);\n mHandler.removeCallbacks(mRunnable);\n builder.append(phaseTwo);\n builder.append(',');\n builder.append(currentScore); //storing current score\n builder.append(',');\n builder.append(t); //storing timer state\n builder.append(',');\n Object a[] = DoneTiles.toArray();\n builder.append(a.length);\n builder.append(',');\n for(int i=0;i<a.length;i++) {\n builder.append(a[i].toString());\n builder.append(',');\n }\n builder.append(mLastLarge);\n builder.append(',');\n builder.append(mLastSmall);\n builder.append(',');\n for (int large = 0; large < 9; large++) {\n for (int small = 0; small < 9; small++) {\n builder.append(mSmallTiles[large][small].getOwner().name());\n builder.append(',');\n builder.append((((Button)mSmallTiles[large][small].getView()).getText()).toString());\n builder.append(',');\n //Log.d(DoneTiles);\n }\n }\n return builder.toString();\n }", "@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn state.toString();\r\n\t}", "public String dumpState() {\n StringBuilder out = new StringBuilder();\n out.append(currentPlayer);\n for (int i = 0; i < board.length; ++i)\n out.append(\" \" + board[i]);\n\n return out.toString();\n }", "public String getDroneState() {\n return \"mid:\" + mid +\n \";x:\" + x +\n \";y:\" + y +\n \";z:\" + z +\n \";pitch:\" + pitch +\n \";roll:\" + roll +\n \";yaw:\" + yaw +\n \";vgx:\" + speedX +\n \";vgy:\" + speedY +\n \";vgz:\" + speedZ +\n \";templ:\" + tempLow +\n \";temph:\" + tempHigh +\n \";tof:\" + tofDistance +\n \";h:\" + height +\n \";bat:\" + battery +\n \";baro:\" + barometer +\n \";time:\" + motorTime +\n \";agx:\" + accelerationX +\n \";agy:\" + accelerationY +\n \";agz:\" + accelerationZ +\n \";\";\n }", "@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\tString s = new String(\"\");\r\n\t\tfor (int i = 0; i < maze.length; i++) {\r\n\t\t\ts+= \"\\n\";\r\n\t\t\ts+= \"Floor #\";\r\n\t\t\ts+= (i+1);\r\n\t\t\ts+= \":\";\r\n\t\t\ts+= \"\\n\";\r\n\t\t\tfor (int j = 0; j < maze[0].length; j++) {\r\n\t\t\t\ts+= \"\\n\";\r\n\t\t\t\tfor (int j2 = 0; j2 < maze[0][0].length; j2++) {\r\n\t\t\t\t\ts += this.maze[i][j][j2];\r\n\t\t\t\t\ts += \" \";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ts+= \"\\n\";\r\n\t\t}\r\n\t\treturn s;\r\n\t}", "@Override\n public String toString()\n {\n return state.toString();\n }", "public String toString() {\r\n\t\treturn gameState;\r\n\t}", "@Override\n public String toString ()\n {\n StringBuffer buffer = new StringBuffer();\n for (State value : stateMap.values()) {\n buffer.append(value.toString());\n buffer.append(\"\\n\");\n }\n return buffer.toString();\n }", "public String toString()\n {\n \tint tempIndex;\n \tStringBuilder statesStr = new StringBuilder(\"States: { \");\n \tfor(ComplexState state: states)\n \t\tstatesStr.append(state.getName() + \", \");\n\t\ttempIndex = statesStr.lastIndexOf(\",\");\n \tif(tempIndex != -1)\n \t\tstatesStr.deleteCharAt(statesStr.lastIndexOf(\",\"));\n \tstatesStr.append(\"}\\n\");\n \tStringBuilder initStatesStr = new StringBuilder(\"Initial states: { \");\n \tfor(ComplexState state: initialStates)\n \t\tinitStatesStr.append(state.getName() + \", \");\n \ttempIndex = initStatesStr.lastIndexOf(\",\");\n \tif(tempIndex != -1)\n \t\tinitStatesStr.deleteCharAt(initStatesStr.lastIndexOf(\",\"));\n \tinitStatesStr.append(\"}\\n\");\n \tStringBuilder transitionFuncStr = new StringBuilder(\"Transition relation: { \");\n \tArrayList<ComplexState> destStates = new ArrayList<ComplexState>();\n \tfor(ComplexState srcState: states) \n \t{\n \t\tdestStates = transitionRelation.get(srcState);\n \t\tif(destStates != null)\n\t \t\tfor(ComplexState destState: destStates)\n\t \t\t\ttransitionFuncStr.append(\"( \" + srcState.getName() + \", \" + destState.getName() + \" ), \" );\t\n \t}\n \ttempIndex = transitionFuncStr.lastIndexOf(\",\");\n \tif(tempIndex != -1)\n \t\ttransitionFuncStr.deleteCharAt(transitionFuncStr.lastIndexOf(\",\"));\n \ttransitionFuncStr.append(\"}\\n\");\n \tStringBuilder labelingFuncStr = new StringBuilder(\"Labeling function: { \");\n \tArrayList<AtomicProp> atomicProps = new ArrayList<AtomicProp>();\n \tfor(ComplexState state: states) \n \t{\n \t\tlabelingFuncStr.append(\"( \" + state.getName() + \", { \");\n \t\tatomicProps = state.getLabels();\n \t\tif(atomicProps != null)\n \t\t\tfor(AtomicProp ap: state.getLabels())\n \t\t\t\tlabelingFuncStr.append(ap.getName() + \", \");\n \t\ttempIndex = labelingFuncStr.lastIndexOf(\",\");\n \tif(tempIndex != -1)\n \t\tlabelingFuncStr.deleteCharAt(labelingFuncStr.lastIndexOf(\",\"));\n \t\tlabelingFuncStr.append(\"} ), \");\n \t}\n \ttempIndex = labelingFuncStr.lastIndexOf(\",\");\n \tif(tempIndex != -1)\n \t\tlabelingFuncStr.deleteCharAt(labelingFuncStr.lastIndexOf(\",\"));\n \tlabelingFuncStr.append(\"}\\n\"); \t\n \tString result = statesStr.toString() + initStatesStr.toString() + transitionFuncStr.toString() + labelingFuncStr.toString() + \"Type: \" + type.toString();\n \treturn result;\n }", "public String toString() {\n String mazeVisual = \"\";\n Maze routeMaze = this.getMaze();\n for (int row = 0; row < routeMaze.getTiles().size(); row++) {\n for (int col = 0; col < routeMaze.getTiles().get(0).size(); col++) {\n if (route.contains(routeMaze.getTiles().get(row).get(col))) {\n mazeVisual = (mazeVisual + \"*\");\n } else if (popped.contains(routeMaze.getTiles().get(row).get(col))) {\n mazeVisual = (mazeVisual + \"-\");\n } else {\n mazeVisual = (mazeVisual + routeMaze.getTiles().get(row).get(col).toString());\n }\n if ((col + 1) == routeMaze.getTiles().get(0).size()) {\n mazeVisual = mazeVisual + \"\\n\";\n }\n }\n }\n return mazeVisual;\n }", "public String stateToString(int row, int col) {\r\n if (!isValid(row, col)) {\r\n return INDEX_ERROR_MESSAGE;\r\n } else if (!isFree(row, col)) {\r\n return \"P\" + getState(row, col);\r\n }\r\n return \"**\";\r\n }", "public String toString() {\n String result=\"Initial state: 0\\nFinal state: \"+(transitionTable.length-1)+\"\\nTransition list:\\n\";\n for (int i=0;i<epsilonTransitionTable.length;i++) for (int state: epsilonTransitionTable[i])\n result+=\" \"+i+\" -- epsilon --> \"+state+\"\\n\";\n for (int i=0;i<transitionTable.length;i++) for (int col = 0; col< NFA.N; col++)\n if (transitionTable[i][col]!=-1) result+=\" \"+i+\" -- \"+(char)col+\" --> \"+transitionTable[i][col]+\"\\n\";\n return result;\n }", "public String state() {\n\treturn state(points, temperature, currentStateEnergy);\n }", "public String toString() {\n \n //call vertex names & coordinates helper function\n String firstHalf = vertexNamesAndCoordsToString();\n \n //call edges helper function\n String secondHalf = edgesLeavingVertexToString();\n \n //combine the first and second halves\n String stringMazeTotal = firstHalf + \"\\n\" + secondHalf;\n \n //return the result: the maze in string form\n return stringMazeTotal;\n \n }", "public String warStateToString() {\n StringBuilder s = new StringBuilder();\n\n if (aggressor instanceof Nation) {\n s.append(((Nation) aggressor).getName());\n } else if (aggressor instanceof Town) {\n s.append(((Town) aggressor).getName());\n }\n\n s.append(\" \");\n\n if (defender instanceof Nation) {\n s.append(((Nation) defender).getName());\n } else if (defender instanceof Town) {\n s.append(((Town) defender).getName());\n }\n\n s.append(\" \");\n\n s.append(aggressorPoints).append(\" \");\n s.append(defenderPoints).append(\" \");\n\n for (Town town : towns.keySet()) {\n s.append(town.getName()).append(\" \");\n s.append(towns.get(town)).append(\" \");\n }\n\n if (rebelwar != null)\n s.append(\" \").append(rebelwar.getName());\n else\n s.append(\" \" + \"n u l l\");\n\n return s.toString();\n }", "public String toString() {\n\t\treturn \"PushObstacleState\";\n\t}", "java.lang.String getState();", "public String toString()\n\t{\n\t\treturn \"tag = \" + Integer.toHexString (myTag) + \" MesiState = \" + myMesiState;\n\n\t}", "@Override\n public String toString() {\n StringBuilder s = new StringBuilder();\n int N = size();\n s.append(N + \"\\n\");\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++) {\n s.append(String.format(\"%2d \", tileAt(i,j)));\n }\n s.append(\"\\n\");\n }\n /*\n s.append(manhattan());\n s.append(\"\\n\");\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++) {\n s.append(String.format(\"%2d \", _goal[i][j]));\n }\n s.append(\"\\n\");\n }*/\n s.append(\"\\n\");\n return s.toString();\n }", "public String toString(){\n\t\tStringBuilder sb = new StringBuilder();\n\t\tif(isFlag()==true){\n\t\t\t\tif(isDownBlock()==true){\n\t\t\t\t\tsb.append(\"g\"); //use G represent the goal\n\t\t\t\t\t\t\t\t\t\t// if down block is a block use small letter\n\t\t\t\t}\n\t\t\t\telse if(isRobot()==true){\n\t\t\t\t\tsb.append(\"V\"); //flag and robot on same position VICTORY!\n\t\t\t\t}\n\t\t\t\telse sb.append(\"G\"); \t\t\n\t\t\t}\n\t\telse if(isRobot()==true){\n\t\t\tif(isDownBlock()==true){\n\t\t\t\tsb.append(\"r\");//use R represent the Robot\n\t\t\t\t\t// if down move is a block use small letter\n\t\t\t}\n\t\t\telse sb.append(\"R\");\n\t\t}\n\t\telse{\n\t\t\tif(isDownBlock()==true){\n\t\t\t\tsb.append(\"_\"); \n\t\t\t\t//if down move is blocked then use underline\n\t\t\t}\n\t\t\telse sb.append(\"O\"); // use o represent the grid\n\t\t}\n\t\t\t\n\t\tif(isRightBlock()==true){\n\t\t\tsb.append(\"|\"); //best way to represent right block\n\t\t}\n\t\telse{\n\t\t\tsb.append(\" \"); // if no block just a space\n\t\t}\n\t\treturn sb.toString();\n\t}", "@Override\n public String getState() {\n StringBuilder builder = new StringBuilder();\n StringBuilder listPitches = listAllPitches(this.getFinalBeat());\n int length = this.getFinalBeat();\n\n builder.append(listPitches);\n\n for (int i = 0; i < length; i++) {\n builder.append(\"\\n\" + padded(i, length) + notesToString(getNotesPlayingAtBeat(i), i));\n }\n return builder.toString();\n }", "String getState();", "String getState();", "String getState();", "public String getState() {\n\t\treturn state.toString();\n\t}", "public String toString(){\n \tif(state){\n\t\treturn (\"1\");\n\t }\n\t else{\n\t\t return(\"0\");\n\t }\n }", "public String mapToString() {\n\r\n\t\tString mapStr = \"b\";//Initialize the string and mark as map with \"b\"\r\n\t\tString tileStr = \"\";\r\n\r\n\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {//Loop through the tile map\r\n\r\n\t\t\t\ttileStr = \"[\";//Indicate new tile\r\n\r\n\t\t\t\t//Find the tile type and assign to string\r\n\t\t\t\tif (tileMap[i][j] instanceof GrassTile) {\r\n\t\t\t\t\ttileStr += \"0,0\";\r\n\t\t\t\t}else if (tileMap[i][j] instanceof WaterTile) {\r\n\t\t\t\t\ttileStr += \"1,0\";\r\n\t\t\t\t}else if (tileMap[i][j] instanceof ForestTile) {\r\n\t\t\t\t\ttileStr += \"2\";\r\n\t\t\t\t\ttileStr += \",\" + ((ForestTile)tileMap[i][j]).getQuantity();\r\n\t\t\t\t}else if (tileMap[i][j] instanceof MountainTile) {\r\n\t\t\t\t\ttileStr += \"3,0\";\r\n\t\t\t\t}else if (tileMap[i][j] instanceof ConoreTile) {\r\n\t\t\t\t\ttileStr += \"4\";\r\n\t\t\t\t\ttileStr += \",\" + ((ConoreTile)tileMap[i][j]).getQuantity();\r\n\t\t\t\t}else if (tileMap[i][j] instanceof KannaiteTile) {\r\n\t\t\t\t\ttileStr += \"5\";\r\n\t\t\t\t\ttileStr += \",\" + ((KannaiteTile)tileMap[i][j]).getQuantity();\r\n\t\t\t\t}else if (tileMap[i][j] instanceof FuelTile) {\r\n\t\t\t\t\ttileStr += \"6\";\r\n\t\t\t\t\ttileStr += \",\" + ((FuelTile)tileMap[i][j]).getQuantity();\r\n\t\t\t\t}else if (tileMap[i][j] instanceof OilTile) {\r\n\t\t\t\t\ttileStr += \"7\";\r\n\t\t\t\t\ttileStr += \",\" + ((OilTile)tileMap[i][j]).getQuantity();\r\n\t\t\t\t}else if (tileMap[i][j] instanceof DesertTile) {\r\n\t\t\t\t\ttileStr += \"8,0\";\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//Check if tile is powered\r\n\t\t\t\tif (tileMap[i][j].getPowered()) {\r\n\t\t\t\t\ttileStr += \",p\";\r\n\t\t\t\t}else {\r\n\t\t\t\t\ttileStr += \",o\";\r\n\t\t\t\t}\r\n\r\n\t\t\t\tmapStr += tileStr;\r\n\t\t\t\t//testCount++;\r\n\t\t\t\t//System.out.println(testCount + \": \" + tileStr);\t\t\t\t\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\t//mapStr += \"[\";\r\n\t\t//System.out.println(mapStr); //TEST OUTPUT\r\n\t\tmapStr += \"[1,0,o\";\r\n\t\treturn mapStr;\r\n\t}", "@Override\n\tpublic String toString() {\n\t\tfinal StringBuffer buffer = new StringBuffer();\n\t\tbuffer.append(super.toString());\n\t\tbuffer.append('\\n');\n\t\tfor (final State state : getStates()) {\n\t\t\tif (initialState == state) {\n\t\t\t\tbuffer.append(\"--> \");\n\t\t\t}\n\t\t\tbuffer.append(state);\n\t\t\tif (isFinalState(state)) {\n\t\t\t\tbuffer.append(\" **FINAL**\");\n\t\t\t}\n\t\t\tbuffer.append('\\n');\n\t\t\tfor (final Transition transition : getTransitionsFromState(state)) {\n\t\t\t\tbuffer.append('\\t');\n\t\t\t\tbuffer.append(transition);\n\t\t\t\tbuffer.append('\\n');\n\t\t\t}\n\t\t}\n\n\t\treturn buffer.toString();\n\t}", "@Override\n\tpublic String toString(){\n\t\treturn \"com.jcdeck.adversary.State Turn: \"+this.getTurn()+\" Depth: \"+this.depth;\n\t}", "private String transitionTable() {\r\n\r\n\t\tString transitionTable = \"\t\";\r\n\t\tchar[][] matrix = new char[numStates.size() + 1][alphabet.size() + 1];\r\n\t\tStringBuilder bldmatrix = new StringBuilder();\r\n\r\n\t\tfor (int i = 0; i < matrix.length; i++) {\r\n\t\t\tfor (int j = 0; j < matrix[i].length; j++) {\r\n\t\t\t\tif (i == 0) {\r\n\t\t\t\t\tif (j == 0) {\r\n\t\t\t\t\t\tmatrix[i][j] = ' ';\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tArrayList<Character> trans = new ArrayList<>(alphabet);\r\n\t\t\t\t\t\tmatrix[i][j] = trans.get(j - 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (j == 0) {\r\n\t\t\t\t\t\tmatrix[i][j] = numStates.get(i - 1).getName().charAt(0);\r\n\r\n\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\tArrayList<Character> trans2 = new ArrayList<>(alphabet);\r\n\t\t\t\t\t\tmatrix[i][j] = ((NFAState) getToState(numStates.get(i - 1), trans2.get(j - 1))).getName()\r\n\t\t\t\t\t\t\t\t.charAt(0);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (int x = 0; x < matrix.length; x++) {\r\n\t\t\tfor (int y = 0; y < matrix[x].length; y++) {\r\n\t\t\t\tbldmatrix.append(\"\\t\" + matrix[x][y]);\r\n\r\n\t\t\t}\r\n\t\t\tbldmatrix.append(\"\\n\");\r\n\t\t}\r\n\r\n\t\ttransitionTable = bldmatrix.toString();\r\n\r\n\t\treturn transitionTable;\r\n\r\n\t}", "public String toString() {\n\t\tString resultString = \"\\r\\n\";\n\t\t//resultString += \"Checkerboard state: \\r\\n\";\n\t\tfor (int i = 0; i < checkerboard.length; i++) {\n\t\t\tfor (int j = 0; j < checkerboard.length; j++) {\n\t\t\t\tif (checkerboard[i][j] == WHITE) {\n\t\t\t\t\tresultString += \"o \";\n\t\t\t\t} else if (checkerboard[i][j] == BLACK) {\n\t\t\t\t\tresultString += \"x \";\n\t\t\t\t} else {\n\t\t\t\t\tresultString += \"- \";\n\t\t\t\t}//Of if\n\t\t\t}//Of for j\n\t\t\tresultString += \"\\r\\n\";\n\t\t}//Of for i\n\t\t\n\t\tresultString += currentState;\n\n\t\t//resultString += \"\\r\\nThe current situation is: \" + gameSituation;\n\t\treturn resultString;\n\t}", "public String toString() {\n try {\n StringBuilder sb = new StringBuilder();\n sb.append((\"STATES\") + System.getProperty(\"line.separator\"));\n sb.append((\"-----------\") + System.getProperty(\"line.separator\"));\n sb.append(statesToString());\n sb.append((\"TRANSITIONS\") + System.getProperty(\"line.separator\"));\n sb.append((\"-------------------\") + System.getProperty(\"line.separator\"));\n sb.append(transitionsToString());\n return sb.toString();\n } catch (RuntimeException sbe) {\n throw sbe;\n } catch (Exception sbe) {\n throw new RuntimeException(sbe);\n }\n }", "public String toString()\n {\n String ret = \"\";\n String s = adjMaps.toString();\n String[] parts = s.split(\"},\");\n for(int i=0; i< parts.length; i++){\n ret += parts[i] + \"}\\n\";\n }\n return ret;\n }", "public String toString() {\n\treturn state.toString() + \" \" + context.toString();\n }", "public String stateToCheckerboardString(int paraState) {\n\t\tint[][] tempCheckerboard = stateToCheckerboard(paraState);\n\t\tString resultString = \"\\r\\n\";\n\t\t//resultString += \"Checkerboard state: \\r\\n\";\n\t\tfor (int i = 0; i < tempCheckerboard.length; i++) {\n\t\t\tfor (int j = 0; j < tempCheckerboard[0].length; j++) {\n\t\t\t\tif (tempCheckerboard[i][j] == WHITE) {\n\t\t\t\t\tresultString += \"o \";\n\t\t\t\t} else if (tempCheckerboard[i][j] == BLACK) {\n\t\t\t\t\tresultString += \"x \";\n\t\t\t\t} else {\n\t\t\t\t\tresultString += \"- \";\n\t\t\t\t}//Of if\n\t\t\t}//Of for j\n\t\t\tresultString += \"\\r\\n\";\n\t\t}//Of for i\n\t\t\n\t\t//resultString += currentState;\n\t\treturn resultString;\n\t}", "public static String saveState() {\n \n // 1) Encode the state to XML\n ByteArrayOutputStream bout = new ByteArrayOutputStream();\n StaticsXMLEncoder encoder = new StaticsXMLEncoder(bout);\n encoder.writeObject(Exercise.getExercise().getState());\n encoder.close();\n byte[] xmlData = bout.toByteArray();\n \n // 2) Zip it\n Deflater deflater = new Deflater();\n deflater.setInput(xmlData);\n deflater.finish();\n \n ByteArrayOutputStream zout = new ByteArrayOutputStream();\n byte[] partialData = new byte[1024];\n int dataCompressed;\n while ((dataCompressed = deflater.deflate(partialData)) != 0) {\n zout.write(partialData, 0, dataCompressed);\n }\n \n byte[] compressedData = zout.toByteArray();\n deflater.deflate(compressedData);\n \n // 3) Encode it with Base64 for convenience\n String encodedData = Base64.encodeBytes(compressedData);\n return encodedData;\n }", "public String getState(float time) {\n\n // Handling of negative time\n if (time <= 0f) {\n return String.format(FORMAT, time, this.x, this.y);\n }\n // Calculation of maximum time of flight for if the given time is greater */\n float initialTime = time;\n float timeOfFlight = (2 * vy) / g;\n //Handling time being greater than time of flight\n if (time > timeOfFlight) {\n time = timeOfFlight;\n }\n //Calculation of position\n float x = this.vx * time + this.x;\n float y = this.vy * time + .5f * -g * (float) Math.pow(time, 2) + this.y;\n\n return String.format(FORMAT, initialTime, x, y);\n }", "public int getStateOfTheMaze() {\n return this.stateOfTheMaze;\n }", "private String cleanStateInformation(GameState gs) {\n\t String sGame = gs.toString().replace(\"\\n\", \"\");\n\t sGame = sGame.substring(sGame.indexOf(\"PhysicalGameState:\")); \n\t sGame = sGame.replace(\"PhysicalGameState:\", \"\").trim();\n\t return sGame;\n\t }", "public String getStateString()\r\n\t{\r\n\t\treturn stateString;\r\n\t}", "public String toString() {\n //arena info\n String locations = \"The arena is \" + xSize + \" x \" + ySize;\n //pieces info\n for (Pieces d : drones) {\n locations += \"\\n\";\n locations += d.toString();\n }\n\n return locations;\n }", "public String toString(){\n return this.tileType.toString() + this.position + this.orientation;\n }", "public String getStateString()\n {\n return stateString;\n }", "@Override\n public String toString() {\n StringBuilder output = new StringBuilder();\n for (Tile[] tiles : this.map) {\n StringBuilder line = new StringBuilder();\n for (Tile tile : tiles) {\n if (tile.isVisible()) {\n if (tile.isInhabited()) {\n tile.sortInhabitants();\n line.append(tile.getInhabitants().get(0).getSymbol());\n } else {\n Terrain terrain = tile.getTerrain();\n if (terrain == Terrain.EMPTY) {\n line.append(\" \");\n } else {\n line.append(\"#\");\n }\n }\n } else {\n line.append(\".\");\n }\n if (Main.BETTER_GRAPHICS) line.append(\" \");\n }\n line.append(\" \");\n line.append(\"\\n\");\n output.append(line);\n }\n return output.toString();\n }", "public void printStateInt() {\n StringBuilder out = new StringBuilder();\n for (int r = 0; r < rows; r++) {\n out.append(\"[\");\n for (int c = 0; c < columns; c++) {\n int number = currentState[r][c];\n out.append(number);\n if (number < 10) {\n out.append(\" \");\n }\n if (c != columns - 1)\n out.append(\" \");\n }\n out.append(\"]\");\n if (r != rows - 1)\n out.append(\"\\n\");\n\n }\n System.out.println(out);\n }", "public String toString() {\n StringBuilder res = new StringBuilder();\n res.append(n + \"\\n\");\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++)\n res.append(String.format(\" %2d \", tileAt(i, j)));\n res.append(\"\\n\");\n }\n return res.toString();\n }", "@Override\n public String toString() {\n StringBuilder builder = new StringBuilder();\n\n for (int row = 0; row < this.getNumberOfRows(); row++) {\n for (int column = 0; column < this.getNumberOfCols(); column++) {\n\n if (row == this.getState()[0] && column == this.getState()[1])\n builder.append(\"* \");\n else\n builder.append(Integer.toString(this.getEnvironment()[row][column]) + ' ');\n\n }\n\n if (row != (this.getNumberOfRows() - 1))\n builder.append('\\n');\n }\n\n return builder.toString();\n }", "public String getState()\r\n\t{\r\n\t\treturn state.getModelObjectAsString();\r\n\t}", "public String toString() {\r\n\t\treturn (\"State: \" + this.key + \", Value: \" + this.val);\r\n\t}", "public String toString() {\n PrintfFormat str = new PrintfFormat();\n\n str.append (\"The current state of the MRG32k3a\");\n if (name != null && name.length() > 0)\n str.append (\" \" + name);\n str.append (\":\" + PrintfFormat.NEWLINE + \" Cg = { \");\n str.append ((long) Cg0 + \", \");\n str.append ((long) Cg1 + \", \");\n str.append ((long) Cg2 + \", \");\n str.append ((long) Cg3 + \", \");\n str.append ((long) Cg4 + \", \");\n str.append ((long) Cg5 + \" }\" + PrintfFormat.NEWLINE +\n PrintfFormat.NEWLINE);\n\n return str.toString();\n }", "public String FormatState(String state)\n {\n String formatState = state;\n \n if(formatState.length() == 2)\n {\n formatState = formatState.toUpperCase();\n } else\n {\n formatState = formatState.toLowerCase().replaceAll(\" \", \"\"); //replace all spaces with a blank\n\n if(formatState.contains(\"new\"))\n {\n //grab the string \"new\" and put a space after it\n formatState = formatState.substring(0, 2) + \" \" + formatState.substring(3);\n } else if(formatState.contains(\"rhode\") || formatState.contains(\"north\") || formatState.contains(\"south\"))\n {\n //grab the string \"rhode\" and put a space after it\n formatState = formatState.substring(0, 4) + \" \" + formatState.substring(5);\n } else if(formatState.contains(\"district\"))\n {\n //grab the string \"district\" and put a space after it\n formatState = formatState.substring(0, 7) + \" \" + formatState.substring(8, 9) + \" \" + formatState.substring(10);\n } else if(formatState.contains(\"west\"))\n {\n //grab the string \"west\" and put a space after it\n formatState = formatState.substring(0, 3) + \" \" + formatState.substring(4);\n }\n\n char[] stateChar = formatState.toCharArray(); //convert the formatted string to a character array\n boolean previousCharIsLetter = false;\n formatState = \"\";\n \n /**\n * This for loop loops through the character array. It attempts to find the start of a word and capitalize it.\n * If a word is after a space, it is a new word. If not, it will keep looping until the character array has been\n * completely gone through to reformat the string (ex: new york -> New York .. if it were somehow nEw yOrK -> New York).\n */\n for(int i = 0; i < stateChar.length; i++)\n {\n if(!previousCharIsLetter && Character.isLetter(stateChar[i]))\n {\n stateChar[i] = Character.toUpperCase(stateChar[i]);\n previousCharIsLetter = true;\n } else if(Character.isWhitespace(stateChar[i])) //if the character is a space\n {\n previousCharIsLetter = false;\n }\n \n formatState += stateChar[i];\n }\n }\n \n return formatState;\n }", "private String gameStateToString() // Convert the game state into a string type.\n\t{\n\t\tString getGameStateString = \"\";\n\n\t\tswitch (gameState) // Check the state of the game and change the messages as needed.\n\t\t{\n\t\tcase waitingForStart:\n\t\t\tgetGameStateString = \"waitingForStart\";\n\t\t\tbreak;\n\t\tcase gameWelcome:\n\t\t\tgetGameStateString = \"gameWelcome\";\n\t\t\tbreak;\n\t\tcase decideWhoGoesFirst:\n\t\t\tgetGameStateString = \"decideWhoGoesFirst\";\n\t\t\tbreak;\n\t\tcase twoPlayersPlayerOneGoesFirst:\n\t\t\tgetGameStateString = \"twoPlayersPlayerOneGoesFirst\";\n\t\t\tbreak;\n\t\tcase twoPlayersPlayerTwoGoesFirst:\n\t\t\tgetGameStateString = \"twoPlayersPlayerTwoGoesFirst\";\n\t\t\tbreak;\n\t\tcase twoPlayersNowPlayerOnesTurn: \n\t\t\tgetGameStateString = \"twoPlayersNowPlayerOnesTurn\";\n\t\t\tbreak;\n\t\tcase twoPlayersNowPlayerTwosTurn:\n\t\t\tgetGameStateString = \"twoPlayersNowPlayerTwosTurn\";\n\t\t\tbreak;\n\t\tcase aPlayerHasWon:\n\t\t\tgetGameStateString = \"aPlayerHasWon\";\n\t\t\tbreak;\t\n\t\t}\n\n\t\treturn getGameStateString;\n\n\t}", "public String toString() {\n\t\tif (justnow.equals(\"east\")){\n\t\t\treturn \">\";\n\t\t}\n\t\tif (justnow.equals(\"south\")){\n\t\t\treturn \"v\";\n\t\t}\n\t\tif (justnow.equals(\"west\")){\n\t\t\treturn \"<\";\n\t\t}\n\t\tif (justnow.equals(\"north\")){\n\t\t\treturn \"^\";\n\t\t}\n\t\telse{\n\t\t\treturn \">\";\n\t\t}\n\t}", "String printMaze(boolean showBarriers);", "public String boardCellToString() {\n String str;\n Integer convertX, convertY;\n //adjusting the co'ordinates because the board starts at 1 not 0\n convertX=this.xCor + 1;\n convertY= this.yCor + 1;\n str = \"(\" + convertX.toString() + \",\" + convertY.toString() + \")\";\n return str;\n }", "@Override\n public String toString() {\n\n \n String str = \"\";\n for(int rowIndex = 0; rowIndex < this.board.length; rowIndex++) {\n \n for(int columnIndex = 0; columnIndex < this.board[rowIndex].length; columnIndex++) {\n\n switch (this.board[rowIndex][columnIndex]) {\n case IBoardState.symbolOfInactiveCell:\n str += \"*|\";\n break;\n case IBoardState.symbolOfEmptyCell:\n str += \"0|\";\n break;\n case IBoardState.symbolOfFirstPlayer:\n str += \"1|\";\n break;\n case IBoardState.symbolOfSecondPlayer:\n str += \"2|\";\n break;\n }\n\n }\n str +=\"\\n\";\n }\n return str;\n }", "public String toString()\n {\n return super.toString() + \":\\n\" + getMap();\n }", "public String toString()\n\t{\n\n\t\treturn String.format(City+\",\"+State);\n\n\t}", "public String toString( )\n{ \n String s=\"\\nThe Mines\\n \";\n for ( int r = 0; r < rows; r++ )\n {\n for ( int c = 0; c < cols ; c++ )\n s = s + theMines[ r ][ c ] + \" \";\n s = s + \" \\n \" ;\n }\n s += \"\\nMined neighbor counts\\n \";\n for ( int r = 0; r < rows; r++ )\n {\n for ( int c = 0; c < cols ; c++ )\n if( theCounts[ r ][ c ] == 9 )\n s = s + \"X\" + \" \";\n else\n s = s + theCounts[ r ][ c ] + \" \";\n s = s + \" \\n \" ;\n } \n return( s );\n}", "public String getStateAsString() {\n return storeStateIntoString();\n }", "public String getTree ( ) {\n\n String tree;\n StringWriter s = new StringWriter();\n PrintWriter out = null;\n\n try {\n out = new PrintWriter(s);\n } catch ( Exception ex ) {};\n\n program.printIndividual(param.Parameters.STATE, out);\n\n tree = s.toString();\n String list2[] = tree.split(\"\\n\");\n\n out.close();\n try { s.close(); } catch ( Exception e ) {};\n\n return list2[list2.length - 1];\n\n }", "public String toString(){\n\t\tStringBuilder s = new StringBuilder(\"\");\n\t\ts.append(\"\\nMD2 Model details\\n\");\n\t\ts.append(\"\\tThere are \" + numFrames + \" key framess\\n\");\n\t\ts.append(\"\\tThere are \"+ point.length + \" points (XYZ coordinates)\\n\");\n\t\ts.append(\"\\tFor rendering there are \" + glComannd.length + \" triangle strips/fans\\n\");\n\t\ts.append(\"\\t and these have \" + glVertex.length + \" vertex definitions\\n\");\n\t\ts.append(\"\\tThere are \" + state.length + \" animation sequences\\n\");\n\t\ts.append(\"Estimated memory used \" + memUsage() + \" bytes for model excluding texture.\");\n\n\t\treturn new String(s);\n\t}", "public String toString() {\r\n return \"Zip: \" + getZip() +\r\n \" City: \" + getCity() +\r\n \" State: \" + getState();\r\n }", "private void dumpState() {\r\n\t\tfor (TextChunk location : locationalResult) {\r\n\t\t\tlocation.printDiagnostics();\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "public String toString() {\r\n\treturn \"batch image builder for:\\n\\tnew state: \"/*nonNLS*/ + getNewState();\r\n}", "@Override\n\tpublic String toString() {\n\t\treturn \"New Game State\";\n\t}", "public void printCurrentState() {\n\t\tfor (int i = 0; i < 9; i++) {\n\t\t\tfor (int j = 0; j < 9; j++) {\n\t\t\t\tSystem.out.print(this.currentState[i][j] + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "public String transform(GeoState geoState)\n {\n\n String toolTipText = \"\";\n try\n {\n\n toolTipText = \"GIPSY Tier Name: \"\n + verticesRegister.getSeedVertices().get(geoState)\n .getTierName();\n\n }\n catch (Exception e)\n {\n System.err\n .println(\"- SimulationController.java: An error has occured while constructing the node text tool tips.\");\n System.err.println(e.getStackTrace());\n }\n\n return toolTipText;\n }", "public java.lang.String getStateMessage() {\n java.lang.Object ref = stateMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n stateMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String toString() {\n if (this.size() <= 0) {\n return \"{}\";\n }\n StringBuilder stringBuilder = new StringBuilder(this.mSize * 28);\n stringBuilder.append('{');\n int n2 = 0;\n do {\n if (n2 >= this.mSize) {\n stringBuilder.append('}');\n return stringBuilder.toString();\n }\n if (n2 > 0) {\n stringBuilder.append(\", \");\n }\n stringBuilder.append(this.keyAt(n2));\n stringBuilder.append('=');\n E e2 = this.valueAt(n2);\n if (e2 != this) {\n stringBuilder.append(e2);\n } else {\n stringBuilder.append(\"(this Map)\");\n }\n ++n2;\n } while (true);\n }", "@Override\n\tpublic String toString()\n\t{\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tbuffer.append(\"Init: \" + initialState.toString() + \"\\n\");\n\t\tbuffer.append(\"Goal: \" + explicitGoal.toString() + \"\\n\");\n\t\tbuffer.append(\"Vars: \");\n\t\tfor (int var = 0; var < variableNames.size(); var++)\n\t\t{\n\t\t\tbuffer.append(var + \":\" + domainSizes.get(var) + \" \");\n\t\t}\n\t\tbuffer.append(\"\\n\");\n\t\tbuffer.append(\"Num ops: \" + getOperators().size() + \"\\n\");\n\t\treturn buffer.toString();\n\t}", "@Override\n public String toString() {\n String result = \"\";\n\n for (int position = 0; position < 64; position++) {\n if (position > 0) {\n if (position % 16 == 0) { // New level\n result += '|';\n } else if (position % 4 == 0) {\n result += ' '; // New row\n }\n }\n result += get(position);\n }\n return result;\n }", "public final String cur_modstate_string () {\n\t\treturn get_modstate_as_string (modstate);\n\t}", "@Output\n public String getState() {\n return state;\n }", "@Override\n\tpublic String toString(){\n\t\t// return a string of the board representation following these rules:\n\t\t// - if printed, it shows the board in R rows and C cols\n\t\t// - every cell should be represented as a 5-character long right-aligned string\n\t\t// - there should be one space between columns\n\t\t// - use \"-\" for empty cells\n\t\t// - every row ends with a new line \"\\n\"\n\t\t\n\t\t\n\t\tStringBuilder sb = new StringBuilder(\"\");\n\t\tfor (int i=0; i<numRows; i++){\n\t\t\tfor (int j =0; j<numCols; j++){\n\t\t\t\tPosition pos = new Position(i,j);\n\t\t\t\t\n\t\t\t\t// use the hash table to get the symbol at Position(i,j)\n\t\t\t\tif (grid.contains(pos))\n\t\t\t\t\tsb.append(String.format(\"%5s \",this.get(pos)));\n\t\t\t\telse\n\t\t\t\t\tsb.append(String.format(\"%5s \",\"-\")); //empty cell\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\treturn sb.toString();\n\n\t}", "public String getAtmState();", "public String toString()\n\t{\n\t\tStringBuilder matrix = new StringBuilder();\n\t\t\n\t\tfor(int i = 0; i < numberOfVertices; i++)\n\t\t{\n\t\t\tmatrix.append(i + \": \");\n\t\t\tfor(boolean j : adjacencyMatrix[i])\n\t\t\t{\n\t\t\t\tmatrix.append((j? 1: 0) + \" \");\n\t\t\t}\n\t\t\tmatrix.append(\"\\n\");\n\t\t}\n\t\t\n\t\treturn matrix.toString();\n\t}", "public String buildDotString(){\n\t\tString ret=\"digraph NFA{\\n\";\n\t\tint numStarts=0;\n\t\tfor (State s : theStates){\n\t\t\tif(s.getAccept())\n\t\t\t\tret+=\"\\t\"+s.getIndex()+\"[shape=doublecircle]\\n\";\n\t\t\tif(s.getStart()){\n\t\t\t\tString startlbl=\"start\"+(numStarts++);\n\t\t\t\tret+=\"\\t\"+startlbl+\"[shape=none,label=\\\"\\\"]\\n\";\n\t\t\t\tret+=\"\\t\"+startlbl+\"->\"+s.getIndex()+\"[color=green]\\n\";\n\t\t\t}\n\t\t\tfor (Object withChar : s.getToStates().keySet()){\n\t\t\t\t//TODO: combine arrows with same from/to\n\t\t\t\tfor (Integer toNode : (ArrayList<Integer>)s.getToStates().get(withChar)){\n\t\t\t\t\t//find similar arrows\n\t\t\t\t\tString arrowName=(String)withChar;\n\t\t\t\t\t/*for (Object otherChar : s.getToStates().keySet()){\n\t\t\t\t\t\tfor (Integer sameNodeIdx : (ArrayList<Integer>)s.getToStates().get(withChar)){\n\t\t\t\t\t\t\tif(sameNodeIdx==toNode) arrowName+=\",\"+otherChar;\n\t\t\t\t\t\t}\n\t\t\t\t\t}*/\n\t\t\t\t\tret+=\"\\t\"+s.getIndex()+\" -> \"+toNode+\"[label=\\\"\"+arrowName+\"\\\"]\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tret+=\"}\";\n\t\treturn ret;\n\t}", "public String getStateOfBoard()\n {\n // This function is used to print state of the board. such as number of coins present on the board\n String str=\"\";\n str += \"Black_Coins Count:\"+this.gameController.getCoinsCount(CoinType.BLACK) +\" Red_Coins Count:\"+this.gameController.getCoinsCount(CoinType.RED);\n return str;\n }", "public java.lang.String getState() {\n java.lang.Object ref = state_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n state_ = s;\n }\n return s;\n }\n }", "public String getPlayerState() {\n String playerState = name + \" \" + actionArray[0] \n + \" \" + actionArray[1] + \" \" + actionArray[2] + \" \" + colorID + \" \";\n return playerState;\n }", "public java.lang.String getState() {\n java.lang.Object ref = state_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n state_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getState() {\n\t\treturn this.state_rep;\n\t}", "public String toString() {\n return gate;\n }", "public String toString()\r\n/* 112: */ {\r\n/* 113:199 */ String s = \"\";\r\n/* 114:200 */ for (N node : getNodes())\r\n/* 115: */ {\r\n/* 116:201 */ s = s + \"\\n{ \" + node + \" \";\r\n/* 117:202 */ for (N suc : getSuccessors(node)) {\r\n/* 118:203 */ s = s + \"\\n ( \" + getEdge(node, suc) + \" \" + suc + \" )\";\r\n/* 119: */ }\r\n/* 120:205 */ s = s + \"\\n} \";\r\n/* 121: */ }\r\n/* 122:207 */ return s;\r\n/* 123: */ }", "@Override\r\n\tpublic String toString() {\r\n\t\treturn \"State: \" + state + \" Action: \" + action + \" Path Cost: \" + pathCost + \"Parent:\\n\" + parent;\r\n\t}", "public String idToState(int id);", "public String toString() {\n StringBuilder s = new StringBuilder();\n String NEWLINE = System.getProperty(\"line.separator\");\n s.append(vertices + \" \" + NEWLINE);\n for (int v = 0; v < vertices; v++) {\n s.append(String.format(\"%d: \", v));\n for (Map.Entry<Integer, Integer> e : adjacent(v).entrySet()) {\n s.append(String.format(\"%d (%d) \", e.getKey(), e.getValue()));\n }\n s.append(NEWLINE);\n }\n return s.toString();\n }", "@Override\n\tpublic String toString() {\t\t\n\t\treturn \"mirMap:\\n\" + mapToString(mirMap) + \"\\ngeneMap:\\n\" + mapToString(geneMap);\n\t}", "public String toString(){\n //KEY --------\n // WHITE WALL = WW\n // WHITE ROAD = WR\n // WHITE CAPSTONE = WC\n // BLACK WALL = BW\n // BLACK ROAD = BR\n // BLACK CAPSTONE = BC\n // EMPTY = \"blank\"\n\n StringBuilder builder = new StringBuilder();\n\n /*TOP ROW*/ builder.append(\"\\t\"); for(int i = 0; i < SIZE; i++){ builder.append(i + \"\\t\");} builder.append(\"\\n\\n\");\n /*REST OF THE ROWS*/ \n for(int x = 0; x < SIZE; x++){\n builder.append(x + \"\\t\");\n for(int y = 0; y < SIZE; y++){\n TakStack current = stacks[y][x]; \n if(!current.isEmpty()){\n builder.append(getPieceString(current.top()));\n }\n builder.append(\"\\t\");\n }\n builder.append(\"\\n\\n\");\n }\n\n\n //BUILDER RETURN\n return builder.toString();\n }", "@java.lang.Override\n public java.lang.String getStateMessage() {\n java.lang.Object ref = stateMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n stateMessage_ = s;\n return s;\n }\n }", "public String toString() {\n StringBuilder s = new StringBuilder();\n s.append(this.dim + \"\\n\");\n int counter = 0;\n for (int i = 0; i < this.dim; i++) {\n for (int j = 0; j < this.dim; j++) {\n int n = tiles[counter++];\n s.append(String.format(\"%2d \", n));\n }\n s.append(\"\\n\");\n }\n return s.toString();\n }", "public String toString()\n\t{\n\t\treturn \"Current Floor: \" + currentFloor +\" Total passangers on board: \" + totalPassengers + \" Direction: \" + currentDirection;\n\t}", "public double[] getState(){\n if (AgentType.Abstraction == SimpleExperiment.activeAgentType) {\n // Abstraction agent type\n return this.getCustomState();\n }\n else {\n // System.out.println(\"E[\" + marioEgoPos[0] + \",\" + marioEgoPos[1] + \"] F[\" + marioFloatPos[0] + \",\" + marioFloatPos[1] + \"]\");\n\n // other agent type\n double[] state = new double[10];\n\n // CLOSEST TWO ENEMIES\n state[0] = isMarioAbleToJump ? 1 : 0;\n state[1] = isMarioOnGround ? 1 : 0;\n state[2] = isMarioAbleToShoot ? 1 : 0;//marioMode;//\n float xdiff = marioFloatPos[0] - prevMarioPos[0];\n float ydiff = marioFloatPos[1] - prevMarioPos[1];\n state[3] = xdiff < 0 ? 0 : (xdiff == 0 ? 1 : 2);\n state[3] += 3*(ydiff < 0 ? 0 : (ydiff == 0 ? 1 : 2));\n\n state[4] = enemies(1, 0);\n state[5] = enemies(3, 1);\n state[6] = 0;//enemies(5, 3);\n\n state[7] = obstacle();\n\n int[] enemy = closestEnemy();\n if(Math.abs(enemy[0]) < 11 && Math.abs(enemy[1]) < 11){\n state[8] = enemy[0]+10;\n state[9] = enemy[1]+10;\n } else {\n state[8] = 21;\n state[9] = 21;\n }\n\n //state[10] = marioFloatPos[0];\n //state[11] = marioFloatPos[1];\n\n return state;\n }\n }", "public String toString(){\r\n\t\tif (modifiers == 1) return \"O-O (w)\";\r\n\t\telse if (modifiers == 2) return \"O-O (b)\";\r\n\t\telse if (modifiers == 3) return \"O-O-O (w)\";\r\n\t\telse if (modifiers == 4) return \"O-O-O (b)\";\r\n\t\tString st = \"\";\r\n\t\tst += x88ToString(start_sq);\r\n\t\tst += x88ToString(end_sq);\r\n\t\tif (modifiers == 5) st += \"e.p.\";\r\n\t\telse if (modifiers == 6) st += \"=R\";\r\n\t\telse if (modifiers == 7) st += \"=N\";\r\n\t\telse if (modifiers == 8) st += \"=B\";\r\n\t\telse if (modifiers == 9) st += \"=Q\";\r\n\t\treturn st;\r\n\t}", "com.google.protobuf.ByteString\n getStateBytes();", "public String toString(){\n\t\tString str = \"<Route: \";\n\t\tfor(int i=0; i<visits.size(); i++){\n\t\t\tVisit v = visits.get(i);\n\t\t\tstr += \"\\t\"+i+\": \"+ v +\"\\t\"+ \"At time: \"+arrivalTimes.get(i)+\"->\"+departureTimes.get(i);\n\t\t\tif(locked.get(i)) str += \" locked\";\n\t\t\tstr += \"\\n\";\n\t\t}\n\t\tstr += \"\\t\"+visits.get(0);\n\t\treturn str+\">\";\n\t}" ]
[ "0.68302786", "0.67191416", "0.66623265", "0.63752645", "0.637233", "0.63309664", "0.6278039", "0.6256229", "0.62253225", "0.6211182", "0.6163669", "0.6156872", "0.615581", "0.6140048", "0.6071981", "0.6069023", "0.60685724", "0.60563254", "0.60334784", "0.59981173", "0.5997395", "0.59822655", "0.5955788", "0.5923895", "0.592378", "0.5887449", "0.5887449", "0.5887449", "0.58849525", "0.5874915", "0.58403397", "0.58401304", "0.58360237", "0.5820145", "0.5815134", "0.57844096", "0.5775643", "0.57295376", "0.56858057", "0.56843084", "0.56777346", "0.5671069", "0.5647071", "0.5643281", "0.5638384", "0.5630523", "0.5622397", "0.56142306", "0.55943775", "0.5554778", "0.55516297", "0.5538281", "0.55347186", "0.5506648", "0.54892796", "0.548172", "0.54654783", "0.5456665", "0.54436576", "0.54421943", "0.54392827", "0.5438861", "0.54373866", "0.5425718", "0.5423256", "0.5422203", "0.5420087", "0.5400518", "0.53952324", "0.53830755", "0.53799105", "0.5373508", "0.53727955", "0.5367383", "0.53651017", "0.5362644", "0.534978", "0.5345829", "0.5338299", "0.5334911", "0.53331697", "0.53246", "0.5316415", "0.53096175", "0.53028965", "0.53024477", "0.5292613", "0.5291154", "0.52883047", "0.52718985", "0.5261622", "0.52467686", "0.5242317", "0.5237488", "0.52352065", "0.52337503", "0.52328837", "0.52294785", "0.521931", "0.5218846", "0.52096486" ]
0.0
-1
A List of InputField for this mapping.
@JsonProperty("input_fields") @ApiModelProperty(value = "A List of InputField for this mapping.") public List<InputField> getInputFields() { return inputFields; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.util.List<org.hyperledger.fabric.protos.token.Transaction.InputId> \n getInputsList();", "java.util.List<org.hyperledger.fabric.protos.token.Transaction.InputId> \n getInputsList();", "java.util.List<org.hyperledger.fabric.protos.token.Transaction.InputId> \n getInputsList();", "public java.util.List<org.hyperledger.fabric.protos.token.Transaction.InputId> getInputsList() {\n if (inputsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(inputs_);\n } else {\n return inputsBuilder_.getMessageList();\n }\n }", "public java.util.List<org.hyperledger.fabric.protos.token.Transaction.InputId> getInputsList() {\n if (inputsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(inputs_);\n } else {\n return inputsBuilder_.getMessageList();\n }\n }", "public java.util.List<org.hyperledger.fabric.protos.token.Transaction.InputId> getInputsList() {\n if (inputsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(inputs_);\n } else {\n return inputsBuilder_.getMessageList();\n }\n }", "java.util.List<? extends org.hyperledger.fabric.protos.token.Transaction.InputIdOrBuilder> \n getInputsOrBuilderList();", "java.util.List<? extends org.hyperledger.fabric.protos.token.Transaction.InputIdOrBuilder> \n getInputsOrBuilderList();", "java.util.List<? extends org.hyperledger.fabric.protos.token.Transaction.InputIdOrBuilder> \n getInputsOrBuilderList();", "public ArrayList<GUIInput> getInputs(){\n return new ArrayList<>();\n }", "public List<String> getInputList() {\r\n\t\treturn inputList;\r\n\t}", "public java.util.List<? extends org.hyperledger.fabric.protos.token.Transaction.InputIdOrBuilder> \n getInputsOrBuilderList() {\n if (inputsBuilder_ != null) {\n return inputsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(inputs_);\n }\n }", "public java.util.List<? extends org.hyperledger.fabric.protos.token.Transaction.InputIdOrBuilder> \n getInputsOrBuilderList() {\n if (inputsBuilder_ != null) {\n return inputsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(inputs_);\n }\n }", "public java.util.List<? extends org.hyperledger.fabric.protos.token.Transaction.InputIdOrBuilder> \n getInputsOrBuilderList() {\n if (inputsBuilder_ != null) {\n return inputsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(inputs_);\n }\n }", "List<String> getListInput(String fieldName);", "public java.util.List<org.hyperledger.fabric.protos.token.Transaction.InputId> getInputsList() {\n return inputs_;\n }", "public java.util.List<org.hyperledger.fabric.protos.token.Transaction.InputId> getInputsList() {\n return inputs_;\n }", "public java.util.List<org.hyperledger.fabric.protos.token.Transaction.InputId> getInputsList() {\n return inputs_;\n }", "public java.util.List<br.unb.cic.bionimbus.avro.gen.Pair> getInputs() {\n return inputs;\n }", "public java.util.List<br.unb.cic.bionimbus.avro.gen.Pair> getInputs() {\n return inputs;\n }", "public java.util.List<? extends org.hyperledger.fabric.protos.token.Transaction.InputIdOrBuilder> \n getInputsOrBuilderList() {\n return inputs_;\n }", "public java.util.List<? extends org.hyperledger.fabric.protos.token.Transaction.InputIdOrBuilder> \n getInputsOrBuilderList() {\n return inputs_;\n }", "public java.util.List<? extends org.hyperledger.fabric.protos.token.Transaction.InputIdOrBuilder> \n getInputsOrBuilderList() {\n return inputs_;\n }", "List<String> getEditPanelInput();", "public List<ContractIOType> getInputs() {\n return inputs;\n }", "@Override\r\n\tpublic List getInput() {\n\t\treturn super.getInput();\r\n\t}", "@Override\r\n\tpublic List<HtmlInput<?>> getInputs() throws DatabaseException\r\n\t{\n\t\treturn null;\r\n\t}", "Input getInputs();", "@Override\n\tpublic Value[] getInputValues() {\n\t\treturn null;\n\t}", "public void setInputs() {\n\t\tCIVLTable tbl_inputTable = (CIVLTable) getComponentByName(\"tbl_inputTable\");\n\t\tDefaultTableModel inputModel = (DefaultTableModel) tbl_inputTable\n\t\t\t\t.getModel();\n\t\tArrayList<CIVL_Input> inputList = currConfig.getInputs();\n\t\tinputList.clear();\n\t\tGMCSection gmcs = currConfig.getGmcConfig().getAnonymousSection();\n\t\tfor (int j = 0; j < inputModel.getRowCount(); j++) {\n\t\t\tString name = (String) inputModel.getValueAt(j, 0);\n\t\t\tString type = inputModel.getValueAt(j, 1).toString();\n\t\t\tObject value = inputModel.getValueAt(j, 2);\n\t\t\tString init = \"\";\n\n\t\t\tif (inputModel.getValueAt(j, 3) != null) {\n\t\t\t\tinit = inputModel.getValueAt(j, 3).toString();\n\t\t\t}\n\n\t\t\tCIVL_Input input = new CIVL_Input(name, type);\n\t\t\tinput.setValue(value);\n\t\t\tinput.setInitializer(init);\n\t\t\tinputList.add(input);\n\n\t\t\t// Add the inputs to the value map in GMCSection\n\t\t\tif (!value.toString().equals(\"\")) {\n\t\t\t\tgmcs.putMapEntry(CIVLConstants.inputO, input.getName(),\n\t\t\t\t\t\tinput.getValue());\n\t\t\t}\n\t\t}\n\n\t}", "public java.util.List<org.hyperledger.fabric.protos.token.Transaction.InputId.Builder> \n getInputsBuilderList() {\n return getInputsFieldBuilder().getBuilderList();\n }", "public java.util.List<org.hyperledger.fabric.protos.token.Transaction.InputId.Builder> \n getInputsBuilderList() {\n return getInputsFieldBuilder().getBuilderList();\n }", "public java.util.List<org.hyperledger.fabric.protos.token.Transaction.InputId.Builder> \n getInputsBuilderList() {\n return getInputsFieldBuilder().getBuilderList();\n }", "public List<Path> getInputs()\r\n\t{\r\n\t\treturn Collections.unmodifiableList(this.inputs);\r\n\t}", "public String[] getInputNames()\n\t{\n\t\treturn _inputNames;\n\t}", "public AnalysisInputItem[] getInputItems() {\n\t\tAnalysisInputItem[] items = { new AnalysisInputItem(\"HLPetriNet model\") {\n\t\t\tpublic boolean accepts(ProvidedObject object) {\n\t\t\t\tObject[] o = object.getObjects();\n\n\t\t\t\tfor (int i = 0; i < o.length; i++) {\n\t\t\t\t\tif (o[i] instanceof HLPetriNet) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} };\n\t\treturn items;\n\t}", "Inputs getInputs();", "private Map<String, List<String>> validateAndGetInputValues() {\r\n Map<String, List<String>> inputValues = new HashMap<String, List<String>>();\r\n // initiate the map using model input parameters.\r\n Map<String, InputParam> paramMap = model.getInputParamMap();\r\n\r\n if (formFields.size() != paramMap.size()) {\r\n throw new ExcelWrapperException(\r\n \"The number of form fields should be equal to the number of input parameters.\");\r\n }\r\n\r\n for (String fieldName : formFields.keySet()) {\r\n List<String> values = new ArrayList<String>();\r\n String fieldValue = formFields.getFirst(fieldName);\r\n InputParam inputParam = paramMap.get(fieldName);\r\n if (inputParam == null) {\r\n throw new ExcelWrapperException(\"unrecognzied form field of \" + fieldName);\r\n }\r\n\r\n int numrows = inputParam.getNumRows()==null?1:inputParam.getNumRows();\r\n if (numrows>1) {\r\n values = Utils.parseList(fieldName,fieldValue,inputParam.getDataTypeEnum());\r\n } else {\r\n Utils.checkInputParamValue(fieldName, fieldValue, inputParam.getDataTypeEnum());\r\n values.add(fieldValue);\r\n }\r\n\r\n inputValues.put(fieldName, values);\r\n }\r\n\r\n return inputValues;\r\n }", "InputsType getInputs();", "java.util.List<Field>\n getFieldsList();", "@Override final protected Class<?>[] getInputTypes() { return this.InputTypes; }", "public AnalysisInputItem[] getInputItems() {\n\t\tAnalysisInputItem[] items = { new AnalysisInputItem(\"SAMXML Log\") {\n\t\t\tpublic boolean accepts(ProvidedObject object) {\n\t\t\t\tObject[] o = object.getObjects();\n\t\t\t\tfor (int i = 0; i < o.length; i++) {\n\t\t\t\t\tif (o[i] instanceof LogReader) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} };\n\t\treturn items;\n\t}", "public List<Synapse> getInputs() {\n\t\treturn inputs;\n\t}", "public static Set<String> getInputs() {\n\t\treturn availableInputs;\n\t}", "public IInputType[] getInputTypes();", "public static Collection<JobInputType> values() {\n return values(JobInputType.class);\n }", "public ArrayList<String> getInputsTypes(){\n ArrayList<String> inputs = new ArrayList<>();\n int formInd = 0,inputInd = 0;\n for(FormElement aux : document.getElementsByTag(\"form\").forms()){\n for(Element aux2: aux.getElementsByTag(\"input\")){\n inputs.add(\"En el formulario #\"+formInd+\" el input #\"+inputInd+\" es de tipo \"+ aux2.attr(\"type\")+\"\\n\");\n\n inputInd++;\n }\n formInd++;\n }\n return inputs;\n }", "public InputDirective[] getInputDirectives()\r\n {\r\n return m_inputs;\r\n }", "List<Field> getFields();", "List<String> getInsertPanelInput();", "public String[] getFieldNameMapping() {\r\n return null;\r\n }", "List<String> getShapePanelInput();", "public List<SelectItem> getInputTypeValues() {\n List<SelectItem> IOvalues = new ArrayList<>();\n for (IOtypes.IOtypesEnum IOtype : IOtypes.IOtypesEnum.values()) {\n IOvalues.add(new SelectItem(IOtype.toString(), IOtype.getMessage()));\n }\n return IOvalues;\n }", "private String[] getFields(){\n String[] fields = new String[entry.get(0).size()];\n\n for (int i = 0; i < entry.get(0).size(); i++){\n fields[i] = spinners[i].getSelectedItem().toString();\n }\n\n return fields;\n }", "java.util.List<com.sagas.meta.model.MetaFieldData> \n getFieldsList();", "@Override\n public java.util.List<Field> getFieldsList() {\n return fields_;\n }", "java.util.List<com.google.ads.googleads.v13.resources.AttributeFieldMapping> \n getAttributeFieldMappingsList();", "ISourceField[] getFields();", "public List<Point2D> getInputPoints() {\n return mInputPoints;\n }", "public ArrayList<Double> getInputs()\n {\n return inputs;\n }", "protected Map<Data, String> input() {\n Set<String> inputs = new HashSet<>();\n\n for (Importer importer : importers()) {\n inputs.add(importer.inputData().name());\n }\n\n return DynamicData.oneToOne(inputs.toArray(new String[inputs.size()]));\n }", "private List getMappingFieldsInternal() {\n if (fields == null) {\n fields = new ArrayList();\n }\n\n return fields;\n }", "public org.hyperledger.fabric.protos.token.Transaction.InputId getInputs(int index) {\n return inputs_.get(index);\n }", "public org.hyperledger.fabric.protos.token.Transaction.InputId getInputs(int index) {\n return inputs_.get(index);\n }", "public org.hyperledger.fabric.protos.token.Transaction.InputId getInputs(int index) {\n return inputs_.get(index);\n }", "public ArrayList<TestInput> getInputs(){\n\t\t\n\t\tArrayList<TestInput> inputs = new ArrayList<TestInput>();\n\t\t\n\t\t// we want the user to pass in a String we call \"Test URL\". So\n\t\t// create that input, give it a type and name, and add it to\n\t\t// our list. In this case, we don't provide a default value\n\t\t// for the input. \n\t\t\n\t\tTestInput urlInput = new TestInput(TestInput.TEXT, \"Test URL\");\n\t\tinputs.add(urlInput);\n\t\t\n\t\t// We also want an input called \"Port\". In this case, we specify\n\t\t// a value of \"80\" as a default value using the alternate constructor.\n\t\tTestInput portInput = new TestInput(TestInput.TEXT, \"Port\", \"80\");\n\t\tinputs.add(portInput);\n\t\t\n\t\t// Here we will define another TestInput, this type a Boolean. Booleans\n\t\t// require you to also pass in a list of two \"Options\" that make\n\t\t// up the choice. The first option added will be the default option\n\t\t// provided to the user. A boolean MUST provide two(2) and only\n\t\t// two(2) options. If you want more options, use a SELECT input. \n\t\tArrayList<String> booleanOptions = new ArrayList<String>();\n\t\tbooleanOptions.add(\"Yes, allow SSL\");\n\t\tbooleanOptions.add(\"No, do not allow SSL\");\n\t\t\n\t\tTestInput allowSslBoolean = new TestInput(TestInput.BOOLEAN, \"SSL Allowed?\", booleanOptions);\n\t\tinputs.add(allowSslBoolean);\n\t\t\n\t\t\n\t\t// Similar to a boolean, a SELECT input requires a set\n\t\t// of options to a user. A SELECT allows you to provide longer list\n\t\t// of options. As with the BOOLEAN input, the first option added \n\t\t// will be the default option provided to the user. \n\t\tArrayList<String> selectOptions = new ArrayList<String>();\n\t\tselectOptions.add(\"English\");\n\t\tselectOptions.add(\"Spanish\");\n\t\tselectOptions.add(\"Italian\");\n\t\tselectOptions.add(\"Mandarin\");\n\t\t\n\t\tTestInput whichLanguageSelect = new TestInput(TestInput.SELECT, \"Which Language?\", selectOptions);\n\t\tinputs.add(whichLanguageSelect);\n\t\t\n\t\t\n\t\t\n\t\treturn inputs;\n\t}", "protected ArrayList<Object> getAllFieldsAsArrayList() {\n\n\t\t// first we get all the global fields.\n\t\t// That is, ones that apply to both Sprites,Text and any other object types.\n\t\tArrayList<Object> fieldList = super.getAllFieldsAsArrayList();\n\n\t\t//then we get the dialogue specific fields\n\t\tLog.info(\"getting label specific fields for object \"+ObjectsName);\n\n\t\tif (ObjectsCurrentText==null){\n\t\t\tLog.severe(\"Text is null at this point..is there a previous error? It could be the text contains characters the paragraph object doesnt support.\");\n\t\t}\n\n\t\t// dialog data\n\t\t//\n\n\t\t//we escape all newlines\n\t\tString currentTextWithEscapedNewlines = ObjectsCurrentText.replaceAll(\"\\\\r\\\\n|\\\\r|\\\\n\",ESCAPED_NEWLINE);\t\t\n\t\tfieldList.add(currentTextWithEscapedNewlines );\t\t\n\t\t//\tfieldList.add(ObjectsCurrentText.replaceAll(\"\\n\",ESCAPED_NEWLINE) );\n\t\tfieldList.add(CSSname);\n\n\n\t\treturn fieldList;\n\n\t}", "@Override\n\tpublic TypeName[] getInputNames()\n\t{\n\t\tTypeName[] inputNames = new TypeName[1];\n\t\tinputNames[0] = new TypeName(IMAGE, \"Image\");\n\t\treturn inputNames;\n\t}", "@Override\n\tpublic Set<IInputOutput> getInputs() {\n\t\treturn null;\n\t}", "public final Set<Class<?>> getInputClasses() {\n return inputClasses;\n }", "public TextInputList() {\n\n\t}", "public Iterator<Field> iterator()\n\t{\n\t\treturn fieldList.iterator();\n\t}", "public ArrayList<String> getDataFields() {\n\t\tif (containerType != null && \n\t\t\t\t!length.getText().toString().matches(\"\") &&\n\t\t\t\t!width.getText().toString().matches(\"\") && \n\t\t\t\t!height.getText().toString().matches(\"\")) {\n\t\t\t\n\t\t\tArrayList<String> dataFields = new ArrayList<String>();\n\t\t\tdataFields.add(containerType);\n\t\t\tdataFields.add(length.getText().toString());\n\t\t\tdataFields.add(width.getText().toString());\n\t\t\tdataFields.add(height.getText().toString());\n\t\t\treturn dataFields;\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\tToast.makeText(context, \"Please enter data in all fields before saving\", Toast.LENGTH_SHORT).show();\n\t\t\treturn null;\n\t\t}\n\t}", "public abstract List<String> requiredFields();", "Iterable<K> inputs();", "public java.lang.String[] getMappingFieldsArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(MAPPINGFIELDS$28, 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 java.util.List<com.ext.portlet.model.ModelInputGroup> findAll()\n throws com.liferay.portal.kernel.exception.SystemException;", "public List<DataLocation> getInputDataLocations(){\n\treturn defaultDataLocations();\n }", "public java.lang.String getMappingFieldsArray(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MAPPINGFIELDS$28, i);\n if (target == null)\n {\n throw new IndexOutOfBoundsException();\n }\n return target.getStringValue();\n }\n }", "public List<TextBox> getAllTextBox() {\n List<TextBox> tb = new LinkedList<>();\n tb.add(entityName);\n return tb;\n }", "java.util.List<? extends FieldOrBuilder>\n getFieldsOrBuilderList();", "public ArrayList<JTextField> getTextField() {\n\t\treturn txtTodo;\n\t}", "java.util.List<? extends com.google.ads.googleads.v13.resources.AttributeFieldMappingOrBuilder> \n getAttributeFieldMappingsOrBuilderList();", "org.hyperledger.fabric.protos.token.Transaction.InputId getInputs(int index);", "org.hyperledger.fabric.protos.token.Transaction.InputId getInputs(int index);", "org.hyperledger.fabric.protos.token.Transaction.InputId getInputs(int index);", "public List<String[]> getInputDetails()\n\t{\n\t\treturn inputDetails;\n\t}", "java.util.List<? extends com.sagas.meta.model.MetaFieldDataOrBuilder> \n getFieldsOrBuilderList();", "public String[] getAllFilledAnnotationFields();", "public ArrayList<GOlrField> getFields() {\n\n ArrayList<GOlrField> collection = new ArrayList<GOlrField>();\n\n // Plonk them all in to our bookkeeping.\n for (GOlrField field : unique_fields.values()) {\n collection.add(field);\n }\n\n return collection;\n }", "public List<String> getIndexedFields() {\n\t\t\tList<String> indexedFields = new ArrayList<>();\n\t\t\t\n\t\t\tindexedFields.add(field);\n\t\t\tindexedFields.add(field + \".folded\");\n\t\t\t\n\t\t\treturn indexedFields;\n\t\t}", "public List<StatefullComponent> getFields() {\n\t\treturn null;\r\n\t}", "public Iterator<String> fieldIterator() { return flds_lu.keySet().iterator(); }", "org.hyperledger.fabric.protos.token.Transaction.InputIdOrBuilder getInputsOrBuilder(\n int index);", "org.hyperledger.fabric.protos.token.Transaction.InputIdOrBuilder getInputsOrBuilder(\n int index);", "org.hyperledger.fabric.protos.token.Transaction.InputIdOrBuilder getInputsOrBuilder(\n int index);", "@Override\n\tpublic List<String> listSearchableFields() {\n\t\tList<String> listSearchableFields = new ArrayList<String>();\n\t\tlistSearchableFields.addAll(super.listSearchableFields());\n\n\t\tlistSearchableFields.add(\"comment\");\n\n\t\treturn listSearchableFields;\n\t}", "public void setInput(List<List<String>> input) {\n\t\ttableViewer.setInput(input);\n\t\tthis.input = input;\n\t\tfireTableModified();\n\t}", "@Override\r\n\tpublic List<String> listSearchableFields() {\r\n\t\tList<String> listSearchableFields = new ArrayList<String>();\r\n\t\tlistSearchableFields.addAll(super.listSearchableFields());\r\n\r\n\t\tlistSearchableFields.add(\"employeeNumber\");\r\n\r\n\t\tlistSearchableFields.add(\"contactDetails.primaryPhone\");\r\n\r\n\t\tlistSearchableFields.add(\"contactDetails.secondaryPhone\");\r\n\r\n\t\tlistSearchableFields.add(\"contactDetails.streetAddress\");\r\n\r\n\t\tlistSearchableFields.add(\"contactDetails.city\");\r\n\r\n\t\tlistSearchableFields.add(\"contactDetails.zip\");\r\n\r\n\t\treturn listSearchableFields;\r\n\t}", "public org.hyperledger.fabric.protos.token.Transaction.InputIdOrBuilder getInputsOrBuilder(\n int index) {\n return inputs_.get(index);\n }" ]
[ "0.66991705", "0.66991705", "0.66991705", "0.6569729", "0.6569729", "0.6569729", "0.6505788", "0.6505788", "0.6505788", "0.6495706", "0.6484694", "0.6422088", "0.6422088", "0.6422088", "0.6377037", "0.63153356", "0.63153356", "0.63153356", "0.6303932", "0.6286441", "0.62052214", "0.62052214", "0.62052214", "0.61890787", "0.6131589", "0.6117606", "0.6085938", "0.6018773", "0.5994282", "0.59725624", "0.59606093", "0.59606093", "0.59606093", "0.58602077", "0.5822572", "0.5803185", "0.58008176", "0.57239383", "0.5689037", "0.56780994", "0.5637029", "0.5623372", "0.5622243", "0.5618133", "0.5611895", "0.55973727", "0.55817103", "0.558015", "0.5576399", "0.5534376", "0.55256087", "0.55010724", "0.5497273", "0.5488657", "0.5480063", "0.5438645", "0.54304975", "0.54118556", "0.53607506", "0.53531855", "0.53290516", "0.53011346", "0.52729964", "0.52729964", "0.52729964", "0.52668536", "0.52652967", "0.52553356", "0.5242465", "0.5236935", "0.52353483", "0.5223643", "0.5202425", "0.52000564", "0.51892835", "0.5172663", "0.5164218", "0.51590985", "0.51559395", "0.5155197", "0.5151497", "0.51391375", "0.5135534", "0.51348066", "0.51348066", "0.51348066", "0.5122644", "0.5113744", "0.5109895", "0.5077722", "0.5076364", "0.5055338", "0.5053765", "0.5039964", "0.5039964", "0.5039964", "0.5037835", "0.5024187", "0.50062567", "0.49995926" ]
0.72089446
0
A boolean that determines whether to drop all fields in this document. If set, input and output fields should not be set
@JsonProperty("is_drop_all_fields") @ApiModelProperty(example = "true", value = "A boolean that determines whether to drop all fields in this document. If set, input and output fields should not be set") public Boolean isIsDropAllFields() { return isDropAllFields; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean dropConstraints() {\n \t\treturn true;\n \t}", "public Boolean getAllowEmptyFields() {\n return (Boolean) getExtProperty(\"allowEmptyFields\", DatabaseConfig.FEATURE_ALLOW_EMPTY_FIELDS);\n }", "public ConfigurationBuilder onlyFields() {\n\t\tconfigurationBuilder.setAccessStrategy(AccessStrategy.ONLY_FIELDS);\n\t\treturn configurationBuilder;\n\t}", "public void setDropped(boolean dropped);", "public boolean isHideFields() {\n\t\treturn hideFields;\n\t}", "private void removeNoFields() {\n fieldTable.removeStyleName(\"hidden\");\n noFields.addStyleName(\"hidden\");\n }", "@Override\r\n\tpublic Field[] getExcludedFields() {\n\t\treturn null;\r\n\t}", "public Builder setNoUnions(boolean value) {\n bitField0_ |= 0x00000080;\n noUnions_ = value;\n onChanged();\n return this;\n }", "@Override\n\tprotected boolean verifyFields() {\n\t\treturn false;\n\t}", "@Override\n public boolean dropConstraints() {\n return false;\n }", "public boolean isSetFields() {\n return this.fields != null;\n }", "public void resetField() {\n setFields(new boolean[getLength()][getHeight()]);\n }", "public boolean isDrooping() {\n return false;\n }", "public boolean isSetDrop_priv() {\n return this.__isset.drop_priv;\n }", "public boolean hasALLOWAISUNBILLEDTORUN() {\n return fieldSetFlags()[14];\n }", "private void clearFields(){\r\n fields.forEach(e -> e.clear());\r\n }", "public boolean shouldSkipField(FieldAttributes f) {\n\t\t return f.getName().equals(\"user_id\")\n || f.getName().equals(\"owner\")\n || f.getName().equals(\"recipient\")\n || f.getName().equals(\"isGood\")\n || f.getName().equals(\"reward\");\n\t\t}", "public void setDropEnabled(boolean enabled) { this.dropEnabled = enabled; }", "protected void clearFields(){\n\t\tsetFormReady(false);\n\t\tskipSpin.setValue(1);\n\t\tsetFormReady(true);\n\t}", "public boolean resetAllFields(){\n\t\t//first reset all the squares in the board to true\n\t\tboardView.setAllSquaresActive(this);\n\t\t\n\t\t//next make sure all the textFields in every panel are set to empty\n\t\tfor(Component comp: pnlLevelSwitch.getComponents()){\n\t\t\tAbsBuilderLevelPanel panel = (AbsBuilderLevelPanel) comp;\n\t\t\tpanel.resetFields();\n\t\t}\n\t\treturn true;\n\t}", "public boolean isUseFields()\n {\n return (isPragma() && getModule().toKeyword().isFieldsKeyword());\n }", "public void clearFields() {\n\t\tid.clear();\n\t\tfn.clear();\n\t\tln.clear();\n\t\tage.clear();\n\t\tun.clear();\n\t\tpass.clear();\n\t\tdate.setValue(null);\n\t}", "public boolean isAnyFieldEdited() {\n return CollectionUtil.isAnyNonNull(name);\n }", "@Override\r\n\tpublic boolean dropTable() {\n\t\treturn false;\r\n\t}", "public SamFilterParamsBuilder excludeUnmapped(final boolean val) {\n mExcludeUnmapped = val;\n return this;\n }", "public boolean hasInputs() {\n return fieldSetFlags()[4];\n }", "public void reset() {\n this.inhibited = false;\n this.forced = false;\n }", "public void setHideFields(boolean hideFields) {\n\t\tthis.hideFields = hideFields;\n\t}", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean isSetField() {\r\n return this.field != null;\r\n }", "@Override\n\tprotected String[] ignoreFields() {\n\t\treturn null;\n\t}", "public Builder setCausesDrop(boolean value) {\n\n causesDrop_ = value;\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }", "public boolean getNoUnions() {\n return noUnions_;\n }", "private void addNoFields() {\n fieldTable.addStyleName(\"hidden\");\n noFields.removeStyleName(\"hidden\");\n\n }", "public boolean getNoUnions() {\n return noUnions_;\n }", "public boolean isDroppedOnMap() { return dropped; }", "Boolean isOmitTf();", "@Override\n public void declareOutputFields(OutputFieldsDeclarer declarer) {\n // no streams emitted into the Storm topology from this bolt\n }", "public Builder clearCausesDrop() {\n bitField0_ = (bitField0_ & ~0x00000004);\n causesDrop_ = false;\n onChanged();\n return this;\n }", "public boolean is_set_inputs() {\n return this.inputs != null;\n }", "protected abstract void resetInputFields();", "public boolean hasALLOWMTMTORUN() {\n return fieldSetFlags()[11];\n }", "public void setSetEmptyMappings(Boolean setEmptyMappings) {\n this.setEmptyMappings = setEmptyMappings;\n }", "@Override\n public boolean mapField(Object source, Object destination, Object sourceFieldValue, ClassMap classMap, FieldMap fieldMap) {\n if (isSourceUnsetThriftField(source, fieldMap) && sourceFieldValue != null && ClassUtils.isPrimitiveOrWrapper(sourceFieldValue.getClass())) {\n logger.debug(\"Skipping field \" + fieldMap.getSrcFieldName() + \" since it is unset thrift field and is primitive\");\n return true;\n }\n return false;\n }", "@java.lang.Override\n public boolean getCausesDrop() {\n return causesDrop_;\n }", "public void setOmitDeclaration(boolean omitDeclaration) {\r\n this.omitDeclaration = omitDeclaration;\r\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar136() {\n var136 = null;\n fieldSetFlags()[137] = false;\n return this;\n }", "@java.lang.Override\n public boolean getCausesDrop() {\n return causesDrop_;\n }", "public Builder clearFields() {\n if (fieldsBuilder_ == null) {\n fields_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n fieldsBuilder_.clear();\n }\n return this;\n }", "public void setAllowEmptyFields(Boolean allowEmptyFields) {\n setExtProperty(\"allowEmptyFields\", DatabaseConfig.FEATURE_ALLOW_EMPTY_FIELDS, allowEmptyFields);\n }", "public Builder clearIncludesAllColumns() {\n\n includesAllColumns_ = false;\n onChanged();\n return this;\n }", "@java.lang.Override\n public boolean hasDrop() {\n return stepInfoCase_ == 15;\n }", "public boolean isDropper() {\n return this.type == Type.DROPPER;\n }", "public boolean isUnmapped(){\n\t\treturn testBitwiseFlag(4);\n\t}", "@Override\n\tpublic boolean isDropOk () {\n\t\treturn isAllowed ( selectedAttribute ) ;\n\t}", "private void DisableOrEnableFields(){\n for (Node node:super.newAppointmentView.getChildren()) {\n if (node instanceof GridPane){\n GridPane gridpane = (GridPane)node;\n for (Node node1:gridpane.getChildren()) {\n if(node1 instanceof TextField || node1 instanceof ComboBox){\n node1.setDisable(isDisabled);\n }\n }\n }\n\n }\n isDisabled = !isDisabled;\n }", "private void setFieldsEmpty(){\n nameInput.setText(\"\");\n frontTrackInput.setText(\"\");\n cornerWeightFLInput.setText(\"\");\n cornerWeightRLInput.setText(\"\");\n rearTrackInput.setText(\"\");\n cornerWeightRRInput.setText(\"\");\n cornerWeightFRInput.setText(\"\");\n cogInput.setText(\"\");\n frontRollDistInput.setText(\"\");\n wheelBaseInput.setText(\"\");\n }", "public boolean hasDontDelete() {\n checkNotUnknown();\n return (flags & ATTR_DONTDELETE_ANY) != 0;\n }", "public boolean hasDEALPNTFEATID() {\n return fieldSetFlags()[4];\n }", "public boolean isLayoutable() {\n return (rawData != null && !rawData.optBoolean(Constants.HIDDEN_FIELD)\n && rawData.optBoolean(Constants.LAYOUTABLE_FIELD));\n }", "public FieldPredicate withoutModifiers(Collection<Integer> modifiers) {\n this.withoutModifiers = new ArrayList<>(modifiers);\n return this;\n }", "public boolean getDrops() {\r\n\t\treturn drops;\r\n\t}", "public void clearAllFields(){\n\t\tclearFilter(eleGradePanelUc);\n\t\tclearFilter(middleGradePanelUc);\n\t\tclearFilter(highrGradePanelUc);\n\t\tclearFilter(subjectPanelUc);\n\t}", "public ObjectSchema allowUndefined(boolean value) {\n _allowUndefined = value;\n return this;\n }", "public void disableInputs();", "@java.lang.Override\n public boolean hasDrop() {\n return stepInfoCase_ == 15;\n }", "@Override\n public boolean isDisableMetadataField() {\n return false;\n }", "protected boolean isSaveSchema() {\n\t\treturn false;\n\t}", "private void conmuteFields() {\r\n\t\ttxPassword.setEditable(!txPassword.isEditable());\r\n\t\ttxUsuario.setEditable(!txUsuario.isEditable());\r\n\t\tcheckAdmin.setDisable(!checkAdmin.isDisable());\r\n\t\tcheckTPV.setDisable(!checkTPV.isDisable());\r\n\t}", "public FieldPredicate withoutModifiers(int... modifiers) {\n this.withoutModifiers = Arrays.stream(modifiers).boxed().collect(Collectors.toList());\n return this;\n }", "public boolean isNotDontDelete() {\n checkNotUnknown();\n return (flags & ATTR_DONTDELETE_ANY) == ATTR_NOTDONTDELETE;\n }", "public void setIgnore() {\n\t\t\tignore = true;\n\t\t}", "public boolean isDontDelete() {\n checkNotUnknown();\n return (flags & ATTR_DONTDELETE_ANY) == ATTR_DONTDELETE;\n }", "@Override\n\tpublic boolean shouldSkipField(FieldAttributes classe) {\n\t\t\n\t\tfinal Expose expose = classe.getAnnotation(Expose.class);\n return expose != null && !expose.serialize();\n\t\t\n/*\t\tString className = classe.getDeclaringClass().getName();\n\t\tString fieldName = classe.getName();\n\t\t\n\t\t\t\n\t\t\n\t\treturn \n\t className.equals(Produto.class.getName())\n\t && (fieldName.equals(\"versoes\") || fieldName.equals(\"clientes\"));*/\n\t}", "public boolean isPrintHiddenFields()\n\t{\n\t\treturn printHiddenFields;\n\t}", "protected boolean skipBlankValues() {\n return true;\n }", "@RegionEffects(\"writes publicField; reads defaultField\")\n private void someButNotAll() {\n publicField = privateField;\n protectedField = defaultField;\n }", "@Override \n\tprotected boolean inputDrop(View view, DragEvent event)\n\t{// Remove the dropped item from the input\n\t\t// First, reset the input\n\t\tcontroller.input().setDrawables(MetaInputGrid.BODY, controller.drag().getBodyDrawables());\n\t\tcontroller.input().setDrawables(MetaInputGrid.EMOTE, controller.drag().getEmoteDrawables());\n\t\tcontroller.input().notifyDataSetChanged();\n\t\tcontroller.drag().setPivot(null); // This will ensure that InputOnDragListener does not reset the drawables\n\t\t\n\t\t// Next, remove the input\n\t\tcontroller.input().remove(controller.drag().getPosition());\n\t\t\n\t\t// Finally, Reset background and re render\n\t\tview.setBackgroundColor(CLEAR);\n\t\tcontroller.input().notifyDataSetChanged();\n\t\t\n\t\treturn true;\n\t}", "private boolean fieldsAreFilled(){\n return !textboxName.isEnabled() && !textboxInitialValue.isEnabled();\n }", "public boolean hasOutputs() {\n return fieldSetFlags()[5];\n }", "public void resetIsModified() {\n MTBTypesKey_is_modified = false;\n type_is_modified = false;\n description_is_modified = false;\n tableName_is_modified = false;\n columnName_is_modified = false;\n createUser_is_modified = false;\n createDate_is_modified = false;\n updateUser_is_modified = false;\n updateDate_is_modified = false;\n }", "public boolean hasNoUnions() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }", "public Builder clearNoUnions() {\n bitField0_ = (bitField0_ & ~0x00000080);\n noUnions_ = false;\n onChanged();\n return this;\n }", "void disableEdit() {\n\t\tnameField.setEditable(false);\n\t\tssnField.setEditable(false);\n\t\ttakenDateField.setEditable(false);\n\t\ttotalScoreField.setEditable(false);\n\t\tadvisorField.setEditable(false);\n\t\t\n\t}", "public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder clearInputs() {\n inputs = null;\n fieldSetFlags()[4] = false;\n return this;\n }", "public boolean isAnyFieldEdited() {\n return CollectionUtil.isAnyNonNull(title, moduleCode, credits, memo, description, semester, tags);\n }", "public boolean hasNoUnions() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }", "@Pointcut(\"forDAOPackage() && !(getter() || setter())\")\n\tpublic void exceptGettersAndSetters() {}", "public boolean hasALLOWABCREVSPLITTORUN() {\n return fieldSetFlags()[10];\n }", "public void setHiddenOrReadOnly() {\n if(getField_type().toLowerCase().matches(\"view|vfunction\")) {\n if(!getType().toLowerCase().matches(\"hidden\")){\n setSaveRequired(\"read\");\n }\n }\n }", "private void resetFields() {\n\t\tthis.barcodeField.clear();\r\n\t\tthis.barcodeField.setDisable(false);\r\n\t\tthis.nameField.clear();\r\n\t\tthis.descriptionField.clear();\r\n\t\tthis.mrpField.clear();\r\n\t\tthis.revisedMrpField.clear();\r\n\t\tthis.stockField.clear();\r\n\t\tthis.availableStockLabelValue.setText(\"0.0\");\r\n\t\tthis.barcodeImageView.setImage(null);\r\n\t\tthis.barcodeDisplayLabel.setVisible(true);\r\n\t\tthis.barcodeNumberLabel.setVisible(false);\r\n\r\n\t}", "public SamFilterParamsBuilder requireUnsetFlags(final int flags) {\n mRequireUnsetFlags = flags;\n return this;\n }", "public boolean isAnyFieldEdited() {\n return CollectionUtil.isAnyNonNull(name, phone, email, tags);\n }", "protected boolean isAllRequiredTxtFieldsFilled() {\r\n JTextField[] txtFields = {\r\n txtFieldFirstName, txtFieldLastName,\r\n txtFieldDateOfBirth, txtFieldIBAN,\r\n txtFieldState, txtFieldHouseNumber,\r\n txtFieldPostcode, txtFieldLocation,\r\n txtFieldCountry, txtFieldState\r\n };\r\n\r\n for (JTextField txtField : txtFields) {\r\n if (txtField.getText().equals(\"\")) {\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n }", "public void setUnmergeable() {\n\t\tthis.unmergeable = true;\n\t}", "public boolean isAnyFieldEdited() {\n return CollectionUtil.isAnyNonNull(title, type, author, details, tags);\n }", "public Value setDontDelete() {\n checkNotUnknown();\n if (isDontDelete())\n return this;\n Value r = new Value(this);\n r.flags &= ~ATTR_DONTDELETE_ANY;\n r.flags |= ATTR_DONTDELETE;\n return canonicalize(r);\n }", "@Override\n public JSONDTO process(JSONDTO from) {\n this.logger.debug(\"Dropping request\");\n if(this.processor.isPresent())\n from = this.processor.get().process(from);\n // if JSONDTO is not subclass of DropableJSONDTO then omit\n if(from.getClass().isAssignableFrom(DropableJSONDTO.class)){\n for(String field : ((DropableJSONDTO) from).getToDrop())\n ((ObjectNode) from.getInput()).remove(field);\n }\n from.setOutput(\n from.getInput().toString()\n );\n return from;\n }", "private void resetFields(){\n\t\tsetDirectoryInfoLabel(\"\");\n\t\tregexFrom.setText(\"\");\n\t\tregexTo.setText(\"\");\n\t\ttextArea.setText(\"\");\n\t\tlastChoosedDirectory = null;\n\t\tcheckboxSaveStateOn.setEnabled(false);\n\t\tsetMessage(translations.getFieldsHasBeenReset());\n\t}", "public void cleanDirtyFlags() {\n RetractedChanged=false;\n AddressIDChanged=false;\n EntityIDChanged=false;\n AddressTypeIDChanged=false;\n}" ]
[ "0.5674136", "0.5659773", "0.549713", "0.5492901", "0.5469766", "0.5467636", "0.54336303", "0.54154027", "0.5415134", "0.535383", "0.5341637", "0.5328767", "0.5257119", "0.5253761", "0.5251991", "0.5241655", "0.52092266", "0.5204592", "0.5174156", "0.51709914", "0.5168797", "0.5126355", "0.51229477", "0.51193774", "0.51101375", "0.5102144", "0.50986105", "0.5091861", "0.50857556", "0.50857556", "0.5067642", "0.5062303", "0.50553936", "0.50508875", "0.5045656", "0.50401205", "0.5037241", "0.5036158", "0.5031986", "0.50288504", "0.5018797", "0.5000312", "0.49912038", "0.49891746", "0.49711722", "0.49674025", "0.49518204", "0.49437788", "0.49393135", "0.49372768", "0.49354932", "0.49284142", "0.49193677", "0.49193516", "0.49173674", "0.4909959", "0.490165", "0.4896709", "0.48921078", "0.489174", "0.48884356", "0.48853886", "0.48827198", "0.4880778", "0.48777688", "0.48758835", "0.48736396", "0.48707464", "0.48703396", "0.48665404", "0.48645943", "0.4846382", "0.48401698", "0.48161125", "0.481609", "0.48117357", "0.4807269", "0.48010308", "0.47960418", "0.47923377", "0.47875085", "0.47863677", "0.47846663", "0.47845513", "0.4779939", "0.47774068", "0.4776281", "0.4774171", "0.47685814", "0.47637194", "0.47561908", "0.47494236", "0.47460532", "0.4737688", "0.47353685", "0.47267705", "0.47253713", "0.4720474", "0.47197118", "0.4717765" ]
0.7575494
0
A user specified string that is a name for this mapping.
@JsonProperty("name") @ApiModelProperty(example = "myTestMapping", value = "A user specified string that is a name for this mapping.") public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "public static Mapper<String> name() {\n return NAME;\n }", "public void setName(java.lang.String value) {\n this.name = value;\n }", "@Override\n\tpublic void setName(String arg0) {\n\n\t}", "protected abstract String getName();", "String getName( String name );", "Caseless getName();", "String getPreferredName();", "@AutoEscape\n\tpublic String getUser_name();", "@AutoEscape\n public String getName();", "@AutoEscape\n\tpublic String getName();", "@AutoEscape\n\tpublic String getName();", "@AutoEscape\n\tpublic String getName();", "@AutoEscape\n\tpublic String getName();", "public abstract String getRawName();", "public void setName(String inName)\n {\n\tname = inName;\n }", "String getName() ;", "public String getName(){\n \treturn this.name().replace(\"_\", \" \");\n }", "@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn name;\n\t\t\t}", "public void setName(java.lang.String value);", "public void setName(java.lang.String value);", "public void setNameString(String s) {\n nameString = s;\r\n }", "public void setName(java.lang.String aName);", "@Override\r\n\tprotected String getName() {\n\t\treturn NAME;\r\n\t}", "public void setUser_name(String user_name);", "public void setName(java.lang.CharSequence value) {\n this.name = value;\n }", "public String name() {\n this.use();\n\n return name;\n }", "public java.lang.String getName();", "public void setName(String inName)\n {\n name = inName;\n }", "public void setName(String value) {\n this.name = value;\n }", "@NotNull\n public String getName() {\n if (myName == null) {\n myName = myId;\n int index = myName.lastIndexOf('/');\n if (index != -1) {\n myName = myName.substring(index + 1);\n }\n }\n\n return myName;\n }", "public void setInternalName(String name);", "@Override\n public final String toString() {\n return \"'\" + myName + \"'\";\n }", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();" ]
[ "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.634082", "0.6247011", "0.6179166", "0.6169096", "0.6168876", "0.6167683", "0.6116031", "0.6106833", "0.6081326", "0.6079853", "0.6055444", "0.6055444", "0.6055444", "0.6055444", "0.6051819", "0.6050153", "0.6044698", "0.60442084", "0.60317904", "0.60296196", "0.60296196", "0.6027571", "0.60193944", "0.6006073", "0.60042447", "0.600041", "0.59915555", "0.59895986", "0.59785557", "0.59709936", "0.5966171", "0.59424555", "0.5939506", "0.5934803", "0.5934803", "0.5934803", "0.5934803", "0.5934803", "0.5934803", "0.5934803", "0.5934803", "0.5934803", "0.5934803", "0.5934803", "0.5934803", "0.5934803", "0.5934803", "0.5934803", "0.5934803" ]
0.61300147
57
An OutputField for this mapping.
@JsonProperty("output_field") @ApiModelProperty(value = "An OutputField for this mapping.") public OutputField getOutputField() { return outputField; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic LinkedHashMap<String, Object> output()\n\t{\n\t\treturn this._data;\n\t}", "public Output<T> output() {\n return output;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n org.hyperledger.fabric.protos.token.Transaction.PlainOutput, org.hyperledger.fabric.protos.token.Transaction.PlainOutput.Builder, org.hyperledger.fabric.protos.token.Transaction.PlainOutputOrBuilder> \n getOutputFieldBuilder() {\n if (outputBuilder_ == null) {\n outputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n org.hyperledger.fabric.protos.token.Transaction.PlainOutput, org.hyperledger.fabric.protos.token.Transaction.PlainOutput.Builder, org.hyperledger.fabric.protos.token.Transaction.PlainOutputOrBuilder>(\n getOutput(),\n getParentForChildren(),\n isClean());\n output_ = null;\n }\n return outputBuilder_;\n }", "public Output getOutput() {\n\t\treturn output;\n\t}", "@Column(name = \"OUTPUT\", length = 1000)\n/* */ @Order(3)\n/* 76 */ public String getOutput() { return this.output; }", "@Override\r\n\tpublic String getOutputFile() {\n\t\t\r\n\t\treturn fileOutputPath;\r\n\t}", "public Element getOutput(){\n\t\treturn output;\n\t}", "@JsonProperty(\"output\")\n @ApiModelProperty(value = \"The output of the dialog node.\")\n public Object getOutput() {\n return output;\n }", "@Override\r\n\tpublic void write(DataOutput out) throws IOException {\n\t\tout.writeShort(this.classType);\r\n\t\tout.writeShort(this.skinType);\r\n\t}", "public TOutputParameterElements getTOutputParameterAccess() {\n\t\treturn pTOutputParameter;\n\t}", "@Override\r\n protected IntermediateData generateTaggedMapOutput(Object o)\r\n {\n TaggedWritable value = new TaggedWritable((Text) o);\r\n value.setTag(inputTag);\r\n return value;\r\n }", "@Override\n\tpublic void declareOutputFields(OutputFieldsDeclarer arg0) {\n\t\t\n\t}", "@Override\n\tpublic void declareOutputFields(OutputFieldsDeclarer arg0) {\n\t\t\n\t}", "public final File getOutPutFile() {\n\t\treturn outPutFile;\n\t}", "@Id\n @Output\n public String getId() {\n return id;\n }", "public abstract Object getOutput ();", "@Override\n public Script.ScriptType getOutputScriptType() {\n return address.getOutputScriptType();\n }", "public FileQuerySerialization getOutputSerialization() {\n return outputSerialization;\n }", "public String getOutValue(){\n return null;\n }", "public void write(DataOutput output) throws IOException {\n output.writeShort(this.id());\n this._write(output);\n }", "public RowMetaInterface getOutputRowMeta() {\n return m_outputRowMeta;\n }", "public int getOutput() {\n return Output;\n }", "JavaOutputMapper(final ExecutableOutputField field, final TypeToken<?> javaType) {\n Preconditions.checkArgument(!javaType.getRawType().equals(Object.class));\n // Preconditions.checkArgument(!TypeVariable.class.isAssignableFrom(javaType.getType().getClass()));\n this.javaType = javaType;\n this.modelType = javaType;\n this.apply = UnaryOperator.identity();\n }", "@Override\n\tprotected void write(ObjectOutput out) throws IOException {\n\t\t\n\t}", "public Object getOutputTarget()\n/* */ {\n/* 101 */ return this._writer;\n/* */ }", "public String getOutValueClass() {\n return null;\n }", "public com.google.protobuf.ByteString\n getOutputBytes() {\n java.lang.Object ref = output_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n output_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public File getOutput(){\n return outputDir;\n }", "@Override\r\n\tpublic void declareOutputFields(OutputFieldsDeclarer arg0) {\n\r\n\t}", "@Override\r\n\tpublic XmlDataStruct getOutputStruct()\r\n\t{\n\t\treturn null;\r\n\t}", "@Override\n\tpublic void declareOutputFields(OutputFieldsDeclarer declarer) {\n\t\t\n\t}", "public java.lang.String getOutput() {\n java.lang.Object ref = output_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n output_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getOutput() {\n return output;\n }", "public com.google.protobuf.ByteString\n getOutputBytes() {\n java.lang.Object ref = output_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n output_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public void emitOutput() {\n }", "public java.lang.String getOutput() {\n java.lang.Object ref = output_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n output_ = s;\n return s;\n }\n }", "public HashMap getOutputHeader() {\n\t\treturn null;\n\t}", "@Override\n\tpublic LinkedHashMap<String,Object> output()\n\t{\n\t\t\n\t\treturn this._criteria;\n\t\t\n\t}", "public InventorySlot getOutput() {\n \t\treturn this.output;\n \t}", "public long getMappedValue() {\n\t\treturn this.value;\n\t}", "@Override\n public Object getData() {\n return outputData;\n }", "@Override\n\tvoid output() {\n\t\t\n\t}", "@Override\n\tpublic void declareOutputFields(OutputFieldsDeclarer arg0) {\n\t\targ0.declare(new Fields(\"dfBolt\"));\n\t}", "@Override\n\tpublic void declareOutputFields(OutputFieldsDeclarer declarer) {\n\n\t}", "public void writeExternal(ObjectOutput objectOutput)\n throws IOException\n {\n objectOutput.writeLong(serialVersionUID);\n objectOutput.writeObject(_wrapped);\n objectOutput.writeObject(_label);\n }", "public Output getOutput() {\n\t\treturn OutputFactory.of(outputFile.toPath());\n\t}", "@Override\n\tpublic void declareOutputFields(OutputFieldsDeclarer declarer) {\n\t}", "public Mapping getMapping() {\n return mapping;\n }", "public OutputTimeSpec getOutputTimeSpec() {\n\t\treturn fieldOutputTimeSpec;\n\t}", "@Override\n public void write(DataOutput output) throws IOException {\n output.writeUTF(getPartitionKey());\n output.writeUTF(getRowKey());\n output.writeLong(getTimestamp().getTime());\n // Write the rest of the properties.\n HashMap<String, EntityProperty> properties = getProperties();\n output.writeInt(properties.size());\n for (Map.Entry<String, EntityProperty> current : properties.entrySet()) {\n output.writeUTF(current.getKey());\n output.writeUTF(current.getValue().getValueAsString());\n }\n }", "SModel getOutputModel();", "public abstract MetaPojosHyperlinkedOutput getHyperlinkedOutput();", "@Override\n public double getOutput() {\n return this.inputValue;\n }", "@Override\r\n\tpublic void write(DataOutput out) throws IOException {\n\t\tWritableUtils.writeVInt(out, this.id);\r\n\t}", "public Format getOutputFormat() {\n return outputFormat;\n }", "public T getOutput() {\r\n\t\treturn outputGraph;\r\n\t}", "public interface HasOutputCol<T> extends WithParams <T> {\n\t@NameCn(\"输出结果列列名\")\n\t@DescCn(\"输出结果列列名,必选\")\n\tParamInfo <String> OUTPUT_COL = ParamInfoFactory\n\t\t.createParamInfo(\"outputCol\", String.class)\n\t\t.setDescription(\"Name of the output column\")\n\t\t.setAlias(new String[] {\"outputColName\"})\n\t\t.setRequired()\n\t\t.build();\n\n\tdefault String getOutputCol() {\n\t\treturn get(OUTPUT_COL);\n\t}\n\n\tdefault T setOutputCol(String colName) {\n\t\treturn set(OUTPUT_COL, colName);\n\t}\n}", "@Override\n\tpublic JavaType getOutputType(TypeFactory typeFactory) {\n\t\treturn null;\n\t}", "public String getOutput() {\n return output.toString();\n }", "OutputRecord(AnalyticsContext.TagMap tagMap, AnalyticsContext.MetricMap metricMap)\r\n\t{\r\n\t\tthis.tagMap = tagMap;\r\n\t\tthis.metricMap = metricMap;\r\n\t}", "public int getMappingNum () {\n return this.mappingNum; \n }", "public ReactiveValue<T> output() {\n\t\t/*\n\t\t * This records dependency on the state machine. No dependency is recorded on the controlled computation itself.\n\t\t */\n\t\treturn output.value();\n\t}", "public String getAddressOut() {\n\t\treturn addressOut.get();\n\t}", "private Schema generateDirectiveOutputSchema(Schema inputSchema)\n throws RecordConvertorException {\n List<Schema.Field> outputFields = new ArrayList<>();\n for (Map.Entry<String, Object> field : outputFieldMap.entrySet()) {\n String fieldName = field.getKey();\n Object fieldValue = field.getValue();\n\n Schema existing = inputSchema.getField(fieldName) != null ? inputSchema.getField(fieldName).getSchema() : null;\n Schema generated = fieldValue != null && !isValidSchemaForValue(existing, fieldValue) ?\n schemaGenerator.getSchema(fieldValue, fieldName) : null;\n\n if (generated != null) {\n outputFields.add(Schema.Field.of(fieldName, generated));\n } else if (existing != null) {\n if (!existing.getType().equals(Schema.Type.NULL) && !existing.isNullable()) {\n existing = Schema.nullableOf(existing);\n }\n outputFields.add(Schema.Field.of(fieldName, existing));\n } else {\n outputFields.add(Schema.Field.of(fieldName, Schema.of(Schema.Type.NULL)));\n }\n }\n return Schema.recordOf(\"output\", outputFields);\n }", "public DataMatrix getOutputData() {\n return this.dataOutput;\n }", "private Schema.Field getOutputSchemaField(GroupByConfig.FunctionInfo functionInfo, Schema inputSchema) {\n if (functionInfo.getField().equals(\"*\")) {\n AggregateFunction aggregateFunction = functionInfo.getAggregateFunction(null);\n return Schema.Field.of(functionInfo.getName(), aggregateFunction.getOutputSchema());\n }\n\n Schema.Field inputField = inputSchema.getField(functionInfo.getField());\n if (inputField == null) {\n throw new IllegalArgumentException(String.format(\n \"Invalid aggregate %s(%s): Field '%s' does not exist in input schema %s.\",\n functionInfo.getFunction(), functionInfo.getField(), functionInfo.getField(), inputSchema));\n }\n AggregateFunction aggregateFunction = functionInfo.getAggregateFunction(inputField.getSchema());\n return Schema.Field.of(functionInfo.getName(), aggregateFunction.getOutputSchema());\n }", "public String getoutputString() {\r\n\t\treturn outputString;\r\n\t}", "public String getOutput() {\n\t\treturn results.getOutput() ;\n\t}", "@Override\r\n\tpublic boolean getOutput() {\n\t\treturn false;\r\n\t}", "public String getPathFileOut() {\r\n\t\treturn pathFileOut;\r\n\t}", "@Override\r\n\tpublic String getOutputPhaseId() {\r\n\t\treturn \"UCF Document\";\r\n\t}", "private com.google.protobuf.SingleFieldBuilderV3<\n org.hyperledger.fabric.protos.token.Transaction.PlainDelegatedOutput, org.hyperledger.fabric.protos.token.Transaction.PlainDelegatedOutput.Builder, org.hyperledger.fabric.protos.token.Transaction.PlainDelegatedOutputOrBuilder> \n getDelegatedOutputFieldBuilder() {\n if (delegatedOutputBuilder_ == null) {\n delegatedOutputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n org.hyperledger.fabric.protos.token.Transaction.PlainDelegatedOutput, org.hyperledger.fabric.protos.token.Transaction.PlainDelegatedOutput.Builder, org.hyperledger.fabric.protos.token.Transaction.PlainDelegatedOutputOrBuilder>(\n getDelegatedOutput(),\n getParentForChildren(),\n isClean());\n delegatedOutput_ = null;\n }\n return delegatedOutputBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n speech.multilang.Params.OutputControllerParams, speech.multilang.Params.OutputControllerParams.Builder, speech.multilang.Params.OutputControllerParamsOrBuilder> \n getOutputParamsFieldBuilder() {\n if (outputParamsBuilder_ == null) {\n outputParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n speech.multilang.Params.OutputControllerParams, speech.multilang.Params.OutputControllerParams.Builder, speech.multilang.Params.OutputControllerParamsOrBuilder>(\n getOutputParams(),\n getParentForChildren(),\n isClean());\n outputParams_ = null;\n }\n return outputParamsBuilder_;\n }", "@Override\n public String getMappedLocation() {\n return gameMap.convertPortReferenceToName(reference);\n }", "public String getOutputPath()\n {\n return __m_OutputPath;\n }", "@Override final protected Class<?>[] getOutputTypes() { return this.OutputTypes; }", "public StreamResult getOutput() {\n return output;\n }", "public File getOutputFilePath() {\n return outputFile;\n }", "public OutputDecorator getOutputDecorator()\n/* */ {\n/* 675 */ return this._outputDecorator;\n/* */ }", "public List<ContractIOType> getOutputs() {\n return outputs;\n }", "public String toString()\n\t{\n\t\treturn fieldname;\n\t}", "public String getOutputPath () \n\t{\n\t\treturn outputPathTextField.getText();\n\t}", "public JSONArray getOutput() {\n\t\treturn output;\n\t}", "@Override\r\n\t\t\tpublic void declareOutputFields(OutputFieldsDeclarer declarer) {\n\t\t\t\tdeclarer.declare(new Fields(\"mongoStorm\"));\r\n\t\t\t}", "public String getpathOutput() {\r\n\t\treturn pathOutput;\r\n\t}", "public String getOutput() {\n myLock.lock();\n try {\n return myOutput.toString();\n }\n finally {\n myLock.unlock();\n }\n }", "public ProcessVertex getOutVertex() {\n\t\treturn this.outVertex;\n\t}", "public AbstractDirectMapping getVersionMapping(){\r\n if (this.lockMapping != null){\r\n return this.lockMapping;\r\n }else{\r\n return (AbstractDirectMapping)this.descriptor.getObjectBuilder().getBaseMappingForField(this.writeLockField);\r\n }\r\n }", "public String outputFileName() {\n return outputFileName;\n }", "public String getOutputPath() {\n\t\treturn outputPath;\n\t}", "private com.google.protobuf.SingleFieldBuilderV3<\n io.dstore.values.StringValue, io.dstore.values.StringValue.Builder, io.dstore.values.StringValueOrBuilder> \n getPersonOutputCharacteristicsFieldBuilder() {\n if (personOutputCharacteristicsBuilder_ == null) {\n personOutputCharacteristicsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n io.dstore.values.StringValue, io.dstore.values.StringValue.Builder, io.dstore.values.StringValueOrBuilder>(\n getPersonOutputCharacteristics(),\n getParentForChildren(),\n isClean());\n personOutputCharacteristics_ = null;\n }\n return personOutputCharacteristicsBuilder_;\n }", "public String getOutputFile() {\n return outputFile;\n }", "public String getFileNameOut() {\r\n\t\treturn fileNameOut;\r\n\t}", "public String[] getOutputsAttribute();", "@Override\n\tpublic Value[] getOutputValues() {\n\t\treturn null;\n\t}", "public FumlMapping getMapping() {\r\n if (this.mapping == null) {\r\n Object element = this.getInternalElementReference().getElement();\r\n if (element != null) {\r\n this.mapping = this.fumlMap(element);\r\n }\r\n }\r\n return this.mapping;\r\n }", "public Entry output();", "public String toString()\n {\n return m_strFieldName;\n }", "public String getOutputString()\n\t{\n\t\treturn outputString;\n\t}", "OutputsType getOutputs();" ]
[ "0.593791", "0.58615905", "0.5847839", "0.5740829", "0.5667389", "0.56301004", "0.56014067", "0.5553201", "0.5520122", "0.5481379", "0.54524326", "0.54436904", "0.54436904", "0.5433621", "0.543302", "0.5428771", "0.54250044", "0.54168755", "0.5405812", "0.54032767", "0.53927076", "0.53884745", "0.53833956", "0.5356634", "0.5351447", "0.5349369", "0.5338998", "0.5324091", "0.5317776", "0.53058463", "0.53041047", "0.52966654", "0.52937245", "0.5287729", "0.52727854", "0.527023", "0.52701193", "0.52592254", "0.5257185", "0.5237535", "0.52371633", "0.522981", "0.52279174", "0.52133566", "0.52037466", "0.5192137", "0.51906466", "0.5183523", "0.5174449", "0.51725864", "0.5159136", "0.5156048", "0.51551765", "0.51467055", "0.5142928", "0.5140542", "0.5140151", "0.51256365", "0.512006", "0.510974", "0.5104114", "0.50910324", "0.508423", "0.5083261", "0.5082009", "0.505858", "0.50533664", "0.50445616", "0.5025757", "0.50181913", "0.5015289", "0.5012569", "0.5011237", "0.50079924", "0.50065047", "0.4998438", "0.49983042", "0.4993039", "0.4989583", "0.498818", "0.49752045", "0.49744895", "0.4972367", "0.4965685", "0.49650016", "0.49643686", "0.49594745", "0.49571246", "0.49513122", "0.4945914", "0.49457583", "0.49444702", "0.49434495", "0.4939744", "0.49362695", "0.49359515", "0.49342123", "0.49285004", "0.49276277", "0.49224716" ]
0.81406033
0
Convert the given object to string with each line indented by 4 spaces (except the first line).
private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPACES);\n }", "private String toIndentedString(Object o)\n/* */ {\n/* 128 */ if (o == null) {\n/* 129 */ return \"null\";\n/* */ }\n/* 131 */ return o.toString().replace(\"\\n\", \"\\n \");\n/* */ }", "private String toIndentedString( Object o )\n {\n if ( o == null )\n {\n return \"null\";\n }\n return o.toString().replace( \"\\n\", \"\\n \" );\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }" ]
[ "0.7884939", "0.7549351", "0.74972624", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987", "0.74616987" ]
0.0
-1
405 Method Not Allowed
@ResponseStatus(HttpStatus.METHOD_NOT_ALLOWED) @ExceptionHandler(HttpRequestMethodNotSupportedException.class) public AjaxResult<String> handleHttpRequestMethodNotSupportedException(HttpRequestMethodNotSupportedException e) { log.error("不支持当前请求方法", e); return new AjaxResult<String>(ResultStatusCode.METHOD_NOT_ALLOWED.getCode(), ResultStatusCode.METHOD_NOT_ALLOWED.getMsg()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getMethod() {\n return \"POST\";\n }", "@Override\n public String getMethod() {\n return \"POST\";\n }", "@Override\n\tprotected HttpMethod requestMethod() {\n\t\treturn HttpMethod.POST;\n\t}", "@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_ALLOWED);\n }\n }", "@ResponseStatus (HttpStatus.METHOD_NOT_ALLOWED)\n\t@ExceptionHandler (HttpRequestMethodNotSupportedException.class)\n\tpublic Result handleHttpRequestMethodNotSupportedException (HttpRequestMethodNotSupportedException e)\n\t{\n\t\treturn new Result ().failure (\"request_method_not_supported\");\n\t}", "@Override\n\tpublic String getRequestMethod() {\n\t\treturn requestMethod;\n\t}", "public HTTPRequestMethod getMethod();", "String getHttpMethod();", "String getHttpMethod();", "public HttpMethod getMethod()\r\n/* 44: */ {\r\n/* 45: 78 */ return HttpMethod.valueOf(this.servletRequest.getMethod());\r\n/* 46: */ }", "@ResponseStatus(HttpStatus.METHOD_NOT_ALLOWED)\n @ExceptionHandler(HttpRequestMethodNotSupportedException.class)\n public Result<Object> handleHttpRequestMethodNotSupportedException(HttpRequestMethodNotSupportedException e) {\n logger.error(\"\", e);\n return new Result<Object>(405,\"不支持当前请求方法\");\n }", "@Override\n\t\tpublic String getMethod() {\n\t\t\treturn null;\n\t\t}", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "@ResponseStatus(HttpStatus.METHOD_NOT_ALLOWED)\n @ExceptionHandler(HttpRequestMethodNotSupportedException.class)\n public ModelAndView handleHttpRequestMethodNotSupportedException(HttpRequestMethodNotSupportedException e) {\n //log.error(\"不支持当前请求方法\", e);\n String message = \"【不支持当前请求方法】\" + e.getMessage();\n ModelAndView modelAndView = new ModelAndView(\"error/error\");\n modelAndView.addObject(\"message\", message);\n modelAndView.addObject(\"code\", 405);\n modelAndView.addObject(\"exception\", e);\n return modelAndView;\n }", "@Override\r\n\tprotected ResponseEntity<Object> handleHttpRequestMethodNotSupported(HttpRequestMethodNotSupportedException ex,\r\n\t\t\tHttpHeaders headers, HttpStatus status, WebRequest request) {\n\t\treturn super.handleHttpRequestMethodNotSupported(ex, headers, status, request);\r\n\t}", "public HttpMethod getMethod()\r\n/* 31: */ {\r\n/* 32:60 */ return HttpMethod.valueOf(this.httpRequest.getMethod());\r\n/* 33: */ }", "@RequestMapping\n public void othersRooms() throws MethodNotAllowedException {\n throw new MethodNotAllowedException();\n }", "private void checkRequest(Request req) throws MethodNotAllowed, NotFound {\n if (!req.getHeader(\"Method\").equals(\"GET\") ||\n !req.getHeader(\"Version\").equals(\"HTTP/1.1\")) {\n throw new MethodNotAllowed();\n }\n if (req.getHeader(\"Path\").endsWith(\"/\")) {\n throw new NotFound();\n }\n }", "@Test\n public void testHttp405NotAllowedMethod() {\n final NioEventLoopGroup bootGroup = new NioEventLoopGroup();\n final NioEventLoopGroup processGroup = new NioEventLoopGroup();\n final String json = \"{\\\"action\\\":\\\"ping\\\"}\";\n final ByteBuf content = Unpooled.copiedBuffer(json, StandardCharsets.UTF_8);\n\n final ChannelFuture serverChannel = runServer(bootGroup, processGroup);\n runClient(HttpMethod.PUT, content, uri);\n\n serverChannel.awaitUninterruptibly();\n bootGroup.shutdownGracefully();\n processGroup.shutdownGracefully();\n\n final String expected = \"{\\\"action\\\":\\\"error\\\",\\\"content\\\":\\\"Ping Pong server failure\\\",\\\"status\\\":\\\"405 Method Not Allowed\\\"}\";\n final String actual = buffer.toString();\n logger.info(\"Expected result: {}\", expected);\n logger.info(\"Actual result: {}\", actual);\n Assert.assertEquals(\"Hadn't processed the request: 405 Method Not Allowed\", expected, actual);\n }", "public void setMethod(HTTPMethod method);", "public RestUtils setMethodPost()\n\t{\n\t\trestMethodDef.setHttpMethodPost(true);\n\t\treturn this;\n\t}", "public String getRequestMethod(){\n return this.requestMethod;\n }", "@ResponseStatus(HttpStatus.METHOD_NOT_ALLOWED)\n @ExceptionHandler(HttpRequestMethodNotSupportedException.class)\n public String handleHttpRequestMethodNotSupportedException(HttpRequestMethodNotSupportedException e) {\n log.error(\"不支持当前请求方法\", e);\n return new Msg().fail().addVal(Msg.msg, \"request_method_not_supported\").toJson();\n }", "@Test\n public void create_405() throws Exception {\n\n // PREPARE THE DATABASE\n // Fill in the workflow db\n addMOToDb(1);\n addMOToDb(2);\n Integer id = addMOToDb(3).getId();\n\n // PREPARE THE TEST\n // Change the name\n Workflow mo = new Workflow();\n mo.setName(\"Different name\");\n mo.setDescription(\"Different description\");\n mo.setRaw(\"Different raw\");\n\n\n // DO THE TEST\n Response response = callAPI(VERB.POST, \"/mo/\" + id.toString(), mo);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(405, status);\n\n String body = response.readEntity(String.class);\n assertEquals(\"HTTP 405 Method Not Allowed\", body);\n }", "public static ChannelFuture send405MethodNotAllowed(ChannelHandlerContext ctx, Map<String, String> headersMap, byte[] data, boolean useDefaultListener) {\n return checkBeforeSend(ctx, METHOD_NOT_ALLOWED, headersMap, data, useDefaultListener, \"METHOD NOT ALLOWED\");\n }", "@Override\n public String getMethod() {\n return METHOD_NAME;\n }", "@ExceptionHandler(MethodNotAllowedException.class)\n @ResponseStatus(HttpStatus.METHOD_NOT_ALLOWED)\n public ExceptionResponse methodNotAllowedException(final MethodNotAllowedException notAllowedException) {\n return processError(notAllowedException, HttpStatus.METHOD_NOT_ALLOWED);\n }", "@Override\n public HttpMethods getMethod() {\n return HttpMethods.EVAL;\n }", "public String getRequestMethod()\n {\n return requestMethod;\n }", "public String post();", "@ExceptionHandler(HttpRequestMethodNotSupportedException.class)\r\n public ResponseEntity<DefaultErrorList> handlerMethodNotSupported(HttpRequestMethodNotSupportedException ex, HttpServletRequest request) {\r\n\t\tLOGGER.error(\"Error metodo HTTP no soportado para este endpoint, {}\", request.getRequestURL().toString());\r\n\t\treturn new ResponseEntity<DefaultErrorList>(new DefaultErrorList(new DefaultError\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(GeneralCatalog.GRAL001.getCode(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGeneralCatalog.GRAL001.getMessage(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGeneralCatalog.GRAL001.getLevelException().toString(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"Metodo HTTP no soportado para este endpoint\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trequest.getRequestURL().toString()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)), HttpStatus.INTERNAL_SERVER_ERROR);\r\n }", "public RestUtils setMethodGet()\n\t{\n\t\trestMethodDef.setHttpMethodPost(false);\n\t\treturn this;\n\t}", "public void setRequestMethod(String requestMethod){\n this.requestMethod = requestMethod;\n }", "@RequestMapping(value = \"/{id}\", method = RequestMethod.POST)\n public void post(@PathVariable(\"id\") String id, HttpServletRequest req){\n throw new NotImplementedException(\"To be implemented\");\n }", "boolean hasHttpMethod();", "Collection<HttpMethod> getMinimalSupportedHttpMethods();", "@Override\r\n protected ModelAndView handleRequestInternal(\r\n HttpServletRequest request,\r\n HttpServletResponse response\r\n ) throws Exception\r\n {\r\n throw new UnsupportedOperationException(\"No need to implement it\");\r\n }", "public String getHttpMethod() {\n return httpMethod;\n }", "public HttpMethod getMethod()\r\n/* 29: */ {\r\n/* 30:56 */ return this.method;\r\n/* 31: */ }", "public void setRequestMethod(int requestMethod) {\n this.requestMethod = requestMethod;\n }", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "public HttpMethod method() {\n\t\treturn method;\n\t}", "private void sendNoSuchMethod(HttpRequest request, HttpResponse response) {\n\t\tresponse.clearContent();\n\t\tresponse.setStatus( HttpResponse.STATUS_NOT_FOUND );\n\t\tresponse.setContentType( \"text/plain\" );\n\t\tresponse.println ( \"The method you requested is not known to this service!\" );\n\t\tconnector.logError(\"Invocation request \" + request.getPath() + \" for unknown service method\");\n\t}", "public HttpMethod method() {\n return method;\n }", "public HttpMethod getMethod() {\n return method;\n }", "@JsonIgnore\n public java.lang.reflect.Method getMethod() {\n return this.method;\n }", "public String getHttpmethod() {\n return httpmethod;\n }", "public void setReqMethod(java.lang.String value) {\n this.req_method = value;\n }", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n String contextPath = req.getContextPath();\n// String path = uri.replaceAll(contextPath, \"\");\n Method method = urlMethodMap.get(contextPath);\n if (method != null) {\n String packageName = methodPackageMap.get(method);\n String controllerName = nameMap.get(packageName);\n UserController userController = (UserController) instanceMap.get(controllerName);\n try {\n method.setAccessible(true);\n method.invoke(userController);\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n }\n }\n }", "@Test\n public void testDefaultOriginMethodNotAllowed() throws Exception {\n final HttpResponse response = Request.Post(\"http://localhost:\" + httpPort.getValue() + CORS_DEFAULT_ENDPOINT_PATH).addHeader(\"Origin\", CORS_DEFAULT_ORIGIN).execute().returnResponse();\n\n //a well behaved client should have sent a preflight\n //but we don't want to be well behaved\n assertNull(\"Allowed origin should NOT be present\", response.getFirstHeader(HttpHeaders.Names.ACCESS_CONTROL_ALLOW_ORIGIN));\n\n //the payload should NOT be the expected response\n assertThat(IOUtils.toString(response.getEntity().getContent()), not(equalTo(EXPECTED_RETURN)));\n\n }", "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Bean\n public HiddenHttpMethodFilter hiddenHttpMethodFilter() {\n return new HiddenHttpMethodFilter() {\n @Override\n public Mono<Void> filter(ServerWebExchange exchange, WebFilterChain chain) {\n return chain.filter(exchange);\n }\n };\n }", "private void setRequestMethod() {\n switch (type) {\n case GET:\n try {\n connection.setRequestMethod(GET);\n } catch (ProtocolException e) {\n LOG.severe(\"Could not set request as GET successfully\");\n LOG.severe(e.toString());\n }\n break;\n case POST:\n try {\n connection.setDoOutput(true);\n connection.setRequestMethod(POST);\n } catch (ProtocolException e) {\n LOG.severe(\"Could not set request as POST successfully\");\n LOG.severe(e.toString());\n }\n break;\n case PUT:\n try {\n connection.setDoOutput(true);\n connection.setRequestMethod(PUT);\n } catch (ProtocolException e) {\n LOG.severe(\"Could not set request as PUT successfully\");\n LOG.severe(e.toString());\n }\n break;\n case DELETE:\n try {\n connection.setDoOutput(true);\n connection.setRequestMethod(DELETE);\n } catch (ProtocolException e) {\n LOG.severe(\"Could not set request as DELETE successfully\");\n LOG.severe(e.toString());\n }\n break;\n case PATCH:\n try {\n connection.setDoOutput(true);\n connection.setRequestMethod(PATCH);\n } catch (ProtocolException e) {\n LOG.severe(\"Could not set request as PATCH successfully\");\n LOG.severe(e.toString());\n }\n break;\n }\n }", "@Override\n public ServiceResponse allowedMethods(final ServiceRequest request) throws SOAPException {\n return this.soapClient.allowedMethods(request, this.getTargetUrl());\n }", "@Override\n\tpublic ActionResult defaultMethod(PortalForm form, HttpServletRequest request, HttpServletResponse response) {\n\t\treturn null;\n\t}", "@Override\n\tprotected String route() {\n\t\treturn \"api/ad\";\n\t}", "public void setHttpMethod(int httpMethod) {\n method = httpMethod;\n }", "public RestUtils setMethodDelete()\n\t{\n\t\trestMethodDef.setHttpMethod(HttpMethod.DELETE);\n\t\treturn this;\n\t}", "@ExceptionHandler(HttpRequestMethodNotSupportedException.class)\n @ResponseBody\n @ResponseStatus(HttpStatus.METHOD_NOT_ALLOWED)\n public String handleException(final HttpRequestMethodNotSupportedException e) {\n return convertErrorAsJson(e.getMessage());\n }", "public boolean hasHttpMethod() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public String formNotAllowed()\r\n {\r\n return formError(\"403 Access Denied\",\"Access is not allowed\");\r\n }", "public boolean hasHttpMethod() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public java.lang.String getReqMethod() {\n return req_method;\n }", "@Override\r\n\tprotected ResponseEntity<Object> handleMethodArgumentNotValid(MethodArgumentNotValidException ex,\r\n\t\t\tHttpHeaders headers, HttpStatus status, WebRequest request) {\n\t\treturn super.handleMethodArgumentNotValid(ex, headers, status, request);\r\n\t}", "public Verb getAccessTokenVerb() {\n\n\treturn Verb.POST;\n }", "@Override\n public MethodFault getExpectedMethodFault()\n {\n return new InvalidRequest();\n }", "public java.lang.String getReqMethod() {\n return req_method;\n }", "public String getMethod ()\n {\n return method;\n }", "default PacketMethod getMethod() {\n return PacketMethod.POST;\n }", "public String formForbidden()\r\n {\r\n return formError(\"403 Forbidden\",\"You need permission for this service\");\r\n }", "@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {\n\t\ttry {\n\t\t\t// Get the URL Info\n\t\t\t//\n\t\t\tString action = request.getPathInfo();\n\n\t\t\t// Allow localhost communication\n\t\t\t//\n\t\t\tresponse.addHeader(\"Access-Control-Allow-Origin\", \"http://localhost\");\n\n\t\t\t// Allow gdrg.cs.viginia.edu communication\n\t\t\t//\n\t\t\t// response.addHeader(\"Access-Control-Allow-Origin\", \"http://gdrg.cs.virginia.edu\");\n\n\t\t\t// Must designate an action\n\t\t\t//\n\t\t\tif(action.isEmpty()) {\n\t\t\t\tresponse.sendError(500, \"Badly Formed URL. Must designate an action.\");\n\t\t\t\treturn;\n\t\t\t} else {\n\t\t\t\t// Trim trailing or leading '/' characters.\n\t\t\t\tif(action.charAt(0) == '/') {\n\t\t\t\t\taction = action.substring(1);\n\t\t\t\t}\n\t\t\t\tif(action.charAt(action.length() - 1) == '/') {\n\t\t\t\t\taction = action.substring(0, action.length() - 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(action.isEmpty()) {\n\t\t\t\tresponse.sendError(500, \"Badly Formed URL. Must designate an action.\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Received Request to : \\\"\" + action + \"\\\"\");\n\n\t\t\t// Handle the action\n\t\t\t//\n\t\t\tResponseInfo actionResponse = handleRequest(action, request.getParameterMap());\n\n\t\t\t// Write the response back to the client\n\t\t\t//\n\t\t\tif(actionResponse.hasError()) {\n\t\t\t\tresponse.sendError(actionResponse.status, actionResponse.message);\n\t\t\t\treturn;\n\t\t\t} else {\n\t\t\t\tPrintWriter writer = response.getWriter();\n\t\t\t\twriter.println(actionResponse.message);\n\t\t\t\twriter.close();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Hit Unexpected Error:\");\n\t\t\tSystem.out.println(e);\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\te.printStackTrace(System.out);\n\t\t\tresponse.sendError(500, \"Unknown Error: \" + e + \" \" + e.getMessage());\n\t\t}\n\t}", "@RequestMapping(method = RequestMethod.POST)\n public Bin create() {\n throw new NotImplementedException(\"To be implemented\");\n }", "@Override\r\n\tpublic void doPost(CustomHttpRequest request, CustomHttpResponse response) throws Exception {\n\t\tdoGet(request, response);\r\n\t}", "interface LockssPostMethod extends HttpMethod {\n long getResponseContentLength();\n }", "@Override\n\tpublic HttpRespModel methodDispatch(String method, String body) {\n\t\tSituationMethod requestMethod = SituationMethod.fromString(method);\n\t\tHttpRespModel respModel = new HttpRespModel();\n\t\t\n\t\t\n\t\tswitch (requestMethod) {\n\t\tcase AddMealSituationMethod:\n\t\t{\n\t\t\t//添加吃饭记录\n\t\t\trespModel = addMealSituationHandler(body);\n\t\t\tbreak;\n\t\t}\n\t\tcase TodayMealSituationMethod:{\n\t\t\t//获取当天吃饭记录\n\t\t\trespModel = getTodayMealSituations(body);\n\t\t\tbreak;\n\t\t}\n\t\tcase AddSleepSituationMethod:{\n\t\t\t//添加睡觉情况记录\n\t\t\trespModel = addSleepSituation(body);\n\t\t\tbreak;\n\t\t\t\n\t\t}\n\t\tcase TodaySleepSituationMethod:{\n\t\t\t//获取当天睡觉情况记录\n\t\t\trespModel = getTodaySleepSituations(body);\n\t\t\tbreak;\n\t\t}\n\t\tcase InterestCateList:{\n\t\t\t//获取兴趣分类列表\n\t\t\tInterestUtil util = new InterestUtil();\n\t\t\trespModel = util.getAllInterestList();\n\t\t\tbreak;\n\t\t}\n\t\tcase TodayInterestSituationMethod:{\n\t\t\trespModel = getTodayInterestSituations(body);\n\t\t\tbreak;\n\t\t}\n\t\tcase AddInterestSituationMethod:{\n\t\t\t//添加兴趣学习清理\n\t\t\trespModel = addInterestSituation(body);\n\t\t\tbreak;\n\t\t}\n\t\tcase UnkonwnMethod:\n\t\tdefault:{\n\t\t\trespModel.setCode(RespError.urlMethodError);\n\t\t\trespModel.setMessage(\"对不起, method: \" + method + \"没有找到。\");\n\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t}\n\t\treturn respModel;\n\t}", "protected void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\r\n\t\tString action = req.getParameter(\"action\");\r\n\t\tif (action.equalsIgnoreCase(\"delete\")) {\r\n\t\t\tdoDelete(req, resp);\r\n\t\t\treturn;\r\n\t\t} else if (action.equalsIgnoreCase(\"put\")) {\r\n\t\t\tdoPut(req, resp);\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "private boolean isPreflight(HttpServletRequest request) {\n return request.getMethod().equals(\"OPTIONS\");\n }", "public void getMethod () throws MqttException {\n if (message.getMethod().equals(\"GET\")) {\n if (message.getData() != null && !message.getData().equals(\"\")) {\n getPatient(message.getData());\n } else {\n getAllPatients();\n }\n }\n\n if (message.getMethod().equals(\"POST\")) {\n createPatient(new Gson().fromJson(message.getData(), Patient.class));\n }\n }", "public void setMethod(String method)\r\n {\r\n routing_method=method;\r\n }", "String getMethod();", "String getMethod();", "@RequestMapping(value = \"/{id}\", method = RequestMethod.OPTIONS)\n public void options(@PathVariable(\"id\") String id, HttpServletRequest req){\n throw new NotImplementedException(\"To be implemented\");\n }", "@RequestMapping(value = \"/approveDenyAppointment\", method = RequestMethod.GET)\n public String approveDenyAppointment()\n {\n return \"approveDenyAppointment\";\n }", "private void erweimaHttpPost() {\n\t\tHttpUtils httpUtils = new HttpUtils();\n\t\tUtils utils = new Utils();\n\t\tString[] verstring = utils.getVersionInfo(getActivity());\n\t\tRequestParams params = new RequestParams();\n\t\tparams.addHeader(\"ccq\", utils.getSystemVersion()+\",\"+ verstring[0]+\",\"+verstring[2]);\n\t\tparams.addBodyParameter(\"token\",\n\t\t\t\tnew DButil().gettoken(getActivity()));\n\t\tparams.addBodyParameter(\"member_id\",\n\t\t\t\tnew DButil().getMember_id(getActivity()));\n\t\thttpUtils.send(HttpMethod.POST, JiekouUtils.TUIGUANGERWEIMA, params,\n\t\t\t\tnew RequestCallBack<String>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tLog.e(\"ee\", \"失败:\" + arg1);\n\t\t\t\t\t\thandler.sendEmptyMessage(HANDLER_NET_FAILURE);\n\t\t\t\t\t\t// handler.sendEmptyMessage(HANDLER_NET_FAILURE);\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(ResponseInfo<String> arg0) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\terweimaJsonInfo(arg0.result);\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "@Nullable\n abstract Method getMethod();", "public String getMethod() {\n\t\treturn getParameter(\"method\");\n\t}", "@Override\n public String performGet(HttpServletRequest request) {\n return performPost(request);\n }", "public Method getMethod();", "@Override\n\tpublic void beforeAction(String method, HttpServletRequest request, HttpServletResponse response) {\n\t\t// Default behavior : nothing to do \n\t}", "protected boolean methodForbidden() {\n return methodToTest.getName().equals(\"getClassNull\")\n || methodToTest.getName().startsWith(\"isA\")\n || methodToTest.getName().equals(\"create\")\n || methodToTest.getName().equals(\"getTipString\")\n || methodToTest.getName().equals(\"toString\");\n }", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\nSystem.err.println(\"=====================>>>>>123\");\n\t\tString key=req.getParameter(\"method\");\n\t\tswitch (key) {\n\t\tcase \"1\":\n\t\t\tgetProvinces(req,resp);\n\t\t\tbreak;\n\t\tcase \"2\":\n\t\t\tgetCities(req,resp);\t\t\t\n\t\t\tbreak;\n\t\tcase \"3\":\n\t\t\tgetAreas(req,resp);\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t}", "Set<HttpMethod> optionsForAllow(URI url) throws RestClientException;", "private RawHttpResponse<?> executeRequest(String method, String path) throws IOException {\r\n\t\tSocket socket = new Socket(\"localhost\", 8080);\r\n\t\treturn executeRequest(method, path, \"\", socket);\r\n\t}", "public String getHttpMethod() {\n Object ref = httpMethod_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n httpMethod_ = s;\n }\n return s;\n }\n }", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n super.doPost(req, resp);\n }", "@Nullable @NotEmpty public String getMethod() {\n return StringSupport.trimOrNull(method);\n }", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "Methodsig getMethod();", "public String getMethod() {\n\t\t\treturn method;\n\t\t}" ]
[ "0.7152973", "0.7133186", "0.7082063", "0.6715006", "0.6513398", "0.64824086", "0.6469826", "0.64195544", "0.64195544", "0.63859034", "0.6302454", "0.6287713", "0.6269986", "0.61943805", "0.61851686", "0.617407", "0.6109838", "0.60321355", "0.60006076", "0.6000064", "0.59518", "0.59236085", "0.5887487", "0.5883717", "0.5850598", "0.58501375", "0.5845391", "0.58042717", "0.5803474", "0.57642466", "0.57628083", "0.57622707", "0.5757974", "0.5723796", "0.57066447", "0.5698973", "0.56740123", "0.5657275", "0.56265634", "0.5598962", "0.5596695", "0.5553686", "0.552889", "0.5500799", "0.5493824", "0.5493615", "0.549361", "0.5490362", "0.5478842", "0.54375017", "0.54345727", "0.54289895", "0.54206246", "0.54135114", "0.5397002", "0.539696", "0.53916675", "0.5363111", "0.53440124", "0.5342893", "0.5335401", "0.53353965", "0.5330964", "0.53208673", "0.5312889", "0.53025854", "0.5301215", "0.5273924", "0.5272349", "0.522962", "0.5224466", "0.5217348", "0.52100325", "0.5200339", "0.51932", "0.518729", "0.51823336", "0.5173615", "0.51664084", "0.516605", "0.516605", "0.51583016", "0.5144619", "0.51436746", "0.51412416", "0.5131026", "0.51240706", "0.5120318", "0.51141375", "0.51123005", "0.5111924", "0.5104143", "0.5103258", "0.510165", "0.5092766", "0.50871676", "0.5086303", "0.5086303", "0.5084164", "0.50756973" ]
0.59666437
20
ele diz as latitudes e longitude que ele esta e o sistema busca proximo a ele usuarios prestadores...
@GET @Path("{latitude}/{longitude}") @Produces(MediaType.APPLICATION_JSON) public Response tentarLogar(@PathParam("latitude") String latitude , @PathParam("longitude") String longitude) { return new ResponseManager().execute(new Interfaces.ResponseCallBack() { @Override public Response getResponse() throws Exception, ConnectionSQLException { ModelUsuarioPrestador model = new ModelUsuarioPrestador(); Collection<UsuarioPrestador> list = model.buscarProximos( new Local( latitude , longitude ) ); return Response.ok( new Gson().toJson( list ) ).build(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private List<LatLng> getCoordinates() {\n\n List<LatLng> list = new ArrayList<>();\n SharedPreferences.Editor editor = walkingSharedPreferences.edit();\n int size = walkingSharedPreferences.getInt(user.getUsername(), 0);\n for(int actual = 0; actual < size; actual++) {\n String pos = walkingSharedPreferences.getString(user.getUsername() + \"_\" + actual, \"\");\n editor.remove(user.getUsername() + \"_\" + actual);\n String[] splitPos = pos.split(\" \");\n LatLng latLng = new LatLng(Double.parseDouble(splitPos[LAT]), Double.parseDouble(splitPos[LNG]));\n list.add(latLng);\n }\n editor.remove(user.getUsername());\n editor.apply();\n return list;\n\n }", "private void getUsersGeolocalisation(User user) {\n System.out.println(\"##########Getting \".concat(user.getScreenName()).concat(\" Location ##########\"));\n String[] place = user.getLocation().split(\",\");\n if (place != null && place.length != 0) {\n\n addEdgesToGraph(user.getScreenName(), place);\n }\n\n\n }", "private void comenzarLocalizacion()\n {\n \tlocManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE);\n \t\n \t//Obtiene Ultima Ubicacion\n \t//Location loc = locManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n \t \t\n \t//Nos registramos para recibir actualizaciones de la posici�n\n \tlocListener = new LocationListener() {\n\t \tpublic void onLocationChanged(Location location) {\n\t \t\t\n\t \t}\n\t \tpublic void onProviderDisabled(String provider){\n\t \t\t\n\t \t}\n\t \tpublic void onProviderEnabled(String provider){\n\t \t\n\t \t}\n\t \tpublic void onStatusChanged(String provider, int status, Bundle extras){\n\t \t\n\t \t\t\n\t \t}\n \t};\n \t\n \tlocManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 30000, 0, locListener);\n }", "@Override\n\tpublic List<Map<String,Object>> getLimitLocationByLatLng(double lat, double lng,\n\t\t\tint start, int count, long userId) {\n\t\tList<Map<String,Object>> list = locationDao.listBySql(\"select a.*,b.head_img,b.birth,b.user_name,b.sex,b.country,b.nick_name,b.invisible,(POWER(MOD(ABS(lng - \"+lng+\"),360),2) + POWER(ABS(lat - \"+lat+\"),2)) AS distance from tb_location a, tb_user b where a.user_id = b.user_id and a.user_id <> \"+userId+\" ORDER BY distance LIMIT \"+start+\",\"+count);\n\t\t//SELECT lng,lat, (POWER(MOD(ABS(lng - $lng),360),2) + POWER(ABS(lat - $lat),2)) AS distance FROM `user_location` ORDER BY distance LIMIT 100 \n\t\treturn list;\n\t}", "public void getCoordinates(){\n\t\t\n\t\t // check if GPS enabled\n GPSTracker gpsTracker = new GPSTracker(this);\n \n if (gpsTracker.canGetLocation())\n {\n latitude = gpsTracker.latitude;\n\n longitude = gpsTracker.longitude;\n }\n else\n {\n // can't get location\n // GPS or Network is not enabled\n // Ask user to enable GPS/network in settings\n gpsTracker.showSettingsAlert();\n }\n\t}", "long getLatitude();", "public static void main (String[] args)\r\n {\n Coordenada utm = new Coordenada(new Datum(6378388D, 6356911.94612795),\r\n\t\t\t 481742, 4770800, 700, (byte)29, true);\r\n //System.out.println(\"lon=\"+utm.getLon()+\" lat=\"+utm.getLat());\r\n //System.out.println(utm.getGrados(utm.getLon())+\"¦ \"+utm.getMinutos(utm.getLon())+\"' \"+utm.getSegundos(utm.getLon())+\"\\\" \"+utm.getGrados(utm.getLat())+\"¦ \"+utm.getMinutos(utm.getLat())+\"' \"+utm.getSegundos(utm.getLat())+\"\\\"\");\r\n @SuppressWarnings(\"unused\")\r\n Coordenada res;\r\n res = utm.CambioDeDatum(new Datum(6378137D, 6356752.31424518));\r\n\r\n //System.out.println(\"Coordenadas en Datum destino: X=\"+res.X+\" Y=\"+res.Y);\r\n //System.out.println(\"lon=\"+res.getLon()+\" lat=\"+res.getLat());\r\n //System.out.println(res.getGrados(res.getLon())+\"¦ \"+res.getMinutos(res.getLon())+\"' \"+res.getSegundos(res.getLon())+\"\\\" \"+res.getGrados(res.getLat())+\"¦ \"+res.getMinutos(res.getLat())+\"' \"+res.getSegundos(res.getLat())+\"\\\"\");\r\n\t\t\t\t \r\n }", "public int getLat();", "void getlatlong(){\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 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[]{Manifest.permission.ACCESS_COARSE_LOCATION,Manifest.permission.ACCESS_FINE_LOCATION,Manifest.permission.INTERNET}\n ,10);\n }\n return;\n }\n // this code won't execute IF permissions are not allowed, because in the line above there is return statement.\n\n //noinspection MissingPermission\n locationManager.requestLocationUpdates(\"gps\", 0, 0, listener);\n\n }", "private void comenzarLocalizacionPorRedDeDatos() {\n\t\tmLocManagerNetwork = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n//\t\tLog.i(LOGTAG, \"mLocManagerNetwork: \" + mLocManagerNetwork);\n\t\t\n\t\t//Nos registramos para recibir actualizaciones de la posicion\n\t\tmLocListenerNetwork = new LocationListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onStatusChanged(String provider, int status, Bundle extras) {\n//\t\t\t\tLog.i(LOGTAG, \"Cambio en estatus RED DE DATOS\");\n//\t\t\t\tToast.makeText(getApplicationContext(), \"Cambio en estatus RED DE DATOS\", Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"Red de Datos Encendida\", Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onProviderDisabled(String provider) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"Red de Datos Apagada por favor revise\", Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onLocationChanged(Location location) {\n\t\t\t\tguardarPosicion(location);\n\t\t\t}\n\t\t};\n//\t\tLog.i(LOGTAG, \"mLocListenerNetwork: \" + mLocListenerNetwork);\n\t\tmLocManagerNetwork.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, MIN_TIME_BW_UPDATES, MIN_DISTANCE_CHANGE_FOR_UPDATES, mLocListenerNetwork);\n\t}", "double getLatitude();", "private void comenzarLocalizacionPorGPS() {\n\t\tmLocManagerGPS = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n//\t\tLog.i(LOGTAG, \"mLocManagerGPS: \" + mLocManagerGPS);\n\t\t\n\t\t//Nos registramos para recibir actualizaciones de la posicion\n\t\tmLocListenerGPS = new LocationListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onStatusChanged(String provider, int status, Bundle extras) {\n//\t\t\t\tLog.i(LOGTAG, \"Cambio en estatus GPS: \" + provider + \" status: \" + status);\n//\t\t\t\tToast.makeText(getApplicationContext(), \"Cambio en estatus GPS: \" + provider + \" status: \" + status, Toast.LENGTH_SHORT).show();\n//\t\t\t\tif (status != 1) {\n//\t\t\t\t\tToast.makeText(getApplicationContext(), \"GPS NA, Iniciar geo por datos\", Toast.LENGTH_SHORT).show();\n//\t\t\t\t} else {\n//\t\t\t\t\tToast.makeText(getApplicationContext(), \"Se geolocalizo por GPS, no lanzar geo por datos\", Toast.LENGTH_SHORT).show();\n//\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"GPS Encendido\", Toast.LENGTH_SHORT).show();\n\t\t\t\ttimeStamp = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\", Locale.US).format(new Date());\n//\t\t\t\tString numeroTelefonico = obtenerLineaTelefonica();\n\t\t\t\tString imeiTelefono = obtenerIMEI();\n\t\t\t\tString icono = \"icons/gpsEncendido.png\";\n\t\t\t\tdatasource.guardoGeolocalizacionInvisible(imeiTelefono, icono, timeStamp);\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onProviderDisabled(String provider) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"GPS Apagado por favor revise\", Toast.LENGTH_SHORT).show();\n\t\t\t\ttimeStamp = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\", Locale.US).format(new Date());\n//\t\t\t\tString numeroTelefonico = obtenerLineaTelefonica();\n\t\t\t\tString imeiTelefono = obtenerIMEI();\n\t\t\t\tString icono = \"icons/gpsApagado.png\";\n\t\t\t\tdatasource.guardoGeolocalizacionInvisible(imeiTelefono, icono, timeStamp);\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onLocationChanged(Location location) {\n\t\t\t\tguardarPosicion(location);\n\t\t\t}\n\t\t};\n//\t\tLog.i(LOGTAG, \"mLocListenerGPS: \" + mLocListenerGPS);\n\t\tmLocManagerGPS.requestLocationUpdates(LocationManager.GPS_PROVIDER, MIN_TIME_BW_UPDATES, MIN_DISTANCE_CHANGE_FOR_UPDATES, mLocListenerGPS);\n\t}", "boolean hasHasLatitude();", "public void setLocation(){\n //Check if user come from notification\n if (getIntent().hasExtra(EXTRA_PARAM_LAT) && getIntent().hasExtra(EXTRA_PARAM_LON)){\n Log.d(TAG, \"Proviene del servicio, lat: \" + getIntent().getExtras().getDouble(EXTRA_PARAM_LAT) + \" - lon: \" + getIntent().getExtras().getDouble(EXTRA_PARAM_LON));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(getIntent().getExtras().getDouble(EXTRA_PARAM_LAT), getIntent().getExtras().getDouble(EXTRA_PARAM_LON)), 18));\n NotificationManager mNM = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n mNM.cancel(1);\n } else{\n if (bestLocation!=null){\n Log.d(TAG, \"Posicion actual -> LAT: \"+ bestLocation.getLatitude() + \" LON: \" + bestLocation.getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(bestLocation.getLatitude(), bestLocation.getLongitude()), 16));\n } else{\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(41.651981, -4.728561), 16));\n }\n }\n }", "private void getDeviceLocation(){\n\n Log.d(TAG, \"getDeviceLocation: getting device current location\");\n mFusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(this);\n try{\n if(mLocationPermissionGaranted){\n\n final Task location = mFusedLocationProviderClient.getLastLocation();\n location.addOnCompleteListener(task -> {\n if(task.isSuccessful()){\n Log.d(TAG, \"onComplete: found location!\");\n Location currentLocation = (Location) task.getResult();\n System.out.println(currentLocation);\n if (currentLocation !=null) {\n if (numDispositivo==1) {\n disp_Lat1 = Double.toString(currentLocation.getLatitude());\n disp_Long1 = Double.toString(currentLocation.getLongitude());\n }\n if (numDispositivo==2) {\n disp_Lat2 = Double.toString(currentLocation.getLatitude());\n disp_Long2 = Double.toString(currentLocation.getLongitude());\n }\n }\n System.out.println(disp_Lat1+\"-\"+disp_Long1);\n System.out.println(disp_Lat2+\"-\"+disp_Long2);\n Guardar();\n\n }else{\n Log.d(TAG, \"onComplete: current location is null\");\n Toast.makeText(FormularioCurso.this, \"unable to get current location\", Toast.LENGTH_SHORT).show();\n }\n });\n }\n }catch (SecurityException e){\n Log.e(TAG, \"getDeviceLocation: SecurityException: \" + e.getMessage() );\n }\n }", "Double getLatitude();", "Double getLatitude();", "public double getLatitude() { return coordinates.latitude; }", "@Override\n public void onLocationChanged(Location location) {\n latitude=String.valueOf(location.getLatitude());\n longitude= String.valueOf(location.getLongitude());\n\n System.out.println(\"asdfgh==\"+latitude);\n\n\n /* Geocoder geocoder;\n List<Address> addresses;\n geocoder = new Geocoder(SafetyActivity.this, Locale.getDefault());\n\n try {\n addresses = geocoder.getFromLocation(location.getLatitude(), location.getLongitude(), 1);\n String address = addresses.get(0).getAddressLine(0); // If any additional address line present than only, check with max available address lines by getMaxAddressLineIndex()\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 String knownName = addresses.get(0).getFeatureName();\n\n System.out.println(\"addresses==\"+address);\n // Here 1 represent max location result to returned, by documents it recommended 1 to 5\n } catch (IOException e) {\n e.printStackTrace();\n }*/\n }", "private void getLocation() {\n LocationRequest mLocationRequestHighAccuracy = new LocationRequest();\n mLocationRequestHighAccuracy.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n mLocationRequestHighAccuracy.setInterval(UPDATE_INTERVAL);\n mLocationRequestHighAccuracy.setFastestInterval(FASTEST_INTERVAL);\n\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED || ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n stopSelf();\n return;\n } else\n mFusedLocationClient.requestLocationUpdates(mLocationRequestHighAccuracy, new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n\n Log.d(TAG, \"onLocationResult: got location result.\");\n\n Location location = locationResult.getLastLocation();\n if (location != null) {\n db.getReference(\"Users\").child(FirebaseAuth.getInstance().getCurrentUser().getUid()).addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n user=snapshot.getValue(User.class);\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n\n\n LocationModel geoPoint = new LocationModel(location.getLatitude(), location.getLongitude());\n UserLocation userLocation = new UserLocation(geoPoint, user);\n saveUserLocation(userLocation);\n }\n\n /*if (location != null) {\n DocumentReference u = db.collection(\"Users\").document(FirebaseAuth.getInstance().getCurrentUser().getUid());\n u.get().addOnCompleteListener(new OnCompleteListener<DocumentSnapshot>() {\n @Override\n public void onComplete(@NonNull Task<DocumentSnapshot> task) {\n if (task.isSuccessful()) {\n user = task.getResult().toObject(User.class);\n }\n }\n });\n\n GeoPoint geoPoint = new GeoPoint(location.getLatitude(), location.getLongitude());\n UserLocation userLocation = new UserLocation(geoPoint, null, user);\n saveUserLocation(userLocation);\n }*/\n\n }\n },\n Looper.myLooper()); // Looper.myLooper tells this to repeat forever until thread is destroyed\n }", "int getLatitude();", "void getReverInfo(int longitude,int latitude);", "@Override\n protected String doInBackground(Void... params) {\n if (HelperRete.isNetworkAvailable(mMainActivity)) {\n\n String queryFormattata = mQueryGrezza.replaceAll(\" \", \"+\" + \"\");\n mQueryTitolo = mQueryGrezza.substring(0,1).toUpperCase() + mQueryGrezza.substring(1);\n\n // creazione url\n String url = \"https://maps.google.com/maps/api/geocode/json\" +\n \"?address=\" + queryFormattata + \"&key=\" + mMainActivity.getString(R.string.google_geoc_key);\n\n JSONObject response = HelperRete.volleySyncRequest(mMainActivity, url);\n\n // ottieni le coordinate dell'indirizzo tramite la risposta di GoogleApi\n try {\n if (response != null) {\n Log.i(\"jsonresp\", response.toString());\n\n double lng = ((JSONArray) response.get(\"results\")).getJSONObject(0)\n .getJSONObject(\"geometry\").getJSONObject(\"location\")\n .getDouble(\"lng\");\n\n double lat = ((JSONArray) response.get(\"results\")).getJSONObject(0)\n .getJSONObject(\"geometry\").getJSONObject(\"location\")\n .getDouble(\"lat\");\n\n mCoordinateCercate = new LatLng(lat, lng);\n\n return RICERCA_COMPLETATA;\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n } else {\n return NO_INTERNET;\n }\n\n return null;\n }", "@Override\r\n\tpublic float chekearDatos(){\r\n\t\t\r\n\t\tfloat monto = 0f;\r\n\t\tfloat montoPorMes = creditoSolicitado/plazoEnMeses;\r\n\t\tdouble porcentajeDeSusIngesosMensuales = (cliente.getIngresosMensuales()*0.7);\r\n\t\t\r\n\t\tif(cliente.getIngresoAnual()>=15000f && montoPorMes<=porcentajeDeSusIngesosMensuales){\r\n\t\t\t\r\n\t\t\tmonto = this.creditoSolicitado;\r\n\t\t\tsetEstadoDeSolicitud(true);\r\n\t\t}\t\r\n\t\t\r\n\t\t\r\n\t\treturn monto;\r\n\t}", "@Override\n public void onLocationChanged(Location location) {\n double latitude = location.getLatitude();\n double longitude = location.getLongitude();\n LatLng meuLocal = new LatLng(latitude, longitude);\n\n if(markerLocalizacaoUsuario != null)\n markerLocalizacaoUsuario.remove();\n markerLocalizacaoUsuario = mapa.addMarker(new MarkerOptions()\n .position(meuLocal)\n .title(\"Você está aqui!\")\n .flat(true) //alinha ao norte o marcador, mesmo que gire o mapa\n .icon(bitmapDescriptorFromVector(MapaLocalActivity.this,R.drawable.marker_usuario_nav))\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.usuario))\n .anchor(0.5f, 0.5f));\n markerLocalizacaoUsuario.setTag(TipoLocal.MARKER_USER.getTipo());\n markerLocalizacaoUsuario.setRotation(location.getBearing());\n\n\n if (locUsuario == null) {\n getZoomAtual();\n mapa.animateCamera(CameraUpdateFactory.newLatLngZoom(meuLocal, getZoomAtual()), 500, null);\n }\n locUsuario = meuLocal;\n //Log.d(TAG, \"Changed: \"+ latitude +\" / \"+longitude + \" --> \"+location.getBearing());\n }", "public void buscarLugar(){\n String lugar= tv_lugar.getText().toString().trim();\n ubicacionEncontrada=false;\n this.geocoder= new Geocoder(getActivity());\n this.lista = new ArrayList<>();\n\n try {\n lista =geocoder.getFromLocationName(lugar,1);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n if(lista.size()>0){\n this.localizacion= lista.get(0);\n\n // Snackbar.make(myView,\"Error al crear la quedada\", Snackbar.LENGTH_SHORT).show();\n ubicacionEncontrada=true;\n Log.i(\"UBICACION A BUSCAR\", localizacion.toString());\n this.latLng = new LatLng(localizacion.getLatitude(), localizacion.getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latLng, 12f));\n this.markerOptions = new MarkerOptions().position(latLng).title(localizacion.getAddressLine(0));\n\n mMap.addMarker(markerOptions);\n\n\n }\n\n }", "long getCoordinates();", "long getCoordinates();", "boolean hasLatitude();", "boolean hasLatitude();", "private void getMembersCoordinates()\n {\n String membersDatabaseAddress= \"Loc/\"+mEntityID;\n\n //Get Firebase RealtimeDB Reference\n DatabaseReference reference= database.getReference(membersDatabaseAddress);\n\n //Listen only once to the existing coordinates (This runs every 2.5 seconds or so. The coordinates\n //are taken in bulk inorder to reduce overhead costs.\n reference.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n //Put dataSnapshot in MemberMap\n Map<String,ArrayList<Double>> memberMap = (Map) dataSnapshot.getValue();\n\n /*\n Note: The Algo used here is nearly the same as the one used for fetching members from Database\n in the membersInit() function in SingleEntityActivity. Only here, we have the marker's map as the\n existing hashmap of markers of members and the memberMap as the map fetched from the database.\n */\n for(Map.Entry<String,Marker> entry:mMarkersMap.entrySet())\n {\n //Iterate through marker map\n String memberID= entry.getKey();\n if(memberMap!=null && memberMap.containsKey(memberID))\n {\n //If memberMap contains the key of current element of MarkerMap, then\n //Already marker in Markermap and needs to be updated only\n\n if(!memberID.equals(mUserID)) {\n //If group member is NOT the user himself\n //then get coordinates and store in LatLng object\n\n Double latitude = memberMap.get(memberID).get(0);\n Double longitude = memberMap.get(memberID).get(1);\n LatLng memberLatLng = new LatLng(latitude, longitude);\n entry.getValue().setPosition(memberLatLng);\n entry.getValue().setVisible(true);\n\n //If marker has been selected, then centre camera there\n if(current_number.equals(\"+91\"+entry.getKey())) {\n mMap.moveCamera(CameraUpdateFactory.newLatLng(new LatLng(latitude, longitude)));\n }\n\n }\n\n //Set isMemberBroadcastingLocation hashmap to true. This shows\n //in the members tab that the member is broadcasting location\n isMemberBroadcastingLocation.put(memberID,true);\n\n //refresh member tab\n if(mMembersTab!=null)\n mMembersTab.refresh();\n\n if(membersProfilePic!=null &&\n membersProfilePic.containsKey(memberID) && mMemberSetProfilePicFlag.containsKey(memberID)\n && !mMemberSetProfilePicFlag.get(memberID))\n {\n //Change Member marker to ProfilePic\n\n Bitmap memberProfilePic= membersProfilePic.get(entry.getKey());\n mMarkersMap.get(entry.getKey()).setAnchor(0.5f,0.5f);\n mMarkersMap.get(entry.getKey()).setIcon(BitmapDescriptorFactory.fromBitmap(\n memberProfilePic));\n }\n\n //Remove member from the MemberMap because he/she has been updated on map\n memberMap.remove(memberID);\n\n }\n else\n {\n //Marker exist in hashmap but not in datasnapshot. i.e. member stopped broadcasting location\n\n if(!memberID.equals(mUserID))\n entry.getValue().setVisible(false);\n isMemberBroadcastingLocation.put(memberID,false);\n if(mMembersTab!=null)\n mMembersTab.refresh();\n }\n\n\n }\n\n try {\n Iterator<Map.Entry<String, ArrayList<Double>>> it = memberMap.entrySet().iterator();\n\n //Iterate through memberMap now. All the entries remaining are of those members who\n //were not broadcasting before (and hence absent from MarkersMap) but are doing so now\n while (it.hasNext()) {\n //All new members who were not available before\n\n\n Map.Entry<String, ArrayList<Double>> entry = it.next();\n Marker marker = null;\n String title = entry.getKey();\n isMemberBroadcastingLocation.put(title,true);\n if(mMembersTab!=null)\n mMembersTab.refresh();\n\n // Toast.makeText(getContext(),\"Changed\",Toast.LENGTH_SHORT).show();\n\n if (!title.equals(mUserID)) {\n //If member is not the current User, then get Latitude and Longitude\n //and store it in LatLng object\n\n Double latitude = entry.getValue().get(0);\n Double longitude = entry.getValue().get(1);\n\n String current_num_set=title;\n\n if (allContactNames.containsKey(title))\n title = allContactNames.get(title);\n\n if (allContactNames != null && allContactNames.containsKey(title))\n title = allContactNames.get(title);\n\n titleToNumber.put(title,current_num_set);\n LatLng memberLatLng = new LatLng(latitude, longitude);\n\n //Initialize the new marker for the member\n mMarkersMap.put(entry.getKey(),\n mMap.addMarker(new MarkerOptions().position(memberLatLng).\n title(title).\n icon(BitmapDescriptorFactory.fromBitmap(unknownUser)))\n );\n\n //Change marker to profile picture if available\n if(membersProfilePic!=null && membersProfilePic.containsKey(entry.getKey()))\n {\n Toast.makeText(getContext(),entry.getKey(),Toast.LENGTH_SHORT).show();\n Bitmap memberProfilePic= membersProfilePic.get(entry.getKey());\n mMarkersMap.get(entry.getKey()).setAnchor(0.5f,0.5f);\n mMarkersMap.get(entry.getKey()).setIcon(BitmapDescriptorFactory.fromBitmap(\n memberProfilePic));\n mMemberSetProfilePicFlag.put(entry.getKey(),true);\n }\n else\n {\n mMemberSetProfilePicFlag.put(entry.getKey(),false);\n }\n\n }\n else\n {\n mMarkersMap.put(mUserID,null);\n }\n\n }\n }\n catch (Exception e)\n {\n //If no one is broadcasting, an exception is thrown\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n\n }", "private void initLocationData() {\n\n // init google client and request for fused location provider\n fusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(context);\n\n locationRequest = new LocationRequest()\n //.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY) // GPS quality location points\n .setPriority(LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY) // optimized for battery\n .setInterval(20000) // at least once every 20 seconds\n .setFastestInterval(10000); // at most once every 10 seconds\n\n locationCallback = new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n\n Point userPoint;\n if (locationResult != null) {\n // update user location\n Location lastLocation = locationResult.getLastLocation();\n userPoint = new Point(lastLocation.getLatitude(), lastLocation.getLongitude());\n // cache location\n PreferencesCache.setLastLatitude(lastLocation.getLatitude());\n PreferencesCache.setLastLongitude(lastLocation.getLongitude());\n } else {\n // get cached data\n userPoint = new Point(PreferencesCache.getLastLatitude(), PreferencesCache.getLastLongitude());\n }\n\n navigator.updateUserLocation(userPoint);\n }\n };\n }", "private void getLocation() {\n LocationRequest mLocationRequestHighAccuracy = new LocationRequest();\n mLocationRequestHighAccuracy.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n mLocationRequestHighAccuracy.setInterval(UPDATE_INTERVAL);\n mLocationRequestHighAccuracy.setFastestInterval(FASTEST_INTERVAL);\n\n\n // new Google API SDK v11 uses getFusedLocationProviderClient(this)\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n Log.d(TAG, \"getLocation: stopping the location service.\");\n stopSelf();\n return;\n }\n Log.d(TAG, \"getLocation: getting location information.\");\n mFusedLocationClient.requestLocationUpdates(mLocationRequestHighAccuracy, new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n Log.d(TAG, \"onLocationResult: got location result.\");\n Location location = locationResult.getLastLocation();\n if (location != null) {\n GeoPoint geoPoint = new GeoPoint(location.getLatitude(), location.getLongitude());\n userInfoDoc.get().addOnCompleteListener(task -> {\n Boolean av = (Boolean) task.getResult().get(\"Availability\");\n saveUserLocation(geoPoint , av);\n });\n saveDistance(geoPoint);\n\n }\n }\n },\n Looper.myLooper()); // Looper.myLooper tells this to repeat forever until thread is destroyed\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n\n if (displayGpsStatus()) {\n\n Log.v(TAG, \"onClick\");\n\n\n locationListener = new MyLocationListener();\n\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED ) {\n locationMangaer.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener);\n\n }\n else{\n Toast.makeText(this,\"Kindly Provide Location Acces\",Toast.LENGTH_SHORT).show();\n }\n\n Log.v(TAG,latitudeUsers +\" , \"+longitudeUsers);\n\n } else {\n Toast.makeText(this,\"GPS not available!!\",Toast.LENGTH_SHORT).show();\n }\n\n }", "@Override\n public void onLocationChanged(final Location location) {\n\n if(mLastLocation==null || location.distanceTo(mLastLocation)>getResources().getInteger(R.integer.min_distance_listen))\n {\n new GetNearBy().executePreHeavy();\n }\n\n mLastLocation=location;\n\n android.util.Log.e(\"onLocationChanged\",mLastLocation.getLatitude()+\" - \"+mLastLocation.getLongitude());\n\n\n\n }", "public LatLng getLocation() {\n LocationManager locationManager = (LocationManager) getActivity().getSystemService(LOCATION_SERVICE);\n String locationProvider = LocationManager.NETWORK_PROVIDER;\n Location location = locationManager.getLastKnownLocation(locationProvider);\n\n Double lat,lon;\n try {\n lat = location.getLatitude();\n lon = location.getLongitude();\n return new LatLng(lat, lon);\n }\n catch (NullPointerException e){\n e.printStackTrace();\n return null;\n }\n\n\n\n }", "public void getCurrentLoaction() {\n locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);\n locationListener = new LocationListener() {\n @Override\n public void onLocationChanged(Location location) {\n latitude = \"\" + location.getLatitude();\n TextView txtLatitude = (TextView) findViewById(R.id.txtLatitude);\n txtLatitude.setText(\"Latitud: \" + latitude);\n longitude = \"\" + location.getLongitude();\n TextView txtLongitude = (TextView) findViewById(R.id.txtLongitude);\n txtLongitude.setText(\"Longitud: \" + longitude);\n\n Geocoder gcd = new Geocoder(getBaseContext(), Locale.getDefault());\n List<Address> addresses;\n try {\n addresses = gcd.getFromLocation(location.getLatitude(), location.getLongitude(), 1);\n if (addresses.size() > 0) {\n cityName = addresses.get(0).getLocality();\n }\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onStatusChanged(String s, int i, Bundle bundle) {\n\n }\n\n @Override\n public void onProviderEnabled(String s) {\n\n }\n\n @Override\n public void onProviderDisabled(String s) {\n Toast.makeText(pantallaIdentificacion.this, \"Por favor, habilite el GPS para continuar\", Toast.LENGTH_LONG).show();\n Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n startActivity(intent);\n }\n };\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, android.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 locationManager.requestLocationUpdates(\"network\", 1000, 0, locationListener);\n }", "public void getLoco(double lat, double lon){\n cords.setText(lat + \" \"+lon);\n\n // String dress = getCompleteAddressString(lat,lon);\n\n // latt = lat;\n // longg = lon;\n\n //Toast.makeText(getContext(), add, Toast.LENGTH_SHORT).show();\n\n //LocationAddress locationAddress = new LocationAddress();\n //locationAddress.getAddressFromLocation(38.898748, -77.037684\n // , getContext(), new GeocoderHandler());\n\n //String add = getAddressString(lat,lon);\n //Toast.makeText(getContext(), add, Toast.LENGTH_LONG);\n //info.setText(add);\n\n check.setVisibility(View.VISIBLE);\n\n\n\n\n\n\n\n }", "private void getDeviceLocation() {\n /*\n * Get the best and most recent location of the device, which may be null in rare\n * cases when a location is not available.\n */\n mFusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(this);\n try {\n if (mLocationPermissionGranted){\n Task location = mFusedLocationProviderClient.getLastLocation();\n location.addOnCompleteListener(new OnCompleteListener() {\n @Override\n public void onComplete(@NonNull Task task) {\n if (task.isSuccessful()){\n Location currentLocation = (Location) task.getResult();\n if (currentLocation != null){\n\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(currentLocation.getLatitude(),currentLocation.getLongitude()), DEFAULT_ZOOM));\n\n } else {\n /*\n AlertDialog alertDialog = new AlertDialog.Builder(MapActivity.this).create();s\n alertDialog.setMessage(\"Activa ubicación\");\n alertDialog.setButton(AlertDialog.BUTTON_NEUTRAL, \"OK\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n alertDialog.show();\n */\n Toast.makeText(MapActivity.this, \"Tu ubicación es nula\", Toast.LENGTH_SHORT).show();\n }\n } else Toast.makeText(MapActivity.this, \"Error al obtener la ubicación\", Toast.LENGTH_LONG).show();\n }\n });\n }else Toast.makeText(MapActivity.this, \"Da permiso para acceder a la ubicación\", Toast.LENGTH_LONG).show();\n } catch (SecurityException e){\n Toast.makeText(MapActivity.this, \"Seleciona un punto en el mapa primero\", Toast.LENGTH_LONG).show();\n }\n }", "@Override\n\t\t\t\tpublic List<KinderGarten> chercherParZone(Double longi, Double lat,Double rayon) {\n\t\t\t\t\tList<KinderGarten> list = new ArrayList<>();\n\t\t\t\t\tList<KinderGarten> list2 =(List<KinderGarten>) kindergartenRepo.findAll();\n\t\t\t\t\tfor(int i=0;i<list2.size();i++)\n\t\t\t\t\t\t\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(calculDis(longi,lat,list2.get(i).getLongi(),list2.get(i).getLatitude()));\n\t\t\t\t\t\tif(calculDis(longi,lat,list2.get(i).getLongi(),list2.get(i).getLatitude()) <= rayon)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlist.add(list2.get(i));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// long/lat/r\n\t\t\t\t\t//coord bd Ariana long:10.182733 lat: 36.900635 // long:10.804493 lat2 :36.460875\n\t\t\t\t\t\n\t\t\t\t\t//test 1 Ariana 10.1852049/36.8989212/1 \n\t\t\t\t\t\n\t\t\t\t\t//test 2 A GHANA 10.181863/36.806459/1 // long2:10.182039 lat2: 36.806021 \n\t\t\t\t\t//\n\t\t\t\t\treturn list;\n\t\t\t\t}", "void MontaValores(){\r\n // 0;0;-23,3154166666667;-51,1447783333333;0 // Extrai os valores e coloca no objetos\r\n // Dis;Dir;Lat;Long;Velocidade\r\n // Quebra de Rota lat=-999.999 long=-999.999 ==> Marca ...\r\n \r\n int ind=0;\r\n NMEAS=NMEA.replace(\",\" , \".\");\r\n \r\n //1)\r\n dists=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind));\r\n Distancia=Double.valueOf(dists);\r\n ind=ind+dists.length()+1;\r\n \r\n //2)\r\n dirs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Direcao=Double.valueOf(dirs);\r\n ind=ind+dirs.length()+1;\r\n \r\n //3)\r\n lats=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Lat=Double.valueOf(lats);\r\n ind=ind+lats.length()+1;\r\n \r\n //4)\r\n longs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Long=Double.valueOf(longs);\r\n ind=ind+longs.length()+1;\r\n \r\n //5)\r\n vels=NMEAS.substring(ind,NMEAS.length());\r\n // Transforma de Knots para Km/h\r\n Velocidade=Double.valueOf(vels)/100*1.15152*1.60934;\r\n vels=String.valueOf(Velocidade);\r\n ind=ind+vels.length()+1;\r\n \r\n }", "@Override\n\tpublic Map getPointsForHotArea(String terminalId) {\n\t\tMap map = new HashMap();\n\t\tString lngs = \"\";\n\t\tString lats = \"\";\n\t\ttry {\n\t\t\tList<PositionData> info_list = positionDataDao.findByHQL(\"from PositionData where tid = '\" + terminalId + \"' order by date desc limit 2000\");\n\t\t\tfor(int i=0;i<info_list.size();i++){\n\t\t\t\tif(info_list.get(i).getInfo().contains(\"GPS状态:GPS不定位;\")){\n\t\t\t\t\tinfo_list.remove(i);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tList<PositionData> position_list = new ArrayList<PositionData>();\n\t\t\tfor(int i=0;i<(info_list.size()>2000?2000:info_list.size());i++){\n\t\t\t\tposition_list.add(info_list.get(i));\n\t\t\t}\n\t\t\tfor(int i=0;i<position_list.size();i++){\n\t\t\t\tString point_latitude = position_list.get(i).getInfo().substring(position_list.get(i).getInfo().lastIndexOf(\"纬度:\"));\n\t\t\t\tpoint_latitude = point_latitude.substring(0,point_latitude.indexOf(\";\"));\n\t\t\t\tpoint_latitude = point_latitude.split(\":\")[1];\n\t\t\t\tpoint_latitude = point_latitude.replaceAll(\"\\\\.\", \"\");\n\t\t\t\tpoint_latitude = point_latitude.replaceAll(\"°\", \".\");\n\t\t\t\tString tempStrPart1 = point_latitude.split(\"\\\\.\")[1];\n\t\t\t\ttempStrPart1 = \"0.\" + tempStrPart1;\n\t\t\t\tdouble tempD1 = Double.parseDouble(tempStrPart1)/60*100;\n\t\t\t\tpoint_latitude = Integer.parseInt(point_latitude.split(\"\\\\.\")[0]) + tempD1 + \"\";\n\t\t\t\tlats += point_latitude + \",\";\n\t\t\t\t\n\t\t\t\tString point_longitute = position_list.get(i).getInfo().substring(position_list.get(i).getInfo().lastIndexOf(\"经度:\"));\n\t\t\t\tpoint_longitute = point_longitute.substring(0,point_longitute.indexOf(\";\"));\n\t\t\t\tpoint_longitute = point_longitute.split(\":\")[1];\n\t\t\t\tpoint_longitute = point_longitute.replaceAll(\"\\\\.\", \"\");\n\t\t\t\tpoint_longitute = point_longitute.replaceAll(\"°\", \".\");\n\t\t\t\tString tempStrPart2 = point_longitute.split(\"\\\\.\")[1];\n\t\t\t\ttempStrPart2 = \"0.\" + tempStrPart2;\n\t\t\t\tdouble tempD2 = Double.parseDouble(tempStrPart2)/60*100;\n\t\t\t\tpoint_longitute = Integer.parseInt(point_longitute.split(\"\\\\.\")[0]) + tempD2 + \"\";\n\t\t\t\tlngs += point_longitute + \",\";\n\t\t\t}\n\t\t\tmap.put(\"lngs\",lngs.subSequence(0, lngs.lastIndexOf(\",\")));\n\t\t\tmap.put(\"lats\",lats.subSequence(0, lats.lastIndexOf(\",\")));\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn map;\n\t}", "@Transactional \n\tpublic List<PharmacyDto> getTheNeartsPharmacy(double userLon, double userLat, double userdistance) {\n\t\t\n\t\t\n\t\tIterator <PharmacyDto> pharmacyListDto = pharmacyRepository1.getAllPharmaciesDto().iterator();\n\t\t\n\t\tList <PharmacyDto> nearestList = new ArrayList<PharmacyDto>() ;\n\t\t\n\t\twhile (pharmacyListDto.hasNext()) {\n\t\t\t\n\t\t\tPharmacyDto pharmacyToAdd = pharmacyListDto.next();\n\t\t\t\n\t\t\tNearLocationBusiness userlocation = new NearLocationBusiness(userLon,userLat);\n\t\t\t\n\t\t\tNearLocationBusiness pharmacy = new NearLocationBusiness(pharmacyToAdd.getLonLocation(),pharmacyToAdd.getLatLocation());\n\t\t\t\n\t\t\tdouble distance= pharmacy.distanceTo(userlocation);\n\t\t\t\n\t\t\tif(distance<userdistance) {\n\t\t\t\tnearestList.add(pharmacyToAdd);\n\t\t\t}\t\t\n\t\t}\n\t\t\n\t\treturn nearestList;\n\t}", "@Override\n public void onLocationChanged(Location location) {\n\n if(!locationFound){\n while(mlongitude == 0.0 && mlatitude == 0.0) {\n\n mlatitude = location.getLatitude();\n mlongitude = location.getLongitude();\n }\n\n locationFound = true;\n }\n\n }", "private void findPosition() throws Exception {\n \tLocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);\n\n \t// Define a listener that responds to location updates\n \tLocationListener locationListener = new LocationListener() {\n \t public void onLocationChanged(Location location) {\n \t // Called when a new location is found by the network location provider.\n \t \n \t }\n\n \t public void onStatusChanged(String provider, int status, Bundle extras) {}\n\n \t public void onProviderEnabled(String provider) {}\n\n \t public void onProviderDisabled(String provider) {}\n \t };\n\n \t// Register the listener with the Location Manager to receive location updates\n \ttry {\n \t\tlocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener);\n \tLocation loc = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\n \tlatitude = (int)(loc.getLatitude()*1E6);\n \tlongitude = (int)(loc.getLongitude()*1E6);\n\t\t} catch (Exception e) {\n\t\t\tlocationManager.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER, 0, 0, locationListener);\n\t \tLocation loc = locationManager.getLastKnownLocation(LocationManager.PASSIVE_PROVIDER);\n\t \tlatitude = (int)(loc.getLatitude()*1E6);\n\t \tlongitude = (int)(loc.getLongitude()*1E6);\n\t\t}\n \t//locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener);\n \t//Location loc = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\n \t\n \t\n \t\n\t\t\n\t}", "private void detectUserLocation(){\n \ttimestamp = System.currentTimeMillis();\n \tmLocationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n\t\tCriteria criteria = new Criteria();\n\t\tcriteria.setAccuracy(Criteria.ACCURACY_FINE);\n\t\tcriteria.setCostAllowed(false);\n\t\tcriteria.setAltitudeRequired(false);\n\t\tcriteria.setPowerRequirement(Criteria.POWER_MEDIUM);\n\t\tString providerName = mLocationManager.getBestProvider(criteria, true);\n\t\tLog.d(TAG,\"Provider selected based on given criteria: \"+providerName);\n\t\tif(providerName != null)\n\t\t\tmLocationManager.requestLocationUpdates(providerName, 10000, 10, this);\n\t\telse\n\t\t\tLog.w(TAG,\"No provider\");\n }", "@Override\n public void onLocationChanged(Location location) {\n lat=location.getLatitude();\n Log.e(\"MyLat\",Double.toString(lat));\n lng=location.getLongitude();\n Log.e(\"Mylongitude\",Double.toString(lng));\n /* houni c'est bon khdhina el lat w longitude\n donc just taamel el requete li bch tarmiha fel base\n */\n Toast.makeText(this,Double.toString(lng),Toast.LENGTH_LONG).show();\n\n }", "@Override\n\t\t\t\tpublic void onLocationChanged(Location loc) {\n\n\t\t\t\t\t//If Wifi\n\t\t\t\t\tif (monitor.isNetworkConnected()\n\t\t\t\t\t\t\t&& monitor.networkType == ConnectivityManager.TYPE_WIFI) {\n\n\t\t\t\t\t\t@SuppressWarnings(\"deprecation\")\n\t\t\t\t\t\tString locationProviders = Settings.Secure.getString(\n\t\t\t\t\t\t\t\tcont.getContentResolver(),\n\t\t\t\t\t\t\t\tSettings.Secure.LOCATION_PROVIDERS_ALLOWED);\n\t\t\t\t\t\tif (locationProviders != null\n\t\t\t\t\t\t\t\t&& !locationProviders.equals(\"\")) {\n\t\t\t\t\t\t\t//Lock our location.\n\t\t\t\t\t\t\tmonitor.locationLocked = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t//If we have had a steady lock\n\t\t\t\t\tif (monitor.locationLocked && (counter >= 2 || first)) {\n\n\t\t\t\t\t\t//Swap \n\t\t\t\t\t\tDouble oldLat = self.member.lat;\n\t\t\t\t\t\tDouble oldLong = self.member.lon;\n\n\t\t\t\t\t\tself.member.lat = loc.getLatitude();\n\t\t\t\t\t\tself.member.lon = loc.getLongitude();\n\n\t\t\t\t\t\tif (self.member.pic == null) {\n\t\t\t\t\t\t\tself.member.pic = Images\n\t\t\t\t\t\t\t\t\t.paintMarkerBitmap(self.member);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tplaceMarker(self.member);\n\n\t\t\t\t\t\tLog.i(\"Position\", self.member.lat.toString() + \", \"\n\t\t\t\t\t\t\t\t+ self.member.lon.toString());\n\n\t\t\t\t\t\tGCMMessage.sendLocation(self.member.lat,\n\t\t\t\t\t\t\t\tself.member.lon);\n\n\t\t\t\t\t\tMembersFragment.stopSpinning();\n\n\t\t\t\t\t\t// gcmMessage.sendLocation(self.lat, self.lon);\n\n\t\t\t\t\t\tfloat[] results = new float[1];\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tLocation.distanceBetween(oldLat, oldLong,\n\t\t\t\t\t\t\t\t\tself.member.lat, self.member.lon, results);\n\n\t\t\t\t\t\t\tif (results[0] > 35 && wobble > -interval / 2) {\n\n\t\t\t\t\t\t\t} else if (results[0] <= 35\n\t\t\t\t\t\t\t\t\t&& wobble < interval / 2) {\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch (NullPointerException npe) {\n\t\t\t\t\t\t\tLog.i(\"Locater\", \"Got first location\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tgpsTimer.removeCallbacks(r);\n\n\t\t\t\t\t\tlocationClient.disconnect();\n\n\t\t\t\t\t\tmonitor.locationLocked = false;\n\n\t\t\t\t\t\tcounter = 0;\n\n\t\t\t\t\t\tfirst = false;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tcounter++;\n\t\t\t\t}", "public boolean getLocationsFrom(double curLat, double curLon, Double num) {\r\n boolean locationsFromDB = true;\r\n String previousCurLat, previousCurLon;\r\n Log.d(\"Detailed analysis\",\"getting data from db, calling getdata function\");\r\n Cursor rs1 = myDB.getData(curLat, curLon, num);\r\n //In this condition if data not found locationsFromDB is set to false and then returned\r\n if (rs1.getCount() <= 0){\r\n System.out.println(rs1.getCount());\r\n locationsFromDB = false;\r\n Log.d(\"Detailed analysis\",\"Data not found\");\r\n }\r\n //In this condition if data is found need to do the further action of finding the user has moved or not and calculating the direction and distance if user has moved\r\n else {\r\n Log.d(\"Detailed analysis\", \"data found\");\r\n Double[] latArray = new Double[rs1.getCount()];\r\n Double[] lonArray = new Double[rs1.getCount()];\r\n int z = 0;\r\n double distanceBtwLocations = 0;\r\n double finalLat = 0.0;\r\n double finalLon = 0.0;\r\n while (rs1.moveToNext()) {\r\n latArray[z] = Double.parseDouble(rs1.getString(rs1.getColumnIndex(DBHelper.Locations_COLUMN_lat)));\r\n lonArray[z] = Double.parseDouble(rs1.getString(rs1.getColumnIndex(DBHelper.Locations_COLUMN_lon)));\r\n Log.d(\"Detailed Analysis\", latArray[z] +\", \" + lonArray[z] );\r\n double tempDistance = findDistanceBetweenPoints(latArray[z], lonArray[z], Math.round(curLat * 10000.0) / 10000.0, Math.round(curLon * 10000.0) / 10000.0);\r\n System.out.println(tempDistance + \" : tempDistance\");\r\n if (distanceBtwLocations < tempDistance) {\r\n finalLat = latArray[z];\r\n finalLon = lonArray[z];\r\n distanceBtwLocations = tempDistance;\r\n System.out.println(distanceBtwLocations + \" : distanceBtwLocations\");\r\n }\r\n z++;\r\n }\r\n if (distanceBtwLocations < 100 * 1606.34) {\r\n Log.d(\"Detailed Analysis\", \"Distance is not greater than 100 miles\");\r\n previousCurLat = String.valueOf(finalLat);//rs.getString(rs.getColumnIndex(DBHelper.Locations_COLUMN_lat));\r\n previousCurLon = String.valueOf(finalLon);//rs.getString(rs.getColumnIndex(DBHelper.Locations_COLUMN_lon));\r\n Cursor rs = myDB.getData(finalLat, finalLon, num);\r\n rs.moveToFirst();\r\n// condChoice = Integer.parseInt(rs.getString(rs.getColumnIndex(DBHelper.Locations_COLUMN_condChoice)));\r\n number = Double.parseDouble(rs.getString(rs.getColumnIndex(DBHelper.Locations_COLUMN_num)));\r\n Log.d(\"Detailed Analysis\", \"number while data found: \" + number);\r\n Log.d(\"Detailed Analysis\", \"Recent number value from getLocationsFrom: \" + number);\r\n Log.d(\"Detailed analysis\", \"Lattittude and Longitude points\" + \" \" + Double.parseDouble(previousCurLat) + \",\" + Double.parseDouble(previousCurLon) + \":\" + Math.round(curLat * 10000.0) / 10000.0 + \",\" + Math.round(curLon * 10000.0) / 10000.0);\r\n //if user has not moved then locationsFromDB is set to true and then returned\r\n if (Double.parseDouble(previousCurLat) == Math.round(curLat * 10000.0) / 10000.0 && Double.parseDouble(previousCurLon) == Math.round(curLon * 10000.0) / 10000.0) {\r\n Log.d(\"Detailed analysis\", \"lattitudes and longitudes are same\");\r\n rs.moveToFirst();\r\n locationValues = rs.getString(rs.getColumnIndex(DBHelper.Locations_COLUMN_results));\r\n locationsFromDB = true;\r\n } else {\r\n Log.d(\"Detailed analysis\", \"lattitudes and longitudes are not same\");\r\n float distance = 0;\r\n LatLng movedPoints;\r\n Log.d(\"Detailed analysis\", \"finding distance between lattitudes and longitudes\");\r\n distance = findDistanceBetweenPoints(Double.parseDouble(previousCurLat), Double.parseDouble(previousCurLon), curLat, curLon);\r\n Log.d(\"Detailed Analysis\", \"distance in meters\" + \" \" + distance);\r\n direction = SphericalUtil.computeHeading(new LatLng(Double.parseDouble(previousCurLat), Double.parseDouble(previousCurLon)), new LatLng(curLat, curLon));\r\n Log.d(\"Detailed Analysis\", \"direction in degrees\" + \" \" + direction);\r\n String values = rs.getString(rs.getColumnIndex(DBHelper.Locations_COLUMN_results));\r\n String valuesArray[] = values.split(\":\");\r\n Log.d(\"Detailed analysis\", \"finding random locations after moving a bit\");\r\n for (int i = 0; i < valuesArray.length; i++) {\r\n String pointsArray[] = valuesArray[i].split(\",\");\r\n Log.d(\"Detailed analysis\", \"lattitudes and longitudes points\" + pointsArray[0] + \" \" + pointsArray[1]);\r\n movedPoints = findMovedPoints(Double.parseDouble(pointsArray[0]), Double.parseDouble(pointsArray[1]), distance, direction);\r\n Log.d(\"Detailed Analysis\", \"latitude and longitude points after moving\" + \" \" + movedPoints);\r\n locationValues = findRandomLocations(movedPoints.latitude, movedPoints.longitude, 1, distance + 1);\r\n }\r\n }\r\n }\r\n else{\r\n locationValues = findRandomLocations(curLat, curLon, num, 30);\r\n }\r\n locationsFromDB = true;\r\n }\r\n return locationsFromDB;\r\n }", "private void getCurrentLocation() {\n progressBar.setVisibility(View.VISIBLE);\n LocationRequest locationRequest = new LocationRequest();\n locationRequest.setInterval(10000);\n locationRequest.setFastestInterval(3000);\n locationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n\n LocationServices.getFusedLocationProviderClient(IntroActivity.this).requestLocationUpdates(locationRequest, new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n super.onLocationResult(locationResult);\n LocationServices.getFusedLocationProviderClient(IntroActivity.this).removeLocationUpdates(this);\n if (locationResult != null && locationResult.getLocations().size() > 0) {\n int latestLocationIndex = locationResult.getLocations().size() - 1;\n double LatOrg = locationResult.getLocations().get(latestLocationIndex).getLatitude();\n double LonOrg = locationResult.getLocations().get(latestLocationIndex).getLongitude();\n\n LatitudeTruePref = Double.toString(LatOrg);\n LongitudeTruePref = Double.toString(LonOrg);\n\n LocationReal = new LatLng(LatOrg, LonOrg);\n tvSkip.setText(String.format(\"Lat: %s\\nLon: %s\", LatitudeTruePref, LongitudeTruePref));\n //tvSkip.setText(String.format(\"Lat: %s\\nLon: %s\", LatOrg, LonOrg));\n }\n FalseLocationSignal = false;//*Desactivar FalseLocation para SharedPreferens*//\n TrueLocationSignal = true;\n progressBar.setVisibility(View.GONE);\n btnNext.setEnabled(true);\n }\n }, Looper.getMainLooper());\n\n }", "boolean hasHasLongitude();", "@Override\n public List<Map<String, Object>> tareasOrdenadasPorDistancia(long id_emergencia){\n try(Connection conn = sql2o.open()){\n List<Emergencia> emergencia = conn.createQuery(\"SELECT ST_X(ST_AsText(ubicacion)) AS longitud, ST_Y(ST_AsText(ubicacion)) AS latitud FROM emergencia WHERE id = :id_eme\")\n .addParameter(\"id_eme\", id_emergencia)\n .executeAndFetch(Emergencia.class);\n String punto = \"POINT(\" + emergencia.get(0).getLongitud() + \" \" + emergencia.get(0).getLatitud() + \")\";\n return conn.createQuery(\"SELECT id, nombre, ST_X(ST_AsText(ubicacion)) AS longitud, ST_Y(ST_AsText(ubicacion)) AS latitud, ST_Distance(ST_GeomFromText(:tar_punto, 4326), ubicacion::geography) AS distancia FROM tarea WHERE id_emergencia = :id_eme ORDER BY distancia ASC\")\n .addParameter(\"tar_punto\", punto)\n .addParameter(\"id_eme\", id_emergencia)\n .executeAndFetchTable()\n .asList();\n } catch (Exception e) {\n System.out.println(e.getMessage());\n return null;\n }\n }", "public ArrayList<Pair<Landmark, Double>> nearestLocations(Pair<Double, Double> userLocation, int num){\n ArrayList<Pair<Landmark, Double>> nearestList = new ArrayList<>();\n for(int i = 0; i < this.list.size(); i++){\n Landmark landmark = list.get(i);\n double latitude = landmark.getLatitude();\n double longitude = landmark.getLongitude();\n Pair<Double, Double> coordinate = new Pair<>(latitude, longitude);\n // TODO use latitude and longitude explicitly\n double dist = distanceBetween(userLocation, coordinate);\n int origin = nearestList.size();\n for( int j = 0; j < nearestList.size(); j++ ){\n if( dist < nearestList.get(j).second ){\n nearestList.add(j, new Pair<>(this.list.get(i), dist));\n if(nearestList.size() > num){\n nearestList.remove(num);\n }\n break;\n }\n }\n if( origin == nearestList.size() ){\n if( nearestList.size() < num ){\n nearestList.add(new Pair<>(this.list.get(i), dist));\n }\n }\n }\n return nearestList;\n }", "@Override\n public void onLocationChanged(Location location) {\n Geocoder geocoder = new Geocoder(getApplicationContext(),Locale.getDefault());\n try {\n List<Address> direc = geocoder.getFromLocation(location.getLatitude(),location.getLongitude(),1);\n Coordenadas.setText(direc.get(0).getAddressLine(0) );\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n }", "@Override\n\t\tprotected Void doInBackground(Void... params) {\n\t\t\tfetchData();\n\t\t\t// getLatLongFromAddress(from);\n\t\t\treturn null;\n\t\t}", "@Override\n public void onLocationChanged(Location location) {\n\n clientlat = location.getLatitude();\n clientlon = location.getLongitude();\n System.out.println(\"latitude is \"+clientlat);\n System.out.println(\"longitude is \"+clientlon);\n }", "public void makeLatLong(String address){\n try {\n JSONObject jsonObject = new JSONObject(address);\n JSONObject result = jsonObject.getJSONObject(\"result\");\n JSONArray addressMatches = result.getJSONArray(\"addressMatches\");\n JSONObject firstResult = addressMatches.getJSONObject(0);\n JSONObject coordinates = firstResult.getJSONObject(\"coordinates\");\n latitude = coordinates.getDouble(\"y\");\n longitude = coordinates.getDouble(\"x\");\n\n Log.i(\"CoY \", Double.toString(latitude));\n Log.i(\"CoX\", Double.toString(longitude));\n } catch (JSONException e) {\n Log.i(\"Error\", e.getMessage());\n e.printStackTrace();\n latitude = 39.7392;\n longitude = -104.9903;\n mainActivity.apiFailed(alarmName);\n }\n }", "public String getLatitud() {\r\n return latitud;\r\n }", "@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 static final double getCurrentLatitudeNetworkValid() {\n if (mLocationNetwork == null) {\n return ZERO;\n } else {\n return mLocationNetwork.getLatitude();\n }\n }", "long getLongitude();", "public int pegaIndicePontoMaisProximo(double latitude, double longitude, int indiceInicio) \n\t{\n\t\tif (posicoes.size() <= indiceInicio)\n\t\t\treturn -1;\n\t\t\n\t\tint indiceMaisProximo = indiceInicio;\n\t\tPosicaoMapa posicao = posicoes.get(indiceInicio);\t\t\n\t\tdouble menorDistancia = Geodesic.distance(latitude, longitude, posicao.getLatitude(), posicao.getLongitude());;\n\t\t\n\t\tfor (int i = indiceInicio+1; i < posicoes.size(); i++)\n\t\t{\n\t\t\tposicao = posicoes.get(i);\n\t\t\tdouble distancia = Geodesic.distance(latitude, longitude, posicao.getLatitude(), posicao.getLongitude());\n\t\t\t\n\t\t\tif (distancia < menorDistancia)\n\t\t\t{\n\t\t\t\tmenorDistancia = distancia;\n\t\t\t\tindiceMaisProximo = i;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn indiceMaisProximo;\n\t}", "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n //Toast.makeText(getApplicationContext(), String.valueOf(location.getLatitude()+\",\"+location.getLongitude()), Toast.LENGTH_SHORT).show();\n retrofitPegarOnibus(location.getLatitude() + \",\" + location.getLongitude());\n coord = location.getLatitude() + \",\" + location.getLongitude();\n } else {\n //Toast.makeText(getApplicationContext(), \"Location = null\", Toast.LENGTH_SHORT).show();\n }\n }", "public void miUbicacion() { //Funcion que recupera la ubicacion\n\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n return;\n }\n LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); //Se accede al sistema para el servicio de locatizacion\n Location location = locationManager.getLastKnownLocation(GPS_PROVIDER); //Se recupera la ultima localizacion conocida\n if(location != null) {\n new DownloadWebPageTask(location).execute(\"http://api.openweathermap.org/data/2.5/weather?lat=\" + location.getLatitude() + \"&lon=\" + location.getLongitude() +\n \"&units=metric&lang=fr&appid=5bdfb081811a28abc515bc673fc0d20f\");\n }\n locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 20000,0,locListenner); //Esto se hace cada 10s\n }", "public static void listGeolocations()\n {\n {\n JSONArray listGeolocations = new JSONArray();\n List<User> users = User.findAll();\n for (User user : users)\n {\n listGeolocations.add(Arrays.asList(user.firstName, user.latitude, user.longitude));\n }\n renderJSON(listGeolocations);\n }\n }", "private Location getLocation() {\n try {\n locationManager = (LocationManager) getContext().getSystemService(Context.LOCATION_SERVICE);\n\n isGPSEnabled = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);\n\n isNetworkEnabled = locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER);\n\n\n if (!isGPSEnabled && !isNetworkEnabled) {\n\n } else {\n this.canGetLocation = true;\n\n if (isNetworkEnabled) {\n\n if (ActivityCompat.checkSelfPermission(getActivity(), android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getActivity(), android.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 Log.d(TAG, \"nagy nulla\");\n return null;\n }\n locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 60000, 3, locationListener);\n\n if (locationManager != null){\n location = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\n if (location != null){\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n }\n }\n }\n\n if (isGPSEnabled){\n if (location == null){\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 60000, 3, locationListener);\n if (locationManager != null){\n location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n if (location != null){\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n }\n }\n }\n } else {\n //showAlertDialog();\n }\n }\n }catch(Exception e){\n e.printStackTrace();\n }\n return location;\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tMessage m;\n\t\t\t\t\tm = hr.obtainMessage(2, \"获取定位信息..\");\n\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\tif (lng == null || lng == 4.9E-324 || lat == null) {\n\t\t\t\t\t\tm = hr.obtainMessage(501, \"定位失败!请开启GPS和无线网络后重试\");\n\t\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n double dv = 0;\n if (bsLongitude.equals(\"\") || bsLatitude.equals(\"\")){\n dv = BDGeoLocation.getShortDistance(lng, lat,\n Double.valueOf(lng),\n Double.valueOf(lat));\n } else {\n dv = BDGeoLocation.getShortDistance(lng, lat,\n Double.valueOf(bsLongitude),\n Double.valueOf(bsLatitude));\n }\n\t\t\t\t\tBigDecimal bdl = new BigDecimal(dv);\n\t\t\t\t\tdv = bdl.setScale(2, BigDecimal.ROUND_HALF_UP)\n\t\t\t\t\t\t\t.doubleValue();\n\t\t\t\t\tWGSTOGCJ02 wg = new WGSTOGCJ02();\n\t\t\t\t\tMap<String, Double> wgloc = wg.transform(lng, lat);\n\t\t\t\t\tSharedPreferences share = context.getSharedPreferences(\n\t\t\t\t\t\t\tApp.SHARE_TAG, 0);\n\t\t\t\t\tString userid = share.getString(\n\t\t\t\t\t\t\tAppCheckLogin.SHARE_USER_ID, \"\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tjson.put(\"userid\", userid);\n\t\t\t\t\t\tjson.put(\"longitude\", String.valueOf(wgloc.get(\"lon\")));\n\t\t\t\t\t\tjson.put(\"latitude\", String.valueOf(wgloc.get(\"lat\")));\n\t\t\t\t\t\tjson.put(\"range\", String.valueOf(dv));\n\t\t\t\t\t\tm = hr.obtainMessage(3, \"定位成功\");\n\t\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\t\tm = hr.obtainMessage(4, \"上传数据中...\");\n\t\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\t\tString subRes = submitToServer(json);\n\t\t\t\t\t\tif (subRes.equals(AppHttpClient.RESULT_FAIL)) {\n\t\t\t\t\t\t\tm = hr.obtainMessage(501, \"上传数据失败!请检查手机网络是否有效\");\n\t\t\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tJSONObject jr = new JSONObject(subRes);\n\t\t\t\t\t\tif ((\"-1\").equals(jr.getString(\"result\"))) {\n\t\t\t\t\t\t\tm = hr.obtainMessage(501, jr.getString(\"msg\"));\n\t\t\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tm = hr.obtainMessage(5, \"上传成功\");\n\t\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\t\tm = hr.obtainMessage(6, \"上传图片中...\");\n\t\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\t\tString infoid = jr.getString(\"infoid\");\n\t\t\t\t\t\tif (imgPaths == null) {\n\t\t\t\t\t\t\tm = hr.obtainMessage(200, \"恭喜,提交巡检数据成功!\");\n\t\t\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tFuncUploadFile ff = new FuncUploadFile(context);\n\t\t\t\t\t\tfor (int i = 0; i < imgPaths.length; i++) {\n\t\t\t\t\t\t\tif (imgPaths[i] != null) {\n\t\t\t\t\t\t\t\tString res = ff.uploadFileToServer(imgPaths[i],\n\t\t\t\t\t\t\t\t\t\t\"1\", \"巡检-\" + bsName, DATA_TYPE, \"\",\n\t\t\t\t\t\t\t\t\t\tinfoid, DataSiteStart.HTTP_SERVER_URL,\n\t\t\t\t\t\t\t\t\t\tDataSiteStart.HTTP_KEYSTORE);\n\t\t\t\t\t\t\t\tif (res.equals(AppHttpConnection.RESULT_FAIL)) {\n\t\t\t\t\t\t\t\t\tm = hr.obtainMessage(201, \"上传图片:\"\n\t\t\t\t\t\t\t\t\t\t\t+ imgPaths[i] + \"--失败\");\n\t\t\t\t\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tJSONObject imgjr = new JSONObject(res);\n\t\t\t\t\t\t\t\t\tm = hr.obtainMessage(201,\n\t\t\t\t\t\t\t\t\t\t\t\"上传图片:\" + imgPaths[i] + \"--\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ imgjr.getString(\"msg\"));\n\t\t\t\t\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\t\t\t\t\tString resCode = imgjr.getString(\"result\");\n\t\t\t\t\t\t\t\t\tif (resCode.equals(\"1\")\n\t\t\t\t\t\t\t\t\t\t\t&& imgPaths[i] != null) {\n\t\t\t\t\t\t\t\t\t\tFile file = new File(imgPaths[i]);\n\t\t\t\t\t\t\t\t\t\tfile.delete();// 删除临时文件\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\tm = hr.obtainMessage(200, \"恭喜,提交巡检数据成功!\");\n\t\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\t} catch (JSONException 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}", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n ArrayList<String> ArrayDescripcionMarker = new ArrayList<String>();\n ArrayList<String> ArrayX = new ArrayList<String>();\n ArrayList<String> ArrayY = new ArrayList<String>();\n Integer tamanio=0;\n\n\n new DataMainActivitBuscarUbicacionReservas(mapa.this).execute();\n\n\n\n System.out.println(\"aca lista1 ANTESSSS\" +getIntent().getStringArrayListExtra(\"miLista\"));\n System.out.println(\"aca tamaño ANTESSSS\" +getIntent().getIntExtra(\"tamanio\",0));\n System.out.println(\"aca lista2 ANTESSS\" +getIntent().getStringArrayListExtra(\"miLista2\"));\n System.out.println(\"aca listaCLIENTE ANTESSS\" +getIntent().getStringArrayListExtra(\"milistaCliente\"));\n\n //cantidad de reservas/markes a dibujar\n tamanio = getIntent().getIntExtra(\"tamanio\",0);\n /// Casteo la lista que tiene las latitudes\n double[] failsArray = new double[tamanio]; //create an array with the size of the failList\n for (int i = 0; i < tamanio; ++i) { //iterate over the elements of the list\n failsArray[i] = Double.parseDouble(getIntent().getStringArrayListExtra(\"miLista\").get(i)); //store each element as a double in the array\n // failsArray[i] = Double.parseDouble(lista.get(i)); //store each element as a double in the array\n }\n\n /// Casteo la lista que tiene las longitudes\n double[] failsArray2 = new double[tamanio]; //create an array with the size of the failList\n for (int i = 0; i < tamanio; ++i) { //iterate over the elements of the list\n failsArray2[i] = Double.parseDouble(getIntent().getStringArrayListExtra(\"miLista2\").get(i)); //store each element as a double in the array\n // failsArray2[i] = Double.parseDouble(lista2.get(i)); //store each element as a double in the array\n }\n\n ///// Recorro las listas y genero el marker.\n for (int i = 0; i < tamanio; i++){\n LatLng vol_1 = new LatLng(failsArray[i], failsArray2[i]);\n mMap.addMarker(new MarkerOptions().position(vol_1).title(getIntent().getStringArrayListExtra(\"milistaCliente\").get(i)));\n // mMap.addMarker(new MarkerOptions().position(vol_1));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(vol_1, 12f));\n }\n\n\n\n ///////////// DIUJO ZONAS - POLIGIONOS /////////////////\n\n Polygon polygon1 = mMap.addPolygon(new PolygonOptions()\n .add(new LatLng(-34.4466867, -58.7446665),\n new LatLng(-34.4755556, -58.7870237),\n new LatLng( -34.5313786, -58.7034557),\n new LatLng(-34.5005326, -58.6488037))\n .strokeColor(Color.RED));\n polygon1.setTag(\"ZONA 1\");\n polygon1.setStrokeWidth(4f);\n\n\n\n Polygon polygon2 = mMap.addPolygon(new PolygonOptions()\n .add(new LatLng(-34.4466867, -58.7446665),\n new LatLng(-34.4810476,-58.6806737),\n new LatLng( -34.4541926,-58.6249857),\n new LatLng( -34.3982066,-58.6507117))\n .strokeColor(BLUE));\n polygon2.setTag(\"ZONA 2\");\n polygon2.setStrokeWidth(4f);\n\n\n Polygon polygon3 = mMap.addPolygon(new PolygonOptions()\n .add(new LatLng(-34.4810476,-58.6806737),\n new LatLng(-34.5005326, -58.6488037),\n new LatLng( -34.4786136,-58.6067997),\n new LatLng( -34.4547056,-58.6234267))\n .strokeColor(Color.GREEN));\n polygon3.setTag(\"ZONA 3\");\n polygon3.setStrokeWidth(4f);\n\n\n ///////////// FIN DIUJO ZONAS - POLIGIONOS /////////////////\n\n\n\n\n /*\n //DIBUJO ZONAS DE CIRCULOS\n Circle circle = mMap.addCircle(new CircleOptions()\n .center(new LatLng(-34.455587, -58.685503))\n .radius(1800)\n .strokeColor(Color.RED));\n circle.setStrokeWidth(4f);\n circle.setTag(\"Zona1\");\n\n\n Circle circle2 = mMap.addCircle(new CircleOptions()\n .center(new LatLng(-34.480523, -58.717237))\n .radius(1600)\n .strokeColor(Color.BLUE));\n circle2.setStrokeWidth(4f);\n circle2.setTag(\"Zona2\");\n\n\n Circle circle3 = mMap.addCircle(new CircleOptions()\n .center(new LatLng(-34.450193, -58.725039))\n .radius(1800)\n .strokeColor(Color.GREEN));\n circle2.setStrokeWidth(4f);\n circle2.setTag(\"Zona2\");\n\n\n Circle circle4 = mMap.addCircle(new CircleOptions()\n .center(new LatLng(-34.469302, -58.653062))\n .radius(1500)\n .strokeColor(Color.YELLOW));\n circle2.setStrokeWidth(4f);\n circle2.setTag(\"Zona2\");\n\n //funcion que revisa si un punto esta dentro del circulo zona 1\n\n float[] disResultado = new float[2];\n // LatLng pos = new LatLng(40.416775, -3.703790);\n LatLng pos = new LatLng(-34.470327, -58.683718);\n double lat = pos.latitude; //getLatitude\n double lng = pos.longitude;//getLongitude\n\n\n Location.distanceBetween( pos.latitude, pos.longitude,\n circle.getCenter().latitude,\n circle.getCenter().longitude,\n disResultado);\n\n if(disResultado[0] > circle.getRadius()){\n System.out.println(\"FUERAAAA ZONA 1\" );\n } else {\n System.out.println(\"DENTROOO ZONA 1\" );\n }\n\n*/\n\n\n\n }", "private static final double getCurrentLatitudeGpsValid() {\n if (mLocationGps == null) {\n return ZERO;\n } else {\n return mLocationGps.getLatitude();\n }\n }", "@Override\n public void onLocationChanged(Location location) {\n //update current lacation when the GPS changed\n c = new LatLng(location.getLatitude(), location.getLongitude());\n updateCameraBearing(map, location.getBearing());\n nearestPointIndex = findNearestPoint(c,points2);\n if(nearestPointIndex>0){\n ArrayList p3 = new ArrayList();\n for (int j = nearestPointIndex; j < points2.size(); j++) {\n LatLng point = (LatLng) points2.get(j);\n p3.add(point);\n }\n points2 = p3;\n DrawDots(listResult,points2);\n }\n }", "public static void main(String[] args) {\n \r\n double lat1=19.071895;\r\n double lng1=-98.193415;\r\n \r\n double lat2=18.8771729;\r\n double lng2=-98.2954198;\r\n \r\n \r\n Cuatro c = new Cuatro();\r\n \r\n double distancia = c.calcularDistanciaEntreDosPuntos(lat1, lng1, lat2, lng2);\r\n \r\n System.out.println(\"Distancia en Km\" + \" \" + distancia);\r\n \r\n //Dejando el radio para saber si esta fuera de ruta \r\n double rango = 1000;\r\n \r\n if(distancia >=rango){\r\n System.out.println(\"La distancia es mayor a la establecida, Fuera de ruta\");\r\n }else{\r\n System.out.println(\"Se Matiene dentro de la ruta\");\r\n }\r\n \r\n \r\n }", "private void reqquestGps() {\n builder = new LocationSettingsRequest.Builder();//mang di request\n builder.addLocationRequest(locationRequest);\n SettingsClient settingsClient = LocationServices.getSettingsClient(context);//dang tao 1 requet vao may va lasy ra thong so\n\n Task<LocationSettingsResponse> task = settingsClient.checkLocationSettings(builder.build());//day la lenh cua thu vien\n\n task.addOnFailureListener(new OnFailureListener() {//lang nghe su kien bi fai kho k lay dc gps,boi nnhieu nhie nghuyen nhan 1 co the la chua bat,\n @Override\n public void onFailure(@NonNull Exception e) {//requye\n if (e instanceof ResolvableApiException) {//chua bat\n ResolvableApiException resolvableApiException = (ResolvableApiException) e;//bat man hinh hien thi bat gps\n ((MainActivity) context).requestOpenGps(resolvableApiException);\n }\n }\n });\n }", "public int pegaIndicePontoMaisProximo(double latitude, double longitude) \n\t{\n\t\treturn pegaIndicePontoMaisProximo(latitude, longitude, 0);\n\t}", "public PosicaoMapa pegaPontoMaisProximo(double latitude, double longitude) \n\t{\n\t\treturn pegaPontoMaisProximo(latitude, longitude, 0);\n\t}", "private double distance(Double lat1, Double lon1, String userName){\r\n\t\t//fetch the potential match\r\n\t\tString command = \"SELECT latitude, longitude FROM location WHERE userName = \\\"\" + userName + \"\\\";\";\r\n\t\trs = null;//clear previous results\r\n\t\tdouble lon2 = 0.0;//will hold the match's longitude\r\n\t\tdouble lat2 = 0.0;//will hold the match's latitude\r\n\r\n\t\ttry {//try block\r\n\t\t\trs = stmt.executeQuery(command);//send command\r\n\t\t\twhile(rs.next()){//parse the results\r\n\t\t\t\tlon2 = Double.valueOf(rs.getString(\"longitude\"));\r\n\t\t\t\tlat2 = Double.valueOf(rs.getString(\"latitude\"));\r\n\t\t\t}\r\n\t\t} catch (NumberFormatException | SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tout.println(\"Server error\");//server error\r\n\t\t}\r\n\r\n\t\t//compute distance\r\n\t\tdouble theta = lon1 - lon2;\r\n\t\tdouble dist = Math.sin(deg2rad(lat1)) * Math.sin(deg2rad(lat2)) + Math.cos(deg2rad(lat1))\r\n\t\t\t\t\t* Math.cos(deg2rad(lat2)) * Math.cos(deg2rad(theta));\r\n\t\tdist = Math.acos(dist);\r\n\t\tdist = rad2deg(dist);\r\n\t\tdist = dist * 60 * 1.1515;\r\n\t\trs = null;\r\n\t\t\r\n\t\treturn dist;//the distance computed\r\n\t}", "private void getLocation() {\n if (ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[]{Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.INTERNET}\n , 10);\n }\n return;\n }\n\n //Update location\n locationManager.requestLocationUpdates(\"gps\", 5000, 0, listener);\n }", "public float getLatitude() { return latitude; }", "boolean hasLongitude();", "boolean hasLongitude();", "public String calculateDistance(Umpire ump, ArrayList<Club> clubs) throws IOException {\n \n Pair umpLatLong = new Pair<>(\"\", \"\");\n Pair clubLatLong = new Pair<>(\"\", \"\");\n ArrayList<Pair> clubLatLongArray = new ArrayList<>();\n String lat = database.getLatitudeFromUmpireDatabase(ump.getUmpireLicentie());\n String lon = database.getLongitudeFromUmpireDatabase(ump.getUmpireLicentie());\n if (lat == null || lon == null || lat.equals(Double.toString(0.0)) || lon.equals(Double.toString(0.0))) {\n System.out.println(\"lat, lon not present\");\n umpLatLong = getLocationUmpire(ump);\n database.updateUmpireLocationInDatabase(ump.getUmpireLicentie(), Double.toString((Double) umpLatLong.getKey()), Double.toString((Double) umpLatLong.getValue()));\n } else {\n umpLatLong = new Pair(lat, lon);\n }\n for (Club c : clubs) {\n String clat = database.getLatitudeFromClubDatabase(c.getClubNummer());\n String clon = database.getLongitudeFromClubDatabase(c.getClubNummer());\n Boolean force = Boolean.FALSE;\n if (clat == null || clon == null || clat.equals(Double.toString(0.0)) || clon.equals(Double.toString(0.0)) || Objects.equals(force, Boolean.TRUE)) {\n System.out.println(c.getClubNaam() + \": lat or lon club unknown or forced to recalculate location!\");\n clubLatLong = getLocationClub(c);\n clubLatLongArray.add(clubLatLong);\n database.updateClubLocationInDatabase(c.getClubNummer(), Double.toString((Double) clubLatLong.getKey()), Double.toString((Double) clubLatLong.getValue()));\n } else {\n System.out.println(c.getClubNaam() + \": lat and lon club in database.\");\n clubLatLongArray.add(new Pair(clat, clon));\n }\n \n }\n System.out.println(\"clubLatLongArray = \" + clubLatLongArray);\n String latUmp = (String) umpLatLong.getKey();\n String longUmp = (String) umpLatLong.getValue();\n System.out.println(\"latUmp = \" + latUmp + \", longUmp = \" + longUmp);\n String totalDistance = \"\";\n \n String originString = latUmp + \",\" + longUmp;\n System.out.println(\"Origin String = \" + originString);\n String destinationsString = \"\";\n \n ArrayList<String> destinationsArray = new ArrayList<>();\n for (Pair p : clubLatLongArray) {\n String clat = (String) p.getKey();\n String clon = (String) p.getValue();\n destinationsString = String.join(\",\", clat, clon);\n destinationsArray.add(destinationsString);\n }\n \n String destinationsLatLon = String.join(\";\", destinationsArray);\n System.out.println(\"Destinations String = \" + destinationsLatLon);\n \n try {\n //URL url = new URL(\"http://dev.virtualearth.net/REST/v1/Routes?wayPoint.1={wayPpoint1}&viaWaypoint.2={viaWaypoint2}&waypoint.3={waypoint3}&wayPoint.n={waypointN}&heading={heading}&optimize={optimize}&avoid={avoid}&distanceBeforeFirstTurn={distanceBeforeFirstTurn}&routeAttributes={routeAttributes}&timeType={timeType}&dateTime={dateTime}&maxSolutions={maxSolutions}&tolerances={tolerances}&distanceUnit={distanceUnit}&key={'\" + BingMapsKey + \"'}\");\n //URL url = new URL(\"https://dev.virtualearth.net/REST/v1/Routes/DistanceMatrix?origins={lat0,long0;lat1,lon1;latM,lonM}&destinations={lat0,lon0;lat1,lon1;latN,longN}&travelMode={travelMode}&startTime={startTime}&timeUnit={timeUnit}&key={'\"+BingMapsAPIKey+\"'}\");\n URL url = new URL(\"https://dev.virtualearth.net/REST/v1/Routes/DistanceMatrix?origins=\"+originString+\"&destinations=\"+destinationsLatLon+\"&travelMode=driving&key=LwvKKpyMS0B0X3uTAp0Y~q47SlJVuQ98QE6zlT_3gUA~AknQEc5Uo1JkymduJ8gUGcWDwPb5ZBifrtZM_R4-Q4ieHb__2JdktKpc6npU0WhZ\");\n\n HttpURLConnection con = (HttpURLConnection) url.openConnection();\n con.setRequestMethod(\"GET\");\n //https://maps.googleapis.com/maps/api/distancematrix/json?units=imperial&origins=Ronse,Belgium&destinations=Ghent,Belgium&key=YOUR_API_KEY\n int status = con.getResponseCode();\n BufferedReader in = new BufferedReader(\n new InputStreamReader(con.getInputStream()));\n String inputLine;\n StringBuffer content = new StringBuffer();\n while ((inputLine = in.readLine()) != null) {\n content.append(inputLine);\n }\n in.close();\n System.out.println(\"inputLine = \" + inputLine);\n System.out.println(\"content = \" + content);\n String jsoncontent = content.toString();\n JSONObject obj = new JSONObject(jsoncontent);\n // read status and message\n String authResult = (String) obj.getString(\"authenticationResultCode\");\n System.out.println(\"authentication = \" + authResult);\n \n // Get resourceSets\n JSONArray resourceSets = (JSONArray) obj.get(\"resourceSets\"); \n for (int i = 0; i < resourceSets.length(); i++) {\n JSONArray resources = resourceSets.getJSONObject(i).getJSONArray(\"resources\");\n for (int j = 0; j < resources.length(); j++) {\n JSONArray results = resources.getJSONObject(j).getJSONArray(\"results\");\n JSONArray origins = resources.getJSONObject(j).getJSONArray(\"origins\");\n JSONArray destinations = resources.getJSONObject(i).getJSONArray(\"destinations\");\n for (int k = 0; k < results.length(); k++) {\n String distance = Float.toString(results.getJSONObject(k).getFloat(\"travelDistance\"));\n //String latitude = destinations.getJSONObject(k).getString(\"latitude\");\n String latitude = Float.toString(destinations.getJSONObject(k).getFloat(\"latitude\"));\n String longitude = Float.toString(destinations.getJSONObject(k).getFloat(\"longitude\"));\n System.out.println(\"club to look for: \" + clubs.get(k));\n System.out.println(\"Ump: \" + ump.getUmpireLicentie()+ \", club: \" + clubs.get(i).getClubNummer() + \", Latitude = \" + latitude + \", Longitude = \" + longitude + \", Distance: \" + distance);\n\n storeDistance(ump, clubs.get(k), distance);\n }\n }\n }\n \n \n } catch (MalformedURLException ex) {\n Logger.getLogger(ApiLocationDistance.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n return totalDistance;\n }", "float latitude() {\n switch (this) {\n case NORTH_4M:\n case NORTH_16M:\n return FastMath.HALF_PI;\n case SOUTH_4M:\n case SOUTH_16M:\n return -FastMath.HALF_PI;\n case WILTSHIRE_4M:\n case WILTSHIRE_16M:\n /*\n * Stonehenge\n */\n return 51.1788f * FastMath.DEG_TO_RAD;\n }\n throw new IllegalStateException();\n }", "private List<Restaurant> getNearRestaurants() {\n\t\tLog.v(LOG_TAG, \"Getting near restaurants offline by the last known position \");\n\t\tList<Restaurant> restaurantsList = new ArrayList<Restaurant>();\n\t\tif (lastPositionKnown == null) {\n\t\t\tLog.e(LOG_TAG, \"Error trying to get the list of near restaurants when the user's position is null\");\n\t\t\treturn restaurantsList;\n\t\t}\n\t\t\n\t\tLog.v(LOG_TAG, \"My position is \" + lastPositionKnown.latitude + \" ,\" + lastPositionKnown.longitude);\n\n\t\tLocation myLocation = new Location(\"\");\n\t\tmyLocation.setLatitude(lastPositionKnown.latitude);\n\t\tmyLocation.setLongitude(lastPositionKnown.longitude);\n\n\t\tSet<String> ids = restaurants.keySet();\n\t\tfor (String id: ids) {\n\t\t\tRestaurant restaurant = restaurants.get(id);\n\t\t\tLatLng restaurantPosition = restaurant.getPosition();\n\t\t\tLocation restaurantLocation = new Location(\"\");\n\t\t\t\n\t\t\trestaurantLocation.setLatitude(restaurantPosition.latitude);\n\t\t\trestaurantLocation.setLongitude(restaurantPosition.longitude);\n\t\t\t\n\t\t\tint distance = (int)restaurantLocation.distanceTo(myLocation);\n\t\t\tLog.v(LOG_TAG, \"The distance to my location is \" + distance + \" \" + restaurant.getName());\n\t\t\tif (distance <= DEFAULT_RANGE ) {\n\t\t\t\trestaurantsList.add(restaurant);\n\t\t\t}\n\t\t}\n\n\t\treturn restaurantsList;\n\t}", "private boolean isLocationNearby(double latitude, double longitude){\n\n assert positionSettings != null;\n\n float[] result = new float[1];\n Location.distanceBetween(positionSettings.position.latitude, positionSettings.position.longitude,\n latitude, longitude, result); //result in meters\n return (result[0] <= positionSettings.radius);\n }", "private void cekStatusGPSpeed() {\n\t\t\n\t\tlokasimanager = (LocationManager) Kecepatan.this.getSystemService(Context.LOCATION_SERVICE);\n\t\t\n\t\tcekGpsNet = new CekGPSNet(Kecepatan.this);\n\t\tisInternet = cekGpsNet.cekStatsInternet();\n\t\tisNetworkNyala = cekGpsNet.cekStatsNetwork();\n\t\tisGPSNyala = cekGpsNet.cekStatsGPS();\n\t\t\n\t\tstatusInternet = cekGpsNet.getKondisiNetwork(isInternet, isNetworkNyala);\n\t\tstatusGPS = cekGpsNet.getKondisiGPS(isGPSNyala);\n\t\t\n\t\tLog.w(\"STATUS GPS INTERNET\", \"GPS \" + statusGPS + \" INTERNET \" + statusInternet);\n\t\t\n\t\tif (statusInternet == CekGPSNet.TAG_NYALA) {\n\t\t\t\n\t\t\tlokasimanager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, MIN_TIME_BW_UPDATES, MIN_DISTANCE_CHANGE_FOR_UPDATES , locListNetwork);\n\t\t\tLog.w(\"Network\", \"Network\");\n\t\t\t\n\t\t\tif (lokasimanager != null) {\n\t\t\t\tlocation = lokasimanager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\n\t\t\t\t\n\t\t\t\tif (location != null) {\n\t\t\t\t\tlatitude = location.getLatitude();\n\t\t\t\t\tlongitude = location.getLongitude();\n\t\t\t\t\t\n\t\t\t\t\tLog.w(\"TAG NETWORK\", \" \" + latitude + \" \" + longitude);\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\tif (statusGPS == CekGPSNet.TAG_NYALA) {\n\t\t\t\n\t\t\tlokasimanager.requestLocationUpdates(LocationManager.GPS_PROVIDER, MIN_TIME_BW_UPDATES, MIN_DISTANCE_CHANGE_FOR_UPDATES , locListGPS);\n\t\t\tLog.w(\"GPS\", \"GPS\");\n\t\t\t\n\t\t\tif (lokasimanager != null) {\n\t\t\t\tlocation = lokasimanager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n\t\t\t\t\n\t\t\t\tif (location != null) {\n\t\t\t\t\tlatitude = location.getLatitude();\n\t\t\t\t\tlongitude = location.getLongitude();\n\t\t\t\t\t\n\t\t\t\t\tLog.w(\"TAG GPS\", \" \" + latitude + \" \" + longitude);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "public Coordinate getCoordenadasActuales() ;", "public int getLon();", "void getMyCurrentLocation() { \r\n\t\t \r\n\t\t \r\n\t \t // map.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(lat, lon), 16));\r\n\t\t \r\n\t LocationManager locManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\r\n\t try{\r\n\t \t\tgps_enabled=locManager.isProviderEnabled(LocationManager.GPS_PROVIDER);\r\n\t }catch(Exception ex){\r\n\t \t\r\n\t }\r\n\t try{\r\n\t \tnetwork_enabled=locManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER);\r\n\t }catch(Exception ex){\r\n\t \t\r\n\t }\r\n\r\n\t if(gps_enabled){\r\n\t location=locManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\r\n\r\n\t } \r\n\r\n\t \r\n\t if(network_enabled && location==null) {\r\n\t location=locManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\r\n\r\n\t }\r\n\r\n\t\t if (location != null) { \r\n\t\t \t//accLoc=location.getAccuracy();\r\n\t\t lat = location.getLatitude();\r\n\t\t\t lon= location.getLongitude();\r\n\t\t } \r\n\t \r\n\t try\r\n\t {\r\n\t \t //Getting address based on coordinates.\r\n\t Geocoder geocoder; \r\n\t List<Address> addresses;\r\n\t geocoder = new Geocoder(this, Locale.getDefault());\r\n\t addresses = geocoder.getFromLocation(lat, lon, 1);\r\n\t \r\n\t Address = addresses.get(0).getAddressLine(0);\r\n\t City = addresses.get(0).getAddressLine(1);\r\n\t }\r\n\t catch (Exception e)\r\n\t {\r\n\t e.printStackTrace();\r\n\t }\r\n\r\n\t if (Address != null && !Address.isEmpty()) {\r\n\t\t \t try\r\n\t\t \t {\r\n\t\t \t \t //Getting address based on coordinates.\r\n\t\t \t Geocoder geocoder; \r\n\t\t \t List<Address> addresses;\r\n\t\t \t geocoder = new Geocoder(this, Locale.getDefault());\r\n\t\t \t addresses = geocoder.getFromLocation(lat, lon, 1);\r\n\t\t \t\r\n\t\t \t Address = addresses.get(0).getAddressLine(0);\r\n\t\t \t City = addresses.get(0).getAddressLine(1);\r\n\t\t \t }\r\n\t\t \t catch (Exception e)\r\n\t\t \t {\r\n\t\t \t e.printStackTrace();\r\n\t\t \t }\r\n\t\t \t //mp.position(new LatLng(location.getLatitude(), location.getLongitude()));\r\n\t\t \t //mp.title(\"You are here\");\t\t \t \r\n\t\t \t //map.addMarker(mp).showInfoWindow();\t\r\n\t\t \t //map.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(1.3667, 103.8), 10));\r\n\t }\r\n\t else{ \r\n\t /* AlertDialog.Builder builder1 = new AlertDialog.Builder(ArticleLatestMoreDetailActivity.this);\r\n\t builder1.setTitle(\"Service Unavailable\");\r\n\t \t\t builder1.setMessage(\"Unable to get your location, check if your GPS and Network are turned on.\");\r\n\t \t\t builder1.setCancelable(true);\r\n\t builder1.setNegativeButton(\"OK\",new DialogInterface.OnClickListener() {\r\n\t public void onClick(DialogInterface dialog, int id) {\r\n\t \t dialog.cancel();\r\n\t }\r\n\t });\r\n\t AlertDialog alert11 = builder1.create();\r\n\t alert11.show();\r\n\t \r\n\t lat=1.3667;\r\n\t lon=103.8; */ \r\n\t // mp.position(new LatLng(1.3667, 103.8));\r\n\t\t // mp.draggable(true);\r\n\t\t \t // map.addMarker(mp).showInfoWindow();\r\n\t\t \t \r\n\t\t \t //map.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(1.3667, 103.8), 10));\r\n\t }\r\n\t \r\n\t \r\n\t \r\n\t Bundle extras = this.getIntent().getExtras();\r\n\t\t double dbLat = extras.getDouble(\"dbLat\");\r\n\t\t double dbLon = extras.getDouble(\"dbLon\");\r\n\t\t artLoc.position(new LatLng(dbLat, dbLon));\r\n\t\t artLoc.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));\r\n\t\t artLoc.title(\"Place of occurrence\");\r\n\t\t map.addMarker(artLoc).showInfoWindow();\r\n\t\t map.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(dbLat, dbLon), 18));\r\n\t \r\n\t \r\n\t \r\n\t }", "double lat(long v) {\n return nodes.get(v).lat;\n }", "@Override\n public void onPermissionGranted(PermissionGrantedResponse response) {\n\n final ProgressDialog progressDialog = new ProgressDialog(InfoActivity.this);\n progressDialog.setMessage(\"Getting your location...\");\n progressDialog.show();\n SmartLocation.with(InfoActivity.this).location().oneFix().start(new OnLocationUpdatedListener() {\n @Override\n public void onLocationUpdated(Location location) {\n latitudeStr = String.valueOf(location.getLatitude());\n longitudeStr = String.valueOf(location.getLongitude());\n progressDialog.dismiss();\n Toast.makeText(InfoActivity.this, location.getLatitude() + \" \" + location.getLongitude(), Toast.LENGTH_SHORT).show();\n }\n });\n }", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic Object getResult() {\n\t\tVector<Object> vec = (Vector<Object>) result;\n\t\tSoapObject soapObject = (SoapObject) vec.get(1);\n\t\tLatLng latLan = null;\n\t\tViTriThueBao vitri = new ViTriThueBao();\n\t\tUtil.GetObjectFromSoapObject(vitri, soapObject);\n\t\tif (vitri.getTONTAI() == 0)\n\t\t\tToast.makeText(context, \"Chưa có dữ liệu vị trí\", Toast.LENGTH_SHORT).show();\n\t\telse {\n\t\t\tlatLan = new LatLng(Double.valueOf(vitri.getLATITUDE()), Double.valueOf(vitri.getLONGITUDE()));\n\t\t}\n\t\treturn latLan;\n\t}", "public double calculaDistancia(double latitude, double longitude)\n\t{\n\t\tdouble menorDistancia = Double.MAX_VALUE;\n\t\t\n\t\tif (posicoes.size() < 2)\n\t\t\treturn menorDistancia;\n\t\t\n\t\tPosicaoMapa posicaoAnterior = posicoes.get(0);\n\t\t\n\t\tfor (int i = 1; i < posicoes.size(); i++)\n\t\t{\n\t\t\tPosicaoMapa posicaoAtual = posicoes.get(i);\n\t\t\tdouble distancia = Geodesic.trackDistance(latitude, longitude, posicaoAnterior.getLatitude(), posicaoAnterior.getLongitude(), posicaoAtual.getLatitude(), posicaoAtual.getLongitude());\n\t\t\t\t\t\n\t\t\tif (distancia < menorDistancia)\n\t\t\t\tmenorDistancia = distancia;\n\t\t\t\n\t\t\tposicaoAnterior = posicaoAtual;\n\t\t}\n\t\t\n\t\treturn menorDistancia;\n\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tMessage m;\n\t\t\t\t\tm = hr.obtainMessage(2, \"获取定位信息..\");\n\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\tif (lng == null || lng == 4.9E-324 || lat == null) {\n\t\t\t\t\t\tm = hr.obtainMessage(501, \"定位失败!请开启GPS和无线网络后重试\");\n\t\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tdouble dv = BDGeoLocation.getShortDistance(lng, lat,\n\t\t\t\t\t\t\tDouble.valueOf(bsLongitude),\n\t\t\t\t\t\t\tDouble.valueOf(bsLatitude));\n\t\t\t\t\tBigDecimal bdl = new BigDecimal(dv);\n\t\t\t\t\tdv = bdl.setScale(2, BigDecimal.ROUND_HALF_UP)\n\t\t\t\t\t\t\t.doubleValue();\n\t\t\t\t\tWGSTOGCJ02 wg = new WGSTOGCJ02();\n\t\t\t\t\tMap<String, Double> wgloc = wg.transform(lng, lat);\n\t\t\t\t\tSharedPreferences share = context.getSharedPreferences(\n\t\t\t\t\t\t\tApp.SHARE_TAG, 0);\n\t\t\t\t\tString userid = share.getString(\n\t\t\t\t\t\t\tAppCheckLogin.SHARE_USER_ID, \"\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tjson.put(\"userid\", userid);\n\t\t\t\t\t\tjson.put(\"longitude\", String.valueOf(wgloc.get(\"lon\")));\n\t\t\t\t\t\tjson.put(\"latitude\", String.valueOf(wgloc.get(\"lat\")));\n\t\t\t\t\t\tjson.put(\"range\", String.valueOf(dv));\n\t\t\t\t\t\tm = hr.obtainMessage(3, \"定位成功\");\n\t\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\t\tm = hr.obtainMessage(4, \"上传数据中...\");\n\t\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\t\tString subRes = submitTroubleToServer(json);\n\t\t\t\t\t\tif (subRes.equals(AppHttpClient.RESULT_FAIL)) {\n\t\t\t\t\t\t\tm = hr.obtainMessage(501, \"上传数据失败!请检查手机网络是否有效\");\n\t\t\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tJSONObject jr = new JSONObject(subRes);\n\t\t\t\t\t\tif ((\"-1\").equals(jr.getString(\"result\"))) {\n\t\t\t\t\t\t\tm = hr.obtainMessage(501, jr.getString(\"msg\"));\n\t\t\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tm = hr.obtainMessage(5, \"上传成功\");\n\t\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\t\tm = hr.obtainMessage(6, \"上传图片中...\");\n\t\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\t\tString infoid = jr.getString(\"infoid\");\n\t\t\t\t\t\tif (imgPaths == null) {\n\t\t\t\t\t\t\tm = hr.obtainMessage(200, \"恭喜,提交巡检数据成功!\");\n\t\t\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tFuncUploadFile ff = new FuncUploadFile(context);\n\t\t\t\t\t\tfor (int i = 0; i < imgPaths.length; i++) {\n\t\t\t\t\t\t\tif (imgPaths[i] != null) {\n\t\t\t\t\t\t\t\tString res = ff.uploadFileToServer(imgPaths[i],\n\t\t\t\t\t\t\t\t\t\t\"1\", \"巡检-\" + bsName, DATA_TYPE, \"\",\n\t\t\t\t\t\t\t\t\t\tinfoid, DataSiteStart.HTTP_SERVER_URL,\n\t\t\t\t\t\t\t\t\t\tDataSiteStart.HTTP_KEYSTORE);\n\t\t\t\t\t\t\t\tif (res.equals(AppHttpConnection.RESULT_FAIL)) {\n\t\t\t\t\t\t\t\t\tm = hr.obtainMessage(201, \"上传图片:\"\n\t\t\t\t\t\t\t\t\t\t\t+ imgPaths[i] + \"--失败\");\n\t\t\t\t\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tJSONObject imgjr = new JSONObject(res);\n\t\t\t\t\t\t\t\t\tm = hr.obtainMessage(201,\n\t\t\t\t\t\t\t\t\t\t\t\"上传图片:\" + imgPaths[i] + \"--\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ imgjr.getString(\"msg\"));\n\t\t\t\t\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\t\t\t\t\tString resCode = imgjr.getString(\"result\");\n\t\t\t\t\t\t\t\t\tif (resCode.equals(\"1\")\n\t\t\t\t\t\t\t\t\t\t\t&& imgPaths[i] != null) {\n\t\t\t\t\t\t\t\t\t\tFile file = new File(imgPaths[i]);\n\t\t\t\t\t\t\t\t\t\tfile.delete();// 删除临时文件\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\tm = hr.obtainMessage(200, \"恭喜,提交巡检数据成功!\");\n\t\t\t\t\t\thr.sendMessage(m);\n\t\t\t\t\t} catch (JSONException 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}", "int getLongitude();", "double getLongitude();", "public ArrayList< LocationHandler >findNear ( double lat, double lon){\n\t\tArrayList< LocationHandler> locationList = new ArrayList< LocationHandler>();\n\t\tString selectQuery = \"SELECT \"+ table_location +\".*, \" +\n\t\t\t\t\"(( \" + lat +\" - \" + table_location+\".\"+ key_latitude +\") * (\" + lat +\" - \" + table_location+\".\"+ key_latitude +\") + \" +\n\t\t\t\t\"(\" + lon +\" - \" + table_location+\".\"+ key_longitude +\") * (\" + lon +\" - \" + table_location+\".\"+ key_longitude +\"))\" +\n\t\t\t\t\" AS distance \"+ \n\t\t\t\t\" FROM \" + table_location + \" LEFT JOIN \" + table_locationType + \" ON \" +\n\t\t\t\ttable_location +\".\"+key_type + \" = \" + table_locationType+ \".\" +key_base_id +\n\t\t\t\t\" ORDER BY distance\";\n\t\t//\t\t\t\t\t\" ORDER BY \" + \"ABS( \" + table_location +\".\" +key_latitude + \" - \" + lon + \") \" + \" AND \" \n\t\t//\t\t\t\t\t + \"ABS( \" + table_location +\".\"+ key_longitude + \" - \" + lat + \") \" + \" DESC\";\n\t\tLog.i(TAG, \"near \" + selectQuery);\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tCursor cursor = db.rawQuery(selectQuery, null);\n\t\tif (cursor.moveToFirst()) {\n\t\t\tdo {\n\t\t\t\tLocationHandler locationHandlerArray = new LocationHandler();\n\t\t\t\tlocationHandlerArray.setId(cursor.getInt(0)); \n\t\t\t\tlocationHandlerArray.setBase_id(cursor.getInt(1)); \n\t\t\t\tlocationHandlerArray.setDate_entry(cursor.getString(2)); \n\t\t\t\tlocationHandlerArray.setLongitude(cursor.getDouble(3)); \n\t\t\t\tlocationHandlerArray.setLatitude(cursor.getDouble(4)); \n\t\t\t\tlocationHandlerArray.setName(cursor.getString(5)); \n\t\t\t\tlocationHandlerArray.setType(cursor.getString(6));\n\t\t\t\tlocationHandlerArray.setSearchTag(cursor.getString(7));\n\t\t\t\tlocationHandlerArray.setAmountables(cursor.getDouble(8));\n\t\t\t\tlocationHandlerArray.setDescription(cursor.getString(9));\n\t\t\t\tlocationHandlerArray.setBestSeller(cursor.getString(10));\n\t\t\t\tlocationHandlerArray.setWebsite(cursor.getString(11));\n\t\t\t\tlocationList.add(locationHandlerArray);\n\t\t\t} while (cursor.moveToNext());\n\t\t}\n\t\tdb.close();\n\t\treturn locationList;\n\t}", "public CoordenadasDTO asignarCoordenadas(){\n logger.debug(\"MensajeService::asignarCoordenadas()\");\n CoordenadasDTO coordenadas = new CoordenadasDTO();\n try {\n if(listaNave != null && !listaNave.isEmpty()){\n double posicion [][] = new double [listaNave.size()][];\n double distances[] = obtenerDistancias(listaNave);\n for(int i = 0; i<listaNave.size(); i++){\n switch (listaNave.get(i).getName()){\n case \"kenobi\":\n posicion[i] = posiciones[0];\n break;\n\n case \"skywalker\":\n posicion[i] = posiciones[1];\n break;\n\n case \"solo\":\n posicion[i] = posiciones[2];\n break;\n }\n }\n NonLinearLeastSquaresSolver trilateracion = new NonLinearLeastSquaresSolver(new TrilaterationFunction(posicion, distances), new LevenbergMarquardtOptimizer());\n LeastSquaresOptimizer.Optimum optimum = trilateracion.solve();\n double centroid[] = optimum.getPoint().toArray();\n coordenadas.setY(centroid[1]);\n coordenadas.setX(centroid[0]);\n }\n } catch (Exception e){\n\n }\n return coordenadas;\n }", "public boolean setBothCoordinates(){\r\n\r\n double[] results;\r\n\r\n if((results = getCoordinates(locationA)) == null){\r\n Toast.makeText(this, \"Try another location for A!\", Toast.LENGTH_LONG).show();\r\n return false;\r\n }else{\r\n latA = results[0];\r\n lonA = results[1];\r\n }\r\n\r\n if((results = getCoordinates(locationB)) == null){\r\n Toast.makeText(this, \"Try another location for B!\", Toast.LENGTH_LONG).show();\r\n return false;\r\n }else{\r\n latB = results[0];\r\n lonB = results[1];\r\n }\r\n\r\n getMidPoint();\r\n\r\n return true;\r\n }", "@Override\n\t\t\tpublic void onGetGeoCodeResult(GeoCodeResult arg0) {\n\t\t\t\tif(arg0==null||arg0.error!=SearchResult.ERRORNO.NO_ERROR||arg0.getLocation().latitude==0||arg0.getLocation().longitude==0)\n\t\t\t\t{\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\tToastUtil.shortToast(getApplicationContext(), \"百度地图出现错误了,请重写输入地址\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tlatitude=arg0.getLocation().latitude;\n\t\t\t\tlongitude=arg0.getLocation().longitude;\n\t\t\t\tLog.e(\"llll2\", latitude+\"\");\n\t\t\t\tLog.e(\"11112\", longitude+\"\");\n\t\t\t\tsendEmptyUiMessage(MsgConstants.MSG_01);\n\t\t\t\t\n\t\t\t}", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n if (!multi) {\n LatLng localEntrega = new LatLng(latitude, longitude);\n mMap.addMarker(new MarkerOptions().position(localEntrega).title(\"Local de Entrega\"));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(localEntrega, 14));\n } else {\n myapp = (EntregasApp)getApplicationContext();\n manager = new Manager(myapp);\n LatLng primeiraEntrega;\n\n primeiraEntrega = new LatLng(0,0);\n\n int i = 0;\n List<Documento> documentos = manager.findDocumentoByDataRomaneio(myapp.getDate());\n\n for (Documento documento : documentos ){\n LatLng localEntrega;\n if (documento.getDestinatario().getLatitude()!=null){\n i = i + 1;\n latitude = Double.valueOf(documento.getDestinatario().getLatitude());\n longitude = Double.valueOf(documento.getDestinatario().getLongitude());\n\n localEntrega = new LatLng(latitude, longitude);\n\n if(i==1){\n primeiraEntrega = new LatLng(latitude,longitude);\n }\n\n mMap.addMarker(new MarkerOptions().position(localEntrega)\n .title(documento.getDestinatario().getNome()));\n }\n }\n\n mMap.setMyLocationEnabled(true);\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(primeiraEntrega, 10));\n\n // Check if we were successful in obtaining the map.\n /*\n if (mMap != null) {\n mMap.setOnMyLocationButtonClickListener(new GoogleMap.OnMyLocationChangeListener() {\n @Override\n public void onMyLocationChange(Location arg0) {\n BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.truck);\n mMap.addMarker(new MarkerOptions().position(new LatLng(arg0.getLatitude(), arg0.getLongitude())).title(\"Minha Localização\").icon(icon));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(arg0.getLatitude(), arg0.getLongitude()), 6));\n }\n });\n\n\n }\n\n */\n\n }\n\n }", "@SuppressLint(\"MissingPermission\")\r\n public void initLocation(){\r\n //LocationManager.NETWORK_PROVIDER Otra opcion\r\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000, 2, new LocationListener() {\r\n @Override\r\n public void onLocationChanged(@NonNull Location location) {\r\n LatLng pos = new LatLng(location.getLatitude(), location.getLongitude());\r\n myMarker.setPosition(pos);\r\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(pos, 16));\r\n }\r\n\r\n @Override\r\n public void onStatusChanged(String provider, int status, Bundle extras) {\r\n\r\n }\r\n\r\n @Override\r\n public void onProviderDisabled(@NonNull String provider) {\r\n\r\n }\r\n\r\n @Override\r\n public void onProviderEnabled(@NonNull String provider) {\r\n\r\n }\r\n });\r\n }" ]
[ "0.6549616", "0.62724745", "0.6173031", "0.6149456", "0.607664", "0.6045935", "0.5895498", "0.5876148", "0.5839594", "0.5828925", "0.5827017", "0.5823408", "0.5800095", "0.5780525", "0.5725517", "0.5722908", "0.5722908", "0.5712389", "0.5709894", "0.57064307", "0.56917346", "0.56895626", "0.5687926", "0.5659383", "0.5658814", "0.5654604", "0.5635296", "0.5635296", "0.56098646", "0.56098646", "0.5597669", "0.55894506", "0.55882233", "0.55520225", "0.5547567", "0.5546205", "0.55395573", "0.5536601", "0.5531104", "0.55252147", "0.5508625", "0.55002505", "0.54872215", "0.5486321", "0.548563", "0.54794073", "0.5470475", "0.5469926", "0.5456184", "0.5446842", "0.5445648", "0.5441114", "0.5438771", "0.54259765", "0.5424522", "0.5423509", "0.54169023", "0.5413372", "0.5403352", "0.5399167", "0.539048", "0.53763986", "0.53761256", "0.537171", "0.5367512", "0.53671604", "0.5365835", "0.5352471", "0.53490746", "0.5343615", "0.53435785", "0.53432524", "0.5343184", "0.53370404", "0.53336453", "0.5332542", "0.53252673", "0.5318862", "0.5318862", "0.5315034", "0.5314539", "0.53037053", "0.5301698", "0.5299519", "0.5298297", "0.5297885", "0.5292488", "0.52833647", "0.5282202", "0.5281672", "0.5281532", "0.5280727", "0.5277167", "0.5277056", "0.5270921", "0.5268541", "0.526608", "0.5265319", "0.52651596", "0.5260212" ]
0.5597325
31
The HTML Deleted Text Element&nbsp;(&lt;del&gt;) represents a range of text that has been deleted from a document. This element is often (but need not be) rendered with strikethrough text.
public static DomElement del(final DomElement... childrenElements) { return JaticHTMLElementFactory.get().elementWithContent("del", childrenElements); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void performDelete() {\n \t\tif (text.getSelectionCount() > 0)\n \t\t\ttext.insert(StringStatics.BLANK);\n \t\telse {\n \t\t\t// remove the next character\n \t\t\tint pos = text.getCaretPosition();\n \t\t\tif (pos < text.getCharCount()) {\n \t\t\t\ttext.setSelection(pos, pos + 1);\n \t\t\t\ttext.insert(StringStatics.BLANK);\n \t\t\t}\n \t\t}\n \t\tcheckSelection();\n \t\tcheckDeleteable();\n \t\tcheckSelectable();\n \t}", "private static void OnDelete(Object sender, ExecutedRoutedEventArgs args)\r\n { \r\n TextEditor This = TextEditor._GetTextEditor(sender); \r\n\r\n if (This == null || !This._IsEnabled || This.IsReadOnly || !This._IsSourceInScope(args.Source)) \r\n {\r\n return;\r\n }\r\n\r\n TextEditorTyping._FlushPendingInputItems(This);\r\n\r\n // Note, that Delete and Backspace keys behave differently. \r\n ((TextSelection)This.Selection).ClearSpringloadFormatting();\r\n\r\n // Forget previously suggested horizontal position\r\n TextEditorSelection._ClearSuggestedX(This);\r\n\r\n using (This.Selection.DeclareChangeBlock()) \r\n {\r\n ITextPointer position = This.Selection.End; \r\n if (This.Selection.IsEmpty) \r\n {\r\n ITextPointer deletePosition = position.GetNextInsertionPosition(LogicalDirection.Forward); \r\n\r\n if (deletePosition == null)\r\n {\r\n // Nothing to delete. \r\n return;\r\n } \r\n\r\n if (TextPointerBase.IsAtRowEnd(deletePosition))\r\n { \r\n // Backspace and delete are a no-op at row end positions.\r\n return;\r\n }\r\n\r\n if (position is TextPointer && !IsAtListItemStart(deletePosition) &&\r\n HandleDeleteWhenStructuralBoundaryIsCrossed(This, (TextPointer)position, (TextPointer)deletePosition)) \r\n { \r\n // We are crossing structural boundary and\r\n // selection was updated in HandleDeleteWhenStructuralBoundaryIsCrossed. \r\n return;\r\n }\r\n\r\n // Selection is empty, extend selection forward to delete the following char. \r\n This.Selection.ExtendToNextInsertionPosition(LogicalDirection.Forward);\r\n } \r\n\r\n // Delete selected text.\r\n This.Selection.Text = String.Empty; \r\n }\r\n }", "public void delete(){\n if(currentText != null) {\n //The saved character index should no longer be restored\n savedCharacterIndex = -1;\n\n //If a character is being removed from a single line\n if (characterIndex < currentText.getCharacterEdges().length - 1) {\n currentText = codeWindow.getTextLineController().backspace(currentText, characterIndex, false);\n }\n //If a newline character is being removed two lines need to be merged\n else if (lineIndex < texts.size() - 1) {\n currentText = codeWindow.getTextLineController().merge(currentText, codeWindow.getTextLineController().getCodeWindowTextLines().get(lineIndex + 1), codeWindow);\n }\n //The cursors position is unchanged\n }\n }", "public java.lang.String getDDTEXT()\n {\n \n return __DDTEXT;\n }", "public void delete() {\n\t if (input.getSelectedText() != null){\n\t input.setText(input.getText().replace(\n\t input.getSelectedText(), \"\"));}\n\t}", "public String getDetaggedText() {\n\t\treturn detaggedText.toString();\n\t}", "public boolean isDeleteEnabled() {\n \t\tif (text == null || text.isDisposed())\n \t\t\treturn false;\n \t\treturn text.getSelectionCount() > 0\n \t\t\t|| text.getCaretPosition() < text.getCharCount();\n \t}", "@Override\n\tpublic boolean deleteSurroundingText(int leftLength, int rightLength)\n\t{\n\t\tNativeInterface.Activity.onKeyDown(KeyEvent.KEYCODE_DEL, this.delKeyDownEvent);\n\t\tNativeInterface.Activity.onKeyUp(KeyEvent.KEYCODE_DEL, this.delKeyUpEvent);\n\t\treturn super.deleteSurroundingText(leftLength, rightLength);\n\t}", "private static void OnDeleteNextWord(Object sender, ExecutedRoutedEventArgs args)\r\n { \r\n TextEditor This = TextEditor._GetTextEditor(sender); \r\n\r\n if (This == null || !This._IsEnabled || This.IsReadOnly) \r\n {\r\n return;\r\n }\r\n\r\n if (This.Selection.IsTableCellRange)\r\n { \r\n return; \r\n }\r\n\r\n TextEditorTyping._FlushPendingInputItems(This);\r\n\r\n ITextPointer wordBoundary = This.Selection.End.CreatePointer();\r\n\r\n // When selection is not empty the command deletes selected content\r\n // without extending it to the word bopundary. For empty selection \r\n // the command deletes a content from caret position to \r\n // nearest word boundary in a given direction\r\n if (This.Selection.IsEmpty) \r\n {\r\n TextPointerBase.MoveToNextWordBoundary(wordBoundary, LogicalDirection.Forward);\r\n }\r\n\r\n if (TextRangeEditTables.IsTableStructureCrossed(This.Selection.Start, wordBoundary))\r\n { \r\n return; \r\n }\r\n\r\n ITextRange textRange = new TextRange(This.Selection.Start, wordBoundary);\r\n\r\n // When a range is TableCellRange we do not want to make deletions\r\n if (textRange.IsTableCellRange) \r\n {\r\n return; \r\n } \r\n\r\n if (!textRange.IsEmpty) \r\n {\r\n using (This.Selection.DeclareChangeBlock())\r\n {\r\n // Note asymetry with Backspace: we do not load springload formatting here \r\n if (This.AcceptsRichContent)\r\n { \r\n ((TextSelection)This.Selection).ClearSpringloadFormatting(); \r\n }\r\n\r\n This.Selection.Select(textRange.Start, textRange.End);\r\n\r\n // Delete selected text\r\n This.Selection.Text = String.Empty; \r\n }\r\n } \r\n }", "public void unsetText()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(TEXT$18, 0);\n }\n }", "@Override\n public void clickDelete() {\n if (view.length() > 0) {\n view.setText(view.getText().subSequence(0, view.length() - 1));\n view.setSelection(view.getText().length());\n }\n }", "public String delDel(String str) {\n if (str.length() >= 4 && str.substring(1, 4).equals(\"del\")){\n return (str.charAt(0) + str.substring(4));\n }\n \n return str;\n}", "private static boolean HandleDeleteWhenStructuralBoundaryIsCrossed(TextEditor This, TextPointer position, TextPointer deletePosition) \r\n {\r\n if (!TextRangeEditTables.IsTableStructureCrossed(position, deletePosition) && \r\n !IsBlockUIContainerBoundaryCrossed(position, deletePosition) &&\r\n !TextPointerBase.IsAtRowEnd(position))\r\n {\r\n return false; \r\n }\r\n\r\n LogicalDirection directionOfDelete = position.CompareTo(deletePosition) < 0 ? LogicalDirection.Forward : LogicalDirection.Backward; \r\n\r\n Block paragraphOrBlockUIContainerToDelete = position.ParagraphOrBlockUIContainer; \r\n\r\n // Check if an empty paragraph or BlockUIContainer needs to be deleted.\r\n if (paragraphOrBlockUIContainerToDelete != null)\r\n { \r\n if (directionOfDelete == LogicalDirection.Forward)\r\n { \r\n // \r\n\r\n\r\n\r\n\r\n if (paragraphOrBlockUIContainerToDelete.NextBlock != null &&\r\n paragraphOrBlockUIContainerToDelete is Paragraph && Paragraph.HasNoTextContent((Paragraph)paragraphOrBlockUIContainerToDelete) || // empty paragraph \r\n paragraphOrBlockUIContainerToDelete is BlockUIContainer && paragraphOrBlockUIContainerToDelete.IsEmpty) // empty BlockUIContainer\r\n { \r\n paragraphOrBlockUIContainerToDelete.RepositionWithContent(null); \r\n }\r\n } \r\n else\r\n {\r\n if (paragraphOrBlockUIContainerToDelete.PreviousBlock != null &&\r\n paragraphOrBlockUIContainerToDelete is Paragraph && Paragraph.HasNoTextContent((Paragraph)paragraphOrBlockUIContainerToDelete) || // empty paragraph \r\n paragraphOrBlockUIContainerToDelete is BlockUIContainer && paragraphOrBlockUIContainerToDelete.IsEmpty) // empty BlockUIContainer\r\n { \r\n paragraphOrBlockUIContainerToDelete.RepositionWithContent(null); \r\n }\r\n } \r\n }\r\n\r\n // Set caret position.\r\n This.Selection.SetCaretToPosition(deletePosition, directionOfDelete, /*allowStopAtLineEnd:*/false, /*allowStopNearSpace:*/true); \r\n\r\n if (directionOfDelete == LogicalDirection.Backward) \r\n { \r\n // Clear springload formatting in case of backspace\r\n ((TextSelection)This.Selection).ClearSpringloadFormatting(); \r\n }\r\n\r\n return true;\r\n }", "public java.lang.String getDelete() {\n return instance.getDelete();\n }", "void onDelete() {\n if (getText().equals(mResult) || mIsError) {\n clear();\n } else {\n mDisplay.dispatchKeyEvent(new KeyEvent(0, KeyEvent.KEYCODE_DEL));\n mResult = \"\";\n }\n }", "public boolean isDEL() {\n return DEL;\n }", "public String printDelete(Task deletedTask, int sizeOfTaskList) {\n return \"(¬‿¬) Noted. I've removed this task: \\n\"\n + deletedTask.toString() + \"\\n\"\n + \"Now you have \" + (sizeOfTaskList - 1) + \" tasks in the list.\\n\";\n }", "@Override\n\tpublic String getPreparedDeleteText() {\n\t\treturn SQL_Delete;\n\t}", "private void addHtmlElement(int operation){\n\t\t\n\t\t/* Getting the code for the bullet */\n\t\tString bullet=Html.fromHtml(HtmlElements.BULLET_TYPE_FILLED).toString();\t\t\n\t\t\t\n\t\t/* Getting the current text in the edit text */\n\t\tString text= content.getText().toString();\n\t\t\n\t\t/* Content after the bullet */\n\t\tString contentAfterBullet=null;\n\t\t\n\t\tswitch(operation){\n\t\tcase Constants.OPERATION_ADD_BULLET:\n\t\t\t\n\t\t\t/* Adding the break and then appending the bullet element */\n\t\t\ttext+=Html.fromHtml(\"<br/>\")+\"\"+Html.fromHtml(HtmlElements.BULLET_TYPE_FILLED)+\"\"+Html.fromHtml(HtmlElements.ELEMENT_TYPE_NBSP);\n\t\t\t\n\t\t\tINDENT_LEVEL=1;\n\t\t\tbreak;\n\t\tcase Constants.OPERATION_ADD_LEFT_INDENT:\n\t\t\t\n\t\t\tif(text.length()>0 && text!=null){\n\t\t\t\tToast.makeText(getApplication(), \"Char: \"+text.charAt(content.getSelectionStart()-2)+\" Length: \"+bullet.length(), Toast.LENGTH_SHORT).show();\n\t\t\t\t\n\t\t\t\t/* Getting the content after last bullet */\n\t\t\t\tcontentAfterBullet = text.substring(text.lastIndexOf(bullet)+1);\n\t\t\t\t\n\t\t\t\t/* Removing the space from left side (Dirty work need to make it better */\n\t\t\t\tString breakCode= Html.fromHtml(\"<br/>\").toString();\n\t\t\t\t\n\t\t\t\tif(text.lastIndexOf(breakCode)!=-1){\n\t\t\t\t\ttext=text.substring(0, text.lastIndexOf(bullet)-1);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttext=text.substring(0, text.lastIndexOf(bullet));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/* Generating the final text after removing indent */\n\t\t\t\ttext+=Html.fromHtml(HtmlElements.BULLET_TYPE_FILLED)+contentAfterBullet;\n\t\t\t}\t\t\t\n\t\t\tbreak;\n\t\tcase Constants.OPERATION_ADD_RIGHT_INDENT:\n\t\t\tif(text.length()>0 && text!=null){\n\t\t\t\t/* Getting the content after last bullet */\n\t\t\t\tcontentAfterBullet = text.substring(text.lastIndexOf(bullet)+1);\n\t\t\t\t\n\t\t\t\t/* Getting the text before last bullet */\n\t\t\t\ttext=text.substring(0, text.lastIndexOf(bullet));\n\t\t\t\t\n\t\t\t\t/* Generating the final text after adding indent */\n\t\t\t\ttext+=\"\\t\"+Html.fromHtml(HtmlElements.BULLET_TYPE_FILLED)+contentAfterBullet;\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.OPERATION_ADD_COLOR:\n\t\t\tif(text.length()>0 && START!=END){\n\t\t\t\tString contentBefore = text.substring(0,START);\n\t\t\t\tString contentAfter= text.substring(END);\n\t\t\t\tString contentToColor=text.substring(START,END);\n\t\t\t\tHtmlElements.R=Color.red(CURRENT_COLOR);\n\t\t\t\tHtmlElements.G=Color.green(CURRENT_COLOR);\n\t\t\t\tHtmlElements.B=Color.blue(CURRENT_COLOR);\n\t\t\t\t\n\t\t\t\tString completeText=\"<u>\"+contentToColor+\"</u>\";\n\t\t\t\ttext= contentBefore+Html.fromHtml(completeText)+contentAfter;\n\t\t\t\tToast.makeText(activity, \"Content HTML: \"+text,Toast.LENGTH_LONG).show();\n\t\t\t\t\n\t\t\t}\n\t\t\tbreak;\n\t\tdefault:break;\n\t\t}\t\t\t\n\t\t\t\n\t\t/* Setting the text to edit text */\n\t\tcontent.setText(text);\n\t\t\n\t\t/* Setting the pointer to end */\n\t\tcontent.setSelection(content.getText().length());\n\t}", "public java.lang.String getDELB() {\r\n return localDELB;\r\n }", "public Integer getDelmark() {\n return delmark;\n }", "public java.lang.String getDelete() {\n java.lang.String ref = \"\";\n if (patternCase_ == 5) {\n ref = (java.lang.String) pattern_;\n }\n return ref;\n }", "public void remove() {\r\n // rather than going through replace(), just reinitialize the StyledText,\r\n // letting the old data structures fall on the floor\r\n fCharBuffer = new CharBuffer();\r\n fStyleBuffer = new StyleBuffer(this, AttributeMap.EMPTY_ATTRIBUTE_MAP);\r\n fParagraphBuffer = new ParagraphBuffer(fCharBuffer);\r\n fTimeStamp += 1;\r\n fDamagedRange[0] = fDamagedRange[1] = 0;\r\n }", "public void ButtonDel (View v){\n String expression = resultView.getText().toString();\n if (expression != \"Syntax Error\") {\n if (expression.length() > 2)\n expression = expression.substring(0, expression.length() - 1);\n else if (expression.length() == 2 && !expression.substring(0, 1).equals(\"-\"))\n expression = expression.substring(0, expression.length() - 1);\n else {\n expression = \"0\";\n mIsTyping = false;\n }\n resultView.setText(expression);\n }\n }", "public String getDeletionPatch3c (int pos, String erased) {\n String chunk = getText3().substring(pos * 3, (pos + erased.length()) * 3);\n String patch3c = chunk.replaceAll(\".(..)\", \"\\b$1\");\n return patch3c;\n }", "@DISPID(13)\n\t// = 0xd. The runtime will prefer the VTID if present\n\t@VTID(23)\n\tboolean deleted();", "public String deleteFrom(CharSequence sequence, UnicodeSet.SpanCondition spanCondition) {\n/* 137 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "protected final void removeChar()\n\t{\n\t\tif (showCaret && displayingCaret)\n\t\t{\n\t\t\tif (text.getText().length() > 1) text.setText(text.getText().substring(0, text.getText().length() - 2) + \"|\");\n\t\t}\n\t\telse if (text.getText().length() > 1) text.setText(text.getText().substring(0, text.getText().length() - 2) + \" \");\n\t}", "@Override\n\tpublic int getMarkedAsDelete() {\n\t\treturn _dmGtStatus.getMarkedAsDelete();\n\t}", "public java.lang.String getDelb() {\r\n return localDelb;\r\n }", "@Override\r\n\tpublic MorseCodeTree<String> delete(String element) throws UnsupportedOperationException {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn null;\r\n\t}", "public String remove() \n {\n //TODO\n return \"\";\n }", "@Override\n\tpublic String textContent() {\n\t\treturn null;\n\t}", "void showdelete() {\n\t\tif (printstatus != delete)\n\t\t\tprintln(\">>>> DELETE AT <br/>\" + printoldline);\n\t\tprintstatus = delete;\n\t\toutput+=oldinfo.symbol[printoldline].showSymbol();\n\t\toutput+=\"<br/>\";\n\t\tanyprinted = true;\n\t\tprintoldline++;\n\t}", "public void deleteAt(int i) {\n if(i<0||i>this.length()-1) return;\n String oriContent = getText().toString();\n StringBuilder sBuilder = new StringBuilder(oriContent);\n sBuilder.deleteCharAt(i);\n setText(sBuilder.toString());\n }", "@Override public boolean deleteSurroundingText(int beforeChars, int afterChars) {\n\t\t\tint selStart = imeSelectionStart(nhandle);\n\t\t\tint selEnd = imeSelectionEnd(nhandle);\n\t\t\tint before = selStart - imeToRunes(nhandle, imeToUTF16(nhandle, selStart) - beforeChars);\n\t\t\tint after = selEnd - imeToRunes(nhandle, imeToUTF16(nhandle, selEnd) - afterChars);\n\t\t\treturn deleteSurroundingTextInCodePoints(before, after);\n\t\t}", "@Override\r\n\t\tpublic String getTextContent() throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "private String backspace() {\n this.redos.clear();\n this.undos.push(History.copy(this));\n\n if (selection != null) {\n sb.delete(selection.start, selection.end);\n list.subList(selection.start, selection.end).clear();\n\n cursor = selection.start;\n selection = null;\n } else {\n if (cursor != 0) {\n sb.deleteCharAt(cursor - 1);\n list.remove(cursor - 1);\n\n cursor = cursor - 1;\n }\n }\n\n //return sb.toString();\n return printList();\n }", "protected String[] dtdText()\n {\n return XmlUtil.paginatedResultSetXmlDtd();\n }", "public void delLiteral();", "public String showDeletedTags(String word, ArrayList<String> deletedTags) {\n StringBuilder stringBuilder = new StringBuilder();\n if (deletedTags.size() > 0) {\n stringBuilder.append(\"I have removed \" + (deletedTags.size() == 1 ? \"this tag \" : \"these tags \")\n + \"from the word \\\"\" + word + \"\\\"\" + \"\\n\");\n for (String tag : deletedTags) {\n stringBuilder.append(tag + \"\\n\");\n }\n }\n return stringBuilder.toString();\n }", "private void cmd_deleteSelection(){\n\t\tm_frame.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\n\t\tif (ADialog.ask(getWindowNo(), m_frame.getContainer(), \"DeleteSelection\"))\n\t\t{\t\n\t\t\tint records = deleteSelection(detail);\n\t\t\tsetStatusLine(Msg.getMsg(Env.getCtx(), \"Deleted\") + records, false);\n\t\t}\t\n\t\tm_frame.setCursor(Cursor.getDefaultCursor());\n\t\tbDelete.setSelected(false);\n\t\texecuteQuery();\n\t\t\n\t}", "void removeHadithText(Object oldHadithText);", "public String getDelFlag() {\n return delFlag;\n }", "public String getDelFlag() {\n return delFlag;\n }", "public String getDelFlag() {\n return delFlag;\n }", "public Integer getDel() {\r\n\t\treturn del;\r\n\t}", "public void unsetItalic()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(ITALIC$6, 0);\n }\n }", "public void delete() {\n\t\tcmd = new DeleteCommand(editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}", "@Override\r\n\tpublic String delete() {\n\t\treturn \"delete\";\r\n\t}", "public static String getDeidedText(gate.Document gateDoc, String annotationSet, String annTag){\t\t\n\t\tList<Annotation> ann = new ArrayList<Annotation>(gateDoc.getAnnotations(annotationSet).get(annTag));\t\t\n\t\tStringBuffer text = new StringBuffer(gateDoc.getContent().toString());\n\t\tint length = 0;\n\t\t\n\t\tfor(Annotation a: ann)\n\t\t{\t\n\t\t\tlength = a.getEndNode().getOffset().intValue() - a.getStartNode().getOffset().intValue();\n\t\t\ttext.replace(a.getStartNode().getOffset().intValue(), a.getEndNode().getOffset().intValue(), StringUtils.repeat(\"d\", length));\n\t\t}\n\treturn new String(text);\n\t}", "public static void deselNotes() {\r\n List<MeasureLine> selection = DataClipboard.getSelection();\r\n for(int i = DataClipboard.getSelectionLineBegin(); i < DataClipboard.getSelectionLineEnd() + 1; i++){\r\n if(selection.get(i) != null) {\r\n if (selection.get(i).size() > 0) {\r\n selection.get(i).clear();\r\n }\r\n if(selection.get(i).getVolume() < 0) {\r\n selection.set(i, null);\r\n }\r\n }\r\n }\r\n \r\n //find new line begin \r\n for(int i = DataClipboard.getSelectionLineBegin(); i < DataClipboard.getSelectionLineEnd() + 1; i++){\r\n if(selection.get(i) != null) {\r\n DataClipboard.setSelectionLineBegin(i);\r\n break;\r\n }\r\n }\r\n \r\n //find new line end \r\n for(int i = DataClipboard.getSelectionLineEnd(); i > DataClipboard.getSelectionLineBegin() - 1; i--){\r\n if(selection.get(i) != null) {\r\n DataClipboard.setSelectionLineEnd(i);\r\n break;\r\n }\r\n }\r\n }", "void delete(SpCharInSeq spCharInSeq);", "@DISPID(75)\r\n\t// = 0x4b. The runtime will prefer the VTID if present\r\n\t@VTID(80)\r\n\tboolean isDeleted();", "@Nullable\n public TupleExpr getDeleteExpr() {\n return this.deleteExpr;\n }", "public void delete(char toRemove) {\n\n int i = 0;\n while(message.validIndex(i)) {\n\n char temp = message.get(i).toString().charAt(0);\n\n // If the current char should be deleted\n if(temp == toRemove) {\n\n message.deleteAt(i);\n --i;\n \n // Record inverse command\n int j = i + 1;\n this.undoCommands += \"b \" + toRemove + \" \" + j + \"\\n\";\n }\n\n ++i;\n }\n }", "@Override\n\tpublic int getMarkedAsDelete() {\n\t\treturn _dmGTShipPosition.getMarkedAsDelete();\n\t}", "@Override\n \t\t\t\tpublic boolean isDeleted() {\n \t\t\t\t\treturn false;\n \t\t\t\t}", "@Override\n\tpublic String getDes() {\n\t\treturn medicalRecord.getDes() + \" \" + \"²ΔΑΟ·Ρ\";\n\t}", "public String getDelFlg() {\n return delFlg;\n }", "public void setDEL(boolean DEL) {\n this.DEL = DEL;\n }", "private void removeDelRevisions(ArrayList p_tags)\n {\n boolean b_changed = true;\n\n deltags: while (b_changed)\n {\n for (int i = 0, max = p_tags.size(); i < max; i++)\n {\n Object o = p_tags.get(i);\n\n if (o instanceof HtmlObjects.Tag)\n {\n HtmlObjects.Tag tag = (HtmlObjects.Tag) o;\n String original = tag.original;\n\n if (tag.tag.equalsIgnoreCase(\"span\")\n && original.indexOf(\"class=msoDel\") >= 0)\n {\n removeTagAndContent(p_tags, tag);\n\n continue deltags;\n }\n }\n }\n\n b_changed = false;\n }\n }", "public String getDelFlg() {\n\t\treturn delFlg;\n\t}", "public void setDelmark(Integer delmark) {\n this.delmark = delmark;\n }", "public String getDelfg() {\n return delfg;\n }", "public String getText() {\n return \"\";\n }", "public void testRemoveStyleWhenSelectionWrapsTheStyleElement()\n {\n deferTest(new Command()\n {\n public void execute()\n {\n String text = \"x<em>y</em>z\";\n rta.setHTML(text);\n\n Range range = ((Document) rta.getDocument()).createRange();\n range.setStart(getBody().getFirstChild(), 1);\n range.setEnd(getBody().getLastChild(), 0);\n select(range);\n\n assertTrue(executable.isExecuted());\n assertTrue(executable.execute(null));\n assertFalse(executable.isExecuted());\n assertEquals(\"xyz\", rta.getHTML());\n }\n });\n }", "public void setDelFlg(String delFlg) {\n this.delFlg = delFlg;\n }", "public Integer getDeleteTag() {\n return deleteTag;\n }", "@Override\n public void delete(int id) {\n repr.delete(id);\n }", "protected void undoTextChange() {\n \t\t\ttry {\n \t\t\t\tif (fDocumentUndoManager.fDocument instanceof IDocumentExtension4)\n \t\t\t\t\t((IDocumentExtension4) fDocumentUndoManager.fDocument).replace(fStart, fText\n \t\t\t\t\t\t\t.length(), fPreservedText, fUndoModificationStamp);\n \t\t\t\telse\n \t\t\t\t\tfDocumentUndoManager.fDocument.replace(fStart, fText.length(),\n \t\t\t\t\t\t\tfPreservedText);\n \t\t\t} catch (BadLocationException x) {\n \t\t\t}\n \t\t}", "@DISPID(13)\n\t// = 0xd. The runtime will prefer the VTID if present\n\t@VTID(24)\n\tvoid deleted(boolean pVal);", "@Override\n\tpublic void delete(Note e) {\n\t\t\n\t}", "public String getDeleteFlag() {\r\n return deleteFlag;\r\n }", "public boolean isDeleted()\r\n {\r\n return getSemanticObject().getBooleanProperty(swb_deleted);\r\n }", "public abstract void clearSelection(TextAppearance appearance);", "@Override\n\tpublic void posDelete() {\n\t\t\n\t}", "@Override\n\tpublic void posDelete() {\n\t\t\n\t}", "@Override\n\tpublic void posDelete() {\n\t\t\n\t}", "protected String getTextContent()\n {\n return super.getText().trim();\n }", "public String getDeleteFlag() {\n return deleteFlag;\n }", "@Override\n\tpublic int getEndOffset() {\n\t\treturn 0;\n\t}", "public void clearText() {\r\n\t\tSystem.out.println(\"UNIMPLEMENTED: clear displayed text\");\r\n\t\t// TODO implement text clearing\r\n\t}", "@Override\n public boolean DeleteLastTypedTextCharacter()\n {\n if (mTypedText.length() == 0)\n return false;\n\n mTypedText = mTypedText.substring(0, mTypedText.length() - 1);\n return true;\n }", "public int delete(String delElem) {\n int index = search(delElem);\n if (index != -1) {\n if (index >= 0) {\n for (index = index + 1 ; index < next ; index++) {\n data[index - 1] = data[index];\n }\n next--;\n return 1;\n } \n }\n return 0;\n }", "public Delete getDelete() {\n\t\treturn this.delete;\n\t}", "public com.google.protobuf.ByteString\n getDeleteBytes() {\n java.lang.String ref = \"\";\n if (patternCase_ == 5) {\n ref = (java.lang.String) pattern_;\n }\n return com.google.protobuf.ByteString.copyFromUtf8(ref);\n }", "public Integer getEndOffset() {\n return this.endOffset;\n }", "@Override\n\tpublic int getIsDelete() {\n\t\treturn _dmGtStatus.getIsDelete();\n\t}", "public String getIsdelete() {\n return isdelete;\n }", "public String getIsdelete() {\n return isdelete;\n }", "@Transient\n\tpublic String getToDeleteFlg() {\n\t\treturn toDeleteFlg;\n\t}", "public void setDelFlg(String delFlg) {\n\t\tthis.delFlg = delFlg;\n\t}", "public java.lang.Boolean getDeleted();", "@Override\n\tprotected void filterUserInputText(AttributedString text) {\n\t\tfor (int i = 0; i < text.length(); i++) {\n\t\t\tchar ch = text.charAt(i);\n\t\t\tif (ch == '\\t' || ch == '\\n' || ch == '\\r') {\n\t\t\t\ttext.delete(Range.make(i, 1));\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\t\tsuper.filterUserInputText(text);\n\t}", "public String getDeleteFlag() {\r\n\t\treturn deleteFlag;\r\n\t}", "public void deleteContact(String del) {\n\n\t\t// get reference of the bookmarks database\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\n\t\t// delete word\n\t\tdb.delete(TABLE_NAME, NAME_FIELD + \" = ?\", new String[] { \"\" + del });\n\t\tdb.close();\n\t}", "void showDataDeletedMsg();", "@Override\n public boolean handleDeleteBeforeNode(ContentElement element, EditorEvent event) {\n return true;\n }", "public Long deleted() {\n return this.deleted;\n }", "public void setDeletionTime(DateTime deletionTime) {\n this.deleted = deletionTime;\n }" ]
[ "0.6385124", "0.5775402", "0.5683019", "0.5650169", "0.56351715", "0.5629538", "0.5561711", "0.5542792", "0.55101454", "0.54530525", "0.54118407", "0.5389942", "0.53091156", "0.528391", "0.52777314", "0.5228717", "0.52102447", "0.520587", "0.51983136", "0.5182737", "0.5175362", "0.517075", "0.5165388", "0.5164325", "0.51298606", "0.51284313", "0.5127904", "0.5120867", "0.51100177", "0.5107334", "0.5083312", "0.50684863", "0.5067102", "0.5064781", "0.5045834", "0.5013366", "0.50114715", "0.4984178", "0.49743816", "0.49487683", "0.49405652", "0.4935968", "0.49283966", "0.49264973", "0.49264973", "0.49264973", "0.48987934", "0.48972392", "0.48936036", "0.48799768", "0.48781672", "0.48743495", "0.48705232", "0.48623127", "0.48602694", "0.4858492", "0.48424068", "0.48403633", "0.48285967", "0.48257524", "0.48195514", "0.48193845", "0.47867146", "0.4779099", "0.47672376", "0.47593355", "0.47519043", "0.4747813", "0.47379434", "0.47328454", "0.47280234", "0.47266698", "0.47264674", "0.47094196", "0.47042632", "0.4701889", "0.46998152", "0.46998152", "0.46998152", "0.46959364", "0.46872556", "0.46849597", "0.46819764", "0.4680087", "0.4678668", "0.46761876", "0.46727216", "0.46716607", "0.46696556", "0.46680832", "0.46680832", "0.46663952", "0.46571827", "0.46553588", "0.46490076", "0.46449268", "0.4643587", "0.46401247", "0.4639036", "0.4638191", "0.46372342" ]
0.0
-1
The HTML &lt;ins&gt; Element (or HTML Inserted Text) HTML represents a range of text that has been added to a document.
public static DomElement ins(final DomElement... childrenElements) { return JaticHTMLElementFactory.get().elementWithContent("ins", childrenElements); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getInsid() {\n return insid;\n }", "public void setInsid(Integer insid) {\n this.insid = insid;\n }", "String getBeginRange();", "private void applyInsRevisions(ArrayList p_tags)\n {\n boolean b_changed = true;\n\n instags: while (b_changed)\n {\n for (int i = 0, max = p_tags.size(); i < max; i++)\n {\n Object o = p_tags.get(i);\n\n if (o instanceof HtmlObjects.Tag)\n {\n HtmlObjects.Tag tag = (HtmlObjects.Tag) o;\n String original = tag.original;\n\n if (tag.tag.equalsIgnoreCase(\"span\")\n && original.indexOf(\"class=msoIns\") >= 0)\n {\n removeInsTag(p_tags, tag);\n\n continue instags;\n }\n }\n }\n\n b_changed = false;\n }\n }", "private void doTestStyleWhenSelectionIsInsideText()\n {\n String text = \"123\";\n rta.setHTML(text);\n\n Range range = ((Document) rta.getDocument()).createRange();\n range.setStart(getBody().getFirstChild(), 1);\n range.setEnd(getBody().getFirstChild(), 2);\n select(range);\n\n assertFalse(executable.isExecuted());\n assertTrue(executable.execute(null));\n assertTrue(executable.isExecuted());\n assertEquals(\"1<em>2</em>3\", rta.getHTML().toLowerCase());\n assertTrue(executable.execute(null));\n assertFalse(executable.isExecuted());\n assertEquals(text, rta.getHTML().toLowerCase());\n }", "public boolean isRawInlineHtmlEnabled()\n {\n \treturn rawInlineHtmlEnabled;\n }", "public java.lang.String getInsight() {\n java.lang.Object ref = insight_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n insight_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@java.lang.Override\n public java.lang.String getInsight() {\n java.lang.Object ref = insight_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n insight_ = s;\n return s;\n }\n }", "public void enableRawInlineHtml()\n {\n rawInlineHtmlEnabled = true;\n }", "public com.google.protobuf.ByteString getInsightBytes() {\n java.lang.Object ref = insight_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n insight_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public interface ContentInliner {\n\n /**\n * Get Regexp Pattern for match format string\n *\n * @return Pattern\n */\n Pattern getTagPattern();\n\n /**\n * Inline content to xlsx template\n */\n void inlineToXlsx(SpreadsheetMLPackage pkg, WorksheetPart worksheetPart, Cell newCell, Object paramValue, Matcher matcher);\n\n /**\n * Inline content into doc template\n */\n void inlineToDoc(OfficeComponent officeComponent, XTextRange textRange, XText destination, Object paramValue, Matcher paramsMatcher)\n throws Exception;\n\n /**\n * Inline content into docx template\n */\n void inlineToDocx(WordprocessingMLPackage wordPackage, Text destination, Object paramValue, Matcher paramsMatcher);\n\n /**\n * Inline content into xls template\n */\n void inlineToXls(HSSFPatriarch patriarch, HSSFCell destination, Object paramValue, Matcher paramsMatcher);\n}", "@java.lang.Override\n public com.google.protobuf.ByteString getInsightBytes() {\n java.lang.Object ref = insight_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n insight_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public IndicadoresEficaciaHTML(IndicadoresEficaciaHTML src) {\n/* 181 */ this.fDocumentLoader = src.getDocumentLoader();\n/* */ \n/* 183 */ setDocument((Document)src.getDocument().cloneNode(true), src.getMIMEType(), src.getEncoding());\n/* */ \n/* 185 */ syncAccessMethods();\n/* */ }", "public final void mT__95() throws RecognitionException {\r\n try {\r\n int _type = T__95;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:92:7: ( 'in' )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modification.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/modification/ui/contentassist/antlr/internal/InternalModification.g:92:9: 'in'\r\n {\r\n match(\"in\"); \r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }", "protected void setINS(byte ins) {\n\theader[1] = ins;\n }", "public InstructorDetails getInsDetails() {\r\n\t\t\treturn insDetails;\r\n\t\t}", "public PIndenter getIndenter() {\n return indenter;\n }", "public Pre()\r\n {\r\n startTag=\"PRE\";\r\n endTag=\"/PRE\";\r\n }", "public Integer getInsnodeid() {\n return insnodeid;\n }", "@Override\r\n\tpublic List<ProductRaw_In> findIns(String text, PageRequest pageable) {\n\t\treturn productRaw_InDao.findProductRawIns(text, pageable);\r\n\t}", "public InputInteractions getInIn() {\r\n\t\t// restituisce le interazioni di input\r\n\t\treturn this.InIn;\r\n\t}", "private void doTestStyleWhenCaretIsInsideText()\n {\n rta.setHTML(\"ac\");\n\n Range range = ((Document) rta.getDocument()).createRange();\n range.setStart(getBody().getFirstChild(), 1);\n range.collapse(true);\n select(range);\n\n assertFalse(executable.isExecuted());\n assertTrue(executable.execute(null));\n assertTrue(executable.isExecuted());\n insertHTML(\"b\");\n assertTrue(executable.isExecuted());\n assertEquals(\"a<em>b</em>c\", rta.getHTML().toLowerCase());\n assertTrue(executable.execute(null));\n assertFalse(executable.isExecuted());\n assertEquals(\"a<em></em>b<em></em>c\", rta.getHTML().toLowerCase());\n }", "@DISPID(-2147417084)\n @PropPut\n void outerHTML(\n java.lang.String rhs);", "@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn this.getIndentation() + \"(in-subrange \" + this.getPosition1().getCoordX() + \", \" + this.getPosition1().getCoordY() + \", \"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t + this.getPosition2().getCoordX() + \", \" + this.getPosition2().getCoordY() + \")\";\r\n\t}", "public Tag inlineTags()[] {return inlineTags; }", "private void eatRangeStart() {\n\n Token token = tokens.get(currentTokenPointer++);\n\n if (token.kind == TokenKind.STARTINCLUSIVE) {\n\n startInclusive = true;\n\n } else if (token.kind == TokenKind.STARTEXCLUSIVE) {\n\n startInclusive = false;\n\n } else {\n\n raiseParseProblem(\"expected a version start character '[' or '(' but found '\" + string(token) + \"' at position \" + token.start,\n\n token.start);\n\n }\n\n }", "private HTMLElement generateInlineIntroHTML(IntroHTML element,\n \t\t\tint indentLevel) {\n \t\tStringBuffer content = readFromFile(element.getSrc());\n \t\tif (content != null && content.length() > 0) {\n \t\t\t// Create the outer div element\n \t\t\tHTMLElement divElement = generateDivElement(element.getId(),\n \t\t\t\t\tIIntroHTMLConstants.DIV_CLASS_INLINE_HTML, indentLevel);\n \t\t\t// add the content of the specified file into the div element\n \t\t\tdivElement.addContent(content);\n \t\t\treturn divElement;\n \t\t}\n \t\treturn null;\n \t}", "public HBox answerIntervalLine(String begin, String end)\n {\n HBox answerIntervalLine = new HBox(5);\n answerIntervalLine.getChildren().addAll(new Label(\"Esteve entre \"), new Text(begin), new Label(\" e \"), new Text(end));\n answerIntervalLine.setAlignment(Pos.BASELINE_LEFT);\n\n return answerIntervalLine; \n }", "public StrColumn getPdbInsCode() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"pdb_ins_code\", StrColumn::new) :\n getBinaryColumn(\"pdb_ins_code\"));\n }", "public StrColumn getPdbxRange2EndLabelInsCode() {\n return delegate.getColumn(\"pdbx_range_2_end_label_ins_code\", DelegatingStrColumn::new);\n }", "public final void mT__80() throws RecognitionException {\n try {\n int _type = T__80;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalDSL.g:63:7: ( 'inlined' )\n // InternalDSL.g:63:9: 'inlined'\n {\n match(\"inlined\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "@Override\r\n\tpublic List<ProductRaw_In> getIns(PageRequest pageable) {\n\t\treturn productRaw_InDao.getProductRawIns(pageable);\r\n\t}", "public interface IntervalRange<V extends Comparable<V>> extends Range<V> {\n\n\t/**\n\t * This method returns the lower bound of the interval.\n\t * \n\t * @return the lower bound. <code>null</code> means there is no lower bound,\n\t * i.e., this is an open interval.\n\t */\n\tpublic V getLowerBound();\n\n\t/**\n\t * This method returns the upper bound of the interval.\n\t * \n\t * @return the upper bound. <code>null</code> means there is no upper bound,\n\t * i.e., this is an open interval.\n\t */\n\tpublic V getUpperBound();\n\n}", "public void openStartTag() throws XMLStreamException {\n write(HtmlObject.HtmlMarkUp.OPEN_BRACKER);\n }", "public String html() {\n\t\treturn HtmlFunction.html(this);\n\t}", "public String toString()\n\t{\n\t\tString result = \"Highlighted region \"+getMinIndex()+\"-\"+getMaxIndex();\n\t\treturn result;\n\t}", "public java.lang.String getIntakeIntervals() {\n java.lang.Object ref = intakeIntervals_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n intakeIntervals_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public final EObject ruleEInRange() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token otherlv_1=null;\n Token otherlv_3=null;\n Token otherlv_5=null;\n EObject lv_start_2_0 = null;\n\n EObject lv_end_4_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalRMParser.g:8349:2: ( (otherlv_0= In_range otherlv_1= LeftSquareBracket ( (lv_start_2_0= ruleEAlphaNumericValue ) ) otherlv_3= Comma ( (lv_end_4_0= ruleEAlphaNumericValue ) ) otherlv_5= RightSquareBracket ) )\n // InternalRMParser.g:8350:2: (otherlv_0= In_range otherlv_1= LeftSquareBracket ( (lv_start_2_0= ruleEAlphaNumericValue ) ) otherlv_3= Comma ( (lv_end_4_0= ruleEAlphaNumericValue ) ) otherlv_5= RightSquareBracket )\n {\n // InternalRMParser.g:8350:2: (otherlv_0= In_range otherlv_1= LeftSquareBracket ( (lv_start_2_0= ruleEAlphaNumericValue ) ) otherlv_3= Comma ( (lv_end_4_0= ruleEAlphaNumericValue ) ) otherlv_5= RightSquareBracket )\n // InternalRMParser.g:8351:3: otherlv_0= In_range otherlv_1= LeftSquareBracket ( (lv_start_2_0= ruleEAlphaNumericValue ) ) otherlv_3= Comma ( (lv_end_4_0= ruleEAlphaNumericValue ) ) otherlv_5= RightSquareBracket\n {\n otherlv_0=(Token)match(input,In_range,FOLLOW_27); \n\n \t\t\tnewLeafNode(otherlv_0, grammarAccess.getEInRangeAccess().getIn_rangeKeyword_0());\n \t\t\n otherlv_1=(Token)match(input,LeftSquareBracket,FOLLOW_79); \n\n \t\t\tnewLeafNode(otherlv_1, grammarAccess.getEInRangeAccess().getLeftSquareBracketKeyword_1());\n \t\t\n // InternalRMParser.g:8359:3: ( (lv_start_2_0= ruleEAlphaNumericValue ) )\n // InternalRMParser.g:8360:4: (lv_start_2_0= ruleEAlphaNumericValue )\n {\n // InternalRMParser.g:8360:4: (lv_start_2_0= ruleEAlphaNumericValue )\n // InternalRMParser.g:8361:5: lv_start_2_0= ruleEAlphaNumericValue\n {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getEInRangeAccess().getStartEAlphaNumericValueParserRuleCall_2_0());\n \t\t\t\t\n pushFollow(FOLLOW_80);\n lv_start_2_0=ruleEAlphaNumericValue();\n\n state._fsp--;\n\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getEInRangeRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"start\",\n \t\t\t\t\t\tlv_start_2_0,\n \t\t\t\t\t\t\"org.sodalite.dsl.RM.EAlphaNumericValue\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n\n }\n\n\n }\n\n otherlv_3=(Token)match(input,Comma,FOLLOW_79); \n\n \t\t\tnewLeafNode(otherlv_3, grammarAccess.getEInRangeAccess().getCommaKeyword_3());\n \t\t\n // InternalRMParser.g:8382:3: ( (lv_end_4_0= ruleEAlphaNumericValue ) )\n // InternalRMParser.g:8383:4: (lv_end_4_0= ruleEAlphaNumericValue )\n {\n // InternalRMParser.g:8383:4: (lv_end_4_0= ruleEAlphaNumericValue )\n // InternalRMParser.g:8384:5: lv_end_4_0= ruleEAlphaNumericValue\n {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getEInRangeAccess().getEndEAlphaNumericValueParserRuleCall_4_0());\n \t\t\t\t\n pushFollow(FOLLOW_28);\n lv_end_4_0=ruleEAlphaNumericValue();\n\n state._fsp--;\n\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getEInRangeRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"end\",\n \t\t\t\t\t\tlv_end_4_0,\n \t\t\t\t\t\t\"org.sodalite.dsl.RM.EAlphaNumericValue\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n\n }\n\n\n }\n\n otherlv_5=(Token)match(input,RightSquareBracket,FOLLOW_2); \n\n \t\t\tnewLeafNode(otherlv_5, grammarAccess.getEInRangeAccess().getRightSquareBracketKeyword_5());\n \t\t\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 }", "private void addRangeIntegers() {\r\n ent_2_i.put(\"< 0\", -1); ent_2_i.put(\"== 0\", 0); ent_2_i.put(\"== 1\", 1); ent_2_i.put(\"< 10\", 10);\r\n ent_2_i.put(\"< 100\", 100); ent_2_i.put(\"< 1K\", 1000); ent_2_i.put(\"< 10K\", 10000); ent_2_i.put(\"< 100K\", 100000);\r\n ent_2_i.put(\"> 100K\", 1000000);\r\n }", "public String getRange() {\n return this.range;\n }", "protected SafeHtml getInnerHtml() {\n return html;\n }", "public String getInseam() {\n return (String)getAttributeInternal(INSEAM);\n }", "public SequenceRegion interval(Sequence start, Sequence stop) {\n\t/* Ravi thingToDo. */\n\t/* use a single constructor */\n\t/* Performance */\n\treturn (SequenceRegion) ((above(start, true)).intersect((below(stop, false))));\n/*\nudanax-top.st:15693:SequenceSpace methodsFor: 'making'!\n{SequenceRegion CLIENT} interval: start {Sequence} with: stop {Sequence}\n\t\"Return a region of all sequence >= lower and < upper.\"\n\t\n\t\"Ravi thingToDo.\" \"use a single constructor\" \"Performance\"\n\t^((self above: start with: true)\n\t\tintersect: (self below: stop with: false)) cast: SequenceRegion!\n*/\n}", "@DISPID(-2147417084)\n @PropGet\n java.lang.String outerHTML();", "public com.google.protobuf.ByteString\n getIntakeIntervalsBytes() {\n java.lang.Object ref = intakeIntervals_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n intakeIntervals_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "java.lang.String getInsight();", "public IndicadoresEficaciaHTML() {\n/* 163 */ this(StandardDocumentLoader.getInstance());\n/* */ \n/* 165 */ buildDocument();\n/* */ }", "@Override\n public void onRangeStart(String s, int i, int i1) {\n }", "public String getUs1120incomeStmt() {\n\n return this.us1120incomeStmt;\n }", "public java.lang.String getIntakeIntervals() {\n java.lang.Object ref = intakeIntervals_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n intakeIntervals_ = s;\n return s;\n }\n }", "public interface In extends Clause {}", "void setBeginRange( String beginRange );", "public com.google.protobuf.ByteString\n getIntakeIntervalsBytes() {\n java.lang.Object ref = intakeIntervals_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n intakeIntervals_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getBegin() {\n if (Span_Type.featOkTst && ((Span_Type)jcasType).casFeat_Begin == null)\n jcasType.jcas.throwFeatMissing(\"Begin\", \"Span\");\n return jcasType.ll_cas.ll_getIntValue(addr, ((Span_Type)jcasType).casFeatCode_Begin);}", "public native final String html()/*-{\n\t\treturn this.html();\n\t}-*/;", "public MarkedRegion(AbstractInsnNode start, AbstractInsnNode end) {\n this.start = start;\n this.ends = new LinkedList<AbstractInsnNode>();\n this.ends.add(end);\n }", "public final void mIN() throws RecognitionException {\n try {\n int _type = IN;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/dannluciano/Sources/MyLanguage/expr.g:151:4: ( 'in' )\n // /Users/dannluciano/Sources/MyLanguage/expr.g:151:6: 'in'\n {\n match(\"in\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public String textBetween(int start, int end) throws Exception {\n\t\tAssert.isLegal(start<=end);\n\t\tif (start>=doc.getLength()) {\n\t\t\treturn \"\";\n\t\t}\n\t\tif (start<0) {\n\t\t\tstart = 0;\n\t\t}\n\t\tif (end>doc.getLength()) {\n\t\t\tend = doc.getLength();\n\t\t}\n\t\tif (end<start) {\n\t\t\tend = start;\n\t\t}\n\t\treturn doc.get(start, end-start);\n\t}", "public String getSpan()\n {\n return span;\n }", "public String getHtml() {\n return html;\n }", "public MarkedRegion(AbstractInsnNode start, List<AbstractInsnNode> ends) {\n this.start = start;\n this.ends = ends;\n }", "public List<moneytree.persist.db.generated.tables.pojos.Income> fetchRangeOfNotes(String lowerInclusive, String upperInclusive) {\n return fetchRange(Income.INCOME.NOTES, lowerInclusive, upperInclusive);\n }", "public interface IHtmlStreamWriter extends IXmlStreamWriter {\r\n\tvoid ignoreCurrentEndTag();\r\n}", "public java.lang.String getRange() {\n\t\treturn _range;\n\t}", "@Override\r\n\tpublic String getActivity_range() {\n\t\treturn super.getActivity_range();\r\n\t}", "@Override\n\tpublic String addInStorage(InStorage ins) {\n\t\treturn super.addObject(ins);\n\t}", "public List<moneytree.persist.db.generated.tables.pojos.Income> fetchRangeOfSource(String lowerInclusive, String upperInclusive) {\n return fetchRange(Income.INCOME.SOURCE, lowerInclusive, upperInclusive);\n }", "public String getIdentityInsertString() {\n \t\treturn null;\n \t}", "public Interval(String low, String high) {\n\t\tthis.low = low;\n\t\tthis.high = high;\n\t}", "public String getInlineCode() {\n return inlineCode;\n }", "@Override\n public TextRegion createLineRange(int startLineInclusive, int endLineInclusive) {\n return base.createLineRange(startLineInclusive, endLineInclusive);\n }", "private static boolean HandleEnterBreakForRichText(TextEditor This, ICommand command)\r\n { \r\n boolean wasSelectionChanged = true;\r\n\r\n // Save current inline settings to continue on the next paragraph\r\n ((TextSelection)This.Selection).SpringloadCurrentFormatting(); \r\n\r\n if (!This.Selection.IsEmpty) \r\n { \r\n // Delete selected content\r\n This.Selection.Text = String.Empty; \r\n }\r\n\r\n if (HandleEnterBreakWhenStructuralBoundaryIsCrossed(This, command))\r\n { \r\n // We are crossing structural boundary and\r\n // selection was updated if HandleEnterBreakWhenStructuralBoundaryIsCrossed returned true \r\n } \r\n else\r\n { \r\n TextPointer newEnd = ((TextSelection)This.Selection).End;\r\n\r\n if (command == EditingCommands.EnterParagraphBreak)\r\n { \r\n if (newEnd.HasNonMergeableInlineAncestor && !TextPointerBase.IsPositionAtNonMergeableInlineBoundary(newEnd))\r\n { \r\n // Selection end is in the middle of a hyperlink element, enter is a no-op. \r\n wasSelectionChanged = false;\r\n } \r\n else\r\n {\r\n newEnd = TextRangeEdit.InsertParagraphBreak(newEnd, /*moveIntoSecondParagraph*/true);\r\n } \r\n }\r\n else if (command == EditingCommands.EnterLineBreak) \r\n { \r\n newEnd = newEnd.InsertLineBreak();\r\n } \r\n\r\n if (wasSelectionChanged)\r\n {\r\n This.Selection.Select(newEnd, newEnd); \r\n }\r\n } \r\n\r\n return wasSelectionChanged;\r\n }", "public void setSourceSpan(int start, int end)\n\t{\n\t\tsourceStart = start;\n\t\tsourceEnd = end;\n\t\treturn;\n\t}", "private void doTestStyleWhenCaretIsBeforeImage()\n {\n rta.setHTML(\"<img/>*\");\n\n Range range = ((Document) rta.getDocument()).createRange();\n range.setStartBefore(getBody().getFirstChild());\n range.collapse(true);\n select(range);\n\n assertFalse(executable.isExecuted());\n assertTrue(executable.execute(null));\n assertTrue(executable.isExecuted());\n insertHTML(\"y\");\n assertTrue(executable.isExecuted());\n assertEquals(\"<em>y</em><img>*\", rta.getHTML().toLowerCase());\n assertTrue(executable.execute(null));\n assertFalse(executable.isExecuted());\n assertEquals(\"<em></em>y<em></em><img>*\", rta.getHTML().toLowerCase());\n }", "private boolean containsHtml(final String str) {\n if (str == null)\n return false;\n return str.indexOf('<') != -1 || str.indexOf('&') != -1;\n }", "HTML createHTML();", "public String getInsipaddr() {\r\n return insipaddr;\r\n }", "public void setIndenter(PIndenter newIndenter) {\n this.indenter = newIndenter;\n }", "SPAN createSPAN();", "public byte getINS() {\n\treturn (byte) (header[1] & 0xFF);\n }", "public static Interval intersection(Interval in1, Interval in2){\r\n double a = in1.getFirstExtreme();\r\n double b = in1.getSecondExtreme();\r\n double c = in2.getFirstExtreme();\r\n double d = in2.getSecondExtreme();\r\n char p1 = in1.getFEincluded();\r\n char p2 = in1.getSEincluded();\r\n char p3 = in2.getFEincluded();\r\n char p4 = in2.getSEincluded();\r\n \r\n if (a==c && b==d){\r\n if (a==b){\r\n if (p1=='[' && p3=='[' && p2==']' && p4==']'){\r\n return new Interval(in1);\r\n }else{\r\n return new Interval(0,0,'(',')');\r\n }\r\n }else{\r\n return new Interval(a,b,p1==p3?p1:'(',p2==p4?p2:')');\r\n }\r\n }else if (a<c && b<=c){\r\n if (b==c && p2==']' && p3=='['){\r\n return new Interval(b,b,p3,p2);\r\n }else{\r\n return new Interval(0,0,'(',')');\r\n }\r\n }else if (a<=c && b<d){\r\n if (a==c){\r\n return new Interval(a,b,p1==p3?p1:'(',p2);\r\n }else{\r\n return new Interval(c,b,p3,p2);\r\n }\r\n }else if(a<c && b==d){\r\n return new Interval(c,b,p3,p2==p4?p2:')');\r\n }else if(a<=c && b>d){\r\n if (a==c){\r\n return new Interval(a,d,p1==p3?p1:'(',p4);\r\n }else{\r\n return new Interval(in2);\r\n }\r\n }else if (a>c && b<=d){\r\n if (b==d){\r\n return new Interval(a,b,p1,p2==p4?p2:')');\r\n }else{\r\n return new Interval(in1);\r\n }\r\n }else if (a<=d && b>d){\r\n if (a==d){\r\n if (p1=='[' && p4==']'){\r\n return new Interval(a,a,p1,p4);\r\n }else{\r\n return new Interval(0,0,'(',')');\r\n }\r\n }else{\r\n return new Interval(a,d,p1,p4);\r\n }\r\n }else{\r\n return new Interval(0,0,'(',')');\r\n }\r\n }", "public E getIn() {\n return in;\n }", "public Region(String chr, int start, int end, String gene, int insertStart, int insertEnd) {\n this.chr = chr;\n this.start = start;\n this.end = end;\n this.gene = gene;\n this.insertStart = insertStart;\n this.insertEnd = insertEnd;\n }", "void setSelectionRange(int start, int end, HTMLInputElement.Direction direction);", "public String getHtmlText() {\n return htmlText;\n }", "Intervalle(double bas, double haut){\n this.inf = bas;\n this.sup = haut;\n }", "public String getHighlightedText() {\n List<WebElement> styleTags = getStyleTags();\n\n return styleTags.stream().map(WebElement::getText).collect(Collectors.joining(\"\\n\"));\n }", "public void setInsPgid(String insPgid) {\n this.insPgid = insPgid;\n }", "public long getRangeStart() {\n return mRangeStart;\n }", "public static Interval union(Interval in1, Interval in2){\r\n if (Interval.intersection(in1, in2).isEmpty())\r\n return new Interval();\r\n double a = in1.getFirstExtreme();\r\n double b = in1.getSecondExtreme();\r\n double c = in2.getFirstExtreme();\r\n double d = in2.getSecondExtreme();\r\n double fe, se;\r\n char ai = in1.getFEincluded();\r\n char bi = in1.getSEincluded();\r\n char ci = in2.getFEincluded();\r\n char di = in2.getSEincluded();\r\n char fei, sei;\r\n if (a<c){\r\n fe = a;\r\n fei = ai;\r\n }\r\n else if (a>c){\r\n fe = c;\r\n fei = ci;\r\n }\r\n else{\r\n fe = a;\r\n fei = ai==ci?ai:'(';\r\n }\r\n if (d<b){\r\n se = b;\r\n sei = bi;\r\n }\r\n else if (d>b){\r\n se = d;\r\n sei = di;\r\n }\r\n else{\r\n se = b;\r\n sei = bi==di?bi:')';\r\n }\r\n return new Interval(fe,se,fei,sei);\r\n }", "public String getInsUserid() {\n return insUserid;\n }", "public String getInsPgid() {\n return insPgid;\n }", "@Test\n\tpublic void h1_header_italic_test() {\n\t\tString text = \"# *heading1*\";\n\t\tassertEquals(\"<html><h1><em>heading1</em></h1></html>\", createHTML(text));\n\t}", "public Interval(Interval in){\r\n firstExtreme = in.getFirstExtreme();\r\n secondExtreme = in.getSecondExtreme();\r\n feIncluded = in.getFEincluded();\r\n seIncluded = in.getSEincluded();\r\n }", "public static DocumentFragment getIntextElement(Module m, PIcommand cmd,Reference ref) {\n\n DocumentFragment df = m.getDoc().createDocumentFragment();\n Element refElt = m.getDoc().createElement(\"span\");\n refElt.setAttribute(\"class\", cmd.getCommandStyleName());\n Node n_ref = null;\n String reftext = \"\";\n\n // set as requested\n String index = Reference.EMPTY;\n if (cmd.paramExist(PIcommand.INDEX)) {\n index = cmd.getValue(PIcommand.INDEX);\n }\n\n // display according to style\n // display IEE style\n reftext += \" [\" + index + \"] \";\n\n\n n_ref = m.getDoc().createTextNode(reftext.trim());\n refElt.appendChild(n_ref);\n df.appendChild(refElt);\n return df;\n //return refElt;\n }", "public Interval(Instant begin, Instant end) {\n this.begin = begin;\n this.end = end;\n }", "public String getInXml() {\n return inXml;\n }", "@Override\r\n \tpublic final int getStartPos() {\r\n \t\treturn sourceStart;\r\n \t}", "public void setInIn(InputInteractions inIn) {\r\n\t\t// assegna le interazioni di input\r\n\t\tthis.InIn = inIn;\r\n\t}", "public RangeInteger<MoreTypesDemo> getNumberIntRange() {\n return numberIntRange;\n }" ]
[ "0.5003791", "0.49596673", "0.48523965", "0.47414544", "0.47313932", "0.47196123", "0.46995747", "0.46568614", "0.46527275", "0.4635753", "0.46254736", "0.46140698", "0.45935953", "0.45816776", "0.45730242", "0.45657137", "0.45272213", "0.45254448", "0.45222333", "0.45109564", "0.44692314", "0.44475695", "0.44425073", "0.44334486", "0.4418209", "0.4387214", "0.43837947", "0.43768713", "0.4370629", "0.43679005", "0.4349725", "0.43255493", "0.43086454", "0.43020058", "0.43004754", "0.42982474", "0.4283529", "0.428118", "0.4279404", "0.42632574", "0.4254189", "0.42469114", "0.42462316", "0.4240979", "0.4239766", "0.4239499", "0.4237817", "0.4231961", "0.4230153", "0.42270735", "0.42184818", "0.42161155", "0.42004892", "0.4200088", "0.4194489", "0.41932514", "0.41931644", "0.41929358", "0.4179495", "0.41713747", "0.41658622", "0.41594106", "0.41506523", "0.4149958", "0.41477853", "0.4147098", "0.41442242", "0.41430232", "0.41429973", "0.4138353", "0.41352373", "0.41340005", "0.4126052", "0.41254395", "0.4125102", "0.41190693", "0.41164926", "0.41135097", "0.41097718", "0.41042405", "0.41030732", "0.4097711", "0.40946525", "0.4084963", "0.40807927", "0.40778205", "0.40721276", "0.40677097", "0.40673438", "0.40620708", "0.4055435", "0.40534565", "0.40530974", "0.4052776", "0.40494728", "0.40458107", "0.40424347", "0.40386772", "0.40372074", "0.4031786" ]
0.504028
0
Created by Administrator on 2017/8/7.
public interface DeviceOperateService { public int opValve(Integer userid,String house_code,Integer open,Integer islock,JSONObject resultObj); public int setBuildingValve(Integer userid, Map<String,String> paramters,JSONObject resultObj); public int opBuildingValve(Integer userid, Map<String,String> paramters,JSONObject resultObj); public int readBuildingValveSet(Integer userid, Map<String,String> paramters,JSONObject resultObj); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "private static void cajas() {\n\t\t\n\t}", "public void mo38117a() {\n }", "@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}", "public final void mo51373a() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\t\t\tpublic void ayuda() {\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}", "public void mo4359a() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void 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\tpublic void rozmnozovat() {\n\t}", "public contrustor(){\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo6081a() {\n }", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "Petunia() {\r\n\t\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n protected void getExras() {\n }", "public Pitonyak_09_02() {\r\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "@Override\n\tpublic void create () {\n\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "private TMCourse() {\n\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tpublic void create() {\n\t\t\n\t}", "public void autoDetails() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "public void verarbeite() {\n\t\t\r\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "public void create() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "public void mo12930a() {\n }", "private UsineJoueur() {}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tpublic void create() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "protected void mo6255a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "private void poetries() {\n\n\t}", "private void getStatus() {\n\t\t\n\t}", "private static void oneUserExample()\t{\n\t}", "@Override\r\n\tpublic void create() {\n\r\n\t}", "private Singletion3() {}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "public void gored() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "@Override\n void init() {\n }", "@Override\n\tprotected void interr() {\n\t}", "private void init() {\n\n\t}", "@Override\n public int describeContents() { return 0; }", "public void mo1531a() {\n }", "private ReportGenerationUtil() {\n\t\t\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "public void mo9848a() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public int getSize() {\n return 1;\n }", "@Override\n public void init() {\n }", "private zza.zza()\n\t\t{\n\t\t}", "protected Doodler() {\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "public void mo21877s() {\n }", "private void kk12() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}" ]
[ "0.6244775", "0.61209005", "0.5809614", "0.5794204", "0.5779324", "0.5775259", "0.57167876", "0.57156044", "0.57127154", "0.5704275", "0.569485", "0.56919056", "0.56919056", "0.56911415", "0.5689382", "0.56828374", "0.56806874", "0.56611687", "0.56577426", "0.56577426", "0.56417906", "0.55981594", "0.5586641", "0.55675334", "0.55675334", "0.55675334", "0.55675334", "0.55675334", "0.55675334", "0.55675334", "0.5552073", "0.5545881", "0.5544321", "0.5525524", "0.55152375", "0.551216", "0.55050987", "0.5497669", "0.5494166", "0.54927623", "0.5485761", "0.54856265", "0.54837036", "0.545992", "0.5457273", "0.545207", "0.5442638", "0.54416037", "0.5432615", "0.5404661", "0.53946733", "0.5391604", "0.53872854", "0.537902", "0.53675324", "0.5361332", "0.53566885", "0.5355461", "0.53515977", "0.53502584", "0.53502584", "0.53502584", "0.53502584", "0.53502584", "0.53502584", "0.53485614", "0.53363246", "0.5335102", "0.5332981", "0.5330987", "0.5329934", "0.5325487", "0.53167075", "0.5316703", "0.5311277", "0.5306784", "0.5301535", "0.5290984", "0.52893233", "0.5280577", "0.5279376", "0.52773607", "0.5275296", "0.5274796", "0.5273803", "0.5267093", "0.5262275", "0.52596605", "0.5251716", "0.52503437", "0.52475274", "0.5244315", "0.5236591", "0.52360886", "0.5234792", "0.5234769", "0.5234244", "0.5234244", "0.52261305", "0.5219674", "0.5209981" ]
0.0
-1
Return true if small is a subset of large. That is, all the elements in small are in large / Analysis: This method can be solved in nlog(n) time where n is the length of the large array. This is done by sorting large, then verifying whether each element in small is in large via a binary search. Complete this method with a Hashset in O(n) time.
public static boolean isSubset(int[] large, int[] small){ HashSet<Integer> hs = new HashSet<>(20, 0.9f); for(int i : large) hs.add(new Integer(i)); for(int i = 0; i < small.length; i++) if(!hs.contains(small[i])) return false; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private List<Integer> intersectSorted(int[] sortedLongNums, int[] sortedShortNums) {\n List<Integer> intersect = new ArrayList<>();\n\n for (int i = 0, j = 0; i < sortedLongNums.length && j < sortedShortNums.length; i++) {\n if (sortedLongNums[i] == sortedShortNums[j]) {\n intersect.add(sortedLongNums[i]);\n ++j;\n } else if (sortedLongNums[i] > sortedShortNums[j]) {\n ++j;\n --i;\n }\n }\n return intersect;\n }", "static boolean isSubset(int Tab1[], int Tab2[], int m, int n)\n {\n // compléter\n //Trouver le max de Tab1[]\n int max=Tab1[0];\n for(int i = 1; i < m; i++) {\n\t\t\tif (Tab1[i]>max){\n max=Tab1[i];\n }\n\t\t}\n \n\t\t//Stockage de la Tab1 dans une table de hashage\n\t\tint[] hashTable = new int[max];\n\t\tfor(int i = 0; i < m; i++) {\n\t\t\thashTable[hash(Tab1[i], max)] = Tab1[i];\n\t\t}\n\t\t\n\t\t//verifier que chaque element (de Tab2) existe dans la hashtable\n\t\tfor(int j = 0; j < n; j++) {\n\t\t\tif(Tab2[j] != hashTable[hash(Tab2[j], max)]) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t}\n return true;\n \n //Complexite aymptotique :\n /*\n Puisque la boucle qui a le plus d'itérations est celle avec l'élément m, la compléxité\n asymptotique est O(m).\n f(m,n) = 2m + n = O(m), puisque m > n\n */\n \n\n }", "@Override\n public boolean subset(SetI other) {\n if (count > other.size()) {\n return false;\n }\n\n for (Integer e : this) {\n // I have but other do not...\n if (!other.contains(e)) {\n return false;\n }\n }\n return true;\n }", "private boolean isSubsetOf(int firstRow, int secondRow) {\n for (int i = 0; i < universalSetSize; i++) {\n if (input[firstRow][i] && !input[secondRow][i]) {\n return false;\n }\n }\n return true;\n }", "private boolean checkIllegallIndexes(Set<Integer> mintermSet, Set<Integer> dontCareSet, int size) {\n\t\tSet<Integer> mintermAndDontCareUnion = new HashSet<>(mintermSet);\n\t\tmintermAndDontCareUnion.addAll(dontCareSet);\n\n\t\tdouble maxMinterm = Math.pow(2, size) - 1;\n\t\tfor (Integer integer : mintermAndDontCareUnion) {\n\t\t\tif (integer > maxMinterm) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private boolean alreadySeenSubset(List<Integer> subset,\n\t\t\tList<List<Integer>> prevSeenSubsets) {\n\n\t\tCollections.sort(subset);\n\n\t\tfor (List<Integer> seenSubset : prevSeenSubsets) {\n\t\t\tCollections.sort(seenSubset);\n\n\t\t\tif (subset.size() != seenSubset.size()) {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\n\t\t\t\tboolean allValsEqual = true;\n\t\t\t\tfor (int i = 0; i < subset.size(); i++) {\n\t\t\t\t\tif (subset.get(i).intValue() != seenSubset.get(i)\n\t\t\t\t\t\t\t.intValue()) {\n\t\t\t\t\t\tallValsEqual = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (allValsEqual) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "public boolean isSubset(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\t\n\t\tfor (int i=0; i < firstArray.size(); i++) {\n\t\t\tif (secondArray.contains(firstArray.get(i)) == false) return false;\n\t\t\t// If our second array does not contain even one element that our first array does, return false\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "@SuppressWarnings(\"unlikely-arg-type\")\n\tpublic boolean verify(ArrayList<Integer[]> answer, ArrayList<Integer[]> allSubsets, int bound) {\n\t\t//Contains\n\t\tfor (int i = 0; i < answer.size(); i++) {\n\t\t\tif(!allSubsets.contains(answer.get(i))) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t//Size\n\t\tif(answer.size()>bound) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tint[] people= new int[answer.get(0).length];\n\t\t//Universe\n\t\tfor (int i = 0; i <answer.size(); i++) {\n\t\t\tInteger[] subset = answer.get(i);\n\t\t\tfor (int j = 0; j < subset.length; j++) {\n\t\t\t\tif(subset[j]==1) {\n\t\t\t\t\tpeople[j]=1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "@Test\n\t public void test_Is_Subset_Positive() throws Exception{\t\n\t\t SET setarray= new SET( new int[]{1,2,3,4,5});\n\t\t SET subsetarray= new SET( new int[]{1,2,3});\n\t\t assertTrue(setarray.isSubSet(subsetarray));\t \n\t }", "private boolean validationPhase(Secret secretA, Secret secretB, int smallestSize, double[] optimalBox) {\n\n\t\t// number of all possible subsets with a size of smallestSize\n\t\tint numberSubsets; \n\t\tif((secretA.getTimes().size() / smallestSize) <= (secretB.getTimes().size() / smallestSize)) {\n\t\t\tnumberSubsets = (secretA.getTimes().size() / smallestSize);\n\t\t} else {\n\t\t\tnumberSubsets = (secretB.getTimes().size() / smallestSize);\n\t\t}\n\n\t\t// rest of the size modulo all subsets\n\t\tint restA = secretA.getTimes().size() % (numberSubsets * smallestSize);\n\t\tint restB = secretB.getTimes().size() % (numberSubsets * smallestSize);\n\n\t\tArrayList<Time> subsetA; \n\t\tArrayList<Time> subsetB;\n\n\t\tint countWrongResults = 0;\n\n\t\tArrayList<String> validateSubsetSignificantDifferent = new ArrayList<String>();\n\t\tArrayList<String> validateSubsetOverlapA = new ArrayList<String>();\n\t\tArrayList<String> validateSubsetOverlapB = new ArrayList<String>();\n\t\tArrayList<Time> prevSubsetA = new ArrayList<Time>();\n\t\tArrayList<Time> prevSubsetB = new ArrayList<Time>();\n\n\n\t\tfor (int i = 0; i < numberSubsets; ++i) {\n\n\t\t\tint countInvalid = 0;\n\t\t\t// the rest will be deducted at the beginning\n\t\t\tsubsetA = secretA.getBisectedTimes(restA + (smallestSize * i), smallestSize);\n\t\t\tsubsetB = secretB.getBisectedTimes(restB + (smallestSize * i), smallestSize);\n\n\t\t\tCollections.sort(subsetA);\n\t\t\tCollections.sort(subsetB);\n\n\t\t\tif (BoxTest.boxTestSmaller(subsetA, subsetB, optimalBox)) {\n\t\t\t\tvalidateSubsetSignificantDifferent.add(\"o\");\n\n\t\t\t} else {\n\t\t\t\tvalidateSubsetSignificantDifferent.add(\"x\");\n\t\t\t\t//logger.info(\"subset \" + i + \": wrong result\");\n\t\t\t\t++countInvalid;\n\t\t\t}\n\t\t\t\n\t\t\tif(i != 0) {\n\t\t\t\tif (BoxTest.boxTestOverlap(prevSubsetA, subsetA, optimalBox)) {\n\t\t\t\t\tvalidateSubsetOverlapA.add(\"o\");\n\n\t\t\t\t} else {\n\t\t\t\t\tvalidateSubsetOverlapA.add(\"x\");\n\t\t\t\t\t//logger.info(\"subset \" + i + \": only significant different\");\n\t\t\t\t\t++countInvalid;\n\t\t\t\t} \n\n\t\t\t\tif (BoxTest.boxTestOverlap(prevSubsetB, subsetB, optimalBox)) {\n\t\t\t\t\tvalidateSubsetOverlapB.add(\"o\");\n\t\t\t\t\t//logger.info(\"subset \" + i + \": right result\");\n\n\t\t\t\t} else {\n\t\t\t\t\tvalidateSubsetOverlapB.add(\"x\");\n\t\t\t\t\t//logger.info(\"subset \" + i + \": only significant different, subset A overlaps\");\n\t\t\t\t\t++countInvalid;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(countInvalid > 0) {\n\t\t\t\t++countWrongResults;\n\t\t\t}\n\n\t\t\tprevSubsetA = new ArrayList<Time>();\n\t\t\tprevSubsetB = new ArrayList<Time>();\n\n\t\t\tprevSubsetA = subsetA;\n\t\t\tprevSubsetB = subsetB;\n\t\t}\n\n\t\tdouble confidenceInterval = 100 - (countWrongResults * 100 / numberSubsets);\n\n\t\tthis.boxTestResults.get(this.boxTestResults.size() - 1).saveValidation(smallestSize, confidenceInterval, validateSubsetOverlapA, validateSubsetOverlapB, validateSubsetSignificantDifferent);\n\t\tlogger.finest(\"\\n\\\"o\\\" = successful box test \\n\\\"x\\\" = unsuccesful box test\\n\");\n\t\tlogger.finest(secretA.getName() + \" overlaps: \" + Folder.convertArrayListToString(validateSubsetOverlapA));\n\t\tlogger.finest(secretB.getName() + \" overlaps: \" + Folder.convertArrayListToString(validateSubsetOverlapB));\n\t\tlogger.finest(secretA.getName() + \" < \" + secretB.getName() + \": \" + Folder.convertArrayListToString(validateSubsetSignificantDifferent));\n\n\t\tlogger.info(secretA.getName() + \" < \" + secretB.getName() + \": validate smallest size \" + smallestSize + \": \" + countWrongResults + \" out of \" + numberSubsets + \" comparisons returned wrong results.\");\n\n\t\tif(countWrongResults != 0) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "@Override public boolean equals(Object o) {\n if (this == o) { return true; }\n if ( !(o instanceof Set) ) { return false; }\n Set that = (Set) o;\n return that.size() == inner.size() &&\n containsAll(that);\n }", "@Test\r\n public void testIsSubset1() {\r\n Assert.assertEquals(false, set1.isSubset(set2));\r\n }", "Boolean subset(MultiSet<X> s);", "public boolean isSubset(/*@ non_null @*/ JMLObjectSet<E> s2) {\n if (size > s2.int_size()) {\n return false;\n } else {\n for (JMLListObjectNode<E> walker = the_list;\n walker != null;\n walker = walker.next) {\n if (!s2.has(walker.val)) {\n return false;\n }\n } \n //@ assert (\\forall Object e; ; this.has(e) ==> s2.has(e));\n return true;\n } \n }", "public boolean subset(ZYSet<ElementType> potentialSubset){\n for(ElementType e:potentialSubset){\n if(!this.contains(e)){\n return false;\n }\n }\n return true;\n }", "public boolean containsNearbyAlmostDuplicate(int[] nums, int k, int t) {\n TreeSet<Integer> set = new TreeSet<>();\n for (int i = 0; i < nums.length; i++) {\n Integer head = set.ceiling(nums[i]);\n// if (head != null && head - nums[i] <= t) { overflow\n if (head != null && head <= t + nums[i]) {\n return true;\n }\n Integer tail = set.floor(nums[i]);\n// if (tail != null && nums[i] - tail <= t) { overflow\n if (tail != null && nums[i] <= t + tail) {\n return true;\n }\n set.add(nums[i]);\n if (set.size() > k) {\n set.remove(nums[i - k]);\n }\n }\n return false;\n }", "public boolean isSmallVariant(int genotype, int cutoff, boolean ignoreInsertionLength) {\n VariantType type = this.getType(genotype);\n SimpleInterval1D intervalForCompare = this.getVariantInterval(genotype, ignoreInsertionLength);\n if (ignoreInsertionLength) {\n return ((type == VariantType.Deletion || type == VariantType.Complex) &&\n intervalForCompare.right - intervalForCompare.left + 1 < cutoff);\n } else {\n return ((type == VariantType.Insertion || type == VariantType.Deletion || type == VariantType.Complex) &&\n intervalForCompare.right - intervalForCompare.left + 1 < cutoff);\n }\n }", "public boolean containsNearbyDuplicate(int[] nums, int k) {\n for(int left = 0; left<nums.length-1; left ++) {\n int low = Math.min(left+k, nums.length-1);\n for(int i=left+1; i<=low; i++) {\n if(nums[i] == nums[left]) return true;\n }\n }\n return false;\n }", "public boolean containsNearbyDuplicate2(int[] nums, int k) {\n \tif(nums == null || nums.length <=1) return false;\r\n \tSet<Integer> set = new HashSet<Integer> ();\r\n \tfor(int i=0; i< nums.length; i++) {\r\n \t\tif(i>k) set.remove(nums[i-k-1]);\r\n \t\tif(!(set.add(nums[i]))) return true;\r\n \t}\r\n \treturn false;\r\n }", "static boolean isSubstringUsingIndexOf(String big, String small) {\n return big.contains(small);\n }", "public boolean containsNearbyAlmostDuplicate(int[] nums, int k, int t) {\n\n if(nums==null||nums.length<2||k<0||t<0)\n return false;\n\n TreeSet<Long> sortedElems = new TreeSet<>();\n\n for(int i = 0; i< nums.length; i++){\n\n final long num = (long)nums[i];\n\n final long left = num - t;\n final long right = num + t+1;\n final SortedSet<Long> foundElems = sortedElems.subSet(left, right);\n if(!foundElems.isEmpty()){\n return true;\n }\n sortedElems.add(num);\n\n if(i>=k){\n sortedElems.remove((long)nums[i-k]);\n }\n\n }\n return false;\n\n\n }", "public boolean haveNiceHashCodeSpread(Set<ComplexOomage> oomages) {\n int[] bucketFillCount = new int[10];\n int size = oomages.size();\n for (ComplexOomage oom: oomages) {\n int code = oom.hashCode();\n int bucket = (code & 0x7FFFFFFF) % 10;\n bucketFillCount[bucket] += 1;\n }\n\n double min = size / 50;\n double max = size / 2.5;\n for (int count: bucketFillCount) {\n if (count < min || count > max) {\n return false;\n }\n }\n return true;\n }", "@Test\n public void testIsSubSet() {\n System.out.println(\"isSubSet\");\n ArrayList<Integer> arr1 = new ArrayList<>();\n arr1.add(12);\n arr1.add(10);\n arr1.add(23);\n ArrayList<Integer> arr2 = new ArrayList<>();\n arr2.add(10);\n arr2.add(23);\n Collections.sort(arr1);\n ArrayListRecursive instance = new ArrayListRecursive(arr1, arr2);\n boolean expResult = true;\n boolean result = instance.isSubSet();\n assertEquals(expResult, result);\n }", "public boolean containsNearbyDuplicate(int[] nums, int k) {\n Set<Integer> numSet = new HashSet<Integer>(nums.length);\n for (int i=0;i<nums.length;i++) {\n \tif (i>k) {\n \t\tnumSet.remove(nums[i-k-1]);\n \t}\n \tif (numSet.contains(nums[i])) return true;\n \t\n \tnumSet.add(nums[i]);\n }\n return false;\n }", "public boolean subset(SetSet second){\n\t\tfor(int i=0;i<size();i++){\n\t\t\tif(second.contains(get(i))==-1){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean containsNearbyAlmostDuplicate(int[] nums, int k, int t) {\n if (t < 0) return false;\n TreeSet<Long> set = new TreeSet<>();\n for (int i = 0; i < nums.length; ++i) {\n long num = (long)nums[i];\n Long floor = set.floor(num), ceiling = set.ceiling(num);\n if (floor != null && num - floor <= t || ceiling != null && ceiling - num <= t) return true;\n set.add(num);\n if (i >= k) set.remove((long)nums[i - k]);\n }\n return false;\n}", "public static void main(String[] args){\n\t\tScanner input = new Scanner(System.in);\n\t\tSystem.out.print(\"Enter n1 = \");\n\t\tint n1 = input.nextInt();\n\t\tint[] a1 = new int[n1];\n\t\tint i;\n\t\tSystem.out.println(\"Enter array-1 : \");\n\t\tfor(i=0;i<n1;i++)\n\t\t\ta1[i] = input.nextInt();\n\t\tSystem.out.print(\"Enter n2 = \");\n\t\tint n2 = input.nextInt();\n\t\tint[] a2 = new int[n2];\n\t\tSystem.out.println(\"Enter array-2 : \");\n\t\tfor(i=0;i<n2;i++)\n\t\t\ta2[i] = input.nextInt();\n\t\tHashMap<Integer,Boolean> h = new HashMap<Integer,Boolean>();\n\t\t\n\t\tfor(i=0;i<n1;i++){\n\t\t\tif (!h.containsKey(a1[i]))\n\t\t\t\th.put(a1[i],true);\n\t\t}\n\t\tint f=1;\n\t\tfor(i=0;i<n2;i++){\n\t\t\tif (! h.containsKey(a2[i]) )\n\t\t\t\tf=0;\n\t\t}\n\t\tif (f==1)\n\t\t\tSystem.out.println(\"Yes! It's a subset\");\n\t\telse\n\t\t\tSystem.out.println(\"No! It's NOT a subset\");\n\t\t\t\n\t\t\n\t\n\t}", "protected final boolean isContained(int low2, int high2) {\n\tif ((this.low >= low2) && (this.high <= high2)) {\n\t return(true);\n\t}\n\treturn(false);\n }", "public boolean containsNearbyDuplicate(int[] nums, int k) {\n \tint len=nums.length;\n \tif(len<2){\n \t\treturn false;\n \t}\n \tHashMap<Integer,Integer> map=new HashMap<Integer,Integer>();\n \tfor(int i=0; i<len; i++){\n \t\tif(!map.containsKey(nums[i])){\n \t\t\tmap.put(nums[i], i);\n \t\t}else{\n \t\t\tif((i-map.get(nums[i])<=k)){\n \t\t\t\treturn true;\n \t\t\t}\n \t\t\tmap.put(nums[i], i);\n \t\t}\n \t}\t\n \treturn false; \n }", "private boolean containsDuplicate(final int[][] inputarray){\n Set<Integer> cells = new HashSet<Integer>();\n for (int[] i : inputarray){\n for(int values : i){\n if (cells.contains(values) || (values < 1 || values > (inputarray.length*inputarray.length))) return true;\n cells.add(values);\n }\n }\n return false;\n }", "@Test\n\t public void test_Is_Subset_Negative() throws Exception{\t\n\t\t SET setarray= new SET( new int[]{1,2,3,4,5});\n\t\t SET subsetarray= new SET( new int[]{7,8});\n\t\t assertFalse(setarray.isSubSet(subsetarray));\t \n\t }", "public boolean containsDuplicate(int[] nums) {\r\n\t Set<Integer> set = new HashSet<Integer>();\r\n\t for(int i = 0; i < nums.length; i++) {\r\n\t if(set.contains(nums[i]))\r\n\t return true;\r\n\t else\r\n\t set.add(nums[i]);\r\n\t }\r\n\t return false;\r\n\t }", "private static boolean areOverlapping( int a[], int sz, int pos, int len )\n {\n \tfor( int i=0; i<sz; i++ ){\n \t if( areOverlapping( a[i], pos, len ) ){\n \t\treturn true;\n \t }\n \t}\n \treturn false;\n }", "public static void testVerifyLarge() {\n Runtime runtime = Runtime.getRuntime();\n long usedMemoryBefore = runtime.totalMemory() - runtime.freeMemory();\n Instant t1 = Instant.now();\n\n Random random = new Random();\n for (int i = 1; i <= TIMES; i++) {\n EdDSA eckey = new EdDSA();\n byte[] data = new byte[SIZE];\n random.nextBytes(data);\n byte[] hash = Hash.h256(data);\n byte[] sig = eckey.sign(hash).toBytes();\n\n if (i % 1000 == 0) {\n System.out.printf(\"...%d\\n\", i);\n }\n\n EdDSA.verify(hash, sig);\n }\n\n Instant t2 = Instant.now();\n long usedMemoryAfter = runtime.totalMemory() - runtime.freeMemory();\n\n logger.info(\"Perf_verify_large: {} bytes, took {}\", usedMemoryAfter - usedMemoryBefore,\n TimeUtil.formatDuration(Duration.between(t1, t2)));\n }", "public boolean isFarmBig() {\r\n if(usedPopulation / maxPopulation > 0.8) {\r\n return false;\r\n } else {\r\n return true;\r\n }\r\n }", "private boolean isSubset(List<ConceptLabel> outer, List<ConceptLabel> inner){\n\t\tfor(ConceptLabel in: inner){\n\t\t\tboolean c = false;\n\t\t\tfor(ConceptLabel l: outer){\n\t\t\t\tif(l.getText().equals(in.getText())){\n\t\t\t\t\tc = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(!c)\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public static boolean CheckDirectlySuperList(List<Integer> list1, List<Integer> list2){\n\n Set<Integer> hashSet1 = new HashSet<>(list1);\n Set<Integer> hashSet2 = new HashSet<>(list2);\n\n boolean contain = false;\n\n if (list1.size()-list2.size()==1){\n contain = true;\n for (Integer i: hashSet2){\n if (!hashSet1.contains(i)){\n contain = false;\n break;\n }\n }\n }\n return contain;\n }", "protected boolean arraysEqual(short[] other) {\n if (other == arrayOfShorts) {\n return true;\n }\n\n if (other.length != arrayOfShorts.length) {\n return false;\n }\n\n for (int i = 0; i < arrayOfShorts.length; i++) {\n if (other[i] != arrayOfShorts[i]) {\n return false;\n }\n }\n return true;\n }", "protected final boolean contains(int low2, int high2) {\n\t//if (((this.low >= low2) && (this.high <= high2)) ||\n\t// ((low2 >= this.low) && (high2 <= this.high))) {\n\tif ((this.low <= low2) && (this.high >= high2)) {\n\t return(true);\n\t}\n\treturn(false);\n }", "static boolean hasArrayTwoCandidates(int A[], \n\t\t\t\t\t\tint arr_size, int sum) \n\t{ \n\t\tint l, r; \n\t\n\t\t/* Sort the elements */\n\t\tArrays.sort(A); \n\t\n\t\t/* Now look for the two candidates \n\t\tin the sorted array*/\n\t\tl = 0; \n\t\tr = arr_size-1; \n\t\twhile (l < r) \n\t\t{ \n\t\t\tif(A[l] + A[r] == sum) \n\t\t\t\treturn true; \n\t\t\telse if(A[l] + A[r] < sum) \n\t\t\t\tl++; \n\t\t\telse // A[i] + A[j] > sum \n\t\t\t\tr--; \n\t\t} \n\t\treturn false; \n\t}", "private boolean subGridCheck() {\n\t\tint sqRt = (int)Math.sqrt(dimension);\n\t\tfor(int i = 0; i < sqRt; i++) {\n\t\t\tint increment = i * sqRt;\n\t\t\tfor(int val = 1; val <= dimension; val++) {\n\t\t\t\tint valCounter = 0;\n\t\t\t\tfor(int row = 0 + increment; row < sqRt + increment; row++) {\n\t\t\t\t\tfor(int col = 0 + increment; col < sqRt + increment; col++) {\n\t\t\t\t\t\tif(puzzle[row][col] == val)\n\t\t\t\t\t\t\tvalCounter++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(valCounter >= 2)\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean properSubset(SetSet second){\n\t\tif(subset(second) && !equals(second)){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}", "public static boolean containsNearbyAlmostDuplicate(int[] nums, int k, int t) {\n if (t < 0) return false;\n Map<Long, Long> buckets = new HashMap<>();\n long width = (long) t + 1;\n for (int i = 0; i < nums.length; i++) {\n long m = getId(nums[i], width);\n if (buckets.containsKey(m))\n return true;\n if (buckets.containsKey(m - 1) && Math.abs(nums[i] - buckets.get(m - 1)) < width)\n return true;\n if (buckets.containsKey(m + 1) && Math.abs(nums[i] - buckets.get(m + 1)) < width)\n return true;\n buckets.put(m, (long) nums[i]);\n if (i >= k) buckets.remove(getId(nums[i - k], width));\n }\n return false;\n }", "@Override\n public boolean equals(Object other) {\n if (!(other instanceof BigNumber)) return false;\n BigNumber that = (BigNumber) other;\n if (this.isNaN()) return that.isNaN();\n if (that.isNaN()) return this.isNaN();\n if (this.isZero()) return that.isZero();\n if (that.isZero()) return this.isZero();\n if (this.sign != that.sign) return false;\n if (this.isInfinite()) return that.isInfinite();\n if (that.isInfinite()) return this.isInfinite();\n \n // adjust exponent before comparing mantissa\n int emin = Math.min(this.exponent, that.exponent);\n int dThis = this.exponent - emin;\n int dThat = that.exponent - emin;\n \n for (int i=0; i<Math.max(this.mantissa.length+dThis, that.mantissa.length+dThat); i++) {\n if (this.getMantissaBit(i-dThis) != that.getMantissaBit(i-dThat)) return false;\n }\n return true;\n }", "public boolean isRange(int low, int high, int threshold)\n\t{\n\t\tint num = 0;\n\n\t\tfor (int i = low; i < high + 1; i++)\n\t\t{\n\t\t\tif (isOnset(i))\n\t\t\t{\n\t\t\t\tnum++;\n\t\t\t}\n\t\t}\n\n\t\treturn num >= threshold;\n\t}", "public boolean isSubset() {\n return isSubset;\n }", "public boolean isSubset() {\n return isSubset;\n }", "static boolean equalSumPartition(int[] arr){\n int sum = 0;\n for (int i = 0;i<arr.length;i++){\n sum+=arr[i];\n }\n if (sum%2==0){\n return subSetSumProblem(arr,sum/2);\n }\n return false;\n }", "public boolean containsSupersetOf(Itemset itemset) {\n\t\t// calculate hashcode of the given itemset\n\t\tint hashcode = hashCode(itemset);\n\t\tif(table[hashcode] == null){\n\t\t\treturn false;\n\t\t}\n\t\t// loop through all itemsets to check if there is a superset\n\t\tfor(Object object : table[hashcode]){\n\t\t\tItemset itemset2 = (Itemset)object;\n\t\t\t// if there is, return true\n\t\t\tif(itemset2.getItems().contains(itemset.getItems())){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t// otherwise return false\n\t\treturn false;\n\t}", "public boolean checkSubGrids(int[][] solutiongrid){ \n //Number of subgrids\n final int numgrids = solutiongrid.length;\n final int squareroot = (int)Math.sqrt(numgrids);\n \n for (int i = 0; i < solutiongrid.length; i += squareroot){ \n for (int j = 0; j < solutiongrid[i].length; j += squareroot){\n // creating N subgrids \n int[][] newArray = new int[squareroot][squareroot];\n int newRow = 0;\n for (int k = i; k < (i + squareroot); k++){\n int newColumn = 0;\n for (int l = j; l < (j + squareroot); l++){ \n newArray[newRow][newColumn] = solutiongrid[k][l];\n newColumn++; \n }\n newRow++;\n }\n if(!containsDuplicate(newArray))\n return true;\n }\n }\n \n return false;\n }", "Boolean superset(MultiSet<X> s);", "static boolean multiset_contains(Map m, Object o) {\n if (m == null) return false;\n for (Iterator i = m.values().iterator(); i.hasNext(); ) {\n Object p = i.next();\n if (p == o) return true;\n if (p instanceof Collection)\n if (((Collection) p).contains(o)) return true;\n }\n return false;\n }", "public static boolean isEqualSet(Collection set1, Collection set2) {\n/* 99 */ if (set1 == set2) {\n/* 100 */ return true;\n/* */ }\n/* 102 */ if (set1 == null || set2 == null || set1.size() != set2.size()) {\n/* 103 */ return false;\n/* */ }\n/* */ \n/* 106 */ return set1.containsAll(set2);\n/* */ }", "@Override\n public VectorEquality compareTo(PredicateVector vectorCmp) {\n try {\n PredicateVector vectorLarge;\n PredicateVector vectorSmall;\n VectorEquality cmpResult;\n \n if (flagged || vectorCmp.flagged) {\n return VectorEquality.UNIQUE;\n }\n \n // TODO: add size check\n \n if (this.size() > vectorCmp.size() && !this.values().iterator().next().isEmpty()) {\n vectorLarge = this;\n vectorSmall = vectorCmp;\n cmpResult = VectorEquality.SUPERSET;\n } else {\n vectorLarge = vectorCmp;\n vectorSmall = this;\n cmpResult = VectorEquality.SUBSET;\n }\n \n int largeVectorIter = 0;\n int numEq = 0;\n \n List<Integer> vectorSmallKeys = new ArrayList<Integer>(vectorSmall.keySet());\n Collections.sort(vectorSmallKeys);\n \n List<Integer> vectorLargeKeys = new ArrayList<Integer>(vectorLarge.keySet());\n Collections.sort(vectorLargeKeys);\n\n int i = 0;\n\n for (Integer smallVectorKey: vectorSmallKeys) {\n StateVector smallVectorState = vectorSmall.get(smallVectorKey);\n // Check if we have not iterated over all large vector states\n if (largeVectorIter >= vectorLargeKeys.size() && !smallVectorState.isEmpty()) {\n cmpResult = VectorEquality.UNIQUE;\n break;\n }\n \n \n for (i = largeVectorIter; i < vectorLargeKeys.size(); i++) {\n StateVector largeVectorState = vectorLarge.get(vectorLargeKeys.get(i));\n VectorEquality cmpVectorResult = smallVectorState.compareTo(largeVectorState); \n if (cmpVectorResult == VectorEquality.EQUAL) {\n numEq += 1;\n break;\n }\n \n if (cmpVectorResult == VectorEquality.SUPERSET || cmpVectorResult == VectorEquality.SUBSET) {\n cmpResult = cmpVectorResult;\n numEq += 1;\n break;\n }\n }\n \n largeVectorIter = i + 1; // TODO: double check i+1\n }\n \n if (numEq < vectorSmall.size() && !vectorSmall.values().iterator().next().isEmpty())\n cmpResult = VectorEquality.UNIQUE;\n \n return cmpResult;\n } catch (ArrayIndexOutOfBoundsException e) {\n e.printStackTrace();\n }\n \n return VectorEquality.UNIQUE;\n }", "public boolean containsNearbyDuplicate2(int[] nums, int k) {\n\n int max = Integer.MIN_VALUE;\n for (int i = 0; i < nums.length; i++) {\n max=Math.max(max,nums[i]);\n }\n Integer[] map = new Integer[max+1];\n for (int i = 0; i < nums.length; i++) {\n Integer c = map[nums[i]];\n if(c!=null && i-c<=k){\n return true;\n }else {\n map[nums[i]]=i;\n }\n }\n return false;\n }", "private static boolean binarySearch(int[] data, int target, int low, int high) {\n if (low > high) {\n return false;\n } else {\n int mid = (low + high) / 2;\n if (target == data[mid]) {\n return true;\n } else if (target < data[mid]) {\n return binarySearch(data, target, low, mid - 1);\n } else {\n return binarySearch(data, target, mid + 1, high);\n }\n }\n }", "public boolean containsNearbyAlmostDuplicate(int[] nums, int k, int t) {\n if (t < 0) return false;\n long sz = (long)t + 1;\n Map<Long, Long> map = new HashMap<>();\n for (int i = 0; i < nums.length; ++i) {\n long bucket = getBucket(nums[i], sz);\n if (map.containsKey(bucket)) return true;\n if (map.containsKey(bucket + 1) && Math.abs(nums[i] - map.get(bucket + 1)) < sz) return true;\n if (map.containsKey(bucket - 1) && Math.abs(nums[i] - map.get(bucket - 1)) < sz) return true;\n map.put(bucket, (long)nums[i]);\n if (i >= k) map.remove(getBucket(nums[i - k], sz));\n }\n return false;\n}", "private void unionSmallLarge(int small, int large) {\n unionStart = System.currentTimeMillis();\n\n log.debug(\" --- union smallID=\" + small + \", largeID=\" + large);\n\n int moveCount = 0;\n for (int i = 0; i < vertexUnionLeaders.length; i++) {\n if (vertexUnionLeaders[i] == small) {\n\n\n log.debug(\" changing \" + i + \" from old smallID=\" + small + \" to new largeD=\" + large);\n vertexUnionLeaders[i] = large;\n moveCount++;\n }\n }\n\n // update the large group member count\n ClusterGroup lGroup = clusterGroupMap.get(large);\n if (lGroup == null) {\n lGroup = new ClusterGroup(large, 1);\n clusterGroupMap.put(large, lGroup);\n log.debug(\" created new ClusterGroup for largeID=\" + large + \", size=1\");\n }\n int lSize = lGroup.groupSize;\n log.debug(\" old group size=\" + lSize + \", about to add smallID size=\" + moveCount);\n lSize += moveCount;\n lGroup.groupSize = lSize;\n log.debug(\" groupID=\" + lGroup.groupID + \" size=\" + lSize);\n\n // now remove the small group from the map\n clusterGroupMap.remove(small);\n unionEnd = System.currentTimeMillis();\n }", "public boolean containsNearbyAlmostDuplicate(int[] nums, int k, int t) {\n\t\tif (k<1 || t<0) return false;\n Map<Long, Long> map = new HashMap<Long, Long>();\n for (int i=0;i<nums.length;i++) {\n \tif (i>k) {\n \t\tlong tmp = (long)nums[i-k-1]-Integer.MIN_VALUE;\n \t\ttmp /= (long)t+1;\n \t\tmap.remove(tmp);\n \t}\n \tlong val = (long)nums[i]-Integer.MIN_VALUE;\n \tlong bucket = val/((long)t+1);\n \tSystem.out.println(\"val=\"+val+\",bucket=\"+bucket);\n \tSystem.out.println(\"same bucket:\"+map.containsKey(bucket));\n \tif (map.containsKey(bucket) || (map.containsKey(bucket-1) && val-map.get(bucket-1)<=t) \n \t\t\t|| (map.containsKey(bucket+1) && map.get(bucket+1)-val<=t)) {\n \t\treturn true;\n \t}\n \tmap.put(bucket, val);\n }\n return false;\n }", "public boolean equals(SetSet second){\n\t\tif(subset(second) && second.subset(this)){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n\n // Not SetI?\n if (!(o instanceof SetI s)) {\n return false;\n }\n\n Iterator<Integer> anotherIter = s.iterator();\n\n for (Integer e : this) {\n if (!anotherIter.hasNext()) {\n // Not in same length.\n return false;\n }\n if (!e.equals(anotherIter.next())) {\n return false;\n }\n }\n\n // Not in same length?\n return !anotherIter.hasNext();\n }", "public boolean linearIn(int[] outer, int[] inner) {\r\n int comp=0; // O(1)\r\n int count=0; // O(1)\r\n if(inner.length==0) // O(1)\r\n return true; // O(1)\r\n for(int i=0; i<outer.length; i++) { // O(n)\r\n if(outer[i]==inner[count]) { // O(1)\r\n comp++; // O(1)\r\n count++; // O(1)\r\n } else if(outer[i]>inner[count]) // O(1)\r\n return false; // O(1)\r\n if (comp==inner.length) // O(1)\r\n return true; // O(1)\r\n }\r\n return false; // O(1)\r\n}", "public boolean isFull(int i, int j){\n\t\t\n\t\tif (i <= 0 || i > N) throw new java.lang.IndexOutOfBoundsException(\"row index i out of bounds\");\n\t\tif (j <= 0 || j > N) throw new java.lang.IndexOutOfBoundsException(\"row index j out of bounds\");\n\t\t\n\t\tif(isPathological)\n\t\t\treturn isOpen(i, j);\n\t\t\n\t\treturn (quickUnion.find((i-1)*N+j) == quickUnion.find(0) && (quickUnionBackwash.find((i-1)*N+j) == quickUnionBackwash.find(0))); \t\n\t}", "@Override\n\tpublic boolean canfitLarge() {\n\t\treturn true;\n\t}", "boolean hasContains();", "@Test\n public void testIntersection5()\n {\n final int[] ints1 = {33, 100000};\n final int[] ints2 = {34, 200000};\n List<Integer> expected = new ArrayList<>();\n\n ConciseSet set1 = new ConciseSet();\n for (int i : ints1) {\n set1.add(i);\n }\n ConciseSet set2 = new ConciseSet();\n for (int i : ints2) {\n set2.add(i);\n }\n\n verifyIntersection(expected, set1, set2);\n }", "public List<Integer> largestDivisibleSubsetA(int[] nums) {\r\n List<Integer> lstSubset = new ArrayList<>();\r\n if (nums == null || nums.length == 0) return lstSubset;\r\n if (nums.length == 1) {\r\n lstSubset.add(nums[0]);\r\n return lstSubset;\r\n }\r\n \r\n int n = nums.length;\r\n int i;\r\n int nMaxLen = 0;\r\n int baseNum = 0;\r\n int facted = 0;\r\n int newNum = 0;\r\n boolean bExist = false;\r\n Set<Integer> setNum = new HashSet<Integer>();\r\n \r\n Arrays.sort(nums);\r\n \r\n for (i=0; i<n; i++) setNum.add(nums[i]);\r\n \r\n for (i=0; i<n-1; i++) {\r\n List<Integer> lstSubTmp = new ArrayList<Integer>();\r\n baseNum = nums[i];\r\n \r\n lstSubTmp.add(baseNum);\r\n bExist = false;\r\n facted = 2; \r\n newNum = baseNum*facted;\r\n \r\n while (newNum <= nums[n-1]) {\r\n if (setNum.contains(newNum)) {\r\n lstSubTmp.add(newNum);\r\n baseNum = newNum;\r\n bExist = true;\r\n } else {\r\n bExist = false;\r\n }\r\n \r\n if (bExist == true) {\r\n facted = 2;\r\n } else {\r\n facted++;\r\n }\r\n \r\n newNum = baseNum*facted;\r\n }\r\n \r\n if (nMaxLen < lstSubTmp.size()) {\r\n nMaxLen = Math.max(nMaxLen, lstSubTmp.size());\r\n lstSubset = new ArrayList<Integer>(lstSubTmp);\r\n }\r\n }\r\n \r\n return lstSubset;\r\n }", "public boolean containsNearbyAlmostDuplicate(int[] nums, int k, int t) {\n for(int i=0;i<nums.length;i++){\n if(i>k){\n //remove nums[i-k-1] in our list\n root=delete(root,nums[i-k-1]);\n }\n //after remove, we can begin determine process and update in the flag\n root = insert(root,nums[i],t);\n if(flag) return true;\n }\n return false;\n }", "public static boolean matchPartiallyFilled(int[] one, int size, int capacity)\r\n {\r\n boolean match = true;\r\n int i;\r\n for(i = 0; i<size && match; i++)\r\n {\r\n if(i!=one[i]) match = false;\r\n }\r\n for(int j = i; j<capacity && match; j++)\r\n {\r\n if(one[j]!=0) match = false;\r\n }\r\n \r\n return match;\r\n }", "public boolean containsNearbyDuplicate2(int[] nums, int k) {\n if (nums == null || nums.length == 0)\n return false;\n\n Map<Integer, Integer> numByIndex = new HashMap<>();\n for(int i = 0; i< nums.length; i++){\n if(numByIndex.containsKey(nums[i])){\n final Integer pos1 = numByIndex.get(nums[i]);\n if (Math.abs(pos1-i)<=k) {\n return true;\n }\n }\n numByIndex.put(nums[i], i);\n }\n return false;\n\n }", "@Test\n\tpublic void test() {\n\t\tList<Integer[]> result = subGen.subset(9);\n\t\tassertEquals(10, result.size());\n\t\tInteger[] temp = { 0, 1, 2, 3, 4, 5, 6, 7, 8 };\n\t\tassertEquals(Arrays.toString(temp), Arrays.toString(result.get(0)));\n\n\t\tSet<Integer[]> testSet = new HashSet<Integer[]>();\n\t\tfor (int i = 0, len = result.size(); i < len; i++) {\n\t\t\ttestSet.add(result.get(i));\n\t\t}\n\t\tassertEquals(10, testSet.size());\n\n\t\tList<Integer[]> result2 = subGen.subset(3);\n\t\tassertEquals(120, result2.size());\n\n\t}", "public boolean containsAll(ISet<E> otherSet) {\n \tif(otherSet == null) {\n \t\tthrow new IllegalArgumentException(\"Invalid parameter!\");\n \t}\n \t\n \tIterator<E> otherIterateSet = otherSet.iterator();\n \t\n \twhile(otherIterateSet.hasNext()) {\n \t\tE item1 = otherIterateSet.next();\n \t\tboolean foundMatch = false;\n \t\t\n \t\t// searches this set for target element\n \t\tif(this.contains(item1)) {\n \t\t\tfoundMatch = true;\n \t\t}\n \t\t\n \t\t// if the current element was not found at all\n \t\tif(foundMatch == false)\n \t\t\treturn false;\n \t}\n \treturn true;\n }", "public boolean containsAll(ISet<E> otherSet) {\n\t\tif (otherSet == null)\n\t\t\tthrow new IllegalArgumentException(\"The given set it null.\");\n\t\tfor (E obj: otherSet) {\n\t\t\tif (!this.contains(obj))\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public static <E> boolean intersects(Set<E> a, Set<E> b) {\n if (!(a.size() < b.size())) {\n // The documentation for Sets.intersection() suggests that it's best that the first set be smaller.\n // Hopefully they actually tested that! :D\n // (Could just use that. But, uh, this code is already written...)\n Set<E> c = a;\n a = b;\n b = c;\n }\n for (E e : a) {\n if (b.contains(e)) return true;\n }\n return false;\n }", "public boolean containsNearbyDuplicate(int[] nums, int k) {\n if (nums.length == 0) {\n return false;\n }\n HashMap<Integer, Integer> map = new HashMap<>();\n for (int i = 0; i < nums.length; i++) {\n Integer index = map.get(nums[i]);\n if (index != null && i - index <= k) {\n return true;\n } else {\n map.put(nums[i], i);\n }\n }\n\n return false;\n }", "public boolean containsDuplicate(int[] nums) {\n if (nums == null || nums.length <= 1) {\n return false;\n }\n TreeSet<Integer> set = new TreeSet<>();\n for (int num : nums) {\n if (set.contains(num)) {\n return true;\n } else {\n set.add(num);\n }\n }\n return false;\n }", "static boolean isSubsetSum(int set[], int n, int sum)\n\t {\n\t // The value of subset[i][j] will be true if there \n\t // is a subset of set[0..j-1] with sum equal to i\n\t boolean subset[][] = new boolean[n+1][sum+1];\n\t \n\t \n\t for(int i=1;i<=sum;i++)\n\t \tsubset[0][i]=false;\n\t \n\t for(int i=0;i<=n;i++)\n\t \tsubset[i][0]=true;\n\t \n\t \n\t\n\t for(int i=1;i<=n;i++) {\n\t \tfor(int j=1;j<=sum;j++) {\n\t \t\t\n\t \t\tsubset[i][j]=subset[i-1][j];\n\t \t\tif(subset[i][j] ==false && j>=set[i-1])\n\t \t\t\tsubset[i][j]=subset[i][j] || subset[i-1][j-set[i-1]];\n\t \t\t\n\t \t}\n\t }\n\t \t\n\t \t\n\t return subset[n][sum];\n\t }", "public boolean isProperSubset(/*@ non_null @*/ JMLObjectSet<E> s2) {\n return size < s2.int_size() && isSubset(s2);\n }", "public Boolean haveGolden(int[] numbers, int goldenNo){\n\n Set<Integer> setOfNumbers = new HashSet<Integer>();\n\n for (int number:numbers) {\n if (setOfNumbers.contains(goldenNo-number)) //we are assuming goldenNo is > all no\n return true;\n setOfNumbers.add(number);\n }\n return false;\n }", "private boolean allVolumeSizesMatch(List<Long> currentVolumeSizes) {\n // If the storage systems match then check all current sizes of the volumes too, any mismatch\n // will lead to a calculation check\n List<Long> currentVolumeSizesCopy = new ArrayList<Long>();\n currentVolumeSizesCopy.addAll(currentVolumeSizes);\n for (Long currentSize : currentVolumeSizes) {\n for (Long compareSize : currentVolumeSizesCopy) {\n if (currentSize.longValue() != compareSize.longValue()) {\n return false;\n }\n }\n }\n\n _log.info(\"All volumes are of the same size. No need for capacity calculations.\");\n return true;\n }", "@Test\n\tpublic void testContains() {\n\t\tHeap heap = new Heap(testArrayList.length);\n\t\theap.build(testArrayList);\n\t\tassertTrue(heap.contains(33));\n\t\tassertFalse(heap.contains(1));\n\t}", "private boolean containsDuplicate(final int[] inputarray){\n Set<Integer> cells = new HashSet<Integer>();\n for (int i : inputarray){\n if (cells.contains(i) || (i < 1 || i > inputarray.length)) return true;\n cells.add(i);\n }\n return false;\n }", "public static boolean compare_data(short[] x, short[] y) {\n\t\tfor (int i = 0;i < dims;i++) {\n\t\t\tif (i != dims-1){ //compare w.r.t. all except SA!!!\n\t\t\t\tif (x[dimension[i]] > y[dimension[i]]) {\n\t\t\t\t\t/*if (map[x][dimension[0]]<map[y][dimension[0]])\n\t\t\t\t\t System.out.println(\"oops\");*/\n\t\t\t\t\treturn true;\n\t\t\t\t} else if (x[dimension[i]] < y[dimension[i]]) {\n\t\t\t\t\t/*if (map[x][dimension[0]]>map[y][dimension[0]])\n\t\t\t\t\t System.out.println(\"oops\");*/\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t/*if (map[x][dimension[0]]>map[y][dimension[0]])\n\t\t\tSystem.out.println(\"oops\");*/\n\t\treturn false;\n\t}", "public static boolean isByteArraySame(byte[] sampleBin, byte[] bigBin, int start) {\n if (sampleBin == null || bigBin == null) {\n return false;\n }\n if (sampleBin.length == 0 || bigBin.length == 0) {\n return false;\n }\n if (start < 0) {\n return false;\n }\n if (start + sampleBin.length > bigBin.length) {\n return false;\n }\n\n boolean same = true;\n for (int i = 0; i < sampleBin.length; i++) {\n if (sampleBin[i] != bigBin[start + i]) {\n same = false;\n }\n }\n\n return same;\n }", "@Test\n public void testIntersection2()\n {\n final int[] ints1 = {33, 100000};\n final int[] ints2 = {34, 100000};\n List<Integer> expected = Collections.singletonList(100000);\n\n ConciseSet set1 = new ConciseSet();\n for (int i : ints1) {\n set1.add(i);\n }\n ConciseSet set2 = new ConciseSet();\n for (int i : ints2) {\n set2.add(i);\n }\n\n verifyIntersection(expected, set1, set2);\n }", "public boolean isBigCollection() {\n return (getPersistable().getManagedResources().size()) > BIG_COLLECTION_CHILDREN_COUNT;\n }", "public boolean checkSubarraySum(int[] nums, int k){\n\t\tif(nums == null || nums.length == 0)\n\t\t\treturn false;\n\t\tint sum = 0;\n\t\tHashMap<Integer, Integer> map = new HashMap<>();\n\t\tmap.put(0,-1);\n\t\tfor( int i = 0; i<nums.length; i++){\n\t\t\tsum+=nums[i];\n\t\t\tif(k!=0)\n\t\t\t\tsum = sum % k;\n\t\t\tif(map.containsKey(sum)){\n\t\t\t\tif(i - map.get(sum) > 1)\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tmap.put(sum,i);\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public static boolean isSubset(Vector v1, Vector v2) {\n\t\tif (v1 == null || v2 == null || v1.equals(v2) || v1.size() >= v2.size()) {\n\t\t\treturn false;\n\t\t}\n\t\tfor (Object o1 : v1) {\n\t\t\tif (!v2.contains(o1)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n int n = scn.nextInt();\n long[] num = new long[n];\n for (int i = 0; i < n; i++) {\n num[i] = scn.nextLong();\n }\n int m = n;\n long[] arr = new long[m];\n for (int i = 0; i < m; i++) {\n arr[i] = scn.nextLong();\n }\n boolean x = isTwoArrayEqual(num, arr);\n System.out.println(x);\n }", "@Test\n public void testContainsAll_Contains_Overflow() {\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(3);\n instance.add(2);\n instance.add(1);\n instance.add(4);\n instance.add(5);\n instance.add(4);\n instance.add(7);\n\n Collection c = Arrays.asList(3, 4, 5, 7);\n\n boolean expResult = true;\n boolean result = instance.containsAll(c);\n assertEquals(expResult, result);\n }", "public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n System.out.println(\"enter the size of inner array\");\n int[] outer = new int[scan.nextInt()];\n int[] inner = new int[scan.nextInt()];\n System.out.println(\"enter the index of outer array\");\n\n for(int j = 0; j < outer.length; j++) {\n outer[j] = scan.nextInt();\n }\n System.out.println(\"enter the index of inner array\");\n\n for(int i = 0; i < inner.length; i++) {\n inner[i] = scan.nextInt();\n }\n // Arrays.sort(inner);\n // Arrays.sort(outer);\n\n //Examples:\n //\n //input (outer): 1, 2, 4, 6\n //input (inner): 2, 4\n //\n //output: true\n //copied!\n //input (outer): 1, 2, 4, 6\n //input (inner): 2, 4\n //\n //output: true\n //input (outer): 1, 2, 4\n //input (inner): 6, 5\n //\n //output: false\n\n int count = 0;\n\n for(int outerNum : inner){\n for (int innerNum : outer) {\n if (innerNum == outerNum ){\n count++;\n break;\n }\n }\n }\n if (count == inner.length){\n System.out.println(true);\n }else {\n System.out.println(false);\n }\n// for (int i = 0; i < inner.length; i++) {\n// // i =0 to i = length -1\n// if (Arrays.binarySearch(outer, inner[i]) < 0){\n// System.out.println(false);\n// return;\n// // // we are in the last round loop\n// // }else if (i == inner.length-1) {\n// // System.out.println(true);\n// //\n// }\n\n// }\n// System.out.println(true);\n\n\n\n\n }", "public static boolean[] setPrimes(Set<Integer> numberSet) {\n int max = 0;\n for (int num : numberSet) {\n if (num > max) max = num;\n }\n\n // set primeMap by 'Sieve of of Eratosthenes' algorithm\n boolean[] primeMap = new boolean[max + 1];\n for (int i = 2; i <= max; i++) {\n primeMap[i] = true;\n }\n\n for (int i = 2; i <= Math.sqrt(max); i++) {\n if (primeMap[i] == false) {\n continue;\n }\n for (int k = i + i; k <= max; k += i) {\n primeMap[k] = false;\n }\n }\n\n return primeMap;\n }", "public boolean containsNearbyAlmostDuplicate1(int[] nums, int k, int t) {\n if (nums.length < 2 || k <= 0 || t < 0) {\n return false;\n }\n Map<Long, Long> map = new HashMap<>();\n long w = t + 1;\n for (int i = 0; i < nums.length; i++) {\n long m = convert((long) nums[i], w);\n if (map.containsKey(m)) {\n return true;\n }\n if (map.containsKey(m - 1) && Math.abs((long) nums[i] - map.get(m - 1)) <= t) {\n return true;\n }\n if (map.containsKey(m + 1) && Math.abs((long) nums[i] - map.get(m + 1)) <= t) {\n return true;\n }\n map.put(m, (long) nums[i]);\n if (i >= k) {\n map.remove(convert((long) nums[i - k], w));\n }\n }\n return false;\n }", "public static boolean hasAllValues(int[] arr1, int[] arr2) {\n for (int num : arr1) {\n boolean contains = false;\n for (int i = 0; i < arr2.length; i++) {\n if (num == arr2[i]) {\n contains = true;\n }\n }\n if (!contains) {\n return false;\n }\n }\n return true;\n }", "public boolean containsDuplicate(int[] nums) {\n if (nums == null || nums.length == 0)\n return false;\n Set<Integer> distinctElems = new HashSet<>();\n for (int val : nums) {\n if (!distinctElems.add(val)) {\n return true;\n }\n }\n return false;\n }", "Boolean same(MultiSet<X> s);", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\tint a[] = {2,1,3,-4,-2};\n\t\t//int a[] = {1 ,2, 3, 7, 5};\n\t\tboolean found = false;\n\t\t\n\t\t//this will solve in o n^2\n\t\tfor(int i = 0 ; i < a.length ; i++){\n\t\t\tint sum = 0;\n\t\t\tfor(int j = i ; j< a.length ; j++){\n\t\t\t\tsum += a[j] ;\n\t\t\t\tif(sum == 0){\n\t\t\t\t\tfound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tif(found)\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\t\n\t\t// link : https://www.youtube.com/watch?v=PSpuM9cimxA&list=PLKKfKV1b9e8ps6dD3QA5KFfHdiWj9cB1s&index=49\n\t\tSystem.out.println(found + \" found\");\n\t\tfound = false;\n\t\t//solving with O of N with the help sets\n\t\t// x + 0 = y\n\t\tSet<Integer> set = new HashSet<>();\n\t\tint sum = 0;\n\t\tfor(int element : a){\n\t\t\tset.add(sum);\n\t\t\tsum += element;\n\t\t\tif(set.contains(sum)){\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(set);\n\t\t\n\t\tSystem.out.println(found + \" found\");\n\t\t\n\t\t\n\t\tfound = false;\n\t\t// when the sum of subarray is K\n\t\t\n\t\t//solving with O of N with the help sets\n\t\t//x + k = y >>>\n\t\tSet<Integer> set1 = new HashSet<>();\n\t\tint k = 12;\n\t\tint summ = 0;\n\t\tfor(int element : a){\n\t\t\tset1.add(summ);\n\t\t\tsumm += element;\n\t\t\tif(set1.contains(summ - k)){ // y - k = x(alredy presnt or not)\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(set1);\n\t\tSystem.out.println();\n\t\tSystem.out.println(found + \" found\");\n\t\t\n\t\t\n\t}", "public static void findIntersection(int[] ip1, int[] ip2) {\n int[] smaller, bigger;\n if (ip1.length <= ip2.length) {\n smaller = ip1;\n bigger = ip2;\n } else {\n smaller = ip2;\n bigger = ip1;\n }\n\n\n //O(n)\n for (int i = 0; i < smaller.length; ) {\n for (int j = 0; j < bigger.length; ) {\n\n if (smaller[i] == bigger[j]) {\n System.out.print(smaller[i]+\" \");\n i++;\n j++;\n } else if (smaller[i] < bigger[j]) {\n i++;\n } else {\n j++;\n }\n\n\n }\n }\n\n\n }", "public static void main (String args[])\n\t {\n\t int set[] = {3, 34, 4, 12, 5, 2};\n\t int sum = 9;\n\t int n = set.length;\n\t if (isSubsetSum(set, n, sum) == true)\n\t System.out.println(\"Found a subset with given sum\");\n\t else\n\t System.out.println(\"No subset with given sum\");\n\t }", "public static boolean isIn(int x, int[] j) {\n for (int k : j) {\n if (k == x) {\n return true;\n }\n }\n return false;\n }" ]
[ "0.5883931", "0.5776572", "0.5719023", "0.5618886", "0.561291", "0.56016046", "0.5505217", "0.54892445", "0.53682756", "0.53659415", "0.53482586", "0.530282", "0.52967536", "0.52958006", "0.52689534", "0.5241319", "0.5221789", "0.5213989", "0.51890045", "0.51856047", "0.5182731", "0.51738596", "0.5161029", "0.51559126", "0.5151778", "0.51207995", "0.509418", "0.50903547", "0.50881433", "0.50845855", "0.5069404", "0.5063295", "0.50479686", "0.5045663", "0.50151867", "0.5005842", "0.50004387", "0.49843127", "0.49654394", "0.4962814", "0.49579877", "0.4948248", "0.49445873", "0.49390292", "0.49374825", "0.4936162", "0.4936162", "0.49271542", "0.4915602", "0.49031347", "0.49005464", "0.4891575", "0.48911503", "0.48910215", "0.48886946", "0.48856726", "0.48845118", "0.48826283", "0.48819333", "0.48775014", "0.48507294", "0.48486692", "0.48318365", "0.4828636", "0.482275", "0.48022112", "0.47959626", "0.47959265", "0.47885716", "0.47867262", "0.47717163", "0.4771253", "0.47668335", "0.47659793", "0.47629857", "0.47569826", "0.47569183", "0.47564447", "0.47506097", "0.47478998", "0.47453502", "0.4745137", "0.4740689", "0.4729797", "0.47274306", "0.47269204", "0.47254732", "0.47225246", "0.47224632", "0.47175986", "0.47159764", "0.4711272", "0.4702959", "0.46989873", "0.46844175", "0.46826556", "0.46753484", "0.4666927", "0.4663375", "0.466099" ]
0.8387249
0
Return true if the two numbers in pair have an opposite pair in the array. (1,2) (2,1) for example / Analysis: This method can be solved in n^2 time where n is the length of the array. This is done by comparing every pair to every other pair in the array and looking for an opposite. Complete this method with a Hash in O(n) time.
public static boolean opposites(Pair[] data){ HashSet<Pair> hs = new HashSet<>(20, 0.9f); for(Pair p : data) { if(hs.contains(new Pair(p.b(), p.a()))) return true; hs.add(p); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean twoPair(int[] numArr) {\n\t\tfor (int i = 1; i < numArr.length-2; i++) {\n\t\t\tif (numArr[i-1]==numArr[i]&&numArr[i]==numArr[i+1]){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean isTwoPair(){\r\n int temp[] = getIntArr();\r\n\r\n if(temp[0] == temp[1] && temp[2] == temp[3])\r\n return true;\r\n\r\n else if(temp[0] == temp[1] && temp[3] == temp[4])\r\n return true;\r\n\r\n else if(temp[1] == temp[2] && temp[3] == temp[4])\r\n return true;\r\n\r\n else return false;\r\n }", "boolean isTwoPair();", "public static boolean hasTwoPair(Card[] cards) {\n\t\tint counter = 0;\n\t\tint value = 0;\n\t\tfor(int i = 0; i< cards.length; i++){\n\t\t\tfor(int j = i+1; j< cards.length; j++){\n\t\t\t\tif(cards[i].getValue() == cards[j].getValue() \n\t\t\t\t\t\t&& value !=cards[j].getValue()){\n\t\t\t\t\tcounter++;\n\t\t\t\t\tvalue = cards[j].getValue();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(counter>=2){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isTwoPair() {\n int numbersSame = 0;\n int pairs = 0;\n for (int i = 0; i < dice.length && numbersSame < 3; i++) {\n numbersSame = 0;\n for (int x = 0; x < dice.length; x++) {\n if (dice[i].getFaceValue() == dice[x].getFaceValue()) {\n numbersSame++;\n }\n }\n if (numbersSame == 2) {\n pairs++;\n }\n }\n return (pairs == 4);\n }", "protected boolean checkTwoPairs(ReturnValue returnValueTwoPairs, ReturnValue returnValueOnePair) {\n\t\tboolean returnBool = false;\n\n\t\tif (returnValueOnePair.getIsPossible()) {\n\t\t\tint localCheck = 0;\n\t\t\tint localPoints = 0;\n\t\t\tboolean localBool = false;\n\n\t\t\tfor (int i = 0; i < 5; i++) {\n\t\t\t\tfor (int j = 0; j < 5; j++) {\n\t\t\t\t\tif (intList.get(i) == intList.get(j) && intList.get(i) != returnValueOnePair.getTheDiceInt()) {\n\t\t\t\t\t\tlocalCheck++;\n\t\t\t\t\t\tif (localCheck == 2) {\n\t\t\t\t\t\t\tlocalBool = true;\n\t\t\t\t\t\t\tif (localPoints < intList.get(i) * 2) {\n\t\t\t\t\t\t\t\tlocalPoints = intList.get(i) * 2;\n\t\t\t\t\t\t\t\tlocalPoints += returnValueOnePair.getPoints();\n\t\t\t\t\t\t\t\treturnValueTwoPairs.setValue(localBool, localPoints, Box.TWO_PAIRS);\n\t\t\t\t\t\t\t\treturnBool = true;\n\t\t\t\t\t\t\t\treturn returnBool;\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\tlocalCheck = 0;\n\t\t\t}\n\t\t\treturnValueTwoPairs.setValue(localBool, localPoints, Box.TWO_PAIRS);\n\t\t}\n\t\treturn returnBool;\n\t}", "boolean hasXYPairs();", "public int numIdenticalPairs(int[] nums) {\n int count = 0;\n for (int i = 0; i < nums.length; i++) {\n for (int j = i + 1; j < nums.length; j++) {\n if (nums[i] == nums[j]) {\n count++;\n }\n }\n }\n return count;\n }", "public boolean hasTwoPair(Hand handToCheck){\n\t\tHand hand = new FiveCardHand(handToCheck); //Make copy of the object so original doesn't get modified\n\t\tHand firstPair = getPair(hand);\n\t\tif(firstPair == null){\n\t\t\treturn false;\n\t\t}\n\t\tlog.debug(\"First Pair = \"+firstPair);\n\t\thand.removeHand(firstPair);\n\t\tHand secondPair = getPair(hand);\n\t\tif(secondPair == null){\n\t\t\treturn false;\n\t\t}\n\t\tlog.debug(\"Second Pair = \"+secondPair);\n\n\t\tlog.debug(\"returning true\");\n\t\treturn true;\n\t}", "public boolean hasTwoP(ArrayList<Card> cards) {\r\n\t\tCollections.sort(cards);\r\n\t\tboolean retVal = false;\r\n\t\tint numPairs = 0;\r\n\t\tint counter;// counts how many of those cards are in the hand\r\n\t\tint pairVal = 0;\r\n\t\tfor (int i = 0; i <cards.size()-1; i++) {\r\n\t\t\tcounter = 1;\r\n\t\t\tfor (int j = i+1; j < cards.size(); j++) {\r\n\t\t\t\tif(cards.get(i).getValue() == cards.get(j).getValue() &&\r\n\t\t\t\t\t\tcards.get(i).getValue() != pairVal){\r\n\t\t\t\t\tcounter++;\r\n\t\t\t\t\tpairVal = cards.get(j).getValue();\r\n\t\t\t\t\tif(counter > 1) {\r\n\t\t\t\t\t\tnumPairs++;\r\n\t\t\t\t\t\tif (numPairs == 2) {\r\n\t\t\t\t\t\t\tretVal = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn retVal;\r\n\t}", "public boolean hasTwoPairs() {\n\t\t\n\t\tboolean paired = false;\n\t\t\n\t\tif (firstDigit == secondDigit && thirdDigit == forthDigit) {paired = true;}\n\t\telse if (firstDigit == thirdDigit && secondDigit == forthDigit) {paired = true;}\n\t\telse if (firstDigit == forthDigit && secondDigit == thirdDigit) {paired = true;}\n\t\t\n\t\treturn paired;\n\t}", "public boolean hasAdjacentEqualPair()\n { \n \tfor( int i = 0; i < purchases.size()-1; i++ )\n \t{\n \t\tGizmo curr = purchases.get( i );\n \t\tGizmo nxt = purchases.get( i + 1 );\n \t\tif( curr.equals( nxt ) )\n \t\t\treturn true;\n \t}\n \treturn false; \t\n }", "public long reversePairs(int[] A) {\n // write your code here\n if(A == null || A.length < 2){\n return 0;\n }\n long p = 0L;\n\n for(int i = 0; i < A.length; i++){\n for(int j = i+1; j < A.length; j++){\n if(A[i] > A[j]){\n p++;\n }\n }\n }\n return p;\n }", "public boolean isPair() {\r\n\r\n return getHighestConsecutive() == 2;\r\n }", "public boolean isTwoPairs(){\n \r\n List<PokerCard> pair1;\r\n List<PokerCard> pair2;\r\n \r\n //First possibility: first four cards are two pairs\r\n pair1 = cards.subList(0, 2);\r\n pair2 = cards.subList(2, 4);\r\n if(haveSameValue(pair1) && haveSameValue(pair2)){\r\n handValue = pair2.get(0).getValue();\r\n lowerPairValue = pair1.get(0).getValue();\r\n remainingCardValue = cards.get(cards.size()-1).getValue();\r\n return true;\r\n }\r\n \r\n //Second possibility: First two and last two cards are pairs\r\n pair1 = cards.subList(0, 2);\r\n pair2 = cards.subList(3, 5);\r\n if(haveSameValue(pair1) && haveSameValue(pair2)){\r\n handValue = pair2.get(0).getValue();\r\n lowerPairValue = pair1.get(0).getValue();\r\n remainingCardValue = cards.get(2).getValue();\r\n return true;\r\n }\r\n \r\n //Third possibility: Last four cards are two pairs\r\n pair1 = cards.subList(1, 3);\r\n pair2 = cards.subList(3, 5);\r\n if(haveSameValue(pair1) && haveSameValue(pair2)){\r\n handValue = pair2.get(0).getValue();\r\n lowerPairValue = pair1.get(0).getValue();\r\n remainingCardValue = cards.get(0).getValue();\r\n return true;\r\n }\r\n return false;\r\n }", "public int reversePairs(int[] nums) {\n int res = 0;\n List<Integer> sorted = new ArrayList<>();\n for (int i = nums.length - 1; i >= 0; i--) {\n int target = nums[i];\n // int index = Collections.binarySearch(sorted, target);\n // if (index < 0) {\n // index = -index - 1;\n // }\n // for (; index > 0 && target == sorted.get(index - 1); index--) {}\n // res += index;\n res += find(sorted, target);\n if (target < Integer.MIN_VALUE / 2) {\n res += i;\n } else if (target <= Integer.MAX_VALUE / 2) {\n // int index = Collections.binarySearch(sorted, target * 2);\n // if (index < 0) {\n // index = -index - 1;\n // }\n int index = sorted.isEmpty() ? 0 : find(sorted, target * 2);\n sorted.add(index, target * 2);\n }\n }\n return res;\n }", "private int twoPairs() {\n\t\tint check = 0;\n\t\tint[] pairPos = new int[2];\n\t\tfor (int counter = POS_ONE; counter < Constants.HAND_SIZE; counter++) {\n\t\t\tif (hand[counter - 1].getValueIndex() == hand[counter].getValueIndex()) {\n\t\t\t\tpairPos[check] = counter;\n\t\t\t\tcheck++;\n\t\t\t}\n\t\t}\n\t\tif (check == 2) {\n\t\t\tresult.setPrimaryValuePos(hand[pairPos[1]].getValueIndex());\n\t\t\tresult.setSecondaryValuePos(hand[pairPos[0]].getValueIndex());\n\t\t\tList<Card> tertiaryValue = Arrays.stream(hand)\n\t\t\t\t\t.filter(card -> card.getValueIndex() != hand[pairPos[0]].getValueIndex())\n\t\t\t\t\t.filter(card -> card.getValueIndex() != hand[pairPos[1]].getValueIndex())\n\t\t\t\t\t.collect(Collectors.toList());\n\t\t\tresult.setTertiaryValuePos(tertiaryValue.get(0).getValueIndex());\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}", "public static boolean check_isosceles_tri(int [] side) {\n\t\treturn (side[0] == side[1])^(side[0] == side[2])^(side[1] == side[2]) && !(check_equ_tri(side)) && isTri(side);\n\t}", "static int countXorPair(int[] arr, int n)\n {\n // To store count of odd and even numbers\n int odd = 0, even = 0;\n\n for (int i = 0; i < n; i++) {\n // Increase even if number is even otherwise increase odd\n if (arr[i] % 2 == 0)\n even++;\n else\n odd++;\n }\n\n // Return number of pairs\n return odd * even;\n }", "public static boolean\ttwoTwo(int[] nums) {\n\n\t\tif (nums.length == 0) {\n\t\t\treturn true;\n\t\t}\n\t\tif (nums.length == 1) {\n\t\t\tif (nums[0] == 2) {\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\tif (nums[nums.length - 1] == 2) {\n\t\t\tif (nums[nums.length - 1] != nums[nums.length - 2]) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < nums.length-1; i++) {\n\t\t\t\n\t\t\tif (nums[i] == 2) {\n\t\t\t\tif (nums[i+1] != 2) {\n\t\t\t\t\treturn false;\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\ti++;\n\t\t\t\t}\t\t\t\n\t\t\t}\t\t\n\n\t\t}\n\n\n\t\treturn true;\n\n\n\t}", "public boolean isSecondPair(){\n\t\treturn testBitwiseFlag(128);\n\t}", "public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[][] array2D = new int[n][n];\n\n for(int a=0;a<n;a++){\n for(int i=0;i<n;i++){\n array2D[a][i] = sc.nextInt();\n }\n }\n\n boolean isSymmetric = true;\n for(int a=0;a<n;a++){\n for(int b=0;b<n;b++){\n if(array2D[a][b] != array2D[b][a]){\n isSymmetric = false;\n break;\n }\n }\n }\n\n System.out.println((isSymmetric)? \"YES\" : \"NO\");\n\n }", "public static boolean hasPair(Card[] cards) {\n\t\tint counter = 0;\n\t\tfor(int i = 0; i < cards.length; i++){\n\t\t\tfor(int j = i+1; j< cards.length; j++){\n\t\t\t\tif(cards[i].getValue() == cards[j].getValue()){\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(counter>=1){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean checkIfExist(int[] arr) {\n int len = arr.length;\n\n Set<Integer> set = new HashSet<>();\n for (int num : arr) {\n if (set.contains(num*2) || (num%2==0 && set.contains(num/2))) return true;\n set.add(num);\n }\n\n return false;\n }", "static void findTwoMissingNumber(int a[]) {\n int miss1 = 0;\n int miss2;\n int miss1miss2 = 0;\n\n int size = a.length;\n for (int i = 0; i < size; i++) {\n miss1miss2 ^= ((i + 1) ^ a[i]);\n }\n\n miss1miss2 ^= (size + 1);\n miss1miss2 ^= (size + 2);\n\n int diff = miss1miss2 & (-miss1miss2);\n\n for (int i = 0; i < size; i++) {\n if (((i + 1) & diff) > 0)\n miss1 ^= (i + 1);\n\n if ((a[i] & diff) > 0)\n miss1 ^= a[i];\n }\n\n if (((size + 1) ^ diff) > 0)\n miss1 ^= (size + 1);\n\n if (((size + 2) ^ diff) > 0)\n miss1 ^= (size + 2);\n\n miss2 = miss1miss2 ^ miss1;\n\n System.out.println(miss1);\n System.out.println(miss2);\n }", "protected ArrayList<int[]> findAdjacentSafe(int[] pair) {\n\t\tint x = pair[0];\n\t\tint y = pair[1];\n\t\tArrayList<int[]> neighbors = new ArrayList<int[]>();\n\t\tfor (int i = x - 1; i <= x + 1; i++) {\n\t\t\tfor (int j = y - 1; j <= y + 1; j++) {\n\t\t\t\tif (i >= 0 && i < maxX && j >= 0 && j < maxY && coveredMap[i][j] != SIGN_UNKNOWN && coveredMap[i][j] != SIGN_MARK) {\n\t\t\t\t\tneighbors.add(new int[]{i, j});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn neighbors;\n\t}", "private int pairContains(HashMap<Integer,HashSet<Integer>> pairs, int k1, int k2){\n\t\t\n\t\t\n\t\t\tif(pairs.containsKey(k1))\n\t\t\t\tif(pairs.get(k1).contains(k2))\n\t\t\t\t\treturn 2;\n\t\t\t\telse\n\t\t\t\t\treturn 1;\n\t\t\n\t\treturn 0;\n\t}", "private static int findDuplicateIdeaTwo(int[] array) {\n\t\tArrays.sort(array);\n\t\tfor (int i = 0; i < (array.length-1); i++) {\n\t\t\tif (array[i]==array[i+1]) {\n\t\t\t\treturn array[i];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Not Found\");\n\t\treturn -1;\n\t}", "public static boolean hasDifference(int[] array) {\n if (array.length == 1) {\n //debug error\n //System.out.println(\"hasDifference: array length is 1.\");\n return true;\n } else {\n boolean[] differenceFlag = new boolean[array.length - 1];\n int i, j;\n for (i = 0; i < array.length - 1; i++) {\n \n int difference = (array[i] - array[i + 1]) > 0 ? (array[i] - array[i + 1]):(array[i + 1] - array[i]);\n if (0 < difference && difference < array.length) {\n differenceFlag[difference - 1] = true;\n //debug\n //System.out.printf(\"hasDifference: difference \\\"%d\\\" exists, subtracting %d from %d.\\n\", difference, array[i], array[i + 1]);\n }\n\n \n }\n \n \n for (int k = 0; k < differenceFlag.length ; k++) {\n if (differenceFlag[k] == false) {\n //debug\n //System.out.printf(\"hasDifference: difference \\\"%d\\\" does not exist.\\n\", k + 1);\n return false;\n }\n }\n return true;\n }\n }", "boolean isOnePair();", "public Vertex[] Vertices (TrianglePair pair)\n\t{\n\t\tFace tri1 = trimesh.faces[pair.face1];\n\t\tFace tri2 = trimesh.faces[pair.face2];\n\t\tVertex[] verts1 = new Vertex[3];\n\t\tVertex[] verts2 = new Vertex[3];\n\t\tverts1[0] = trimesh.vertices[tri1.fvlist[0]];\n\t\tverts1[1] = trimesh.vertices[tri1.fvlist[1]];\n\t\tverts1[2] = trimesh.vertices[tri1.fvlist[2]];\n\t\tverts2[0] = trimesh.vertices[tri2.fvlist[0]];\n\t\tverts2[1] = trimesh.vertices[tri2.fvlist[1]];\n\t\tverts2[2] = trimesh.vertices[tri2.fvlist[2]];\n\t\tboolean[] equalVerts = new boolean[9];\n\t\tVertex[] retverts = new Vertex[4];\n\t\tequalVerts[0] = (verts1[0] == verts2[0]);\n\t\tequalVerts[1] = (verts1[0] == verts2[1]);\n\t\tequalVerts[2] = (verts1[0] == verts2[2]);\n\t\tequalVerts[3] = (verts1[1] == verts2[0]);\n\t\tequalVerts[4] = (verts1[1] == verts2[1]);\n\t\tequalVerts[5] = (verts1[1] == verts2[2]);\n\t\tequalVerts[6] = (verts1[2] == verts2[0]);\n\t\tequalVerts[7] = (verts1[2] == verts2[1]);\n\t\tequalVerts[8] = (verts1[2] == verts2[2]);\n\t\tint eqto1in1 = 0, eqto1in2 = 0, eqto2in1 = 0, eqto2in2 = 0;\n\t\tint i;\n\t\tfor (i = 0; i < 9; i++)\n\t\t{\n\t\t\tif (equalVerts[i])\n\t\t\t{\n\t\t\t\teqto1in1 = i / 3;\n\t\t\t\teqto1in2 = i % 3;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfor (i = 8; i >= 0; i--)\n\t\t{\n\t\t\tif (equalVerts[i])\n\t\t\t{\n\t\t\t\teqto2in1 = i / 3;\n\t\t\t\teqto2in2 = i % 3;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tretverts[0] = verts1[eqto1in1];\n\t\tretverts[1] = verts1[eqto2in1];\n\t\tint lone1, lone2;\n\t\tif (eqto1in1 == 0)\n\t\t{\n\t\t\tif (eqto2in1 == 1)\n\t\t\t\tlone1 = 2;\n\t\t\telse // eqto2in1 == 2\n\t\t\t\tlone1 = 1;\n\t\t}\n\t\telse if (eqto1in1 == 1)\n\t\t{\n\t\t\tif (eqto2in1 == 0)\n\t\t\t\tlone1 = 2;\n\t\t\telse // eqto2in1 == 2\n\t\t\t\tlone1 = 0;\n\t\t}\n\t\telse // eqto1in1 == 2\n\t\t{\n\t\t\tif (eqto2in1 == 0)\n\t\t\t\tlone1 = 1;\n\t\t\telse // eqto2in1 == 1\n\t\t\t\tlone1 = 0;\n\t\t}\n\t\tif (eqto1in2 == 0)\n\t\t{\n\t\t\tif (eqto2in2 == 1)\n\t\t\t\tlone2 = 2;\n\t\t\telse // eqto2in2 == 2\n\t\t\t\tlone2 = 1;\n\t\t}\n\t\telse if (eqto1in2 == 1)\n\t\t{\n\t\t\tif (eqto2in2 == 0)\n\t\t\t\tlone2 = 2;\n\t\t\telse // eqto2in2 == 2\n\t\t\t\tlone2 = 0;\n\t\t}\n\t\telse // eqto1in2 == 2\n\t\t{\n\t\t\tif (eqto2in2 == 0)\n\t\t\t\tlone2 = 1;\n\t\t\telse // eqto2in2 == 1\n\t\t\t\tlone2 = 0;\n\t\t}\n\t\tretverts[2] = verts1[lone1];\n\t\tretverts[3] = verts2[lone2];\n\t\treturn retverts;\n\t}", "private static void second(int[] arr, int sum){\n\n Map<Integer,Boolean> map = new Hashtable<>();\n\n for(int i:arr){\n\n if (map.containsKey(sum - i)){\n System.out.println(i + \" , \" + (sum-i));\n }\n else{\n map.put(i, true);\n }\n\n }\n\n }", "public static boolean hasPair(Card[] cards) {\n\t\tint startInt= 1;\n\t\tfor(int check1 = 0; check1 < cards.length-1; check1++)\n\t\t{\n\t\t\tfor(int check2 = startInt; check2 < cards.length; check2++)\n\t\t\t{\n\t\t\t\tif (cards[check1].getValue() == cards[check2].getValue())\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tstartInt++;\n\t\t}\n\t\treturn false;\n\t\t//throw new RuntimeException(\"Not yet implemented.\");\n\t}", "private static int[] getPairUsingHasing(int[] arr, int target) {\n Set<Integer> hashSet = new HashSet<>();\n int[] result = new int[2];\n for(int ele : arr) {\n if(hashSet.contains(target-ele)) {\n result[0] = ele;\n result[1] = target - ele;\n } else hashSet.add(ele);\n\n }\n return result;\n }", "private boolean check(int i, int j, int arr[][]) {\n\t\tfor (int k = 0; k < BOARD_SIZE; k++) {\n\t\t\tif ((k != j && arr[i][k] == arr[i][j]) || (k != i && arr[k][j] == arr[i][j])) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tint i0 = i / LEVEL * LEVEL, j0 = j / LEVEL * LEVEL;\n\t\tfor (int k = 0; k < LEVEL; k++) {\n\t\t\tfor (int l = 0; l < LEVEL; l++) {\n\t\t\t\tif ((i0 + k != i || j0 + l != j) && arr[i0 + k][j0 + l] == arr[i][j]) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean winner2DP(int[] a) {\n int[][] dp = new int[a.length][a.length];\n for (int s = a.length - 1; s >= 0; s--) {\n dp[s][s] = a[s];\n for (int e = s + 1; e < a.length; e++) {\n int c1 = a[s] - dp[s + 1][e];\n int c2 = a[e] - dp[s][e - 1];\n dp[s][e] = Math.max(c1, c2);\n }\n }\n for (int[] ar : dp)\n System.out.println(Arrays.toString(ar));\n return dp[0][a.length - 1] >= 0;\n }", "public int checkOddOccurences( int[] A ){\n\tfor (int i=0;i<A.length;i++){\n\t\tint z=0;\n\t\tfor (int j=0;j<A.length;j++){\n\t\t\tif (i != j){\n\t\t\t\tif (A[i]==A[j]){\n\t\t\t\t\tz++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (z==0){\n\t\t\treturn A[i];\n\t\t}\n\t}\n }", "public int sol2(int[] inArr) \n\t{\n\t\tSet<Integer> set= new HashSet<>();\n\t\tfor (int i : inArr) {\n\t\t\tif(set.contains(i)) {\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t}", "private boolean checkTwoPairs(Player player) {\n\t\t// first pair\n\t\tcheckPair(player);\n\n\t\t// doesn't qualify for 2 pairs\n\t\tif (!player.isPair()) {\n\t\t\tplayer.setPair(false);\n\t\t\treturn false;\n\t\t}\n\n\t\t// second pair\n\t\tfor (int j = 4; j > 0; j--) {\n\t\t\tif (player.getSevenCardsTempHand().get(j).getRank()\n\t\t\t\t\t.equals(player.getSevenCardsTempHand().get(j - 1).getRank())) {\n\t\t\t\tplayer.setTwoPairs(true);\n\t\t\t\tplayer.setHandRank(HandRank.TWO_PAIRS);\n\n\t\t\t\t// add second pair to the 5 cards hand\n\t\t\t\thand[2] = player.getSevenCardsTempHand().get(j);\n\t\t\t\thand[3] = player.getSevenCardsTempHand().get(j - 1);\n\t\t\t\tplayer.getSevenCardsTempHand().remove(j);\n\t\t\t\tplayer.getSevenCardsTempHand().remove(j - 1);\n\n\t\t\t\t// add kicker\n\t\t\t\thand[4] = player.getSevenCardsTempHand().get(2);\n\t\t\t\tplayer.setFiveCardsHand(hand);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// add 3 kickers for the single pair found\n\t\thand[2] = player.getSevenCardsTempHand().get(4);\n\t\thand[3] = player.getSevenCardsTempHand().get(3);\n\t\thand[4] = player.getSevenCardsTempHand().get(2);\n\t\tplayer.setFiveCardsHand(hand);\n\n\t\treturn false;\n\t}", "public static int solution2(int[] A) {\n\n HashMap<Integer, Integer> hm = new HashMap<>();\n\n int n = A.length;\n\n // Finding frequency of each number.\n for (int i = 0; i < n; i++) {\n if (hm.containsKey(A[i]))\n hm.put(A[i], hm.get(A[i]) + 1);\n else\n hm.put(A[i], 1);\n }\n int ans = 0;\n\n // Calculating count of pairs with equal values\n for (Map.Entry<Integer, Integer> it : hm.entrySet()) {\n int count = it.getValue();\n ans += (count * (count - 1)) / 2;\n }\n return ans;\n }", "static boolean intersectsOppositeEdges(S2Point n) {\n // The line L intersects opposite edges of the [-1,1]x[-1,1] (u,v) square if\n // and only exactly two of the corner vertices lie on each side of L. This\n // is true exactly when ||Nu| - |Nv|| >= |Nw|. The code below evaluates this\n // expression exactly (see comments above).\n double u = Math.abs(n.x);\n double v = Math.abs(n.y);\n double w = Math.abs(n.z);\n // If w is the smallest, the following line returns an exact result.\n if (Math.abs(u - v) != w) {\n return Math.abs(u - v) >= w;\n }\n // Otherwise u - v = w exactly, or w is not the smallest value. In either\n // case the following line returns the correct result.\n return (u >= v) ? (u - w >= v) : (v - w >= u);\n }", "private static void findDuplicatesByNegation(int[] arr2) {\n\t\t\n\t\tfor ( int i =0 ; i<arr2.length ; i++)\n\t\t{\n\t\t\t\n\t\t\tif(arr2[Math.abs(arr2[i])] < 0)\n\t\t\t{\n\t\t\t\tSystem.out.println(\" Duplicates exist by Negation \" + arr2[i]);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tarr2[arr2[i]] = -arr2[arr2[i]];\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "private static void exchange(int[] A, int i, int j) {\n if(A[i] == A[j]) return;\n\n A[i] = A[i] ^ A[j];\n A[j] = A[i] ^ A[j];\n A[i] = A[i] ^ A[j];\n }", "boolean hasIsEquivalent();", "boolean areTheyEqual(int[] array_a, int[] array_b) {\n if(array_a == null || array_b == null || array_a.length!=array_b.length) return false;\n\n HashMap<Integer,Integer> count = new HashMap<>();\n for(int x : array_a){\n count.put(x, count.getOrDefault(x,0)+1);\n }\n for(int y : array_b){\n count.put(y, count.getOrDefault(y,0)-1);\n if(count.get(y)==0) count.remove(y);\n }\n return count.size()==0;\n }", "public boolean isIdealPermutation(int[] A) {\n int numLocalInvrtions = 0, numGlobalInvertions = 0;\n for(int i = 0; i< A.length; i++){\n if(A[i] > A[i+1]) numLocalInvrtions++;\n }\n\n for(int i = 0; i < A.length-1; i++){\n for(int j = i+1; j < A.length;j++){\n if(A[i] > A[j]) numGlobalInvertions++;\n }\n }\n return numLocalInvrtions == numGlobalInvertions;\n }", "public boolean getPair()\n {\n return die1.getFacevalue() == die2.getFacevalue();\n }", "static int printpairs(int arr[],int k)\n {\n\t\tint count = 0; // Initialize count\n\t\tint size = arr.length;\n\t\t // Declares and initializes the whole array as false\n boolean[] binmap = new boolean[MAX];\n\n // Insert array elements to hashmap\n for(int i=0; i<size; i++)\n \t binmap[arr[i]] = true;\n \n for(int i=0; i<size; i++)\n {\n \t int temp = arr[i]- k;\n \t\n \t if (temp >= 0 && binmap[temp])\n \t {\n \t\t System.out.println(\"Pair with given diff \" + k + \" is (\" + arr[i] + \", \"+temp+\")\");\n \t\t count++;\n \t }\n \n \t temp = arr[i]+ k;\n if (temp < MAX && binmap[temp])\n {\n \t\t System.out.println(\"Pair with given diff \" + k + \" is (\" + arr[i] + \", \"+temp+\")\");\n \t\t count++;\n \t }\n binmap[temp] = false;\n }\n \n return count++;\n }", "public int reversePairs1(int[] nums) {\n int res = 0;\n List<Integer> sorted = new ArrayList<>();\n for (int num : nums) {\n res += sorted.size() - find(sorted, (long)num * 2 + 1);\n sorted.add(find(sorted, num), num);\n }\n return res;\n }", "public boolean canReorderDoubled2(int[] A) {\n Map<Integer, Integer> count = new HashMap<>();\n for (int a : A) {\n count.put(a, count.getOrDefault(a, 0) + 1);\n }\n Integer[] B = new Integer[A.length];\n for (int i = 0; i < A.length; i++) {\n B[i] = A[i];\n }\n Arrays.sort(B, Comparator.comparingInt(Math::abs));\n for (int b : B) {\n if (count.get(b) == 0) { continue; }\n if (count.getOrDefault(2 * b, 0) <= 0) { return false; }\n\n count.put(b, count.get(b) - 1);\n count.put(2 * b, count.get(2 * b) - 1);\n }\n return true;\n }", "private static boolean equals(int[] array1, int[] array2) {\n if(array1.length != array2.length)\n return false;\n \n Arrays.sort(array1);\n Arrays.sort(array2);\n \n int i = 0;\n for(; i < array1.length; ++i) {\n if(array1[i] != array2[i])\n break;\n }\n \n return (i == array1.length);\n }", "protected ArrayList<int[]> findAdjacentUnknown(int[] pair) {\n\t\tint x = pair[0];\n\t\tint y = pair[1];\n\t\tArrayList<int[]> neighbors = new ArrayList<int[]>();\n\t\tfor (int i = x - 1; i <= x + 1; i++) {\n\t\t\tfor (int j = y - 1; j <= y + 1; j++) {\n\t\t\t\tif (i >= 0 && i < maxX && j >= 0 && j < maxY && coveredMap[i][j] == SIGN_UNKNOWN) {\n\t\t\t\t\tneighbors.add(new int[]{i, j});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn neighbors;\n\t}", "@Override\n\tpublic int hashCode()\n\t{\n\t\treturn pairs.hashCode();\n\t}", "public static int pairs (int[] arr) {\n int c = 0;\n Arrays.sort(arr);\n for (int i = 0; i < arr.length - 1; i++) {\n if (arr[i] == arr[i+1]) {\n c += 1;\n }\n }\n return c;\n }", "public static boolean same(int[] a, int[] b) {\r\n \treturn (a[0] == b[0] && a[1] == b[1]) || (a[0] == b[1] && a[1] == b[0]);\r\n }", "public boolean contains2(Point p) {\n int crossings = 0;\n for (int i = 0; i < N; i++) {\n int j = i + 1;\n boolean cond1 = (a[i].y <= p.y) && (p.y < a[j].y);\n boolean cond2 = (a[j].y <= p.y) && (p.y < a[i].y);\n if (cond1 || cond2) {\n // need to cast to double\n if (p.x < (a[j].x - a[i].x) * (p.y - a[i].y) / (a[j].y - a[i].y) + a[i].x)\n crossings++;\n }\n }\n if (crossings % 2 == 1) return true;\n else return false;\n }", "public static int TwoSum_hashed(int[] a, int x)\r\n\t{\r\n\t\tint count = 0;\r\n\t\tHashMap<Integer, Integer> map = new HashMap<Integer,Integer>();\r\n\t\tfor (int i = 0; i < a.length; ++i)\r\n\t\t{\r\n\t\t\tint diff = x-a[i];\r\n\t\t\tif (map.get(a[i]) != null) {\r\n\t\t\t\tint v2 = map.get(a[i]);\r\n\t\t\t\tSystem.out.println(\"Pair: (\" + a[i] + \",\" + v2 + \")\");\r\n\t\t\t\t++count;\r\n\t\t\t} else {\r\n\t\t\t\tmap.put(diff, a[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "public boolean linearIn(int[] outer, int[] inner) {\r\n int comp=0; // O(1)\r\n int count=0; // O(1)\r\n if(inner.length==0) // O(1)\r\n return true; // O(1)\r\n for(int i=0; i<outer.length; i++) { // O(n)\r\n if(outer[i]==inner[count]) { // O(1)\r\n comp++; // O(1)\r\n count++; // O(1)\r\n } else if(outer[i]>inner[count]) // O(1)\r\n return false; // O(1)\r\n if (comp==inner.length) // O(1)\r\n return true; // O(1)\r\n }\r\n return false; // O(1)\r\n}", "private static boolean areTheyEqual(int[][] tempArray, int[][] array2) {\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tif (tempArray[i][j] != array2[i][j]) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public int findPairsTwoPointers(int[] nums, int k) {\n if (k < 0) {\n return 0;\n }\n Arrays.sort(nums); // O(N*logN)\n\n int i = 0;\n int j = 1;\n int count = 0;\n while (j < nums.length) { // O(N)\n if (i == j || nums[j] - nums[i] < k) {\n j++;\n } else if (nums[j] - nums[i] > k) {\n i++;\n } else {\n count += 1;\n j++;\n while (j < nums.length && nums[j] == nums[j - 1]) {\n j++;\n }\n }\n }\n return count;\n }", "public static boolean check_equ_tri(int [] side) {\n\t\treturn ((side[0] == side[1]) && (side[1] == side[2])) && isTri(side) ;\n\t}", "private boolean isEqual(int[] x, int[] y) {\n for (int i = 0; i < 3; i++) {\n if (x[i] != y[i]) {\n return false;\n }\n }\n return true;\n }", "private boolean checkRowForOctPair(int i1, int i2) {\n for(int j=0;j<4;j++)\r\n {\r\n if(Kmap[i1][j]==0 || Kmap[i1][j]==-1)\r\n return false;\r\n }\r\n for(int j=0;j<4;j++)\r\n {\r\n if(Kmap[i2][j]==0 || Kmap[i2][j]==-1)\r\n return false;\r\n }\r\n \r\n for(int j=0;j<4;j++)\r\n {\r\n Kmap[i1][j]=-1;\r\n }\r\n for(int j=0;j<4;j++)\r\n {\r\n Kmap[i2][j]=-1;\r\n }\r\n \r\n return true;\r\n \r\n }", "protected boolean checkPair(ReturnValue returnValue) {\n\t\tboolean returnBool = false;\n\t\tint localCheck = 0;\n\t\tint localPoint = 0;\n\t\tint localDiceInt = 0;\n\t\tboolean localBool = false;\n\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tfor (int j = 0; j < 5; j++) {\n\t\t\t\tif (intList.get(i) == intList.get(j)) {\n\t\t\t\t\tlocalCheck++;\n\t\t\t\t\tif (localCheck == 2) {\n\t\t\t\t\t\tlocalBool = true;\n\t\t\t\t\t\tif (localPoint < intList.get(i) * 2) {\n\t\t\t\t\t\t\tlocalPoint = intList.get(i) * 2;\n\t\t\t\t\t\t\tlocalDiceInt = intList.get(i);\n\t\t\t\t\t\t\treturnValue.setTheDiceInt(localDiceInt);\n\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\tlocalCheck = 0;\n\t\t}\n\t\treturnValue.setValue(localBool, localPoint, Box.ONE__PAIR);\n\t\treturnValue.setTheDiceInt(localDiceInt);\n\t\treturnBool = true;\n\t\treturn returnBool;\n\t}", "public boolean checkPossibility(int[] nums) {\n int n = nums.length;\n int count = 0;\n if(n <= 2) return true;\n\n for(int i = 0; i < n - 1; i++) {\n if(nums[i] > nums[i+1]) {\n if(i == 0 || i == n - 2) {\n count ++;\n } else {\n //i needs to be fixed, e.g. -1,4,2,3, i == 1\n if (nums[i + 1] >= nums[i - 1]) {\n nums[i] = nums[i - 1];\n } else { //try to fix i+1, e.g. 5,7,1,8, i == 1\n nums[i + 1] = nums[i];\n }\n count++;\n }\n if(count == 2) return false;\n }\n\n }\n return true;\n }", "private static void printPairs(int[] a, int sum) {\n\t\tfor(int i=0;i<a.length;i++) {\n\t\t//for (int j = 0; j < n; j++) {/Is the reverse of pair is acceptable\n\t\t\tfor(int j=i+1;j<a.length;j++) {\n\t\t\t\tif(a[i]+a[j]==sum) {\n\t\t\t\t\tSystem.out.println(\"(\"+a[i]+\"+\"+a[j]+\") = \"+sum);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public boolean CheckBoom(int[] i,int[] j){\r\n try {\r\n if (((i[0] == i[1] - 1 && j[0] == j[1]) || (i[0] == i[1] + 1 && j[0] == j[1]) ||\r\n (i[0] == i[1] && j[0] == j[1] - 1) || (i[0] == i[1] && j[0] == j[1] + 1))) {\r\n return true;\r\n }\r\n }catch (ArrayIndexOutOfBoundsException e) {\r\n return false;\r\n }\r\n return false;\r\n }", "public int reversePairs4(int[] nums) {\n int count = 0;\n Map<Long, Integer> bit = new HashMap<>();\n final long shift = 1L << 32;\n final long max = shift << 1;\n for (int i = nums.length - 1; i >= 0; i--) {\n for (long j = nums[i] - 1 + shift; j > 0; j -= (j & -j)) {\n count += bit.getOrDefault(j, 0);\n }\n for (long j = (long)nums[i] * 2 + shift; j < max; j += (j & -j)) {\n bit.put(j, bit.getOrDefault(j, 0) + 1);\n }\n }\n return count;\n }", "public boolean hasPair(ArrayList<Card>cards) {\r\n\t\tCollections.sort(cards);\r\n\t\tfor(int i = 0; i < cards.size() - 1; i++) {\r\n\t\t\tfor(int j = i+1; j < cards.size(); j++) {\r\n\t\t\t\tif(cards.get(i).getValue() == cards.get(j).getValue()) {\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\r\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t\tint arr[] = {5,7,2,4,1,9,3,6};\r\n\t\tint num = 9;\r\n\t\tint pairarr[][] = new int[arr.length][2];\r\n\t\tint x=0;\r\n\t\tfor(int i=0; i<arr.length; i++){\r\n\t\t\tif(arr[i]<num){\r\n\t\t\t\tfor(int j=i+1; j<arr.length; j++){\r\n\t\t\t\t\tif(arr[i]+arr[j] == num){\r\n\t\t\t\t\t\tSystem.out.println(\"The pair is : \" + arr[i] + \" and \" + arr[j]);\r\n\t\t\t\t\t\tpairarr[x][0] = arr[i];\r\n\t\t\t\t\t\tpairarr[x][1] = arr[j];\r\n\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i=0; i<x ; i++){\r\n\t\t\tfor(int j=0; j<2; j++){\r\n\t\t\t\tSystem.out.print(pairarr[i][j] + \", \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\r\n\t}", "public static boolean hasDups(int num[]) {\n\n //boolean value to trigger while loop, intially false, set to true when a duplicate is found\n boolean found = false;\n\n //int i initialized to 0\n int i = 0;\n\n/*\n //while loop to search through array \n while (found != true) {\n */\n //for loop to loop through array elements after the first one\n //compares the first array element to each successive one for a duplicate\n\n for (int k = 1; k < num.length - 1; k++) {\n\n if (num[i] == num[k]) { //if statement that checks the adjacent values until the end of the array\n\n found = true; //flag for found to be set to true which will end while loop and return result \n\n } //end if\n\n else if (num[i] != num[k]) { //if statement that checks if te adjacent values are not equal to ensure found is false, and continue while loop\n\n found = false; //flag for found to be set to false which will contineu while loop to search through array\n\n } //end else if \n i++; //increments i so it is 1 less than k to check adjacent values in the array\n } //end for\n\n //} //end while\n return found; //retun value\n }", "public boolean palindrome(int[] list){\n int counter = 0;\n for (int i = 0, j = list.length-1; j >= i; i++, j--){\n if (list[i] != list[j])\n counter++;\n\n }\n return counter == 0;\n }", "public boolean isSymmetric() {\n int nr = data.length, nc = data[0].length;\n if (nr != nc)\n return false;\n\n for (int i = 0; i < nc; i++) {\n for (int j = 0; j < i; j++) {\n if (data[i][j] != data[j][i])\n return false;\n }\n }\n return true;\n }", "public boolean makePair(int [] a, int [] b, int k) {\n\t\t\n\t\tif(a==null||b==null||a.length==0||b.length==0) return true;\n\t\t\n\t\tfor(int i=0; i<a.length; i++) {\n\t\t\ta[i] = k-a[i];\t\n\t\t}\n\t\tArrays.sort(a);\n\t\tArrays.sort(b);\n\t\tboolean res = true;\n\t\t\n\t\t//add optimization\n\t\tif(a[a.length-1]<=b[0]) return res;\n\t\t\n\t\tfor(int j=0; j<a.length; j++) {\n\t\t\tif(a[j]>b[j]) {\n\t\t\t\tres = false;\n\t\t\t\tbreak; \n\t\t\t}\n\t\t}\n\t\treturn(res);\n\n\t}", "protected ArrayList<int[]> findAdjacentRisk(int[] pair) {\n\t\tint x = pair[0];\n\t\tint y = pair[1];\n\t\tArrayList<int[]> neighbors = new ArrayList<int[]>();\n\t\tfor (int i = x - 1; i <= x + 1; i++) {\n\t\t\tfor (int j = y - 1; j <= y + 1; j++) {\n\t\t\t\tif (i >= 0 && i < maxX && j >= 0 && j < maxY ) {\n\t\t\t\t\tif (coveredMap[i][j] == SIGN_UNKNOWN || coveredMap[i][j] == SIGN_MARK) {\n\t\t\t\t\t\tneighbors.add(new int[]{i, j});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn neighbors;\n\t}", "public boolean hasAlternatingBits(int n) {\n\n int pre = n % 2;\n n /= 2;\n\n while (n > 0) {\n if (n % 2 == pre) {\n return false;\n }\n\n pre = n % 2;\n n /= 2;\n }\n\n return true;\n }", "private static boolean check(int[] data) {\n int a[]=new int[8];\n a[0]=data[0]+data[1]+data[2];\n a[1]=data[3]+data[4]+data[5];\n a[2]=data[8]+data[7]+data[6];\n a[3]=data[0]+data[3]+data[6];\n a[4]=data[1]+data[4]+data[7];\n a[5]=data[2]+data[5]+data[8];\n a[6]=data[0]+data[4]+data[8];\n a[7]=data[2]+data[4]+data[6];\n for (int i = 0; i <a.length ; i++) {\n for (int j = i+1; j <a.length; j++) {\n if (a[i]==a[j]){\n return false;\n }\n }\n }\n return true;\n }", "public static boolean has271(int[] nums) {\n if(nums.length<3)\n return false; \n \n for (int i = 0; i < nums.length-2; i++) {\n if(nums[i]+ 5 == nums[i+1])\n if(Math.abs(nums[i+2]-(nums[i]-1))<=2)\n return true; \n }\n \n return false; \n }", "boolean checkOdd(int[] table)\n{\n boolean found = false;\n for (int count : table)\n if (count % 2 == 1)\n {\n if (found) return false;\n found = true;\n }\n return true;\n}", "public static boolean find3Numbers(int A[], int n, int X) { \n \n // Your code \n for(int i=0;i<n-2;i++)\n {\n HashSet<Integer> set = new HashSet<>();\n int toFind=X-A[i];\n for(int j=i+1;j<n;j++)\n {\n if(set.contains(toFind-A[j]))\n {\n return true;\n }\n set.add(A[j]);\n }\n }\n return false;\n }", "public void Pairs()\r\n {\n int pairsize = 0;\r\n int ind1 = 0;\r\n for(int i = 0; i < 5; i++){\r\n// while(cards[i].getNumber() != pairnum){\r\n for(int j = i+1; j < 5; j++)\r\n {\r\n if(cards[i].getFace().equals(cards[j].getFace()))\r\n {\r\n ind1 = i;\r\n if(pairsize < 3){\r\n pairsize += 1;\r\n// paircounts += 1;\r\n }\r\n if(cards[i].compareTo(cards[ind1]) > 0){\r\n// Maxpair = cards[i].getNumber();\r\n index = i;\r\n }\r\n \r\n }\r\n }\r\n// }\r\n }\r\n if(pairsize == 1)\r\n Judge = 2;\r\n if(pairsize == 2)\r\n Judge = 3;\r\n if(pairsize == 3)\r\n Judge = 6;\r\n }", "public static boolean tripletSum(int[] arr, int sum) {\n //first we will sort the array O(n*log(n)).\n\n Arrays.sort(arr);\n\n int currentSum;\n int left = 0;\n int right = arr.length - 1;\n\n HashSet<Integer> hashSet = new HashSet<>();\n\n //use the outer loop to fix an index of the array, i, as one of the pairs\n\n for (int i = 0; i < arr.length; i++) {\n\n currentSum = sum -arr[i];\n\n //this is the pair sum algorithm with an updated sum\n\n for (int j = 0; j < arr.length; j++) {\n if (left == i) {\n left++;\n }\n if (right == i) {\n right--;\n }\n if (hashSet.contains(arr[left] + arr[right])) {\n return true;\n } else {\n hashSet.add(currentSum - (arr[left] + arr[right]));\n if (arr[left] + arr[right] > currentSum) {\n right--;\n } else if (arr[left] + arr[right] < currentSum) {\n left++;\n } else {\n return true;\n }\n }\n if (left >= right) {\n break;\n }\n }\n\n left = 0;\n right = arr.length - 1;\n hashSet.clear();\n\n }\n return false;\n\n }", "private boolean eq(int[] a,int[] b){\n\t\tboolean eq = true;\n\t\tif(a.length != b.length) return false;\n\t\tfor(int i=0;i<a.length;i++){\n\t\t\tif( a[i] != b[i] ){\n\t\t\t\teq = false;\n\t\t\t\tbreak;\n\t\t\t}else{\n\n\t\t\t}\n\t\t}\n\t\treturn eq;\n\t}", "static int minimumSwaps2(int[] arr) {\n Map<Integer, Integer> backward = new HashMap<>();\n Map<Integer, Integer> forward = new HashMap<>();\n for (int i = 0; i < arr.length; i++) {\n int move = i + 1 - arr[i];\n if (move > 0)\n forward.put(arr[i], move);\n else if (move < 0)\n backward.put(arr[i], move);\n }\n\n //count swap in pairs\n int pairs = 0;\n for (Integer bk : backward.keySet()) {\n for (Integer fk : forward.keySet()) {\n if (backward.get(bk) * (-1) == forward.get(fk)) {\n pairs = pairs + 1;\n continue;\n }\n }\n }\n //count swap others\n int swapCount = forward.size() + backward.size() - (2 * pairs);\n if (swapCount > 0) swapCount = swapCount - 1;\n\n System.out.println(String.format(\n \"forward(%d):%s\\nbackeward(%d):%s\\neach: %d, swap: %d\"\n , forward.size(), forward, backward.size(), backward,\n pairs, swapCount\n ));\n\n return swapCount + pairs;\n }", "private static List<Integer> getCommonElementsAlgo2(int [] arr1, int [] arr2) {\n\t\t\n\t\tList<Integer> duplicates = new ArrayList<>();\n\t\t\n\t\tHashtable<Integer, Integer> table = new Hashtable<>();\n\t\t\n\t\tfor (int i : arr1) {\n\t\t\tif (table.containsKey(i)) {\n\t\t\t\ttable.put(i, table.get(i) + 1);\n\t\t\t}\n\t\t\ttable.put(i, 1);\n\t\t}\n\t\t\n\t\tfor (int j : arr2) {\n\t\t\tif (table.containsKey(j)) {\n\t\t\t\tduplicates.add(j);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn duplicates;\n\t\t\n\t}", "private static boolean tripletWithSumExistsNoExtraSpace(int[] arr, int expectedSum){\n Arrays.sort(arr);\n int size = arr.length;\n for(int i=0; i<size-2; ++i){\n int complement = expectedSum - arr[i];\n int lidx = i+1, ridx = size-1;\n while (lidx < ridx){\n if(arr[lidx]+arr[ridx] == complement)\n return true;\n else if(arr[lidx]+arr[ridx] < complement)\n ++lidx;\n else\n --ridx;\n }\n }\n return false;\n }", "public boolean containsNearbyDuplicate2(int[] nums, int k) {\n \tif(nums == null || nums.length <=1) return false;\r\n \tSet<Integer> set = new HashSet<Integer> ();\r\n \tfor(int i=0; i< nums.length; i++) {\r\n \t\tif(i>k) set.remove(nums[i-k-1]);\r\n \t\tif(!(set.add(nums[i]))) return true;\r\n \t}\r\n \treturn false;\r\n }", "public int findRepeatNumber2(int[] nums) {\n for (int i = 0; i < nums.length; i++) {\n while (nums[i] != i){\n //check if the num[i] == num[num[i]], if yes return, if not swap it\n int temp = nums[i];\n if (nums[i] == nums[nums[i]]){\n return nums[i];\n }\n //swap\n nums[i] = nums[temp];\n nums[temp] = temp;\n }\n }\n return 0;\n }", "public boolean pairTest()\n\t{\n\t\tboolean pair = false;\n\t\tint index = 0;\n\t\t\n\t\twhile (index<(hand.length-1) && (!pair))\n\t\t{\n\t\t\tif (intRep[index] == intRep[index+1])\n\t\t\t{\n\t\t\t\tpair = true;\n\t\t\t\thandScore = 10000;\n\t\t\t\thandScore += 2 * (100 * intRep[index]);\n\t\t\t}\n\t\t\telse index++;\n\t\t}\n\t\t\n\t\t// If there's a pair, resolve kickers\n\t\tif (pair)\n\t\t{\n\t\t\tswitch (index)\n\t\t\t{\n\t\t\t\tcase 0:\t\t// Pair includes first two cards\n\t\t\t\t\tif (!twoPairTest(index)) {\n\t\t\t\t\t\tfor (int i=2; i<MAX_CARDS; i++)\n\t\t\t\t\t\t\thandScore += intRep[i]; }\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 1:\t\t// Pair excludes first card, includes 2nd-3rd\n\t\t\t\t\tif (!twoPairTest(index)) {\n\t\t\t\t\t\thandScore += intRep[0];\n\t\t\t\t\t\thandScore += (intRep[3] + intRep[4]); }\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 2:\t\t// Pair excludes first two, includes 3-4\n\t\t\t\t\tif (!twoPairTest(index)) {\n\t\t\t\t\t\thandScore += (intRep[0] + intRep[1]);\n\t\t\t\t\t\thandScore += intRep[4]; }\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tdefault:\t// Anything else where the kickers are higher than pair\n\t\t\t\t\tif (!twoPairTest(index))\n\t\t\t\t\t\thandScore += (intRep[0] + intRep[1] + intRep[2]);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn pair;\n\t}", "public boolean isIsosceles() {\n\t\t\tif((this.sideOne == this.sideTwo & this.sideOne != this.sideThree) || (this.sideOne == this.sideThree & this.sideOne != this.sideTwo) || (this.sideTwo == this.sideThree & this.sideTwo != this.sideOne)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "protected ArrayList<int[]> findAdjacentMark(int[] pair) {\n\t\tint x = pair[0];\n\t\tint y = pair[1];\n\t\tArrayList<int[]> neighbors = new ArrayList<int[]>();\n\t\tfor (int i = x - 1; i <= x + 1; i++) {\n\t\t\tfor (int j = y - 1; j <= y + 1; j++) {\n\t\t\t\tif (i >= 0 && i < maxX && j >= 0 && j < maxY && coveredMap[i][j] == SIGN_MARK) {\n\t\t\t\t\tneighbors.add(new int[]{i, j});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn neighbors;\n\t}", "public int reversePairs2_2(int[] nums) {\n int res = 0;\n Node root = null;\n for (int i = 0; i < nums.length; i++) {\n int num = nums[i];\n if (num < Integer.MIN_VALUE / 2) {\n res += i;\n } else {\n if (root == null) {\n root = new Node(num);\n } else {\n res += root.count((long)num * 2);\n root.add(num);\n }\n }\n }\n return res;\n }", "public boolean containsNearbyDuplicate2(int[] nums, int k) {\n\n int max = Integer.MIN_VALUE;\n for (int i = 0; i < nums.length; i++) {\n max=Math.max(max,nums[i]);\n }\n Integer[] map = new Integer[max+1];\n for (int i = 0; i < nums.length; i++) {\n Integer c = map[nums[i]];\n if(c!=null && i-c<=k){\n return true;\n }else {\n map[nums[i]]=i;\n }\n }\n return false;\n }", "int equalPairOfBits(int n, int m) {\n return ((BinaryOperator<Integer>) (a, b) -> {\n String one = Integer.toBinaryString(a);\n String two = Integer.toBinaryString(b);\n //FUCK YO SHIT, THIS IS STUPID\n int max = Math.max(one.length(), two.length());\n if (max != one.length())\n one = IntStream.range(0, max - one.length())\n .mapToObj(aq -> \"0\")\n .reduce(\"\", (r, c) -> r + c) + one;\n if (max != two.length())\n two = IntStream.range(0, max - two.length())\n .mapToObj(aq -> \"0\")\n .reduce(\"\", (r, c) -> r + c) + two;\n for (int i = max - 1, j = 0; i > -1; --i, j++) {\n if (one.charAt(i) == two.charAt(i))\n return (int) Math.pow(2, j);\n }\n return 0;\n }).apply(n, m);\n }", "public abstract boolean isSameDirection(double[] direction1, double[] direction2);", "public static boolean canThreePartsEqualSum(int[] arr) {\n int sum=0;\n int cumulative[]=new int[arr.length];\n for(int i=0;i<arr.length;i++){\n sum+=arr[i];\n cumulative[i]=sum;\n }\n for(int i=0;i<cumulative.length;i++){\n for(int j=i+1;j<cumulative.length;j++){\n if(cumulative[i]==cumulative[j]-cumulative[i]){\n if(cumulative[i]==cumulative[cumulative.length-1]-cumulative[j] && (cumulative.length-1) !=j){\n return true;\n }\n }\n }\n }\n return false;\n}", "public int[] twoSumOneHash(int[] nums, int target) {\n Map<Integer, Integer> map = new HashMap<>();\n for (int i = 0; i < nums.length; i++) {\n int complement = target - nums[i];\n if (map.containsKey(complement)) {\n return new int[] { map.get(complement), i };\n }\n map.put(nums[i], i);\n }\n throw new IllegalArgumentException(\"No two sum solution\");\n }", "public boolean isBipartite(int[][] graph) {\n int[] color = new int[graph.length];\n //A little bit improvement avoiding Arrays.fill.\n //Arrays.fill(color,-1);\n\n for(int i=0;i<graph.length;i++){\n if(color[i]==0){\n //if(color[i]==-1){\n Stack<Integer> stack = new Stack<>();\n stack.push(i);\n color[i]=1;\n //color[i]=0;\n\n while(!stack.isEmpty()){\n int cur = stack.pop();\n for(int nxt:graph[cur]){\n if(color[nxt]==0){\n //if(color[nxt]==-1){\n stack.push(nxt);\n //^ is xor bit operation, if same->0, diff->1;\n //color[nxt]=color[cur]^1;\n color[nxt]=-color[cur];\n }else if(color[nxt]==color[cur]){\n return false;\n }\n }\n }\n }\n }\n return true;\n }", "public static void hasPairWithSum(int[] input, int sum) {\n\t\tMap<Integer, Integer> map = new Hashtable<>();\n\t\tint occurence = 0;\n\t\tfor (int num : input) {\n\t\t\toccurence = 1;\n\t\t\tif (map.containsKey(num)) {\n\t\t\t\toccurence = map.get(num);\n\t\t\t\toccurence++;\n\t\t\t}\n\t\t\tmap.put(num, occurence);\n\t\t}\n\n\t\tfor (int first : input) {\n\t\t\tint second = sum - first;\n\t\t\tif (map.containsKey(second)) {\n\t\t\t\toccurence = map.get(second);\n\t\t\t\tif (occurence > 0) {\n\t\t\t\t\tif (second == first) {\n\t\t\t\t\t\tif (occurence > 1) {\n\t\t\t\t\t\t\tSystem.out.println(\"[\" + first + \",\" + second + \"]\");\n\t\t\t\t\t\t\toccurence -= 2;\n\t\t\t\t\t\t\tmap.put(first, occurence);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tint firstOccurence = map.get(first);\n\t\t\t\t\t\tfirstOccurence--;\n\t\t\t\t\t\tint secondOccurence = map.get(second);\n\t\t\t\t\t\tsecondOccurence--;\n\t\t\t\t\t\tmap.put(first, firstOccurence);\n\t\t\t\t\t\tmap.put(second, secondOccurence);\n\t\t\t\t\t\tSystem.out.println(\"[\" + first + \",\" + second + \"]\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "public static boolean solution2(int[] nums, int numToAddTo){\n HashSet<Integer> numsHash = new HashSet<>();\n for (int num : nums){\n if (numsHash.contains(numToAddTo - num)){\n return true;\n }\n numsHash.add(num);\n }\n return false;\n }" ]
[ "0.75136733", "0.7097596", "0.65888226", "0.64776504", "0.63589627", "0.6354317", "0.6244871", "0.6185488", "0.61233443", "0.61028665", "0.6097906", "0.60834485", "0.60787773", "0.60598636", "0.59279066", "0.59278315", "0.58948994", "0.58401406", "0.582039", "0.5768445", "0.5764436", "0.5730929", "0.5729746", "0.5720078", "0.5709724", "0.5683882", "0.56776536", "0.56570655", "0.5649565", "0.56149834", "0.56059617", "0.5588456", "0.5584845", "0.55752146", "0.5573641", "0.55419", "0.5529539", "0.5523981", "0.55234694", "0.5522535", "0.5505395", "0.55003047", "0.54910463", "0.5485776", "0.54464775", "0.54412365", "0.54292846", "0.54220164", "0.5417311", "0.5397596", "0.5395019", "0.53886753", "0.5379125", "0.5364317", "0.53618044", "0.53607535", "0.53423655", "0.5335363", "0.5335162", "0.5330522", "0.53260076", "0.5321656", "0.531831", "0.5301395", "0.5298898", "0.5293264", "0.5292714", "0.52913135", "0.5286342", "0.52836484", "0.5272865", "0.5272092", "0.52670854", "0.52638006", "0.5259012", "0.52503616", "0.5247021", "0.52467877", "0.52422774", "0.5219339", "0.52171946", "0.52152485", "0.5210512", "0.5201095", "0.5199606", "0.5183765", "0.51810545", "0.5168973", "0.5168333", "0.5164977", "0.5164183", "0.5161232", "0.5157439", "0.5151581", "0.5142896", "0.5138318", "0.513138", "0.5131244", "0.5124616", "0.512323" ]
0.70877856
2
data contains unique values. Find and display 4 different ints such that a + b == c + d. Print error if none / Analysis: This method can be completed in n^2 time where n is the length of the array. This is done by using 4 nested for loops comparing every possible combination of values. Complete this method in O(n^2) time using a Hash. The time cannot be improved, but the code will be more simple and easier to read.
public static void fourSum(int[] data){ HashMap<Integer,Pair> set = new HashMap<>();//integer = sum, pair are the nums for(int i = 0; i < data.length; i++) for(int j = i+1; j < data.length; j++) { Pair check = set.get(i+j); if(check != null) { System.out.println("fauifa"); return; } set.put(check.a()+check.b(), check); } System.out.println("None found."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean check(int[] data) {\n int a[]=new int[8];\n a[0]=data[0]+data[1]+data[2];\n a[1]=data[3]+data[4]+data[5];\n a[2]=data[8]+data[7]+data[6];\n a[3]=data[0]+data[3]+data[6];\n a[4]=data[1]+data[4]+data[7];\n a[5]=data[2]+data[5]+data[8];\n a[6]=data[0]+data[4]+data[8];\n a[7]=data[2]+data[4]+data[6];\n for (int i = 0; i <a.length ; i++) {\n for (int j = i+1; j <a.length; j++) {\n if (a[i]==a[j]){\n return false;\n }\n }\n }\n return true;\n }", "public static void main(String[] args) {\n\t\tint a[] = {4,4,4,5,5,5,6,6,6,9};\n\t\t\n\t\tArrayList<Integer> ab = new ArrayList<Integer>();\n\t\t\n\t\tfor(int i=0; i<a.length; i++)\n\t\t{\n\t\t\tint k =0;\n\t\t\tif(!ab.contains(a[i]))\n\t\t\t{\n\t\t\t\tab.add(a[i]);\n\t\t\t\tk++;\n\t\t\t\tfor(int j=i+1; j<a.length; j++)\n\t\t\t\t{\n\t\t\t\t\tif(a[i]==a[j])\n\t\t\t\t\t{\n\t\t\t\t\t\tk++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//System.out.println(a[i]);\n\t\t\t//System.out.println(k);\n\t\t\tif(k==1)\n\t\t\t\tSystem.out.println(a[i] +\" is unique number \");\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tInteger[] numbers = new Integer[] {1, 73, 12, - 5, 73, 8, - 5, 1, 12};\n\t\n\t\tSet<Integer> equalNumbers = new HashSet<Integer>();\n\t\tSet<Integer> uniqueNumbers = new HashSet<Integer>();\n\t\tString uniqueNumber = \"\";\n\t\t\n\t\tfor (int i = 0; i < numbers.length; i++) {\n\t\t\tfor (int j = i + 1; j < numbers.length; j++) {\n\t\t\tif (numbers[i] == numbers[j]) {\n\t\t\t\tif (!equalNumbers.contains(numbers[j])) {\n\t\t\t\t\tequalNumbers.add(numbers[j]);\t// 1, -5, 73, 12,\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (!uniqueNumbers.contains(numbers[j]))\n\t\t\t\tuniqueNumbers.add(numbers[j]);\t // 1, -5, 8, 73, 12, \t\t\n\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\tfor (Integer number : equalNumbers) {\n\t\t\tSystem.out.print(number.toString() + \", \"); // 1, -5, 73, 12,\n\t\t}\t\n\t\tSystem.out.println();\t\t\n\t\tfor (Integer number : uniqueNumbers) {\n\t\t\tSystem.out.print(number.toString() + \", \"); // 1, -5, 8, 73, 12, \n\t\t} \n\t\t\n\t\tfor (Integer number : uniqueNumbers) {\n\t\t\tif (!equalNumbers.contains(number)) {\n\t\t\t\tuniqueNumber += number;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\t\n System.out.println(\"The uniqie number is : \" + uniqueNumber);\n\t}", "public static int smallStraightYahtzee(int... result) {\n\n Arrays.sort(result);\n\n int[] uniqueValues = IntStream.of(result).distinct().sorted().toArray();\n long noUniqVals = IntStream.of(uniqueValues).distinct().count();\n\n int score = 0;\n\n if (noUniqVals >= 4) {\n\n ArrayList<int[]> matchArrays = new ArrayList<>();\n matchArrays.add(new int[] {1, 2, 3, 4});\n matchArrays.add(new int[] {2, 3, 4, 5});\n matchArrays.add(new int[] {3, 4, 5, 6});\n\n ArrayList<int[]> resultSubArrays = new ArrayList<>();\n for (int i = 0; i < noUniqVals - 3; i++) {\n int[] testArr = Arrays.copyOfRange(uniqueValues, i, i + 4);\n resultSubArrays.add(testArr);\n }\n\n for (int[] arr : resultSubArrays) {\n for (int[] match : matchArrays) {\n if (Arrays.equals(arr, match)) {\n score = 30;\n }\n }\n }\n }\n return score;\n }", "public static void main(String args[]) {\n Scanner in=new Scanner(System.in);\n int n=in.nextInt();\n int arr[]=new int[n];\n for(int i=0;i<n;i++)\n arr[i]=in.nextInt();\n int val=in.nextInt();\n int c=0;\n while(c<n)\n {\n for(int i=c+1;i<n;i++)\n {\n if(arr[c]+arr[i]==val)\n System.out.println(arr[c]+\", \"+arr[i]);\n }\n c++;\n }\n }", "public static int bigStraightYahtzee(int... result) {\n\n Arrays.sort(result);\n\n int[] uniqueValues = IntStream.of(result).distinct().sorted().toArray();\n long noUniqVals = IntStream.of(uniqueValues).distinct().count();\n int score = 0;\n\n if (noUniqVals >= 5) {\n ArrayList<int[]> matchArrays = new ArrayList<>();\n matchArrays.add(new int[]{1, 2, 3, 4, 5});\n matchArrays.add(new int[]{2, 3, 4, 5, 6});\n\n ArrayList<int[]> resultSubArrays = new ArrayList<>();\n for (int i = 0; i < noUniqVals - 4; i++) {\n resultSubArrays.add(Arrays.copyOfRange(uniqueValues, i, i + 5));\n }\n\n for (int[] arr : resultSubArrays) {\n for (int[] match : matchArrays) {\n if (Arrays.equals(arr, match)) {\n score = 40;\n }\n\n }\n }\n }\n return score;\n }", "public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Enter the size of the array\");\n int n = sc.nextInt();\n int arr[] = new int[n];\n System.out.println(\"enter the elements in the array\");\n for (int i = 0; i < arr.length; i++) {\n arr[i] = sc.nextInt();\n }\n HashSet<Integer> set = new HashSet<Integer>();\n for (int k = 0; k < n; k++) {\n set.add(arr[k]);\n }\n LinkedList list = new LinkedList(set);\n for (int l = 0; l < list.size(); l++) {\n int val = ((Integer) list.get(l)).intValue();\n if (duplicate(arr, val) > 1)\n System.out.println(\"Occurence of \" + val + \" is \" + duplicate(arr, val));\n }\n }", "private static void printPairs(int[] a, int sum) {\n\t\tfor(int i=0;i<a.length;i++) {\n\t\t//for (int j = 0; j < n; j++) {/Is the reverse of pair is acceptable\n\t\t\tfor(int j=i+1;j<a.length;j++) {\n\t\t\t\tif(a[i]+a[j]==sum) {\n\t\t\t\t\tSystem.out.println(\"(\"+a[i]+\"+\"+a[j]+\") = \"+sum);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "static int beautifulTriplets(int d, int[] arr) {\n int result = 0;\n\n for (int i = 0; i < arr.length; i++) {\n int prev = arr[i];\n int arrCount = 1;\n\n for (int j = i+1; j < arr.length; j++) {\n if (prev + d == arr[j]) {\n arrCount++;\n prev = arr[j];\n if (arrCount == 3) {\n result++;\n break;\n }\n }\n }\n }\n\n return result;\n }", "public static void main(String[] args) {\n int[] a={11, 15, 6, 8, 9, 10,4};\n int sum =2;\n //SORTING AND FIND PAIRS\n /*Arrays.sort(a);\n \n int i=0,j=a.length-1;\n while(i<j)\n {\n\t if(a[i]+a[j]==sum)\n\t {\n\t\t System.out.println(\"pair is+\"+a[i]+\" \"+a[j]);\n\t\t i++;j++;\n\t\t }\n\t else if(a[i]+a[j]<sum)\n\t {\n\t\t i++;\n\t }\n\t else if(a[i]+a[j]>sum)\n\t {\n\t\t j--;\n\t }\n }*/\n //Arrays.sort(a);\n LinkedHashSet<Integer> m = new LinkedHashSet<Integer>();\n int temp;\n for(int i=0;i<a.length;i++)\n {\n\t temp=sum+a[i];\n\t if(m.contains(temp))\n\t {\n\t\t System.out.println(\"par is:\"+a[i]+\" \"+temp);\n\t }\n\t else\n\t\t m.add(a[i]);\n }\n\n\t}", "public ArrayList<ArrayList<Integer>> fourSum(int[] num, int target) {\n int temp = 0;\n Arrays.sort(num);\n\n ArrayList<ArrayList<Integer>> a = new ArrayList<ArrayList<Integer>>();\n int [] s = new int [4];\n int total = 0;\n int current = -1;\n int i = 0;\n Arrays.fill(s, 0);\n HashMap<Long, Integer> m = new HashMap<Long, Integer>();\n \n \n if (num.length < 4) return a;\n \n while (i!=-1) {\n //increase the current pointer\n ++current;\n if (current > num.length-1) {\n --i;\n if (i >= 0) \n {\n current = s[i];\n total -= num[current];\n }\n }\n else if (total + num[current] > target || total + (4-i)*num[num.length-1] < target) {\n --i;\n if (i >= 0) \n {\n current = s[i];\n total -= num[current];\n }\n }\n else {\n //check if current number will work\n /*if (current == 0)\n {\n */\n if (i < 3) {s[i] = current; total += num[current]; ++i;}\n else if (num[current] + total == target) {\n //bingo one answer\n ArrayList<Integer> b = new ArrayList<Integer>();\n long c = num[s[0]]*num[s[1]]*num[s[2]]*num[current];\n long d = Math.abs((long)num[s[0]]*1000000000) \n + Math.abs((long)num[s[1]]*1000000)\n + Math.abs((long)num[s[2]]*1000)\n + Math.abs((long)num[current]);\n if (c < 0) d *= -1;\n if (!m.containsKey(d))\n {\n b.add(num[s[0]]);\n b.add(num[s[1]]);\n b.add(num[s[2]]);\n b.add(num[current]);\n a.add(b);\n m.put(d, 1);\n }\n }\n /*\n } \n else if (num[current] != num[current-1])\n {\n if (i < 2) {s[i] = current; total += num[current]; ++i;}\n else if (num[current] + total == 0) {\n //bingo one answer\n ArrayList<Integer> b = new ArrayList<Integer>();\n b.add(num[s[0]]);\n b.add(num[s[1]]);\n b.add(num[s[2]]);\n a.add(b);\n }\n }\n */\n }\n }\n return a;\n }", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\tint a[] = {2,1,3,-4,-2};\n\t\t//int a[] = {1 ,2, 3, 7, 5};\n\t\tboolean found = false;\n\t\t\n\t\t//this will solve in o n^2\n\t\tfor(int i = 0 ; i < a.length ; i++){\n\t\t\tint sum = 0;\n\t\t\tfor(int j = i ; j< a.length ; j++){\n\t\t\t\tsum += a[j] ;\n\t\t\t\tif(sum == 0){\n\t\t\t\t\tfound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tif(found)\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\t\n\t\t// link : https://www.youtube.com/watch?v=PSpuM9cimxA&list=PLKKfKV1b9e8ps6dD3QA5KFfHdiWj9cB1s&index=49\n\t\tSystem.out.println(found + \" found\");\n\t\tfound = false;\n\t\t//solving with O of N with the help sets\n\t\t// x + 0 = y\n\t\tSet<Integer> set = new HashSet<>();\n\t\tint sum = 0;\n\t\tfor(int element : a){\n\t\t\tset.add(sum);\n\t\t\tsum += element;\n\t\t\tif(set.contains(sum)){\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(set);\n\t\t\n\t\tSystem.out.println(found + \" found\");\n\t\t\n\t\t\n\t\tfound = false;\n\t\t// when the sum of subarray is K\n\t\t\n\t\t//solving with O of N with the help sets\n\t\t//x + k = y >>>\n\t\tSet<Integer> set1 = new HashSet<>();\n\t\tint k = 12;\n\t\tint summ = 0;\n\t\tfor(int element : a){\n\t\t\tset1.add(summ);\n\t\t\tsumm += element;\n\t\t\tif(set1.contains(summ - k)){ // y - k = x(alredy presnt or not)\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(set1);\n\t\tSystem.out.println();\n\t\tSystem.out.println(found + \" found\");\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tArrayList<Integer> primelist = sieve(7071);\n\t\tArrayList<Double> second = new ArrayList<Double>();\n\t\tfor(int one : primelist) \n\t\t\tsecond.add(Math.pow(one, 2));\n\t\tArrayList<Double> third = new ArrayList<Double>();\n\t\tprimelist = sieve(368);\n\t\tfor(int one : primelist)\n\t\t\tthird.add(Math.pow(one, 3));\n\t\tArrayList<Double> fourth = new ArrayList<Double>();\n\t\tprimelist = sieve(84);\n\t\tfor(int one : primelist)\n\t\t\tfourth.add(Math.pow(one, 4));\n\n\t\tArrayList<Double> possibilities = new ArrayList<Double>();\n\t\tfor (int k = fourth.size() - 1; k >=0 ; k--) {\n\t\t\tfor (int j = 0; j < third.size(); j++) {\n\t\t\t\tdouble sum = fourth.get(k) + third.get(j);\n\t\t\t\tif (sum > 50000000)\n\t\t\t\t\tbreak;\n\t\t\t\telse {\n\t\t\t\t\tfor (int i = 0; i < second.size(); i++) {\n\t\t\t\t\t\tdouble nextsum = sum + second.get(i);\n\t\t\t\t\t\tif (nextsum > 50000000)\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t// I am not sure whether it can be proved that the sum is unique.\n\t\t\t\t\t\t\tif (!possibilities.contains(nextsum))\n\t\t\t\t\t\t\t\tpossibilities.add(nextsum);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint totalcount = possibilities.size();\n\t\tSystem.out.println(totalcount);\n\t}", "public static ArrayList<ArrayList<Integer>> fourSum(ArrayList<Integer> a, int k) {\n Collections.sort(a);\n System.out.println(a);\n LinkedHashMap<Integer, List<List<Integer>>> m = new LinkedHashMap<Integer, List<List<Integer>>>();\n for (int i = 0; i <= a.size() - 3; i++) {\n for (int j = i + 1; j <= a.size() - 2; j++) {\n if (m.get(a.get(i) + a.get(j)) == null) {\n ArrayList<List<Integer>> v = new ArrayList<List<Integer>>();\n List<Integer> c = new ArrayList<Integer>();\n c.add(i);\n c.add(j);\n v.add(c);\n m.put(a.get(i) + a.get(j), v);\n } else {\n List<List<Integer>> v = m.get(a.get(i) + a.get(j));\n List<Integer> c = new ArrayList<Integer>();\n c.add(i);\n c.add(j);\n v.add(c);\n m.put(a.get(i) + a.get(j), v);\n }\n\n }\n }\n LinkedHashSet<ArrayList<Integer>> res = new LinkedHashSet<ArrayList<Integer>>();\n for (int i = 2; i <= a.size() - 1; i++) {\n for (int j = i + 1; j < a.size(); j++) {\n List<List<Integer>> v = m.get(k - (a.get(i) + a.get(j)));\n if (v != null && v.size() >= 1) {\n for (List<Integer> l : v) {\n\n if (l.get(0) < l.get(1) && l.get(1) < i && l.get(1) < j) {\n //System.out.println(l.get(0) + \" \" + l.get(1) + \" \" + i + \" \" + j);\n ArrayList<Integer> out = new ArrayList<Integer>();\n out.add(a.get(l.get(0)));\n out.add(a.get(l.get(1)));\n out.add(a.get(i));\n out.add(a.get(j));\n Collections.sort(out);\n //System.out.println(out);\n res.add(out);\n }\n }\n }\n }\n }\n return new ArrayList<ArrayList<Integer>>(res);\n }", "public static void main(String[] args) {\n int a[]={1,2,3,4,4,3,2,6,6,9,9,6,7,4,7};\n\n ArrayList<Integer> al= new ArrayList<Integer>();\n\n for (int i =0;i<a.length;i++){\n int k=0;\n if (!al.contains(a[i])){\n al.add(a[i]);\n k++;\n\n for (int j=0;j<a.length;j++){\n if(a[i]==a[j]){\n k++;\n }\n }\n System.out.println(\"The number \"+ a[i] +\"repeats \"+ k+\" number of times.\");\n if (1==k)\n System.out.println(a[i]+ \" is the unique number.\");\n }\n\n\n }\n\n\n\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint arr[] = new int[n];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tarr[i] = sc.nextInt();\n\t\t}\n\t\tint sum = sc.nextInt();\n\t\tHashMap<Integer,Integer> map = new HashMap<>();\n \t\tArrays.sort(arr);\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint temp = arr[i];\n\t\t\tint reqSum = sum-temp;\n\t\t\tarr[i]=0;\n\t\t\tint l=0;\n\t\t\tint r = n-1;\n\t\t\twhile(l<r) {\n\t\t\t\t//System.out.println(\"l \" + l + \" r \" + r + \" i = \"+ i);\n\t\t\t\tif(arr[l] + arr[r]==reqSum && arr[l]!=0 && arr[r]!=0 ) {\n\t\t\t\t\tint arr2[] = new int[3];\n\t\t\t\t\tarr2[0] = temp;\n\t\t\t\t\tarr2[1] = arr[l];\n\t\t\t\t\tarr2[2] = arr[r];\n\t\t\t\t\tif(map.containsKey(arr2[0]) || map.containsKey(arr2[1]) || map.containsKey(arr2[2])) {\n\t\t\t\t\t\t\n\t\t\t\t\t}else {\n\t\t\t\t\t\tArrays.sort(arr2);\n\t\t\t\t\t\tSystem.out.println(arr2[0] + \" \" + arr2[1] + \" \" + arr2[2]);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tl++;\n\t\t\t\t}else if(arr[l] + arr[r] < reqSum) {\n\t\t\t\t\tl++;\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tr--;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tarr[i] = temp;\t\n\t\t\tmap.put(arr[i], 1);\n\t\t}\n\t}", "private static void findDuplicatesBruteForce(int[] arr) {\n\t\t\n\t\tfor(int i = 0; i< arr.length ; i++)\n\t\t{\n\t\t\tfor ( int j = i+1 ; j < arr.length ; j++)\n\t\t\t{\n\t\t\t\tif(arr[i] == arr[j])\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(arr[i] + \" is duplicate by brute force method\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public ArrayList<ArrayList<Integer>> fourSum(int[] num, int target) {\n //Create the dictionary of sum and list of pairs of indexes\n HashMap<Integer, ArrayList<ArrayList<Integer>>> dict = new HashMap<>();\n for (int i = 0; i < num.length - 1; i++) {\n for (int j = i + 1; j < num.length; j++) {\n int sum = num[i] + num[j];\n ArrayList<Integer> pair = new ArrayList<>();\n pair.add(i);\n pair.add(j);\n if (!dict.containsKey(sum)) {\n ArrayList<ArrayList<Integer>> value = new ArrayList<ArrayList<Integer>>();\n value.add(pair);\n dict.put(sum, value);\n } else {\n ArrayList<ArrayList<Integer>> value = dict.get(sum);\n value.add(pair);\n }\n }\n }\n //Use HashSet to prevent duplicate result.\n HashSet<ArrayList<Integer>> set = new HashSet<>();\n for (Integer sumA : dict.keySet()) {\n if (dict.containsKey(target - sumA)) {\n \n ArrayList<ArrayList<Integer>> pairsA = dict.get(sumA);\n ArrayList<ArrayList<Integer>> pairsB = dict.get(target - sumA);\n \n \n for (ArrayList<Integer> pair1 : pairsA) {\n for (ArrayList<Integer> pair2 : pairsB) {\n \n //Make sure there is no same element in two pairs.\n if (pair1.contains(pair2.get(0)) || pair1.contains(pair2.get(1)))\n continue;\n \n ArrayList<Integer> tmpResult = new ArrayList<>(4);\n tmpResult.add(num[pair1.get(0)]);\n tmpResult.add(num[pair1.get(1)]);\n tmpResult.add(num[pair2.get(0)]);\n tmpResult.add(num[pair2.get(1)]);\n //Sort the list and add it into the set.\n Collections.sort(tmpResult);\n set.add(tmpResult);\n }\n }\n }\n }\n ArrayList<ArrayList<Integer>> ret = new ArrayList<ArrayList<Integer>>();\n ret.addAll(set); // from hashset to arraylist \n return ret;\n }", "public static int[] answer(int[] data, int n) {\n\t\tHashMap <Integer, Integer> h = new HashMap<Integer, Integer>();\r\n\t\t\r\n\t\tfor (int i=0; i<data.length; i++){\r\n\t\t\tif (!h.containsKey(data[i])){\r\n\t\t\t\th.put(data[i], 0);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\th.put(data[i], h.get(data[i])+1);\r\n\t\t\t//h[data[i]]++;\r\n\t\r\n\t\t\tif (h.get(data[i]) > n){\r\n\t\t\t\th.put(data[i], Integer.MIN_VALUE);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tArrayList<Integer> r = new ArrayList<Integer>();\r\n\t\t\r\n\t\tfor(int i=0; i<data.length; i++){\r\n\t\t\t\r\n\t\t\tif (h.get(data[i])>0){\r\n\t\t\t\tr.add(data[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//pp(h);\r\n\t\t//System.out.println(h);\r\n\t\t\r\n\t\tint [] rr = new int [r.size()];\r\n\r\n\t\tfor(int k=0; k<r.size(); k++){\r\n\t\t\trr[k] = r.get(k);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn rr;\r\n }", "static void combinationUtil(int arr[], int data[], int start, \n\t\t\tint end, int index, int r,ArrayList<ArrayList<Integer>> setOfIntArrays) \n\t{ \n\t\t// Current combination is ready to be printed, print it \n\t\tif (index == r) { \n\t\t//System.out.println(\"\\n\");\n\t\tArrayList<Integer> lineArray = new ArrayList<Integer>();\n\t\t\n\t\t\t\tfor (int j=0; j<r; j++) {\n\t\t\t\t\t//System.out.print(data[j]); \n\t\t\t\t\t//System.out.println(\"\\n\\n\"); \n\t\t\t\t\tlineArray.add(new Integer(data[j]));\n\t\t\t\t\t}\n\t\t\t\tsetOfIntArrays.add(lineArray);\n\t\t\t\treturn; \n\t\t\t} \n\t\t// replace index with all possible elements. The condition \n\t\t// \"end-i+1 >= r-index\" makes sure that including one element \n\t\t// at index will make a combination with remaining elements \n\t\t// at remaining positions \n\t\tfor (int i=start; i<=end && end-i+1 >= r-index; i++) \n\t\t{ \n\t\t\tdata[index] = arr[i]; \n\t\t\tcombinationUtil(arr, data, i+1, end, index+1, r,setOfIntArrays); \n\t\t} \n\n\t}", "public static void main(String[] args) throws Exception {\n int arr[]= {7,9,88,-33,2,12,6,1};\n Arrays.sort(arr);\n /*for(int i=0; i<arr.length; i++)\n \t System.out.print(arr[i]+\", \");\n System.out.println(\"\\n DESC\");\n System.out.print(\"{ \");\n for(int i=arr.length-1; i>=0; i--) {\n \t if(arr[i]==arr[0])\n \t System.out.print(arr[i]);\n \t else \n \t\t System.out.print(arr[i]+\", \");\n }*/\n // System.out.print(\" }\");\n \n int[] ar= {6,2,2,5,2,2,1};\n int startIndex=0;\n int lastIndex=ar.length-1;\n //a is sumRight,b = sumLeft\n int a=0,b=0;\n /* while(true) {\n \t \n \t if(b>a) \n \t\t //1+2+2=+5\n \t\t a+=ar[lastIndex--];\n \t else \n \t\t //6+2+2\n \t\t\t b+=ar[startIndex++];\n \t\tif(startIndex>lastIndex) {\n \t\t\tSystem.out.println(startIndex);\n \t\t\tif(a==b)\n \t\t\t\tbreak;\n \t\t\t else\n \t\t\t throw new Exception(\"not a valid array\");\n \t\t\t\n \t\t}\n \t\t\t \n \t\t\n }\n System.out.println(lastIndex);\n */\n \n \n while(true) {\n \t \n \t if(b>a)\n \t\t a+= ar[lastIndex--];\n \t else\n b+=ar[startIndex++];\n \t if(startIndex>lastIndex) {\n \t\t if(a==b)\n \t\t\t break;\n \t }\n }\n System.out.println(lastIndex);\n\t}", "private static void findDuplicatesByHashTable(int[] arr) {\n\t\t\n\t\t\n\t\tHashMap<Integer, Integer> map = new HashMap<Integer, Integer>();\n\t\t\n\t\tfor(int i=0; i<arr.length ; i++)\n\t\t{\n\t\t\tif(!map.containsKey(arr[i]))\n\t\t\t{\n\t\t\t\tmap.put(arr[i], 1);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmap.put(arr[i], map.get(arr[i])+1);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor ( Map.Entry<Integer, Integer> entry : map.entrySet() )\n\t\t{\n\t\t\tif(entry.getValue() > 1 )\n\t\t\t{\n\t\t\t\tSystem.out.println(\" Duplicate is by HashTable \" + entry.getKey());\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\n\n int[] r = {1, 2, 3, 1, 2, 3, 10, 20, 30};\n\n int total = 0;\n\n for (int i = 0; i < r.length; i++) {\n int count = 0;\n\n for (int j = 0; j < r.length; j++) {\n if (r[i] == r[j]) {\n count++;\n }\n }\n if (count > 1) {\n total++;\n }\n\n }\n System.out.println(total);\n\n }", "public List<List<Integer>> threeSum(int[] nums) {\n Arrays.sort(nums);\n\n Set<List<Integer>> triplets = new HashSet<List<Integer>>();\n\n for (int i = 0; i < nums.length; i++) {\n // we choose the number at index i to pinpoint\n int a = nums[i];\n int deficit = 0 - a;\n\n // initialize our two pointers such that they're at either end of the\n // array and that they're not i\n int b = i == 0 ? 1 : 0;\n int c = i == nums.length - 1 ? nums.length - 2 : nums.length - 1;\n\n while (b < c) {\n // check if b and c add up to the deficit\n if (nums[b] + nums[c] == deficit) {\n // add it to the list\n List<Integer> triplet = new ArrayList<Integer>();\n\n triplet.add(a);\n triplet.add(nums[b]);\n triplet.add(nums[c]);\n\n Collections.sort(triplet);\n if (!triplets.contains(triplet)) {\n triplets.add(triplet);\n }\n\n\n // move pointer up and down\n c -= 1;\n if (c == i) {\n c -= 1;\n }\n\n b += 1;\n if (b == i) {\n b += 1;\n }\n } else if (nums[b] + nums[c] > deficit) {\n // if it's too large, bring top pointer down\n c -= 1;\n if (c == i) {\n c -= 1;\n }\n } else {\n // if it's too small, bring bottom pointer up\n b += 1;\n if (b == i) {\n b += 1;\n }\n }\n }\n }\n\n List<List<Integer>> last = new ArrayList<List<Integer>>(triplets);\n return last;\n }", "public static void main(String[] args) {\n int T, O, G, D;\n for ( T=0; T<10; T++ ) {\n for ( O=0; O<10; O++ ){\n for ( G=0; G<10; G++ ){\n for ( D=0; D<10; D++ ){\n if ((T*100+O*10+O)*4 == (G*1000+O*100+O*10+D)) {\n if (T!=O && T!=G && T!=D && O!=G && O!=D && G!=D) {\n System.out.println(\"T is \"+T+\",\"+ \"O is \"+O+\",\"+ \"G is \"\n +G+\",\"+ \"D is \"+D+\".\" );\n }\n }\n }\n }\n }\n } \n }", "static int beautifulTriplets(int d, int[] arr) {\n int l = arr.length;\n int count = 0;\n for (int i = 0; i < l; i++) {\n int ei = arr[i];\n for (int j = i+1; j < l; j++) {\n int ej = arr[j];\n int diffij = Math.abs(ej-ei);\n if(diffij == d){\n for (int k = j+1; k < l; k++) {\n int ek = arr[k];\n int diffjk = Math.abs(ek-ej);\n if(diffjk == d){\n count++;\n }\n }\n }\n }\n }\n return count;\n\n }", "public static int TwoSum_bruteForce(int[] a,int lo, int hi, int x)\r\n\t{\r\n\t\tint count = 0;\r\n\t\tfor (int i = lo; i < hi; ++i)\r\n\t\t{\r\n\t\t\tfor (int j = i+1; j < a.length; ++j)\r\n\t\t\t{\r\n\t\t\t\tif (a[i]+a[j] == x)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Pair: (\" + a[i] + \",\" + a[j] + \")\");\r\n\t\t\t\t\t++count;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tList<Integer> nums = new ArrayList<>();\r\n\t\t\r\n\t\tnums.add(10);nums.add(10);nums.add(10);nums.add(8);\r\n\t\tnums.add(11);nums.add(10);nums.add(10);nums.add(10);\r\n\r\n\t\tSystem.out.println(nums);\r\n\t\t\r\n\t\tList<Integer> unique1 = new ArrayList<>(); \r\n\t\t\r\n\t\t\r\n\t\t // find unique NON DUPLICATE VALUES\r\n\t\tfor(Integer num: nums) {\r\n\t\t\tif(!unique1.contains(num)) { // if unique1 doesn't contains num add it\r\n\t\t\t\tunique1.add(num); //<<<<<======= adding to unique1 num one by one\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(unique1.toString());\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t \r\n\t\t\r\n\t\tList<Integer> unique2 = new ArrayList<>();\r\n\t\t\r\n\t\tfor(int i =0; i<nums.size(); i++) { // find unique ( appearence once)\r\n\t\t\tint count=0;\r\n\t\t\t\r\n\t\t\tInteger value = nums.get(i);\r\n\t\t\tfor(int k =0; k<nums.size(); k++) {\r\n\t\t\t\tif(nums.get(k)== value && i != k) {\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(count == 0) {\r\n\t\t\t\tunique2.add(value);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(unique2);\r\n\t\t\r\n\t}", "public static boolean canThreePartsEqualSum(int[] arr) {\n int sum=0;\n int cumulative[]=new int[arr.length];\n for(int i=0;i<arr.length;i++){\n sum+=arr[i];\n cumulative[i]=sum;\n }\n for(int i=0;i<cumulative.length;i++){\n for(int j=i+1;j<cumulative.length;j++){\n if(cumulative[i]==cumulative[j]-cumulative[i]){\n if(cumulative[i]==cumulative[cumulative.length-1]-cumulative[j] && (cumulative.length-1) !=j){\n return true;\n }\n }\n }\n }\n return false;\n}", "public static List<List<Integer>> threeSum(int[] arr) {\n Set<List<Integer>> solutionSet = new HashSet<>();\n\n if (arr == null || arr.length < 3) {\n return new ArrayList<>(solutionSet);\n }\n\n Arrays.sort(arr);\n\n for (int i = 0; i < arr.length - 2; i++) {\n int j = i+1;\n int k = arr.length - 1;\n\n while (j < k) {\n int threeSum = arr[i] + arr[j] + arr[k];\n if (threeSum == 0) {\n List<Integer> solution = new ArrayList<>();\n solution.add(arr[i]);\n solution.add(arr[j]);\n solution.add(arr[k]);\n solutionSet.add(solution);\n\n j++;\n k--;\n\n while (j<k && arr[j] == arr[j+1]) {\n j++;\n }\n while (j<k && arr[k] == arr[k-1]) {\n k--;\n }\n } else if (threeSum < 0) {\n j++;\n } else {\n k--;\n }\n }\n }\n return new ArrayList<>(solutionSet);\n }", "public ArrayList<ArrayList<Integer>> fourSum_02(ArrayList<Integer> a, int b) {\n\t\t//List to store the result\n\t\tArrayList<ArrayList<Integer>> res = new ArrayList<ArrayList<Integer>>();\n \tint len = a.size();\n \tif(len < 4)\n \t return res;\n \t\n //Using the hashMap to store sum and corresponding 2 elements\n \tHashMap<Integer, Index> h = new HashMap<Integer, Index>();\n \t\n \tfor(int i = 0; i < len-1; i++) {\n \t\tfor(int j = i+1; j < len; j++) {\n \t\t\tint sum = a.get(i) + a.get(j);\n \t\t\tif(h.containsKey(b-sum)) {\n \t\t\t\t//then get the elements of the existing sum stored in hashmap\n \t\t\t\tIndex indx = h.get(b-sum);\n \t\t\t\tint exI = indx.getI();\n \t\t\t\tint exJ = indx.getJ();\n \t\t\t\tif(res.size() == 0) {\n \t\t\t\t\tArrayList<Integer> l = new ArrayList<Integer>();\n\t \t\t\t\tl.add(exI);\n\t \t\t\t\tl.add(exJ);\n\t \t\t\t\tl.add( a.get(i));\n\t \t\t\t\tl.add( a.get(j));\n\t \t\t\t\tCollections.sort(l);\n\t \t\t\t\tres.add(l);\n \t\t\t\t} else {\n\t \t\t\t\tif((exI != a.get(i)) && (exJ != a.get(j))) {\n\t \t\t\t\t\tArrayList<Integer> l = new ArrayList<Integer>();\n\t\t \t\t\t\tl.add(exI);\n\t\t \t\t\t\tl.add(exJ);\n\t\t \t\t\t\tl.add(a.get(i));\n\t\t \t\t\t\tl.add(a.get(j));\n\n\t\t \t\t\t\tCollections.sort(l);\n\t\t \t\t\t\tboolean flag = true;\n\t\t \t\t\t\t\n\t\t \t\t\t\tfor(ArrayList<Integer> ll : res) {\n\t\t \t\t\t\t\tif(ll.equals(l)) {\n\t\t \t\t\t\t\t\tflag = false;\n\t\t \t\t\t\t\t\tbreak;\n\t\t \t\t\t\t\t}\n\t\t \t\t\t\t}\n\t\t \t\t\t\tif(flag == true)\n\t\t \t\t\t\t\tres.add(l);\n\t\t \t\t\t\t\n\t \t\t\t\t}\n \t\t\t\t}\n \t\t\t} else\n \t\t\t\th.put(sum, new Index(a.get(i), a.get(j)));\n \t\t}\n \t}\n \treturn res;\n\t}", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n, i, sum;\n\t\tSystem.out.println(\"Enter the size of array & sum\");\n\t\tn = in.nextInt();\n\t\tsum = in.nextInt();\n\t\tint a[] = new int[n];\n\t\tSystem.out.println(\"Enter the array\");\n\t\tfor (i = 0; i < n; i++) {\n\t\t\ta[i] = in.nextInt();\n\t\t}\n\t\tfor (i = 0; i < n - 2; i++) {\n\t\t\tfor (int j = i + 1; j < n - 1; j++) {\n\t\t\t\tfor (int k = j + 1; k < n; k++) {\n\t\t\t\t\tif (a[i] + a[j] + a[k] == sum) {\n\t\t\t\t\t\tSystem.out.println(a[i] + \" \" + a[j] + \" \" + a[k]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\r\n\t\tint n=sc.nextInt();\r\n\t\tint arr[]=new int[n];\r\n\t\tint sum=0;\r\n\t\tfor(int i=0;i<n;i++)\r\n\t\t{\r\n\t\t\tarr[i]=sc.nextInt();\r\n\t\t\tSystem.out.println(arr[i]);\r\n\t\t}\r\n\t\tfor(int i=0;i<n;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<=i;j++)\r\n\t\t\t{\r\n\t\t\t\tif(j==i)\r\n\t\t\t\t{\r\n\t\t\t\t\tsum=sum+arr[i];\r\n\t\t\t\t}\r\n\t\t\t\tif(arr[i]==arr[j]) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"sum of distinct elements=\"+sum);\r\n\t\t\r\n\t\r\n\t}", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint[][] arr = new int[5][5];\n\t\tint[][] arr1 = new int[5][5];\n\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tfor (int j = 0; j < 5; j++) {\n\t\t\t\tarr[i][j] = in.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tfor (int j = 0; j < 5; j++) {\n\t\t\t\tarr1[i][j] = in.nextInt();\n\t\t\t}\n\t\t}\n\t\tint a = 0;\n\t\tint b = 0;\n\t\tint n = 0;\n\t\twhile (true) {\n\t\t\tn++;\n\t\t\tint cnt = 0;\n\t\t\tint count = 0;\n\t\t\tfor (int i = 0; i < 5; i++) {\n\t\t\t\tfor (int j = 0; j < 5; j++) {\n\t\t\t\t\tif (arr1[a][b] == arr[i][j]) {\n\n\t\t\t\t\t\tarr[i][j] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tb++;\n\t\t\tif (b == 5) {\n\t\t\t\ta++;\n\t\t\t\tb = 0;\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < 5; i++) {\n\t\t\t\tfor (int j = 0; j < 5; j++) {\n\t\t\t\t\tif (arr[i][j] == 0) {\n\t\t\t\t\t\tcnt++;\n\t\t\t\t\t}\n\t\t\t\t\tif (cnt == 5) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcnt = 0;\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < 5; i++) {\n\t\t\t\tfor (int j = 0; j < 5; j++) {\n\t\t\t\t\tif (arr[j][i] == 0) {\n\t\t\t\t\t\tcnt++;\n\t\t\t\t\t}\n\t\t\t\t\tif (cnt == 5) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcnt = 0;\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < 5; i++) {\n\n\t\t\t\tif (arr[i][i] == 0) {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t\tif (cnt == 5) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcnt = 0;\n\t\t\tint k = 4;\n\t\t\tfor (int i = 0; i < 5; i++) {\n\n\t\t\t\tif (arr[i][k] == 0) {\n\t\t\t\t\tcnt++;\n\t\t\t\t\tk--;\n\t\t\t\t}\n\t\t\t\tif (cnt == 5) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcnt = 0;\n\n\t\t\tif (count >= 3) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(n);\n\n\t}", "public static void printDistinctElement(int arr[]) {\r\n\t\tSet<Integer> set = new HashSet<>();\r\n\t\tfor(int num : arr){\r\n\t\t\tif(set.add(num)){\r\n\t\t\t\tSystem.out.print(num + \" \");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\r\n\t\t//System.out.println(Integer.toBinaryString(31));\r\n\t\tint n = in.nextInt();\r\n\t\tint[] arr = new int[n];\r\n\t\tfor(int i = 0 ;i < n; i++) {\r\n\t\t\tarr[i] = in.nextInt();\r\n\t\t}\r\n\t\tArrays.sort(arr);\r\n\t\tint[] arr1 = new int[n];\r\n\t\tint co = 0;\r\n\t\tfor(int i = n- 1; i >= 0; i--) {\r\n\t\t\tarr1[co++] = arr[i];\r\n\t\t}\r\n\t\tString[] str = new String[n];\r\n\t\tfor(int i = 0; i < n; i++) {\r\n\t\t\tstr[i] = Integer.toBinaryString(arr1[i]);\r\n\t\t}\r\n\t\tint[] countArr = new int[n];\r\n\t\tint[] countArr1 = new int[n];\r\n\t\tTreeSet<Integer> set = new TreeSet<Integer>(); \r\n\t\tfor(int i = 0; i < n; i++) {\r\n\t\t\tcountArr[i] = 0;\r\n\t\t\tfor(int j = 0; j < str[i].length(); j++) {\r\n\t\t\t\tif(String.valueOf(str[i].charAt(j)).equals(\"1\")) {\r\n\t\t\t\t\tcountArr[i]++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tset.add(countArr[i]);\r\n\t\t}\r\n\t\tint[] arrCpy = new int[set.size()];\r\n\t\tint ct = set.size() - 1;\r\n\t\tIterator<Integer> it = set.iterator();\r\n\t\twhile(it.hasNext()) {\r\n\t\t\tarrCpy[ct--] = it.next();\r\n\t\t}\r\n\t\tfor(int i = 0; i < arrCpy.length; i++) {\r\n\t\t\tfor(int j = 0; j < n; j++) {\r\n\t\t\t\tif(arrCpy[i] == countArr[j]) {\r\n\t\t\t\t\tSystem.out.println(arr1[j]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n List<Integer> nums1 = Arrays.asList(1,2,2);\n List<Integer> nums2 = Arrays.asList(2,2);\n\n List<int[]> pairs = nums1.stream().flatMap(\n i-> nums2.stream().map(j -> new int[] {i,j})\n ).collect(Collectors.toList());\n\n pairs.stream().map(Arrays::toString).forEach(System.out::println);\n System.out.println(\"*********************************************\");\n //return only pairs whose sum is divisible by 3\n List<int[]> pairs2 = nums1.stream().flatMap(\n i-> nums2.stream().filter(j -> (i+j)%3==0)\n .map(j -> new int[]{i,j})\n ).collect(Collectors.toList());\n pairs2.stream().map(Arrays::toString).forEach(System.out::println);\n System.out.println(\"*********************************************\");\n //return pairs whose sum is equal to 6\n List<int []> pairs3 = nums1.stream().flatMap(\n i -> nums2.stream().filter(j -> (i+j)==4).map(j -> new int[]{i,j})\n ).collect(Collectors.toList());\n pairs3.stream().map(Arrays::toString).forEach(System.out::println);\n }", "static void findDuplicates(int[] input)\n\t{\n\t\t\n\t\tint length= input.length;\n\t\t\n\t\tSystem.out.println(\"The length of the given array is = \"+length);\n\t\t\n\t\t\n\t\tint[] register= new int[input.length];\n\t\t\n\t\t\n\t\tfor(int i: input)\n\t\t{\n\t\t\tregister[i]=1;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Missing numbers in the given array\");\n\t\t\n\t\tfor(int i=1; i<register.length; i++)\n\t\t{\n\t\t\tif(register[i]==0)\n\t\t\t\tSystem.out.println(i);\n\t\t}\n\t\tfor(int a: input)\n\t\t{\n\t\t\tSystem.out.print(a);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\");\n\t\t\n\t\tSystem.out.println(\"\");\n\t\tfor(int b: register)\n\t\t{\n\t\tSystem.out.print(b);\n\t\t\n\t\t}\n\t}", "protected static void printPairsEqualToSum(int[] arr1, int[] arr2, int sum) {\n\t\t\r\n\t\tint count = 0; \r\n\t \r\n\t\t// creating an arraylist from first array to use the contains() method\r\n\t ArrayList<Integer> as = new ArrayList<Integer>(); \r\n\t \r\n\t // insert all the elements \r\n\t // of 1st array in the arraylist \r\n\t // table(unordered_set 'as') \r\n\t for (int i = 0; i < arr1.length; i++) {\r\n\t as.add(arr1[i]); \r\n\t }\r\n\t // for each element of arr2[] \r\n\t for (int j = 0; j < arr2.length; j++) {\r\n\t \r\n\t // find all cases where(x - arr2[j]) in 'as' \r\n\t if (as.contains(sum - arr2[j])) { // if pair element is found in array 1\r\n\t for (int k: as) { // repeat print for duplicate entries in the arraylist as\r\n\t \tif (k == sum - arr2[j]) { \r\n\t \tcount++; \r\n\t \tSystem.out.println(\"[\"+ (sum-arr2[j]) + \",\" + arr2[j] + \"]\"); //display in paired form\r\n\t \t}\r\n\t }\r\n\t }\r\n\t }\r\n\t \r\n\t if (count == 0) { // if no combos are found\r\n\t \tSystem.out.println(\"No pairs found.\");\r\n\t }\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tint a[] = {10,10,10,10,15};\n\t\tint len =a.length;\n\t\tint j = a[0];\n\t\t//for(int i =0;i<len;i++) {\n\t\t//\tfor(int j=0;j<=10;j++) {\n\t\t\t\tfor(int i = 0;i<len;i++) {\n\t\t\t\t\n\t\t\t\n\t\t\t\tif(j != a[i]) {\n\t\t\t\t\tfor(int k =j;k<a[i];k++) {\n\t\t\t\t\tSystem.out.println(\"missing number is :\" + k);\n\t\t\t\t\t//j=a[i];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (j < a[i+1])\n\t\t\t\t\tj++;\n\t\t\t\t//\tj=a[i];\n\t\t\t}\n\t\t\t\t\t\t\n\t\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter the size of array..\");\r\n\t\tint size=sc.nextInt();\r\n\t\tint[] arr = new int[size];\r\n\t\tint sum = 0,temp=0;\r\n\t\tfor(int i=0;i<size;i++) {\r\n\t\t\tSystem.out.println(\"Enter the number \"+(i+1));\r\n\t\t\tarr[i] = sc.nextInt();\r\n\t\t}\r\n\t\tfor(int i=0;i<size-1;i++) {\r\n\t\t\tfor(int j=i+1;j<size-1;j++) {\r\n\t\t\t\tif(arr[i]==arr[j]) {\r\n\t\t\t\t\tSystem.out.println(\"Duplicate is \"+arr[i]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public static void hasPairWithSum(int[] input, int sum) {\n\t\tMap<Integer, Integer> map = new Hashtable<>();\n\t\tint occurence = 0;\n\t\tfor (int num : input) {\n\t\t\toccurence = 1;\n\t\t\tif (map.containsKey(num)) {\n\t\t\t\toccurence = map.get(num);\n\t\t\t\toccurence++;\n\t\t\t}\n\t\t\tmap.put(num, occurence);\n\t\t}\n\n\t\tfor (int first : input) {\n\t\t\tint second = sum - first;\n\t\t\tif (map.containsKey(second)) {\n\t\t\t\toccurence = map.get(second);\n\t\t\t\tif (occurence > 0) {\n\t\t\t\t\tif (second == first) {\n\t\t\t\t\t\tif (occurence > 1) {\n\t\t\t\t\t\t\tSystem.out.println(\"[\" + first + \",\" + second + \"]\");\n\t\t\t\t\t\t\toccurence -= 2;\n\t\t\t\t\t\t\tmap.put(first, occurence);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tint firstOccurence = map.get(first);\n\t\t\t\t\t\tfirstOccurence--;\n\t\t\t\t\t\tint secondOccurence = map.get(second);\n\t\t\t\t\t\tsecondOccurence--;\n\t\t\t\t\t\tmap.put(first, firstOccurence);\n\t\t\t\t\t\tmap.put(second, secondOccurence);\n\t\t\t\t\t\tSystem.out.println(\"[\" + first + \",\" + second + \"]\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "static void findTwoMissingNumber(int a[]) {\n int miss1 = 0;\n int miss2;\n int miss1miss2 = 0;\n\n int size = a.length;\n for (int i = 0; i < size; i++) {\n miss1miss2 ^= ((i + 1) ^ a[i]);\n }\n\n miss1miss2 ^= (size + 1);\n miss1miss2 ^= (size + 2);\n\n int diff = miss1miss2 & (-miss1miss2);\n\n for (int i = 0; i < size; i++) {\n if (((i + 1) & diff) > 0)\n miss1 ^= (i + 1);\n\n if ((a[i] & diff) > 0)\n miss1 ^= a[i];\n }\n\n if (((size + 1) ^ diff) > 0)\n miss1 ^= (size + 1);\n\n if (((size + 2) ^ diff) > 0)\n miss1 ^= (size + 2);\n\n miss2 = miss1miss2 ^ miss1;\n\n System.out.println(miss1);\n System.out.println(miss2);\n }", "public static void main(String[] args) {\n\t\tint i,j,z,sumA,sumB,sumPairs;\r\n\r\n\t\tsumPairs = 0;\r\n\r\n\t\tfor (i=1;i<10000;i++){\r\n\t\t sumA = 0;\r\n\t\t for (j=1;j<i;j++){\r\n\t\t if (i%j==0) \r\n\t\t sumA += j;\r\n\t\t }\r\n\r\n\t\t sumB = 0;\r\n\t\t for (z=1;z<sumA;z++){\r\n\t\t if (sumA%z==0)\r\n\t\t sumB += z;\r\n\t\t }\r\n\r\n\t\t if (sumB == i && sumB != sumA)\r\n\t\t sumPairs += i; \r\n\t\t}\r\nSystem.out.println(sumPairs);\r\n\t\t\r\n\t}", "private void findUniqueInBoxes() {\n findUniqueInBox(1,3,1,3);\n findUniqueInBox(1,3,4,6);\n findUniqueInBox(1,3,7,9);\n findUniqueInBox(4,6,1,3);\n findUniqueInBox(4,6,4,6);\n findUniqueInBox(4,6,7,9);\n findUniqueInBox(7,9,1,3);\n findUniqueInBox(7,9,4,6);\n findUniqueInBox(7,9,7,9);\n\n }", "public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"enter number of elements to add in the array\");\n\t\tint size = sc.nextInt();\n\t\tint[] array = new int[size];\n\t\tSystem.out.println(\"enter elements to add in the array\");\n\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tarray[i] = sc.nextInt();\n\t\t}\n\t\tsc.close();\n\n\t\tSystem.out.println();\n\t\tint count = 0;\n\t\tfor (int i = 0; i < array.length - 2; i++) {\n\t\t\tfor (int j = i + 1; j < array.length - 1; j++) {\n\t\t\t\tfor (int k = i + 2; k < array.length; k++) {\n\t\t\t\t\tif (array[i] + array[j] + array[k] == 0) {\n\t\t\t\t\t\tSystem.out.println(array[i] + \" \" + array[j] + \" \" + array[k]);\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\tSystem.out.println(\"found \" + count + \" triplets that add up to zero\");\n\n\t}", "public String solve(long n, long a, long b, long c, long d, long x0, long y0, long m)\n {\n long[] count = new long[9];\n long x = x0;\n long y = y0;\n for (long t = 0; t < n; t++)\n {\n// System.out.println(x + \", \" + y);\n int i = (int) (x % 3) * 3 + (int) (y % 3);\n count[i]++;\n x = (a * x + b) % m;\n y = (c * y + d) % m;\n }\n\n long totalCount = 0;\n for (int i1 = 0; i1 < 9; i1++)\n {\n long count1 = count[i1];\n if (count1 == 0)\n {\n continue;\n }\n count[i1]--;\n for (int i2 = i1; i2 < 9; i2++)\n {\n long count2 = count[i2];\n if (count2 == 0)\n {\n continue;\n }\n count[i2]--;\n int x1 = i1 / 3;\n int y1 = i1 % 3;\n int x2 = i2 / 3;\n int y2 = i2 % 3;\n int x3 = (3 - (x1 + x2) % 3) % 3;\n int y3 = (3 - (y1 + y2) % 3) % 3;\n int i3 = (x3 % 3) * 3 + (y3 % 3);\n long count3 = count[i3];\n if (i3 >= i2 && count3 > 0)\n {\n // either i1==i2==i3 OR i1!=i2!=i3; you can never have only two i's the same.\n if (i1 == i2 && i2 == i3)\n {\n totalCount += calcCombinations(count1);//the first count value is the genuine count for that x,y coordinate.\n }\n else\n {\n totalCount += count1 * count2 * count3;\n }\n }\n count[i2]++;\n }\n count[i1]++;\n }\n\n return String.valueOf(totalCount);\n }", "public static void main(String[] args) {\n int [] A = {5,1,5,2,5,3,5,4};\n HashSet<Integer> aa = new HashSet<>();\n for (int i = 0; i <A.length ; i++) {\n if (aa.contains(A[i])) {\n System.out.println(A[i]);\n break;\n }else\n aa.add(A[i]);\n\n }\n\n }", "@Test(testName = \"duplicateElementsFromOneArrays\")\n\t public static void commonElementsFromOneArray() \n\t {\n\t int[] my_array = {1, 2, 5, 5, 6, 6, 7, 2};\n\t \n\t for (int i = 0; i < my_array.length-1; i++)\n\t {\n\t for (int j = i+1; j < my_array.length; j++)\n\t {\n\t if ((my_array[i] == my_array[j]) && (i != j))\n\t {\n\t System.out.println(\"Duplicate Element : \"+my_array[j]);\n\t }\n\t }\n\t }\n\t }", "public static void main(String[] args) {\n int []a = {1,2,3,7,8,9,13,14,15,19,20,21};\n int []b = {4,5,6,10,11,12,16,17,18,22,23,24};\n int []c = new int[a.length+b.length];\n /*\n a = new int[12];\n b = new int[12];\n c = new int[a.length+b.length];\n \n \n for (int i = 0; i < 12; i++) {\n System.out.println((i+1)+\" Digite el elemento: \");\n a[i] = entrada.nextInt();\n }\n \n for (int i = 0; i < 12; i++) {\n System.out.println((i+1)+\" Digite el elemento: \");\n b[i] = entrada.nextInt();\n \n }\n*/\n int aux1 = 0;\n int aux2 = 3;\n int aux3 = 6;\n for (int i = 0; i < 12; i++) {\n \n c[aux1] = a[i];\n aux1++;\n c[aux2] = b[i];\n aux2++;\n \n if(aux2 == aux3)\n {\n aux1 = aux3;\n aux2+=3;\n aux3 +=6;\n }\n \n }\n \n for (int i:c) {\n System.out.println(i);\n \n }\n \n }", "public static void main(String[] args){\n \n Scanner in = new Scanner(System.in );\n \n int a;\n a = in.nextInt();\n \n int b;\n b = in.nextInt();\n \n int c;\n c = in.nextInt();\n \n int d;\n d = in.nextInt();\n \n /* 24 Combinations of ABCD in total (combination is reversed when printed so it is in increasing order) */\n \n // 1: ABCD \n if (a > b & b > c & c > d) {\n System.out.println(d + \",\" + c + \",\" + b + \",\" + a);\n }\n \n // 2 ABDC \n else if (a > b & b > d & d > c) {\n System.out.println(c + \",\" + d + \",\" + b + \",\" + a);\n }\n \n // 3 ACBD \n else if (a > c & c > b & b > d) {\n System.out.println(d + \",\" + b + \",\" + c + \",\" + a);\n }\n \n // 4 ACDB \n else if (a > c & c > d & d > b) {\n System.out.println(b + \",\" + d + \",\" + c + \",\" + a);\n }\n \n // 5 ADBC\n else if (a > d & d > b & b > c) {\n System.out.println(c + \",\" + b + \",\" + d + \",\" + a);\n }\n \n // 6 ADCB\n else if (a > d & d > c & c > b) {\n System.out.println(b + \",\" + c + \",\" + d + \",\" + a);\n }\n \n // 7 BACD \n else if (b > a & a > c & c > d) {\n System.out.println(d + \",\" + c + \",\" + a + \",\" + b);\n }\n \n // 8 BADC\n else if (b > a & a > d & d > c) {\n System.out.println(c + \",\" + d + \",\" + a + \",\" + b);\n }\n \n // 9 BDAC\n else if (b > d & d > a & a > c) {\n System.out.println(c + \",\" + a + \",\" + d + \",\" + b);\n }\n \n // 10 BDCA\n else if (b > d & d > c & c > a) {\n System.out.println(a + \",\" + c + \",\" + d + \",\" + b);\n }\n \n // 11 BCAD\n else if (b > c & c > a & a > d) {\n System.out.println(d + \",\" + a + \",\" + c + \",\" + b);\n }\n \n // 12 BCDA\n else if (b > c & c > d & d > a) {\n System.out.println(a + \",\" + d + \",\" + c + \",\" + b);\n }\n \n // 13 CABD\n else if (c > a & a > b & b > d) {\n System.out.println(d + \",\" + b + \",\" + a + \",\" + c);\n }\n \n // 14 CADB\n else if (c > a & a > d & d > b) {\n System.out.println(b + \",\" + d + \",\" + a + \",\" + c);\n }\n \n // 15 CBAD \n else if (c > b & b > a & a > d) {\n System.out.println(d + \",\" + a + \",\" + b + \",\" + c);\n }\n \n // 16 CBDA\n else if (c > b & b > d & d > a) {\n System.out.println(a + \",\" + d + \",\" + b + \",\" + c);\n }\n \n // 17 CDAB\n else if (c > d & d > a & a > b) {\n System.out.println(b + \",\" + a + \",\" + d + \",\" + c);\n }\n \n // 18 CDBA\n else if (c > d & d > b & b > a) {\n System.out.println(a + \",\" + b + \",\" + d + \",\" + c);\n }\n \n // 19 DABC\n else if (d > a & a > b & b > c) {\n System.out.println(c + \",\" + b + \",\" + a + \",\" + d);\n }\n \n // 20 DACB\n else if (d > a & a > c & c > b) {\n System.out.println(b + \",\" + c + \",\" + a + \",\" + d);\n }\n \n // 21 DBAC\n else if (d > b & b > a & a > c) {\n System.out.println(c + \",\" + a + \",\" + b + \",\" + d);\n }\n \n // 22 DBCA\n else if (d > b & b > c & c > a) {\n System.out.println(a + \",\" + c + \",\" + b + \",\" + d);\n }\n \n // 23 DCAB\n else if (d > c & c > a & a > b) {\n System.out.println(b + \",\" + a + \",\" + c + \",\" + d);\n }\n \n // 24 DCBA\n else if (d > c & c > b & b > a) {\n System.out.println(a + \",\" + b + \",\" + c + \",\" + d);\n }\n\n\n\n\n \n \n }", "public static void main(String[] args) {\n System.out.println(\"Enter the number of elements in the array\");\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int[] array = new int[n];\n for (int i = 0; i < n; i++) {\n array[i] = scanner.nextInt();\n }\n System.out.println(\"Enter the sum to be found\");\n int sum = scanner.nextInt();\n\n Arrays.sort(array);\n int forwardPointer = 0;\n int backwardPointer = array.length - 1;\n int tempSum = array[forwardPointer] + array[backwardPointer];\n while (! isEqual(sum, tempSum)) {\n //System.out.println(array[forwardPointer]);\n //System.out.println(array[backwardPointer]);\n if (sum > tempSum) {\n // means we need to add bigger numbers\n forwardPointer++;\n } else {\n // means we have to add smaller numbers\n backwardPointer--;\n }\n\n if (forwardPointer >= backwardPointer) {\n // means we couldnt find anything\n System.out.println(\"Couldnt find the numbers in the given array\");\n break;\n }\n tempSum = array[forwardPointer] + array[backwardPointer];\n }\n\n if (forwardPointer < backwardPointer) {\n System.out.printf(\"The numbers are %d and %d\\n\", array[forwardPointer], array[backwardPointer]);\n }\n\n }", "public static void main(String[] args) {\n System.out.print(unique(new int[]{100, 11, 34, 11, 52, 61, 1, 34}));\n // should print: `[1, 11, 34, 52, 61]`\n\n\n }", "public static void main(String args[])\n {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int ar[] = new int[n];\n for(int i=0 ; i<n ; i++)\n {\n \n ar[i] = in.nextInt(); \n }\n for(int j=1; j<=n;j++)\n { int count =0;\n for(int k=0 ; k<n ; k++) \n { \n if(j==ar[k])\n count++;\n \n }\n if(count == 0)\n {\n System.out.print(j); \n \n }\n }\n}", "public static void main(String[] args) {\n\t\tinitValues();\n\t\tHashTable sizeSeven = new HashTable(7,2); //Create a hash table with a size of 7, relative prime given is 2\n\t\tHashTable sizeFiftyOne = new HashTable(51,5); //Create a hash table with a size of 51, relative prime given is 5\n\t\tHashTable sizeOneFiftyOne = new HashTable(151,25); //Create a hash table with a size of 151, relative prime given is 25\n\t\t\n\t\t//Populate the Hash Tables\n\t\tfor (int i = 0; i < values.length ; i++){\n\t\t\tsizeSeven.add(new HashableInt(values[i]));\n\t\t\tsizeFiftyOne.add(new HashableInt(values[i]));\n\t\t\tsizeOneFiftyOne.add(new HashableInt(values[i]));\n\t\t}\n\t\t\n\t\t//Print the stored values of the Hash Tables\n\t\tSystem.out.println(sizeSeven);\n\t\tSystem.out.println(sizeFiftyOne);\n\t\tSystem.out.println(sizeOneFiftyOne);\n\t\t\n\t\t//Search for 10 random numbers in each hash table, show weather the table contains the number and how many comparisons it took to find it or not\n\t\tSystem.out.println(\"Table Size:\\tSearch Value:\\tTable Contains?:\\t# Comparisons:\\t\");\n\t\tfor (int i = 0; i < values2.length; i++){\n\t\t\tSystem.out.println(sizeSeven.getSize()+\"\\t\\t\"+values2[i]+\"\\t\\t\"+sizeSeven.contains(new HashableInt(values2[i]))+\"\\t\\t\\t\"+sizeSeven.getNumberCompares());\n\t\t\tSystem.out.println(sizeFiftyOne.getSize()+\"\\t\\t\"+values2[i]+\"\\t\\t\"+sizeFiftyOne.contains(new HashableInt(values2[i]))+\"\\t\\t\\t\"+sizeFiftyOne.getNumberCompares());\n\t\t\tSystem.out.println(sizeOneFiftyOne.getSize()+\"\\t\\t\"+values2[i]+\"\\t\\t\"+sizeOneFiftyOne.contains(new HashableInt(values2[i]))+\"\\t\\t\\t\"+sizeOneFiftyOne.getNumberCompares());\n\t\t}\n\t}", "public static void main(String[] args) throws IOException {\n\t\tbr = new BufferedReader(new FileReader(new File(\"input.txt\")));\r\n\t\tSystem.setOut(new PrintStream(new File(\"output.txt\")));\r\n\t\tint T = readInt();\r\n\t\t\r\n\t\tfor (int ind = 1; ind<=T; ind++) {\r\n\t\t\tSystem.out.print(\"Case #\" + ind + \": \");\r\n\t\t\t\r\n\t\t\tint N = readInt();\r\n\t\t\tint[] ar = readIntArr();\r\n\t\t\tfor (int i = 0; i < N; i++)ar[i]--;\r\n\t\t\tboolean used[] = new boolean[N];\r\n\t\t\tint ans = 0;\r\n\t\t\tint pairMax = 0;\r\n\t\t\tint cycleMax = 0;\r\n\t\t\tint cyclePair = 0;\r\n\t\t\tint pair = 0;\r\n\t\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\t\tif (!used[i]) {\r\n\t\t\t\t\tList<Integer> list = new LinkedList<Integer>();\r\n\t\t\t\t\tlist.add(i);\r\n\t\t\t\t\tused[i] = true;\r\n\t\t\t\t\tint j = ar[i];\r\n\t\t\t\t\twhile(!list.contains(j) && !used[j]) {\r\n\t\t\t\t\t\tlist.add(j);\r\n\t\t\t\t\t\tused[j] = true;\r\n\t\t\t\t\t\tj = ar[j];\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!list.contains(j))continue;\r\n\t\t\t\t\tif (list.size() == 2)pair++;\r\n\t\t\t\t\tboolean removed = false;\r\n\t\t\t\t\twhile(list.get(0) != j){list.remove(0);removed = true;}\r\n\t\t\t\t\tif (list.size() > 2 && list.size() > cycleMax) cycleMax = list.size();\r\n\t\t\t\t\tif (list.size() == 2) {\r\n\t\t\t\t\t\tint a = list.remove(0);\r\n\t\t\t\t\t\tint b = list.remove(0);\r\n\t\t\t\t\t\tint tmp = 2;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tboolean us[] = new boolean[N];\r\n\t\t\t\t\t\t\tus[a] = true;\r\n\t\t\t\t\t\t\tus[b] = true;\r\n\t\t\t\t\t\t\t//System.out.println(\" test \" + a + b);\r\n\t\t\t\t\t\t\tSet<Integer> set = new HashSet<Integer>();\r\n\t\t\t\t\t\t\tset.add(a);\r\n\t\t\t\t\t\t\twhile (true) {\r\n\t\t\t\t\t\t\t\tboolean found = false;\r\n\t\t\t\t\t\t\t\tSet<Integer> tSet = new HashSet<Integer>();\r\n\t\t\t\t\t\t\t\tfor (int ii = 0; ii < N; ii++) {\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tif (!us[ii] && set.contains(ar[ii])) {\r\n\t\t\t\t\t\t\t\t\t\tus[ii] = true;\r\n\t\t\t\t\t\t\t\t\t\tfound = true;\r\n\t\t\t\t\t\t\t\t\t\ttSet.add(ii);\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\tif (found)tmp++;\r\n\t\t\t\t\t\t\t\tif (!found)break;\r\n\t\t\t\t\t\t\t\tset.addAll(tSet);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tset = new HashSet<Integer>();\r\n\t\t\t\t\t\t\tset.add(b);\r\n\t\t\t\t\t\t\twhile (true) {\r\n\t\t\t\t\t\t\t\tboolean found = false;\r\n\t\t\t\t\t\t\t\tSet<Integer> tSet = new HashSet<Integer>();\r\n\t\t\t\t\t\t\t\tfor (int ii = 0; ii < N; ii++) {\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tif (!us[ii] && set.contains(ar[ii])) {\r\n\t\t\t\t\t\t\t\t\t\tus[ii] = true;\r\n\t\t\t\t\t\t\t\t\t\tfound = true;\r\n\t\t\t\t\t\t\t\t\t\ttSet.add(ii);\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\tif(found)tmp++;\r\n\t\t\t\t\t\t\t\tif (!found)break;\r\n\t\t\t\t\t\t\t\tset.addAll(tSet);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//if (removed) {\r\n\t\t\t\t\t\t//\tif (tmp > cyclePair)cyclePair = tmp;\r\n\t\t\t\t\t\t//} else {\r\n\t\t\t\t\t\t pairMax += tmp;\r\n\t\t\t\t\t\t//}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//cyclePair += 2 * pair;\r\n\t\t\t//if (pair > 1) pairMax += 2 * (pair - 1);\r\n\t\t\tans = Math.max(cyclePair, pairMax);\r\n\t\t\tans = Math.max(cycleMax, ans);\r\n\t\t\tSystem.out.println(ans);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\n int[] arr={1,2,2,2,3,4,4,45}; // 1 3 45\n int[] array={};\n int j=0;\n for (int each:arr){\n int count=0;\n for (int i = 0; i <arr.length ; i++) {\n if (each==arr[i]){\n count++;\n }\n }\n if (count==1){\n System.out.println(each+\" \");\n // array[j++]=each;\n }\n }\n System.out.println(Arrays.toString(array));\n }", "public static void main(String[] args) {\n\t\tList<List<Integer>> res = combinationSum2(new int[]{1,1,2,2,4,5,5,6,7,8,9}, 17);\n\t\t//expected:<[[8, 9], [1, 7, 9], [2, 6, 9], [2, 7, 8], [4, 5, 8], [4, 6, 7], [5, 5, 7], \n\t\t//[1, 1, 6, 9], [1, 1, 7, 8], [1, 2, 5, 9], [1, 2, 6, 8], [1, 4, 5, 7], [1, 5, 5, 6], \n\t\t//[2, 2, 4, 9], [2, 2, 5, 8], [2, 2, 6, 7], [2, 4, 5, 6], [1, 1, 2, 4, 9], [1, 1, 2, 5, 8], \n\t\t//[1, 1, 2, 6, 7], [1, 1, 4, 5, 6], [1, 2, 2, 4, 8], [1, 2, 2, 5, 7], [1, 2, 4, 5, 5], [1, 1, 2, 2, 4, 7], \n\t\t//[1, 1, 2, 2, 5, 6]]>\n\t\t//but was:\n\t\tfor (int i = 0; i < res.size(); i++) {\n\t\t\tfor (int num : res.get(i)) {\n\t\t\t\tSystem.out.print(num + \", \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public int fourSumCount(int[] A, int[] B, int[] C, int[] D) {\n Map<Integer, Integer> map = new HashMap<>();\n\n for(int i=0; i<C.length; i++) {\n for(int j=0; j<D.length; j++) {\n int sum = C[i] + D[j];\n map.put(sum, map.getOrDefault(sum, 0) + 1);\n }\n }\n\n int res=0;\n for(int i=0; i<A.length; i++) {\n for(int j=0; j<B.length; j++) {\n res += map.getOrDefault(-1 * (A[i]+B[j]), 0);\n }\n }\n\n return res;\n}", "public static boolean find3Numbers(int A[], int n, int X) { \n \n // Your code \n for(int i=0;i<n-2;i++)\n {\n HashSet<Integer> set = new HashSet<>();\n int toFind=X-A[i];\n for(int j=i+1;j<n;j++)\n {\n if(set.contains(toFind-A[j]))\n {\n return true;\n }\n set.add(A[j]);\n }\n }\n return false;\n }", "public static void twoSumForFourSum(int[] nums, int target, int low, int high, ArrayList<List<Integer>> fourSumList,\n int z1, int z2) {\n\n if (low >= high)\n return;\n\n if (2 * nums[low] > target || 2 * nums[high] < target)\n return;\n\n int i = low, j = high, sum, x;\n while (i < j) {\n sum = nums[i] + nums[j];\n if (sum == target) {\n fourSumList.add(Arrays.asList(z1, z2, nums[i], nums[j]));\n\n x = nums[i];\n while (++i < j && x == nums[i]) // avoid duplicate\n ;\n x = nums[j];\n while (i < --j && x == nums[j]) // avoid duplicate\n ;\n }\n if (sum < target)\n i++;\n if (sum > target)\n j--;\n }\n return;\n}", "public static void main(String[] args) {\n\t\tint i,j,k;\r\n\t\tfor(i=1;i<=3;i++) {\r\n\t\t\tfor(j=1;j<=3;j++) {\r\n\t\t\t\tfor(k=1;k<=3;k++) {\r\n\t\t\t\t\tif(i!=j && j!=k && k!=i) {\r\n\t\t\t\t\tSystem.out.println(i+\"\"+j+\"\"+k);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tint[] arr = { 4, 1, 1, 4, 2, 3, 4, 4, 1, 2, 4, 9, 3 };\n\t\tint number;\n\t\tint count = 1;\n\t\tint maxCount = 1;\n\t\tint index=0;\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tnumber = arr[i];\n\t\t\tfor (int j = i + 1; j < arr.length; j++) {\n\t\t\t\tif (number == arr[j]) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (maxCount < count) {\n\t\t\t\tmaxCount = count;\n\t\t\t\tindex = i;\n\t\t\t}\n\t\t\tcount=1;\n\t\t}\n\t\tSystem.out.println(arr[index]+\"->\"+maxCount+\" times\");\n\t}", "private static void second(int[] arr, int sum){\n\n Map<Integer,Boolean> map = new Hashtable<>();\n\n for(int i:arr){\n\n if (map.containsKey(sum - i)){\n System.out.println(i + \" , \" + (sum-i));\n }\n else{\n map.put(i, true);\n }\n\n }\n\n }", "static boolean find3Numbers(int A[], int arr_size, int sum) {\n\t\t// Fix the first element as A[i] \n\t\tfor (int i = 0; i < arr_size - 2; i++) {\n\t\t\t// Find pair in subarray A[i+1..n-1] \n\t\t\t// with sum equal to sum - A[i] \n\t\t\tHashSet<Integer> s = new HashSet<Integer>();\n\t\t\tint curr_sum = sum - A[i];\n\t\t\tfor (int j = i + 1; j < arr_size; j++) {\n\t\t\t\tif (s.contains(curr_sum - A[j])) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\ts.add(A[j]);\n\t\t\t}\n\t\t}\n\n\t\t// If we reach here, then no triplet was found \n\t\treturn false;\n\t}", "public static void main(String[] args) {\n\t\tint[] nums = {1,1,2,3,4,3,4};\n\t\tfor(int i=0; i<nums.length;i++) {\n\t\t\tint count = 0;\n\t\t\tfor(int j=0; j<nums.length; j++) {\n\t\t\t\tif(nums[i]==nums[j]) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\tif(count==1) {\n\t\t\t\tSystem.out.println(nums[i]);\n\t\t\t}\n\t\t}\n\n\t}", "private static void get4ElementsSumCountFastest(String inputLine, int target) {\n String[] arr = inputLine.split(\" \");\n if (arr.length < 3) {\n System.out.println(0);\n return;\n }\n\n Map<Integer, Set<String>> pairSumMap = new HashMap<>();\n List<Integer> list = new ArrayList<>(arr.length);\n for (String s : arr) {\n list.add(Integer.parseInt(s.trim()));\n }\n\n int sum = 0, diff = 0;\n for (int i = 0; i < arr.length; i++) {\n for (int j = i + 1; j < arr.length; j++) {\n sum = list.get(i) + list.get(j);\n if (sum < target) {\n pairSumMap.putIfAbsent(sum, new HashSet<>());\n pairSumMap.get(sum).add(i + \"-\" + j);\n }\n }\n }\n\n for (Map.Entry<Integer, Set<String>> mk : pairSumMap.entrySet()) {\n diff = target - mk.getKey();\n if (pairSumMap.containsKey(diff)) {\n Set<String> indexesList = mk.getValue();\n for (String index : indexesList) {\n int indexOrgX = Integer.parseInt(index.split(\"-\")[0]);\n int indexOrgY = Integer.parseInt(index.split(\"-\")[1]);\n for (String newIdx : pairSumMap.get(diff)) {\n int indexNewX = Integer.parseInt(newIdx.split(\"-\")[0]);\n int indexNewY = Integer.parseInt(newIdx.split(\"-\")[1]);\n if (indexOrgX != indexNewX && indexOrgX != indexNewY && indexOrgY != indexNewX && indexOrgY != indexNewY) {\n System.out.println(1);\n return;\n }\n }\n }\n }\n }\n System.out.println(0);\n }", "public static void main(String[] args) {\n\t\tint a[] = {1,2,2,6,7,3,4,4,5,5,6,7};\n\t\t\n\t\t\n\t\tMap<Integer,Integer> map =new HashMap<Integer,Integer>();\n\t\t\n\t\tfor (Integer num :a) {\n\t\t\tInteger Count =map.get(num);\n\t\t\tif(Count==null) {\n\t\t\t\tmap.put(num, 1);\n\t\t\t}else {\n\t\t\t\tmap.put(num, ++Count);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tSet<Entry<Integer, Integer>> entryset =map.entrySet();\n\t\tArrayList<Integer> list =new ArrayList<Integer>();\n\t\tfor(Entry<Integer, Integer> entry :entryset) {\n\t\t\tif(entry.getValue()>1) {\n\t\t\t\tlist.add(entry.getKey());\n\t\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(\"Duplicates are \" +list);\n\t\t\n\t\tSet<Entry<Integer, Integer>> entryset1 =map.entrySet();\n\t\tArrayList<Integer> nonduplist =new ArrayList<Integer>();\n\t\tfor(Entry<Integer, Integer> entry1 :entryset1) {\n\t\t\tif(entry1.getValue()==1) {\n\t\t\t\tnonduplist.add(entry1.getKey());\n\t\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(\"Non Duplicates are \" +nonduplist);\n\t\t\n \n}", "public int sol2(int[] inArr) \n\t{\n\t\tSet<Integer> set= new HashSet<>();\n\t\tfor (int i : inArr) {\n\t\t\tif(set.contains(i)) {\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\t\tint a[] = { 1, 2, 3, 6, 7, 8, 2, 3 };\r\n\r\n\t\tSystem.out.println(\"The Duplicates in the array is: \");\r\n\t\t\r\n\t\t//1 1\r\n\r\n\t\tfor (int i = 0; i < a.length; i++) {\r\n\t\t\tfor (int j=i+1; j < a.length; j++) {\r\n\t\t\t\tif (a[i] == a[j]) {\r\n\t\t\t\t\tSystem.out.println(a[i]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n int []a={1,2,1,2,1,2,2,1,2,1,2,2};\r\n int count=1;\r\n Arrays.sort(a); ///1 1 1 2 2 3 3 3 \r\n int n=a.length;\r\n int temp=0,dum=0,countaaa=1;\r\n for(int i=0;i<n-1;i++)\r\n {\r\n\t if(a[i]==a[i+1])\r\n\t {\r\n\t\t count++;//1 ///how many \r\n\t\t temp=a[i];//1///tamil nadu\r\n\t }\r\n\t else\r\n\t { \r\n\t\t if(x>=y)\r\n\t\t {\r\n\t\t\t if(a[i])\r\n\t\tdum=a[i];//1///andhra\r\n\t\tcountaaa=count;//2///how many\r\n\t\tcount=1;\r\n\t\t }\r\n\t }\r\n }\r\n System.out.println(countaaa);\r\n System.out.println(count);\r\n if(countaaa>count)\r\n\t System.out.println(\"A: \"+dum+\" count: \"+countaaa);\r\n else\r\n System.out.println(temp+\" \"+count);\r\n\t}", "public void triplet(int[] b,int n){\r\n\t\tint count=0;\r\n\t\tfor(int i=0;i<n;i++){\r\n\t\t\tfor(int j=i+1;j<n-1;j++){\r\n\t\t\t\tfor(int k=j+1;k<n-2;k++){\r\n\t\t\t\t\tif(b[i]+b[j]+b[k]==0){\r\n\t\t\t\t\t\tSystem.out.println(b[i]+\" \"+b[j]+\" \"+b[k]);\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"no of distinct triplet is:\"+count);\t\r\n\r\n\t}", "public Collection<MatchingPair> matchingPairs(Collection<Integer> values, Integer targetSum)\n {\n HashMap<Integer, Integer> tableCompteur = new HashMap<>();\n LinkedHashMap<Integer, Integer> tablePaire = new LinkedHashMap<Integer, Integer>();\n Collection<MatchingPair> paireSansDuplication = new LinkedList();\n Collection<MatchingPair> solution = new LinkedList();\n\n // On itere sur les valeurs donnee pour savoir le compte de chaque valeur\n for (Integer valeur : values)\n {\n if (tableCompteur.containsKey(valeur))\n {\n // Partie Compteur\n Integer compteur = tableCompteur.get(valeur);\n compteur++;\n tableCompteur.put(valeur, compteur);\n }\n else {\n tableCompteur.put(valeur, 0);\n }\n\n }\n\n // On itere sur les valeurs donnee pour savoir les paires\n for (Integer element : values)\n {\n int temp = targetSum - element;\n if (tablePaire.containsKey(element))\n {\n if (tablePaire.get(element) != null)\n {\n paireSansDuplication.add(new MatchingPair(element, temp));\n }\n // si la table contient l'element on met nul pour ne pas avoir de repetition\n tablePaire.put(temp, null);\n }\n else if (!tablePaire.containsKey(element))\n {\n tablePaire.put(temp, element);\n }\n }\n\n // On trouve le minimum count entre les paire et leur compte pour tenir en compte de toutes les possibilites. Ici le meilleur cas reste O(n) ( pas de paire)\n for (MatchingPair paire : paireSansDuplication)\n {\n if (paire != null) { // verification au debug pr erreur nullpointer\n int a = tableCompteur.get(paire.first);\n int b = tableCompteur.get(paire.second);\n int minCount = Math.min(a+1, b+1);\n for (int i = 0; i < pow(minCount, 2); i++)\n {\n solution.add(new MatchingPair(paire.first, paire.second));\n }\n }\n }\n return solution;\n }", "static public void findPossibleTrianglesCount_V1(int[] arr, int n){\n \r\n int i,j,k; //loop or index variables\r\n int nTriangles = 0;\r\n \r\n for(i=0; i<n-2; i++){\r\n for(j=i+1; j<n-1; j++){\r\n for(k=j+1; k<n; k++){\r\n if(arr[i] != arr[j] && arr[i] != arr[k] && arr[j] != arr[k]){\r\n if(arr[i]+arr[j] > arr[k] && arr[i]+arr[k] > arr[j] && arr[j]+arr[k] > arr[i] ){ //a+b > c \r\n System.out.println(arr[i] + \" , \" + arr[j] + \" , \" + arr[k]);\r\n nTriangles+=1;\r\n }\r\n } //if\r\n } //innermost for k\r\n } //inner for j\r\n } //outer for i\r\n \r\n System.out.println(\"Number of possible triangles: \" + nTriangles);\r\n }", "public static void main(String[] args) {\n\t\tint lotto_com[] = new int[6]; int lotto_user[] = new int[6]; int i;\n\t\tint count=0;\n\t\tint match_count=0;\n\t\twhile(count<lotto_com.length){\n\t\t\tlotto_com[count] =((int)(Math.random()*2000)%45)+1;\n\t\t\tfor(i=0;i<count;i++){\n\t\t\t\tif(lotto_com[i]==lotto_com[count]){\n\t\t\t\t\tlotto_com[count]=0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(lotto_com[count]>0){\n\t\t\t\tcount++;\n\t\t\t}\n\n\t}\n\t\tcount=0;\n\t\twhile(count<lotto_user.length){\n\t\t\twhile((lotto_user[count] =getInput().readInt(\"원하는 \"+(count+1)+\"번째 로또 숫자를 입력하세요 \"))<1||lotto_user[count]>45){\n\t\t\t\tprintline(\"=> 잘못 입력하셨습니다.\");\n\t\t\t}\n\t\t\tfor(i=0;i<count;i++){\n\t\t\t\tif(lotto_user[i]==lotto_user[count]){\n\t\t\t\t\tlotto_user[count]=0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(lotto_user[count]>0){\n\t\t\t\tfor(i=0;i<=count;i++){\n\t\t\t\t\tif(lotto_user[count]==lotto_com[i]){\n\t\t\t\t\t\tmatch_count++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tprintline(\"=> 잘못 입력하셨습니다.\");\n\t\t\t}\n\n\t}\n\t\tprintline(\"\");\n\t\tprint(\"이번 주의 로또 당첨 번호는 \");\n\t\tfor(i=0;i<lotto_com.length;i++){\n\t\t\tprint(lotto_com[i]+\" \");\n\t\t}\n\t\tprintline(\"입니다.\\n\");\nprintf(\"일치하는 로또 번호는 %d개 입니다.\",match_count);\n\t}", "public List<List<Integer>> threeSum(int[] nums) {\n List<List<Integer>> result = new ArrayList<>(nums.length);\n\n // Prepare\n Arrays.sort(nums);\n// int firstPositiveIndex = 0;\n// int negativeLength = 0;\n// List<Integer> numsFiltered = new ArrayList<>();\n// for (int i = 0; i < nums.length; i++) {\n// if (i == 0 || i == 1 || nums[i] == 0 || (nums[i] != nums[i-2])) {\n// numsFiltered.add(nums[i]);\n// if ((nums[i] >= 0) && (firstPositiveIndex == 0)) {\n// firstPositiveIndex = numsFiltered.size() - 1;\n// }\n// if ((nums[i] <= 0)) {\n// negativeLength = numsFiltered.size();\n// }\n// }\n// }\n// nums = numsFiltered.stream().mapToInt(i->i).toArray();\n\n // Func\n\n for(int i=0; (i < nums.length) && (nums[i] <= 0); i++) {\n if (i != 0 && nums[i] == nums[i-1]) {\n continue;\n }\n for(int j=i+1; j<nums.length; j++) {\n if (j != i+1 && nums[j] == nums[j-1]) {\n continue;\n }\n for(int k=nums.length-1; (k>j) && nums[k] >= 0; k--) {\n if (k != nums.length-1 && nums[k] == nums[k+1]) {\n continue;\n }\n int sum = nums[i]+nums[j]+nums[k];\n if (sum > 0) {\n continue;\n } else if (sum < 0) {\n break;\n }\n\n List<Integer> ok = new ArrayList<>();\n ok.add(nums[i]);\n ok.add(nums[j]);\n ok.add(nums[k]);\n result.add(ok);\n break;\n }\n }\n }\n\n// System.out.println(\"Finish time = \" + (System.nanoTime() - start) / 1_000_000);\n// System.out.println(\"result size = \" + result.size());\n\n return result;\n }", "public static void main(String[] args) {\r\n\t\t\r\n\t\tint arr[] = {5,7,2,4,1,9,3,6};\r\n\t\tint num = 9;\r\n\t\tint pairarr[][] = new int[arr.length][2];\r\n\t\tint x=0;\r\n\t\tfor(int i=0; i<arr.length; i++){\r\n\t\t\tif(arr[i]<num){\r\n\t\t\t\tfor(int j=i+1; j<arr.length; j++){\r\n\t\t\t\t\tif(arr[i]+arr[j] == num){\r\n\t\t\t\t\t\tSystem.out.println(\"The pair is : \" + arr[i] + \" and \" + arr[j]);\r\n\t\t\t\t\t\tpairarr[x][0] = arr[i];\r\n\t\t\t\t\t\tpairarr[x][1] = arr[j];\r\n\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i=0; i<x ; i++){\r\n\t\t\tfor(int j=0; j<2; j++){\r\n\t\t\t\tSystem.out.print(pairarr[i][j] + \", \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n\r\n\t\tint[] a = {23,12,45,98,54};\r\n\t\t\r\n\t\tint [] result = new int [6]; //{54,98,45,12,23}\r\n\t\t\r\n\t\tint [] b = new int[6];\r\n\t\r\n\t\t\r\n\t\tfor(int i =0; i<a.length; i++) {\r\n\t\t\tresult[5 - i] = a[i];\r\n\t\t}\r\n\t\tfor(int i : result) {\r\n\t\t\tSystem.out.println(i);\r\n\t\t}\r\n\t\t\r\n\t\t//a 배열과 b배열의 값은 index 해당하는 값을 더하고 그 결과가 3의 배수이면 result 의 \r\n\t\t//해당 index에 값을 5배 하여 저장하고 그렇지 않은 index에는 10을 저장함 \r\n\t\t\r\n\t\tfor (int i=0; i<6; i++) {\r\n\t\t\tif((a[i] + b[i])%3 ==0)\r\n\t\t\t{\r\n\t\t\t\tresult[i] = a[i] + b[i]*5;\r\n\t\t\t}\r\n\t\t\telse result[i] = 10;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "private static boolean tripletWithSumExists(int[] arr, int expectedSum){\n Set<Integer> observedElems = new HashSet<>();\n int size = arr.length;\n\n observedElems.add(arr[0]);\n\n for(int i=1; i<size-1; ++i){\n for(int j=i+1; j<size; ++j){\n int complement = expectedSum - (arr[i] + arr[j]);\n if(observedElems.contains(complement))\n return true;\n }\n observedElems.add(arr[i]);\n }\n return false;\n }", "public List<List<Integer>> fourSum_optimization(int[] nums, int target) {\n int len = nums.length;\n Arrays.sort(nums);\n if (len < 4)\n return Collections.emptyList();\n List<List<Integer>> arr = new ArrayList<>();\n\n for (int i = 0; i < len - 1; i++) {\n for (int j = i + 1; j < len - 1; j++) {\n int Left = j + 1;\n int Right = len - 1;\n int left_target_sum = target - nums[i] + nums[j];\n\n while (Left < Right) {\n int two_sum = nums[Left] + nums[Right];\n if (two_sum < left_target_sum)\n Left++;\n else if (two_sum > left_target_sum)\n Right--;\n else {\n List<Integer> arr2 = new ArrayList<>();\n if (left_target_sum + two_sum == target) {\n arr2.add(nums[i]);\n arr2.add(nums[j]);\n arr2.add(nums[Left]);\n arr2.add(nums[Right]);\n arr.add(arr2);\n }\n while (Left < Right && nums[Left] == arr2.get(2))\n ++Left;\n while (Left < Right && nums[Right] == arr2.get(3))\n --Right;\n }\n }\n while (i + 1 < len && nums[i + 1] == nums[i])\n ++i;\n while (j + 1 < len && nums[j + 1] == nums[j])\n ++j;\n }\n }\n\n return arr;\n }", "public static void sampling(String[][][] god){\n Scanner myScanner = new Scanner(System.in);\n String letters = \"AA\";\n String numbers = \"0000\";\n \n System.out.print(\"Enter a 2 characters:\");\n letters = myScanner.nextLine();\n String uppercase = letters.toUpperCase();\n System.out.print(\"Enter a 4 integer sequence:\");\n numbers = myScanner.nextLine();\n \n String code = uppercase + numbers;\n System.out.print(code);\n \n int findCount = 0;\n \n for(int i = 0; i < god.length; i++){\n for(int j = 0; j < god[i].length; j++){\n for(int k = 0; k < god[i][j].length; k++){\n if(god[i][j][k].equals(code)){\n System.out.print(\"The code was found at position (\" + i + \",\" + j + \",\" + k + \")\");\n findCount++; \n }\n }\n }\n }\n \n if (findCount == 0){\n System.out.print(\"Code not found.\");\n }\n \n }", "public static int[] twoSum(int[] numbers, int target) {\n // Start typing your Java solution below\n // DO NOT write main() function\n int[] aux = new int[numbers.length];\n HashMap<Integer, Integer> valueToIndex = new HashMap<Integer, Integer>();\n for (int i = 0; i < numbers.length; i++) {\n valueToIndex.put(numbers[i], i);\n aux[i] = numbers[i];\n }\n \n int i = 0, j = numbers.length - 1;\n boolean found = false;\n \n Arrays.sort(aux);\n \n while (i != j) {\n if (aux[i] + aux[j] < target) i++;\n else if (aux[i] + aux[j] > target) j--;\n else {\n found = true;\n break;\n }\n }\n \n if (!found) return null;\n \n int[] result = new int[2];\n if (aux[i] == aux[j]) { /* Handle duplicates */\n int first = -1, second = -1;\n for (int k = 0; k < numbers.length; k++) {\n if (numbers[k] == aux[i]) {\n if (first == -1) {\n first = k;\n } else if (second == -1) {\n second = k;\n break;\n }\n }\n }\n result[0] = first + 1;\n result[1] = second + 1;\n return result;\n }\n \n \n if (valueToIndex.get(aux[i]) < valueToIndex.get(aux[j])) {\n result[0] = valueToIndex.get(aux[i]) + 1;\n result[1] = valueToIndex.get(aux[j]) + 1;\n } else {\n result[0] = valueToIndex.get(aux[j]) + 1;\n result[1] = valueToIndex.get(aux[i]) + 1;\n }\n return result;\n }", "public static void main(String[] args) {\n\t\tArrays.fill(arr, 1);\n\t\tlong startTime = System.nanoTime();\n\t\t// Traverse till square root of MAX\n\t\t// Using logic similar to sieve of eratosthenes to\n\t\t// populate factor sum array\n\t\tint limit = (int)Math.sqrt(MAX);\n\t\tfor (int i = 2; i <= limit; ++i) {\n\t\t\tint j = i+i;\n\t\t\tint count = 2;\n\t\t\twhile (j <= MAX){\n\t\t\t\t// As we already add count (j/i) to the factor sum when adding i,\n\t\t\t\t// we don't add when i is equal to or greater than count\n\t\t\t\tif (i < count) {\n\t\t\t\t\t// Adding i and count (j/i) to the factor sum of j\n\t\t\t\t\tarr[j] += i;\n\t\t\t\t\tarr[j] += count;\n\t\t\t\t}\n\t\t\t\tj += i;\n\t\t\t\tcount++;\n\t\t\t} \n\t\t}\n\t\t\n\t\tint count = 0;\n\t\tSystem.out.println(\"The following are amicable numbers\");\n\t\tfor (int i = 2; i <= MAX; ++i) {\n\t\t\tint num = arr[i];\n\t\t\tif (num <= MAX && num > i) {\n\t\t\t\tif (arr[num] == i) {\n\t\t\t\t\tSystem.out.println(count+\": \"+i+\" and \"+num);\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tlong endTime = System.nanoTime();\n\t\tdouble duration = timeInSec(endTime,startTime) ;\n\t\tSystem.out.println(\"Run time \" + duration + \" : secs\");\t\t\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tint d1 = 0;\r\n\t\tint d2 = 0;\r\n\t\tint d3 = 0;\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\t\r\n\t\tint n = in.nextInt();\r\n\t\t\r\n\t\tint a[][] = new int[n][n];\r\n\t\t\r\n\t\tfor(int i = 0; i < n; i++){\r\n\t\t\tfor(int j = 0; j < n; j++){\r\n\t\t\t\t\r\n\t\t\t\ta[i][j] = in.nextInt();\r\n\t\t\t\tif(a[i] == a[j]){\r\n\t\t\t\t\t\r\n\t\t\t\t\td1 = d1 + a[i][j];\r\n\t\t\t\t\t\r\n\t\t\t\t}\t\r\n\t\t\t\t\r\n\t\t\t\tif(a[i] == a[n-j-1]){\r\n\t\t\t\t\td2 = d2 + a[i][j];\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\td3 = d1 - d2;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"d1 : \" + d1);\r\n\t\tSystem.out.println(\"d2 : \" + d2);\r\n\t\tSystem.out.println(\"the difference is : \"+ d3);\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 ArrayList<ArrayList<Integer>> threeSum(int[] num) {\n // Start typing your Java solution below\n // DO NOT write main() function\n\n // A three pointer solution\n ArrayList<ArrayList<Integer>> res = new ArrayList<ArrayList<Integer>>();\n if (num.length < 3) return res;\n Arrays.sort(num);\n HashSet hashSet = new HashSet();\n\n for (int i = 0; i < num.length - 2; i++) {\n int leftP = i + 1;\n int rightP = num.length - 1;\n\n while (leftP < rightP) {\n if (num[i] + num[leftP] + num[rightP] > 0) rightP--;\n else if (num[i] + num[leftP] + num[rightP] < 0) leftP++;\n else {\n ArrayList<Integer> temp = new ArrayList<Integer>();\n temp.add(num[i]);\n temp.add(num[leftP]);\n temp.add(num[rightP]);\n if (hashSet.add(temp)) res.add(temp);\n rightP--;\n leftP++;\n }\n }\n }\n return res;\n }", "@Test\n\tpublic void test() {\n\t\tTestUtil.testEquals(new Object[][]{\n\t\t\t\t{4, 2, 7, 1, 3},\n\t\t\t\t{3, 3, 5, 2, 1},\n\t\t\t\t{15, 2, 4, 8, 2}\n\t\t});\n\t}", "public static void main(String[] args) {\r\n Scanner sc= new Scanner(System.in);\r\n int n = sc.nextInt();\r\n int[] arr = new int[n];\r\n //getting all the numbers\r\n for(int i=0;i<n;i++)\r\n arr[i]=sc.nextInt();\r\n //assigning 0th element as unique\r\n int unique=0;\r\n unique=arr[0];\r\n for(int i=1;i<arr.length;i++)\r\n {\r\n unique^=arr[i];\r\n }\r\n System.out.println(unique);\r\n\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tMap<String, Integer> shopping_data = new HashMap<>(); //count number of fruits bought\n\t\tMap<String, Integer> fruit_count = new HashMap<>(); //count how many customers bought fruit\n\t\t\t\t\n\t\tint loop;\n\t\tString fruit;\n\t\t\n\t\tloop = scan.nextInt();\n\t\tString[] fruit_list = new String[loop];\n\t\tSet<String> dupl_check = new HashSet<>(); //remove duplicate fruits\n\t\t\n\t\t//initialize dictionary of fruits and counter of 0\n\t\tfor (int i = 0; i < loop; i++) { \n\t\t\tfruit = scan.next();\n\t\t\tscan.nextDouble();\n\t\t\tshopping_data.put(fruit, 0);\n\t\t\tfruit_count.put(fruit, 0);\n\t\t\tfruit_list[i] = fruit;\n\t\t}\n\t\t\n\t\tint loop_2 = scan.nextInt();\n\t\t\n\t\tint loop_3 = 0, num_fruit = 0;\n\t\t\n\t\tfor (int i = 0; i < loop_2; i++) {\n\t\t\tscan.next();\n\t\t\tscan.next();\n\t\t\tloop_3 = scan.nextInt();\n\t\t\t//count number of fruits bought\n\t\t\tfor (int j = 0; j < loop_3; j++) {\n\t\t\t\tnum_fruit = scan.nextInt();\n\t\t\t\tfruit = scan.next();\n\t\t\t\tdupl_check.add(fruit); //add items into set\n\t\t\t\tint temp_fruit = shopping_data.get(fruit);\n\t\t\t\tnum_fruit += temp_fruit;\n\t\t\t\tshopping_data.put(fruit, num_fruit);\n\t\t\t\ttemp_fruit = 0;\n\t\t\t\tnum_fruit = 0;\n\t\t\t}\n\t\t\t//count how many customers bought fruit within set\n\t\t\tfor (String item:dupl_check) { \n\t\t\t\tint temp_fruit_2 = fruit_count.get(item);\n\t\t\t\ttemp_fruit_2 += 1;\n\t\t\t\tfruit_count.put(item, temp_fruit_2);\n\t\t\t\ttemp_fruit_2 = 0;\n\t\t\t}\n\t\t\tdupl_check = new HashSet<>(); //reset the set\n\t\t\t\n\t\t}\n\t\t\n\t\t//print out the result\n\t\tint cust_count;\n\t\tfor (int i = 0; i < loop; i++) {\n\t\t\tfruit = fruit_list[i];\n\t\t\tif (fruit_count.get(fruit) == 0) {\n\t\t\t\tSystem.out.println(\"No customers bought \" + fruit);\n\t\t\t} \n\t\t\telse {\n\t\t\t\tSystem.out.println(String.format(\"%d\", fruit_count.get(fruit)) + \" customers bought \" + \n\t\t\t\tString.format(\"%d\", shopping_data.get(fruit)) + \" \" + fruit);\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public int fourSumCount(int[] nums1, int[] nums2, int[] nums3, int[] nums4) {\n\n int sum = 0;\n HashMap<Integer, Integer> complementsSum34Count = new HashMap<>();\n\n for (int num3 : nums3) {\n for (int num4 : nums4) {\n int sum34 = num3 + num4;\n if (!complementsSum34Count.containsKey(-sum34)) complementsSum34Count.put(-sum34, 0);\n complementsSum34Count.put(-sum34, complementsSum34Count.get(-sum34) + 1);\n }\n }\n\n for (int num1 : nums1) {\n for (int num2 : nums2) {\n int sum12 = num1 + num2;\n if (complementsSum34Count.containsKey(sum12))\n sum += complementsSum34Count.get(sum12);\n }\n }\n\n return sum;\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tint flag1 =1,flag2=1, count=1;\r\n\t\tScanner scanner = new Scanner(System.in);\r\n\t\t\r\n\t\t//System.out.println(\"Enter the no of elements in an array\");\r\n\t\tint noOfElements = scanner.nextInt();\r\n\t\tif(noOfElements<0) {\r\n\t\t\tflag1=0;\r\n\t\t\tSystem.out.println(\"Invalid input\");\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif(flag1 != 0) {\r\n\t\tint [] arr = new int [noOfElements];\r\n\t\t//System.out.println(\"enter the elemnts\");\r\n\t\t\r\n\t\t\r\n\t\tfor(int i=0;i<arr.length;i++) {\r\n\t\t\tarr[i] = scanner.nextInt();\r\n\t\t\tif(arr[i]<0) {\r\n\t\t\t\tSystem.out.println(\"Invalid input\");\r\n\t\t\t\tflag2=0;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tif(flag2 != 0) {\r\n\t\tfor(int i=0;i<arr.length;i++) {\r\n\t\t\tint key = arr[i];\r\n\t\t\tfor(int j=i+1;j<arr.length;j++) {\r\n\t\t\t\tif(key==arr[j]) {\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t\tbreak;\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}\r\n\t\tSystem.out.println(\"Count is:\"+count);\r\n\t\t}\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tint[] array={10,20,30,40,50};\r\n\t\tint sum=50;\r\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\tfor (int j =i+1; j < array.length; j++) {\r\n\t\t\t\tif(array[j]==sum-array[i]){\r\n\t\t\t\t\tSystem.out.println(\"(\"+array[i]+\",\"+array[j]+\")\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public List<List<Integer>> threeSum(int[] nums) {\n List<List<Integer>> ans = new ArrayList<>();\n Arrays.sort(nums);\n for (int i = 0; i < nums.length - 2; i++) {\n if (i == 0 || (i > 0 && nums[i] != nums[i - 1])) {\n // find 2sum equals to 0 - first\n int lo = i + 1, hi = nums.length - 1, twoSum = 0 - nums[i];\n while (lo < hi) {\n if (nums[lo] + nums[hi] == twoSum) {\n ans.add(Arrays.asList(nums[i], nums[lo], nums[hi]));\n while (lo < hi && nums[lo] == nums[lo + 1]) lo++;\n while (lo < hi && nums[hi] == nums[hi - 1]) hi--;\n lo++;hi--;\n } else if (nums[lo] + nums[hi] < twoSum) {\n lo++;\n } else {\n hi--;\n }\n }\n }\n }\n return ans;\n }", "public static boolean opposites(Pair[] data){\n HashSet<Pair> hs = new HashSet<>(20, 0.9f);\n for(Pair p : data) {\n if(hs.contains(new Pair(p.b(), p.a())))\n return true;\n hs.add(p);\n }\n return false;\n }", "public List<List<Integer>> threeSum(int[] nums) {\n List<List<Integer>> res = new ArrayList<>();\n Arrays.sort(nums);\n for (int i = 0; i < nums.length - 2; i++) {\n if (nums[i] > 0) break;\n if (i > 0 && nums[i] == nums[i - 1]) {\n continue;\n }\n int low = i + 1;\n int high = nums.length - 1;\n int sum = -nums[i];\n while (low < high) {\n if (nums[low] + nums[high] == sum) {\n res.add(Arrays.asList(nums[i], nums[low], nums[high]));\n while (low < high && nums[low] == nums[low + 1]) low++;\n low++;\n while (low < high && nums[high] == nums[high - 1]) high--;\n high--;\n } else if (nums[low] + nums[high] > sum) {\n while (low < high && nums[high] == nums[high - 1]) high--;\n high--;\n } else {\n while (low < high && nums[low] == nums[low + 1]) low++;\n low++;\n }\n\n }\n }\n return res;\n }", "public static void main(String[] args) {\n\t\tint[] arr = {5, 6, 9, 8, 1, 3, 5, 9, 2, 1, 5, 8, 3, 2, 4, 7, 10, 9, 1};\n\t\tSystem.out.println(\"Duplicate Numbers in the given array list are:\");\n\t\tHashMap<Integer, Integer> list = new HashMap<>();\n\t\tfor(int integer : arr) {\n\t\t\tif (list.containsKey(integer)) {\n\t\t\t\tlist.put(integer, list.get(integer)+1);\n\t\t\t} else {\n\t\t\t\tlist.put(integer, 1);\n\t\t\t}\n\t\t}\n\t\tlist.forEach((key,value) -> {\n\t\t\tif (value > 1) {\n\t\t\t\tSystem.out.println(key + \" - \" + value + \" times\");\n\t\t\t}\n\t\t});\t\n\t}", "boolean bruteForce(int A[], int sum) {\n\n\t\t// Fix the first element as A[i]\n\t\tfor (int i = 0; i < A.length - 2; i++) {\n\n\t\t\t// Fix the second element as A[j]\n\t\t\tfor (int j = i + 1; j < A.length - 1; j++) {\n\n\t\t\t\t// Now look for the third number\n\t\t\t\tfor (int k = j + 1; k < A.length; k++) {\n\t\t\t\t\tif (A[i] + A[j] + A[k] == sum) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// If we reach here, then no triplet was found\n\t\treturn false;\n\t}", "private static boolean tripletWithSumExistsNoExtraSpace(int[] arr, int expectedSum){\n Arrays.sort(arr);\n int size = arr.length;\n for(int i=0; i<size-2; ++i){\n int complement = expectedSum - arr[i];\n int lidx = i+1, ridx = size-1;\n while (lidx < ridx){\n if(arr[lidx]+arr[ridx] == complement)\n return true;\n else if(arr[lidx]+arr[ridx] < complement)\n ++lidx;\n else\n --ridx;\n }\n }\n return false;\n }", "public static void main(String... args) {\n\n Set<Long> As = new HashSet<>();\n int N = 100;\n for (long p = -N; p <= N; ++p) {\n for (long q = -N; q <= p; ++q) {\n for (long r = -N; r <= q; ++r) {\n if (r==0 || p==0 || q==0)\n continue;\n\n long nom = r*p*q;\n long den = r*p + r*q + p*q;\n\n if (den != 0 && nom % den==0 && (nom^den)>=0) {\n long A = nom/den;\n\n if (A==nom) {\n As.add(A);\n System.out.printf(\"A=%d (p=%d, q=%d, r=%d)\\n\", A, p, q, r);\n }\n }\n }\n }\n }\n Long[] aa = As.toArray(new Long[As.size()]);\n Arrays.sort(aa);\n System.out.printf(\"============\\n\");\n System.out.printf(\"A(%d)=%s\\n\", aa.length, Arrays.toString(aa));\n\n for (long a = 1; a < 100; ++a) {\n if (isAlexandrian(a))\n System.out.printf(\"A=%dn\", a);\n }\n }", "public static void main(String[] args) {\n\t\tint a[] = { 9, 3, 6, 4, 7, 2, 1 }; // size=7\n\t\tint b[] = { 14, 3, 2, 6, 9, 7 }; //size =6\n\t\tint c[] = {24,23,12,13,7,6,7,2}; // size=8\n\t\tint d[] = new int[a.length + b.length+c.length];\n\t\t\n\t\t\n\t\t\n\t//merging\n\t\t\n\t\t\n\t\t\n\t\tfor (int i = 0; i < a.length; i++) \n\t{ \n\t\t\td[i] = a[i];\n\n\t}\n\t\tint k = 0;\n\t\tfor (int j = a.length; j < a.length+b.length; j++) \n\t{\n\t\t\td[j] = b[k];\n\t\t\tk = k + 1;\n\n\t}\n int m=0;\n\t\tfor (int l = a.length+b.length; l < d.length; l++)\n\t{\n\t\t d[l]=c[m];\t\n\t\t m=m+1;\n\n\t}\n\t\t//merging print statement\n\t\tfor (int i =0;i < d.length; i++)\n\t\t{\n\t\t\t /// System.out.print(d[i]+\" \");\n\t\t}\n\t\t\n\t\t \n\t\t//duplicate checking\n\t\tfor (int i =0;i < d.length; i++)\n\t\t\t\n\t\t{\n\t\t\tfor (int j =i+1;j < d.length; j++)\t\n\t\t\t{\n\t\t\t\tif(d[i]==d[j])\n\t\t\t\t{\n\t\t\t\t\td[j]=0;\n\t\t\t\t}\n\t\t\t\tif (d[i] > d[j])\n\n\t\t\t\t{ // sorting swap logic\n\t\t\t\t\t//int temp; \n\t\t\t\t\t//temp = d[i]; \n\t\t\t\t//\td[i] = d[j]; \n\t\t\t\t//\td[j] = temp;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\td[i] = d[i] + d[j];\n\t\t\t\t\td[j] = d[i] - d[j];\n\t\t\t\t\td[i] = d[i] - d[j];\n\n\t\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t\t\n\t\t\n\t} //removing the finding duplicates\n\t\tfor (int h =0;h < d.length; h++)\n\t\t{\n\t\t\tif(d[h]!=0)\n\t\t\t{\n\t\t\t\tSystem.out.print(d[h]+\" \");\n\t\t\t}\n\t\t}\n\n}", "public static void findDups(int[] arr)\n {\n BitSet bs = new BitSet(32000);\n for(int i=0; i < bs.length(); i++)\n System.out.print(bs.get(i));\n\n for(int i = 0; i < arr.length; i++)\n {\n int num0 = arr[i] - 1;\n if(bs.get(num0))\n System.out.print(arr[i]);\n else\n bs.set(num0);\n }\n }" ]
[ "0.6931884", "0.64969164", "0.64181787", "0.6168969", "0.6148565", "0.6089809", "0.6026305", "0.60218954", "0.60134006", "0.59895223", "0.59481984", "0.5946575", "0.58634585", "0.58619463", "0.58437645", "0.5828795", "0.5820123", "0.58129615", "0.5792306", "0.578903", "0.57585716", "0.57525814", "0.5750148", "0.57408184", "0.5719803", "0.57137066", "0.57074475", "0.5706184", "0.57027733", "0.569628", "0.5690731", "0.56879824", "0.5683815", "0.56803596", "0.5671881", "0.56693465", "0.565493", "0.5650861", "0.56500447", "0.5632924", "0.56292593", "0.5627229", "0.5615773", "0.561284", "0.56124896", "0.5607339", "0.56031656", "0.559669", "0.559509", "0.5579488", "0.5570475", "0.55622166", "0.55588806", "0.5558551", "0.5554579", "0.5537644", "0.55373955", "0.5536328", "0.5533027", "0.55324507", "0.5523186", "0.55213", "0.55191207", "0.5514213", "0.5512933", "0.55060416", "0.5505024", "0.550465", "0.54828995", "0.5477627", "0.54757833", "0.54746395", "0.5472053", "0.54689395", "0.5464823", "0.5459322", "0.54577446", "0.5456752", "0.5455422", "0.5454449", "0.54527193", "0.5450097", "0.544714", "0.54417825", "0.54404837", "0.5439713", "0.54319596", "0.5430016", "0.54298365", "0.54263586", "0.54199296", "0.54195905", "0.54177386", "0.5417162", "0.5415227", "0.5414955", "0.5413224", "0.5408777", "0.5403516", "0.53932023" ]
0.7574727
0
Calculate f(n) recursively. This sequence is calculated by summing the two previous numbers. f(5) is equal to f(4) + f(3). This creates a sequence with the following values: n 0 1 2 3 4 5 6 7 8 f(n) 0 1 1 2 3 5 8 13 21 / Analysis: This calculation requires numerous redundant calculations. For example to calculate f(5) you must calculate f(4) and f(3). To calculate f(4) you need f(3) and f(2). But we've already gone through the trouble of calculating f(3)! This makes the runtime of a strict recursive solution 2^n. Complete this method recursively with a Hash in O(n) time. Do this by avoiding redundant calculations.
public static int f(int value){ HashMap<Integer, Integer> map = new HashMap<>(); return fHelper(map, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static long F(long n) {\n\t\tif (n <= 4) {\n\t\t\treturn 0;\n\t\t}\n\t\tif (n==5) {\n\t\t\treturn 8;\n\t\t} if (n==6) {\n\t\t\treturn 45;\n\t\t} if (n==7) {\n\t\t\treturn 138;\n\t\t} if (n==8) {\n\t\t\treturn 362;\n\t\t}\n\t\t\n\t\tlong m = 9;\n\t\t// F(7) = 138, F(8) = 362\n\t\tlong recPrev=138;\n\t\tlong recCurrent=362;\n\n\t\twhile (n >= m) {\t\n\t\t\tif (m %6 == 0) {\n\t\t\t\tlong current = recCurrent;\n\t\t\t\trecCurrent = 3*recCurrent-2*recPrev + 38;\n\t\t\t\trecPrev = current;\n\t\t\t} if (m%6== 1) {\n\t\t\t\tlong current = recCurrent;\n\t\t\t\trecCurrent = 3*recCurrent-2*recPrev + 36;\n\t\t\t\trecPrev = current;\n\t\t\t} if (m%6==2 || m%6==3 || m%6==5) {\n\t\t\t\tlong current = recCurrent;\n\t\t\t\trecCurrent = 3*recCurrent-2*recPrev + 32;\n\t\t\t\trecPrev = current;\n\t\t\t} if (m%6==4){\n\t\t\t\tlong current = recCurrent;\n\t\t\t\trecCurrent = 3*recCurrent-2*recPrev + 30;\n\t\t\t\trecPrev = current;\n\t\t\t}\n\t\t\tm +=1;\n\t\t}\n\t\treturn recCurrent;\n\t}", "public static long optimisedFib(long n){\n\n if(memo.containsKey(n)){\n return memo.get(n);\n }\n\n if(n < 2){\n memo.put(n, n);\n return n;\n }\n\n long f = optimisedFib(n-1) + optimisedFib(n-2);\n memo.put(n, f);\n\n return f ;\n\n }", "private int recursiveFib(int n) {\r\n if (n <= 2) {\r\n return 1;\r\n }\r\n \r\n return recursiveFib(n - 2) + recursiveFib(n - 1);\r\n }", "public int recursive(int n) {\r\n //base case: return n if <= 1\r\n if (n <= 1) {\r\n return n;\r\n }\r\n //else return result of of two previous #s being added to each other\r\n return recursive(n - 1) + recursive(n - 2);\r\n }", "int fibonacciNumberFinder(int n){\n if (n <= 1){\n return n;\n }\n return fibonacciNumberFinder(n - 1) + fibonacciNumberFinder(n - 2);\n }", "public static int fibSum(int n) {\n int sum = 0;\n int fib1 = 1;\n int fib2 = 1;\n for (int i = 3; fib2 < n; i++) {\n int x = fib1 + fib2;\n fib1 = fib2;\n fib2 = x;\n if (fib2 % 2 == 0) sum += fib2;\n }\n return sum;\n }", "public static int f5(int N) { \n int x = 0;\n // log(n)\n for(int i = N; i > 0; i = i/2)\n // O(n) + O(n/2) + O(n/4)\n x += f1(i);\n \n return x; \n \n }", "static int sum(int n) {\n\t\tif(n==1) \n\t\t\treturn 1;\n\t\treturn n+sum(n-1);\n\t}", "private static int recursiveFibDP(int n) {\n\n Integer[] table = new Integer[n + 1];\n if(table[n]==null){\n if (n <= 1) {\n table[n] = n;\n }\n else {\n table[n] =recursiveFibDP(n-1)+recursiveFibDP(n-2);\n }\n }\n return table[n];\n }", "public int fib(int n) {\n// // 法一:记忆化递归\n// if (n <= 1) {\n// return n;\n// }\n// if (cache[n] != 0) {\n// return cache[n];\n// }\n// cache[n] = (fib(n - 1) + fib(n - 2)) % 1000000007;\n// return cache[n];\n// // 法二:动态规划\n// if (n == 0 || n == 1) {\n// return n;\n// }\n// int[] dp = new int[n + 1];\n// dp[0] = 0; dp[1] = 1;\n// for (int i = 2; i <= n; i++) {\n// dp[i] = dp[i - 1] + dp[i - 2];\n// dp[i] = dp[i] % 1000000007;\n// }\n// return dp[n];\n // 动态规划,优化空间\n if (n == 0 || n == 1) {\n return n;\n }\n int a = 0, b = 1, sum = 0;\n for (int i = 2; i <= n; i++) {\n sum = (a + b) % 1000000007;\n a = b;\n b = sum;\n }\n return sum;\n }", "public long fibonacci(int n){\n global_count++;\n if(n<=1){\n return n;\n }else {\n return fibonacci(n-1) + fibonacci(n-2);\n }\n }", "public static long fibonacci(int n) {\r\n if (n <= 1){\r\n return n;\r\n }\r\n else return fibonacci(n-1) + fibonacci(n-2);\r\n }", "private long fibonacci(long n) {\n if (n <= 1) {\n return n;\n } else {\n return fibonacci(n - 1) + fibonacci(n - 2);\n }\n }", "public int fibo2(int n){\r\n int[] f = new int[n];\r\n f[0] = 1;\r\n f[1] = 1;\r\n for(int i=2; i<n; i++){\r\n f[i] = f[i-1] + f[i-2];\r\n }\r\n return f[n-1];\r\n }", "private int fib(int n) {\n int retVal = 0;\n if (n == 1) {\n retVal = 1;\n } else if (n == 2) {\n retVal = 1;\n } else {\n \n int nextfib = fib(n-2) + fib(n-1);\n retVal = nextfib;\n }\n \n return retVal;\n }", "public long fibonacci_with_dp(int n){\n global_dp_count++;\n if(lookup[n] ==0) {\n if (n <= 1) {\n lookup[n] = n;\n } else {\n lookup[n] = fibonacci_with_dp(n - 1) + fibonacci_with_dp(n - 2);\n }\n }\n return lookup[n];\n }", "public static int fibonacci(int n) {\n if (n == 1){\n map.put(1,0);\n }\n if (n == 2)\n map.put(2,1);\n if (map.containsKey(n))\n return map.get(n);\n map.put(n,fibonacci(n-1)+fibonacci(n-2));\n return map.get(n);\n\n }", "public static int fibonacciRecursion(int n) {\r\n if (n == 0) {\r\n return 0;\r\n }\r\n if (n == 1 || n == 2) {\r\n return 1;\r\n }\r\n return fibonacciRecursion(n - 2) + fibonacciRecursion(n - 1);\r\n }", "private static int fibonacci(int n) {\n if (n == 1 || n == 2)\n return 1;\n else\n return fibonacci(n - 1) + fibonacci(n - 2);\n }", "public int calculaFibonacci(int n) {\n\t\t//condição de parada, vai sair quando n for 1\n\t\tif (n < 2) {\n\t\t\treturn n;\n\t\t}\n\t\t// retorno chamando a própria função\n\t\treturn calculaFibonacci(n - 1) + calculaFibonacci(n - 2); \n\t}", "public static long h (int n)\n\t{\n\t\tif (n == 1)\n\t \treturn 0;\n\t else if (n == 2)\n\t \treturn 1;\n\t else \n\t \treturn (n-1)*(h(n-1)+h(n-2));\n\t}", "private int fibCache(int n) {\n if (n == 1) {\n //System.out.print (1 + \" \");\n return 1;\n } else if (n == 2) {\n //System.out.print (1 + \" \");\n return 1;\n } else {\n \n Integer fibn2 = fibCache.get(n-2);\n if (fibn2 == null) {\n fibCache.put(n-2, fib(n-2));\n fibn2 = fibCache.get(n-2);\n }\n\n Integer fibn1 = fibCache.get(n-1);\n if (fibn1 == null) {\n fibCache.put(n-1, fib(n-1));\n fibn1 = fibCache.get(n-1);\n } \n \n //System.out.print(nextfib + \" \");\n \n int nextfib = fibn2 + fibn1;\n return nextfib;\n }\n }", "public BigInteger calculateFibDP (BigInteger n){\n\t\t\n\t\tif (fibHashMap.containsKey(n))\n\t\t\treturn fibHashMap.get(n);\n\t\t\n\t\tBigInteger low = new BigInteger(\"3\");\n\t\tint compareValue=n.compareTo(low);\n\t\tif(compareValue==-1)\n\t\t\treturn new BigInteger(\"1\");\n\t\telse{\n\t\t\t\n\t\t\tBigInteger num = calculateFibDP ( n.subtract(new BigInteger(\"1\")) ).add(calculateFibDP ( n.subtract(new BigInteger(\"2\")))); \n\t\t\tfibHashMap.put(n, num);\n\t\t\treturn num;\n\t\t}\n\t}", "public static long Hofstadter(long n) {\n if(n == 1 || n == 2) {\n \treturn 1;\n }\n return Hofstadter(n - Hofstadter(n-1)) + Hofstadter(n - Hofstadter(n-2));\n }", "public int fib(int n) {\n if (n < 2) {\n return n;\n }\n\n int n1 = 1;\n int n2 = 0;\n\n for (int i = 2; i < n; i++) {\n int current = n1 + n2;\n n2 = n1;\n n1 = current;\n }\n return n1 + n2;\n }", "public static long fibonacci(int n) {\n return fibonacciMemoization(n, new HashMap<>());\n }", "public static int fibonacci(int n) {\n\n\t\tif (n == 0 || n == 1) {\n\t\t\treturn n;\n\t\t}\n\n\t\tint fnm1 = fibonacci(n - 1);\n\t\tint fnm2 = fibonacci(n - 2);\n\n\t\tint fn = fnm1 + fnm2;\n\n\t\treturn fn;\n\n\t}", "static int recursiva2(int n)\n\t\t{\n\t\t\tif (n==0)\n\t\t\treturn 10; \n\t\t\tif (n==1)\n\t\t\treturn 20;\n\t\t\tif (n==2)\n\t\t\treturn 30;\n\t\t\t\n\t\t\treturn recursiva2(n-1) + recursiva2 (n-2) * recursiva2 (n-3); \n\t\t}", "public static int recursiveFibonacci(int n) {\n\t\t// calculate nth fibonacci number recursively\n\t\treturn n == 0 ? 0 : n == 1 ? 1 : recursiveFibonacci(n-1) + recursiveFibonacci(n-2);\n\t}", "public static int fib(int n) {\n if (n == 0) {\n return 0;\n } else if (n == 1) {\n return 1;\n } else {\n return fib(n-1) + fib(n-2);\n }\n }", "public static int f7(int N) { \n if (N == 1) \n return 0;\n return 1 + f7(N/2);\n }", "public static BigInteger fibonacci(int n) {\n\t\t// Use best algorithm to compute\t\t\n\t\treturn ABFind.fibonacciLoop(n);\n\t}", "public static int fib(int n) {\n\t\tif (n <= 1)\n\t\t\treturn n;\n\t\treturn fib(n - 1) + fib(n - 2);\n\t}", "public static int fibonacci(int n){\n if (n==0 || n==1)\n return n;\n else {\n return fibonacci(n-1)+fibonacci(n-2);\n }\n }", "public int fibo1(int n){\r\n if(n == 1 || n == 2){\r\n return 1;\r\n }\r\n return fibo1(n-1)+fibo1(n-2);\r\n }", "public static int fib(int n) {\n\t\tif (n <= 1) {\n\t\t\treturn n;\n\t\t} else {\n\t\t\treturn fib(n - 1) + fib(n - 2);\n\t\t}\n\t}", "static BigInteger findSum(BigInteger n) {\n if (n.equals(BigInteger.ZERO))\n return BigInteger.ZERO;\n BigInteger TWO = BigInteger.valueOf(2);\n\n BigInteger sum = BigInteger.ZERO;\n sum = sum.add(\n n.multiply(n.add(BigInteger.ONE))\n .divide(TWO)\n );\n\n BigInteger flooredN = findFraction(n);\n sum = sum.add(\n n.multiply(flooredN)\n );\n\n sum = sum.subtract(\n flooredN.multiply(flooredN.add(BigInteger.ONE))\n .divide(TWO)\n );\n\n sum = sum.subtract(findSum(flooredN));\n\n return sum;\n }", "public static BigInteger fact(int n) {\n\t\t\t if (! fact_cache.containsKey(n)) {\n\t\t\t BigInteger f = BI1;\n\t\t\t for (int i=1; i < n-1; i++) {\n\t\t\t f = f.multiply(oddprod(BI3, BI2.pow(i+1).subtract(BI1)));\n\t\t\t }\n\t\t\t f = bigpow(BI2, BI2.pow(n).subtract(BI1)).multiply(f);\n\t\t\t fact_cache.put(n, f);\n\t\t\t }\n\t\t\t return fact_cache.get(n);\n\t\t\t }", "private int iterativeFib(int n) {\r\n int backVal = 0, frontVal = 1;\r\n \r\n for (int i = 1; i < n - 1; i++) {\r\n int temp = frontVal + backVal;\r\n backVal = frontVal;\r\n frontVal = temp;\r\n }\r\n \r\n return frontVal + backVal;\r\n }", "public int fibNum(int n) {\n\n //base case\n if ((n == 0) || (n == 1)) {\n logger.info(\"Fibonacci number successfully computed\");\n return n;\n } else if (n > 1) { //recursive case\n logger.info(\"Fibonacci number successfully computed\");\n return fibNum(n - 1) + fibNum(n - 2);\n } else {\n throw new IllegalArgumentException(\"Invalid argument, input is less than 0\");\n }\n }", "static int solve(int n) \n\t{ \n\t // base case \n\t if (n < 0) \n\t return 0; \n\t if (n == 0) \n\t return 1; \n\t \n\t return solve(n-1) + solve(n-3) + solve(n-5); \n\t}", "public static long fibonacciTabulation(int n) {\n\n long[] table = new long[n + 1]; \n for (int i = 0; i <= n; i++) {\n table[i] = 0;\n }\n table[1] = 1;\n\n for (int i = 2; i <= n; i++) {\n table[i] = table[i - 1] + table[i - 2];\n }\n\n return table[n];\n }", "static int recursiva1(int n)\n\t\t{\n\t\tif (n==0)\n\t\t\treturn 10; \n\t\tif (n==1)\n\t\t\treturn 20; \n\t\treturn recursiva1(n-1) - recursiva1 (n-2);\t\t\n\t\t}", "public static BigInteger calculateModifiedFib(int a, int b, int n) {\n \n BigInteger[] fib_of_all = new BigInteger[n+2];\n fib_of_all[0] = BigInteger.valueOf(a);\n fib_of_all[1] = BigInteger.valueOf(b);\n\n\n\n BigInteger fib_of_n = BigInteger.valueOf(0);\n\n //fib_of_n = (fib_of_n+2) - (fib_of_n+1)2;\n\n for(int c = 2; c < n+2; c++) {\n \tfib_of_all[c] = fib_of_all[c-2].add(fib_of_all[c-1].pow(2));\n }\n\n return fib_of_all[n-1];\n }", "public static int fibboDP(int n){\n int[] mem = new int[n+1];\n if(n==0 || n==1){\n return mem[n]=n;\n }\n if(mem[n]!=0){\n return mem[n];\n }\n int fib1 = fibboDP(n-1);\n int fib2 = fibboDP(n-2);\n return mem[n] = fib1+fib2;\n }", "public static int fibo_iterative(final int n) {\n if (n < 0) {\n return -1; // Error condition.\n }\n if (n == 0) {\n return 0;\n }\n int a = 1, b = 1;\n for (int i = 3; i <= n; i++) {\n final int c = a + b;\n a = b;\n b = c;\n }\n return b;\n }", "public static long getFibonacciNumberAt(int n) {\n\n try {\n\n if (n < 1) {\n\n throw new IllegalArgumentException(\"no fibonacci numbers at n < 1\");\n\n } else if (n == 1 || n == 2) {\n\n return 1;\n\n }\n\n } catch (IllegalArgumentException iae) {\n\n System.out.println(iae.getMessage());\n\n }\n\n return getFibonacciNumberAt(n - 1) + getFibonacciNumberAt(n - 2);\n\n }", "public int fibonacci(int n){\n int f[] = new int[n+2]; // 1 extra to handle case, n = 0\n int i;\n\n /* 0th and 1st number of the series are 0 and 1*/\n f[0] = 0;\n System.out.print(f[0]+\" \");\n f[1] = 1;\n System.out.print(f[1]+\" \");\n\n for (i = 2; i <= n; i++)\n {\n /* Add the previous 2 numbers in the series\n and store it */\n f[i] = f[i-1] + f[i-2];\n System.out.print(f[i]+\" \");\n }\n\n return f[n];\n }", "private int fibonacciHelper (int fibCurrent, int fibPrevious, int n) {\n\t\tcounter ++;\n\t\tif (n==1) \n\t\t\treturn fibCurrent;\n\t\t\telse \n\t\t\t\treturn fibonacciHelper ( fibCurrent+ fibPrevious, fibCurrent, n-1);\n\t}", "public static int getFibonacciNumber(int n) {\r\n\t\tif (n < 2)\r\n\t\t\treturn n;\r\n\t\treturn getFibonacciNumber(n - 1) + getFibonacciNumber(n - 2);\r\n\t}", "public static int fibonacci(int n) {\n\t\tif(n == 0) \n\t\t\treturn 0;\n\t\tif(n == 1) \n\t\t\treturn 1;\n\t\t\n\t\treturn fibonacci(n - 1) + fibonacci(n - 2);\n\t}", "public int printFibonacciSeries(int n) {\n if (n <= 1) {\n return n;\n }\n return printFibonacciSeries(n - 1) + printFibonacciSeries(n - 2);\n }", "public static int f3(int N) {\n \n // O(1)\n if (N == 0) return 1;\n else{ \n \n int x = 0;\n // O(N)\n for(int i = 0; i < N; i++)\n x += f3(N-1);\n return x;\n }\n }", "public static int f6(int N) { \n if (N == 0)\n return 1;\n return f6(N-1) + f6(N-1);\n \n }", "static long factorialRecurse(int n) {\r\n if (n == 0 || n == 1) {\r\n return 1;\r\n }\r\n return factorialRecurse(n - 1) * n;\r\n }", "public long countFriendsPairings(int n) \n {\n if(n<3){\n return n;\n }\n else{\n long mod=(long)Math.pow(10,9)+7;\n long b=1;\n long a=2;\n long curr=0;\n for(int i=3;i<n+1;i++){\n curr=(a+(i-1)*b)%mod;\n b=a;\n a=curr;\n \n } \n \n \n \n return curr; } \n }", "private static int fibRaw(int n) {\n if (n < 2) {\n return n;\n } else {\n return fibRaw(n - 1) + fibRaw(n - 2);\n }\n }", "private int calculateFibonacciUsingTopDownMemorization(int n) {\n int[] memory = new int[n+1];\n if (n < 2) {\n return n;\n }\n if(memory[n] != 0){\n return memory[n];\n }\n memory[n] = calculateFibonacciUsingTopDownMemorization(memory, n - 1) + calculateFibonacciUsingTopDownMemorization(memory, n - 2);\n return memory[n];\n\n }", "public static int fibonacciMemoization(int n ,int[] memo){\n if (n==0 || n==1) return n;\n //strong logic\n if(memo[n]==0)\n memo[n]=fibonacciMemoization(n-1,memo)+fibonacciMemoization(n-2,memo);\n return memo[n];\n }", "private static int fibByMemoization(int n, int[] questionBank){\n //Base Case\n if(n == 0 || n == 1){\n return n;\n }\n\n if(questionBank[n] != 0){\n return questionBank[n];\n }\n\n //faith\n int ans1 = fibByMemoization(n - 1, questionBank);\n int ans2 = fibByMemoization(n - 2, questionBank);\n int answer = ans1 + ans2;\n //faith * expectation\n questionBank[n] = answer;\n return answer;\n }", "static int solveMemo(int n) \n\t{ \n\t // base case \n\t if (n < 0) \n\t return 0; \n\t if (n == 0) \n\t return 1; \n\t \n\t // checking if already calculated \n\t if (dp[n]!=-1) \n\t return dp[n]; \n\t \n\t // storing the result and returning \n\t return dp[n] = solveMemo(n-1) + solveMemo(n-3) + solveMemo(n-5); \n\t}", "public static int efficientOne(int n) {\r\n\t\tif (n < 2)\r\n\t\t\treturn n;\r\n\t\tint prevPrev = 0;\r\n\t\tint prev = 1;\r\n\t\tint fib = 0;\r\n\t\tfor (int i = 2; i <= n; i++) {\r\n\t\t\tfib = prev + prevPrev;\r\n\t\t\tprevPrev = prev;\r\n\t\t\tprev = fib;\r\n\t\t}\r\n\t\treturn fib;\r\n\t}", "public int fibonacciIterative(int n) {\n\t\tint prev = 0;\n\t\tint next = 1;\n\n\t\tfor (int j = 0; j < n; j++) {\n\t\t\tint tmp = next;\n\t\t\tnext = next + prev;\n\t\t\tprev = tmp;\n\t\t}\n\t\treturn prev;\n\t}", "public static int dynamicFibonacci(int n) {\n\t\t// calculate each fibonacci number as the sum of the previous two\n\t\treturn n == 0 ? 0 : Stream.iterate(new int[]{0, 1}, i -> new int[]{i[1], i[0]+i[1]}).limit(n).reduce((a, b) -> b).orElse(null)[1];\n\t}", "public T combineValuesAtDepthRecursive(int n, ReduceFunction<T,T> f) {\n return combineValuesHelper(n, root, f, f.initialValue()); \n }", "public static int BinaryFib (int n) {\n\t\tif (n <= 1) {\n\t\t\treturn n;\n\t\t}\n\t\telse {\n\t\t\treturn BinaryFib(n-1) + BinaryFib(n-2);\n\t\t}\n\t}", "private static int getFibonacci(int n) {\n\t\tdouble f1 = Math.pow(((1 + Math.sqrt(5)) / 2.0), n);\n\t\tdouble f2 = Math.pow(((1 - Math.sqrt(5)) / 2.0), n);\n\t\treturn (int)(Math.floor((f1 - f2) / Math.sqrt(5)));\n\t}", "public int fib_solution2(int N) {\n if (N <= 1) {\n return N;\n }\n int[] cache = new int[N + 1];\n cache[1] = 1;\n\n for (int i = 2; i <= N; i++) {\n cache[i] = cache[i-1] + cache[i-2];\n }\n return cache[N];\n }", "@Override\n public int generateNumber(int n) {\n if (n == 0) {\n return 0;\n } else if (n == 1) {\n return 1;\n } else {\n // We need the following nums to do the calculation by themselves\n int num1 = 0;\n int num2 = 1;\n int num3 = 0;\n // Starting from i = 1 is because we have done the first two in num1 and num2\n for (int i = 1; i < n; i++) {\n num3 = num1 + num2;\n num1 = num2;\n num2 = num3;\n }\n return num3;\n }\n }", "public static long computeFactorial(int n) {\n if(n<0 || n > 15) throw new IllegalArgumentException(\"Invalid input. N must be >= 0 \");\n if(n==0 || n==1)\n return 1;\n //ddieu kien dung cua de quy \n //song sot den lenh cho nayf thi n chac chan roi vao 2.......15\n return n*computeFactorial(n-1); // n*(n-1)\n \n }", "public int badFibonacci(int n){\n if (n <= 1){\n return (n);\n }\n return (badFibonacci(n-2) + badFibonacci(n-1));\n }", "public void sum(int n) {\n int sum = 0;\n for (int j = 0; j < n; j++) // 2n+2\n sum += j;\n for (int k = 0; k < n; k++) // 2n+2\n sum += k;\n for (int l = 0; l < n; l++) //2n+2\n sum += l;\n }", "public long iterativeSum(long n){\n long result = 0;\n for(long i = 1L; i <= n; i++){\n result += i;\n }\n return result;\n }", "public static long D(long n) {\n\t\tlong count = 0;\n\t\n\t\tlong m = 9;\n\t\t// F(7) = 138, F(8) = 362\n\t\tlong recPrev=138;\n\t\tlong recCurrent=362;\n\n\t\twhile (n >= m) {\t\n\t\t\tif (m %6 == 0) {\n\t\t\t\tlong current = recCurrent;\n\t\t\t\trecCurrent = 3L*recCurrent-2*recPrev + 38L;\n\t\t\t\trecPrev = current;\n\t\t\t} else if (m%6== 1) {\n\t\t\t\tlong current = recCurrent;\n\t\t\t\trecCurrent = 3L*recCurrent-2*recPrev + 36L;\n\t\t\t\trecPrev = current;\n\t\t\t} else if (m%6==2 || m%6==3 || m%6==5) {\n\t\t\t\tlong current = recCurrent;\n\t\t\t\trecCurrent = 3L*recCurrent-2*recPrev + 32L;\n\t\t\t\trecPrev = current;\n\t\t\t} else /*(m%6==4)*/{\n\t\t\t\tlong current = recCurrent;\n\t\t\t\trecCurrent = 3L*recCurrent-2*recPrev + 30L;\n\t\t\t\trecPrev = current;\n\t\t\t}\n\t\t\trecPrev = recPrev % 87654321;\n\t\t\trecCurrent = recCurrent % 87654321;\t\n\t\t\tif (recCurrent == 0) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tm +=1;\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\treturn count;\n\n\t}", "public static long longFastFib(int n) {\n\t\tlong a = 1;\n\t\tlong b = 0;\n\t\t\n\t\tlong temp = 0;\n\t\tfor(int i=0; i<n-1; i++){\n\t\t\ttemp = a;\n\t\t\ta += b;\n\t\t\tb = temp;\n\t\t\tif(a<0){\n\t\t\t\tSystem.out.println(\"Int overflow\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n return a; \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n \n \n }", "public int steps(int n) {\n\n\t\tint steps = 0;\n\t\tQueue<Integer> q = new ArrayDeque<>();\n\n\t\tSet<Integer> set = new HashSet<>();\n\n\t\tq.add(n);\n\t\tset.add(n);\n\n\t\twhile (!q.isEmpty()) {\n\t\t\tint size = q.size();\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tint curr = q.poll();\n\t\t\t\tif (curr == 1)\n\t\t\t\t\treturn steps;\n\n\t\t\t\tif (!set.contains(curr-1)) {\n\t\t\t\t\tq.add(curr - 1);\n\t\t\t\t\tset.add(curr-1);\n\t\t\t\t}\n\n\t\t\t\tif (curr % 2 == 0 && !set.contains(curr / 2)) {\n\t\t\t\t\tq.add(curr / 2);\n\t\t\t\t\tset.add(curr / 2);\n\t\t\t\t}\n\n\t\t\t\tif (curr % 3 == 0 && !set.contains(curr / 3)) {\n\t\t\t\t\tq.add(curr / 3);\n\t\t\t\t\tset.add(curr / 3);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tsteps++;\n\n\t\t}\n\n\t\treturn steps;\n\n\t}", "public void sum2(int n){\n int sum =0; //1\n for (int j = 0; j < n; j++) //2n+2\n for (int k = 0; k < n; k++) //2n+2\n sum += k + j; //1\n for (int l = 0; l < n; l++) //2n+2\n sum += l; //1\n }", "public static int fibonacci(int n) throws Exception\n {\n if (n < 0)\n {\n throw new Exception(\n \"Fibonacci Series for \" + n + \" not possible for negative numbers\" );\n }\n\n if (n == 0 || n == 1)\n {\n return n;\n }\n else\n {\n return fibonacci(n - 1) + fibonacci(n - 2);\n }\n }", "public int fib_solution3(int N) {\n if (N <= 1) {\n return N;\n }\n\n Integer[] cache = new Integer[N+1];\n cache[0] = 0;\n cache[1] = 1;\n\n return fibCalc(N, cache);\n }", "private static int fab_recursive_2(int kth) {\n\n\t\tif (kth == 0) {\n\t\t\treturn 0;\n\t\t}\n\t\tif (kth == 1) {\n\t\t\treturn fab_recursive_2(kth - 1) + 1;\n\t\t}\n\t\treturn fab_recursive_2(kth-1) + fab_recursive_2(kth-2);\n\t}", "public int fib_solution1(int N) {\n if (N <= 0) {\n return 0;\n }\n if (N == 1) {\n return 1;\n }\n return fib_solution1(N - 1) + fib_solution1(N - 2);\n }", "public long evenFiboSum()\n\t{\n\t\tlong a=1;\n\t\tlong b=1;\n\t\tlong c=a+b;\n\t\tlong sum=0;\n\t\twhile(c<N)\n\t\t{\n\t\t\t/**\n\t\t\t * Norml Fibonacci series\n\t\t\t * \n\t\t\tSystem.out.println(c);\n\t\t\ta=b;\n\t\t\tb=c;\n\t\t\tc=a+b;\n\t\t\t*/\n\t\t\tsum+=c;//adding the even values\n\t\t\ta=b+c;//finding next fibonacci\n\t\t\tb=a+c;//finding next fibonacci\n\t\t\tc=a+b;//finding next fibonacci ie., even\n\t\t}\n\t\treturn sum;\n\t}", "public static long FiboRec (int n) {\n if (n < 0) {\n return -1;\n } \n if (n == 0 || n == 1) {\n return n;\n }\n return FiboRec(n-1) + FiboRec(n-2);\n }", "private static int naiveFib(int n) {\n if (n == 0) return 0;\n if (n == 1) return 1;\n\n return naiveFib(n-1) + naiveFib(n-2);\n }", "static long findSum(int N)\n\t{\n\t\tif(N==0) return 0;\n\t\treturn (long)((N+1)>>1)*((N+1)>>1)+findSum((int)N>>1);\n\t\t\n\t}", "public static BigInteger[] fibonacciSeriesRecursive(int n) {\n\t\treturn null;\n\t}", "public static int fastFib(int n) {\n\t\t\n\t\tint a = 1;\n\t\tint b = 0;\n\t\t\n\t\tint temp = 0;\n\t\tfor(int i=0; i<n-1; i++){\n\t\t\ttemp = a;\n\t\t\ta += b;\n\t\t\tb = temp;\n\t\t\tif(a<0){\n\t\t\t\tSystem.out.println(\"Int overflow\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n return a; \n \n\t}", "public int fibNaive(int n) {\n int f;\n if (n == 0 || n == 1) f = 1;\n else f = fibNaive(n - 1) + fibNaive(n - 2);\n return f;\n }", "public static int ulam(int n) {\n\n List<Integer> list = new ArrayList<>();\n list.add(1);\n list.add(2);\n\n int i = 3;\n while (list.size() < n) {\n\n int count = 0;\n for (int j = 0; j < list.size() - 1; j++) {\n\n for (int k = j + 1; k < list.size(); k++) {\n if (list.get(j) + list.get(k) == i)\n count++;\n if (count > 1)\n break;\n }\n if (count > 1)\n break;\n }\n if (count == 1)\n list.add(i);\n i++;\n }\n return list.get(n - 1);\n }", "public static int sumDownBy2(int n) {\n\t\tif (n == 0) {\n\t\t\treturn 0;\n\t\t} else if (n == 1) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn n + sumDownBy2(n - 2);\n\t\t}\n\t}", "static int fib(int n, int a, int b)\n {\n if (n == 0) {\n return 0;}\n// elseif(n==1){\n// \treturn 1;}\n else{\n for (int i = 2; i <= n; i++) \n { \n int \ttemp = a + b; \n a = b; \n temp = b;\n } \n return b; \n }\n }", "int fact(int n) {\n if (n <= 1)\n return 1;\n else\n return n * fact(n-1);\n}", "public static int calculateSum(int n)\n {\n int sum =0 ;\n for(int i = 3;i <= n; i++ )\n {\n if(i%3 == 0 || i%5 == 0)\n {\n sum += i;\n }\n }\n return sum;\n }", "public static int fibonacciBUSE(int n) {\n\n\t\tint[] strg = new int[2];\n\t\tstrg[0] = 0;\n\t\tstrg[1] = 1;\n\n\t\tfor (int slide = 1; slide <= n - 1; slide++) {\n\n\t\t\tint sum = strg[0] + strg[1];\n\t\t\tstrg[0] = strg[1];\n\t\t\tstrg[1] = sum;\n\n\t\t}\n\n\t\treturn strg[1];\n\n\t}", "public int countNumbersWithUniqueDigits(int n) {\n if(n==0) return 1;\n if(n==1) return 10;\n if(n>10) return 0;\n int current = 81;//for f(2) f(n)=f(n-1)*(11-n);depend on previous result, we have 11-n \n int total=91;\n for(int i=3;i<=n;i++){\n current*=(11-i);\n total+=current;\n }\n return total;\n }", "public static List<Integer> calculateFor(int n) {\n\t\tArrayList<Integer> factors = new ArrayList<Integer>();\n\t\tint candidate = 2;\n\t\twhile (n > 1) {\n\t\t\twhile (n % candidate == 0) {\n\t\t\t\tfactors.add(candidate);\n\t\t\t\tn /= candidate;\n\t\t\t}\n\t\t\tcandidate++;\n\t\t}\n\t\tif (n > 1) {\n\t\t\tfactors.add(n);\n\t\t}\n\t\treturn factors;\n\t}", "public static int calculateFibonacciNumber(int i)\n {\n if(i==1||i==2)return 1;\n else\n {\n return calculateFibonacciNumber(i-1)+calculateFibonacciNumber(i-2);\n }\n }", "public static int recursionSum(int[] num, int n) {\n if (n <= 2)\n System.out.println(num[n]);\n if (n <= 0)\n return 0;\n return recursionSum(num, n - 1) + num[n - 1];\n }", "static BigInteger fact(int n)\n {\n BigInteger res = BigInteger.ONE;\n for (int i = 2; i <= n; i++)\n res = res.multiply(BigInteger.valueOf(i));\n return res;\n }", "private static int fib(int a, int b, int n) {\n\t\tint arr[] = new int[n + 1];\n\t\tarr[0] = a;\n\t\tarr[1] = b;\n\t\tfor (int i = 2; i < n; i++) {\n\t\t\tarr[i] = arr[i - 1] + arr[i - 2];\n\t\t}\n\t\treturn arr[n - 1];\n\t}", "public static int FermatPT(int n) {\n\n for (int i = 2; i < (n/3); i++) {\n\n if((longPow(i,n-1,n))!=1){\n return i;\n }\n\n }\n\n\t\treturn 0;\n\t}" ]
[ "0.69158256", "0.66907424", "0.6639929", "0.66257304", "0.66119593", "0.6584899", "0.6541916", "0.6501", "0.6485557", "0.64730436", "0.6447405", "0.640989", "0.638539", "0.63558155", "0.63437533", "0.6340256", "0.6338446", "0.6322536", "0.63195056", "0.63192946", "0.63167995", "0.6315144", "0.6286986", "0.6241285", "0.6208267", "0.62080574", "0.6207312", "0.6203926", "0.6199866", "0.6186191", "0.6185615", "0.61788046", "0.6139278", "0.61356795", "0.6132337", "0.6130764", "0.6103967", "0.60780036", "0.60759914", "0.60586226", "0.6053905", "0.6052236", "0.604892", "0.6028169", "0.6012447", "0.6011023", "0.59971887", "0.5992864", "0.5991654", "0.5981195", "0.5969323", "0.59458315", "0.5945393", "0.593961", "0.5936153", "0.5917764", "0.59138536", "0.58865124", "0.5878193", "0.5876808", "0.5862971", "0.5858363", "0.5853758", "0.58460957", "0.58411735", "0.5835161", "0.58311534", "0.58275324", "0.57993966", "0.5792586", "0.57789195", "0.57768863", "0.57617086", "0.5744153", "0.5735239", "0.5726468", "0.57253337", "0.57207704", "0.5719535", "0.5719373", "0.57139695", "0.5712841", "0.57000256", "0.5695487", "0.5691285", "0.56904644", "0.5676299", "0.5662031", "0.5653955", "0.5647154", "0.56461835", "0.5629827", "0.56280774", "0.5626917", "0.56259006", "0.56230444", "0.5614133", "0.5613046", "0.56121063", "0.5610207", "0.56087595" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Enemy e1 = new Enemy(10); // Initialize a new enemy. It will call the constructor in the class enemy. Enemy e2 = new Enemy(); Enemy e3 = new Enemy(3); e1.SetHealth(100); e2.SetHealth(50); e3.SetHealth(25); // e1.lives = 10; Since now there is a constructor called Enemy that needs a value of lives it will be not necessary declare here the parameters. System.out.println(e1.lives); System.out.println(e2.lives); // Since I didn't declare the lives it will take the default value in the class Enemy. System.out.println(e3.lives); e2.ReduceHealth(9); // It access the method ReduceHealth in the class enemy. System.out.println(e1.GetHealth()); System.out.println(e2.GetHealth()); System.out.println(e3.GetHealth()); }
{ "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
/ Supporting only LinearLayoutManager for now.
public PaginationScrollListener(LinearLayoutManager linearLayoutManager) { // this.layoutManager=linearLayoutManager; this.mlayoutmanager = linearLayoutManager; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) {\n try{\n super.onLayoutChildren(recycler, state);\n }catch (IndexOutOfBoundsException e){\n }\n\n }", "protected RecyclerView.LayoutManager getLayoutManager() {\n return new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false);\n }", "public void setRecyclerViewLayoutManager() {\n int scrollPosition = 0;\n\n mLayoutManager = new LinearLayoutManager(getActivity());\n\n mRecyclerView.setLayoutManager(mLayoutManager);\n mRecyclerView.scrollToPosition(scrollPosition);\n }", "private void initCategoryListAdapter() {\n\n LinearLayoutManager horizontalLayoutManager = new LinearLayoutManager(getActivity(), LinearLayoutManager.HORIZONTAL, false);\n topicRecyclerView.setLayoutManager(horizontalLayoutManager);\n // topicRecyclerView.setAdapter(adapter);\n }", "private RecyclerView.LayoutManager createLayoutManager() {\n int orientation = getResources().getConfiguration().orientation;\n int columnNum;\n if (orientation == Configuration.ORIENTATION_PORTRAIT) {\n columnNum = COLUMN_NUM_PORT;\n } else {\n columnNum = COLUMN_NUM_LAND;\n }\n return new GridLayoutManager(this, columnNum);\n }", "private void renderer(int rv, ArrayList<ItemBox> list){\n recyclerView = findViewById(rv);\r\n recyclerView.setHasFixedSize(true);\r\n RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false);\r\n RecyclerView.Adapter adapter = new Itembox_Adapter(list, this, 1);\r\n recyclerView.setLayoutManager(layoutManager);\r\n recyclerView.setAdapter(adapter);\r\n }", "public void setRecycler(){\n GridLayoutManager manager=new GridLayoutManager(context,2,LinearLayoutManager.HORIZONTAL,\n false);\n\n recyclerView.setLayoutManager(manager);\n recyclerView.setHasFixedSize(true);\n MainMenuAdapter mainMenuAdapter=new MainMenuAdapter(menuRows,context,true);\n recyclerView.setAdapter(mainMenuAdapter);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v= inflater.inflate(R.layout.fragment_display, container, false);\n\n m=new MyAdapter1();\n mdb=new MyDatabase(getActivity());\n mdb.open();\n c=mdb.queryStudent();\n Toast.makeText(getActivity(),\"hi..\"+c.getCount(),Toast.LENGTH_LONG).show();\n\n rv=(RecyclerView) v.findViewById(R.id.recyclerView);\n\n\n //the below line I have not included:\n manager = new LinearLayoutManager(getActivity(), LinearLayoutManager.VERTICAL, false);\n\n rv.setAdapter(m);\n rv.setLayoutManager(manager);\n\n\n\n return v;\n }", "private void castLayoutElements() {\n linlaHeaderProgress = (LinearLayout) view.findViewById(R.id.linlaHeaderProgress);\n listPrinters = (RecyclerView) view.findViewById(R.id.listPrinters);\n linlaEmpty = (LinearLayout) view.findViewById(R.id.linlaEmpty);\n \n /* CONFIGURE THE RECYCLERVIEW */\n listPrinters.setHasFixedSize(true);\n LinearLayoutManager llm = new LinearLayoutManager(getActivity());\n llm.setOrientation(LinearLayoutManager.VERTICAL);\n listPrinters.setLayoutManager(llm);\n }", "@Override\n public void generarLinearLayoutV() {\n LinearLayoutManager llm = new LinearLayoutManager(getActivity());\n llm.setOrientation(LinearLayoutManager.VERTICAL);\n\n rvMascotas.setLayoutManager(llm);//le entrego el layout a mi lista\n\n }", "@Override\n public void onScrolled (RecyclerView recyclerView, int dx, int dy){\n }", "@Override\n public void onScrolled(RecyclerView view, int dx, int dy) {\n int lastVisibleItemPosition = 0;\n int totalItemCount = mLayoutManager.getItemCount();\n Log.d(\"LOADING TOTAL COUNT\", String.valueOf(totalItemCount));\n if (mLayoutManager instanceof StaggeredGridLayoutManager) {\n int[] lastVisibleItemPositions = ((StaggeredGridLayoutManager) mLayoutManager).findLastVisibleItemPositions(null);\n // get maximum element within the list\n lastVisibleItemPosition = getLastVisibleItem(lastVisibleItemPositions);\n } else if (mLayoutManager instanceof LinearLayoutManager) {\n lastVisibleItemPosition = ((LinearLayoutManager) mLayoutManager).findLastVisibleItemPosition();\n } else if (mLayoutManager instanceof GridLayoutManager) {\n lastVisibleItemPosition = ((GridLayoutManager) mLayoutManager).findLastVisibleItemPosition();\n }\n\n // If the total item count is zero and the previous isn't, assume the\n // list is invalidated and should be reset back to initial state\n if (totalItemCount < previousTotalItemCount) {\n this.currentPage = this.startingPageIndex;\n this.previousTotalItemCount = totalItemCount;\n if (totalItemCount == 0) {\n\n this.loading = true;\n }else{\n this.loading = false; // if crate a new adapter start again\n }\n }\n // If it’s still loading, we check to see if the dataset count has\n // changed, if so we conclude it has finished loading and update the current page\n // number and total item count.\n if (loading && (totalItemCount > previousTotalItemCount)) {\n loading = false;\n previousTotalItemCount = totalItemCount;\n }\n\n // If it isn’t currently loading, we check to see if we have breached\n // the visibleThreshold and need to reload more data.\n // If we do need to reload some more data, we execute onLoadMore to fetch the data.\n // threshold should reflect how many total columns there are too\n Log.d(\"LOADING VALUE\", String.valueOf(loading));\n if (!loading && (lastVisibleItemPosition + visibleThreshold) > totalItemCount) {\n currentPage++;\n onLoadMore(currentPage, totalItemCount);\n loading = true;\n }\n }", "protected abstract int getItemLayoutId();", "@Override\n protected void onResume() {\n super.onResume();\n recyclerView.setLayoutManager(new LinearLayoutManager(getApplicationContext()));\n MyAdapter myAdapter = new MyAdapter(this, initData());\n myAdapter.setParentClickableViewAnimationDefaultDuration();\n myAdapter.setParentAndIconExpandOnClick(true);\n recyclerView.setAdapter(myAdapter);\n recyclerView.setItemAnimator(new DefaultItemAnimator());\n }", "@Override\n public void onScrolled(RecyclerView recyclerView, int dx, int dy) {\n }", "@Override\n public void onGlobalLayout() {\n\n if (!isFirstLayout) {\n isFirstLayout = true;\n ListAdapter adapter=new MeAdapter(getActivity(),gv.getHeight()/2,resIds,names);\n gv.setAdapter(adapter);\n\n }\n }", "private void setLayout() {\n if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {\n recyclerView.setLayoutManager(new StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL));\n\n } else if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {\n recyclerView.setLayoutManager(new LinearLayoutManager(getApplicationContext()));\n }\n }", "@Override\n public void onGlobalLayout() {\n if (getActivity() == null || !isAdded()) return;\n\n //Get the view width, and check if it could be valid\n int viewWidth = listView.getMeasuredWidth();\n if (viewWidth <= 0 ) return;\n\n //Remove the VTO\n listView.getViewTreeObserver().removeOnGlobalLayoutListener(this);\n\n //Calculate and update the span\n float cardViewWidth = getResources().getDimension(R.dimen.card_width_image);\n int newSpanCount = Math.max(1, (int) Math.floor(viewWidth / cardViewWidth));\n RecyclerView.LayoutManager layoutManager = new StaggeredGridLayoutManager(newSpanCount, StaggeredGridLayoutManager.VERTICAL);\n listView.setLayoutManager(layoutManager);\n layoutManager.requestLayout();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n request();\n View view=inflater.inflate(R.layout.fragment1,container,false);\n sr= (SwipeRefreshLayout) view.findViewById(R.id.swipeRefreshLayout);\n sr.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n @Override\n public void onRefresh() {\n }\n });\n rv= (RecyclerView) view.findViewById(R.id.rv);\n rv.setHasFixedSize(true);\n mLayoutManager=new LinearLayoutManager(getActivity());\n mLayoutManager.setOrientation(LinearLayoutManager.HORIZONTAL);\n rv.setLayoutManager(mLayoutManager);\n mAdapter= new RecyclerAdapter(getActivity(),list,width);\n rv.setAdapter(mAdapter);\n rv.setOnScrollListener(new RecyclerView.OnScrollListener() {\n @Override\n public void onScrollStateChanged(int i) {\n Log.e(\"onScrollState\",\":::\"+i);\n Log.e(\"getVisibility\",\":::\"+ mLayoutManager.findFirstVisibleItemPosition());\n if(i==0){\n //mLayoutManager.scrollToPosition(mLayoutManager.findFirstVisibleItemPosition());\n int t= mLayoutManager.findFirstVisibleItemPosition();\n Log.e(\"postition\",\"\"+t);\n View v=mLayoutManager.findViewByPosition(t);\n int viewwidth=v.getWidth();\n int[] location = new int[2];\n v.getLocationOnScreen(location);\n int x = location[0];\n Log.e(\"onscreen\",\":\"+x);\n if (t==0){\n length=-Math.abs(x);\n }else if (Math.abs(x)<(viewwidth/2)){\n //右移\n length=-((width-viewwidth)/2+Math.abs(x));\n }else{\n //左移\n length=-(Math.abs(x)+(width-viewwidth)/2-viewwidth);\n }\n Log.e(\"mylength\",\"\"+width+\":\"+viewwidth+\":\"+x);\n Log.e(\"position0\",\":\"+mLayoutManager.findViewByPosition(t).getWidth());\n Log.e(\"length\",\":\"+length);\n //int scroll=mLayoutManager.scrollHorizontallyBy(length,null, new RecyclerView.State());\n // rv.scrollBy(length, 0);\n rv.smoothScrollBy(length,0);\n\n /*long x=v.getLeft();\n Log.e(\"lefttt\",\":\"+x);*/\n //mLayoutManager.smoothScrollToPosition(new RecyclerView(getActivity()),new RecyclerView.State(),mLayoutManager.findFirstVisibleItemPosition());\n }\n }\n\n @Override\n public void onScrolled(int i, int i2) {\n Log.e(\"onScrolled\",\":::\"+i+\"::\"+i2);\n }\n });\n //如果我们要对ViewPager设置监听,用indicator设置就行了\n // hlv= (HorizontalListView) view.findViewById(R.id.hlv_pk);\n for(int i=0;i<8;i++) {\n PKinfoBean pb = new PKinfoBean(i);\n list.add(pb);\n }\n /* list.add(0,new PKinfoBean(0));\n list.add(list.size()-1,new PKinfoBean(0));*//*\n }*/\n\n\n /* horizontalListAdapter.setData(list);\n hlv.setAdapter(horizontalListAdapter);\n hlv.setOnScrollListener(new View.OnTouchListener() {\n @Override\n public boolean onTouch(View v, MotionEvent event) {\n Log.e(\"myonscroll\", \"\" + event.getAction()+hlv);\n if (event.getAction() == MotionEvent.ACTION_UP) {\n Log.e(\"stopp\", \"\" + hlv.getSelectedItemPosition());\n Log.e(\"stopp2\", \"\" + hlv.getFirstVisiblePosition());\n //Log.e(\"stopp\", \"\" + hlv.getSelectedItemPosition());\n }\n return false;\n }\n });\n hlv.scrollTo(44);*/\n\n\n\n return view;\n }", "public final void mo5331a() {\n RecyclerView recyclerView = this.f9709b;\n if (recyclerView != null) {\n recyclerView.requestLayout();\n }\n }", "public void initRecyclerView() {\n\r\n\r\n recyclerView.setHasFixedSize(true);\r\n recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));\r\n\r\n\r\n adapter = new LokerAdapter(getContext(), itemList);\r\n recyclerView.setAdapter(adapter);\r\n\r\n }", "protected void setUpListOfImageRecyclerView() {\n try {\n\n content_layout.removeAllViews();\n RecyclerView recyclerView = new RecyclerView(getApplicationContext());\n recyclerView.setLayoutParams(\n new ViewGroup.LayoutParams(\n // or ViewGroup.LayoutParams.WRAP_CONTENT\n ViewGroup.LayoutParams.MATCH_PARENT,\n // or ViewGroup.LayoutParams.WRAP_CONTENT,\n ViewGroup.LayoutParams.MATCH_PARENT));\n\n LinearLayoutManager layoutManager\n = new LinearLayoutManager(getApplicationContext(), LinearLayoutManager.HORIZONTAL, false);\n\n // set main_logo LinearLayoutManager with HORIZONTAL orientation\n recyclerView.setLayoutManager(layoutManager);\n\n // call the constructor of CustomAdapter to send the reference and data to Adapter\n recyclerView.setAdapter(mSelectedImageAdapter); // set the Adapter to RecyclerView\n\n\n content_layout.addView(recyclerView);\n\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "private final void m139911a(RecyclerView.Recycler recycler) {\n View view;\n View view2;\n Iterator it = C32598n.m150608b(0, getItemCount()).iterator();\n while (it.hasNext()) {\n int nextInt = ((IntIterator) it).nextInt();\n View viewForPosition = recycler.getViewForPosition(nextInt);\n C32569u.m150513a((Object) viewForPosition, C6969H.m41409d(\"G7B86D603BC3CAE3BA809955CC4ECC6C04F8CC72AB023A23DEF019E00E2EAD0DE7D8ADA14F6\"));\n addView(viewForPosition);\n measureChildWithMargins(viewForPosition, 0, 0);\n int decoratedMeasuredWidth = getDecoratedMeasuredWidth(viewForPosition);\n int decoratedMeasuredHeight = getDecoratedMeasuredHeight(viewForPosition);\n if (this.f101761k) {\n removeAndRecycleView(viewForPosition, recycler);\n } else if (this.f101753c < this.f101754d) {\n if (this.f101762l && (view2 = this.f101763m) != null) {\n this.f101762l = false;\n if (view2 == null) {\n C32569u.m150511a();\n }\n m139910a(view2, this.f101764n, this.f101765o);\n this.f101763m = null;\n }\n if (this.f101753c == this.f101754d - 1 && this.f101756f + decoratedMeasuredWidth + this.f101759i > getWidth()) {\n this.f101761k = true;\n removeAndRecycleView(viewForPosition, recycler);\n } else if (nextInt == getItemCount() - 1 || nextInt == getItemCount() - 2) {\n if (this.f101756f + decoratedMeasuredWidth + this.f101759i < getWidth()) {\n m139910a(viewForPosition, decoratedMeasuredWidth, decoratedMeasuredHeight);\n } else if (this.f101756f + decoratedMeasuredWidth + this.f101759i > getWidth() && this.f101756f + decoratedMeasuredWidth < getWidth()) {\n m139910a(viewForPosition, decoratedMeasuredWidth, decoratedMeasuredHeight);\n m139909a(decoratedMeasuredHeight);\n this.f101757g = this.f101755e + this.f101758h;\n } else if (this.f101756f + decoratedMeasuredWidth > getWidth()) {\n m139909a(decoratedMeasuredHeight);\n m139910a(viewForPosition, decoratedMeasuredWidth, decoratedMeasuredHeight);\n }\n } else if (this.f101756f + decoratedMeasuredWidth <= getWidth()) {\n m139910a(viewForPosition, decoratedMeasuredWidth, decoratedMeasuredHeight);\n } else if (this.f101753c != this.f101754d - 1) {\n m139909a(decoratedMeasuredHeight);\n this.f101762l = true;\n this.f101763m = viewForPosition;\n this.f101764n = decoratedMeasuredWidth;\n this.f101765o = decoratedMeasuredHeight;\n }\n } else if (this.f101762l && (view = this.f101763m) != null) {\n if (view == null) {\n C32569u.m150511a();\n }\n removeAndRecycleView(view, recycler);\n this.f101762l = false;\n this.f101763m = null;\n }\n }\n }", "public final void updateRecyclerUI() {\n Collection collection = this.setList;\n if (collection == null || collection.isEmpty()) {\n Collection collection2 = this.notSetList;\n if (collection2 == null || collection2.isEmpty()) {\n LinearLayout linearLayout = (LinearLayout) _$_findCachedViewById(C2723R.C2726id.llSet);\n Intrinsics.checkExpressionValueIsNotNull(linearLayout, \"llSet\");\n linearLayout.setVisibility(8);\n LinearLayout linearLayout2 = (LinearLayout) _$_findCachedViewById(C2723R.C2726id.llNotSet);\n Intrinsics.checkExpressionValueIsNotNull(linearLayout2, \"llNotSet\");\n linearLayout2.setVisibility(8);\n return;\n }\n }\n if (this.setList.size() != 0) {\n LinearLayout linearLayout3 = (LinearLayout) _$_findCachedViewById(C2723R.C2726id.llSet);\n Intrinsics.checkExpressionValueIsNotNull(linearLayout3, \"llSet\");\n linearLayout3.setVisibility(0);\n Collection collection3 = this.notSetList;\n if (collection3 == null || collection3.isEmpty()) {\n View _$_findCachedViewById = _$_findCachedViewById(C2723R.C2726id.separatorSet);\n Intrinsics.checkExpressionValueIsNotNull(_$_findCachedViewById, \"separatorSet\");\n _$_findCachedViewById.setVisibility(8);\n } else {\n View _$_findCachedViewById2 = _$_findCachedViewById(C2723R.C2726id.separatorSet);\n Intrinsics.checkExpressionValueIsNotNull(_$_findCachedViewById2, \"separatorSet\");\n _$_findCachedViewById2.setVisibility(0);\n }\n SetSaleDocAdapter setSaleDocAdapter2 = this.setSaleDocAdapter;\n if (setSaleDocAdapter2 == null) {\n Intrinsics.throwUninitializedPropertyAccessException(\"setSaleDocAdapter\");\n }\n setSaleDocAdapter2.setData(createSetSaleDocData(true));\n SetSaleDocAdapter setSaleDocAdapter3 = this.setSaleDocAdapter;\n if (setSaleDocAdapter3 == null) {\n Intrinsics.throwUninitializedPropertyAccessException(\"setSaleDocAdapter\");\n }\n setSaleDocAdapter3.notifyDataSetChanged();\n }\n if (this.notSetList.size() != 0) {\n LinearLayout linearLayout4 = (LinearLayout) _$_findCachedViewById(C2723R.C2726id.llNotSet);\n Intrinsics.checkExpressionValueIsNotNull(linearLayout4, \"llNotSet\");\n linearLayout4.setVisibility(0);\n NotSetSaleDocAdapter notSetSaleDocAdapter2 = this.notSetSaleDocAdapter;\n if (notSetSaleDocAdapter2 == null) {\n Intrinsics.throwUninitializedPropertyAccessException(\"notSetSaleDocAdapter\");\n }\n notSetSaleDocAdapter2.setData(createSetSaleDocData(false));\n NotSetSaleDocAdapter notSetSaleDocAdapter3 = this.notSetSaleDocAdapter;\n if (notSetSaleDocAdapter3 == null) {\n Intrinsics.throwUninitializedPropertyAccessException(\"notSetSaleDocAdapter\");\n }\n notSetSaleDocAdapter3.notifyDataSetChanged();\n Button button = (Button) _$_findCachedViewById(C2723R.C2726id.btnReviewPayment);\n Intrinsics.checkExpressionValueIsNotNull(button, \"btnReviewPayment\");\n button.setAlpha(0.5f);\n Button button2 = (Button) _$_findCachedViewById(C2723R.C2726id.btnReviewPayment);\n Intrinsics.checkExpressionValueIsNotNull(button2, \"btnReviewPayment\");\n button2.setClickable(false);\n return;\n }\n Button button3 = (Button) _$_findCachedViewById(C2723R.C2726id.btnReviewPayment);\n Intrinsics.checkExpressionValueIsNotNull(button3, \"btnReviewPayment\");\n button3.setAlpha(1.0f);\n Button button4 = (Button) _$_findCachedViewById(C2723R.C2726id.btnReviewPayment);\n Intrinsics.checkExpressionValueIsNotNull(button4, \"btnReviewPayment\");\n button4.setClickable(true);\n }", "private void initRecyclerView(){\n facility_RCV_result.setHasFixedSize(true);\n layoutManager = new LinearLayoutManager(this.getContext());\n facility_RCV_result.setLayoutManager(layoutManager);\n mAdapter = new FacilityRecyclerViewAdapter(facilityArrayList);\n facility_RCV_result.setAdapter(mAdapter);\n }", "private void initDashboardListRecyclerView() {\n GridLayoutManager gridLayoutManager;\n if (AppUtils.isTablet()) {\n gridLayoutManager = new GridLayoutManager(this, 3);\n } else {\n gridLayoutManager = new GridLayoutManager(this, 1);\n\n }\n /* setLayoutManager associates the gridLayoutManager with our RecyclerView */\n mDashboardList.setLayoutManager(gridLayoutManager);\n\n mDashboardList.setItemAnimator(new DefaultItemAnimator());\n\n /*\n * Use this setting to improve performance if you know that changes in content do not\n * change the child layout size in the RecyclerView\n */\n mDashboardList.setHasFixedSize(true);\n\n /*\n * The RecipesListAdapter is responsible for linking our recipes' data with the Views that\n * will end up displaying our recipe data.\n */\n mDashboardListAdapter = new DashboardListAdapter(this);\n\n /* Setting the adapter attaches it to the RecyclerView in our layout. */\n mDashboardList.setAdapter(mDashboardListAdapter);\n\n }", "private void configRecyclerView() {\n if(getActivity().getResources().getConfiguration().orientation==1) {\n GridLayoutManager gridLayoutManager = new GridLayoutManager(getActivity(),2);\n gridLayoutManager.setSpanSizeLookup(adapter.obtainGridSpanSizeLookUp(2));\n recyclerView.setLayoutManager(gridLayoutManager);\n } else{\n GridLayoutManager gridLayoutManager = new GridLayoutManager(getActivity(),3);\n gridLayoutManager.setSpanSizeLookup(adapter.obtainGridSpanSizeLookUp(3));\n recyclerView.setLayoutManager(gridLayoutManager);\n }\n //设置没有网络的状态\n recyclerView.setEmptyView(R.layout.view_empty);\n recyclerView.setProgressView(R.layout.view_complete);\n //写刷新事件\n recyclerView.setRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n @Override\n public void onRefresh() {\n recyclerView.postDelayed(new Runnable() {\n @Override\n public void run() {\n adapter.clear();\n currentPage = 1;\n page = 1;\n //getData();\n getLocalData();\n }\n }, 1000);\n }\n });\n }", "@Override\n public void onScrolled(RecyclerView recyclerView, int dx, int dy) {\n super.onScrolled(recyclerView, dx, dy);\n\n // 마지막 데이타에 도달했다면 아에 아무런 작업도 하지 않는다.\n if (isLastDataReached()) return;\n\n int totalIndex = mManager.getItemCount() - 1;\n int lastItem = mManager.findLastVisibleItemPosition();\n boolean isDownScroll = dy > 0;\n\n Log.d(TAG, \"onScrolled:totalIndex:\" + totalIndex + \"|lastItem:\" + lastItem + \"|dy:\" + dy);\n\n // TODO: 일반적으로 10개의 아이템이 있다면 totalCount는 10, firstItem은 0, lastItem은 9가 된다. (모든 아이템이 보인다는 가정 하에)\n // 만약 lastItem이 totalIndex 보다 컸을 때라고 조건을 둔다면 lastItem이 보이기 시작하는 순간부터 콜백이 발생된다.\n\n // 스크롤을 아래로 내렸을 때\n if (lastItem >= totalIndex & isDownScroll) {\n Log.d(TAG, \"onScrolled:reached:isLoading:\" + isLoading());\n if (!isLoading()) {\n Log.d(TAG, \"onScrolled:reached:SUCCESS\");\n\n if (onLoadMoreListener != null) {\n setLoading(true);\n onLoadMoreListener.onLoadMore();\n }\n }\n }\n }", "@Override\n public void onScrolled(RecyclerView recyclerView, int dx, int dy) {\n super.onScrolled(recyclerView, dx, dy);\n\n // 마지막 데이타에 도달했다면 아에 아무런 작업도 하지 않는다.\n if (isLastDataReached()) return;\n\n int totalIndex = mManager.getItemCount() - 1;\n int lastItem = mManager.findLastVisibleItemPosition();\n boolean isDownScroll = dy > 0;\n\n Log.d(TAG, \"onScrolled:totalIndex:\" + totalIndex + \"/lastItem:\" + lastItem + \"/isDownScroll:\" + isDownScroll);\n\n // TODO: 일반적으로 10개의 아이템이 있다면 totalCount는 10, firstItem은 0, lastItem은 9가 된다. (모든 아이템이 보인다는 가정 하에)\n // 만약 lastItem이 totalIndex 보다 컸을 때라고 조건을 둔다면 lastItem이 보이기 시작하는 순간부터 콜백이 발생된다.\n\n // 스크롤을 아래로 내렸을 때\n if (lastItem >= totalIndex & isDownScroll) {\n Log.d(TAG, \"onScrolled:reached:isLoading:\" + isLoading());\n if (!isLoading()) {\n Log.d(TAG, \"onScrolled:reached:SUCCESS\");\n\n if (onLoadMoreListener != null) {\n setLoading(true);\n onLoadMoreListener.onLoadMore();\n }\n }\n }\n }", "private void prepareRecyclerView() {\n equipmentInventoryListAdapter = new EquipmentInventoryListAdapter_v2(equipmentInventoryAvailableCallback, equipmentInventoryMissingCallback);\n GridLayoutManager layoutManager = new GridLayoutManager(getContext(), 2);\n binding.equipmentInventoryList.setLayoutManager(layoutManager);\n binding.equipmentInventoryList.setAdapter(equipmentInventoryListAdapter);\n //binding.equipmentInventoryList.addItemDecoration(new DividerItemDecoration(binding.equipmentInventoryList.getContext(), DividerItemDecoration.HORIZONTAL));\n }", "private void setupRecyclerView() {\r\n\r\n LinearLayoutManager layoutManager = new LinearLayoutManager\r\n (getContext(), LinearLayoutManager.VERTICAL, false);\r\n if (adapter == null) {\r\n adapter = new SchoolAdapter(getContext(), schoolList);\r\n recyclerView.setLayoutManager(layoutManager);\r\n recyclerView.setAdapter(adapter);\r\n recyclerView.setItemAnimator(new DefaultItemAnimator());\r\n recyclerView.setNestedScrollingEnabled(true);\r\n } else {\r\n adapter.notifyDataSetChanged();\r\n }\r\n }", "public abstract ItemListAdapter getAdapter(RecyclerView recyclerView);", "@Override\n protected void initView(View view) {\n LinearLayoutManager layoutManager = new LinearLayoutManager(getContext());\n layoutManager.setOrientation(LinearLayoutManager.VERTICAL);\n recyclerView.addItemDecoration(new DividerItemDecoration(getContext(), DividerItemDecoration.VERTICAL));\n recyclerView.setLayoutManager(layoutManager);\n recyclerView.setPullRefreshEnabled(true);//下拉刷新\n //是否开启上拉加载功能\n recyclerView.setLoadingMoreEnabled(true);\n //开启刷新回调\n recyclerView.displayLastRefreshTime(true);\n //停止刷新\n recyclerView.setPullToRefreshListener(new PullToRefreshListener() {\n @Override\n public void onRefresh() {\n recyclerView.postDelayed(new Runnable() {\n @Override\n public void run() {\n recyclerView.setRefreshComplete();\n mList.clear();\n loadData();\n\n }\n }, 2000);\n }\n\n @Override\n public void onLoadMore() {\n recyclerView.postDelayed(new Runnable() {\n @Override\n public void run() {\n recyclerView.setLoadMoreComplete();\n Index++;\n loadData();\n\n }\n }, 2000);\n }\n });\n\n\n\n }", "private void initView() {\n linearLayoutManager = new LinearLayoutManager(getContext(),LinearLayoutManager.HORIZONTAL,true);\n hotNews_adapter = new HotNews_Adapter(getContext(),getPosts());\n recyclerViewHotNews.setLayoutManager(linearLayoutManager);\n recyclerViewHotNews.setAdapter(hotNews_adapter);\n\n //RecyclerView summary\n recyclerViewSummary.setLayoutManager(new LinearLayoutManager(getContext()));\n summary_adapter = new Summary_Adapter(getContext(),getPosts());\n\n //RecyclerView suummary category\n summary_category_adapter = new Summary_Category_Adapter(getContext(),getPosts());\n\n // Create a new merge adapter.\n RecyclerViewMergeAdapter mergeAdapter = new RecyclerViewMergeAdapter();\n // Add any number of subadapters to the merge adapter.\n mergeAdapter.addView(viewHeader);\n mergeAdapter.addAdapter(summary_adapter);\n mergeAdapter.addAdapter(summary_category_adapter);\n // Set the merge adapter on the RecyclerView.\n recyclerViewSummary.setAdapter(mergeAdapter);\n\n }", "private void setUpBookingRecycler() {\n LinearLayoutManager linearLayoutManager1 = new LinearLayoutManager(mThis);\n linearLayoutManager1.setOrientation(LinearLayoutManager.VERTICAL);\n mBinding.requestRv.setLayoutManager(linearLayoutManager1);\n\n }", "@Nullable\n @Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.bottom_sheet_product_view, container, false);\n // view = inflater.inflate(R.layout.bottom_sheet_product_view, null);\n\n recycle_view_size = view.findViewById(R.id.recycle_view_size);\n recycle_view_color = view.findViewById(R.id.recycle_view_color);\n\n for (int i =0;i < 5;i++){\n arrayList.add(\"\");\n }\n sizeAdapter = new SizeAdapter(getContext(),arrayList);\n colorAdapter = new ColorAdapter(getContext(),arrayList);\n\n LinearLayoutManager HorizontalLayout112\n = new LinearLayoutManager(\n getActivity(),\n LinearLayoutManager.HORIZONTAL,\n false);\n //RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getActivity(), LinearLayout.HORIZONTAL,false);/\n recycle_view_size.setLayoutManager(HorizontalLayout112);\n recycle_view_size.setItemAnimator(new DefaultItemAnimator());\n sizeAdapter.notifyDataSetChanged();\n recycle_view_size.setAdapter(sizeAdapter);\n\n LinearLayoutManager HorizontalLayout1121\n = new LinearLayoutManager(\n getActivity(),\n LinearLayoutManager.HORIZONTAL,\n false);\n //RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getActivity(), LinearLayout.HORIZONTAL,false);/\n recycle_view_color.setLayoutManager(HorizontalLayout1121);\n recycle_view_color.setItemAnimator(new DefaultItemAnimator());\n colorAdapter.notifyDataSetChanged();\n recycle_view_color.setAdapter(colorAdapter);\n\n\n return view;\n }", "private void buildRecyclerView() {\n\n movieRecyclerView = findViewById(R.id.movieRecyclerView);\n\n customAdapter = new CustomAdapter(MovieActivity.this,movieLists);\n movieRecyclerView.setAdapter(customAdapter);\n layoutManager = new GridLayoutManager(this,1);\n movieRecyclerView.setLayoutManager(layoutManager);\n\n }", "private void setRecycleView(){\n\n RecyclerView recyclerView = findViewById(R.id.recycler_view);\n RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getApplicationContext());\n recyclerView.setLayoutManager(mLayoutManager);\n recyclerView.setItemAnimator(new DefaultItemAnimator());\n recyclerView.setAdapter(multiViewAdapter);\n }", "@Override\r\n public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) {\r\n\r\n // Nothing to be laid out, just clear attached views and return.\r\n if(state.getItemCount() == 0){\r\n detachAndScrapAttachedViews(recycler);\r\n return;\r\n }\r\n // For the pre-layout, we need to layout current attached views and appearing views.\r\n if(state.isPreLayout()){\r\n // If nothing is attached, just return.\r\n if(getChildCount() == 0)\r\n return;\r\n // For the current attached views, find the views removed and update\r\n // removedTopAndBoundPositionCount and firstChangedPosition.\r\n final int childCount = getChildCount();\r\n for(int i = 0; i < childCount; i++){\r\n View child = getChildAt(i);\r\n RecyclerView.LayoutParams lp = (RecyclerView.LayoutParams) child.getLayoutParams();\r\n if(lp.isItemRemoved()){\r\n removedTopAndBoundPositionCount++;\r\n if(firstChangedPosition == -1 ||\r\n firstAttachedItemPosition + i < firstChangedPosition){\r\n firstChangedPosition = firstAttachedItemPosition + i;\r\n }\r\n }\r\n }\r\n // If removedTopAndBoundPositionCount = 0, items changes out of the bottom border,\r\n // So we have nothing to do during the pre-layout.\r\n // Otherwise we need to lay out current attached views and appearing views.\r\n if(removedTopAndBoundPositionCount != 0){\r\n layoutAttachedAndAppearingViews(recycler, state);\r\n }\r\n // Reset isBeforePreLayout after the pre-layout ends.\r\n isBeforePreLayout = false;\r\n return;\r\n }\r\n\r\n // The real layout.\r\n // First or empty layout, initialize layout parameters and fill.\r\n if(getChildCount() == 0){\r\n initializeLayoutParameters();\r\n fillGrid(recycler, state, true);\r\n return;\r\n }\r\n // If it is triggered with notifyDataSetChanged(),\r\n // we just clear attached views and layout from the beginning.\r\n if(isNotifyDataSetChanged){\r\n detachAndScrapAttachedViews(recycler);\r\n initializeLayoutParameters();\r\n fillGrid(recycler, state, true);\r\n isNotifyDataSetChanged = false;\r\n return;\r\n }\r\n\r\n // Adapter data set changes.\r\n if(firstChangedPosition == -1){ // No item is removed\r\n // reset parameters.\r\n mCurrentPosition = firstAttachedItemPosition;\r\n lastAttachedItemPosition = firstAttachedItemPosition;\r\n topBorder = getPaddingTop();\r\n bottomBorder = getHeight() - getPaddingBottom();\r\n spanBottom = Arrays.copyOf(spanTop, mSpanCount);\r\n updateSpanBottomParameters();\r\n // Fill the area.\r\n detachAndScrapAttachedViews(recycler);\r\n fillGrid(recycler, state, true);\r\n\r\n // Reset isBeforePreLayout.\r\n isBeforePreLayout = true;\r\n// firstChangedPosition = -1;\r\n// removedTopAndBoundPositionCount = 0;\r\n return;\r\n }\r\n // There are removed items.\r\n // Clear the cache from the firstChangedPosition\r\n for(int i = firstChangedPosition; i < state.getItemCount(); i++){\r\n if(itemLayoutWidthCache.get(i, 0) != 0){\r\n itemLayoutWidthCache.delete(i);\r\n itemLayoutHeightCache.delete(i);\r\n itemOccupiedStartSpan.delete(i);\r\n }\r\n if(fakeItemLayoutWidthCache.get(i, 0) != 0){\r\n itemLayoutWidthCache.put(i, fakeItemLayoutWidthCache.get(i));\r\n itemLayoutHeightCache.put(i, fakeItemLayoutHeightCache.get(i));\r\n itemOccupiedStartSpan.put(i, fakeItemOccupiedStartSpan.get(i));\r\n }\r\n }\r\n fakeItemLayoutWidthCache.clear();\r\n fakeItemLayoutHeightCache.clear();\r\n fakeItemOccupiedStartSpan.clear();\r\n\r\n detachAndScrapAttachedViews(recycler);\r\n\r\n // There are removed items out of the upper bound.\r\n if(firstChangedPosition < firstAttachedItemPosition) {\r\n mCurrentPosition = firstAttachedItemPosition;\r\n lastAttachedItemPosition = firstAttachedItemPosition;\r\n topBorder = getPaddingTop();\r\n bottomBorder = getHeight() - getPaddingBottom();\r\n spanBottom = Arrays.copyOf(spanTop, mSpanCount);\r\n updateSpanBottomParameters();\r\n fillGrid(recycler, state, true);\r\n // If it cannot fill until the bottomBorder, call scrollBy() to fill.\r\n if(spanBottomMax < bottomBorder){\r\n scrollBy(spanBottomMax - bottomBorder, recycler, state);\r\n }\r\n // Finally, we layout disappearing views.\r\n layoutDisappearingViews(recycler, state);\r\n }else{ // There are no removed items out of the upper bound.\r\n // Just set layout parameters and fill the visible area.\r\n mCurrentPosition = firstAttachedItemPosition;\r\n lastAttachedItemPosition = firstAttachedItemPosition;\r\n topBorder = getPaddingTop();\r\n bottomBorder = getHeight() - getPaddingBottom();\r\n spanBottom = Arrays.copyOf(spanTop, mSpanCount);\r\n updateSpanBottomParameters();\r\n fillGrid(recycler, state, true);\r\n // The number of items is too small, call scrollBy() to fill.\r\n if(spanBottomMax - bottomBorder < 0){\r\n scrollBy(spanBottomMax - bottomBorder, recycler, state);\r\n }\r\n }\r\n // After the real layout, we need to clear some parameters.\r\n isBeforePreLayout = true;\r\n firstChangedPosition = -1;\r\n removedTopAndBoundPositionCount = 0;\r\n disappearingViewCache.clear();\r\n }", "private void HandleLoadingAds(){\n\n\n recyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() {\n @Override\n public void onScrollStateChanged(RecyclerView recyclerView, int newState) {\n super.onScrollStateChanged(recyclerView, newState);\n\n if(newState== AbsListView.OnScrollListener.SCROLL_STATE_TOUCH_SCROLL){\n isScrolling=true;\n }\n }\n\n @Override\n public void onScrolled(RecyclerView recyclerView, int dx, int dy) {\n super.onScrolled(recyclerView, dx, dy);\n\n totalItems=layoutManager.getItemCount();\n currentItems=layoutManager.getChildCount();\n scrolledOutItems=layoutManager.findFirstVisibleItemPosition();\n\n if(isScrolling==true&&totalItems==(currentItems+scrolledOutItems)){\n\n isScrolling=false;\n\n loadMoreData();\n }\n }\n });\n }", "int getItemViewLayoutId();", "public IrregularLayoutManager(Context context){\r\n this(context, DEFAULT_SPAN_COUNT);\r\n }", "final void layoutChildren(final boolean queryAdapter) {\n final int paddingLeft = getPaddingLeft();\n final int paddingRight = getPaddingRight();\n final int itemMargin = mItemMargin;\n final int colWidth =\n (getWidth() - paddingLeft - paddingRight - itemMargin * (mColCount - 1)) / mColCount;\n int rebuildLayoutRecordsBefore = -1;\n int rebuildLayoutRecordsAfter = -1;\n\n Arrays.fill(mItemBottoms, Integer.MIN_VALUE);\n\n final int childCount = getChildCount();\n for (int i = 0; i < childCount; i++) {\n View child = getChildAt(i);\n LayoutParams lp = (LayoutParams) child.getLayoutParams();\n int col = lp.column;\n final int[] margins = lp.margins;\n final int position = mFirstPosition + i;\n final boolean needsLayout = queryAdapter || child.isLayoutRequested();\n boolean newChild = false;\n if (position >= mItemCount) {\n // Sometimes it happens...\n final View toDelete = getSpannedChildAt(i);\n removeViewAt(i);\n if (toDelete != null) {\n // Offset children in case our last child was max spanned\n final int height = toDelete.getHeight();\n offsetChildren(height);\n }\n continue;\n }\n\n if (queryAdapter) {\n View newView = obtainView(position, child);\n if (newView != child) {\n removeViewAt(i);\n addView(newView, i);\n child = newView;\n newChild = true;\n }\n lp = (LayoutParams) child.getLayoutParams(); // Might have changed\n\n lp.column = col; // XXX Initial version of StaggeredGridView actually forgets to correct columns which is a nasty bug\n lp.margins = margins;\n }\n\n final int span = Math.min(mColCount, lp.span);\n final int widthSize = colWidth * span + itemMargin * (span - 1);\n\n if (needsLayout) {\n final int widthSpec = MeasureSpec.makeMeasureSpec(widthSize, MeasureSpec.EXACTLY);\n\n final int heightSpec;\n if (lp.height == LayoutParams.WRAP_CONTENT) {\n heightSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED);\n } else if (lp.height == LayoutParams.MATCH_PARENT) {\n /*heightSpec = getChildMeasureSpec(\n MeasureSpec.makeMeasureSpec(getMeasuredHeight(), MeasureSpec.AT_MOST),\n getPaddingTop() + getPaddingBottom(),\n lp.height\n );*/\n // XXX HACK\n heightSpec = MeasureSpec.makeMeasureSpec(getMeasuredHeight() - getPaddingTop() - getPaddingBottom(),\n MeasureSpec.EXACTLY);\n } else {\n heightSpec = MeasureSpec.makeMeasureSpec(lp.height, MeasureSpec.EXACTLY);\n }\n\n child.measure(widthSpec, heightSpec);\n }\n\n int childTop = mItemBottoms[col] > Integer.MIN_VALUE ? mItemBottoms[col] + mItemMargin\n : /*child.getTop() + (*/newChild ? mItemMargin + getPaddingTop() : child.getTop()/*0)*/;\n if (span > 1) {\n int lowest = childTop;\n for (int j = col + 1; j < col + span; j++) {\n final int bottom = mItemBottoms[j] + mItemMargin;\n if (bottom > lowest) {\n lowest = bottom;\n }\n }\n childTop = lowest;\n }\n final int childHeight = child.getMeasuredHeight();\n final int childBottom = childTop + childHeight;\n final int childLeft = paddingLeft + col * (colWidth + itemMargin);\n final int childRight = childLeft + child.getMeasuredWidth();\n child.layout(childLeft, childTop, childRight, childBottom);\n\n for (int j = col; j < col + span; j++) {\n mItemBottoms[j] = childBottom;\n }\n\n final LayoutRecord rec = mLayoutRecords.get(position);\n if (rec != null && rec.height != childHeight) {\n // Invalidate our layout records for everything before this.\n rec.height = childHeight;\n /*\n * XXX was \"rebuildLayoutRecordsBefore\" previously\n * Rebuilding layout records \"before\" this position\n * leads to a nasty bug - margins for spanned children disappear\n * and the grid layouts children incorrectly\n * I DON'T REALLY KNOW WHY THIS IS SO....\n */\n rebuildLayoutRecordsAfter = position;\n }\n\n if (rec != null && rec.span != span) {\n // Invalidate our layout records for everything after this.\n rec.span = span;\n rebuildLayoutRecordsAfter = position;\n }\n\n }\n\n // Update mItemBottoms for any empty columns\n for (int i = 0; i < mColCount; i++) {\n if (mItemBottoms[i] == Integer.MIN_VALUE) {\n mItemBottoms[i] = mItemTops[i];\n }\n }\n\n if (rebuildLayoutRecordsBefore >= 0 || rebuildLayoutRecordsAfter >= 0) {\n if (rebuildLayoutRecordsBefore >= 0) {\n invalidateLayoutRecordsBeforePosition(rebuildLayoutRecordsBefore);\n }\n if (rebuildLayoutRecordsAfter >= 0) {\n invalidateLayoutRecordsAfterPosition(rebuildLayoutRecordsAfter);\n }\n for (int i = 0; i < childCount; i++) {\n final int position = mFirstPosition + i;\n final View child = getChildAt(i);\n final LayoutParams lp = (LayoutParams) child.getLayoutParams();\n LayoutRecord rec = mLayoutRecords.get(position);\n if (rec == null) {\n rec = new LayoutRecord();\n mLayoutRecords.put(position, rec);\n }\n rec.column = lp.column;\n rec.height = child.getHeight();\n rec.id = lp.id;\n final int span = Math.min(mColCount, lp.span);\n rec.span = span;\n rec.mMargins = lp.margins;\n }\n }\n }", "@Override\n public void setUpAdapterAndView(List<ListItem> listOfData) {\n this.listOfData = listOfData;\n LinearLayoutManager layoutManager = new LinearLayoutManager(this);\n\n recyclerView.setLayoutManager(layoutManager);\n\n adapter = new CustomAdapter();\n recyclerView.setAdapter(adapter);\n\n DividerItemDecoration itemDecoration = new DividerItemDecoration(\n recyclerView.getContext(),\n layoutManager.getOrientation()\n );\n\n itemDecoration.setDrawable(\n ContextCompat.getDrawable(\n ListActivity.this,\n R.drawable.divider_white\n )\n );\n\n recyclerView.addItemDecoration(\n itemDecoration\n );\n\n ItemTouchHelper itemTouchHelper = new ItemTouchHelper(createHelperCallback());\n itemTouchHelper.attachToRecyclerView(recyclerView);\n\n\n }", "@Override\n public listAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n\n\n\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.listitemamentitylayout, parent, false);\n\n listAdapter.ViewHolder vh = new listAdapter.ViewHolder(v);\n\n\n\n return vh;\n\n\n\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_dashboard);\n\n getOrder();\n recyclerView = findViewById(R.id.recycler);\n progressBar = findViewById(R.id.progressBar);\n orderModels = new ArrayList<>();\n recyclerView.setLayoutManager(new LinearLayoutManager(context, LinearLayoutManager.VERTICAL, false));\n linearLayoutManager = new LinearLayoutManager(this);\n\n\n\n recyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() {\n @Override\n public void onScrollStateChanged(@NonNull RecyclerView recyclerView, int newState) {\n super.onScrollStateChanged(recyclerView, newState);\n\n if (newState == AbsListView.OnScrollListener.SCROLL_STATE_TOUCH_SCROLL){\n is_Scrolling = true;\n\n }\n }\n\n @Override\n public void onScrolled(@NonNull RecyclerView recyclerView, int dx, int dy) {\n super.onScrolled(recyclerView, dx, dy);\n\n\n currentItem = linearLayoutManager.getChildCount();\n scrolledItem = linearLayoutManager.findFirstVisibleItemPosition();\n totalItem = linearLayoutManager.getItemCount();\n\n Toast.makeText(dashboard.this, \"total item = \"+totalItem, Toast.LENGTH_SHORT).show();\n Toast.makeText(dashboard.this, \"Scrolled item = \"+scrolledItem, Toast.LENGTH_SHORT).show();\n Toast.makeText(dashboard.this, \"current item = \"+currentItem, Toast.LENGTH_SHORT).show();\n\n if (is_Scrolling && (currentItem+scrolledItem==totalItem)){\n Toast.makeText(dashboard.this, \"make order\", Toast.LENGTH_SHORT).show();\n }\n\n }\n });\n\n\n }", "private void setLayoutManager() {\r\n this.setLayout(new BorderLayout());\r\n }", "@Override\r\n public void onDataSetChanged() {\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.classifieds_liting, null);\n rv = (RecyclerView) v.findViewById(R.id.rv);\n id_list = new ArrayList<>();\n swipe_refresh = (SwipeRefreshLayout) v.findViewById(R.id.swipe);\n final LinearLayoutManager layoutManager = new LinearLayoutManager(getActivity());\n// layoutManager.setStackFromEnd(true);\n layoutManager.setOrientation(LinearLayout.VERTICAL);\n rv.setLayoutManager(layoutManager);\n cm = new Common_Methods();\n Cat_id = getArguments().getString(\"Cat_id\");\n Section_id = getArguments().getString(\"Section_id\");\n list = new ArrayList<>();\n Recycler_view_adaper = new Recycler_View();\n ItemOffsetDecoration itemDecoration = new ItemOffsetDecoration(getActivity(), R.dimen.column_width);\n rv.addItemDecoration(itemDecoration);\n Load_Data(cm.Serv_Address + \"Pagination?\", \"0\", false);\n swipe_refresh.setColorSchemeResources(android.R.color.holo_blue_bright,\n android.R.color.holo_green_light,\n android.R.color.holo_orange_light,\n android.R.color.holo_red_light);\n swipe_refresh.measure(View.MEASURED_SIZE_MASK, View.MEASURED_HEIGHT_STATE_SHIFT);\n swipe_refresh.setEnabled(true);\n swipe_refresh.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n @Override\n public void onRefresh() {\n// Toast.makeText(getActivity(), \"loading\", Toast.LENGTH_SHORT).show();\n// Load_Data(cm.Serv_Address + \"Pagination?\", last_advt_id, true);\n }\n });\n rv.addOnScrollListener(new RecyclerView.OnScrollListener() {\n @Override\n public void onScrollStateChanged(RecyclerView recyclerView, int newState) {\n super.onScrollStateChanged(recyclerView, newState);\n\n item_count = layoutManager.getItemCount();\n last_visible_item_count = layoutManager.findLastVisibleItemPosition();\n if (item_count == (last_visible_item_count + 1)) {\n if (!swipe_refresh.isRefreshing()) {\n swipe_refresh.post(new Runnable() {\n @Override\n public void run() {\n swipe_refresh.setRefreshing(true);\n Load_Data(cm.Serv_Address + \"Pagination?\", last_advt_id, true);\n }\n });\n }\n\n\n }\n\n\n }\n\n @Override\n public void onScrolled(RecyclerView recyclerView, int dx, int dy) {\n super.onScrolled(recyclerView, dx, dy);\n }\n });\n\n return v;\n }", "private void layoutAttachedAndAppearingViews(RecyclerView.Recycler recycler,\r\n RecyclerView.State state){\r\n\r\n // There are no removed items out of the top border.\r\n // So we just layout from the firstAttachedItemPosition.\r\n // We do the pre layout and calculate the layout params for the real layout.\r\n if(firstChangedPosition >= firstAttachedItemPosition){\r\n // Store the layout parameters.\r\n int firstAttachedItemPositionTemp = firstAttachedItemPosition;\r\n int lastAttachedItemPositionTemp = lastAttachedItemPosition;\r\n int[] spanTopTemp = Arrays.copyOf(spanTop, mSpanCount);\r\n int[] spanBottomTemp = Arrays.copyOf(spanBottom, mSpanCount);\r\n\r\n topBorder = getPaddingTop();\r\n bottomBorder = getHeight() - getPaddingBottom();\r\n spanBottom = Arrays.copyOf(spanTop, mSpanCount);\r\n updateSpanBottomParameters();\r\n\r\n detachAndScrapAttachedViews(recycler);\r\n\r\n mCurrentPosition = firstAttachedItemPosition;\r\n lastAttachedItemPosition = firstAttachedItemPosition;\r\n\r\n // Set the fake params.\r\n fakeSpanBottomMin = spanBottomMin;\r\n fakeSpanBottomMax = spanBottomMax;\r\n fakeCurrentPosition = mCurrentPosition;\r\n fakeFirstAttachedItemPosition = firstAttachedItemPosition;\r\n fakeFirstOneEmptyBottomSpanIndex = firstOneEmptyBottomSpanIndex;\r\n fakeFirstTwoEmptyBottomSpanIndex = firstTwoEmptyBottomSpanIndex;\r\n fakeSpanTop = Arrays.copyOf(spanTop, mSpanCount);\r\n fakeSpanBottom = Arrays.copyOf(spanBottom, mSpanCount);\r\n\r\n // Lay out current attached views and appearing views.\r\n fillGridForPreLayout(recycler, state);\r\n\r\n // Restore the layout parameters.\r\n firstAttachedItemPosition = firstAttachedItemPositionTemp;\r\n lastAttachedItemPosition = lastAttachedItemPositionTemp;\r\n spanTop = Arrays.copyOf(spanTopTemp, mSpanCount);\r\n spanBottom = Arrays.copyOf(spanBottomTemp, mSpanCount);\r\n updateSpanTopParameters();\r\n updateSpanBottomParameters();\r\n }else{ // There are removed items out of the top border.\r\n\r\n // Calculate the spanTop begin with the firstChangedPosition\r\n // and update layout parameters.\r\n topBorder = getPaddingTop() - scrollOffset;\r\n Arrays.fill(spanTop, topBorder);\r\n for (int i = 0; i < firstChangedPosition; i++) {\r\n for (int j = 0; j < itemLayoutWidthCache.get(i); j++) {\r\n int spanIndex = itemOccupiedStartSpan.get(i) + j;\r\n spanTop[spanIndex] += itemLayoutHeightCache.get(i) * sizePerSpan;\r\n }\r\n }\r\n updateSpanTopParameters();\r\n bottomBorder = getHeight() - getPaddingBottom();\r\n spanBottom = Arrays.copyOf(spanTop, mSpanCount);\r\n updateSpanBottomParameters();\r\n mCurrentPosition = firstChangedPosition;\r\n // Fill from the spanTop until bottomBorder.\r\n // Note that we just lay out attached views and appearing views.\r\n // The firstAttachedItemPosition may change,\r\n // set it as -1 and update it during the layout\r\n firstAttachedItemPosition = -1;\r\n lastAttachedItemPosition = -1;\r\n\r\n detachAndScrapAttachedViews(recycler);\r\n\r\n // Set the fake params.\r\n fakeSpanBottomMin = spanBottomMin;\r\n fakeSpanBottomMax = spanBottomMax;\r\n fakeCurrentPosition = mCurrentPosition;\r\n fakeFirstAttachedItemPosition = firstAttachedItemPosition;\r\n fakeFirstOneEmptyBottomSpanIndex = firstOneEmptyBottomSpanIndex;\r\n fakeFirstTwoEmptyBottomSpanIndex = firstTwoEmptyBottomSpanIndex;\r\n fakeSpanTop = Arrays.copyOf(spanTop, mSpanCount);\r\n fakeSpanBottom = Arrays.copyOf(spanBottom, mSpanCount);\r\n\r\n // Lay out current attached views and appearing views.\r\n fillGridForPreLayout(recycler, state);\r\n\r\n // Restore the layout parameters.\r\n firstAttachedItemPosition = fakeFirstAttachedItemPosition;\r\n spanTop = Arrays.copyOf(fakeSpanTop, mSpanCount);\r\n spanBottom = Arrays.copyOf(fakeSpanBottom, mSpanCount);\r\n updateSpanTopParameters();\r\n updateSpanBottomParameters();\r\n }\r\n\r\n }", "private void initRecyclerview() {\n RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(this);\n recyclerView.setLayoutManager(layoutManager);\n\n mAdapter = new MovieAdapter(this);\n recyclerView.setAdapter(mAdapter);\n }", "@Override\n public boolean checkLayoutParams(RecyclerView.LayoutParams lp) {\n return true;\n }", "@Override\n public int getItemViewType(int position) {\n if(position < albumDataSet.size()) {\n return 0;\n } // For layout 1\n else {\n return 1;\n } // For layout 2\n }", "private void initRecyclerView(android.view.View view){\n mRecyclerView = (RecyclerView) view.findViewById(R.id.recycler_view);\n mRecyclerView.setHasFixedSize(true);\n mLayoutManager = new LinearLayoutManager(MainActivity.sContext);\n mRecyclerView.setLayoutManager(mLayoutManager);\n mAdapter = new TopicRecyclerViewAdapter( mPresenter.getDataSet() );\n mRecyclerView.setAdapter(mAdapter);\n\n // Code to Add an item with default animation\n //((TopicRecyclerViewAdapter) mAdapter).addItem(obj, index);\n\n // Code to remove an item with default animation\n //((TopicRecyclerViewAdapter) mAdapter).deleteItem(index);\n }", "private void setupRecyclerView() {\n recyclerViewPhotos.setHasFixedSize(true);\n LinearLayoutManager layoutManager = new LinearLayoutManager(this);\n recyclerViewPhotos.setLayoutManager(layoutManager);\n\n /**\n * Set up scroll listener\n */\n recyclerViewPhotos.addOnScrollListener(new RecyclerView.OnScrollListener() {\n @Override\n public void onScrolled(RecyclerView recyclerView, int dx, int dy) {\n\n int visibleItemCount = layoutManager.getChildCount();\n int totalItemCount = layoutManager.getItemCount();\n int pastVisiblesItems = layoutManager.findFirstVisibleItemPosition();\n\n if (!isScrolledToBottom) {\n if ((visibleItemCount + pastVisiblesItems) >= totalItemCount) {\n isScrolledToBottom = true;\n presenter.loadMore();\n }\n }\n }\n });\n }", "private void setAdaptersForDataToShow() {\n LinearLayoutManager linearLayoutManager_SectionOfDays = new LinearLayoutManager(this);\n linearLayoutManager_SectionOfDays.setOrientation(LinearLayoutManager.HORIZONTAL);\n recyclerView_sectionOfDays.setLayoutManager(linearLayoutManager_SectionOfDays);\n recyclerView_sectionOfDays.setAdapter(new SectionOfDays_RecyclerViewAdapter(this, daysArray, this));\n\n /**\n * Vertical Recycler View showing List Of Trains\n */\n LinearLayoutManager linearLayoutManager_ListOfTrains = new LinearLayoutManager(this);\n linearLayoutManager_ListOfTrains.setOrientation(LinearLayoutManager.VERTICAL);\n recyclerView_listOfTrains.setLayoutManager(linearLayoutManager_ListOfTrains);\n setAdapter_ListOfTrains_Vertical_RecyclerView(0);\n }", "public static final /* synthetic */ LinearLayoutManager m75359j(CatalogFragment catalogFragment) {\n LinearLayoutManager linearLayoutManager = catalogFragment.f53732j;\n if (linearLayoutManager == null) {\n C32569u.m150520b(C6969H.m41409d(\"G6582CC15AA248628E80F974DE0\"));\n }\n return linearLayoutManager;\n }", "@Override\n\tprotected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {\n\t\tsuper.onMeasure(widthMeasureSpec, heightMeasureSpec);\n\t\t\n\t ListAdapter listAdapter = this.getAdapter(); \n\t if (listAdapter == null) { \n\t return; \n\t } \n\t \n\t int totalHeight = 0; \n\t for (int i = 0; i < listAdapter.getCount(); i++) { \n\t View listItem = listAdapter.getView(i, null, this); \n\t try\n\t {\n\t \tlistItem.measure(0, 0); \n\t }\n\t catch (Exception e)\n\t {\n\t \te.printStackTrace();\n\t }\n\t \n\t totalHeight += listItem.getMeasuredHeight(); \n\t } \n\t \n\t totalHeight = totalHeight + (this.getDividerHeight() * (listAdapter.getCount() - 1));\n\t totalHeight += this.getPaddingBottom();\n\t totalHeight += this.getPaddingTop();\n\t \n\t this.setMeasuredDimension(this.getMeasuredWidth(), totalHeight);\n\t\t\n\t\t\n\t}", "public void notifyDataSetChanged() {\n /*\n r17 = this;\n r0 = r17\n org.telegram.ui.Components.StickerMasksAlert r1 = org.telegram.ui.Components.StickerMasksAlert.this\n org.telegram.ui.Components.RecyclerListView r1 = r1.gridView\n int r1 = r1.getMeasuredWidth()\n if (r1 != 0) goto L_0x0012\n android.graphics.Point r1 = org.telegram.messenger.AndroidUtilities.displaySize\n int r1 = r1.x\n L_0x0012:\n r2 = 1116733440(0x42900000, float:72.0)\n int r2 = org.telegram.messenger.AndroidUtilities.dp(r2)\n int r1 = r1 / r2\n r0.stickersPerRow = r1\n org.telegram.ui.Components.StickerMasksAlert r1 = org.telegram.ui.Components.StickerMasksAlert.this\n androidx.recyclerview.widget.GridLayoutManager r1 = r1.stickersLayoutManager\n int r2 = r0.stickersPerRow\n r1.setSpanCount(r2)\n android.util.SparseArray<java.lang.Object> r1 = r0.rowStartPack\n r1.clear()\n java.util.HashMap<java.lang.Object, java.lang.Integer> r1 = r0.packStartPosition\n r1.clear()\n android.util.SparseIntArray r1 = r0.positionToRow\n r1.clear()\n android.util.SparseArray<java.lang.Object> r1 = r0.cache\n r1.clear()\n r1 = 0\n r0.totalItems = r1\n org.telegram.ui.Components.StickerMasksAlert r2 = org.telegram.ui.Components.StickerMasksAlert.this\n java.util.ArrayList[] r2 = r2.stickerSets\n org.telegram.ui.Components.StickerMasksAlert r3 = org.telegram.ui.Components.StickerMasksAlert.this\n int r3 = r3.currentType\n r2 = r2[r3]\n r3 = -3\n r4 = -3\n r5 = 0\n L_0x004e:\n int r6 = r2.size()\n if (r4 >= r6) goto L_0x0160\n if (r4 != r3) goto L_0x0067\n android.util.SparseArray<java.lang.Object> r6 = r0.cache\n int r7 = r0.totalItems\n int r8 = r7 + 1\n r0.totalItems = r8\n java.lang.String r8 = \"search\"\n r6.put(r7, r8)\n int r5 = r5 + 1\n goto L_0x015a\n L_0x0067:\n r6 = -2\n java.lang.String r7 = \"fav\"\n java.lang.String r8 = \"recent\"\n r9 = -1\n r10 = 0\n if (r4 != r6) goto L_0x008e\n org.telegram.ui.Components.StickerMasksAlert r6 = org.telegram.ui.Components.StickerMasksAlert.this\n int r6 = r6.currentType\n if (r6 != 0) goto L_0x008b\n org.telegram.ui.Components.StickerMasksAlert r6 = org.telegram.ui.Components.StickerMasksAlert.this\n java.util.ArrayList r6 = r6.favouriteStickers\n java.util.HashMap<java.lang.Object, java.lang.Integer> r11 = r0.packStartPosition\n int r12 = r0.totalItems\n java.lang.Integer r12 = java.lang.Integer.valueOf(r12)\n r11.put(r7, r12)\n r11 = r7\n goto L_0x00aa\n L_0x008b:\n r6 = r10\n r11 = r6\n goto L_0x00c8\n L_0x008e:\n if (r4 != r9) goto L_0x00b0\n org.telegram.ui.Components.StickerMasksAlert r6 = org.telegram.ui.Components.StickerMasksAlert.this\n java.util.ArrayList[] r6 = r6.recentStickers\n org.telegram.ui.Components.StickerMasksAlert r11 = org.telegram.ui.Components.StickerMasksAlert.this\n int r11 = r11.currentType\n r6 = r6[r11]\n java.util.HashMap<java.lang.Object, java.lang.Integer> r11 = r0.packStartPosition\n int r12 = r0.totalItems\n java.lang.Integer r12 = java.lang.Integer.valueOf(r12)\n r11.put(r8, r12)\n r11 = r8\n L_0x00aa:\n r16 = r10\n r10 = r6\n r6 = r16\n goto L_0x00c8\n L_0x00b0:\n java.lang.Object r6 = r2.get(r4)\n org.telegram.tgnet.TLRPC$TL_messages_stickerSet r6 = (org.telegram.tgnet.TLRPC$TL_messages_stickerSet) r6\n java.util.ArrayList<org.telegram.tgnet.TLRPC$Document> r11 = r6.documents\n java.util.HashMap<java.lang.Object, java.lang.Integer> r12 = r0.packStartPosition\n int r13 = r0.totalItems\n java.lang.Integer r13 = java.lang.Integer.valueOf(r13)\n r12.put(r6, r13)\n r16 = r11\n r11 = r10\n r10 = r16\n L_0x00c8:\n if (r10 == 0) goto L_0x015a\n boolean r12 = r10.isEmpty()\n if (r12 == 0) goto L_0x00d2\n goto L_0x015a\n L_0x00d2:\n int r12 = r10.size()\n float r12 = (float) r12\n int r13 = r0.stickersPerRow\n float r13 = (float) r13\n float r12 = r12 / r13\n double r12 = (double) r12\n double r12 = java.lang.Math.ceil(r12)\n int r12 = (int) r12\n if (r6 == 0) goto L_0x00eb\n android.util.SparseArray<java.lang.Object> r13 = r0.cache\n int r14 = r0.totalItems\n r13.put(r14, r6)\n goto L_0x00f2\n L_0x00eb:\n android.util.SparseArray<java.lang.Object> r13 = r0.cache\n int r14 = r0.totalItems\n r13.put(r14, r10)\n L_0x00f2:\n android.util.SparseIntArray r13 = r0.positionToRow\n int r14 = r0.totalItems\n r13.put(r14, r5)\n r13 = 0\n L_0x00fa:\n int r14 = r10.size()\n if (r13 >= r14) goto L_0x012e\n int r14 = r13 + 1\n int r15 = r0.totalItems\n int r15 = r15 + r14\n android.util.SparseArray<java.lang.Object> r1 = r0.cache\n java.lang.Object r3 = r10.get(r13)\n r1.put(r15, r3)\n if (r6 == 0) goto L_0x0116\n android.util.SparseArray<java.lang.Object> r1 = r0.cacheParents\n r1.put(r15, r6)\n goto L_0x011b\n L_0x0116:\n android.util.SparseArray<java.lang.Object> r1 = r0.cacheParents\n r1.put(r15, r11)\n L_0x011b:\n android.util.SparseIntArray r1 = r0.positionToRow\n int r3 = r0.totalItems\n int r3 = r3 + r14\n int r15 = r5 + 1\n int r9 = r0.stickersPerRow\n int r13 = r13 / r9\n int r15 = r15 + r13\n r1.put(r3, r15)\n r13 = r14\n r1 = 0\n r3 = -3\n r9 = -1\n goto L_0x00fa\n L_0x012e:\n r1 = 0\n L_0x012f:\n int r3 = r12 + 1\n if (r1 >= r3) goto L_0x014e\n if (r6 == 0) goto L_0x013e\n android.util.SparseArray<java.lang.Object> r3 = r0.rowStartPack\n int r9 = r5 + r1\n r3.put(r9, r6)\n r10 = -1\n goto L_0x014b\n L_0x013e:\n android.util.SparseArray<java.lang.Object> r3 = r0.rowStartPack\n int r9 = r5 + r1\n r10 = -1\n if (r4 != r10) goto L_0x0147\n r11 = r8\n goto L_0x0148\n L_0x0147:\n r11 = r7\n L_0x0148:\n r3.put(r9, r11)\n L_0x014b:\n int r1 = r1 + 1\n goto L_0x012f\n L_0x014e:\n int r1 = r0.totalItems\n int r6 = r0.stickersPerRow\n int r12 = r12 * r6\n int r12 = r12 + 1\n int r1 = r1 + r12\n r0.totalItems = r1\n int r5 = r5 + r3\n L_0x015a:\n int r4 = r4 + 1\n r1 = 0\n r3 = -3\n goto L_0x004e\n L_0x0160:\n super.notifyDataSetChanged()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.telegram.ui.Components.StickerMasksAlert.StickersGridAdapter.notifyDataSetChanged():void\");\n }", "private void recyclerViewOrientation()\n {\n recyclerView = (RecyclerView) findViewById(R.id.recycleViewerId);\n recyclerView.removeAllViewsInLayout();\n\n if(exists == false) {\n baseMovieList = new ArrayList<>();\n movieList = new ArrayList<>();\n exists = true;\n }\n movieAdapter = new MovieAdapter(this, movieList);\n if(userId != null)\n movieAdapter.setUser(userId);\n\n if(getActivity().getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT)\n {\n recyclerView.setLayoutManager(new GridLayoutManager(this, 1));\n } else\n recyclerView.setLayoutManager(new GridLayoutManager(this, 2));\n movieAdapter.setUser(userId);\n recyclerView.setItemAnimator(new DefaultItemAnimator());\n recyclerView.setAdapter(movieAdapter);\n movieAdapter.notifyDataSetChanged();\n getMovies();\n }", "private void initRecyclerView() {\n RecyclerView recyclerview = findViewById(R.id.projectList);\n RecyclerViewAdapter adapter = new RecyclerViewAdapter(projectNames, this);\n recyclerview.setAdapter(adapter);\n final LinearLayoutManager layoutManager = new LinearLayoutManager(this);\n layoutManager.setOrientation(LinearLayoutManager.VERTICAL);\n recyclerview.setLayoutManager(layoutManager);\n }", "private void setUpRecyclerview(){\r\n mRecyclerview = (RecyclerView) findViewById(R.id.roomRecView);\r\n LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false);\r\n mRecyclerview.setLayoutManager(linearLayoutManager);\r\n mRecyclerview.setHasFixedSize(true);\r\n mRoomRecyclerview = new RoomRecyclerview(this,mQuery,mAdapterItems,mAdapterKeys);\r\n mRecyclerview.setAdapter(mRoomRecyclerview);\r\n RecyclerView.ItemAnimator itemAnimator = new DefaultItemAnimator();\r\n itemAnimator.setAddDuration(1000);\r\n itemAnimator.setRemoveDuration(1000);\r\n itemAnimator.setChangeDuration(1000);\r\n itemAnimator.setMoveDuration(1000);\r\n mRecyclerview.setItemAnimator(itemAnimator);\r\n\r\n }", "private void setRecyclerViewData() {\n }", "public void redrawDrawerLinearLayout() {\n this.drawerLinearLayout.removeAllViews();\n this.drawerLinearLayout.invalidate();\n boolean groupTextAdded = false;\n int secondaryTextColor = ContextCompat.getColor(getApplicationContext(), R.color.secondaryLightTextColor);\n Iterator it = this.groups.iterator();\n while (it.hasNext()) {\n LinkedList<Light> group = (LinkedList) it.next();\n final LinearLayout drawerGroup = new LinearLayout(this);\n if (!group.isEmpty()) {\n Log.i(tag, \"redraw drawer group \" + ((Light) group.get(0)).getGroupNumber());\n } else {\n Log.i(tag, \"redraw drawer empty group\");\n }\n if (!group.isEmpty() && ((Light) group.get(0)).getGroupNumber() != 0) {\n LinearLayout linearLayout = new LinearLayout(this);\n LayoutParams layoutParams = new LayoutParams(-1, -2);\n linearLayout.setLayoutParams(layoutParams);\n linearLayout.setPadding(0, pxToDp(5), 0, pxToDp(5));\n linearLayout.setOrientation(1);\n this.drawerLinearLayout.addView(linearLayout);\n if (!groupTextAdded) {\n groupTextAdded = true;\n LinearLayout linearLayout2 = new LinearLayout(this);\n LayoutParams layoutParams2 = new LayoutParams(-1, pxToDp(1));\n linearLayout2.setLayoutParams(layoutParams2);\n linearLayout2.setBackgroundColor(ContextCompat.getColor(getApplicationContext(), R.color.secondaryLightTextColor));\n linearLayout.addView(linearLayout2);\n TextView textView = new TextView(this);\n LayoutParams layoutParams3 = new LayoutParams(-2, -2);\n layoutParams3.setMargins(pxToDp(16), 0, 0, 0);\n textView.setLayoutParams(layoutParams3);\n textView.setPadding(0, pxToDp(3), 0, pxToDp(3));\n textView.setText(getResources().getString(R.string.Groups));\n textView.setTextSize(this.drawerGroupSize);\n textView.setTextColor(secondaryTextColor);\n textView.setTypeface(this.font);\n linearLayout.addView(textView);\n }\n LinearLayout linearLayout3 = new LinearLayout(this);\n LayoutParams layoutParams4 = new LayoutParams(-1, pxToDp(1));\n linearLayout3.setLayoutParams(layoutParams4);\n linearLayout3.setBackgroundColor(ContextCompat.getColor(getApplicationContext(), R.color.secondaryLightTextColor));\n linearLayout.addView(linearLayout3);\n LayoutParams layoutParams5 = new LayoutParams(-1, pxToDp(48));\n drawerGroup.setLayoutParams(layoutParams5);\n drawerGroup.setOrientation(0);\n drawerGroup.setPadding(pxToDp(16), 0, pxToDp(16), 0);\n drawerGroup.setGravity(16);\n drawerGroup.setTag(group);\n this.drawerLinearLayout.addView(drawerGroup);\n ImageView imageView = new ImageView(this);\n LayoutParams layoutParams6 = new LayoutParams(pxToDp(30), pxToDp(30));\n imageView.setLayoutParams(layoutParams6);\n imageView.setImageResource(R.drawable.drawer_app_groupoption2_128px);\n drawerGroup.addView(imageView);\n EditText groupName = (EditText) getLayoutInflater().inflate(R.layout.navigation_drawer_edittext, null);\n LayoutParams layoutParams7 = new LayoutParams(-2, -2, 1.0f);\n layoutParams7.setMargins(pxToDp(10), 0, 0, 0);\n groupName.setLayoutParams(layoutParams7);\n groupName.setText(((Light) group.get(0)).getGroupName().trim());\n groupName.setTextSize(this.drawerTextSize);\n groupName.setTextColor(secondaryTextColor);\n groupName.setSingleLine(false);\n groupName.setHorizontallyScrolling(false);\n groupName.setMaxLines(2);\n groupName.setImeOptions(6);\n groupName.setInputType(663697);\n groupName.setTypeface(this.font);\n groupName.setBackgroundColor(0);\n groupName.setPadding(0, pxToDp(1), 0, 0);\n groupName.setFilters(new InputFilter[]{new LengthFilter(16)});\n if (this.userEdittingUnlocked) {\n groupName.setFocusable(true);\n groupName.setFocusableInTouchMode(true);\n } else {\n groupName.setFocusable(false);\n groupName.setFocusableInTouchMode(false);\n }\n drawerGroup.addView(groupName);\n AnonymousClass6 r0 = new OnLongClickListener() {\n public boolean onLongClick(View view) {\n return true;\n }\n };\n groupName.setOnLongClickListener(r0);\n final EditText editText = groupName;\n final LinkedList linkedList = group;\n AnonymousClass7 r02 = new OnFocusChangeListener() {\n public void onFocusChange(View view, boolean hasFocus) {\n InputMethodManager inputMethodManager = (InputMethodManager) MainActivity.this.getSystemService(\"input_method\");\n if (hasFocus) {\n Log.i(MainActivity.tag, \"groupName hasFocus\");\n inputMethodManager.showSoftInput(editText, 2);\n editText.setSelection(editText.getText().length());\n return;\n }\n Log.i(MainActivity.tag, \"groupName lost focus\");\n String newGroupName = editText.getText().toString().trim();\n if (newGroupName.length() == 0) {\n newGroupName = \"Group\";\n editText.setText(newGroupName);\n }\n Log.i(MainActivity.tag, \"user entered new groupname \" + newGroupName);\n boolean currentLightInGroup = false;\n Iterator it = linkedList.iterator();\n while (it.hasNext()) {\n Light light = (Light) it.next();\n light.setGroupName(newGroupName, false);\n if (light == MainActivity.this.currentLight) {\n currentLightInGroup = true;\n }\n }\n if (MainActivity.this.broadcastingToGroup && currentLightInGroup) {\n MainActivity.this.setToolbarTitle();\n }\n }\n };\n groupName.setOnFocusChangeListener(r02);\n final EditText editText2 = groupName;\n AnonymousClass8 r03 = new OnEditorActionListener() {\n public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\n switch (actionId) {\n case 0:\n case 5:\n case 6:\n editText2.clearFocus();\n ((InputMethodManager) MainActivity.this.getSystemService(\"input_method\")).hideSoftInputFromWindow(editText2.getWindowToken(), 0);\n return true;\n default:\n return false;\n }\n }\n };\n groupName.setOnEditorActionListener(r03);\n final EditText editText3 = groupName;\n AnonymousClass9 r04 = new TextWatcher() {\n public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {\n }\n\n public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {\n }\n\n public void afterTextChanged(Editable editable) {\n boolean enterPressed = false;\n while (editable.toString().contains(\"\\n\")) {\n enterPressed = true;\n int index = editable.toString().indexOf(\"\\n\");\n editable.delete(index, index + 1);\n }\n if (enterPressed) {\n editText3.clearFocus();\n ((InputMethodManager) MainActivity.this.getSystemService(\"input_method\")).hideSoftInputFromWindow(editText3.getWindowToken(), 0);\n }\n }\n };\n groupName.addTextChangedListener(r04);\n final EditText editText4 = groupName;\n AnonymousClass10 r05 = new OnClickListener() {\n public void onClick(View view) {\n if (!editText4.hasFocus() || !MainActivity.this.userEdittingUnlocked) {\n if (editText4.hasFocus()) {\n editText4.clearFocus();\n }\n drawerGroup.performClick();\n }\n }\n };\n groupName.setOnClickListener(r05);\n final EditText editText5 = groupName;\n final LinkedList linkedList2 = group;\n OnDragListener drawerGroupDragListener = new OnDragListener() {\n public boolean onDrag(View view, DragEvent dragEvent) {\n if (!MainActivity.this.userEdittingUnlocked) {\n return false;\n }\n switch (dragEvent.getAction()) {\n case 2:\n MainActivity.this.checkIfScrollNeeded(view, dragEvent);\n return true;\n case 3:\n return MainActivity.this.setLightForGroupingToGroup(linkedList2);\n case 5:\n editText5.setFocusable(false);\n editText5.setFocusableInTouchMode(false);\n return true;\n case 6:\n editText5.setFocusable(true);\n editText5.setFocusableInTouchMode(true);\n return true;\n default:\n return true;\n }\n }\n };\n groupName.setOnDragListener(drawerGroupDragListener);\n if (this.userEdittingUnlocked) {\n ImageView imageView2 = new ImageView(this);\n LayoutParams layoutParams8 = new LayoutParams(pxToDp(36), pxToDp(36));\n imageView2.setLayoutParams(layoutParams8);\n imageView2.setPadding(pxToDp(6), pxToDp(6), pxToDp(6), pxToDp(6));\n imageView2.setImageResource(R.drawable.ic_create_white_36dp);\n imageView2.setScaleType(ScaleType.FIT_CENTER);\n drawerGroup.addView(imageView2);\n final EditText editText6 = groupName;\n AnonymousClass12 r06 = new OnClickListener() {\n public void onClick(View view) {\n if (!MainActivity.this.userEdittingUnlocked) {\n return;\n }\n if (editText6.hasFocus()) {\n editText6.clearFocus();\n ((InputMethodManager) MainActivity.this.getSystemService(\"input_method\")).hideSoftInputFromWindow(editText6.getWindowToken(), 0);\n return;\n }\n editText6.requestFocus();\n }\n };\n imageView2.setOnClickListener(r06);\n }\n final LinkedList linkedList3 = group;\n AnonymousClass13 r07 = new OnClickListener() {\n public void onClick(View view) {\n if (!MainActivity.this.userEdittingUnlocked) {\n Fragment currentFragment = MainActivity.this.getSupportFragmentManager().findFragmentById(R.id.frameLayout);\n if (!(currentFragment instanceof FirmwareUpdateFragment) || !((FirmwareUpdateFragment) currentFragment).isUpdating()) {\n MainActivity.this.currentLight = (Light) linkedList3.get(0);\n Iterator it = linkedList3.iterator();\n while (true) {\n if (!it.hasNext()) {\n break;\n }\n Light light = (Light) it.next();\n if (light instanceof DreamScreen) {\n MainActivity.this.currentLight = light;\n break;\n }\n }\n MainActivity.this.currentLight.setMode(MainActivity.this.currentLight.getMode(), true);\n Iterator it2 = linkedList3.iterator();\n while (it2.hasNext()) {\n ((Light) it2.next()).initMode(MainActivity.this.currentLight.getMode());\n }\n MainActivity.this.broadcastingToGroup = true;\n MainActivity.this.redrawDrawerLinearLayout();\n MainActivity.this.highlightDrawerSelection();\n MainActivity.this.startDreamScreenFragment();\n MainActivity.this.drawerLayout.closeDrawers();\n return;\n }\n Log.i(MainActivity.tag, \"dont do anything while firmware updating\");\n }\n }\n };\n drawerGroup.setOnClickListener(r07);\n drawerGroup.setOnDragListener(drawerGroupDragListener);\n }\n int lightIndex = 0;\n Iterator it2 = group.iterator();\n while (it2.hasNext()) {\n Light light = (Light) it2.next();\n final LinearLayout drawerLight = new LinearLayout(this);\n drawerLight.setLayoutParams(new LayoutParams(-1, pxToDp(48)));\n drawerLight.setOrientation(0);\n if (light.getGroupNumber() == 0) {\n drawerLight.setPadding(pxToDp(16), 0, pxToDp(16), 0);\n } else {\n drawerLight.setPadding(pxToDp(55), 0, pxToDp(16), 0);\n }\n drawerLight.setGravity(16);\n drawerLight.setTag(light);\n this.drawerLinearLayout.addView(drawerLight);\n ImageView imageView3 = new ImageView(this);\n imageView3.setLayoutParams(new LayoutParams(pxToDp(30), pxToDp(30)));\n drawerLight.addView(imageView3);\n if (light.getProductId() == 1) {\n imageView3.setImageResource(R.drawable.dreamscreen_icon);\n } else if (light.getProductId() == 2) {\n imageView3.setImageResource(R.drawable.dreamscreen4k_icon);\n } else if (light.getProductId() == 7) {\n imageView3.setImageResource(R.drawable.dreamscreensolo_icon);\n } else if (light.getProductId() == 3) {\n imageView3.setImageResource(R.drawable.sidekick_icon);\n } else if (light.getProductId() == 4) {\n imageView3.setImageResource(R.drawable.connect_icon);\n } else {\n Log.i(tag, \"redrawDrawer icon error\");\n imageView3.setImageResource(R.drawable.sidekick_icon);\n }\n EditText lightName = (EditText) getLayoutInflater().inflate(R.layout.navigation_drawer_edittext, null);\n LayoutParams layoutParams9 = new LayoutParams(-2, -2, 1.0f);\n layoutParams9.setMargins(pxToDp(10), 0, 0, 0);\n lightName.setLayoutParams(layoutParams9);\n lightName.setText(light.getName().trim());\n lightName.setTextSize(this.drawerTextSize);\n lightName.setTextColor(secondaryTextColor);\n lightName.setGravity(16);\n lightName.setSingleLine(false);\n lightName.setHorizontallyScrolling(false);\n lightName.setMaxLines(2);\n lightName.setImeOptions(6);\n lightName.setInputType(663697);\n lightName.setTypeface(this.font);\n lightName.setBackgroundColor(0);\n lightName.setPadding(0, pxToDp(1), 0, 0);\n lightName.setFilters(new InputFilter[]{new LengthFilter(16)});\n if (this.userEdittingUnlocked) {\n lightName.setFocusable(true);\n lightName.setFocusableInTouchMode(true);\n } else {\n lightName.setFocusable(false);\n lightName.setFocusableInTouchMode(false);\n }\n drawerLight.addView(lightName);\n final EditText editText7 = lightName;\n final Light light2 = light;\n AnonymousClass14 r08 = new OnFocusChangeListener() {\n public void onFocusChange(View view, boolean hasFocus) {\n InputMethodManager inputMethodManager = (InputMethodManager) MainActivity.this.getSystemService(\"input_method\");\n if (hasFocus) {\n Log.i(MainActivity.tag, editText7.getText().toString() + \" has focus\");\n inputMethodManager.showSoftInput(editText7, 2);\n editText7.setSelection(editText7.getText().length());\n return;\n }\n Log.i(MainActivity.tag, editText7.getText().toString() + \" lost focus\");\n String newName = editText7.getText().toString().trim();\n if (newName.length() == 0) {\n if (light2.getProductId() == 1) {\n newName = \"DreamScreen HD\";\n } else if (light2.getProductId() == 2) {\n newName = \"DreamScreen 4K\";\n } else if (light2.getProductId() == 7) {\n newName = \"DreamScreen Solo\";\n } else if (light2.getProductId() == 3) {\n newName = \"SideKick\";\n } else if (light2.getProductId() == 4) {\n newName = Connect.DEFAULT_NAME;\n } else {\n Log.i(MainActivity.tag, \"error, bad productId\");\n newName = \"Light\";\n }\n editText7.setText(newName);\n }\n Log.i(MainActivity.tag, \"user entered new lightName \" + newName);\n light2.setName(newName);\n if (MainActivity.this.currentLight == light2 && !MainActivity.this.broadcastingToGroup) {\n Log.i(MainActivity.tag, \"currentLight == light && !broadcastingToGroup; calling setToolbarTitle\");\n MainActivity.this.setToolbarTitle();\n }\n }\n };\n lightName.setOnFocusChangeListener(r08);\n final EditText editText8 = lightName;\n AnonymousClass15 r09 = new OnEditorActionListener() {\n public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\n Log.i(MainActivity.tag, \"lightname onEditorActionListener\");\n switch (actionId) {\n case 0:\n case 5:\n case 6:\n editText8.clearFocus();\n ((InputMethodManager) MainActivity.this.getSystemService(\"input_method\")).hideSoftInputFromWindow(editText8.getWindowToken(), 0);\n return true;\n default:\n return false;\n }\n }\n };\n lightName.setOnEditorActionListener(r09);\n final EditText editText9 = lightName;\n AnonymousClass16 r010 = new TextWatcher() {\n public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {\n }\n\n public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {\n }\n\n public void afterTextChanged(Editable editable) {\n boolean enterPressed = false;\n while (editable.toString().contains(\"\\n\")) {\n enterPressed = true;\n int index = editable.toString().indexOf(\"\\n\");\n editable.delete(index, index + 1);\n }\n if (enterPressed) {\n editText9.clearFocus();\n ((InputMethodManager) MainActivity.this.getSystemService(\"input_method\")).hideSoftInputFromWindow(editText9.getWindowToken(), 0);\n }\n }\n };\n lightName.addTextChangedListener(r010);\n final EditText editText10 = lightName;\n AnonymousClass17 r011 = new OnClickListener() {\n public void onClick(View view) {\n if (!editText10.hasFocus() || !MainActivity.this.userEdittingUnlocked) {\n if (editText10.hasFocus()) {\n editText10.clearFocus();\n }\n drawerLight.performClick();\n }\n }\n };\n lightName.setOnClickListener(r011);\n final EditText editText11 = lightName;\n AnonymousClass18 r012 = new OnLongClickListener() {\n public boolean onLongClick(View view) {\n if (!editText11.hasFocus() || !MainActivity.this.userEdittingUnlocked) {\n drawerLight.performLongClick();\n }\n return true;\n }\n };\n lightName.setOnLongClickListener(r012);\n if (this.userEdittingUnlocked) {\n ImageView imageView4 = new ImageView(this);\n imageView4.setLayoutParams(new LayoutParams(pxToDp(36), pxToDp(36)));\n imageView4.setPadding(pxToDp(6), pxToDp(6), pxToDp(6), pxToDp(6));\n imageView4.setImageResource(R.drawable.ic_create_white_36dp);\n imageView4.setScaleType(ScaleType.FIT_CENTER);\n drawerLight.addView(imageView4);\n imageView4.setFocusable(false);\n imageView4.setFocusableInTouchMode(false);\n drawerLight.setFocusable(false);\n drawerLight.setFocusableInTouchMode(false);\n final EditText editText12 = lightName;\n AnonymousClass19 r013 = new OnClickListener() {\n public void onClick(View view) {\n if (!MainActivity.this.userEdittingUnlocked) {\n return;\n }\n if (editText12.hasFocus()) {\n Log.i(MainActivity.tag, \"editbutton, lightname clear focus, hide soft input\");\n editText12.clearFocus();\n ((InputMethodManager) MainActivity.this.getSystemService(\"input_method\")).hideSoftInputFromWindow(editText12.getWindowToken(), 0);\n return;\n }\n Log.i(MainActivity.tag, \"editbutton, lightname request focus\");\n editText12.requestFocus();\n }\n };\n imageView4.setOnClickListener(r013);\n }\n final Light light3 = light;\n AnonymousClass20 r014 = new OnClickListener() {\n public void onClick(View view) {\n if (!MainActivity.this.userEdittingUnlocked) {\n Fragment currentFragment = MainActivity.this.getSupportFragmentManager().findFragmentById(R.id.frameLayout);\n if (!(currentFragment instanceof FirmwareUpdateFragment) || !((FirmwareUpdateFragment) currentFragment).isUpdating()) {\n MainActivity.this.currentLight = light3;\n MainActivity.this.broadcastingToGroup = false;\n MainActivity.this.redrawDrawerLinearLayout();\n MainActivity.this.highlightDrawerSelection();\n MainActivity.this.startDreamScreenFragment();\n MainActivity.this.drawerLayout.closeDrawers();\n return;\n }\n Log.i(MainActivity.tag, \"dont do anything while firmware updating\");\n }\n }\n };\n drawerLight.setOnClickListener(r014);\n final Light light4 = light;\n AnonymousClass21 r015 = new OnLongClickListener() {\n public boolean onLongClick(View view) {\n Fragment currentFragment = MainActivity.this.getSupportFragmentManager().findFragmentById(R.id.frameLayout);\n if ((currentFragment instanceof FirmwareUpdateFragment) && ((FirmwareUpdateFragment) currentFragment).isUpdating()) {\n Log.i(MainActivity.tag, \"dont do anything while firmware updating\");\n return true;\n } else if (!MainActivity.this.userEdittingUnlocked) {\n return false;\n } else {\n MainActivity.this.lightForGrouping = light4;\n ClipData clipData = ClipData.newPlainText(\"\", \"\");\n DragShadowBuilder dragShadow = new DragShadowBuilder(drawerLight);\n if (VERSION.SDK_INT >= 24) {\n view.startDragAndDrop(clipData, dragShadow, null, 0);\n } else {\n view.startDrag(clipData, dragShadow, null, 0);\n }\n ((InputMethodManager) MainActivity.this.getSystemService(\"input_method\")).hideSoftInputFromWindow(drawerLight.getWindowToken(), 0);\n return true;\n }\n }\n };\n drawerLight.setOnLongClickListener(r015);\n final EditText editText13 = lightName;\n final LinkedList linkedList4 = group;\n OnDragListener drawerLightDragListener = new OnDragListener() {\n public boolean onDrag(View view, DragEvent dragEvent) {\n if (!MainActivity.this.userEdittingUnlocked) {\n return false;\n }\n switch (dragEvent.getAction()) {\n case 2:\n MainActivity.this.checkIfScrollNeeded(view, dragEvent);\n return true;\n case 3:\n return MainActivity.this.setLightForGroupingToGroup(linkedList4);\n case 5:\n editText13.setFocusable(false);\n editText13.setFocusableInTouchMode(false);\n return true;\n case 6:\n editText13.setFocusable(true);\n editText13.setFocusableInTouchMode(true);\n return true;\n default:\n return true;\n }\n }\n };\n drawerLight.setOnDragListener(drawerLightDragListener);\n lightName.setOnDragListener(drawerLightDragListener);\n lightIndex++;\n }\n }\n if (this.userEdittingUnlocked) {\n LinearLayout linearLayout4 = new LinearLayout(this);\n LayoutParams layoutParams10 = new LayoutParams(-1, pxToDp(1));\n layoutParams10.setMargins(0, pxToDp(5), 0, pxToDp(5));\n linearLayout4.setLayoutParams(layoutParams10);\n linearLayout4.setBackgroundColor(ContextCompat.getColor(getApplicationContext(), R.color.secondaryLightTextColor));\n this.drawerLinearLayout.addView(linearLayout4);\n LinearLayout drawerAddNewGroup = new LinearLayout(this);\n drawerAddNewGroup.setId(R.id.newGroup);\n LayoutParams layoutParams11 = new LayoutParams(-1, pxToDp(48));\n drawerAddNewGroup.setLayoutParams(layoutParams11);\n drawerAddNewGroup.setOrientation(0);\n drawerAddNewGroup.setPadding(pxToDp(16), 0, pxToDp(16), 0);\n drawerAddNewGroup.setGravity(16);\n this.drawerLinearLayout.addView(drawerAddNewGroup);\n ImageView imageView5 = new ImageView(this);\n imageView5.setLayoutParams(new LayoutParams(pxToDp(30), pxToDp(30)));\n imageView5.setImageResource(R.drawable.drawer_app_groupoption2_128px);\n drawerAddNewGroup.addView(imageView5);\n TextView addNewGroupText = new TextView(this);\n LayoutParams layoutParams12 = new LayoutParams(-2, -2);\n layoutParams12.setMargins(pxToDp(10), 0, 0, 0);\n addNewGroupText.setLayoutParams(layoutParams12);\n addNewGroupText.setText(getResources().getString(R.string.dragDropText));\n addNewGroupText.setTextSize(this.drawerTextSize);\n addNewGroupText.setTypeface(this.font);\n addNewGroupText.setTextColor(secondaryTextColor);\n drawerAddNewGroup.addView(addNewGroupText);\n AnonymousClass23 r016 = new OnDragListener() {\n public boolean onDrag(View view, DragEvent dragEvent) {\n if (!MainActivity.this.userEdittingUnlocked) {\n return false;\n }\n switch (dragEvent.getAction()) {\n case 1:\n return true;\n case 2:\n MainActivity.this.checkIfScrollNeeded(view, dragEvent);\n return true;\n case 3:\n LinkedList<Light> groupToRemove = null;\n boolean afterFirstGroup = false;\n ArrayList<Integer> groupNumberList = new ArrayList<>();\n Iterator it = MainActivity.this.groups.iterator();\n while (it.hasNext()) {\n LinkedList<Light> group = (LinkedList) it.next();\n group.remove(MainActivity.this.lightForGrouping);\n if (afterFirstGroup && group.isEmpty()) {\n groupToRemove = group;\n } else if (!group.isEmpty()) {\n groupNumberList.add(Integer.valueOf(((Light) group.get(0)).getGroupNumber()));\n }\n afterFirstGroup = true;\n }\n if (!groupNumberList.contains(Integer.valueOf(0))) {\n groupNumberList.add(Integer.valueOf(0));\n }\n if (groupToRemove != null) {\n MainActivity.this.groups.remove(groupToRemove);\n }\n int emptyIndex = -1;\n if (!groupNumberList.isEmpty()) {\n Collections.sort(groupNumberList);\n int i = 0;\n while (true) {\n if (i < groupNumberList.size() - 1) {\n if (((Integer) groupNumberList.get(i)).intValue() + 1 != ((Integer) groupNumberList.get(i + 1)).intValue()) {\n emptyIndex = ((Integer) groupNumberList.get(i)).intValue() + 1;\n } else {\n i++;\n }\n }\n }\n }\n if (emptyIndex == -1) {\n emptyIndex = ((Integer) groupNumberList.get(groupNumberList.size() - 1)).intValue() + 1;\n }\n Log.i(MainActivity.tag, emptyIndex + \" empty index groupNumberList \" + groupNumberList);\n LinkedList<Light> newGroup = new LinkedList<>();\n MainActivity.this.lightForGrouping.setGroupName(\"New Group\", false);\n MainActivity.this.lightForGrouping.setGroupNumber(emptyIndex, false);\n newGroup.add(MainActivity.this.lightForGrouping);\n MainActivity.this.groups.add(newGroup);\n if (MainActivity.this.currentLight == MainActivity.this.lightForGrouping && MainActivity.this.broadcastingToGroup) {\n MainActivity.this.setToolbarTitle();\n }\n MainActivity.this.redrawDrawerLinearLayout();\n MainActivity.this.highlightDrawerSelection();\n if ((MainActivity.this.currentLight instanceof SideKick) || (MainActivity.this.currentLight instanceof Connect)) {\n Fragment currentFragment = MainActivity.this.getSupportFragmentManager().findFragmentById(R.id.frameLayout);\n if (currentFragment instanceof DreamScreenFragment) {\n ((DreamScreenFragment) currentFragment).redrawFragment();\n }\n }\n return true;\n case 4:\n return true;\n case 5:\n return true;\n case 6:\n return true;\n default:\n return true;\n }\n }\n };\n drawerAddNewGroup.setOnDragListener(r016);\n }\n RelativeLayout relativeLayout = new RelativeLayout(this);\n RelativeLayout.LayoutParams layoutParams13 = new RelativeLayout.LayoutParams(-1, -1);\n relativeLayout.setLayoutParams(layoutParams13);\n relativeLayout.setVerticalGravity(80);\n relativeLayout.setPadding(pxToDp(8), pxToDp(16), pxToDp(8), pxToDp(16));\n this.drawerLinearLayout.addView(relativeLayout);\n final RelativeLayout relativeLayout2 = relativeLayout;\n AnonymousClass24 r017 = new OnClickListener() {\n public void onClick(View view) {\n ((InputMethodManager) MainActivity.this.getSystemService(\"input_method\")).hideSoftInputFromWindow(relativeLayout2.getWindowToken(), 0);\n }\n };\n relativeLayout.setOnClickListener(r017);\n LinearLayout edittingLayout = new LinearLayout(this);\n RelativeLayout.LayoutParams layoutParams14 = new RelativeLayout.LayoutParams(-2, -2);\n layoutParams14.addRule(20);\n edittingLayout.setLayoutParams(layoutParams14);\n edittingLayout.setOrientation(1);\n edittingLayout.setGravity(1);\n relativeLayout.addView(edittingLayout);\n ImageButton imageButton = new ImageButton(this);\n imageButton.setLayoutParams(new ViewGroup.LayoutParams(-2, -2));\n if (this.userEdittingUnlocked) {\n imageButton.setImageResource(R.drawable.ic_lock_open_white_36dp);\n } else {\n imageButton.setImageResource(R.drawable.ic_lock_outline_white_36dp);\n }\n imageButton.setBackgroundColor(0);\n AnonymousClass25 r018 = new OnClickListener() {\n public void onClick(View view) {\n if (!MainActivity.this.groups.isEmpty()) {\n Log.i(MainActivity.tag, \"userEdittingLockButton\");\n MainActivity.this.userEdittingUnlocked = !MainActivity.this.userEdittingUnlocked;\n MainActivity.this.redrawDrawerLinearLayout();\n MainActivity.this.highlightDrawerSelection();\n ((InputMethodManager) MainActivity.this.getSystemService(\"input_method\")).hideSoftInputFromWindow(MainActivity.this.drawerLinearLayout.getWindowToken(), 0);\n }\n }\n };\n imageButton.setOnClickListener(r018);\n edittingLayout.addView(imageButton);\n TextView edittingText = new TextView(this);\n edittingText.setLayoutParams(new ViewGroup.LayoutParams(pxToDp(75), -2));\n edittingText.setTextSize(this.drawerTextSize);\n edittingText.setTypeface(this.font);\n edittingText.setTextColor(secondaryTextColor);\n edittingText.setGravity(1);\n edittingText.setText(\"Edit\");\n edittingLayout.addView(edittingText);\n LinearLayout addNewLayout = new LinearLayout(this);\n RelativeLayout.LayoutParams layoutParams15 = new RelativeLayout.LayoutParams(-2, -2);\n layoutParams15.addRule(21);\n addNewLayout.setLayoutParams(layoutParams15);\n addNewLayout.setOrientation(1);\n addNewLayout.setGravity(1);\n relativeLayout.addView(addNewLayout);\n ImageButton addDeviceButton = new ImageButton(this);\n addDeviceButton.setLayoutParams(new ViewGroup.LayoutParams(-2, -2));\n addDeviceButton.setImageResource(R.drawable.ic_add_circle_outline_white_36dp);\n addDeviceButton.setBackgroundColor(0);\n addDeviceButton.setAdjustViewBounds(true);\n AnonymousClass26 r019 = new OnClickListener() {\n public void onClick(View view) {\n MainActivity.this.drawerLayout.closeDrawers();\n Fragment currentFragment = MainActivity.this.getSupportFragmentManager().findFragmentById(R.id.frameLayout);\n if ((currentFragment instanceof NewDeviceFragment) || ((currentFragment instanceof FirmwareUpdateFragment) && ((FirmwareUpdateFragment) currentFragment).isUpdating())) {\n Log.i(MainActivity.tag, \"dont let user start newDeviceFragment if currently NewDeviceFragment or FirmwareUpdateFragment\");\n return;\n }\n MainActivity.this.groups = new LinkedList();\n MainActivity.this.currentLight = null;\n MainActivity.this.broadcastingToGroup = false;\n MainActivity.this.lightForGrouping = null;\n MainActivity.this.toolbarTitle.setText(\"\");\n MainActivity.this.toolbarGroupIcon.setVisibility(8);\n MainActivity.this.redrawDrawerLinearLayout();\n FragmentManager fragmentManager = MainActivity.this.getSupportFragmentManager();\n for (int i = 0; i < fragmentManager.getBackStackEntryCount(); i++) {\n fragmentManager.popBackStack();\n }\n fragmentManager.beginTransaction().replace(R.id.frameLayout, NewDeviceFragment.newInstance()).commitAllowingStateLoss();\n MainActivity.this.handler.postDelayed(new Runnable() {\n public void run() {\n MainActivity.this.hideToolbarButtons();\n }\n }, 50);\n }\n };\n addDeviceButton.setOnClickListener(r019);\n addNewLayout.addView(addDeviceButton);\n TextView addNewText = new TextView(this);\n addNewText.setLayoutParams(new ViewGroup.LayoutParams(pxToDp(75), -2));\n addNewText.setTextSize(this.drawerTextSize);\n addNewText.setTypeface(this.font);\n addNewText.setTextColor(secondaryTextColor);\n addNewText.setGravity(17);\n addNewText.setText(getResources().getString(R.string.AddNew));\n addNewLayout.addView(addNewText);\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\r\n\r\n View view = inflater.inflate(R.layout.fragment_category, container, false);\r\n\r\n\r\n recyclerView = (RecyclerView) view.findViewById(R.id.recyclerView);\r\n recyclerView.setHasFixedSize(true);\r\n RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getActivity().getApplicationContext());\r\n recyclerView.setLayoutManager(layoutManager);\r\n\r\n recyclerView.addOnItemTouchListener(new RecyclerView.OnItemTouchListener() {\r\n final GestureDetector gestureDetector = new GestureDetector(getActivity().getApplicationContext(), new GestureDetector.SimpleOnGestureListener() {\r\n\r\n @Override\r\n public boolean onSingleTapUp(MotionEvent e) {\r\n return true;\r\n }\r\n\r\n });\r\n\r\n @Override\r\n public boolean onInterceptTouchEvent(RecyclerView rv, MotionEvent e) {\r\n\r\n View child = rv.findChildViewUnder(e.getX(), e.getY());\r\n if (child != null && gestureDetector.onTouchEvent(e)) {\r\n rv.getChildAdapterPosition(child);\r\n\r\n }\r\n\r\n return false;\r\n }\r\n\r\n @Override\r\n public void onTouchEvent(RecyclerView rv, MotionEvent e) {\r\n\r\n }\r\n\r\n @Override\r\n public void onRequestDisallowInterceptTouchEvent(boolean disallowIntercept) {\r\n\r\n }\r\n });\r\n\r\n return view;\r\n }", "public void buildRecyclerView(){\n setOnClickListener();\n RecyclerView reminderRecycler = findViewById(R.id.reminderRecycler);\n reminderRecycler.setHasFixedSize(false);\n RecyclerView.LayoutManager reminderLayoutManager = new LinearLayoutManager(this);\n recyclerAdapter = new RecyclerAdapter(reminderItems, listener);\n reminderRecycler.setLayoutManager(reminderLayoutManager);\n reminderRecycler.setAdapter(recyclerAdapter);\n reminderRecycler.addItemDecoration(new MemberItemDecoration(300));\n }", "private void initLabelRecycler() {\n\n id_flowlayout.setAdapter(new TagAdapter<ServerLabelEntity>(serverLabelEntityArrayList) {\n @Override\n public View getView(FlowLayout parent, int position, ServerLabelEntity serverLabelEntity) {\n TextView server_label_name_tv = (TextView) LayoutInflater.from(getContext()).inflate(R.layout.server_details_label_item,\n id_flowlayout, false);\n server_label_name_tv.setText(serverLabelEntity.getName());\n return server_label_name_tv;\n }\n });\n\n }", "@Override\n public CustomViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {\n\n\n View rootView = LayoutInflater.from(mContext).inflate(R.layout.list_job_request_row, null, false);\n RecyclerView.LayoutParams lp = new RecyclerView.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n rootView.setLayoutParams(lp);\n final CustomViewHolder viewHolder = new CustomViewHolder(rootView);\n\n\n return viewHolder;\n }", "@Override\n public void requestLayout() {\n super.requestLayout();\n if (onRequestLayoutListener != null && !isRequestLayoutPosted) {\n isRequestLayoutPosted = true;\n postDelayed(requestLayoutRunnable, 33);\n }\n }", "private void prepareRefreshLayout() {\n swipeRefreshLayout.setColorSchemeColors(\n ContextCompat.getColor(getActivity(), R.color.colorPrimary),\n ContextCompat.getColor(getActivity(), R.color.colorAccent),\n ContextCompat.getColor(getActivity(), R.color.colorPrimaryDark)\n );\n\n // Set the scrolling view in the custom SwipeRefreshLayout.\n swipeRefreshLayout.setScrollUpChild(recyclerView);\n swipeRefreshLayout.setOnRefreshListener(() -> {\n presenter.getBuyedMovie();\n });\n movieRecyclerViewAdapter = new MovieRecyclerViewAdapter(new ArrayList<>(), this);\n recyclerView.setAdapter(movieRecyclerViewAdapter);\n recyclerView.setLayoutManager(new GridLayoutManager(getActivity(), 3));\n\n recyclerView.setItemAnimator(new DefaultItemAnimator());\n movieRecyclerViewAdapter.notifyDataSetChanged();\n }", "private void setAdapter() {\n resultsRv.setLayoutManager(new LinearLayoutManager(getActivity()));\n resultsRv.setHasFixedSize(true);\n resultsRv.setItemAnimator(new DefaultItemAnimator());\n resultsRv.setAdapter(resultsListAdapter);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n Log.d(\"cprv\", \"onCreateView @ RecyclerViewFragment\");\n\n View rootView = inflater.inflate(R.layout.recycler_view_frag, container, false);\n rootView.setTag(TAG);\n\n // BEGIN_INCLUDE\n mRecyclerView = (RecyclerView) rootView.findViewById(R.id.recyclerView);\n\n mLayoutManager = new LinearLayoutManager(getActivity());\n\n mCurrentLayoutManagerType = LayoutManagerType.LINEAR_LAYOUT_MANAGER;\n\n if(savedInstanceState != null){\n // restore saved layout manager type\n mCurrentLayoutManagerType = (LayoutManagerType) savedInstanceState.getSerializable((KEY_LAYOUT_MANAGER));\n }\n setRecyclerViewLayoutManager(mCurrentLayoutManagerType);\n\n mAdapter = new CustomAdapter(mDataset);\n // set CustomAdapter as the adapter for RecyclerView\n mRecyclerView.setAdapter(mAdapter);\n // END_INCLUDE\n\n mLinearLayoutRadioButton = (RadioButton) rootView.findViewById(R.id.linear_layout_rb);\n mLinearLayoutRadioButton.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v){\n setRecyclerViewLayoutManager(LayoutManagerType.LINEAR_LAYOUT_MANAGER);\n }\n });\n\n mGridLayoutRadioButton = (RadioButton) rootView.findViewById(R.id.grid_layout_rb);\n mGridLayoutRadioButton.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v){\n setRecyclerViewLayoutManager(LayoutManagerType.GRID_LAYOUT_MANAGER);\n }\n });\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View layout = inflater.inflate(R.layout.fragment_icons_list_layout, container, false);\n mRecyclerView = layout.findViewById(R.id.fragment_list_recycler_view);\n mListener.setRecyclerViewComponents(mRecyclerView,1);\n mRootView = layout;\n\n return layout;\n }", "public IrregularLayoutManager(Context context, int spanCount){\r\n super();\r\n setSpanCount(spanCount);\r\n }", "MyRecyclerViewAdapter(Context context, List<Integer> data) {\n this.mInflater = LayoutInflater.from(context);\n this.mData = data;\n }", "private void setAdapter() {\n adapter = new MessageAdapter(messages);\n RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getApplicationContext());\n recyclerView.setLayoutManager(mLayoutManager);\n recyclerView.setItemAnimator(new DefaultItemAnimator());\n recyclerView.setAdapter(adapter);\n }", "private void ConfigRecyclerMovies(){\n movieRecyclerAdapter = new MovieRecyclerAdapter(this);\n popularMovieRecycler.setAdapter(movieRecyclerAdapter);\n popularMovieRecycler.setLayoutManager(new LinearLayoutManager(getActivity()));\n }", "public void setUpRecycler() {\n StaggeredGridLayoutManager gridManager = new StaggeredGridLayoutManager(3,StaggeredGridLayoutManager.VERTICAL);\n gvResults.setLayoutManager(gridManager);\n gvResults.addOnScrollListener(new EndlessRecyclerViewScrollListener(gridManager) {\n @Override\n public void onLoadMore(int page, int totalItemsCount) {\n fetchArticles(page,false);\n }\n });\n }", "private int scrollBy(int dy, RecyclerView.Recycler recycler, RecyclerView.State state){\r\n\r\n int delta = 0;\r\n // When scroll down, layout from left to right, top to bottom\r\n // Scroll down, update bottomBorder and fill.\r\n if(dy > 0){\r\n topBorder = getPaddingTop();\r\n bottomBorder += dy;\r\n mCurrentPosition = lastAttachedItemPosition + 1;\r\n fillGrid(recycler, state, true);\r\n // Offset child views.\r\n if(spanBottomMin >= bottomBorder) {\r\n delta = dy;\r\n bottomBorder -= dy;\r\n }else { // There are no more items we need to lay out.\r\n bottomBorder = getHeight() - getPaddingBottom();\r\n if(spanBottomMax - bottomBorder >= dy){\r\n delta = dy;\r\n }else{\r\n delta = Math.max(0, spanBottomMax - bottomBorder);\r\n }\r\n }\r\n offsetChildrenVertical(-delta);\r\n // After offset children, we need to update parameters.\r\n for(int i = 0; i < mSpanCount; i++) {\r\n spanTop[i] -= delta;\r\n spanBottom[i] -= delta;\r\n }\r\n spanTopMin -= delta;\r\n spanTopMax -= delta;\r\n spanBottomMin -= delta;\r\n spanBottomMax -= delta;\r\n // Recycle views out of the topBorder\r\n recycleTopInvisibleViews(recycler);\r\n }else{ // dy < 0\r\n // Scroll up, update topBorder and fill.\r\n topBorder += dy;\r\n bottomBorder = getHeight() - getPaddingBottom();\r\n // Happens when we delete too much items,\r\n // and the item for firstAttachedItemPosition is null.\r\n if(firstAttachedItemPosition == -1 ||\r\n firstAttachedItemPosition >= state.getItemCount()){\r\n firstAttachedItemPosition = state.getItemCount() - 1;\r\n lastAttachedItemPosition = firstAttachedItemPosition;\r\n mCurrentPosition = firstAttachedItemPosition;\r\n }else{\r\n mCurrentPosition = firstAttachedItemPosition - 1;\r\n }\r\n fillGrid(recycler, state, false);\r\n // Offset child views.\r\n if(spanTopMax <= topBorder) {\r\n delta = dy;\r\n topBorder -= dy;\r\n }else { // There are no more items we need to lay out.\r\n topBorder = getPaddingTop();\r\n if(spanTopMin - topBorder <= dy){\r\n delta = dy;\r\n }else{\r\n delta = -Math.max(0, topBorder - spanTopMin);\r\n }\r\n }\r\n offsetChildrenVertical(-delta);\r\n // After offset children, we need to update parameters.\r\n for(int i = 0; i < mSpanCount; i++) {\r\n spanTop[i] -= delta;\r\n spanBottom[i] -= delta;\r\n }\r\n spanTopMin -= delta;\r\n spanTopMax -= delta;\r\n spanBottomMin -= delta;\r\n spanBottomMax -= delta;\r\n // Recycle views out of the bottomBorder.\r\n recycleBottomInvisibleViews(recycler);\r\n }\r\n // Update scrollOffset.\r\n scrollOffset += delta;\r\n return delta;\r\n }", "private void layoutChunk(RecyclerView.Recycler recycler, RecyclerView.State state,\r\n boolean isFillBottom, boolean isPreLayout){\r\n\r\n int widthNum = 0, heightNum = 0, nextItemIndex = 0;\r\n\r\n int fakeWidthNum = 0, fakeHeightNum = 0, fakeNextItemIndex = 0;\r\n\r\n View view = null;\r\n DisappearingViewParams params = null;\r\n // If disappearingViewCache contains the params of the current view to be laid out,\r\n // get its params. This happens when too many items are removed,\r\n // and the fillGird() cannot fill to the bottom. Then scrollBy() is called.\r\n if(disappearingViewCache.containsKey(mCurrentPosition)){\r\n params = disappearingViewCache.get(mCurrentPosition);\r\n }\r\n // Get view from the recycler.\r\n view = recycler.getViewForPosition(mCurrentPosition);\r\n\r\n final LayoutParams lp = (LayoutParams) view.getLayoutParams();\r\n\r\n // Calculate the widthNum and the heightNum.\r\n // If the cache contains the widthNum and heightNum, get them from the cache.\r\n if(itemLayoutWidthCache.get(mCurrentPosition, 0) != 0){\r\n widthNum = itemLayoutWidthCache.get(mCurrentPosition);\r\n heightNum = itemLayoutHeightCache.get(mCurrentPosition);\r\n nextItemIndex = itemOccupiedStartSpan.get(mCurrentPosition);\r\n }else{\r\n // Otherwise, if LayoutParams contains them, get them from the LayoutParams.\r\n if(lp.widthNum != 0){\r\n widthNum = lp.widthNum;\r\n heightNum = lp.heightNum;\r\n }else{\r\n // Otherwise, calculate the widthNum and the heightNum\r\n // according to the size of the child view.\r\n widthNum = Math.min(2, Math.max(1, lp.width / sizePerSpan));\r\n heightNum = Math.min(2, Math.max(1, lp.height / sizePerSpan));\r\n lp.widthNum = widthNum;\r\n lp.heightNum = heightNum;\r\n }\r\n // If widthNum = 2 and there are no two sequential empty spans, just set widthNum as 1.\r\n if (isFillBottom && firstTwoEmptyBottomSpanIndex == -1) {\r\n widthNum = 1;\r\n }\r\n // Store the layout widthNum and heightNum (different from the original one).\r\n itemLayoutWidthCache.put(mCurrentPosition, widthNum);\r\n itemLayoutHeightCache.put(mCurrentPosition, heightNum);\r\n // Calculate the index of the first occupied span.\r\n if(isFillBottom) {\r\n nextItemIndex = widthNum == 1 ?\r\n firstOneEmptyBottomSpanIndex : firstTwoEmptyBottomSpanIndex;\r\n }\r\n // Store the index of the first occupied span, which is useful when scrolling up.\r\n itemOccupiedStartSpan.put(mCurrentPosition, nextItemIndex);\r\n }\r\n\r\n // Calculate fake params.\r\n if(isPreLayout && !lp.isItemRemoved()){\r\n fakeWidthNum = lp.widthNum;\r\n fakeHeightNum = lp.heightNum;\r\n if(fakeFirstTwoEmptyBottomSpanIndex == -1){\r\n fakeWidthNum = 1;\r\n }\r\n fakeNextItemIndex = fakeWidthNum == 1 ?\r\n fakeFirstOneEmptyBottomSpanIndex : fakeFirstTwoEmptyBottomSpanIndex;\r\n fakeItemLayoutWidthCache.put(fakeCurrentPosition, fakeWidthNum);\r\n fakeItemLayoutHeightCache.put(fakeCurrentPosition, fakeHeightNum);\r\n fakeItemOccupiedStartSpan.put(fakeCurrentPosition, fakeNextItemIndex);\r\n }\r\n\r\n // Calculate the left, right, top and bottom of the view to be laid out.\r\n int left = 0, right = 0, top = 0, bottom = 0;\r\n int fakeLeft = 0, fakeRight = 0, fakeTop = 0, fakeBottom = 0;\r\n\r\n // We do not need to calculate decorations for views in the disappearingViewCache.\r\n if(params == null) {\r\n calculateItemDecorationsForChild(view, mDecorInsets);\r\n }\r\n left = getPaddingLeft() + spanWidthBorders[nextItemIndex] + lp.leftMargin;\r\n right = getPaddingLeft() + spanWidthBorders[nextItemIndex + widthNum] - lp.rightMargin;\r\n if(isFillBottom){\r\n top = getPaddingTop() + spanBottomMin + lp.topMargin;\r\n bottom = getPaddingTop() + spanBottomMin + sizePerSpan * heightNum - lp.bottomMargin;\r\n }else{\r\n bottom = getPaddingTop() + spanTop[nextItemIndex] - lp.bottomMargin;\r\n top = getPaddingTop() + spanTop[nextItemIndex] - sizePerSpan * heightNum + lp.topMargin;\r\n }\r\n\r\n if(isPreLayout && !lp.isItemRemoved()){\r\n fakeLeft = getPaddingLeft() + spanWidthBorders[fakeNextItemIndex] + lp.leftMargin;\r\n fakeRight = getPaddingLeft() + spanWidthBorders[fakeNextItemIndex + fakeWidthNum]\r\n - lp.rightMargin;\r\n fakeTop = getPaddingTop() + fakeSpanBottomMin + lp.topMargin;\r\n fakeBottom = getPaddingTop() + fakeSpanBottomMin + sizePerSpan * fakeHeightNum\r\n - lp.bottomMargin;\r\n }\r\n\r\n // If we lay out the view to fill bottom, add the view to the end.\r\n if(isFillBottom) {\r\n\r\n if(!isPreLayout){\r\n addView(view);\r\n }else if(bottom + lp.bottomMargin >= getPaddingTop() || // Attached\r\n firstAttachedItemPosition != -1 ||\r\n fakeBottom + lp.bottomMargin >= getPaddingTop() || // Appearing\r\n fakeFirstAttachedItemPosition != -1){\r\n // If it is pre-layout, we just lay out attached views and appearing views.\r\n if(lp.isItemRemoved()) {\r\n addDisappearingView(view);\r\n } else {\r\n addView(view);\r\n }\r\n }\r\n }else if(!isFillBottom){ // Otherwise it is added to the beginning.\r\n addView(view, 0);\r\n }\r\n\r\n // Make measureSpec.\r\n int widthSpec, heightSpec;\r\n int fakeWidthSpec = 0, fakeHeightSpec = 0;\r\n if(params == null) {\r\n widthSpec = View.MeasureSpec.makeMeasureSpec(\r\n right - left - mDecorInsets.left - mDecorInsets.right, View.MeasureSpec.EXACTLY);\r\n heightSpec = View.MeasureSpec.makeMeasureSpec(\r\n bottom - top - mDecorInsets.top - mDecorInsets.bottom, View.MeasureSpec.EXACTLY);\r\n }else{\r\n // If disappearingViewCache contains the params,\r\n // get the widthSpec and the heightSpec from it.\r\n widthSpec = params.widthSpec;\r\n heightSpec = params.heightSpec;\r\n }\r\n\r\n if(isPreLayout && !lp.isItemRemoved()){\r\n fakeWidthSpec = View.MeasureSpec.makeMeasureSpec(\r\n fakeRight - fakeLeft - mDecorInsets.left - mDecorInsets.right,\r\n View.MeasureSpec.EXACTLY);\r\n fakeHeightSpec = View.MeasureSpec.makeMeasureSpec(\r\n fakeBottom - fakeTop - mDecorInsets.top - mDecorInsets.bottom,\r\n View.MeasureSpec.EXACTLY);\r\n }\r\n\r\n // Measure child.\r\n // If isPreLayout = true, we just measure and lay out attached views and appearing views.\r\n if(!isPreLayout ||\r\n (isPreLayout && (bottom + lp.bottomMargin >= getPaddingTop() || // Attached\r\n firstAttachedItemPosition != -1 ||\r\n fakeBottom + lp.bottomMargin >= getPaddingTop() || // Appearing\r\n fakeFirstAttachedItemPosition != -1)\r\n && !lp.isItemRemoved())){\r\n view.measure(widthSpec, heightSpec);\r\n layoutDecorated(view, left, top, right, bottom);\r\n }\r\n // If isPreLayout = true, for disappearing views, we put the params and position into cache.\r\n if(isPreLayout && (bottom + lp.bottomMargin >= getPaddingTop() || // Currently visible\r\n firstAttachedItemPosition != -1)\r\n && (fakeBottom + lp.bottomMargin < getPaddingTop() && // Invisible in real layout\r\n fakeFirstAttachedItemPosition == -1)\r\n && !lp.isItemRemoved()){\r\n disappearingViewCache.put(fakeCurrentPosition,\r\n new DisappearingViewParams(fakeWidthSpec, fakeHeightSpec,\r\n fakeLeft, fakeTop, fakeRight, fakeBottom));\r\n }\r\n // For the normal layout,\r\n // if we lay out a disappearing view, it should be removed from the cache.\r\n if(!isPreLayout && params != null){\r\n disappearingViewCache.remove(mCurrentPosition);\r\n }\r\n\r\n // update some parameters\r\n if(isFillBottom){\r\n for (int i = 0; i < widthNum; i++)\r\n spanBottom[nextItemIndex + i] += sizePerSpan * heightNum;\r\n updateSpanBottomParameters();\r\n if(!isPreLayout){\r\n lastAttachedItemPosition = mCurrentPosition;\r\n }else{\r\n // If isPreLayout = true.\r\n for (int i = 0; i < fakeWidthNum; i++)\r\n fakeSpanBottom[fakeNextItemIndex + i] += sizePerSpan * fakeHeightNum;\r\n updateFakeSpanBottomParameters();\r\n // we need to update fakeFirstAttachedItemPosition and firstAttachedItemPosition.\r\n if(fakeFirstAttachedItemPosition == -1 &&\r\n !lp.isItemRemoved() &&\r\n fakeBottom + lp.bottomMargin >= getPaddingTop()){\r\n fakeFirstAttachedItemPosition = fakeCurrentPosition;\r\n }\r\n if(firstAttachedItemPosition == -1 && bottom + lp.bottomMargin >= getPaddingTop()){\r\n firstAttachedItemPosition = mCurrentPosition;\r\n }\r\n }\r\n mCurrentPosition++;\r\n if(isPreLayout && !lp.isItemRemoved()){\r\n fakeCurrentPosition++;\r\n }\r\n // Update fakeSpanTop and spanTop.\r\n if(isPreLayout && fakeFirstAttachedItemPosition == -1){\r\n for (int i = 0; i < fakeWidthNum; i++)\r\n fakeSpanTop[fakeNextItemIndex + i] += sizePerSpan * fakeHeightNum;\r\n }\r\n if(isPreLayout && firstAttachedItemPosition == -1){\r\n for (int i = 0; i < widthNum; i++)\r\n spanTop[nextItemIndex + i] += sizePerSpan * heightNum;\r\n }\r\n }else{\r\n for (int i = 0; i < widthNum; i++)\r\n spanTop[nextItemIndex + i] -= sizePerSpan * heightNum;\r\n updateSpanTopParameters();\r\n firstAttachedItemPosition = mCurrentPosition;\r\n mCurrentPosition--;\r\n }\r\n\r\n }", "@Override\n // Call ViewHolder class and create the view\n public RecyclerViewAdapter.ViewHolder onCreateViewHolder(ViewGroup viewGroup, int viewType) {\n View view = LayoutInflater.from(viewGroup.getContext())\n .inflate(R.layout.list_row, viewGroup, false);\n\n // Pass the view created\n return new ViewHolder(view, context);\n }", "@Override\n\tprotected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {\n\t\tsuper.onMeasure(widthMeasureSpec, heightMeasureSpec);\n\n\t\tmListPadding.left = super.getPaddingLeft();\n\t\tmListPadding.top = super.getPaddingTop();\n\t\tmListPadding.right = super.getPaddingRight();\n\t\tmListPadding.bottom = super.getPaddingBottom();\n\n\t\tint widthMode = MeasureSpec.getMode(widthMeasureSpec);\n\t\tint heightMode = MeasureSpec.getMode(heightMeasureSpec);\n\t\tint widthSize = MeasureSpec.getSize(widthMeasureSpec);\n\t\tint heightSize = MeasureSpec.getSize(heightMeasureSpec);\n\n\t\tint childWidth = 0;\n\t\tint childHeight = 0;\n\n\t\tmItemCount = mAdapter == null ? 0 : mAdapter.getCount();\n\t\tif (mItemCount > 0\n\t\t\t\t&& (widthMode == MeasureSpec.UNSPECIFIED || heightMode == MeasureSpec.UNSPECIFIED)) {\n\t\t\tfinal View child = obtainView(0);\n\n\t\t\tmeasureScrapChild(child, 0, heightMeasureSpec);\n\n\t\t\tchildWidth = child.getMeasuredWidth();\n\t\t\tchildHeight = child.getMeasuredHeight();\n\n\t\t\tmRemovedViewQueue.offer(child);\n\t\t}\n\n\t\tif (widthMode == MeasureSpec.UNSPECIFIED) {\n\t\t\twidthSize = mListPadding.left + mListPadding.right + childWidth\n\t\t\t\t\t+ getVerticalScrollbarWidth();\n\t\t}\n\n\t\tif (heightMode == MeasureSpec.UNSPECIFIED) {\n\t\t\theightSize = mListPadding.top + mListPadding.bottom + childHeight\n\t\t\t\t\t+ getVerticalFadingEdgeLength() * 2;\n\t\t}\n\n\t\tif (widthMode == MeasureSpec.AT_MOST) {\n\t\t\t// TODO: after first layout we should maybe start at the first\n\t\t\t// visible position, not 0\n\t\t\twidthSize = measureWidthOfChildren(heightMeasureSpec, 0,\n\t\t\t\t\tNO_POSITION, widthSize, -1);\n\t\t}\n\n\t\tsetMeasuredDimension(widthSize, heightSize);\n\t\tmWidthMeasureSpec = widthMeasureSpec;\n\t}", "private void initView() {\n // set layout for recycle view\n //hasFixedSize true if adapter changes cannot affect the size of the RecyclerView\n recyclerView.setHasFixedSize(true);\n // this layout can be vertical or horizontal by change the second param\n // of LinearLayoutManager, and display up to down by set the third param false\n LinearLayoutManager layoutManager = new LinearLayoutManager(this,\n LinearLayoutManager.VERTICAL, false);\n\n recyclerView.setLayoutManager(layoutManager);\n importData();\n // set adapter for recycle view\n recyclerView.setAdapter(alarmAdapter);\n }", "private void setupRecyclerView() {\n recyclerView.setRecycledViewPool(recycledViewPool);\n\n // We are using a multi span grid to allow two columns of buttons. To set this up we need\n // to set our span count on the controller and then get the span size lookup object from\n // the controller. This look up object will delegate span size lookups to each model.\n controller.setSpanCount(SPAN_COUNT);\n// GridLayoutManager gridLayoutManager = new GridLayoutManager(this.getContext(),SPAN_COUNT);\n StaggeredGridLayoutManager gridLayoutManager = new StaggeredGridLayoutManager(SPAN_COUNT, StaggeredGridLayoutManager.VERTICAL);\n// gridLayoutManager.setSpanSizeLookup(controller.getSpanSizeLookup());\n recyclerView.setLayoutManager(gridLayoutManager);\n\n recyclerView.setHasFixedSize(true);\n// recyclerView.addItemDecoration(new VerticalGridCardSpacingDecoration());\n recyclerView.setItemAnimator(new SampleItemAnimator());\n recyclerView.setAdapter(controller.getAdapter());\n }", "@Override\n public int getCount() {\n return 12;\n }", "@Override\n\tpublic void onFinishLayout(View lay) {\n\t}", "public void setRecyclerViewLayoutManager(LayoutManagerType layoutManagerType) {\r\n int scrollPosition = 0;\r\n\r\n // If a layout manager has already been set, get current scroll position.\r\n if (mRecyclerView.getLayoutManager() != null) {\r\n scrollPosition = ((LinearLayoutManager) mRecyclerView.getLayoutManager())\r\n .findFirstCompletelyVisibleItemPosition();\r\n }\r\n\r\n if (layoutManagerType == LayoutManagerType.GRID_LAYOUT_MANAGER) {\r\n mLayoutManager = new GridLayoutManager(getActivity(), SPAN_COUNT);\r\n mCurrentLayoutManagerType = LayoutManagerType.GRID_LAYOUT_MANAGER;\r\n } else {\r\n mLayoutManager = new LinearLayoutManager(getActivity());\r\n mCurrentLayoutManagerType = LayoutManagerType.LINEAR_LAYOUT_MANAGER;\r\n }\r\n\r\n mRecyclerView.setLayoutManager(mLayoutManager);\r\n mRecyclerView.scrollToPosition(scrollPosition);\r\n }", "public void dataSetChanged() {\n int count = this.mAdapter.getCount();\n this.mExpectedAdapterCount = count;\n boolean z = this.mItems.size() < (this.mOffscreenPageLimit * 2) + 1 && this.mItems.size() < count;\n int i = this.mCurItem;\n this.mChangeData = true;\n boolean z2 = z;\n int i2 = i;\n int i3 = 0;\n boolean z3 = false;\n while (i3 < this.mItems.size()) {\n ItemInfo itemInfo = this.mItems.get(i3);\n int itemPosition = this.mAdapter.getItemPosition(itemInfo.object);\n if (itemPosition != -1) {\n if (itemPosition == -2) {\n this.mItems.remove(i3);\n i3--;\n if (!z3) {\n this.mAdapter.startUpdate((ViewGroup) this);\n z3 = true;\n }\n this.mAdapter.destroyItem((ViewGroup) this, itemInfo.position, itemInfo.object);\n if (this.mCurItem == itemInfo.position) {\n i2 = Math.max(0, Math.min(this.mCurItem, count - 1));\n }\n } else if (itemInfo.position != itemPosition) {\n if (itemInfo.position == this.mCurItem) {\n i2 = itemPosition;\n }\n itemInfo.position = itemPosition;\n }\n z2 = true;\n }\n i3++;\n }\n if (z3) {\n this.mAdapter.finishUpdate((ViewGroup) this);\n }\n if (z2) {\n int childCount = getChildCount();\n for (int i4 = 0; i4 < childCount; i4++) {\n LayoutParams layoutParams = (LayoutParams) getChildAt(i4).getLayoutParams();\n if (!layoutParams.isDecor) {\n layoutParams.widthFactor = 0.0f;\n }\n }\n setCurrentItemInternal(i2, false, true);\n requestLayout();\n }\n }", "public void layout() {\n TitleLayout ll1 = new TitleLayout(getContext(), sourceIconView, titleTextView);\n\n // All items in ll1 are vertically centered\n ll1.setGravity(Gravity.CENTER_VERTICAL);\n ll1.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n ll1.addView(sourceIconView);\n ll1.addView(titleTextView);\n\n // Container layout for all the items\n if (mainLayout == null) {\n mainLayout = new LinearLayout(getContext());\n mainLayout.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n mainLayout.setPadding(adaptSizeToDensity(LEFT_PADDING),\n adaptSizeToDensity(TOP_PADDING),\n adaptSizeToDensity(RIGHT_PADDING),\n adaptSizeToDensity(BOTTOM_PADDING));\n mainLayout.setOrientation(LinearLayout.VERTICAL);\n }\n\n mainLayout.addView(ll1);\n\n if(syncModeSet) {\n mainLayout.addView(syncModeSpinner);\n }\n\n this.addView(mainLayout);\n }", "private void placeRecyclerViewOffScreen() {\n rvBookmarks.setTranslationX(screenWidth);\n }", "public void updateList(){\r\n preyFragmentAdapter=new PreyFragmentAdapter(CPreyArrayList,this);\r\n recyclerView.setAdapter(preyFragmentAdapter);\r\n LinearLayoutManager a=new LinearLayoutManager(this.getContext());\r\n recyclerView.setLayoutManager(a);\r\n\r\n\r\n }", "private void setUpAnimationDecoratorHelper() {\n recList.addItemDecoration(new RecyclerView.ItemDecoration() {\n\n // we want to cache this and not allocate anything repeatedly in the onDraw method\n Drawable background;\n boolean initiated;\n\n private void init() {\n background = new ColorDrawable(Color.parseColor(\"#1CC09F\"));\n initiated = true;\n }\n\n @Override\n public void onDraw(Canvas c, RecyclerView parent, RecyclerView.State state) {\n\n if (!initiated) {\n init();\n }\n\n // only if animation is in progress\n if (parent.getItemAnimator().isRunning()) {\n\n // some items might be animating down and some items might be animating up to close the gap left by the removed item\n // this is not exclusive, both movement can be happening at the same time\n // to reproduce this leave just enough items so the first one and the last one would be just a little off screen\n // then remove one from the middle\n\n // find first child with translationY > 0\n // and last one with translationY < 0\n // we're after a rect that is not covered in recycler-view views at this point in time\n View lastViewComingDown = null;\n View firstViewComingUp = null;\n\n // this is fixed\n int left = 0;\n int right = parent.getWidth();\n\n // this we need to find out\n int top = 0;\n int bottom = 0;\n\n // find relevant translating views\n int childCount = parent.getLayoutManager().getChildCount();\n for (int i = 0; i < childCount; i++) {\n View child = parent.getLayoutManager().getChildAt(i);\n if (child.getTranslationY() < 0) {\n // view is coming down\n lastViewComingDown = child;\n } else if (child.getTranslationY() > 0) {\n // view is coming up\n if (firstViewComingUp == null) {\n firstViewComingUp = child;\n }\n }\n }\n\n if (lastViewComingDown != null && firstViewComingUp != null) {\n // views are coming down AND going up to fill the void\n top = lastViewComingDown.getBottom() + (int) lastViewComingDown.getTranslationY();\n bottom = firstViewComingUp.getTop() + (int) firstViewComingUp.getTranslationY();\n } else if (lastViewComingDown != null) {\n // views are going down to fill the void\n top = lastViewComingDown.getBottom() + (int) lastViewComingDown.getTranslationY();\n bottom = lastViewComingDown.getBottom();\n } else if (firstViewComingUp != null) {\n // views are coming up to fill the void\n top = firstViewComingUp.getTop();\n bottom = firstViewComingUp.getTop() + (int) firstViewComingUp.getTranslationY();\n }\n\n background.setBounds(left, top, right, bottom);\n background.draw(c);\n\n }\n super.onDraw(c, parent, state);\n }\n\n });\n }", "@Override\n public int getLayoutRes() {\n return R.layout.find_donor_recyclerview_item;\n }", "public final void mo58589m(RecyclerView recyclerView) {\n }", "protected\n @LayoutRes\n int getItemLayoutId(int position, T t) {\n return mLayoutId;\n }", "protected void initViews() {\n mViewList.setLayoutManager(initLayoutManager());\n\n\n mAdapter = initAdapter();\n mAdapter.init(mViewList, isPageEnabled());\n mViewList.setItemAnimator(new DefaultItemAnimator());\n mViewList.addItemDecoration(new DividerItemDecoration(mViewList.getContext(), LinearLayoutManager.VERTICAL));\n // mEmptyTips = (TextView) findViewById(R.id.empty_propt);\n mEmptyTips.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n\n if (CUtil.isNetworkConnected(mViewList.getContext())) {\n mSwipeRefreshLayout.setRefreshing(true);\n requestData(0, false);\n } else {\n// Toast.makeText(mTitleView.getContext(), R.string.network_not_connection, Toast.LENGTH_SHORT).show();\n showToast(getResources().getString(R.string.network_not_connection));\n }\n\n }\n });\n\n mAdapter.setPagingableListener(new BasePageAdapter.Pagingable() {\n\n @Override\n public void onLoadMoreItems() {\n // TODO Auto-generated method stub\n if (mAdapter.hasMoreItems()) {\n requestData(mAdapter.getItems() == null ? 0 : mAdapter.getItems().size(), false);\n } else {\n mAdapter.onFinishLoading(false);\n }\n }\n });\n\n // TitleBarMovableTouchListener touchListener = new\n // TitleBarMovableTouchListener(this.getActivity().findViewById(R.id.activity_title));\n // mViewList.setOnTouchListener(touchListener);\n mSwipeRefreshLayout = (SwipeRefreshLayout) findViewById(R.id.swipe_refresh_widget);\n mSwipeRefreshLayout.setOnRefreshListener(this);\n mSwipeRefreshLayout.setEnabled(isSwipeRefreshLayoutEnabled());\n mSwipeRefreshLayout.setColorSchemeResources(R.color.swipe_refrsh_color1, R.color.swipe_refrsh_color2,\n R.color.swipe_refrsh_color3, R.color.swipe_refrsh_color4);\n mViewList.setAdapter(mAdapter);\n mHandler.sendEmptyMessageDelayed(MSG_REQUEST_DATA, FIRST_INIT_DELAY);\n\n }", "private void setUpRecycler() {\n Log.d(\"MainActivity\", \"setUpRecycler : start\");\n // Connecting the recyclerview to the view in the layout\n prayerRecyclerView = findViewById(R.id.recycler_main_movie);\n\n // Creating our custom adapter\n prayerRecyclerAdapter = new PrayerRecyclerAdapter(this, prayerList);\n Log.d(\"MainActivity\", \"setUpRecycler : prayerList = \" + prayerList.size());\n // Setting the adapter to our recyclerview\n prayerRecyclerView.setAdapter(prayerRecyclerAdapter);\n\n // Creating and setting a layout manager.\n // Note that the manager is VERTICAL, thus a vertical list\n LinearLayoutManager layout = new LinearLayoutManager(\n this, LinearLayoutManager.VERTICAL, false);\n prayerRecyclerView.setLayoutManager(layout);\n Log.d(\"MainActivity\", \"setUpRecycler : stop\");\n }", "public void onGlobalLayout() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {\n llItems.getViewTreeObserver().removeOnGlobalLayoutListener(this);\n } else {\n llItems.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n }\n int centerPosition = 0;\n\n // measure your views here\n int totalChildren = llItems.getChildCount();\n\n for (int i = 0; i < totalChildren - 1; i++) {\n ItemView firstItem = (ItemView) llItems.getChildAt(i);\n ItemView secondItem = (ItemView) llItems.getChildAt(i + 1);\n\n if (i == 0) {\n int paddingLeft = firstItem.getPaddingLeft();\n\n View radioButton = firstItem.findViewById(R.id.rb__choice);\n centerPosition = paddingLeft + radioButton.getWidth() / 2;\n }\n\n View lineView = inflater.inflate(R.layout.item_vertical_line, null);\n llLines.addView(lineView);\n lineView.setTag(\"LINE_\" + i);\n\n View line = lineView.findViewById(R.id.v__line);\n LinearLayout.LayoutParams params = (LinearLayout.LayoutParams) line.getLayoutParams();\n\n int topSpace = 0;\n if (i == 0) {\n topSpace = firstItem.getHeight() / 2 + firstItem.rbChoice.getHeight() / 2;\n } else {\n topSpace = firstItem.rbChoice.getHeight();\n }\n\n params.setMargins(centerPosition - 1, topSpace, 0, 0);\n\n int height = firstItem.getHeight() + secondItem.getTopRadio() - firstItem.getBottomRadio();\n Log.i(\"TRUNGNTH\", \"Height: \" + height + \" secondItem.getTopRadio(): \" + secondItem.getTopRadio() + \" | firstItem.getBottomRadio(): \" + firstItem.getBottomRadio());\n params.height = height;\n line.setLayoutParams(params);\n }\n }", "@Override\n public void onScrolled(LinearLayoutManager layoutManager, int dx, int dy) {\n if (layoutManager.findFirstCompletelyVisibleItemPosition() == 0) {\n Log.d(TAG, \"onNotBottom\");\n // Its at top\n Log.d(TAG, \"top\");\n if (isScrolling) {\n isScrolling = false;\n // if (view != null) view.mostrarProgressBar();\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n String tipoCargaConLoadMore = \"ConLoadMore\";\n initObtenerListaChat(idGrupoChat, pageCount, tipoCargaConLoadMore);\n Log.d(TAG, \"isScrolling\" + pageCount);\n\n }\n }, 2000);\n Log.d(TAG, \"onNotBottom\");\n }\n }\n\n\n\n /* int visibleItemCount = layoutManager.getChildCount();\n int totalItemCount = layoutManager.getItemCount();\n int pastVisibleItems = layoutManager.findFirstVisibleItemPosition();\n if (pastVisibleItems + visibleItemCount >= totalItemCount) {\n //End of list\n Log.d(TAG, \"onBottomReachedListener\");\n } else {\n\n if (isScrolling) {\n isScrolling = false;\n // if (view != null) view.mostrarProgressBar();\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n String tipoCargaConLoadMore = \"ConLoadMore\";\n initObtenerListaChat(idGrupoChat, pageCount, tipoCargaConLoadMore);\n Log.d(TAG, \"isScrolling\" + pageCount);\n\n }\n }, 2000);\n Log.d(TAG, \"onNotBottom\");\n }\n\n\n }*/\n }", "MyRecyclerViewAdapter(Context context, List<String> data,List<String> giorno,List<String> primo,List<String> secondo,List<String> contorno,List<String> dolce) {\n this.mInflater = LayoutInflater.from(context);\n this.mdata = data;\n this.mgiorno = giorno;\n this.mprimo = primo;\n this.msecondo = secondo;\n this.mcontorno = contorno;\n this.mdolce = dolce;\n\n\n\n }" ]
[ "0.6913009", "0.6831291", "0.66192883", "0.66168535", "0.65416294", "0.64409727", "0.6283112", "0.6238638", "0.62093836", "0.62076354", "0.6206596", "0.6195867", "0.6186399", "0.61854005", "0.6185162", "0.61548847", "0.6110486", "0.6104754", "0.60565233", "0.6049514", "0.60309273", "0.6017219", "0.60083324", "0.5991962", "0.5977046", "0.5974157", "0.59671134", "0.59652656", "0.596447", "0.5954819", "0.5953108", "0.5938121", "0.59362406", "0.5934243", "0.59278744", "0.5921301", "0.59141845", "0.5905287", "0.5896048", "0.5865086", "0.5846599", "0.58204406", "0.5819648", "0.58181417", "0.5794467", "0.5793796", "0.5791951", "0.5786065", "0.57845265", "0.57661086", "0.57644814", "0.5759124", "0.5749411", "0.5745694", "0.5731874", "0.5726414", "0.57262", "0.5725599", "0.5703774", "0.56786907", "0.5666939", "0.5653107", "0.56439406", "0.56435543", "0.56426287", "0.56390464", "0.5635705", "0.56327313", "0.563048", "0.56300336", "0.56232685", "0.5612967", "0.56049085", "0.5603451", "0.5602831", "0.55950147", "0.55902016", "0.5587293", "0.5584753", "0.55840886", "0.55824625", "0.5579764", "0.55761665", "0.5571817", "0.55684847", "0.5567098", "0.55653435", "0.55618596", "0.5560271", "0.5552561", "0.5551674", "0.5548904", "0.55428267", "0.55391115", "0.5534655", "0.5531215", "0.553082", "0.5528647", "0.5524046", "0.55222315" ]
0.6807303
2
End of user code This class provides the data access layer to the kind of dao entity class. This is the interface which represent the contract of the DAO access.
public interface IKindOfDaoDao { /** * Create a new element. * @param exempleDirect Element to create. * @throws DaoException If a DAO problem occurs. */ public void createExempleDirect(ExempleDirect exempleDirect) throws DaoException; /** * Update an existing element. * @param exempleDirect Element to update. * If the element has an id, it may use it. * @throws DaoException If a DAO problem occurs. */ public void updateExempleDirect(ExempleDirect exempleDirect) throws DaoException; /** * Delete an element. * Only id can be used to find which element must be deleted. * @param exempleDirect Element which will be delete. * @throws DaoException If a DAO problem occurs. */ public void deleteExempleDirect(ExempleDirect exempleDirect) throws DaoException; /** * Find all elements. * @return A list with all elements, without any filter. * @throws DaoException If a DAO problem occurs. */ public Collection<ExempleDirect> findAllExempleDirects() throws DaoException; /** * Find one entity by its primary key. * @param id The PK of the entity. * @return The entity found. * @throws DaoException If a DAO problem occurs. */ public ExempleDirect findExempleDirectById(String id) throws DaoException; //Start of user code for technicals dao access api //End of user code }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface RightInfoDAO extends BaseDAO {\n /** The name of the DAO */\n public static final String NAME = \"RightInfoDAO\";\n\n\t/**\n\t * Insert one <tt>RightInfoDTO</tt> object to DB table <tt>azdai_right_info</tt>, return primary key\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>insert into azdai_right_info(code,title,memo,gmt_create,gmt_modify) values (?, ?, ?, ?, ?)</tt>\n\t *\n\t *\t@param rightInfo\n\t *\t@return String\n\t *\t@throws DataAccessException\n\t */\t \n public String insert(RightInfoDTO rightInfo) throws DataAccessException;\n\n\t/**\n\t * Update DB table <tt>azdai_right_info</tt>.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>update azdai_right_info set title=?, memo=?, gmt_modify='NOW' where (code = ?)</tt>\n\t *\n\t *\t@param rightInfo\n\t *\t@return int\n\t *\t@throws DataAccessException\n\t */\t \n public int update(RightInfoDTO rightInfo) throws DataAccessException;\n\n\t/**\n\t * Query DB table <tt>azdai_right_info</tt> for records.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>select * from azdai_right_info where (code = ?)</tt>\n\t *\n\t *\t@param code\n\t *\t@return RightInfoDTO\n\t *\t@throws DataAccessException\n\t */\t \n public RightInfoDTO find(String code) throws DataAccessException;\n\n\t/**\n\t * Query DB table <tt>azdai_right_info</tt> for records.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>select * from azdai_right_info order by code ASC</tt>\n\t *\n\t *\t@return List<RightInfoDTO>\n\t *\t@throws DataAccessException\n\t */\t \n public List<RightInfoDTO> findAll() throws DataAccessException;\n\n\t/**\n\t * Query DB table <tt>azdai_right_info</tt> for records.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>select * from azdai_right_info order by code ASC</tt>\n\t *\n\t *\t@param userNo\n\t *\t@return List<RightInfoDTO>\n\t *\t@throws DataAccessException\n\t */\t \n public List<RightInfoDTO> findUserRights(String userNo) throws DataAccessException;\n\n\t/**\n\t * Delete records from DB table <tt>azdai_right_info</tt>.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>delete from azdai_right_info where (code = ?)</tt>\n\t *\n\t *\t@param code\n\t *\t@return int\n\t *\t@throws DataAccessException\n\t */\t \n public int delete(String code) throws DataAccessException;\n\n}", "public interface EntityDAOInterface {\n}", "public abstract DbDAO AccessToDAO();", "public interface BaseDao<T , PK> {\n\n /**\n * 获取列表\n *\n * @param queryRule\n * 查询条件\n * @return\n * @throws Exception\n */\n List<T> select(QueryRule queryRule) throws Exception;\n\n /**\n * 获取分页结果\n *\n * @param queryRule\n * 查询条件\n * @param pageNo\n * 页码\n * @param pageSize\n * 每页条数\n * @return\n * @throws Exception\n */\n Page<?> select(QueryRule queryRule , int pageNo , int pageSize) throws Exception;\n\n /**\n * 根据SQL获取列表\n *\n * @param sql\n * sql语句\n * @param args\n * 参数\n * @return\n * @throws Exception\n */\n List<Map<String , Object>> selectBySql(String sql , Object... args) throws Exception;\n\n /**\n * 根据SQL获取分页\n *\n * @param sql\n * SQL语句\n * @param param\n *\n * @param pageNo\n * 页码\n * @param pageSize\n * 每条页码数\n * @return\n * @throws Exception\n */\n Page<Map<String , Object>> selectBySqlToPage(String sql , Object[] param , int pageNo , int pageSize) throws Exception;\n\n /**\n * 删除一条记录\n * @param entity\n * entity中的id不能为空。如果id为空,其他条件不能为空。都为空不执行。\n * @return\n * @throws Exception\n */\n boolean delete(T entity) throws Exception;\n\n /**\n * 批量删除\n * @param list\n * @return 返回受影响的行数\n * @throws Exception\n */\n int deleteAll(List<T> list) throws Exception;\n\n /**\n * 插入一条记录并返回插入后的ID\n * @param entity\n * 只要entity不等于null,就执行插入\n * @return\n * @throws Exception\n */\n PK insertAndReturnId(T entity) throws Exception;\n\n /**\n * 插入一条记录,自增id\n * @param entity\n * @return\n * @throws Exception\n */\n boolean insert(T entity) throws Exception;\n\n /**\n * 批量插入\n *\n * @param list\n * @return\n * 返回受影响的行数\n * @throws Exception\n */\n int insertAll(List<T> list) throws Exception;\n\n /**\n * 修改一条记录\n * @param entity\n * entity中的ID不能为空。如果ID为空,其他条件不能为空。都为空不执行。\n * @return\n * @throws Exception\n */\n boolean update(T entity) throws Exception;\n}", "public interface BaseDao<T extends BaseEntity> {\r\n\t/**\r\n\t * Adds entity to database\r\n\t * \r\n\t * @param entity\r\n\t * creating entity\r\n\t */\r\n\tvoid create(T entity);\r\n\r\n\t/**\r\n\t * Gets entity from database\r\n\t * \r\n\t * @param id\r\n\t * id of entity\r\n\t * @return found entity\r\n\t */\r\n\tT read(int id);\r\n\r\n\t/**\r\n\t * Gets all certain kind entities from database\r\n\t * \r\n\t * @return List of all entities\r\n\t */\r\n\tList<T> readAll();\r\n\r\n\t/**\r\n\t * Updates entity in database\r\n\t * \r\n\t * @param entity\r\n\t * entity for update\r\n\t */\r\n\tvoid update(T entity);\r\n\r\n\t/**\r\n\t * Deletes entity from database\r\n\t * \r\n\t * @param entityId\r\n\t * id of entity\r\n\t */\r\n\tvoid delete(int entityId);\r\n\r\n\t/**\r\n\t * get values from ResultSet and set them to entity object\r\n\t * \r\n\t * @param rs\r\n\t * ResultSet object\r\n\t * \r\n\t * @return entity object\r\n\t * @throws SQLException\r\n\t * if the columnLabel is not valid;\r\n\t */\r\n\tT buidEntity(ResultSet rs) throws SQLException;\r\n}", "public interface DAO<T> {\n T get(int ID);\n List<T> getAll();\n List<T> findByLastName(String string);\n boolean add(T t);\n boolean update(T t);\n boolean delete(T t);\n\n\n\n \n}", "public interface DAO<PK extends Serializable, T> {\n\t/**\n\t * Enumerate para saber de que forma ordenar los resultados ASC o DESC\n\t * \n\t * @author Victor Huerta\n\t * \n\t */\n\tpublic enum Ord {\n\t\tASCENDING(\"ASC\"), DESCENDING(\"DESC\"), UNSORTED(\"\");\n\t\tprivate final String ord;\n\n\t\tprivate Ord(String ord) {\n\t\t\tthis.ord = ord;\n\t\t}\n\n\t\tpublic String getOrd() {\n\t\t\treturn ord;\n\t\t}\n\t}\n\n\t/**\n\t * Metodo para recuperar la session actual\n\t * \n\t * @return la session actual\n\t */\n\tSession getCurrentSession();\n\n\t/**\n\t * Metodo para guardar un registro\n\t * \n\t * @param entity\n\t * Entidad a guardar\n\t * @return true si se guardo correctamente false en otro caso\n\t */\n\tBoolean save(T entity);\n\n\t/**\n\t * Metodo para eliminar un registro\n\t * \n\t * @param entity\n\t * Registro a borrar\n\t * @return true si se elimino correctamente false en otro caso\n\t */\n\tBoolean delete(T entity);\n\n\t/**\n\t * Metodo para recuperar todos los objetos de la tabla\n\t * \n\t * @return lista con todos los objetos de la tabla\n\t */\n\tList<T> getAll();\n\n\t/**\n\t * Metodo para recuberar un objeto por el id, este metodo esta destinado a\n\t * los objetos que ya tienen definido el tipo T\n\t * \n\t * @param id\n\t * El id el objeto que se busca\n\t * @return El objeto encontrado\n\t */\n\tT getById(PK id);\n\n\t/**\n\t * Con este metodo se pueden buscar registros con propiedades similares a\n\t * las del objeto que se pasa, no sirve para buscaquedas por id.\n\t * \n\t * @param entity\n\t * Entidad con propiedades que se van a buscar\n\t * @return Lista de entidades encontradas\n\t */\n\tList<T> searchByExample(T entity);\n\n\t/**\n\t * Metodo para buscar registros con propiedades similares a la del objeto\n\t * que recibe, ordenarlos por el campo que manda con el limite y paginas\n\t * dadas\n\t * \n\t * @param entity\n\t * Ejemplo para la busqueda\n\t * @param sortBy\n\t * Campor por el que se desea ordenar\n\t * @param limit\n\t * Numero maximo de registros\n\t * @param page\n\t * Numero de pagina\n\t * @return\n\t */\n\tList<T> searchByExamplePages(T entity, String sortBy, Ord ord,\n\t\t\tInteger limit, Integer page);\n\n\t/**\n\t *\n\t * Metodo para buscar registros con propiedades similares a la del objeto\n\t * que recibe, ordenarlos por el campo que manda con el limite y paginas\n\t * dadas.\n\t * \n\t * @param entity\n\t * Ejemplo para la busqueda\n\t * @param sortBy\n\t * Campor por el que se desea ordenar\n\t * @param limit\n\t * Numero maximo de registros\n\t * @param page\n\t * Numero de pagina\n\t * @param associations\n\t * \t\t\t Mapa propiedad objeto\n\t * \n\t * @return List<T>\n\t */\n\n\tList<T> searchByExamplePages(T entity, String sortBy, Ord ord,\n\t\t\tInteger limit, Integer page, Map<String, Object> associations);\n\n\t/**\n\t * Cuenta todos los registros de la tabla\n\t * \n\t * @return Numero de registros en la tabla\n\t */\n\tInteger countAll();\n\n\t/**\n\t * Cuenta todos los resultados que coinciden con un ejemplo\n\t * \n\t * @param entity\n\t * Entidad de ejemplo para la busqueda\n\t * @return Numero de registros encontrados\n\t */\n\tInteger countByExample(T entity);\n\n\t/**\n\t * Numero de paginas que se obtendran buscando con el ejemplo dado y usando\n\t * un limite\n\t * \n\t * @param entity\n\t * Entidad de ejemplo para la busqueda\n\t * @param limit\n\t * Limite de registros por pagina\n\t * @return\n\t */\n\tInteger countByExamplePages(T entity, Integer limit);\n\n\t/**\n\t * Retorna la clase del tipo generico, la clase de la entidad. Destinada a\n\t * solo funcionar cuando se implemente esta interfaz definiendo el tipo T\n\t * \n\t * @return Clase del tipo generico\n\t */\n\tClass<?> getEntityClass();\n}", "public interface DcSquadDAO {\n /**\n * Insert one <tt>DcSquadDO</tt> object to DB table <tt>dc_squad</tt>, return primary key\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>insert into dc_squad(squad_name,squad_desc,axiser,cubers,followers,investors,status,gmt_create,gmt_modify,attention) values (?, ?, ?, ?, ?, ?, ?, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ?)</tt>\n *\n *\t@param dcSquad\n *\t@return long\n *\t@throws DataAccessException\n */\n public long insert(DcSquadDO dcSquad) throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad</tt>\n *\n *\t@return List<DcSquadDO>\n *\t@throws DataAccessException\n */\n public List<DcSquadDO> load() throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad where (id = ?)</tt>\n *\n *\t@param id\n *\t@return DcSquadDO\n *\t@throws DataAccessException\n */\n public DcSquadDO loadById(long id) throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad where (squad_name = ?)</tt>\n *\n *\t@param squadName\n *\t@return DcSquadDO\n *\t@throws DataAccessException\n */\n public DcSquadDO loadByName(String squadName) throws DataAccessException;\n\n /**\n * Update DB table <tt>dc_squad</tt>.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>update dc_squad set squad_name=?, squad_desc=?, axiser=?, cubers=?, followers=?, investors=?, status=?, gmt_modify=CURRENT_TIMESTAMP where (id = ?)</tt>\n *\n *\t@param dcSquad\n *\t@return int\n *\t@throws DataAccessException\n */\n public int update(DcSquadDO dcSquad) throws DataAccessException;\n\n /**\n * Delete records from DB table <tt>dc_squad</tt>.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>delete from dc_squad where (id = ?)</tt>\n *\n *\t@param id\n *\t@return int\n *\t@throws DataAccessException\n */\n public int deleteById(long id) throws DataAccessException;\n\n /**\n * Query DB table <tt>dc_squad</tt> for records.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>select * from dc_squad where ((squad_name = ?) AND (axiser = ?) AND (cubers = ?) AND (followers = ?) AND (investors = ?) AND (status = ?) AND (gmt_create = ?) AND (gmt_modify = ?))</tt>\n *\n *\t@param squadName\n *\t@param axiser\n *\t@param cubers\n *\t@param followers\n *\t@param investors\n *\t@param status\n *\t@param gmtCreate\n *\t@param gmtModify\n *\t@param pageSize\n *\t@param pageNum\n *\t@return PageList\n *\t@throws DataAccessException\n */\n public PageList query(String squadName, String axiser, String cubers, String followers,\n String investors, String status, Date gmtCreate, Date gmtModify,\n int pageSize, int pageNum) throws DataAccessException;\n\n /**\n * Update DB table <tt>dc_squad</tt>.\n *\n * <p>\n * The sql statement for this operation is <br>\n * <tt>update dc_squad set attention=? where (id = ?)</tt>\n *\n *\t@param attention\n *\t@param id\n *\t@return int\n *\t@throws DataAccessException\n */\n public int updateAttention(long attention, long id) throws DataAccessException;\n\n}", "public interface DAO {\n\n\t/**\n\t * Dohvaća entry sa zadanim <code>id</code>-em. Ako takav entry ne postoji,\n\t * vraća <code>null</code>.\n\t * \n\t * @param id ključ zapisa\n\t * @return entry ili <code>null</code> ako entry ne postoji\n\t * @throws DAOException ako dođe do pogreške pri dohvatu podataka\n\t */\n\tpublic BlogEntry getBlogEntry(Long id) throws DAOException;\n\n\t/**\n\t * Returns true if nick exists.\n\t * \n\t * @param nick to check\n\t * @return true if nick exists\n\t * @throws DAOException\n\t */\n\tpublic boolean nickExists(String nick) throws DAOException;\n\n\t/**\n\t * Returns BlogUser with given nick. Null if such user doesn't exist\n\t * \n\t * @param nick Nick\n\t * @return BlogUser with given nick or Null if such user doesn't exist\n\t * @throws DAOException\n\t */\n\tpublic BlogUser getUserByNick(String nick) throws DAOException;\n\t\n//\tpublic List<BlogUser> getUsers();\n\t\n\t/**\n\t * Registers user with information given in form\n\t * \n\t * @param form Informations about user\n\t * @throws DAOException\n\t */\n\tpublic void registerUser(RegisterForm form) throws DAOException;\n\t\n\t/**\n\t * Registers user\n\t * \n\t * @param user to register\n\t * @throws DAOException\n\t */\n\tpublic void registerUser(BlogUser user) throws DAOException;\n\n\t/**\n\t * Returns list of all users\n\t * \n\t * @return list of all users\n\t * @throws DAOException\n\t */\n\tpublic List<BlogUser> getAllUsers() throws DAOException;\n\t\n\t/**\n\t * Adds blog\n\t * \n\t * @param blog to add\n \t * @throws DAOException\n\t */\n\tpublic void addBlog(BlogEntry blog) throws DAOException;\n\t\n\t\n\t/**\n\t * Returns email of user with nick, null if no such user exists\n\t * \n\t * @param nick of user\n\t * @return email of user with nick, null if no such user exists\n\t * @throws DAOException\n\t */\n\tpublic String getUserEmail(String nick) throws DAOException;\n\n\t/**\n\t * Adds comment with informations from CommentForm to BlogEntry blog\n\t * \n\t * @param blog in which comment is added\n\t * @param comment to add\n\t */\n\tpublic void addComment(BlogEntry blog, CommentForm comment);\n\n\t/**\n\t * Updates blog values from values in form\n\t * @param blog to change\n\t * @param form with new values\n\t */\n\tpublic void changeBlog(BlogEntry blog, BlogForm form);\n}", "public interface GenericDao<Entity> {\n\n /**\n * Persists entity into database.\n * @param entity Entity which is going to be persisted\n * @return Saved entity.\n */\n Entity save(Entity entity);\n\n /**\n * Deletes entity from database.\n * @param entity Entity which is going to be deleted.\n */\n void delete(Entity entity);\n\n /**\n * Merges detached entity\n * @param entity Detached entity\n * @return Entity, which is menaged now.\n */\n Entity merge(Entity entity);\n\n /**\n * Deletes entity from database.\n * @param id Id of entity which is going to be deleted.\n */\n void deleteEntityById(Long id);\n\n /**\n * Returns entity with given id.\n * @param id Id of entity.\n * @return Entity with given id.\n */\n Entity getEntityById(Long id);\n\n /**\n * Returns all entities.\n * @return All entities from table.\n */\n List<Entity> getAll();\n}", "public interface DAO<T, ID> {\n\n /**\n * A method that saves the specified object.\n *\n * @param t - object name.\n * @return - this object.\n */\n T save(T t);\n\n /**\n * The method that gets the object by the identifier.\n *\n * @param id - ID.\n * @return - object by this ID.\n */\n T getById(ID id);\n\n /**\n * Method to delete an object.\n *\n * @param id - ID.\n * @return - true (if object was removed).\n */\n boolean delete(ID id);\n\n /**\n * Method for retrieving all table objects.\n *\n * @return - got objects.\n */\n List<T> getAll();\n\n}", "public interface DepartmentDAO {\n\n /**\n * This method is used to retrieve a list of all departments.\n *\n * @return List of generic type {@link Department}\n */\n public List<Department> getAllDepartments();\n\n /**\n * This method is used when adding a department.\n *\n * @param department of type {@link Department}\n */\n public void addDepartment(Department department);\n\n /**\n * This method is used to update the department table.\n *\n * @param department of type {@link Department}\n * @param newDeptName of type String *\n */\n public void updateDepartment(Department department, String newDeptName);\n\n /**\n * This method is used to delete departments by department number.\n *\n * @param dept_no of type integer\n */\n public void deleteDepartmentByDeptNo(int dept_no);\n\n /**\n * This method is use to delete departments by name.\n *\n * @param dept_name of type String\n */\n public void deleteDepartmentByDeptName(String dept_name);\n\n /**\n * This method is responsible for returning a department by dept_no.\n *\n * @param dept_no of type integer\n * @return ResultSet\n */\n public ResultSet getDepartmentByID(int dept_no);\n\n /**\n * This method is responsible for returning a department by dept_name\n *\n * @param dept_name of type String\n * @return ResultSet\n */\n public ResultSet getDepartmentByName(String dept_name);\n}", "public interface EmployeeDAO {\r\n\r\n\t\t\tpublic List<Employee> findAll();\r\n\r\n\t\t\tpublic Employee findById(int theId);\r\n\t\t\t\r\n\t\t\tpublic void save(Employee theEmployee);\r\n\r\n\t\t\tpublic void deleteById(int theId);\r\n}", "public interface IEntity2Dao {\n\n\t/**\n\t * Create a new element.\n\t * @param entity2 Element to create.\n\t \t * @throws DaoException If a Dao problem occurs.\n\t */\n\tpublic void createEntity2(Entity2 entity2) throws DaoException;\n\n\t/**\n\t * Update an existing element.\n\t * @param entity2 Element to update. \n * If the element has an id, it may use it.\n \t * @throws DaoException If a Dao problem occurs.\n\t */\n\tpublic void updateEntity2(Entity2 entity2) throws DaoException;\n\n\t/**\n\t * Delete an element.\n * Only id can be used to find which element must be deleted.\n\t * @param entity2 Element which will be delete. \n\t \t * @throws DaoException If a Dao problem occurs.\n\t */\n\tpublic void deleteEntity2(Entity2 entity2) throws DaoException;\n\n\t/**\n\t * Find all elements.\n\t * @return A list with all elements, without any filter.\n\t \t * @throws DaoException If a Dao problem occurs.\n\t */\n\tpublic Collection findAllEntity2s() throws DaoException;\n\n\t/**\n\t * Find one entity by its primary key.\n * @param id The PK of the entity.\n\t * @return The entity found.\n\t \t * @throws DaoException If a Dao problem occurs.\n\t */\n\tpublic Entity2 findEntity2ById(String id) throws DaoException;\n\n\t//Start of user code for technicals dao access api\n\t//End of user code\n}", "public interface DomainDao extends GenericDao<Domain, Integer> {\r\n\t/**\r\n\t * \r\n\t * @param unitName\r\n\t * @return Returns a domain by unit name\r\n\t * @throws Exception\r\n\t */\r\n\tpublic Domain getDomainByUnitName(String unitName) throws Exception;\r\n\r\n\t/**\r\n\t * \r\n\t * @param domainName\r\n\t * @return Returns a domain by name\r\n\t * @throws Exception\r\n\t */\r\n\tpublic Domain getDomainByName(String domainName) throws Exception;\r\n\r\n\t/**\r\n\t * \r\n\t * @param domainName\r\n\t * @return Returns the admin login of the domain\r\n\t * @throws Exception\r\n\t */\r\n\tpublic Login getGoogleDomainAdminLogin(String domainName) throws Exception;\r\n\r\n\t/**\r\n\t * \r\n\t * @param domainName\r\n\t * @return Returns all domains by name\r\n\t * @throws Exception\r\n\t */\r\n\tpublic List<Domain> getAllByDomainName(String domainName) throws Exception;\r\n}", "public interface DAOCompanies {\n\n void create(Company company);\n boolean update (int companyId, Company company);\n Company read(int companyId);\n boolean delete(int companyId);\n void addCompanyToDeveloper(int compId, int devId);\n\n}", "public interface UserDao {\n /**\n * 用户增加\n *\n * @param user\n */\n void insert(User user);\n\n /**\n * 根据id删除\n *\n * @param id\n */\n void delete(int id);\n\n /**\n * 更新User\n *\n * @param user\n */\n void update(User user);\n\n /**\n * 查询表中所有数据\n *\n * @return\n */\n List<User> queryAll();\n\n /**\n * 根据User查询\n *\n * @param id\n * @return\n */\n User queryById(int id);\n}", "public interface DotaMaxDAO {\n\n\n /**\n * 将hero实例存储到数据库。\n */\n void insertHeroes(List<Heroes> heroList);\n\n /**\n * 将Item实例存储到数据库。\n */\n void insertItems(List<Items> itemsList);\n\n\n /**\n * 加载英雄列表\n * @return\n */\n Heroes getHeroes(int id);\n\n\n\n\n\n\n void insertMatch(MatchDetails match);\n\n /**\n * 加载数据库里已有的数据\n * @param id\n * @return\n */\n MatchDetails getMatch(long id);\n\n /**\n * 加载用户的数据\n * @param account_id\n * @return\n */\n List<MatchDetails> getMatchByAccountId(long account_id);\n\n\n String getItemsNameById(String item_id);\n\n\n\n /**\n * 添加到User表\n */\n boolean insertUser(User user);\n\n /**\n * 从User表读取所有的用户\n */\n List<Long> getUser();\n\n\n\n}", "public interface DAOInterface<T> {\n T create();\n void adicionar(T obj);\n void excluir(T obj);\n void atualizar(T obj);\n List<T>listar();\n T findForId(int id);\n T findForString(String string);\n}", "public interface CategoryDAO extends DAO<AbsractCategory> {\n\n /**\n * getting exactly one category specified by the given id\n *\n * @param identificaitonNumber of the category to search for\n * @return exactely one category\n * @throws PersistenceException\n */\n AbsractCategory searchByID(int identificaitonNumber) throws PersistenceException;\n\n /**\n * getting a list of all equipment categorys\n *\n * @return a list of all equipment categorys like, kurzhantel, langhantel, springschnur ...\n * @throws PersistenceException\n */\n List<EquipmentCategory> getAllEquipment() throws PersistenceException;\n\n /**\n * getting a list of all muscle groups\n *\n * @return a list of all muslce groups like, bauchmuskeln, oberschenkel, unterschenkel ...\n * @throws PersistenceException\n */\n List<MusclegroupCategory> getAllMusclegroup() throws PersistenceException;\n\n /**\n * getting a list of all trainingstypes\n *\n * @return a list of all trainingstypes: ausdauer, kraft, balance, flexibilitaet\n * @throws PersistenceException\n */\n List<TrainingsCategory> getAllTrainingstype() throws PersistenceException;\n\n}", "public interface AnimalDAO {\n\t//specify CRUD operations that should be created by concrete class\n\t\n\t// create\n\tpublic boolean addAnimal(Animal animal);\n\t\n\t// read\n\tpublic List<Animal> getAllAnimals();\n\t\n\tpublic List<Animal> getAnimalsOfUser(String username);\n\t\n\tpublic Animal getAnimal(String name);\n\t\n\t\n\t\n\t// update\n\tpublic boolean updateAnimalStatus(String name, String value);\n\t\n\t// delete\n\t// can be overloaded\n\tpublic boolean removeAnimal(String name);\n}", "public interface modeloDAO {\n void insert(Object obj);\n void update(Object obj);\n void delete(Object obj);\n ArrayList<Object> get();\n}", "public interface GenericDao<T, ID extends Serializable> {\r\n\r\n /**\r\n * <p/>\r\n * Get the entity with the appropriate type and id from the datasource.\r\n * <p/>\r\n * If none is found, return null.\r\n */\r\n T get(ID id);\r\n\r\n /**\r\n * <p/>\r\n * Save the entity in datasource.\r\n * <p/>\r\n * Returns new id of the entity.\r\n */\r\n ID create(T entity);\r\n\r\n /**\r\n * <p/>\r\n * Update entity in datasource.\r\n */\r\n void update(T entity);\r\n\r\n /**\r\n * <p/>\r\n * Create or update entity in datasource.\r\n */\r\n void createOrUpdate(T entity);\r\n\r\n /**\r\n * <p/>\r\n * Remove entity from datasource\r\n */\r\n void delete(T entity);\r\n\r\n /**\r\n * <p/>\r\n * Refresh given entity with datasource state\r\n */\r\n void refresh(T... entities);\r\n\r\n /**\r\n * <p/>\r\n * Find all objects in datasource for appropriate domain object\r\n */\r\n List<T> findAll();\r\n\r\n /**\r\n * <p/>\r\n * Find all objects in datasource for appropriate domain object with specified <code>ListParams</code> object.\r\n */\r\n List<T> findAll(ListParams params);\r\n\r\n /**\r\n * <p/>\r\n * Get total records count in datasource for appropriate domain object.\r\n */\r\n Long count();\r\n}", "public interface DUserDao {\n /**\n * 根据手机和密码,查询返回病患信息\n * 若不存在返回空,若密码不对返回id=0的医生\n * @param phone 医生手机\n * @return\n */\n DUser queryByPhone(@Param(\"phone\") String phone);\n\n /**\n * 新建一个医生用户\n * @param dUser\n * @return\n */\n boolean save(DUser dUser);\n\n /**\n * 查询所有的医生用户\n * @return\n */\n ArrayList<DUser> queryAll();\n\n /**\n * 更新医生\n * @param dUser\n * @return\n */\n boolean updateDUser(DUser dUser);\n}", "public interface BaseDao<T> {\n\n /**\n * save the entity\n * @param t\n * @throws Exception\n */\n void save(T t) ;\n /**\n * update the entity\n * @param t\n * @throws Exception\n */\n void update(T t) ;\n /**\n * delete the entity\n * @param t\n * @throws Exception\n */\n void delete(T t) ;\n /**\n * find by id\n * @param id\n * @return\n * @throws Exception\n */\n T findById(Serializable id) ;\n /**\n * find the list of the entity\n * @return\n * @throws Exception\n */\n List<T> findAll() ;\n /**\n * get the entity count\n * @return\n * @throws Exception\n */\n int findAllCount() ;\n /**\n * find entities by criteria\n * @param criteria\n * @return\n * @throws Exception\n */\n List<T> findByCriteria(Criteria criteria) ;\n /**\n * find the entities by example\n * @param t\n * @return\n * @throws Exception\n */\n List<T> findByExample(T t) ;\n /**\n * find entities by hql\n * @param hql\n * @param objects\n * @return\n * @throws Exception\n */\n List<Object[]> findByHql(String hql, final Object... objects) ;\n /**\n * find the object by sql\n * @param sql\n * @param objects\n * @return\n */\n List<Object[]> findBySql(String sql, final Object... objects);\n}", "public interface GenericDao <Entity extends Serializable, ID extends Object>{\n Entity findById(ID id);\n List<Entity> findAll(int isRef);\n List<Entity> findByName(String name);\n\n int insert(Entity entity);\n int update(Entity entity);\n int delete(Entity entity);\n int delete(ID id);\n}", "public interface GenericDao<T extends Identified<PK>, PK extends Serializable> {\n\n /**\n * Creates new entry and returns corresponding domain object\n *\n * @return domain object\n * @throws SQLException\n */\n T create() throws PersistException;\n\n /**\n * Creates new entry corresponding to domain object\n *\n * @param obj domain object\n * @return domain object\n * @throws SQLException\n */\n T persist(T obj) throws PersistException;\n\n /**\n * Find entry corresponding to domain object by primary key\n *\n * @param key entity primary key\n * @return domain object if found, else null\n * @throws SQLException\n */\n T getByPk(int key) throws PersistException;\n\n /**\n * Update entry corresponding to domain object state\n *\n * @param obj domain object\n * @throws SQLException\n */\n void update(T obj) throws PersistException;\n\n /**\n * Delete entry corresponding to domain object from database\n *\n * @param obj domain object\n * @throws SQLException\n */\n void delete(T obj) throws PersistException;\n\n /**\n * Get all entries from database\n *\n * @return list of domain objects\n * @throws SQLException\n */\n List<T> getAll() throws PersistException;\n\n}", "public interface StockDao {\n //包含仓库、入库、出库信息\n\n //添加仓库信息\n boolean addStock(Stock stock);\n //更新仓库信息\n boolean updateStock(Stock stock);\n //增加入库记录\n boolean addInnerStock(InnerStock innerStock);\n //查看入库记录\n List<InnerStock> listInnerStock();\n\n}", "public interface UsuarioDao {\n\t\n\tUsuario consultarUsuario (Usuario usuario);\n\n\tvoid guardarUsuario(Usuario usuario);\n\n\tList<Usuario> traerTodosLosUsuarios();\n\n\tvoid guardarAdministrador(Usuario admin);\n\n\tUsuario traerUnUsuarioPorSuId(Long id);\n\n\tvoid actualizarUsuario(Usuario usuario);\n\n\tUsuario consultarCorreoUsuario(Usuario usuario);\n}", "public interface IEmployeeDAO {\n\t\n\tpublic boolean insertEmployee(Employee emp);\n\tpublic List<Employee> getAllEmployees(); \n\tpublic Employee getEmployee(int empId);\n\tpublic boolean updateEmp(int empId, double newSal); \n\tpublic boolean deleteEmp(int empId); \n\n}", "public interface IDataBaseRepository {\r\n\r\n /**\r\n * Get DataBase object\r\n *\r\n * @return obj\r\n */\r\n //DataBase getDataBase();\r\n\r\n /**\r\n * Save new clothes\r\n *\r\n * @param clothes obj\r\n */\r\n void save(Clothes clothes);\r\n\r\n /**\r\n * Delete clothes\r\n *\r\n * @param clothes obj\r\n */\r\n void delete(Clothes clothes);\r\n\r\n /**\r\n * Update clothes\r\n *\r\n * @param oldClothes obj\r\n * @param newClothes ojb\r\n */\r\n void update(Clothes oldClothes, Clothes newClothes);\r\n\r\n /**\r\n * Get all clothes\r\n *\r\n * @return list\r\n */\r\n List<Clothes> getAll();\r\n\r\n /**\r\n * Get all clothes by type of the office\r\n *\r\n * @param officeType obj\r\n * @return list\r\n */\r\n List<Clothes> getByOffice(OfficeType officeType);\r\n\r\n /**\r\n * Get clothes by ID\r\n *\r\n * @param id int\r\n * @return clothes obj\r\n */\r\n Clothes getById(int id);\r\n\r\n}", "public interface ErpDao {\r\n //登录验证\r\n\tUsers logonValidateById(String username, String userpassword);\r\n\t //基础维护 里面的 部门维护\r\n\tPageBean<Department> departmentalManagement(Integer indexpage);\r\n\t //基础维护 里面的员工维护\r\n\tPageBean<Employee> employee(Integer indexpage);\r\n\t//基础维护里面 的角色维护\r\n\tPageBean<Role> roleSelectById(Integer indexpage);\r\n\t//基础维护 里面的 部门维护 里面的新建部门\r\n\tvoid addDept(Department deparment);\r\n\t //基础维护 里面的 部门维护 里面的修改 根据id查出\r\n Department diteDepa(int id);\r\n //基础维护 里面的 部门维护 里面的修改\r\n void ModifyById(Department deparment);\r\n //基础维护 里面的 部门维护 里面的删除\r\n void delect(Integer id);\r\n \r\n // //基础维护里面的员工维护里面的新增员工\r\n void newlyAdded(Employee emp);\r\n}", "public interface DAO<M extends AbstractModel> {\n\n /**\n * @param value persistent (or transient) object to be saved / updated\n * @return saved object\n */\n M save(M value);\n\n /**\n * @param id id of the persistent object to be loaded\n * @return persisted object matching the given id\n */\n @SuppressWarnings(\"unchecked\")\n M get(Long id);\n\n /**\n * @param value persistent object to be deleted\n */\n void delete(M value);\n\n /**\n * Delete all instances of {@link M}\n */\n void deleteAll();\n\n /**\n * @return all instances of {@link M}\n */\n List<M> loadAll();\n}", "public interface DVDCategorieDAO {\n /**\n * This is the method to be used to initialize\n * database resources ie. connection.\n */\n public void setDataSource(DataSource ds);\n\n /**\n * This is the method to be used to create\n * a record in the Graduate table.\n */\n public void create(int id, DVD dvd, Categorie categorie);\n\n /**\n * This is the method to be used to list down\n * a record from the Graduate table corresponding\n * to a passed graduate id.\n */\n public DVDCategorie getDVDCategorie(int id);\n\n /**\n * This is the method to be used to list down\n * all the records from the Graduate table.\n */\n public List<DVDCategorie> listDVDCategorie();\n\n /**\n * This is the method to be used to delete\n * a record from the Graduate table corresponding\n * to a passed graduate id.\n */\n public void delete(Integer id);\n\n /**\n * This is the method to be used to update\n * a record into the Graduate table.\n */\n public void update(Integer id, DVD dvd, Categorie categorie);\n}", "public interface DeptDao {\n //动态查询\n @SelectProvider(type=DeptDynaSqlProvider.class,method = \"selectWithParam\")\n List<Dept> selectByPage(Map<String,Object> params);\n @SelectProvider(type=DeptDynaSqlProvider.class,method = \"count\")\n Integer count(Map<String,Object> params);\n @Select(\"select * from \"+DEPTTABLE+\" \")\n List<Dept> selectAllDept();\n @Select(\"select * from \"+DEPTTABLE+\" where id = #{id}\")\n Dept selectById(int id);\n @Delete(\"delete from \"+DEPTTABLE+\" where id = #{id}\")\n void deleteById(int id);\n //动态插入部门\n @InsertProvider(type=DeptDynaSqlProvider.class,method = \"insertDept\")\n void save(Dept dept);\n //动态修改部门\n @UpdateProvider(type=DeptDynaSqlProvider.class,method = \"updateDept\")\n void update(Dept dept);\n}", "public interface UserDAO extends AbstractDAO<User> {\n\n /**\n * This method checks the availability of the <i>login</i> and <i>password</i> in the <i>users</i> database table.\n *\n * @param login - entered <i>login</i> filed of the user.\n * @param password - entered <i>password</i> field of the user.\n * @param connection - the current connection to a database. Transmitted from the service module to provide transactions.\n * @return - boolean value of the condition:\n * returns \"true\" if the incoming data correspond to the record of the database table;\n * returns \"false\" if the incoming data do not correspond to the record of the database table.\n */\n boolean isAuthorized(String login, String password, Connection connection) throws DAOException;\n\n /**\n * This method reads data from <i>users</i> database table, creates and returns User object according to the entered login.\n *\n * @param login - entered <i>login</i>.\n * @param connection - the current connection to a database. Transmitted from the service module to provide transactions.\n * @return - User object.\n */\n User getByLogin(String login, Connection connection) throws DAOException;\n\n /**\n * This method check the uniqueness of the user.\n *\n * @param login - entered <i>login</i>.\n * @param connection - the current connection to a database. Transmitted from the service module to provide transactions.\n * @return - boolean value of the condition:\n * returns \"false\" if the incoming data correspond to the record of the database table;\n * returns \"true\" if the incoming data do not correspond to the record of the database table.\n * @throws DAOException\n */\n boolean checkUniqueUser(String login, Connection connection) throws DAOException;\n\n /**\n * This method reads and returns information from a record (row) of a database table.\n *\n * @param id - id number of the record (row) in the database table..\n * @param connection - the current connection to a database. Transmitted from the service module to provide transactions.\n * @return - an entity from a database table according to the incoming id number.\n */\n User getById(String id, Connection connection) throws DAOException;\n\n /**\n * This method updates an existing record (row) in a database table.\n *\n * @param user - the current entity of user which will be updated.\n * @param connection - the current connection to a database. Transmitted from the service module to provide transactions.\n */\n void update(User user, Connection connection) throws DAOException;\n\n /**\n * This method creates entity of User class from data received from ResultSet.\n *\n * @param resultSet - a database result \"row\" with required values.\n * @param user - the entity of User with \"null\" value for setting corresponding values.\n * @return - created user with fields.\n * @throws SQLException\n */\n User createUser(ResultSet resultSet, User user) throws SQLException;\n}", "public interface DAO <T> {\n void add (T t);\n void delete (T t);\n boolean find (T t);\n void addToBase(T t);\n}", "public interface MaestroPersonalDAO {\n\tpublic MaestroPersonalBean obtenerPersonaxUsuario(String cod_user)\n\tthrows DataAccessException;\n\t\n\tpublic MaestroPersonalBean obtenerPersonaxCodigo(String cod_empl)\n\tthrows DataAccessException;\n\t\n\tpublic MaestroPersonalBean obtenerPersonaxRegistro(String cod_reg)\n\tthrows DataAccessException;\n\t\n\tpublic String obtenerCorreoEmpleado(Map<String,Object> parm)\n\t\t\tthrows DataAccessException;\n\t\n\tpublic String obtenerRegistroPersonal(String cod_user)\n\tthrows DataAccessException;\n\t\n\tpublic String obtenerJefeInmediato(String cod_empl)\n\tthrows DataAccessException;\n\t\n\tpublic String obtenerIntendente(String cod_empl)\n\tthrows DataAccessException;\n\t\n\tpublic String obtenerAprobador(String cod_empl)\n\tthrows DataAccessException;\n\t\n\tpublic String obtenerAprobadorAUC(String cod_auc)\n\tthrows DataAccessException;\n\t\n\tpublic String esIntendente(String cod_empl)\n\tthrows DataAccessException;\n\t\n\tpublic String esAprobador(String cod_empl)\n\tthrows DataAccessException;\n\t\n\tpublic String obtenerSuperIntendente(String cod_empl)\n\tthrows DataAccessException;\n\t\n\t\n\tpublic String esJefeUBG(String cod_empl)\n\tthrows DataAccessException;\n\n\tpublic Collection<MaestroPersonalBean> listarMaestroPersonal(Map parm)\n\tthrows DataAccessException;\n\n\tpublic Collection<MaestroPersonalBean> buscarMaestroPersonal(Map parm)\n\t\t\tthrows DataAccessException ;\n\t\n\t\n\tpublic Collection<MaestroPersonalBean> buscarMaestroPersonalInactivo(Map parm)\n\t\t\tthrows DataAccessException ;\n\t\n\t\n\t\n\t\n\tpublic Collection<MaestroPersonalBean> buscarMaestroPersonalMovilidad(Map parm)\n\t\t\tthrows DataAccessException ;\n\tpublic Collection<MaestroPersonalBean> buscarMaestroPersonalViaticos(Map parm)\n\t\t\tthrows DataAccessException ;\n\tpublic String obtenerJefeInmediatoEncargado(String cod_empl, String cod_encargado)\n\tthrows DataAccessException;\n\t\n\tpublic String obtenerAprobadorEncargado(String cod_empl, String cod_encargado)\n\tthrows DataAccessException;\n\t\n\tpublic String obtenerAprobadorEncargadoAUC(String cod_auc, String cod_encargado)\n\tthrows DataAccessException;\n\t\n\tpublic String esAprobadorEncargado(String cod_empl)\n\tthrows DataAccessException;\n\t\n////////////////////////////////////////////////////////////////////////\t\n\tpublic String esJefe(String cod_empl, String cod_dep )\n\tthrows DataAccessException;\n\t\n\tpublic String obtenerJefeAuc(String cod_dep)\n\tthrows DataAccessException;\n\t\n\tpublic String esJefeInmediatoEncargado(String cod_empl, String cod_enca)\n\tthrows DataAccessException;\n\t\n\tpublic String verificaEncargo(String cod_empl, String cod_enca)\n\tthrows DataAccessException;\n\t\n\tpublic MaestroPersonalBean obtenerCategoriaGasto(String codigoEmpleado) throws DataAccessException;\n\t\n\tpublic String determinaJefeInmediatoEncargadoMovilidad(String codigoEmpleado) throws DataAccessException;\n\t\n\tpublic String determinaAutorizadorGastoMovilidad(String codigoEmpleado) throws DataAccessException;\n\t\n\tpublic String determinaAutorizadorGastoViatico(String codigoEmpleado) throws DataAccessException;\n\t\n\tpublic List<MaestroPersonalBean> buscarMaestroPersonalComisionadoInactivo(Map<String, Object> parm) throws DataAccessException;\n\n\tpublic String buscarNombreAutorizador(String codigoEmpleado) throws Exception;\n\t\n\t//PAS201780000300007\n\tpublic boolean esPerfilColaboradorJefe(String codDependencia,String codEmpleado ) throws DataAccessException;\n\tpublic boolean esPerfilColaboradorEncargado(String codDependencia,String codEmpleado ) throws DataAccessException;\n\tpublic abstract boolean esEncargadoOtraUuoo(String codEmpleado) throws DataAccessException;\n\tpublic abstract boolean esEncargadoAuc(String codEmpleado) throws DataAccessException;\n\tpublic String obtenerCadenaUuoosQueEsJefe(String codEmpleadoJefe) throws DataAccessException;\n}", "public interface DBDao {\n /**\n * 添加本地缓存\n * @param url 插入的数据的url\n * @param content 插入的数据的json串\n */\n public void insertData(String url,String content,String time);\n\n /**\n * 删除指定的本地存储数据\n * @param url 指定url\n */\n public void deleteData(String url);\n\n /**\n * 更新本地缓存数据\n * @param url 指定url\n * @param content 需要更新的内容\n * @param time 更新的时间\n */\n public void updateData(String url,String content,String time);\n\n /**\n * 查询指定url的缓存数据\n * @param url 指定的url\n * @return 返回缓存数据content\n */\n public String queryData(String url);\n /**\n * 查询指定url的缓存数据\n * @param url 指定的url\n * @return 返回缓存数据的存储时间\n */\n public String queryDataTime(String url);\n}", "public interface AirWaybillDangerousDetailDao {\r\n \r\n public int count() throws DaoException;\r\n\r\n public int deleteById(Integer id) throws DaoException;\r\n\r\n public int insert(AirWaybillDangerousDetail airWaybillDangerousDetail) throws DaoException;\r\n\r\n public AirWaybillDangerousDetail findById(Integer id) throws DaoException;\r\n\t\r\n\tpublic int update(AirWaybillDangerousDetail airWaybillDangerousDetail) throws DaoException;\r\n\t\r\n\tpublic int countByAirWaybillDangerousDetailExample(AirWaybillDangerousDetailExample airWaybillDangerousDetailExample) throws DaoException;\r\n\t\r\n\tpublic AirWaybillDangerousDetail findByAirWaybillDangerousDetailExample(AirWaybillDangerousDetailExample airWaybillDangerousDetailExample) throws DaoException;\r\n\t\r\n public List<AirWaybillDangerousDetail> findAllByAirWaybillDangerousDetailExample(AirWaybillDangerousDetailExample airWaybillDangerousDetailExample) throws DaoException;\r\n \r\n public List<AirWaybillDangerousDetail> findAllByAirWaybillDangerousDetailExample(AirWaybillDangerousDetailExample airWaybillDangerousDetailExample, int limit) throws DaoException;\r\n \r\n public List<AirWaybillDangerousDetail> findAllByAirWaybillDangerousDetailExample(AirWaybillDangerousDetailExample airWaybillDangerousDetailExample, int offset, int limit) throws DaoException;\r\n}", "public interface BaseDao {\n\n public Session getMySession();\n\n public void close(Session session);\n //实体处理\n\n /**\n * 保存实体\n * @param t 实体对象\n * @param <T>\n * @return\n */\n public <T> boolean saveEntity(T t);\n\n /**\n * 删除实体\n * @param t 实体对象\n * @param <T>\n * @return\n */\n public <T> boolean deleteEntity(T t);\n\n /**\n * 更新实体\n * @param t 实体对象\n * @param <T>\n * @return\n */\n public <T> boolean updateEntity(T t);\n\n /**\n * 获得实体\n * @param t 实体类\n * @param id 实体id\n * @param <T>\n * @return\n */\n public <T> T getEntity(Class t,Serializable id);\n\n //批量处理\n\n /**\n * 查询\n * @param hql hql语句\n * @param objects\n * @return\n */\n public <T> List<T> queryByHql(String hql,Object...objects);\n\n /**\n * 分页查询\n * @param hql 查询语句\n * @return\n */\n public <T> List<T> queryForPages(final String hql, final Object[] params,\n final int start, final int limit);\n}", "public interface IFakturyDao {\n public Firma getFirma(long id);\n public void saveFirma(Firma firma);\n public Stawka_vat getStawka_vat(long id);\n public void saveStawka_vat(Stawka_vat stawka_vat);\n public Faktura getFaktura(long id);\n public void saveFaktura(Faktura faktura);\n public Pozycja getPozycja(long id);\n public void savePozycja(Pozycja pozycja);\n public Wplata getWplata(long id);\n public void saveWplata(Wplata wplata);\n}", "public interface BusinessDao {\n\n public List<Business> getAllBusiness() throws Exception;\n public Business getBusinessbyId(Long businessId) throws Exception;\n public void addBusiness (Business business) throws Exception;\n public void updateBusiness(Business business) throws Exception;\n public void deleteBusiness(Business business) throws Exception;\n}", "public interface TravelGroupDAO {\r\n\r\n /**\r\n * 从数据库取得指定id的Travel Group\r\n * \r\n * @param id\r\n * Travel Group的id\r\n * @return 返回指定的Travel Group\r\n */\r\n public TravelGroup getTravelGroup(Integer id);\r\n\r\n /**\r\n * get Travel Group List Count according to conditions\r\n * \r\n * @param conditions\r\n * search condition\r\n * @return list count\r\n */\r\n public int getTravelGroupListCount(Map conditions);\r\n\r\n /**\r\n * get Travel Group List according to conditions\r\n * \r\n * @param conditions\r\n * search condition\r\n * @param pageNo\r\n * start page no(0 based), ignored if -1\r\n * @param pageSize\r\n * page size, ignored if -1\r\n * @param order\r\n * search order\r\n * @param descend\r\n * asc or desc\r\n * @return Travel Group list\r\n */\r\n public List getTravelGroupList(Map conditions, int pageNo, int pageSize, TravelGroupQueryOrder order, boolean descend);\r\n\r\n /**\r\n * insert Travel Group to database\r\n * \r\n * @param travel\r\n * Group the Travel Group inserted\r\n * @return the Travel Group inserted\r\n */\r\n public TravelGroup insertTravelGroup(TravelGroup travelGroup);\r\n\r\n /**\r\n * update Travel Group to datebase\r\n * \r\n * @param travelGroup\r\n * the Travel Group updated\r\n * @return the Travel Group updated\r\n */\r\n public TravelGroup updateTravelGroup(TravelGroup travelGroup);\r\n\r\n}", "public interface TipoActividadDAO {\n \n /**\n * Funció que engloba les funcións que s'utilitzen per crear tipus d'activitat\n * @param tipoAct\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String callCrear(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Verifica que no existeixi un tipus amb el mateix nom\n * @param tipoAct\n * @return int\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract int getTipoByName(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Inserta un tipus d'activitat en la base de dades\n * @param tipoAct\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String insertarTipoActividad(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Agafa els tipus d'activitats que esten actius\n * @return List de TipoActividad\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract List<TipoActividad> getTiposActividad() throws PersistenceException, ClassNotFoundException;\n \n /**\n * Agafa tots els tipus d'activitats \n * @return List de TipoActividad\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract List<TipoActividad> getTiposActividadAdm() throws PersistenceException, ClassNotFoundException;\n \n /**\n * Seleccionar el tipo de actividad d'una actividad\n * @param activity\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String getTipoByAct(Actividad activity) throws PersistenceException, ClassNotFoundException;\n\n /**\n * Guarda la sessió del tipus d'activitat\n * @param tipoAct\n * @param pagina\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract void guardarSession(TipoActividad tipoAct, String pagina) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Funció que engloba les funcións per editar un tipus d'activitat\n * @param tipoAct\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String callEditar(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Funció que permet editar el Tipus d'activitat\n * @param tipoAct\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String editarTipoActividad(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n}", "public interface BaseDAO<T> {\n /**\n * 添加\n *\n * @param t\n * @return\n */\n Integer addBean(T t);\n\n /**\n * 更新\n *\n * @param t\n */\n void updateBean(T t);\n\n /**\n * 查询\n *\n * @param t\n * @return\n */\n List<T> queryBeans(T t);\n\n\n /**\n * 统计\n *\n * @param t\n * @return\n */\n Integer countBean(T t);\n\n\n /**\n * 查找\n *\n * @param t\n * @return\n */\n T findBean(T t);\n\n void deleteBean(T t);\n}", "public interface ProjectDao {\n\n /**\n * Method to insert project to database\n * @param project project object\n * @return true for successful project creation else false.\n * @throws CreateFailException \n * @throws EmployeeManagementException \n */\n public boolean insertProject(Project project) throws EmployeeManagementException; \n \n /**\n * Method to get project object based on project id\n * @param projectId id of project which need to display\n * @return project object\n * @throws FetchFailException \n * @throws EmployeeManagementException \n */\n public Project getProject(int projectId) throws EmployeeManagementException;\n\n /**\n * Method to get specified projects list\n * @param projectIdList\n * @return project objects list\n * @throws FetchFailException \n * @throws EmployeeManagementException \n */\n public List<Project> getSpecifiedProjects(List<Integer> projectIdList) \n \t\tthrows EmployeeManagementException; \n\n /**\n * Method to get project object with employee object list based on project id\n * @param projectId id of project which need to display\n * @return project object\n * @throws FetchFailException \n * @throws EmployeeManagementException \n */\n public Project getProjectWithEmployee(int projectId) throws EmployeeManagementException;\n\n /**\n * Method to display all project present in database\n * @param isDeleted indicating the project is deleted or not\n * @return list of project objects \n * @throws FetchFailException \n * @throws EmployeeManagementException \n */\n public List<Project> getAllProject(boolean isDeleted) throws EmployeeManagementException;\n\n /**\n * Method to delete project based on projectId\n * @param project project object for delete project\n * @return true for successful deletion else false\n */\n public boolean updateProject(Project project);\n\n /**\n * Method to check the id is present in database or not\n * @param projectId project id\n * @return true if id present in database else false\n * @throws EmployeeManagementException \n */\n\tpublic boolean isIdExist(int projectId) throws EmployeeManagementException;\n}", "public interface GeneralDao<E, K> {\n\n List<E> getAll();\n\n E addEntity(E entity);\n\n boolean deleteEntity(E entity);\n\n E updateEntity(E entity);\n\n E getEntityById(K id);\n\n}", "public interface DAOOperations<T> {\n\t\n\t\n\t/**\n\t * Executes the SQL insert, update or delete statements and return the\n\t * number of affected rows.\n\t * @param sql the SQL statement\n\t * @return the number of executed inserts/deletes/updates\n\t * @throws DataAccessException\n\t */\n\tpublic int updateDb (final String sql) throws DataAccessException;\n\t\n\t/**\n\t * Gets the row count number given the sql query.\n\t * \n\t * @param sql the sql query.\n\t * @return the row count number.\n\t * @throws DataAccessException\n\t */ \n\tpublic int selectRowCount (final String sql) throws DataAccessException;\n\t\n\t/**\n\t * Gets a list of beans given a sql query.\n\t * \n\t * @param sql the sql query.\n\t * @return a list of beans.\n\t * @throws DataAccessException\n\t */\n\t@SuppressWarnings(\"hiding\")\n\tpublic <T> List<T> selectDb (final String sql, T bean) throws DataAccessException;\n\t\n\n}", "public interface ExpenseItemDAO extends GenericDAO {\r\n ExpenseItem find(long id) throws DAOException;\r\n\r\n List findByExpense(Expense expense, PageInfo pageInfo) throws DAOException;\r\n\r\n List findByCategory(ExpenseItemCategory expItemCat, PageInfo pageInfo) throws DAOException;\r\n\r\n List findByExpenseAndCategory(Expense expense, ExpenseItemCategory expItemCat,\r\n PageInfo pageInfo) throws DAOException;\r\n\r\n ExpenseItem store(ExpenseItem expItem) throws DAOException;\r\n\r\n void delete(long id) throws DAOException;\r\n\r\n}", "public interface GvEstadoDocumentoDAO extends GenericOracleAsignacionesDAO<GvEstadoDocumento, Long>{\n public GvEstadoDocumento buscarPorCodigo(long idEstadoDocumento);\n public GvEstadoDocumento buscarPorNombre(String descripcion);\n\tpublic List<GvEstadoDocumento> buscarGvEstadoDocumentos();\n\tpublic void guardarGvEstadoDocumento(GvEstadoDocumento gvEstadoDocumento) throws EducacionDAOException;\n}", "public interface DAOAdministrador {\r\n public boolean insertarAdministrador(Administrador admon);\r\n public boolean modificarAdministrador(Administrador admon);\r\n public boolean eliminarAdministrador(Administrador admon);\r\n public String verAdministrador();\r\n}", "public interface GenericDAO<E, K extends Serializable> {\n\n /**\n * Create entity in persistent storage.\n *\n * @param entity\n * Entity to save into the storage\n */\n void create(E entity);\n\n /**\n * Read all the entities found in the storage.\n *\n * @return list of entities\n */\n List<E> read();\n\n /**\n * Read one entity by it's primary key.\n *\n * @param id\n * Primary key to find entity by\n * @return entity found in storage by given id\n */\n E read(K id);\n\n /**\n * Find entities similar to given sample.\n *\n * Result list include all and only the entities with same fields values as\n * non-null fields of the sample\n *\n * @param entitySample\n * Sample for searching for.\n * @return Found entities list.\n */\n List<E> findBySample(E entitySample);\n\n /**\n * Update the stored entity with the entity given.\n *\n * @param entiry\n * Entity with properties set to what should be saved\n * @return the same entity after merging with storage version\n */\n E update(E entiry);\n\n /**\n * Delete given entity from the storage.\n *\n * @param entity\n * Entity to delete\n */\n void delete(E entity);\n\n /**\n * Delete entity from storage by given id.\n *\n * @param id\n * Entity primary key.\n */\n void delete(K id);\n}", "public interface ImplementShoppingDao {\n\n\n public Shopping selectShoppingById(int id);\n\n /**\n * 通过板块plate查询Article\n *\n * @return Article对象集合\n */\npublic List<Shopping> selectShoppingAllshop();\n\n /**\n * 添加商品\n * @param shopping\n * @return\n */\n public boolean addShopping(Shopping shopping);\n}", "public interface DAO<T> {\n boolean save(T t);\n T get(Serializable id);\n boolean update(T t);\n boolean delete(Serializable id);\n}", "@Generated(value = \"JPACodeGenerator\")\npublic interface AbstractDao<E> {\n Class<E> getEntityClass();\n\n EntityManager getEntityManager();\n\n E persist(E entity);\n\n E merge(E entity);\n\n E remove(E entity);\n\n Optional<E> find(Object pk);\n}", "public interface PortionedDAO {\n\n String getDataPortion() throws DAOException;\n\n}", "public interface SafeDao {\n /**\n * 写入数据库\n */\n int insertData(@Param(\"state\") String state, @Param(\"temperature\") String temperature, @Param(\"heartrate\") String heartrate, @Param(\"longitude\") String longitude, @Param(\"latitude\") String latitude, @Param(\"updateDate\") Date updateDate);\n List<SafeEntity> getList();\n List<SafeEntity> getOne();\n\n}", "public interface OwnerDao {\n\n /**\n * Add a new Owner.\n *\n * @param ownerModel Model containing the details of the new owner\n * @return Owner ID\n * @throws Exception Exception to throw\n */\n int addNewOwner(OwnerModel ownerModel) throws Exception;\n\n /**\n * Retrieve owner by ID.\n *\n * @param ownerID ID of owner\n * @return Owner model\n * @throws Exception Exception to throw\n */\n OwnerModel getOwnerByID(int ownerID) throws Exception;\n\n /**\n * Update a passenger.\n *\n * @param ownerModel Model containing the details of the owner to be updated\n * @throws Exception Exception to throw\n */\n void updateOwner(OwnerModel ownerModel) throws Exception;\n\n /**\n * Delete owner.\n *\n * @param ownerModel Model containing the details of the owner to be deleted\n * @throws Exception Exception to throw\n */\n void removeOwner(OwnerModel ownerModel) throws Exception;\n}", "public interface InterfaceDao<T>{\n //int COUNT_ROWS = 8;\n /**\n *\n * Чья реализауия.\n * @return\n */\n String WhoIsIt();\n\n /**\n *\n * @param El Добавление обьекта <b>EL<b>\n * @throws SQLException\n */\n void insert(T El) throws SQLException;\n\n /**\n *\n * @param El Обновить обьект <b>EL<b>\n * @throws SQLException\n */\n void update(T El) throws SQLException;\n\n /**\n * Получить обьекта по id\n * @param id идентификатор\n * @return возвращает обьект заданного типа\n * @throws SQLException\n */\n\n /**\n * Получить список обьектов\n * @return список\n * @throws SQLException\n */\n List getAll(Class <T> clazz) throws SQLException;\n\n /**\n * Удалить элемент из БД\n * @param El\n * @throws SQLException\n */\n void delete(T El) throws SQLException;\n\n long getCount(Class<T> clazz) throws SQLException;\n\n List getSubList(int position, int count, Class<T> clazz) throws SQLException;\n}", "public interface CompanyDao {\n /**\n * 根据主键ID获取企业信息\n *\n * @param id\n * @return\n */\n Company getById(Long id);\n\n /**\n * 根据会员ID获取企业信息\n *\n * @param memberId\n * @return\n */\n Company getByMemberId(Long memberId);\n \n /**\n * 根据企业名字查询\n *\n * @param company\n * @return\n */\n public Company getByName(String name);\n /**\n * 查询数量\n * @param name\n * @return\n */\n public int getCountByName(@Param(\"name\")String name,@Param(\"statuss\")int statuss[]);\n /**\n * 保存\n * @param company\n */\n public void save(Company company);\n /**\n * 更新\n * @param company\n */\n public void update(Company company);\n}", "public interface ClothDao {\n /**\n * 判断衣服Id是否存在\n * @param id\n * @return boolean\n */\n boolean isClothIdExists(int id);\n /**\n * 返回图片\n * @param clothId\n * @return Clothinfostring\n */\n String getClothById(int clothId);\n /**\n * 返回图片\n * @param none\n * @return Cloth Ids\n */\n String getAllCloth();\n\n}", "public interface UsageDAO {\n \n /**\n * Find by id.\n *\n * @param id the id\n * @return the optional\n */\n public Optional<UsageData> findById(Long id);\n\n \n /**\n * Creates the.\n *\n * @param ud the ud\n * @return the usage data\n */\n public UsageData create(UsageData ud);\n\n /**\n * Find all.\n *\n * @return the list\n */\n public List<UsageData> findAll();\n}", "public interface LugarDAO {\n\n /**\n * Obtiene un lugar dado el id\n * @param lugarId\n * @return Lugar {@link Lugar}\n */\n public Lugar findLugarByID(int lugarId);\n}", "public interface StudentDao {\n /**\n * Method to find a student by its id\n * @param id\n * @return\n */\n Student findById(String id);\n\n /**\n * Creates a new entry in the table Book in the DB\n * @param entity\n * @return\n */\n void create(Student entity);\n\n /**\n * Updates an entry in the table Book in the DB\n * @param entity\n */\n void update(Student entity);\n\n /**\n * Remove an entry in the table Book in the DB\n * @param entity\n */\n void remove(Student entity);\n}", "public interface Idao {\r\n\r\n\tpublic void seconnecter(String login, String mdp);\r\n\r\n\tpublic void creerClient(Client c);\r\n\tpublic void lireClient(Client c);\r\n\tpublic void modifierClient(Client c);\r\n\tpublic void supprimerClient(Client c);\r\n\t\r\n\tpublic void creerConseiller(Conseiller c);\r\n\tpublic Conseiller lireConseiller(int id);\r\n\tpublic void modifierConseiller(int id, String nom, String prenom, String login, String mdp, String email);\r\n\tpublic void supprimerConseiller(Conseiller c);\r\n\tpublic void attribuerAgence(Agence a, Employe e);\r\n\tpublic void ajouterEmploye(Employe e, Agence a);\r\n\tpublic void attribuerGerant(Gerant g, Conseiller c);\r\n\tpublic void ajouterConseiller(Conseiller c, Gerant g);\r\n\t\r\n\tpublic void creerCompte(Compte c);\r\n\tpublic CompteCourant lireCompteCourant(int idCompte);\r\n\tpublic CompteCourant lireCompteCourant(long numCompte);\r\n\tpublic CompteEpargne lireCompteEpargne(int idCompte);\r\n\tpublic CompteEpargne lireCompteEpargne(long numCompte);\r\n\tpublic void modifierCompteCourant(long numCompte, double solde, int decouvert);\r\n\tpublic void modifierCompteEpargne(long numCompte, double solde, float tauxEpargne);\r\n\tpublic void supprimerCompte(long numCompte);\r\n\tpublic void faireVirement(Compte c);\r\n\tpublic void simuler();\r\n\tpublic void placerArgent(float montant, Compte c);\r\n\tpublic void attribuerClient(Client cl, Compte c);\r\n\tpublic void ajouterCompte(Compte c, Client cl);\r\n\tpublic void attibuerConseiller(Conseiller c, Client cl);\r\n\tpublic void ajouterClient(Client cl, Conseiller c);\r\n\r\n\tpublic void auditer();\r\n\r\n}", "public interface TitanOpenOrgDao {\r\n\r\n\tint insert(TitanOpenOrg entity) throws DaoException;\r\n\t\r\n\tint delete(TitanOpenOrg entity) throws DaoException;\r\n\t\r\n\tList<TitanOpenOrgDTO> selectList(TitanOpenOrg entity) throws DaoException;\r\n\t\r\n\tList<String> selectMaxPrefix() throws DaoException;\r\n}", "public interface BaseDao<T> {\n\n T get(Long id);\n\n int save(T t);\n\n int update(T t);\n\n int delete(T t);\n\n int delete(Long id);\n\n T getObj(String sql, Object... args);\n\n Long count(String sql, Object... args);\n\n List<T> getList(String sql);\n\n List<T> getList(String frameSql, Object... args);\n\n Page<T> getPage(Page page, String frameSql, Object[] args);\n\n}", "public interface SubGeneroDAO {\n /**\n * Método que permite guardar un subgénero.\n * @param subGenero {@link SubGenero} objeto a guardar.\n */\n void guardar(SubGenero subGenero);\n\n /**\n * Método que permite actualizar un subgénero.\n * @param subGenero {@link SubGenero} objeto a actualizar.\n */\n void actualizar(SubGenero subGenero);\n\n /**\n * Método que permite eliminar un subgénero por su identificador.\n * @param id {@link Long} identificador del subgénero a eliminar.\n */\n void eliminiar(Long id);\n\n /**\n * Método que permite consultar la lista de subgéneros.\n * @return {@link List} lista de subgéneros consultados.\n */\n List<SubGenero> consultar();\n\n /**\n * Método que permite consultar un SubGenero a partir de su identificador.\n * @param id {@link Long} identificador del subgénero a consultar.\n * @return {@link SubGenero} un objeto subgénero consultado.\n */\n SubGenero consultarById(Long id);\n\n\n}", "public interface CategoryDao {\n\n /**\n * Method adds category to database\n * @param category\n */\n void addCategory(Category category);\n\n /**\n * Method updates category in database\n * @param category\n */\n void updateCategory(Category category);\n\n /**\n * Methods returns category by id\n * @param id\n * @return\n */\n Category selectCategory(long id);\n\n /**\n * Methods returns category by category name\n * @param name\n * @return category\n */\n Category selectCategory(String name);\n\n /**\n * Method returns category list\n * @return category list\n */\n List<Category> selectCategoryList();\n\n /**\n * Method deletes category by id\n * @param id\n */\n void deleteCategory(long id);\n\n /**\n * Method deletes category parameter\n * @param id\n */\n void deleteParameter(long id);\n\n /**\n * Method deletes category products\n * @param id\n */\n void deleteCategoryProducts(long id);\n\n /**\n * Method delete category parameter product details\n * @param id\n */\n void deleteCategoryParameterProductDetails(long id);\n}", "public interface IBaseDao<T> {\n\n Serializable save(T o) throws Exception;\n Serializable save(List<T> o)throws Exception;\n void delete(T o);//此功能尚未完成\n boolean insert(String sql, Object[] params);\n\n boolean delete(String sql, Integer id);\n boolean update(String sql, Object[] params);\n void update(T o) throws Exception;\n Serializable update(List<T> o) throws Exception;\n void saveOrUpdate(T o);\n List<Object> executeSQL(String sql, Object[] param);\n List<T> find(String hql);\n int countNum(String hql, Object[] param);\n List<T> find(String hql, Object[] param);\n\n List<T> find(String hql, List<Object> param);\n\n List<T> find(String hql, Object[] param, Integer page, Integer rows);\n\n List<T> findNumberRows(String hql, Object[] param, Integer first, Integer max);\n\n List<T> findNumberRows(String hql, List param, Integer first, Integer max);\n\n List<T> find(String hql, List<Object> param, Integer page, Integer rows);\n\n T get(Class<T> c, Serializable id);\n\n T get(String hql, Object[] param);\n\n T get(String hql, List<Object> param);\n\n Long count(String hql);\n\n Long count(String hql, Object[] param);\n\n Long count(String hql, List<Object> param);\n\n Double countAvg(String hql, Object[] param);\n\n Integer executeHql(String hql);//此功能尚未完成\n\n Integer executeHql(String hql, Object[] param);//此功能尚未完成\n\n Integer executeHql(String hql, List<Object> param);//此功能尚未完成\n}", "public interface BaseDao<T> {\n\t\n\tpublic void setEntityClass(Class<T> entityClass);\n\t\n\tpublic Session getSession();\n\t\n\tpublic Criteria getCriteria();\n\t\n\tpublic T load(Long id);\n\t\n\tpublic T get(Long id);\n\n\tpublic List<T> get(Long[] ids);\n\t\n\tpublic T get(String propertyName, Object value);\n\t\n\tpublic T get(DetachedCriteria criteria);\n\t\n\tpublic List<T> getList(String propertyName, Object value);\n\t\n\tpublic Long getCount();\n\t\n\tpublic Long getCount(DetachedCriteria criteria);\n\n Long getId(DetachedCriteria criteria);\n\n public Long save(T entity);\n\t\n\tpublic void saveOrUpdate(T entity);\n\t\n\tpublic void update(T entity);\n\t\n\tpublic void merge(T entity);\n\t\n\tpublic void delete(T entity);\n\t\n\tpublic void delete(Long id);\n\t\n\tpublic void delete(Long[] ids);\n\t\n\tpublic void delete(List<T> list);\n\t\n\tpublic List<T> list();\n\t\n\tpublic Object findUniqueObject(DetachedCriteria criteria);\n\t\n\tpublic List<T> list(DetachedCriteria criteria);\n//\tpublic Page<T> list(DetachedCriteria criteria, Integer pageNumber);\n\t\n//\tpublic Page<T> list(DetachedCriteria criteria, Page<T> page);\n\t\n\tpublic Page<T> list(DetachedCriteria criteria, Integer pageNumber, Integer pageSize);\n\t\n\tpublic List<T> listData(DetachedCriteria criteria, Integer pageNumber, Integer pageSize);\n\n public List<T> listData(DetachedCriteria criteria, int firstResult, int maxResults);\n\n List<Long> listIds(DetachedCriteria criteria, int firstResult, int maxResults);\n\n @SuppressWarnings(\"unchecked\")\n List<Long> listIds(DetachedCriteria criteria);\n\n public Page<T> list(DetachedCriteria criteria, Page<T> page);\n\n\tpublic T refresh(T entity);\n\t\n\t//\n\tpublic List<T> getActiveListByRefAndCompany(DetachedCriteria criteria,String ref, Long companyId);\n\t\n\tpublic void refreshCache();\n\n\tpublic String getNextIDForObject(String fieldName, String tableName, Integer number);\n}", "public interface CommonDao<ENTITY extends SelServicesEntity> {\n\t\n\tpublic void create(ENTITY entity);\n\t\n\tpublic ENTITY get(long id);\n\t\n\tpublic void update(ENTITY entity);\n\t\n\tpublic void delete(long id);\n\t\n\tpublic NotificationFactory getNotificationFactory();\n\t\n\tpublic Date lastDateUpdate();\n\n}", "public interface EscalaDAO {\r\n\r\n /**\r\n * Select numero manifiesto aeat.\r\n *\r\n * @param srvcId\r\n * the srvc id\r\n * @return the string\r\n */\r\n String selectNumeroManifiestoAeat(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del estado de una escala a partir del estado de sus atraques.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateRecalcularEstado(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del codigo de exencion de una escala a partir del codigo de exencion de sus atraques.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateExencion(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del tipo de estancia de una escala a partir del tipo de estancia de sus atraques.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateEstancia(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del tipo de navegacion de entrada de una escala a partir del puerto anterior.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateNavegacionEntrada(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del tipo de navegacion de salida de una escala a partir del puerto siguiente.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateNavegacionSalida(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del tipo de IVA de una escala a partir de datos de la escala.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateTipoIva(final Long srvcId);\r\n\r\n /**\r\n * Modificacion de las fechas de inicio/fin de una escala a partir las fechas de inicio/fin de sus\r\n * atraques.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateRecalcularFechas(final Long srvcId);\r\n}", "public interface InvMainDao extends GenericDao<InvMain, String> {\n\tpublic JQueryPager getInvMainCriteria(final JQueryPager paginatedList,List<PropertyFilter> filters);\n\tpublic boolean checkAllInitInvMainConfirm(String orgCode,String copyCode,String kjYear,String storeId);\n\tpublic InvMain getInvMainByNo(String no, String orgCode, String copyCode);\n\tpublic boolean checkAllDocsInStore(String storeId,String orgCode,String copyCode,String kjYear);\n\tpublic void deleteInvDictAccount(String storeId, String orgCode,String copyCode,String kjYear);\n\n}", "public interface SsoAuthDAO {\r\n\t/**\r\n\t * Insert one <tt>SsoAuthDO</tt> object to DB table <tt>sso_auth</tt>, return primary key\r\n\t *\r\n \t * <p>\r\n \t * Description for this operation is<br>\r\n \t * <tt></tt>\r\n\t * <p>\r\n\t * The sql statement for this operation is <br>\r\n\t * <tt>insert into sso_auth(auth_code,auth_name,app_id,is_enable,description,last_modifier,gmt_create,gmt_modified) values (?, ?, ?, ?, ?, ?, ?, ?)</tt>\r\n\t *\r\n\t *\t@param ssoAuth\r\n\t *\t@return Integer\r\n\t *\t@throws DataAccessException\r\n\t */\t \r\n public Integer insert(SsoAuthDO ssoAuth) throws DataAccessException;\r\n\r\n\t/**\r\n\t * Delete records from DB table <tt>sso_auth</tt>.\r\n\t *\r\n \t * <p>\r\n \t * Description for this operation is<br>\r\n \t * <tt></tt>\r\n\t * <p>\r\n\t * The sql statement for this operation is <br>\r\n\t * <tt>delete from sso_auth where (id = ?)</tt>\r\n\t *\r\n\t *\t@param id\r\n\t *\t@return int\r\n\t *\t@throws DataAccessException\r\n\t */\t \r\n public int delete(Integer id) throws DataAccessException;\r\n\r\n\t/**\r\n\t * Update DB table <tt>sso_auth</tt>.\r\n\t *\r\n \t * <p>\r\n \t * Description for this operation is<br>\r\n \t * <tt></tt>\r\n\t * <p>\r\n\t * The sql statement for this operation is <br>\r\n\t * <tt>update sso_auth set auth_code=?, auth_name=?, app_id=?, is_enable=?, description=?, last_modifier=?, gmt_modified=? where (id = ?)</tt>\r\n\t *\r\n\t *\t@param ssoAuth\r\n\t *\t@return int\r\n\t *\t@throws DataAccessException\r\n\t */\t \r\n public int update(SsoAuthDO ssoAuth) throws DataAccessException;\r\n\r\n\t/**\r\n\t * Query DB table <tt>sso_auth</tt> for records.\r\n\t *\r\n \t * <p>\r\n \t * Description for this operation is<br>\r\n \t * <tt></tt>\r\n\t * <p>\r\n\t * The sql statement for this operation is <br>\r\n\t * <tt>select id, auth_code, auth_name, app_id, is_enable, description, last_modifier, gmt_create, gmt_modified from sso_auth where (id = ?)</tt>\r\n\t *\r\n\t *\t@param id\r\n\t *\t@return SsoAuthDO\r\n\t *\t@throws DataAccessException\r\n\t */\t \r\n public SsoAuthDO query(Integer id) throws DataAccessException;\r\n\r\n\t/**\r\n\t * Query DB table <tt>sso_auth</tt> for records.\r\n\t *\r\n \t * <p>\r\n \t * Description for this operation is<br>\r\n \t * <tt></tt>\r\n\t * <p>\r\n\t * The sql statement for this operation is <br>\r\n\t * <tt>select id, auth_code, auth_name, app_id, is_enable, description, last_modifier, gmt_create, gmt_modified from sso_auth where (app_id = ?)</tt>\r\n\t *\r\n\t *\t@param appId\r\n\t *\t@return List<SsoAuthDO>\r\n\t *\t@throws DataAccessException\r\n\t */\t \r\n public List<SsoAuthDO> queryByAppId(Integer appId) throws DataAccessException;\r\n\r\n\t/**\r\n\t * Query DB table <tt>sso_auth</tt> for records.\r\n\t *\r\n \t * <p>\r\n \t * Description for this operation is<br>\r\n \t * <tt></tt>\r\n\t * <p>\r\n\t * The sql statement for this operation is <br>\r\n\t * <tt>select id, auth_code, auth_name, app_id, is_enable, description, last_modifier, gmt_create, gmt_modified from sso_auth where (auth_code = ?)</tt>\r\n\t *\r\n\t *\t@param authCode\r\n\t *\t@return SsoAuthDO\r\n\t *\t@throws DataAccessException\r\n\t */\t \r\n public SsoAuthDO queryByAuthCode(String authCode) throws DataAccessException;\r\n\r\n\t/**\r\n\t * Query DB table <tt>sso_auth</tt> for records.\r\n\t *\r\n \t * <p>\r\n \t * Description for this operation is<br>\r\n \t * <tt></tt>\r\n\t * <p>\r\n\t * The sql statement for this operation is <br>\r\n\t * <tt>select id, auth_code, auth_name, app_id, is_enable, description, last_modifier, gmt_create, gmt_modified from sso_auth where (auth_name = ?)</tt>\r\n\t *\r\n\t *\t@param authName\r\n\t *\t@return SsoAuthDO\r\n\t *\t@throws DataAccessException\r\n\t */\t \r\n public SsoAuthDO queryByAuthName(String authName) throws DataAccessException;\r\n\r\n\t/**\r\n\t * Query DB table <tt>sso_auth</tt> for records.\r\n\t *\r\n \t * <p>\r\n \t * Description for this operation is<br>\r\n \t * <tt></tt>\r\n\t * <p>\r\n\t * The sql statement for this operation is <br>\r\n\t * <tt>select b.id id, b.auth_code auth_code, b.auth_name auth_name, b.app_id app_id, b.is_enable is_enable, c.description description, b.last_modifier last_modifier, b.gmt_create gmt_create, b.gmt_modified gmt_modified from sso_role a, sso_auth b, sso_role_auth c where ((a.id = c.role_id) AND (b.id = c.auth_id))</tt>\r\n\t *\r\n\t *\t@param roleName\r\n\t *\t@return List<SsoAuthDO>\r\n\t *\t@throws DataAccessException\r\n\t */\t \r\n public List<SsoAuthDO> queryByRoleName(String roleName) throws DataAccessException;\r\n\r\n\t/**\r\n\t * Query DB table <tt>sso_auth</tt> for records.\r\n\t *\r\n \t * <p>\r\n \t * Description for this operation is<br>\r\n \t * <tt></tt>\r\n\t * <p>\r\n\t * The sql statement for this operation is <br>\r\n\t * <tt>select e.id id, e.app_id app_id, e.auth_code auth_code, e.auth_name auth_name, e.description description, e.is_enable is_enable, e.last_modifier last_modifier, e.gmt_create gmt_create, e.gmt_modified gmt_modified from sso_user a, sso_user_role b, sso_role c, sso_role_auth d, sso_auth e, sso_app f where ((a.id = b.user_id) AND (b.role_id = d.role_id) AND (d.auth_id = e.id) AND (e.app_id = f.id) AND (a.is_enable = 1) AND (e.is_enable = 1))</tt>\r\n\t *\r\n\t *\t@param userId\r\n\t *\t@param appName\r\n\t *\t@return List<SsoAuthDO>\r\n\t *\t@throws DataAccessException\r\n\t */\t \r\n public List<SsoAuthDO> queryByAppIdAndUserName(String userId, String appName) throws DataAccessException;\r\n\r\n\t/**\r\n\t * Delete records from DB table <tt>sso_auth</tt>.\r\n\t *\r\n \t * <p>\r\n \t * Description for this operation is<br>\r\n \t * <tt></tt>\r\n\t * <p>\r\n\t * The sql statement for this operation is <br>\r\n\t * <tt>delete from sso_auth where (description LIKE ?)</tt>\r\n\t *\r\n\t *\t@param description\r\n\t *\t@return int\r\n\t *\t@throws DataAccessException\r\n\t */\t \r\n public int deleteByDesc(String description) throws DataAccessException;\r\n\r\n}", "public interface StorageDao {\n\n /**\n * Connects to database and returns {@link Storage} object by id of dessert.\n *\n * @param dessertId is dessert's id value.\n * @return {@link Storage} if storage data found, null if not.\n * @throws DaoException when problems with database connection occurs.\n */\n Storage findByDessertId(Integer dessertId) throws DaoException;\n\n /**\n * Connects to database and update storage data.\n *\n * @param storage is {@link Storage} object that contains all info about storage for update.\n * @throws DaoException when problems with database connection occurs.\n */\n void updateStorage(Storage storage) throws DaoException;\n\n /**\n * Connects to database and add new storage.\n *\n * @param storage is {@link Storage} object that contains all info about storage.\n * @throws DaoException when problems with database connection occurs.\n */\n void insertStorage(Storage storage) throws DaoException;\n\n /**\n * Connects to database and set count to the storage by dessert ID.\n *\n * @param dessertId is dessert ID value.\n * @param count is count of dessert in storage\n * @throws DaoException when problems with database connection occurs.\n */\n void updateStorageByDessert(Integer dessertId, Integer count) throws DaoException;\n}", "public interface BillDetailDAO extends CommonDAO \n{\n public abstract void saveBillDetail(BillDetail val);\n\n public abstract void removeBillDetail(BillDetail val);\n\n public abstract void removeBillDetail(Long id);\n\n public abstract BillDetail findBillDetailById(Long id);\n\n public abstract List<BillDetail> findAllBillDetail();\n public abstract List<Product> findProductList();\n public abstract List<Bill> findBillList();\n}", "public interface EmployeeDetailDAO {\r\n\t/**\r\n\t * Saves a employee detail.\r\n\t * \r\n\t * @param detail\r\n\t * The employee detail.\r\n\t * @return The identifier saved.\r\n\t * @throws DBException\r\n\t * If a problem occurs.\r\n\t */\r\n\tEmployeeDetail save(EmployeeDetail detail) throws DBException;\r\n\r\n\t/**\r\n\t * Updates a employee detail.\r\n\t * \r\n\t * @param detail\r\n\t * The employee detail.\r\n\t * @throws DBException\r\n\t * If a problem occurs.\r\n\t */\r\n\tvoid update(EmployeeDetail detail) throws DBException;\r\n\r\n\t/**\r\n\t * Deletes a module.\r\n\t * \r\n\t * @param detail\r\n\t * The employee detail.\r\n\t * @throws DBException\r\n\t * If a problem occurs.\r\n\t */\r\n\tvoid delete(EmployeeDetail detail) throws DBException;\r\n\r\n\t/**\r\n\t * Gets detail by identifier.\r\n\t * \r\n\t * @return The employee detail.\r\n\t * @throws DBException\r\n\t * If a problem occurs.\r\n\t */\r\n\tEmployeeDetail getById(long identifier) throws DBException;\r\n}", "public interface DAOAvaliadorInterface extends DAOGenericoInterface{\n \n /**\n * Método para listar os avaliadores cadastrados no sistema.\n * @return \n */\n public List<AvaliadorDB> listar();\n \n /**\n * Método para inserir um avaliador no sistema.\n * @param avaliador \n */\n public void inserir(AvaliadorDB avaliador);\n \n /**\n * Método para alterar um avaliador cadastrado no sistema.\n * @param avaliador \n */\n public void alterar(AvaliadorDB avaliador);\n \n}", "public interface ReadDao {\n\n /**\n * 根据手机号码获取用户\n *\n * @param phone\n * @return\n */\n @Select(\"select * from t_user where phone=#{phone}\")\n UserModel getUserByPhone(@Param(\"phone\") String phone);\n\n /**\n * 根据用户名密码获取用户\n *\n * @param phone\n * @return\n */\n @Select(\"select * from t_user where phone=#{phone} and passwd=substr(md5(#{pwd}),9,8)\")\n UserModel getUserByPassword(@Param(\"phone\") String phone, @Param(\"pwd\") String pwd);\n\n /**\n * 根据商品名查询商品\n *\n * @return\n */\n @Select(\"select id goodsid,name,price from t_goods where name like #{name}\")\n List<Commodity> queryCommodity(@Param(\"name\") String name);\n\n /**\n * 根据关键字查询\n *\n * @param keyword\n * @param size\n * @return\n */\n @Select(\"select * from t_goods where name like #{keyword} limit 0,#{size}\")\n public List<Commodity> getCommodityByKeyword(@Param(\"keyword\") String keyword, @Param(\"size\") int size);\n\n\n /**\n * 根据ID获取商品\n *\n * @param id\n * @return\n */\n @Select(\"select * from t_goods where id=#{id}\")\n public Commodity getCommodityById(@Param(\"id\") long id);\n\n /**\n * 查询所有商品类别\n * @return\n */\n @Select(\"select id,category1,category2 from t_goods_category\")\n public List<CommodityCategory> queryCategorys();\n\n /**\n * 查询所有商品\n * @return\n */\n @Select(\"select * from t_goods\")\n public List<Commodity> queryAllCommodityes();\n\n\n /**\n * 根据父级名称获取子级名称\n *\n * @param name\n * @return\n */\n @Select(\"select * from t_goods_category where category1=#{name}\")\n public List<CommodityCategory> getCommodityCategoryByParentName(@Param(\"name\") String name);\n\n /**\n * 获取一级分类名称\n *\n * @return\n */\n @Select(\"select DISTINCT(category1) as category1 from t_goods_category\")\n public List<CommodityCategory> getParentCommodityCateory();\n}", "public interface PagoDAO \n{\n\tpublic List<Pago> findAll();\n\n public Pago findById(int id);\n\n public void save(Pago pago);\n}", "public interface TipoDao {\r\n\r\n /**\r\n * Inserta un nuevo registro en la tabla Tipos.\r\n */\r\n public TipoPk insert(Tipo dto) throws TipoDaoException;\r\n\r\n /**\r\n * Actualiza un unico registro en la tabla Tipos.\r\n */\r\n public void update(TipoPk pk, Tipo dto) throws TipoDaoException;\r\n\r\n /**\r\n * Elimina un unico registro en la tabla Tipos.\r\n */\r\n public void delete(TipoPk pk) throws TipoDaoException;\r\n\r\n /**\r\n * Retorna un unico registro en la tabla Tipos que conicida con la\r\n * primary-key especificada.\r\n */\r\n public Tipo findByPrimaryKey(TipoPk pk) throws TipoDaoException;\r\n\r\n /**\r\n * Retorna un registro de la tabla Tipos que coincida con el criterio\r\n * 'id_tipo = :idTipo'.\r\n */\r\n public Tipo findByPrimaryKey(Integer idTipo) throws TipoDaoException;\r\n\r\n /**\r\n * Retorna todos los registros de la tabla Tipos que coincidan con el\r\n * criterio 'nombre_tipo LIKE %:nombre%'.\r\n */\r\n public Tipo[] findByName(String nombre) throws TipoDaoException;\r\n\r\n /**\r\n * Retorna un registro de la tabla Tipos que coincida con el\r\n * criterio 'nombre_tipo = :nombre'.\r\n */\r\n public Tipo findByFullName(String nombre) throws TipoDaoException;\r\n\r\n /**\r\n * Retorna todas las filas de la tabla Tipos.\r\n */\r\n public Tipo[] findAll() throws TipoDaoException;\r\n\r\n /**\r\n * Retorna todos los registros de la tabla Tipos que coincidan con la\r\n * sentencia SQL especificada arbitrariamente\r\n */\r\n public Tipo[] findByDynamicSelect(String sql, Object[] sqlParams)\r\n throws TipoDaoException;\r\n\r\n /**\r\n * Retorna todos los registros de la tabla Tipos que coincidan con el WHERE\r\n * SQL especificado arbitrariamente\r\n */\r\n public Tipo[] findByDynamicWhere(String sql, Object[] sqlParams)\r\n throws TipoDaoException;\r\n\r\n /**\r\n * Sets the value of maxRows\r\n */\r\n public void setMaxRows(int maxRows);\r\n\r\n /**\r\n * Gets the value of maxRows\r\n */\r\n public int getMaxRows();\r\n\r\n /**\r\n * Retorna la conexión actual del usuario\r\n * \r\n * @return Connection\r\n */\r\n public Connection getUserConn();\r\n\r\n /**\r\n * Setea la conexión a usar con la BD\r\n * \r\n * @param userConn\r\n */\r\n public void setUserConn(Connection userConn);\r\n\r\n}", "public interface UserDAO {\n// 查询所有用户\n public List<User> queryAll();\n// 修改用户的状态\n public void update(User user);\n// 添加一个用户\n public void save(User user);\n// 查看一周的活跃量\n public Integer queryAc(Integer num);\n// 查看用户分布\n public List<CityFB> queryCity();\n\n}", "public interface DemoDao {\r\n /**\r\n * 保存用户\r\n * @param user\r\n * @throws Exception\r\n */\r\n void insert(DemoUser user)throws Exception;\r\n\r\n /**\r\n * 根据用户Id查询用户信息\r\n * @param userId\r\n * @return\r\n * @throws Exception\r\n */\r\n DemoUser selectById(Integer userId)throws Exception;\r\n\r\n /**\r\n * 更新用户信息\r\n * @param demoUser\r\n * @throws Exception\r\n */\r\n void updateById(DemoUser demoUser)throws Exception;\r\n\r\n\r\n /**\r\n * 根据Id删除用户信息\r\n * @param userId\r\n * @throws Exception\r\n */\r\n void deleteById(Integer userId)throws Exception;\r\n\r\n /**\r\n * 根据用户信息查询用户列表\r\n * 可以传一个对象,或是多个参数\r\n * @param userName\r\n * @param age\r\n * @return\r\n * @throws Exception\r\n */\r\n List<DemoUser> selectList(@Param(\"userName\")String userName, @Param(\"age\")Integer age)throws Exception;\r\n}", "public interface CarrierDAOInterface {\n\n public void insert(Carrier entity);\n\n public void update(Carrier entity);\n\n public Carrier getById(Long id);\n\n public List<Carrier> getAll();\n\n public void delete(Carrier entity);\n\n public void deleteAll();\n\n}", "public interface GenericDao<E, N> {\n \n \n /**\n * Find object based on the V Id.\n * \n * @param id\n * Find object based on the Id.\n * @return T entity.\n */\n E findById(N id);\n\n /**\n * Create a new entity.\n * \n * @param entity\n * Entity to be created.\n */\n void save(E entity);\n\n /**\n * Delete T type.\n * \n * @param entity\n * the object to be deleted from DB.\n */\n void remove(E entity);\n\n /**\n * Update information T entity.\n * \n * @param entity\n * object T entity to be updated.\n * \n * @return updated entity.\n */\n E update(E entity);\n\n \n /**\n * Get Entity from database.\n * \n * @return a list of all the elements in Entity.\n */\n List<E> findAll();\n}", "public interface DAOjdbc\n{\n Boolean admin_log(String u,String p) throws SQLException, ClassNotFoundException;\n Boolean add_topic(String l,String n,String r) throws SQLException, ClassNotFoundException;\n List<Topic> topic(String t) throws SQLException, ClassNotFoundException;\n List<Topic> Select_topic(String i) throws SQLException, ClassNotFoundException;\n Boolean add_tou(String p) throws SQLException, ClassNotFoundException;\n Boolean add_Info(String n,String c,String t,String m) throws SQLException, ClassNotFoundException;\n Boolean add_user(String n,String p,String pw,String t,String m) throws SQLException, ClassNotFoundException;\n User select_user(String u,String p) throws SQLException, ClassNotFoundException;\n}", "public interface DaoInterface {}", "@Resource\npublic interface GenericDao<Domain, PrimaryKey extends Serializable> {\n\n\n // Create, Update\n\n void save(Domain entity) throws Exception;\n\n\n // Read\n\n Domain findByPrimaryKey(PrimaryKey primaryKey);\n\n // Read\n\n Domain get(PrimaryKey primaryKey);\n\n\n // Delete\n\n void delete(Domain entity) throws Exception;\n\n // Delete\n\n void remove(PrimaryKey primaryKey);\n\n List<Domain> findAll(int startIndex, int maxResult);\n\n\n List<Domain> findAll();\n\n\n List<Domain> findByExample(Domain exampleInstance, String[] excludeProperty);\n\n\n public Session getSession();\n\n public void flush();\n}", "public interface PertenenciaDAO extends GenericDao<Pertenencia, Long> {\n\n}", "public interface UserDAO \n{\n\t//declare the methods\n\t\n\t//create the new user\n\t\n\tpublic boolean save(User user);\n\t\n\t//update the existing user\n\t\n\tpublic boolean upadte(User user);\n\t\n\t//get the user details\n\t\n\tpublic User get(String emailID);\n\t\n\t//delete the user\n\t\n\tpublic boolean delete(String emailID);\n\t\n\t//to get all the users\n\tpublic List<User> list();\n\t\n\t//validate weather the credentials are correct or not\n\t\n\tpublic User validate(String emailID , String password);\n\t\n\t//we may required more methods .... will discuss\n\t\n\t\n\t\n\t\n\t\n\n}", "public interface UserDao {\n\n\n /**\n * 根据用户名密码查询用户\n * @param userName\n * @param password\n * @return\n */\n User findUser(String userName,String password);\n\n /**\n * 查询用户\n * @param id\n * @return\n */\n User findUserById(Long id);\n\n /**\n * 批量查询用户信息\n */\n Collection<User> findUserByIds(Collection<Long> ids);\n\n List<User> findUsers(Collection<Long> ids);\n\n /**\n * 分页查询用户信息\n * @param page\n * @param size\n * @return\n */\n\n List<User> listUsers(int page,int size);\n\n /**\n * 保存用户并返回主键\n * @param user\n * @return\n */\n Long saveUserReturnKey(User user);\n\n /**\n * 保存用户\n * @param user\n * @return\n */\n int saveUser(User user);\n\n /**\n * 更新用户\n * @param user\n */\n int updateUser(User user);\n\n /**\n * 删除用户\n * @param id\n */\n int deleteUserById(Long id);\n}", "public interface UserActivityDao {\n\n\n /**\n * Finds all userActivity in DB\n * @return List of all activities\n * @throws DataNotFoundException if connection is down, broken or unable to retrieve information for certain reasons\n */\n List<UserActivity> findAllUserActivityInDB() throws DataNotFoundException;\n\n /**\n * Finds UserActivity by userId\n * @param userId - UserActivity userId\n * @return UserActivity by userId\n * @throws DataNotFoundException if connection is down, broken or unable to retrieve information for certain reasons\n */\n UserActivity findUserActivityByUserId(int userId) throws DataNotFoundException;\n /**\n * Finds UserActivity by activityId\n * @param activityId - UserActivity activityId\n * @return UserActivity by activityId\n * @throws DataNotFoundException if connection is down, broken or unable to retrieve information for certain reasons\n */\n UserActivity findUserActivityByActivityId(int activityId) throws DataNotFoundException;\n /**\n * Adds new userActivity to DB\n * @param userActivity - userActivity to add in DB\n * @return true if operation success and false if fails\n */\n boolean addUserActivityToDB(UserActivity userActivity);\n\n /**\n * Updats userActivity in DB\n * @param userActivity - userActivity to update in DB\n * @return true if operation success and false if fails\n */\n boolean updateUserActivityInDB(UserActivity userActivity);\n\n /**\n * Deletes userActivity from DB\n * @param userActivity - UserActivity to delete from DB\n * @return true if operation success and false if fails\n */\n boolean deleteUserActivityFromDB(UserActivity userActivity);\n}", "public interface Dao<T extends Identifiable> {\r\n\t/**\r\n\t * Performs a parameterized read query to the database, expecting a single\r\n\t * result in the form of an object of type T with the specified identifier.\r\n\t * \r\n\t * @param id a object identifier in database\r\n\t * @return a {@link Optional} implementation with object.\r\n\t * @throws DaoException Signals that an database access object exception of some\r\n\t * sort has occurred.\r\n\t */\r\n\tOptional<T> findById(Long id) throws DaoException;\r\n\r\n\t/**\r\n\t * Performs a parameterized read query to a database to find all object type T.\r\n\t *\r\n\t * @return a {@link List} implementation with all finding objects.\r\n\t * @throws DaoException Signals that an database access object exception of some\r\n\t * sort has occurred.\r\n\t */\r\n\tList<T> findAll() throws DaoException;\r\n\r\n\t/**\r\n\t * The method designed for the process of saving a objects in database.\r\n\t *\r\n\t * @param item an object type T that should be saved to the database.\r\n\t * @return created lot identifier in database.\r\n\t * @throws DaoException Signals that an database access object exception of some\r\n\t * sort has occurred.\r\n\t */\r\n\tlong save(T item) throws DaoException;\r\n\r\n\t/**\r\n\t * Using id delete an entity from the database.\r\n\t *\r\n\t * @param id\r\n\t * @throws DaoException\r\n\t */\r\n\tvoid removeById(Long id) throws DaoException;\r\n\r\n}", "public interface BaseDao<T> {\n\n public List<?> doSqlQuery(String sql);\n\n public List<?> doHqlQuery(String hql);\n\n public void add(T t);\n\n public void delete(T t);\n\n public void update(T t);\n\n @SuppressWarnings({ \"rawtypes\" })\n public T getById(String id);\n\n @SuppressWarnings({\"rawtypes\" })\n public T getByColumn(String column, Object value);\n\n @SuppressWarnings({\"rawtypes\" })\n public List<T> getListByColumn(String column, Object value);\n\n @SuppressWarnings({\"rawtypes\" })\n public List<T> getListByColumn(String column, Object value, int page, int size);\n\n @SuppressWarnings({\"rawtypes\" })\n public List<T> getListByColumn(String column, Object value, int page, int size, String ordercolumn, boolean asc);\n\n public List<T> getListByLikeColumn(String column, Object value);\n\n @SuppressWarnings({\"rawtypes\" })\n public List<T> getListByLikeColumn(String column, Object value, int page, int size, String ordercolumn, boolean asc);\n\n @SuppressWarnings({\"rawtypes\"})\n public List<Object> getPropertyList(String column, boolean asc);\n\n @SuppressWarnings({\"rawtypes\"})\n public List<Object> getPropertyListByColumn(String column, String paramColumn, String value, boolean asc);\n\n @SuppressWarnings({ \"rawtypes\" })\n public List<T> getAll();\n\n @SuppressWarnings({ \"rawtypes\" })\n public List<T> getAllByPage(int page,int size);\n\n @SuppressWarnings(\"rawtypes\")\n public int getCounts();\n\n @SuppressWarnings(\"rawtypes\")\n public int getCounts(String columnName, Object value);\n}", "public interface GenericDao<T> {\n\n /**\n * Creates passed entity.\n * @param object entity\n */\n void create(T object);\n\n /**\n * Gets entity by id.\n * @param id id\n * @return entity\n */\n T read(int id);\n\n /**\n * Updates passed entity.\n * @param object entity\n */\n void update(T object);\n\n /**\n * Deletes passed entity.\n * @param object entity\n */\n void delete(T object);\n\n /**\n * Gets total entities count.\n * @return entities count\n */\n int getTotalCount();\n\n /**\n * Gets all entities.\n * @return a list of entities\n */\n List<T> getAll();\n\n /**\n * Gets all entities by specified range.\n * @param firstItemNumber first item number of range (first item has 0 index)\n * @param itemsCount items count of range\n * @param sortBy sort by\n * @param sortTo sort direction\n * @return a list of entities\n */\n List<T> getAllByRange(int firstItemNumber,\n int itemsCount,\n String sortBy,\n String sortTo);\n}", "public interface Dao<T> {\n\n\n T load(Serializable id);\n\n T get(Serializable id);\n\n\n\n void persist(T entity);\n\n void save(T entity);\n void update(T entity);\n /**\n * 查询所有实体数据\n * @return\n */\n List<T> findAll();\n\n /**\n * 求所有数量\n * @return\n */\n int count();\n\n /**\n * 通过HQL查询\n * @param hql hql语句\n * @param params 参数\n * @return\n */\n List<T> findByHql(String hql, Object... params);\n\n /**\n * 通过HQL语句查询,带分页\n * @param hql HQL语句\n * @param pageNo 页号,从1起\n * @param pageSize 页大小\n * @param params 参数\n * @return\n */\n List<T> findByHqlPage(String hql, int pageNo, int pageSize, Object... params) ;\n\n /**\n * 通过Like查询实体\n * @param example 条件\n * @return\n */\n List<T> findByExampleLike(T example);\n List<T> findByExampleLike(T example, String order);\n List<T> findByExampleLike(T example, MatchMode matchMode);\n List<T> findByExampleLike(T example, int pageNo, int pageSize);\n List<T> findByExampleLike(T example, int pageNo, int pageSize, String order);\n\n long countByExampleLike(T example);\n\n List<T> findByExampleEq(T example);\n List<T> findByExampleEq(T example, String order);\n List<T> findByExampleEq(T example, MatchMode matchMode);\n List<T> findByExampleEq(T example, int pageNo, int pageSize);\n List<T> findByExampleEq(T example, int pageNo, int pageSize, String order);\n\n long countByExampleEq(T example);\n\n\n\n\n List<T> findByExampleNeProperty(T example, int pageNo, int pageSize, Map<String, Object> neqProperty, Order order);\n\n List<T> findByExampleNeProperty(T example, int pageNo, int pageSize, Map<String, Object> neqProperty);\n\n long countByExampleNeProperty(T example, Map<String, Object> neqProperty);\n\n List<T> findByExampleLike(T example, int pageNo, int pageSize, Order order);\n\n\n\n void delete(Serializable id);\n\n boolean has(T example);\n\n void flush();\n int execUpdateSQL(String sql);\n}", "public interface DBCRUD<E extends DomainEntity> extends DBDAO<E> {\n\n /**\n * TODO comment<br>\n * \n * @param connection\n * @param entity\n * @throws DAOException\n */\n public void create(Connection connection, E entity) throws DAOException;\n\n \n \n /**\n * TODO comment<br>\n * \n * @param connection\n * @param entity\n * @throws DAOException\n */\n public void update(Connection connection, E entity) throws DAOException;\n\n \n \n /**\n * TODO comment<br>\n * \n * @param connection\n * @param entity\n * @throws DAOException\n */\n public void remove(Connection connection, E entity) throws DAOException;\n\n \n \n /**\n * TODO comment<br>\n * \n * @param connection\n * @param entity\n * @return\n * @throws DAOException\n */\n public E retrieve(Connection connection, E entity) throws DAOException;\n}", "public interface UserDao {\n public void find() ;\n public void delete() ;\n public void save() ;\n public void update() ;\n}" ]
[ "0.78923637", "0.7806751", "0.7774042", "0.7753364", "0.7690295", "0.7649631", "0.764923", "0.7637426", "0.7605073", "0.7599891", "0.7591986", "0.75863856", "0.75629085", "0.7561479", "0.75594497", "0.75364494", "0.7524291", "0.75170326", "0.7509663", "0.7485309", "0.74776596", "0.7476408", "0.74670863", "0.74616927", "0.74595505", "0.74532086", "0.745254", "0.7445205", "0.7443842", "0.74382544", "0.7433477", "0.7432703", "0.7427593", "0.74200195", "0.74156255", "0.7412814", "0.7412277", "0.7411905", "0.74062407", "0.7406074", "0.7402601", "0.739795", "0.7392729", "0.7392435", "0.73889756", "0.73623735", "0.73577666", "0.7355334", "0.73514026", "0.7348541", "0.73485404", "0.7347588", "0.73457825", "0.73414", "0.7340195", "0.73386705", "0.73340017", "0.7330539", "0.7327514", "0.73274076", "0.7326166", "0.73196423", "0.7318571", "0.7317782", "0.73132443", "0.7312882", "0.7310057", "0.73056453", "0.7304104", "0.7303525", "0.7302514", "0.73010224", "0.7299275", "0.72933316", "0.7293108", "0.7291625", "0.7285846", "0.7284745", "0.72822714", "0.72818613", "0.7277794", "0.7273649", "0.7272479", "0.7270654", "0.72669786", "0.7262663", "0.7258726", "0.72531307", "0.7252988", "0.72485226", "0.7248149", "0.7246491", "0.7246122", "0.72453797", "0.7242973", "0.7240126", "0.72383374", "0.72354", "0.7229902", "0.722771" ]
0.7884341
1
Create a new element.
public void createExempleDirect(ExempleDirect exempleDirect) throws DaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract M createNewElement();", "Element createElement();", "public void newElement() {\r\n }", "Object create(Element element) throws IOException, SAXException, ParserConfigurationException;", "@FactoryFunc\r\n\t@Function Element createElement(String tagName);", "ObjectElement createObjectElement();", "DomainElement createDomainElement();", "E createDefaultElement();", "public org.ccsds.moims.mo.mal.structures.Element createElement()\n {\n return new BasicUpdate();\n }", "DataElement createDataElement();", "public View create(Element elem) {\n return null;\n }", "@Override\n\tpublic Element newInstance() {\n\t\treturn null;\n\t}", "Form addElement(Element element);", "ElementDefinition createElementDefinition();", "@Override\r\n\tpublic ElectricityElement createElement() {\r\n\t\treturn new DefaultElectricityElement(\r\n\t\t\t\tgetTemplateName(), \r\n\t\t\t\tgetName(), \r\n\t\t\t\tgetOrigin(),\r\n\t\t\t\tgetDestination(),\r\n\t\t\t\tgetLifecycleModel().createLifecycleModel(), \r\n\t\t\t\tgetMaxElectricityProduction(), \r\n\t\t\t\tgetInitialElectricityProduction(), \r\n\t\t\t\tgetPetroleumIntensityOfElectricityProduction(),\r\n\t\t\t\tgetWaterIntensityOfElectricityProduction(), \r\n\t\t\t\tgetVariableOperationsCostOfElectricityProduction(),\r\n\t\t\t\tgetDistributionEfficiency(), \r\n\t\t\t\tgetMaxElectricityInput(), \r\n\t\t\t\tgetInitialElectricityInput(),\r\n\t\t\t\tgetVariableOperationsCostOfElectricityDistribution()\r\n\t\t\t);\r\n\t}", "BElement createBElement();", "@Override\n public void newActiveElement(String elementName, Point2D.Double location){\n Element newElement = getLevel().getLevelElements().get(elementName).createElementCopy(location);\n getActiveElements().put(newElement.getId(),newElement);\n addToFrontEndCommands(new CreateCommand(newElement.getId(),newElement.getImage(),newElement.getElementType(),newElement.getLocation(),newElement.getHeading(), 1, newElement.getRadius()));\n }", "public PathElementIF createElement(String name);", "HTMLElement createHTMLElement();", "public android.renderscript.Element create() { throw new RuntimeException(\"Stub!\"); }", "void addElement(FormElement elt);", "Element() {\n\t}", "public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}", "public abstract Object create(ElementMapping elementMapping, ReadContext context);", "RESTElement createRESTElement();", "protected R create(final R element) throws MessageLabelException {\n return getService().create(element);\n }", "public void newElement() {\n Location = null;\n Name = null;\n MyFont = FontList.FONT_LABEL;\n }", "public void create(T e);", "public View create(Element elem, int p0, int p1) {\n return null;\n }", "public void create(){}", "public android.renderscript.Element.Builder add(android.renderscript.Element element, java.lang.String name) { throw new RuntimeException(\"Stub!\"); }", "protected XMLElement createAnotherElement() {\n return new XMLElement(this.conversionTable,\n this.skipLeadingWhitespace,\n false,\n this.ignoreCase);\n }", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "public interface IElementService {\n\n /**\n * Create new element\n * @param name\n */\n public IElement createNewElement(String name);\n}", "@Override\n\tpublic boolean create(Eleve o) {\n\t\tmap.put(o.getId(),o);\n\t\treturn true;\n\t}", "public void create() {\n\t\t\n\t}", "public Element createElement(String localName, String text) {\n Element element = createElement(localName);\n Text textNode = getDocument().createTextNode(text);\n element.appendChild(textNode);\n\n return element;\n }", "private OMElement createElement(String str) throws XMLStreamException {\n InputStream in = new ByteArrayInputStream(str.getBytes());\n return new StAXOMBuilder(in).getDocumentElement();\n }", "@Override\n\tpublic void create() {\n\n\t}", "@Test\n\tpublic void addElement() {\n\t\tXMLTagParser.addNewElement(\"Person\");\n\t\tassertEquals(XMLTagParser.containsElement(\"Person\"), true);\n\t}", "ViewElement createViewElement();", "private BoardElement createBoardElement(Element eElement) {\r\n\t\treturn new BoardElement(\r\n\t\t\teElement.getAttribute(\"id\")\r\n\t\t\t,new Point(Integer.parseInt(eElement.getElementsByTagName(\"topLeftX\").item(0).getTextContent())\r\n\t\t\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"topLeftY\").item(0).getTextContent()))\r\n\t\t\t,new Point(Integer.parseInt(eElement.getElementsByTagName(\"bottomRightX\").item(0).getTextContent())\r\n\t\t\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"bottomRightY\").item(0).getTextContent()))\r\n\t\t);\r\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "@Override\n\tpublic void create () {\n\n\t}", "XomNode appendElement(Element element) throws XmlBuilderException;", "public Element(String name) {\n\t\tsetName(name);\n\t}", "public Element createElement(String tagName, String nodeValue) {\r\n\t\tElement element = doc.createElement(tagName);\r\n\t\t\r\n\t\tif (nodeValue == null) {\r\n\t\t\treturn element;\r\n\t\t}\r\n\t\telse {\r\n\t\t\telement.setNodeValue(nodeValue);\r\n\t\t\treturn element;\r\n\t\t}\r\n\t}", "public Element addElement(Element rootElement,String type,Document document){\n\t\t// define school elements \n\t\tElement node = document.createElement(type); \n\t\trootElement.appendChild(node);\n\t\treturn node;\n\t}", "ElementText createElementText();", "ElementImage createElementImage();", "public WebElement() {}", "public Element addChild(String name) {\n return new Element((org.w3c.dom.Element)element.appendChild(element.getOwnerDocument().createElement(name)));\n }", "private static Element createNode(Document doc, Element element, String tagName, String value) {\n\t\tif (value == null || \"\".equals(value)) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tif (EMPTY_STRING.equals(value)) {\n\t\t\t\tvalue = \"\";\n\t\t\t}\n\t\t\tElement node = doc.createElement(tagName);\n\t\t\telement.appendChild(node);\n\t\t\tnode.appendChild(doc.createTextNode(value));\n\t\t\treturn node;\n\t\t}\n\t}", "@Override\n\tprotected Node newNode() {\n\t\treturn new SVGOMFETurbulenceElement();\n\t}", "public GenericElement() {\n\t}", "@Test\n public void create() throws ParserConfigurationException, IOException, SAXException {\n Document document = createDocument();\n Document documentExpected = readDocument(\"createExpected.xml\");\n XModifier modifier = new XModifier(document);\n modifier.setNamespace(\"ns\", \"http://localhost\");\n // create an empty element\n modifier.addModify(\"/ns:root/ns:element1\");\n // create an element with attribute\n modifier.addModify(\"/ns:root/ns:element2[@attr=1]\");\n // append an new element to existing element1\n modifier.addModify(\"/ns:root/ns:element1/ns:element11\");\n // create an element with text\n modifier.addModify(\"/ns:root/ns:element3\", \"TEXT\");\n modifier.modify();\n assertXmlEquals(documentExpected, document);\n }", "public XmlElement() {\n }", "void add(Object element);", "public Element createElement(String localName) {\n return getDocument().createElementNS(getNamespaceURI(),\n getQualifiedName(getPrefix(), localName));\n }", "org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement addNewBridgeElement();", "OurIfcElement createOurIfcElement();", "public Element createEmptyElement(EmptyTask task) {\n\t\tElement empty = this.document.createElement(\"empty\");\n\t\t\n//\t\tBPELUtil.setStandardAttributes(empty, task);\n\t\t\n//\t\treturn createScopeForAttachedHandlers(empty, task);\n\t\treturn null;\n\t\t\n\t}", "void create(E entity);", "@Override\r\n\tpublic void create() {\n\r\n\t}", "private IExpressionElement createExpression() throws RodinDBException {\n\t\tfinal IMachineRoot mch = createMachine(\"mch\");\n\t\treturn mch.createChild(IVariant.ELEMENT_TYPE, null, null);\n\t}", "@Test\n\tpublic void testInsertSingleElement() throws Exception {\n\t\tMap<String, Object> elementProperties = new HashMap<>();\n\t\telementProperties.put(\"val1\", \"20\");\n\t\telementProperties.put(\"val2\", 20);\n;\n\t\tElementBoundary newElement = new ElementBoundary();\n\t\tnewElement.setKey(new Key(\"3\", \"smartspace\"));\n\t\tnewElement.setElementType(\"type\");\n\t\tnewElement.setName(\"name\");\n\t\tnewElement.setExpired(false);\n\t\tnewElement.setCreator(new UserForBoundary(this.userEntity.getUserEmail(), \"bla\"));\n\t\tnewElement.setLatlng(new LocationForBoundary(22, 23.11));\n\t\tnewElement.setElementProperties(elementProperties);\n\t\tnewElement.setCreated(new Date());\n\n\t\tElementBoundary[] elements = { newElement };\n\t\tthis.restTemplate.postForObject(this.baseUrl, elements,\n\t\t\t\tElementBoundary[].class, this.userEntity.getUserSmartspace(),\n\t\t\t\tthis.userEntity.getUserEmail());\n\t\t// THEN the database contains the new element\n\t\tassertThat(this.elementDao.readAll()).hasSize(1);\n\t}", "public void addElement(Object obj);", "@Override\n protected Node newNode() {\n return new WebXStyleElementImpl();\n }", "public Node newChild(String name) {\n assert name != null;\n Node n = new Node(name);\n this.e.appendChild(n.e);\n return n;\n }", "public XmlProtoElementBuilder addChildElement(XmlProtoElementBuilder newElement) {\n element.addChild(XmlNode.newBuilder().setElement(newElement.getProto()));\n return this;\n }", "public IPrivateTestCompView.IContextElement createAndAddContextElement() {\r\n return (IPrivateTestCompView.IContextElement)createAndAddElement();\r\n }", "public String createObjectElement(String indent, String elementName, String id, String name) {\r\n StringBuilder sbuf = new StringBuilder(indent);\r\n sbuf.append(\"<\\\" id=\\\"\").append(id).append(\"\\\" \");\r\n sbuf.append(\"name=\\\"\").append(name).append(\"\\\" />\");\r\n return sbuf.toString();\r\n }", "private final void createAndAddNode(String name) {\n\t}", "Node(String e){\r\n this.element = e;\r\n }", "IFMLNamedElement createIFMLNamedElement();", "protected Element el(String tag){\n\t\treturn doc.createElement(tag);\n\t}", "@NotNull\n public PsiElement createElement(ASTNode node) {\n return new BytemanPsiElementImpl(node);\n }", "public abstract void add(String element) throws RemoteException;", "void defineElement(String elementName, Map<String, String> properties) throws IllegalArgumentException;", "public void addElement(final FeatureElement newElement)\n\t{\n\t\tfeatureElements.add(newElement);\n\t}", "void addModelElement(EObject modelElement);", "public void clickCreate() {\n\t\tbtnCreate.click();\n\t}", "int placeElement(String elementName, Point2D startCoordinates);", "public XMLElement() {\n this(new Properties(), false, true, true);\n }", "Attribute createAttribute();", "Attribute createAttribute();", "public android.renderscript.Element.Builder add(android.renderscript.Element element, java.lang.String name, int arraySize) { throw new RuntimeException(\"Stub!\"); }", "Tag createTag();", "public static Element newRootElement()\n {\n Element element = null;\n \n try\n {\n javax.xml.parsers.DocumentBuilderFactory factory =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n \n javax.xml.parsers.DocumentBuilder builder =\n factory.newDocumentBuilder();\n \n Document document = builder.newDocument();\n Element holder = document.createElement(\"root\");\n document.appendChild(holder);\n element = document.getDocumentElement();\n }\n catch(Exception ex) { ex.printStackTrace(); }\n \n return element;\n }", "public AbstractElement() {\n }", "protected String generateProcessNewElement(Element element, String parentName, String targetName) {\n\t\tString elementNameUncapped = ModelLayerHelper.getElementNameUncapped(element);\n\t\t//String parentNameUncapped = NameUtil.uncapName(parentName);\n\t\t//String targetNameUncapped = NameUtil.uncapName(targetName);\n\t\t\n\t\tBuf buf = new Buf();\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"<!--\");\n\t\tbuf.putLine4(\" ** processNew\"+targetName+\"(event)\");\n\t\tbuf.putLine4(\" ** Creates new \"+targetName+\" record. Goes to the \"+targetName+\" Wizard page.\");\n\t\tbuf.putLine4(\" -->\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"function processNew\"+targetName+\"(event) {\");\n\t\tbuf.putLine4(\"\ttry {\");\n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.target);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.currentTarget);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(#{rich:element('\"+elementNameUncapped+\"Tree')});\");\n\t\tif (parentName != null) {\n\t\t\tbuf.putLine4(\"\t\tif (\"+elementNameUncapped+\"TreeState.nodeLabel != null) {\");\n\t\t\tbuf.putLine4(\"\t\t\tvar label = \"+elementNameUncapped+\"TreeState.nodeLabel;\");\n\t\t\tbuf.putLine4(\"\t\t\tshowProgress('Nam', '\"+targetName+\" Records'. 'Creating new \"+targetName+\" for \"+parentName+\" \\\\\\\"' + label + '\\\\\\\"...')\");\n\t\t\tbuf.putLine4(\"\t\t} else showProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t} else {\n\t\t\tbuf.putLine4(\"\t\tshowProgress('Nam', '\"+targetName+\" Records', 'Creating new \"+targetName+\"...');\");\n\t\t\t//buf.putLine4(\"\tshowProgress('Nam', 'New \"+elementClassName+\"', 'Creating new \"+elementClassName+\"...')\");\n\t\t}\n\t\tbuf.putLine4(\"\t\tnew\"+targetName+\"(event);\");\n\t\tbuf.putLine4(\"\t} catch(e) {\");\n\t\tbuf.putLine4(\"\t\talert(e);\");\n\t\tbuf.putLine4(\"\t}\");\n\t\tbuf.putLine4(\"}\");\n\t\treturn buf.get();\n\t}", "SSElements createSSElements();", "public void addElement(TLProperty element);", "For createFor();", "public abstract QueueElement newQueueElement (Document doc);", "public Element createElement(String namespaceURI, String qualifiedName,\n Attributes attributes, Element parent);", "BElementStructure createBElementStructure();", "private void creatingElements() {\n\t\ttf1 = new JTextField(20);\n\t\ttf2 = new JTextField(20);\n\t\ttf3 = new JTextField(20);\n\t\tJButton btn = new JButton(\"Add\");\n\t\tbtn.addActionListener(control);\n\t\tbtn.setActionCommand(\"add\");\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.add(tf1);\n\t\tpanel.add(tf2);\n\t\tpanel.add(btn);\n\t\tpanel.add(tf3);\n\t\t\n\t\tthis.add(panel);\n\t\t\n\t\tthis.validate();\n\t\tthis.repaint();\t\t\n\t\t\n\t}", "TNode createTNode();", "void create(T t);", "void create(Order order);" ]
[ "0.8053003", "0.78427213", "0.75981694", "0.73868257", "0.7091249", "0.7008008", "0.6912743", "0.67465717", "0.6706063", "0.66882694", "0.6667334", "0.65771097", "0.6570176", "0.6567181", "0.65541786", "0.6552259", "0.6517582", "0.64381623", "0.64377254", "0.63676035", "0.63330364", "0.6318093", "0.631755", "0.6284632", "0.6213297", "0.6190116", "0.61589605", "0.61585116", "0.60968167", "0.6088703", "0.6063915", "0.60383517", "0.60379535", "0.60371256", "0.60343736", "0.6028505", "0.60119367", "0.60001165", "0.59921604", "0.598231", "0.5969843", "0.5967117", "0.5957592", "0.59346956", "0.59223026", "0.5921216", "0.5915168", "0.58940125", "0.5888432", "0.5884024", "0.5863939", "0.5861096", "0.5855774", "0.5809299", "0.58014154", "0.57949823", "0.5794365", "0.5793093", "0.57878476", "0.57729095", "0.5766395", "0.57553166", "0.5753638", "0.5749332", "0.57456315", "0.5730122", "0.57237315", "0.5718483", "0.57140696", "0.5693996", "0.5677074", "0.56650686", "0.56625", "0.5650618", "0.56456435", "0.56431204", "0.5636398", "0.56303084", "0.5626306", "0.56215894", "0.55814594", "0.5563973", "0.5562497", "0.5562124", "0.5554813", "0.5554813", "0.55482787", "0.55471647", "0.553858", "0.55343914", "0.553364", "0.550654", "0.55038744", "0.5502146", "0.5488826", "0.54883105", "0.54804313", "0.54778045", "0.5474217", "0.54741275", "0.5472506" ]
0.0
-1
Update an existing element.
public void updateExempleDirect(ExempleDirect exempleDirect) throws DaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void update(Epreuve element) throws DaoException {\n\t\t\n\t}", "@Override\r\n\tpublic void updateElement() {\n\r\n\t}", "@Override\n public T update(T element) {\n return manager.merge(element);\n }", "protected R update(final R element) throws MessageLabelException {\n return getService().update(element);\n }", "@Override\n\tpublic boolean update(Eleve o) {\n\t\tmap.replace(o.getId(), o);\n\t\treturn true;\n\t}", "E update(E entiry);", "void updateElementDefinition(String elementName, Map<String, String> propertiesToUpdate, boolean retroactive)\n\t\t\tthrows IllegalArgumentException;", "public void update(E entity);", "public boolean update(int index, T element) {\n boolean isUpdating = false;\n if (index >= 0 && index < this.container.length) {\n this.container[index] = element;\n isUpdating = true;\n }\n return isUpdating;\n }", "@Override\r\n\tpublic void update(Notification notification, EObject element) {\n\t\tsuper.update(notification, element);\r\n\t}", "public void setElement(String newElem) { element = newElem;}", "void updateElementProperties(int elementId, Map<String, String> propertiesToUpdate);", "E update(E entity);", "E update(E entity);", "public void setElement(T newvalue);", "public void update(E element) {\n // TODO: YOUR CODE HERE\n if (!contains(element)) {\n throw new NoSuchElementException();\n }\n int indexOfElement = backwards.get(element);\n if(getElement(indexOfElement).equals(element)){\n setElement(indexOfElement, element);\n if (getElement(getParentOf(indexOfElement)) != null &&\n getElement(indexOfElement).compareTo(getElement(getParentOf(indexOfElement))) < 0) { //if current element is greater than its parent\n bubbleUp(indexOfElement);\n }\n if (getElement(getLeftOf(indexOfElement)) != null &&\n getElement(indexOfElement).compareTo(getElement(getLeftOf(indexOfElement))) > 0) {\n bubbleDown(indexOfElement);\n }\n if (getElement(getRightOf(indexOfElement)) != null &&\n getElement(indexOfElement).compareTo(getElement(getRightOf(indexOfElement))) > 0) {\n bubbleDown(indexOfElement);\n }\n }\n }", "public void update(){}", "public void update(){}", "@Override\n\tpublic void setElement(Element element) {\n\t\t\n\t}", "@Override\n\tpublic void update(Object entidade) {\n\t\t\n\t}", "void updateItem(E itemElementView);", "@Override\r\n\tprotected void setValue(Object element, Object value) {\r\n\t\t// update the whole table\r\n\t\tgetViewer().refresh();\r\n\t}", "@Override\n\tpublic void updatePais(Pais elemento) {\n\t\tgetSession().update(elemento);\n\t\t\n\t}", "E update(ID id, E entity, RequestContext context);", "public void setElement(Element element) {\n this.element = element;\n }", "public void setElement(WebElement element) {\n\t\t\r\n\t}", "Item update(Item item);", "protected void loadElement(final R element) {\n boolean found = false;\n for (final DataTableRow<R> row : getModel().getRows()) {\n if (row.getElement().equals(element)) {\n // updated element.\n row.setElement(element);\n found = true;\n }\n }\n if (!found) {\n // new created element.\n getModel().getRows().add(getModel().createRow(element));\n }\n }", "public boolean update(New object);", "E update(E entity) throws ValidationException;", "public void updateEntity();", "void set(int index, Object element);", "public Object set(int index, Object element) {\r\n Entry e = entry(index);\r\n Object oldVal = e.element;\r\n e.element = element;\r\n return oldVal;\r\n }", "public void updateByObject()\r\n\t{\n\t}", "public void put(E element);", "public void update(Object obj) throws HibException;", "@Override\n\tpublic PI update(PIDTO updated) throws NotFoundException {\n\t\treturn null;\n\t}", "public void updateEmp(Emp emp) {\n\t\t\n\t}", "void update(CE entity);", "@Override\n\tpublic E set(int index, E element) {\n\t\tNode<E> node = node(index);\n\t\tE old = node.elementE;\n\t\tnode.elementE = element;\n\t\treturn old;\n\t}", "void update(T objectToUpdate);", "public Offer updateOffer(Long existingOfferId, double updatedOfferQuantity) {\n\n return offerRepository.findById(existingOfferId)\n .map(offer -> {\n offer.setQuantity(updatedOfferQuantity);\n return offerRepository.save(offer);\n }).orElseThrow(() -> new NotFoundException(\"Could not find existing offer\"));\n\n }", "public void update(K id, Update<P> update);", "public void update(T ob) throws ToDoListException;", "public boolean update(Product product);", "public void setElement(E element) {\n\t\t\tthis.element = element;\n\t\t}", "public void setElement(E element)\n\t{\n\t\tthis.data = element;\n\t}", "public void put(Object element) {\r\n\t\tObject[] newElements = new Object[elements.length + 1];\r\n\t\tSystem.arraycopy(elements, 0, newElements, 0, elements.length);\r\n\t\tnewElements[elements.length] = element;\r\n\t\telements = newElements;\r\n\t}", "public void update(Product product) {\n\n\t}", "@Override\n\tpublic void update(Object o) {\n\n\t}", "@Override\n\tpublic void update(Object o) {\n\n\t}", "public void setValue(T element) {\n\t\t\n\t}", "public void update() {}", "public void update(String name) {\n\n\t}", "default E update(ID id, E entity) {\n return update(id, entity, null);\n }", "public @Override E set(int index, E element) {\n \tNode n = getNode(index);\n \tE result = n.data;\n \tn.data = element;\n \treturn result;\n }", "@Override\r\n\tpublic void update(Object object) {\n\t\t\r\n\t}", "void updateOfProductById(long id);", "T update(T entity);", "T update(T entity);", "public <T> T update(T entity);", "public void setElement (T element) {\r\n\t\t\r\n\t\tthis.element = element;\r\n\t\r\n\t}", "Product update(Product product, long id);", "public boolean update(Object obj) throws Exception;", "public void update(E model) {\n\t\tgetHibernateTemplate().update(model);\r\n\t}", "public void update(BoardItemVersion object) {\n\n\t}", "@Test\r\n\tpublic void testUpdate() {\r\n\t\tList<E> entities = dao.findAll();\r\n\t\tE updated = supplyUpdated(entities.get(0));\r\n\t\tdao.update(entities.get(0));\r\n\t\tentities = dao.findAll();\r\n\t\tassertEquals(updated, entities.get(0));\r\n\t}", "void update( ExperimentDTO item );", "void update(T entity);", "void update(T entity);", "@Override\n\tpublic void update(Unidade obj) {\n\n\t}", "@Override\n public void update(int i, E value) {\n if(!hasWork()) {\n throw new NoSuchElementException(\"The worklist is empty\");\n }\n // if i is less than 0 or greater than size of worklist, throw exception\n if(i < 0 || i >= array.length) {\n throw new IndexOutOfBoundsException(\"This index does not exist\");\n }\n // update value\n array[i] = value;\n }", "public static void updatePart(Part updated){\r\n int updateID = updated.getPartID();\r\n Part.partsMap.put(updateID,updated);\r\n }", "public void setElement(T element) {\n\t\tthis.element = element;\n\t}", "@PUT\n @Path(\"/update\")\n public void put() {\n System.out.println(\"PUT invoked\");\n }", "public void set (Object element)\n {\n if(!isAfterNext){\n throw new IllegalStateException(); \n }\n position.data = element;\n \n \n }", "@Override\n\tpublic void update(Article article) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void update(T obj) throws Exception {\n\t\t\n\t}", "void update(T entity) throws Exception;", "public void setElement(Element Element) {\n\t\telement = Element;\n\t}", "public void setElement(T elem)\n {\n\n element = elem;\n }", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\tpublic void update() {\n\t\tobj.update();\n\t}", "public void setElement(MatrixElement pNewElement) {\r\n\t\tmElement = pNewElement;\r\n\t}", "void setElement(int row, String field, Object value);", "void update(Product product) throws IllegalArgumentException;", "public void setElement(Object e) {\n element = e;\n }", "void update(Order order);", "public synchronized void setElementAt(WModelObject object, int index)\n\t{\n\t\tm_elements.setElementAt(object, index);\n\t}", "void updateIfNeeded()\n throws Exception;", "public double updateElement(T element, double numSamples, double count,\n\t\t\tdouble stepSize) {\n\t\tdouble oldValue = itemProbs_.get(element);\n\t\t// Calculate the new ratio.\n\t\tdouble observedProb = Math.min(count / numSamples, 1);\n\t\t// Update the value\n\t\tdouble newValue = stepSize * observedProb + (1 - stepSize) * oldValue;\n\t\tif (newValue <= MIN_PROB) {\n\t\t\tif (oldValue != 0)\n\t\t\t\telementArray_ = null;\n\t\t\tnewValue = 0;\n\t\t}\n\t\tif (newValue >= 1 - MIN_PROB)\n\t\t\tnewValue = 1;\n\t\t// Set the new value.\n\t\titemProbs_.put(element, newValue);\n\t\trebuildProbs_ |= oldValue != newValue;\n\t\tklSize_ = 0;\n\n\t\t// TODO Note the '2' coefficient. The maximum (normalised) divergence\n\t\t// for a distribution approaches the limit of 2.\n\t\treturn Math.abs(newValue - oldValue);\n\t}", "Form setElementValue(String elementId, String value);", "@Override\r\n\tpublic void update(Person p) \r\n\t{\n\t\t\r\n\t}", "public void testUpdateProduct() {\n\t\tProduct product=productDao.selectProducts(33);\n\t\tproduct.setPrice(100.0);\n\t\tproduct.setQuantity(1);\n\t\tproductDao.updateProduct(product);//product has updated price and update quantity\n\t\tassertTrue(product.getPrice()==100.0);\n\t\tassertTrue(product.getQuantity()==1);\n\t}", "public void update(Ejemplar ej);", "public Object set(int index, Object element) {\n\t\tif (index < 0 || index >= this.size) {\n\t\t\tthrow new IndexOutOfBoundsException(\"the index [\" + index\n\t\t\t\t\t+ \"] is not valid for this list with the size [\"\n\t\t\t\t\t+ this.size + \"].\");\n\t\t}\n\t\tObject replaced = this.storedObjects[index];\n\t\tthis.storedObjects[index] = element;\n\n\t\treturn replaced;\n\t}", "@Override\n\t\tpublic boolean update(Carrera entity, int id) {\n\t\t\t\treturn false;\n\t\t}", "public void update(){\n\t\tresponse = buildHtml(new ArrayList<HtmlElement>(elements));\n\t}", "public void update(Employee e) {\n\t\t\r\n\t}" ]
[ "0.7460236", "0.7226951", "0.67812985", "0.651075", "0.6472128", "0.63614213", "0.63132155", "0.63025045", "0.62808275", "0.6259479", "0.6206475", "0.6185869", "0.61549133", "0.61549133", "0.60811514", "0.60794073", "0.6068435", "0.6068435", "0.6033898", "0.6032964", "0.59823006", "0.5921744", "0.5879387", "0.58461326", "0.5831135", "0.58291626", "0.58120286", "0.57965076", "0.57743806", "0.5758962", "0.57454914", "0.57277125", "0.5723718", "0.5718922", "0.57162607", "0.57112324", "0.5708392", "0.5672073", "0.56510216", "0.5645546", "0.5636644", "0.5634027", "0.5615208", "0.5606666", "0.56035376", "0.559931", "0.5592141", "0.5585807", "0.5562477", "0.5557127", "0.5557127", "0.55505544", "0.55495614", "0.5545473", "0.5539161", "0.55289215", "0.5528555", "0.55262613", "0.55234176", "0.55234176", "0.5519023", "0.55065423", "0.5502866", "0.5491644", "0.5483588", "0.54833233", "0.5478014", "0.54736304", "0.546855", "0.546855", "0.54618955", "0.54598546", "0.54580504", "0.54573506", "0.54557896", "0.54515517", "0.54496163", "0.5443711", "0.5442694", "0.5431771", "0.5431705", "0.5430263", "0.5430263", "0.5430263", "0.54298437", "0.5417239", "0.5411645", "0.54005516", "0.5394466", "0.5393238", "0.53913933", "0.5376935", "0.53747636", "0.5361599", "0.5353684", "0.53523374", "0.5348484", "0.5345487", "0.5342828", "0.53418887", "0.53325284" ]
0.0
-1
Delete an element. Only id can be used to find which element must be deleted.
public void deleteExempleDirect(ExempleDirect exempleDirect) throws DaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteElement(int elementId);", "public void delete(T element);", "boolean remove(String elementId);", "E remove(Id id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "@Override\r\n\tpublic void delete(T element) {\n\r\n\t}", "private static void deleteElement(ProjectElement element) {\r\n \t\tProject projectInternal = element.getProjectInternal();\r\n projectInternal.getElementsInternal().remove(element);\r\n \r\n deleteResource(element); \r\n \r\n projectInternal.eResource().setModified(true);\r\n \t}", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteModelElement(EObject modelElement);", "public void delete(int id);", "public void deleteById(String id);", "void delete(String id);", "void delete(String id);", "void delete(String id);", "void delete(String id);", "void delete(String id);", "void delete(String id);", "public void delete(Integer id);", "public void delete(Integer id);", "public void delete(Integer id);", "private static void deleteElement(RubyProjectElement element) {\r\n \t\tRubyProject projectInternal = element.getRubyProjectInternal();\r\n \t\tprojectInternal.getRubyElementsInternal().remove(element);\r\n \r\n deleteResource(element); \r\n \t}", "public boolean delete(String id);", "public boolean delete(String id);", "void deleteById(final String id);", "void deleteById(int id);", "@Override\n\tpublic void delete(String id) throws Exception {\n\n\t}", "protected void delete(final R element) throws MessageLabelException {\n getService().delete(element);\n }", "public boolean deleteById(Object id);", "public boolean deleteById(Object id);", "@Override\r\n\tpublic void delete(String id) {\n\t\t\r\n\t}", "void delete( Integer id );", "public void delete(K id);", "public abstract void removeElement(int id) throws PositionEX;", "void delete(ID id);", "Form removeElement(String id);", "void delete(Integer id);", "void delete(Integer id);", "public void delete(int id) {\n\n\t}", "@Override\n\tpublic void delete(String id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(String id) {\n\t\t\n\t}", "@Override\r\n\tpublic void delete(int id) {\n\t\t\r\n\t}", "void deleteById(Integer id);", "void deleteById(Integer id);", "@Override\n\tpublic void delete(String id) {\n\n\t}", "public void delete(Integer id) {\n\r\n\t}", "public void deleteById(int theId);", "@Override\n\tpublic void deleteById(String id) throws Exception {\n\t\t\n\t}", "boolean delete(ID id);", "@Override\r\n\tpublic Result delete(int id) {\n\t\treturn null;\r\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}", "boolean delete(final ID id);", "@Override\r\n\tpublic void delete(String id) {\n\r\n\t}", "@Override\n\tpublic void delete(Integer id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(int id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(int id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(int id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(int id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(int id) {\n\t}", "public void delete(int id) throws Exception {\n\n\t}", "boolean deleteById(int id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "void delete(UUID id);", "void delete(UUID id);", "void delete(UUID id);", "void delete(UUID id);", "@Override\n\tpublic void delete(Integer id) {\n\n\t}", "@Override\n\tpublic void deleteById(String id) {\n\t\t\n\t}", "void delete(final Long id);", "@Override\n\tpublic void deleteById(int id) {\n\t\t\n\t}", "Integer delete(int id);", "void delete( Long id );", "void delete(int id) throws Exception;", "@Override\r\n\tpublic void delete(Integer id) {\n\r\n\t}", "@Override\n\tpublic void deletebyid(Integer id) {\n\t\t\n\t}", "@Override\n public void delete(int id) {\n }", "void deleteById(long id);", "@Override\r\n\tpublic void delete(Long id) {\n\t\t\r\n\t}", "public void deleteById(Integer id) {\n\n\t}", "@Override\n\tpublic void delete(Long id) {\n\t}", "public void delete(Long id) {\n\r\n\t}", "void remove(String id);", "void remove(String id);", "void remove(String id);", "@Override\n public void delete(Long id) throws Exception {\n\n }" ]
[ "0.8574134", "0.77933943", "0.7504203", "0.74043614", "0.7288808", "0.7288808", "0.7288808", "0.7288808", "0.7288808", "0.72701895", "0.72532195", "0.71681017", "0.71681017", "0.71681017", "0.71681017", "0.71681017", "0.71681017", "0.71681017", "0.71681017", "0.71681017", "0.71681017", "0.71549726", "0.71521604", "0.7145628", "0.71381646", "0.71381646", "0.71381646", "0.71381646", "0.71381646", "0.71381646", "0.7101286", "0.7101286", "0.7101286", "0.7069046", "0.7055599", "0.7055599", "0.70313704", "0.7003732", "0.6980729", "0.6966214", "0.6962574", "0.6962574", "0.6961525", "0.69589955", "0.69492203", "0.6940866", "0.69391024", "0.69314337", "0.69305754", "0.69305754", "0.6925367", "0.69154596", "0.69154596", "0.6905704", "0.69021404", "0.69021404", "0.6880185", "0.6875346", "0.6872063", "0.6864721", "0.6860767", "0.6849446", "0.6843306", "0.68423694", "0.68375874", "0.6833077", "0.6825537", "0.6825537", "0.6825537", "0.6825537", "0.6821136", "0.68161416", "0.68043965", "0.6795042", "0.6795042", "0.6795042", "0.6795042", "0.6795042", "0.6794789", "0.6794789", "0.6794789", "0.6794789", "0.6791843", "0.67846376", "0.67842865", "0.6773605", "0.6750884", "0.6740035", "0.67346936", "0.673371", "0.6722503", "0.6704104", "0.670353", "0.67014843", "0.66923535", "0.6683644", "0.6683104", "0.6679689", "0.6679689", "0.6679689", "0.66776824" ]
0.0
-1
Find one entity by its primary key.
public ExempleDirect findExempleDirectById(String id) throws DaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "T findById(long pk);", "E findById(K id);", "public E findByPK(Serializable pk) {\n Session session = DAOUtils.getSession();\n Transaction trans = session.beginTransaction();\n\n E entity = session.get(genericType, pk);\n\n trans.commit();\n return entity;\n }", "public E findOne(ID primaryKey) {\n if ((primaryKey != null) && getDao().existsById(primaryKey)) {\n return getOne(primaryKey);\n }\n\n return null;\n }", "public abstract T findOne(int id);", "Optional<T> findOne(K id);", "@Override\n\tpublic ImageEntity find(Object primarykey) {\n\t\treturn (ImageEntity) DatabaseContext.find(ImageEntity.class, primarykey);\n\t}", "public E findById(Serializable pk) ;", "T getByPk(int key) throws PersistException;", "E find(Id id) throws RepositoryException;", "T getById(PK id);", "@Override\n\tpublic HelloEntity findOne() {\n\t\tLong id = 1L;\n\t\tHelloEntity entity = entityManager.find(HelloEntity.class, id);\n\t\tSystem.out.println(\"findOne: \" + entity.getName());\n\t\treturn null;\n\t}", "public E findById(E entity){\n Object identifier = HibernateUtil.getIdEntity(entity);\n return (E) entityManager.find(entity.getClass(),identifier);\n }", "T get(PK id);", "T findOne(Long id);", "public Entry findByPrimaryKey(EntryPK pk) throws FinderException, RemoteException;", "public <T extends BaseEntity> T findOne(T entity) {\n T resultEntity = null;\n List<T> results = select(entity);\n if (results != null && !results.isEmpty()) {\n resultEntity = results.get(0);\n }\n return resultEntity;\n }", "public abstract T findEntityById(int id);", "T findOne(I id);", "public String ejbFindByPrimaryKey(String primaryKey) \n throws FinderException {\n\n // Precondition\n if ( primaryKey == null ) {\n throw new FinderException( \"null primaryKey\" );\n }\n\n Connection conn = null;\n PreparedStatement stmt = null;\n ResultSet rs = null;\n boolean retVal = false;\n try {\n conn = DBConfiguration.getConnection();\n stmt = conn.prepareStatement(Configuration.SQL_01);\n\n stmt.setString( 1, primaryKey );\n\n rs = stmt.executeQuery();\n retVal = rs.next();\n if ( theLog.isDebugEnabled() ) {\n theLog.debug( \"selectByPrimaryKey: retVal == \" + retVal );\n }\n\n } catch (Exception ex) {\n theLog.debug(\"Exception in ejbFindByPrimaryKey: \" + ex);\n }\n finally {\n DBConfiguration.closeSQLResultSet( rs );\n DBConfiguration.closeSQLStatement( stmt );\n DBConfiguration.closeSQLConnection( conn );\n rs = null;\n stmt = null;\n conn = null;\n }\n\n if (!retVal) {\n String msg = \"Row for id \" + primaryKey + \" not found.\";\n throw new ObjectNotFoundException( msg );\n }\n\n return primaryKey;\n }", "T findById(Integer id);", "public com.vh.locker.ejb.Contact findByPrimaryKey(java.lang.Long primaryKey) throws javax.ejb.FinderException;", "public final E find(final K id) {\n return getJpaTemplate().find(getEntityClass(), id);\n }", "@Override\n\tpublic <T> T find(Class<T> entityClass, Object primaryKey) {\n\t\treturn null;\n\t}", "E getById(long id);", "public <T> T find(Class<T> entityClass, String id);", "Corretor findOne(Long id);", "public Cliente findByPrimaryKey(ClientePk pk) throws ClienteDaoException;", "T findById(final ID id) throws RequiredValueException, NoEntityFoundException;", "public UserEntity findByPrimaryKey(String userId) throws FinderException;", "T findById(ID id) ;", "@SuppressWarnings(\"unchecked\")\r\n\tpublic T findOne(final int id) {\r\n\t\tEntityManager manager = factory.createEntityManager();\r\n\t\tEntityTransaction transaction = manager.getTransaction();\r\n\t Object obj = null;\r\n\t \r\n\t try {\r\n\t \t transaction.begin();\r\n\t obj = (T) manager.find(genericClass, id);\r\n\t transaction.commit();\r\n\t } catch (HibernateException e) {\r\n\t \t if(transaction != null)\r\n\t \t\t transaction.rollback();\r\n\t e.printStackTrace(); \r\n\t } finally {\r\n\t manager.close(); \r\n\t }\r\n\t\treturn (T) obj;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n public <T extends BaseEntity> T findOne(Class<T> c, Serializable id) {\n T entity = null;\n Object result = this.getCurrentSession().get(c, id);\n if (result != null && result.getClass() == c) {\n entity = (T) result;\n }\n return entity;\n }", "Optional<T> find(long id);", "@Override\r\n\tpublic T findEntity(Class<T> c, Serializable id) throws Exception {\n\t\treturn (T) this.getcurrentSession().get(c, id);\r\n\t}", "@Override\n public Optional<T> findById(ID id) {\n T entity = getSession().get(this.getPersistentClass(), id);\n return Optional.ofNullable(entity);\n }", "PrimaryKey getPrimaryKey();", "Key getPrimaryKey();", "@Override\n\tpublic T findById(Class<T> entidade, Long id) throws Exception {\n\t\treturn null;\n\t}", "@Override\n\tpublic Person select(PersonKey key) throws KeyNotFoundException {\n\t\t\n\t\ttry {\n\t\t\tPerson person = repo.findById(key).get();\n\t\t\treturn person;\n\t\t\t}\n\t\tcatch(Exception ex) {\n\t\t\tthrow new KeyNotFoundException();\n\t\t}\n\t\t\n\t}", "Owner selectByPrimaryKey(String id);", "AccessModelEntity selectByPrimaryKey(String id);", "E find(final ID identifier) throws ResourceNotFoundException;", "@Override\n\tpublic Object findByIdObject(Class<T> entidade, Long id) throws Exception {\n\t\treturn null;\n\t}", "@Override\n\tpublic Pessoa findOne(Integer arg0) {\n\t\treturn null;\n\t}", "@Transactional(propagation = Propagation.MANDATORY)\n\tpublic default E getOne(K id) {\n\t\treturn getRepository().getOne(id);\n\t}", "User selectByPrimaryKey(String id);", "SysId selectByPrimaryKey(String id);", "public T find(int id) {\n\t \treturn getEntityManager().find(getEntityClass(), id);\n\t }", "public Data findById(Object id);", "@Override\n\tpublic Pedido findOne(Long arg0) {\n\t\treturn null;\n\t}", "Entity getEntityById(Long id);", "public Object getGenericEntityByPrimaryKey(Class ent, Serializable key) throws RepositoryException{\n\t\treturn DatanucleusCRUDUtils.getById(ent, key);\n\t}", "public Ruta findByPrimaryKey(RutaPk pk) throws RutaDaoException;", "public TEntity getById(int id){\n String whereClause = String.format(\"Id = %1$s\", id);\n Cursor cursor = db.query(tableName, columns, whereClause, null, null, null, null);\n\n if (cursor.getCount() == 1) {\n cursor.moveToFirst();\n return fromCursor(cursor);\n }\n return null;\n }", "@Override\n\tpublic <T> T find(Class<T> entityClass, Object primaryKey, LockModeType lockMode) {\n\t\treturn null;\n\t}", "ProductEntity findById(long id);", "public Tipo findByPrimaryKey(TipoPk pk) throws TipoDaoException;", "UserEntity selectByPrimaryKey(Integer id);", "@Override\n public Message findOne(Integer key) throws SQLException {\n //Ei toteutettu\n return null;\n }", "public Integer ejbFindByPrimaryKey(final Integer id)\n throws FinderException\n {\n PreparedStatement ps = null;\n try \n {\n ps = getConnection().prepareStatement(\"SELECT ID FROM CCBMPACCOUNT WHERE ID = ?\");\n ps.setInt(1, id.intValue());\n ResultSet rs = ps.executeQuery();\n if (!rs.next()) \n {\n throw new ObjectNotFoundException(\"No such account: \" + id);\n } // end of if ()\n rs.close();\n\n }\n catch (Exception e)\n {\n Category.getInstance(getClass().getName()).info(\"Exception in findByPK\", e);\n throw new EJBException(\"Problem in findByPrimaryKey: \" + e);\n } // end of try-catch\n finally\n {\n try \n {\n if (ps != null) {ps.close();}\n }\n catch (Exception e)\n {\n Category.getInstance(getClass().getName()).info(\"Exception closing ps: \" + e);\n } // end of try-catch\n } // end of finally\n return id;\n }", "User getOne(long id) throws NotFoundException;", "T load(PK id);", "public Entity getByPrimaryKey(Id id) throws RepositoryException{\n\t\treturn (Entity)DatanucleusCRUDUtils.getById(getEntity(), id);\n\t}", "Employee selectByPrimaryKey(String id);", "@Override\n\tpublic Resident findOne(int residentId) {\n\t\ttry {\n\t\t\treturn repository.findById(residentId);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\t// TODO: handle exception\n\t\t}\n\t\treturn null;\n\t}", "@SuppressWarnings(\"unchecked\")\r\n public DomainObject getRecordByPrimaryKey(KeyType id) {\r\n Session session = getSession();\r\n try {\r\n return (DomainObject) session.get(getPersistentClass(), id);\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in getRecordByPrimaryKey Method:\" + e, e);\r\n throw e;\r\n } finally {\r\n if (session.isOpen()) {\r\n session.close();\r\n }\r\n }\r\n }", "PrhFree selectByPrimaryKey(Integer id);", "@Override\n\tpublic <T> T find(Class<T> entityClass, Object primaryKey, Map<String, Object> properties) {\n\t\treturn null;\n\t}", "@Override\n\tpublic BaseEntity getByPk(BaseEntity entity) throws DaoException {\n\t\treturn null;\n\t}", "User find(long id);", "@Override\r\n\tpublic Employee findOne(Long arg0) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic Person findbyid(int id) {\n\t\tQuery query=em.createQuery(\"Select p from Person p where p.id= \"+id);\r\n\t\tPerson p=(Person) query.getSingleResult();\r\n\t\treturn p;\r\n\t\r\n\t}", "@Override\n public Person findByID(Long id) {\n Session session = getSessionFactory().openSession();\n Person p = session.load(Person.class, id);\n session.close();\n return p;\n }", "TestEntity selectByPrimaryKey(Integer id);", "@Override\n public T findById(ID id) throws SQLException {\n\n return this.dao.queryForId(id);\n\n }", "public Employee findEmployee(Long id);", "@Override\r\n\tpublic Object findById(long id) {\n\t\treturn null;\r\n\t}", "protected abstract T retrieveEntry(PersistentEntity persistentEntity, Serializable key);", "@Override\n @SuppressWarnings(\"unchecked\")\n public T findById(ID id) {\n return (T) this.getSession().load(this.getPersistentClass(), id);\n }", "User selectByPrimaryKey(Long id);", "public T findById(final String id)\n\t{\n\t\treturn em.find(entityClass, id);\n\t}", "User selectByPrimaryKey(Integer id);", "User selectByPrimaryKey(Integer id);", "User selectByPrimaryKey(Integer id);", "User selectByPrimaryKey(Integer id);", "User selectByPrimaryKey(Integer id);", "public static FoundObject fetchByPrimaryKey(String number) {\n\t\treturn getPersistence().fetchByPrimaryKey(number);\n\t}", "Article selectByPrimaryKey(String id);", "ProEmployee selectByPrimaryKey(String id);", "@Override\r\n\tpublic User findOne(int id, Class<?> entity) {\n\t\treturn null;\r\n\t}", "IceApp selectByPrimaryKey(Long id);", "E findById(N id);", "Repository findById(Integer id);", "@Transactional(readOnly = true)\n\t@Override\n\tpublic T findOne(Integer id) {\n\t\treturn (T) registroDao.findById(id).orElse(null);\n\t}", "@Override\r\n\tpublic Estates findOne(Integer arg0) {\n\t\treturn null;\r\n\t}", "Account selectByPrimaryKey(String id);", "User findOneById(long id);", "@Override\n\tpublic TestPoEntity selectById(Integer pk) {\n\t\treturn null;\n\t}", "@Nullable\n <T> T findById( @Nonnull Class<T> type, @Nonnull Object id );", "Product findById(long id);" ]
[ "0.782142", "0.75310785", "0.7481465", "0.7435701", "0.7383651", "0.7372308", "0.73674136", "0.7365997", "0.7345561", "0.73399746", "0.73282224", "0.7208463", "0.7186238", "0.71820766", "0.71464026", "0.71454245", "0.71307147", "0.7096576", "0.7080479", "0.70750266", "0.6975873", "0.6953493", "0.69248027", "0.69226706", "0.6894428", "0.688614", "0.6878023", "0.6835709", "0.680878", "0.67739093", "0.6772453", "0.67620397", "0.67580354", "0.6757093", "0.6744957", "0.67352015", "0.6729634", "0.67280143", "0.6727235", "0.6686516", "0.66812134", "0.6681167", "0.66699666", "0.6667633", "0.66661996", "0.6656108", "0.6653361", "0.6645991", "0.664594", "0.66319", "0.6614692", "0.6601122", "0.6600912", "0.65982884", "0.6593734", "0.65876496", "0.65786916", "0.65780103", "0.6572832", "0.6555996", "0.6553376", "0.6551884", "0.65473706", "0.6542757", "0.654203", "0.6535042", "0.6525467", "0.650401", "0.6493638", "0.64850545", "0.64814746", "0.6479432", "0.647645", "0.64756995", "0.6469134", "0.64654154", "0.6456884", "0.64566875", "0.6454132", "0.6453593", "0.6452711", "0.6449865", "0.64419055", "0.64419055", "0.64419055", "0.64419055", "0.64419055", "0.64311165", "0.64306706", "0.64277756", "0.6424381", "0.64211774", "0.64206576", "0.64147717", "0.64113784", "0.6410623", "0.6408457", "0.640401", "0.6400096", "0.63813883", "0.63763857" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View arg0) { actualizarOnClick(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View arg0) { ahoraNoOnClick(); }
{ "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
acciones para actualizar el perfil
private void actualizarOnClick(){ Intent i=new Intent(this,MenuPrincipal.class); i.putExtra("valueString", datos); this.startActivity(i); this.finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PerfilTO guardarOActualizar(PerfilTO perfil);", "@Override\n public void actualizarPropiedad(Propiedad nuevaPropiedad) {\n int numFinca = nuevaPropiedad.getNumFinca();\n String modalidad = nuevaPropiedad.getModalidad();\n double area = nuevaPropiedad.getAreaTerreno();\n double metro = nuevaPropiedad.getValorMetroCuadrado();\n double fiscal = nuevaPropiedad.getValorFiscal();\n String provincia = nuevaPropiedad.getProvincia();\n String canton = nuevaPropiedad.getCanton();\n String distrito = nuevaPropiedad.getDistrito();\n String dirExacta = nuevaPropiedad.getDirExacta();\n String estado = nuevaPropiedad.getEstado();\n String tipo = nuevaPropiedad.getTipo();\n System.out.println(nuevaPropiedad.getFotografias().size());\n double precio = nuevaPropiedad.getPrecio();\n try {\n bdPropiedad.manipulationQuery(\"UPDATE PROPIEDAD SET MODALIDAD = '\" + modalidad + \"', AREA_TERRENO \"\n + \"= \" + area + \", VALOR_METRO = \" + metro + \", VALOR_FISCAL = \"+ fiscal + \", PROVINCIA = '\" \n + provincia + \"', CANTON = '\" + canton + \"' , DISTRITO = '\" + distrito + \"', DIREXACTA = '\" \n + dirExacta + \"', ESTADO = '\" + estado + \"', PRECIO = \" + precio + \" WHERE ID_PROPIEDAD = \" \n + numFinca);\n bdPropiedad.manipulationQuery(\"DELETE FROM FOTOGRAFIA_PROPIEDAD WHERE ID_PROPIEDAD = \" + numFinca);\n bdPropiedad.insertarFotografias(nuevaPropiedad);\n } catch (SQLException ex) {\n Logger.getLogger(Propiedad.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void actualizar();", "private void modificarProfesor(){\n \n System.out.println(\"-->> MODIFICAR PROFESOR\");\n int opcion;\n String nif=IO_ES.leerCadena(\"Inserte el nif del profesor\");\n if(ValidarCadenas.validarNIF(nif)){\n Profesor profesor=(Profesor) getPersona(LProfesorado, nif);\n if(profesor!=null){\n do{\n System.out.println(profesor);\n System.out.println(\"\\n1. Nombre\");\n System.out.println(\"2. Dirección\");\n System.out.println(\"3. Código Postal\");\n System.out.println(\"4. Teléfono\");\n System.out.println(\"5. Módulo\");\n System.out.println(\"0. Volver\");\n opcion=IO_ES.leerInteger(\"Inserte una opción: \", 0, 5);\n \n \n switch(opcion){\n \n case 1:\n actualizarNombre(profesor);\n break;\n case 2:\n actualizarDireccion(profesor);\n break;\n case 3:\n actualizarCodigoPostal(profesor);\n break;\n case 4:\n actualizarTelefono(profesor);\n break;\n case 5:\n actualizarModulo(profesor);\n break;\n \n \n }\n \n }while(opcion!=0);\n }\n else{\n System.out.println(\"El profesor no existe\");\n }\n \n }\n else {\n System.out.println(\"El nif no es válido\");\n }\n \n }", "public void actualizar() {\n\n\t}", "private void RealizarAccion() {\n if (ValidarCampos()) {\n\n persona.setPrimerNombre(txtPrimerNombre.getText());\n persona.setSegundoNombre(txtSegundoNombre.getText());\n persona.setPrimerApellido(txtPrimerApellido.getText());\n persona.setSegundoApellido(txtSegundoApellido.getText());\n persona.setTelefono(txtTelefono.getText());\n persona.setCedula(txtCedula.getText());\n persona.setCorreo(txtCorreo.getText());\n persona.setDireccion(txtDireccion.getText());\n\n empleado.setFechaInicio(dcFechaInicio.getDate());\n empleado.setSalario(Double.parseDouble(txtSalario.getText()));\n empleado.setCargo(txtCargo.getText());\n empleado.setUsuarioByUserModificacion(SessionHelper.usuario);\n empleado.setFechaModificacion(new Date());\n empleado.setRegAnulado(false);\n\n switch (btnAction.getText()) {\n case \"Guardar\":\n int maxid = personaBean.MaxId() + 1;\n persona.setIdPersona(maxid);\n\n Dbcontext.guardar(persona);\n\n empleado.setIdEmpleado(maxid);\n empleado.setPersona(persona);\n empleado.setUsuarioByUserCreacion(SessionHelper.usuario);\n empleado.setFechaCreacion(new Date());\n\n Dbcontext.guardar(empleado);\n break;\n\n case \"Actualizar\":\n\n Dbcontext.actualizar(persona);\n\n Dbcontext.actualizar(empleado);\n break;\n }\n if (ifrRegistroEmpleados.isActive) {\n ifrRegistroEmpleados.CargarTabla();\n }\n\n Mensajes.OperacionExitosa(this);\n dispose();\n } else {\n Mensajes.InformacionIncompleta(this);\n }\n }", "@RequestMapping(value=\"/perfil\", method = RequestMethod.PUT, consumes=MediaType.APPLICATION_JSON_UTF8_VALUE)\n\tpublic @ResponseBody ResponseModel atualizar(@RequestBody PerfilModel usuario){\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tthis.perfilRepository.save(usuario);\t\t\n\t\t\t\n\t\t\treturn new ResponseModel(1,\"Registro atualizado com sucesso!\");\n\t\t\n\t\t}catch(Exception e) {\n\t\t\t\n\t\t\treturn new ResponseModel(0,e.getMessage());\n\t\t}\n\t}", "void actualizar(Espacio espacio);", "ParqueaderoEntidad actualizar(ParqueaderoEntidad parqueadero);", "public void actualizarPodio() {\r\n\t\tordenarXPuntaje();\r\n\t\tint tam = datos.size();\r\n\t\traizPodio = datos.get(tam-1);\r\n\t\traizPodio.setIzq(datos.get(tam-2));\r\n\t\traizPodio.setDer(datos.get(tam-3));\r\n\t}", "void actualizarCampania(GestionPrecioDTO campania, UserDto user);", "public void uploadPhotoProfile(FileEntryEvent ev){\n\tArrayList<Photo> listePhotos=new ArrayList<Photo>();\r\n\tlistePhotos=mbb.getMembre().getListePhotos();\r\n\tint idPhotoProfile=0;\r\n\t\r\n\tfor(Photo photo : listePhotos)\r\n\t{\r\n\t\tif(photo.getIsProfil())\r\n\t\t\tidPhotoProfile=photo.getId();\r\n\t}\r\n\t\r\n\tint photoProfileSupprime=PhotoManager.deletePhoto(idPhotoProfile);\r\n\tSystem.out.println(photoProfileSupprime);\r\n\tif(photoProfileSupprime>0)\r\n\t{\r\n\t\t\r\n\t//mettre la main sur le fileEntry\r\n\tFileEntry fiE = (FileEntry)ev.getSource();\r\n\t//récupérer ses results\r\n\tFileEntryResults fr = fiE.getResults();\r\n\t\r\n\t// Create an instance of SimpleDateFormat used for formatting \r\n\t\t\t// the string representation of date (month/day/year)\r\n\t\t\tDateFormat df = new SimpleDateFormat(\"ddMMyyyyHHmmss\");\r\n\r\n\t\t\t// Get the date today using Calendar object.\r\n\t\t\tDate today = Calendar.getInstance().getTime(); \r\n\t\t\t// Using DateFormat format method we can create a string \r\n\t\t\t// representation of a date with the defined format.\r\n\t\t\tString reportDate = df.format(today);\r\n\t\t\t\r\n\t\r\n\t//boucler sur les FileInfo\r\n\tfor(FileEntryResults.FileInfo fi: fr.getFiles()){\r\n\t\t//s'assurer que le fichier est enregistrer\r\n\t\tif(fi.isSaved()){\r\n\t\t\tSystem.out.println(\"le nom ========= \"+reportDate+fi.getFileName());\r\n\t\t\t//recu le fichier\r\n\t\t\tFile f = fi.getFile();\r\n\t\t\t\r\n\t\t\t//TODO verifier que c'est le bon type de fichier\r\n\t\t\t//renommer\r\n\t\t\ttry {\r\n\t\t\t\tString cheminApp=FacesContext.getCurrentInstance().getExternalContext().getRealPath(\"/\");\r\n\t\t\t\tString newch=cheminApp;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tboolean ren=f.renameTo(new File(newch+\"photos/\"+reportDate+fi.getFileName()));\r\n\t\t\t\t\r\n\t\t\t\tif (ren) {\r\n\t\t\t\t\tthis.chemin=\"photos/\"+reportDate+fi.getFileName();\r\n\t\t\t\t\tSystem.out.println(newch);\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"pas possible. \"+newch);\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//ajouter un message \r\n\t\t\tFacesContext.getCurrentInstance().addMessage(fiE.getClientId(),new FacesMessage(\"le fichier a été uploadé\"));\r\n\t\t\r\n\t\t\tPhoto photo= new Photo();\r\n\t\t\tphoto.setMemberID(mbb.getMembre().getMembreId());\r\n\t\t\tphoto.setChemin(chemin);\r\n\t\t\tphoto.setIsProfil(true);\r\n\r\n\t\t\tint ajoute=PhotoManager.addPhoto(photo);\r\n\t\t\tSystem.out.println(\"photo profile ajoute\");\r\n\t\t\tif(ajoute>0){\r\n\t\t\t\tmbb.getMembre().setListePhotos(PhotoManager.getPhotosByMemberId(mbb.getMembre().getMembreId()));//maj liste photos\r\n\t\t\t\tArrayList<Photo> photos=new ArrayList<Photo>();\r\n\t\t\t\tphotos=PhotoManager.getProfilPhotosByMemberId(mbb.getMembre().getMembreId());\r\n\t\t\t\tmbb.getMembre().setProfilImagePath(photos.get(0).getChemin()); //maj chemin photo profil\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}\t\r\n\t}", "void actualizar(Prestamo prestamo);", "public void ModificarPrestamo(PrestamoFila pf) {\n this.conexion.ConectarBD();\n String consulta = \"update prestamos set IdSocio = ?, IdLibro = ?, FechaInicio = ?, FechaFin = ? where IdPrestamo = ?\";\n try {\n this.pstm = this.conexion.getConexion().prepareStatement(consulta);\n //Indicamos los parametros del update\n this.pstm.setInt(1, pf.getIdSocio());\n this.pstm.setInt(2, pf.getIdLibro());\n this.pstm.setDate(3, new java.sql.Date(pf.getFechaInicio().getTime()));\n this.pstm.setDate(4, new java.sql.Date(pf.getFechaFin().getTime()));\n this.pstm.setInt(5, pf.getIdPrestamo());\n //Ejecutamos la consulta\n int res = pstm.executeUpdate();\n } catch (SQLException e) { \n throw new MisException(\"Error al modificar un Prestamo.\\n\"+e.toString());\n \n } catch (Exception e) {\n throw new MisException(\"Error.\\n\"+e.toString());\n \n }\n \n //Desconectamos de la BD\n this.conexion.DesconectarBD(); \n }", "void actualizarCampania(GestionPrecioDTO campania, String user);", "public void actualizarActividad (Actividad act) {\r\n String query = \"UPDATE actividad SET identificacion_navegate = \\\"\" + act.getIdentificacionNavegante() \r\n + \"\\\", numero_matricula = \\\"\" + act.getNumeroMatricula() \r\n + \"\\\", fecha = \\\"\" + act.getFecha() \r\n + \"\\\", hora = \\\"\" + act.getHora() \r\n + \"\\\", destino = \\\"\" + act.getDestino() \r\n + \"\\\" WHERE id_salida = \\\"\" + act.getIdentificacionSalida() + \"\\\"\";\r\n try {\r\n Statement st = con.createStatement();\r\n st.executeUpdate(query);\r\n st.close();\r\n JOptionPane.showMessageDialog(null, \"Actividad actualizada\", \"Operación exitosa\", JOptionPane.INFORMATION_MESSAGE);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(PActividad.class.getName()).log(Level.SEVERE, null, ex);\r\n } \r\n }", "private void actualizarFondo() {\n actualizaEstadoMapa();\n if (modificacionFondoBase == true && estadoJuego != EstadoJuego.PAUSADO && estadoJuego != EstadoJuego.PIERDE){\n moverFondo();\n } else if (modificacionFondoBase == false && estadoJuego != EstadoJuego.PAUSADO && estadoJuego != EstadoJuego.PIERDE ){\n texturaFondoBase= texturaFondo1_1;\n texturaFondoApoyo= texturaFondo1_2;\n moverFondo();\n }\n }", "private void actualizarMedicamentoExistente() {\n medicamentoSeleccionado.setCodigoMedicamento(codigoMedicamento);\r\n medicamentoSeleccionado.setCodigoCums(codigoCums);\r\n medicamentoSeleccionado.setCodigoCups(codigoCups);\r\n medicamentoSeleccionado.setNombreMedicamento(nombreMedicamento);\r\n medicamentoSeleccionado.setNombreGenerico(nombreGenerico);\r\n medicamentoSeleccionado.setNombreComercial(nombreComercial);\r\n medicamentoSeleccionado.setFormaMedicamento(formaMedicamento);\r\n medicamentoSeleccionado.setPos(pos);\r\n medicamentoSeleccionado.setConcentracion(concentracion);\r\n medicamentoSeleccionado.setUnidadMedida(unidadMedida);\r\n medicamentoSeleccionado.setControlMedico(controlMedico);\r\n medicamentoSeleccionado.setRegistroSanitario(registroSanitario);\r\n medicamentoSeleccionado.setModAdmin(modAdmin);\r\n medicamentoSeleccionado.setValor(valor);\r\n medicamentoFacade.edit(medicamentoSeleccionado);\r\n limpiarFormularioMedicamentos();\r\n RequestContext.getCurrentInstance().update(\"IdFormMedicamentos\");\r\n imprimirMensaje(\"Correcto\", \"El medicamento ha sido actualizado.\", FacesMessage.SEVERITY_INFO);\r\n }", "public void actualizarImagen() {\n\t\tentidadGrafica.actualizarImagen(this.valor);\n\t}", "@Override\n\tpublic void updateUsuario(Usuario p) {\n\t\t\n\t}", "public void setPerfilSesion(Perfil perfilSesion){\n this.perfilSesion = perfilSesion;\n\n }", "public String salirEdPerfil() {\n\t\tofer_id = null;\n\t\tofer_valor_oferta = null;\n\t\tofer_fecha_oferta = null;\n\t\titem = null;\n\t\tpostulante = null;\n\t\titem_nombre = \"\";\n\t\titem_caracteristicas = \"\";\n\t\titem_imagen = \"\";\n\t\tpos_nombre = \"\";\n\t\tpos_apellido = \"\";\n\t\tpos_direccion = \"\";\n\t\tpos_correo = \"\";\n\t\tpos_telefono = \"\";\n\t\tpos_password = \"\";\n\t\tpos_celular = \"\";\n\t\tpos_institucion = \"\";\n\t\tpos_gerencia = \"\";\n\t\tpos_area = \"\";\n\t\tgetListaItems().clear();\n\t\tgetListaItems().addAll(managergest.findAllItems());\n\t\treturn \"home?faces-redirect=true\";\n\t}", "public void editTheirProfile() {\n\t\t\n\t}", "public void setPerfil(int perfil){\n this.perfil = perfil;\n }", "private void almacenarFallos() {\n BaseDatos bd = new BaseDatos(this);\n// Log.i(\"FALLOS\",\"Nmero de fallos final: \"+fallos);\n bd.updatePalabra(palabraActual.getId(),fallos);\n\n bd.close();\n }", "private void controladorPerfil(Controlador controlador){\n this.contUserDisplayCollective = controlador.getUserDisplayCollective();\n perfil.setControlCollective((ListSelectionListener)contUserDisplayCollective);\n inicioUser.setControlCollective((ListSelectionListener)contUserDisplayCollective);\n\n this.contUserDisplayProject = controlador.getUserDisplayProject();\n perfil.setControlProject((ListSelectionListener)contUserDisplayProject);\n inicioUser.setControlProject((ListSelectionListener)contUserDisplayProject);\n inicioAdmin.setControlProject((ListSelectionListener)contUserDisplayProject);\n \n }", "public void guardar() {\r\n\t\t\r\n\t\tmanejadorArchivos.guardar(palabras);\r\n\t\t\r\n\t}", "public void alterarVencimentoFatura(Fatura fatura) throws ErroRepositorioException ;", "@Override\r\n\tpublic int updatepic(Account account) {\n\t\taccountMapper.updatepic(account);\r\n\t\treturn 0;\r\n\t}", "private static void privilegio(int tipo) {\n String nome;\r\n Scanner sc = new Scanner(System.in);\r\n if (tipo == 1)\r\n System.out.println(\"Qual o utilizador a quem quer dar privilégios de editor?\");\r\n else\r\n System.out.println(\"Qual o utilizador a quem quer dar privilégios de editor?\");\r\n nome = sc.nextLine();\r\n PreparedStatement stmt;\r\n if (verificaUser(nome)) {\r\n try {\r\n c.setAutoCommit(false);\r\n if (tipo == 1)\r\n stmt = c.prepareStatement(\"UPDATE utilizador SET utilizador_tipo = true WHERE nome=?\");\r\n else\r\n stmt = c.prepareStatement(\"UPDATE utilizador SET utilizador_tipo = false WHERE nome=?\");\r\n stmt.setString(1, nome);\r\n stmt.executeUpdate();\r\n\r\n stmt.close();\r\n c.commit();\r\n } catch (SQLException e) {\r\n System.out.println(e);\r\n }\r\n System.out.println(\"Privilégios atualizados\");\r\n } else {\r\n System.out.println(\"Utilizador não encontrado\");\r\n }\r\n }", "public void actualizar(){\n\t\tif( EventoTeclado.pause ){\n\t\t\tgame.pauseAll();\n\t\t\tpause.setVisible(game.isPaused());\n\t\t}\n\t\tgame.jugar();\n\t\tmoverPlataformas();\n\t\tactualizarContadores();\n\t\tactualizarNombrePoder();\n\t\t \t\n\t}", "private void aumentarPilha() {\n this.pilhaMovimentos++;\n }", "private void commitApuesta() {\n\t\tif(tipo != -1){\n\t\t\tmodelo.setDestLogin(ModeloApuestas.DEST_APOSTUBERRI);\n\t\t\tmodelo.setApuestaInProgress(apostado.get(), tipo);\n\t\t\tif(!myController.isScreenLoaded(\"login\")){\n\t\t\t\tmyController.loadScreen(ScreensFramework.Login, ScreensFramework.Login_FXML);\n\t\t\t}\n\t\t\tmyController.setScreenOverlay(\"login\");\n\t\t}\n\t\t\n\t\t\n\t}", "@Override\n\tpublic long actualizar(Account entidad) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void updatePais(Pais elemento) {\n\t\tgetSession().update(elemento);\n\t\t\n\t}", "void actualizarAsistencia(Asistencia asistencia);", "@Override\r\n\tpublic void update(Usuario t) {\n\t\t\r\n\t}", "public void apply() {\n for (Player player : Bukkit.getOnlinePlayers())\n if (player.getName().equalsIgnoreCase(getName())) {\n for (PermissionAttachmentInfo attachmentInfo : player.getEffectivePermissions())\n if (attachmentInfo.getAttachment().getPlugin().getName().equalsIgnoreCase(\"rpermissions\")) {\n player.removeAttachment(attachmentInfo.getAttachment());\n break;\n }\n PermissionAttachment attachment = player.addAttachment(rPermissions.getInstance());\n for (Map.Entry<String, Boolean> entry : calculatePerms().entrySet())\n attachment.setPermission(entry.getKey(), entry.getValue());\n }\n }", "public void actualizarProyectosFinanciados() {\r\n\t\t\r\n\t\tDouble financiacion;\r\n\t\tfor(Proyecto p: this.proyectos) {\r\n\t\t\tif(p.getEstadoProyecto()== EstadoProyecto.PENDIENTEFINANCIACION) {\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfinanciacion = CCGG.getGateway().getAmountGranted( p.getIdSeguimientoSistemaFinanciacion() );\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(financiacion > 0) {\r\n\t\t\t\t\t\tp.financiarProyecto(financiacion);\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tp.rechazarProyecto(\"El sistema de financiacion ha denegado la financiacion del proyecto\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t} catch ( NullPointerException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} catch ( Exception e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}", "public void actualizarUsuario(Long idUsr,String nick,String nombres,String pass){\n\t\t\t\t\t //buscamos el objeto que debe ser actualizado:\n\t\t\t\t\t Usuario u = findbyIdUsuario(idUsr);\n\t\t\t\t\t em.getTransaction().begin();\n\t\t\t\t\t // no se actualiza la clave primaria, en este caso solo la descripcion\n\t\t\t\t\t u.setNick(nick);\n\t\t\t\t\t u.setNombres(nombres);\n\t\t\t\t\t u.setPass(pass);\n\t\t\t\t\t em.merge(u);\n\t\t\t\t\t em.getTransaction().commit();\n\t\t\t\t }", "void updateProfilePhoto(int userId, String filename);", "public void AtualizaPassageiro(String nome, String NovoCpf, String cpfPrimario) {\n\n\t\ttry {\n\n\t\t\t// Meu cpf é a chjave\n\t\t\t// setando nome\n\n\t\t\tstmt = con.prepareStatement(\" update Passageiro set nome= ? where cpf= ? \");\n\t\t\tstmt.setString(1, nome);\n\t\t\tstmt.setString(2, cpfPrimario);\n\t\t\tstmt.executeUpdate();\n\n\t\t\t// setando cpf\n\n\t\t\tstmt = con.prepareStatement(\" update Passageiro set cpf= ? where cpf= ? \");\n\t\t\tstmt.setString(1, NovoCpf);\n\t\t\tstmt.setString(2, cpfPrimario);\n\t\t\tstmt.executeUpdate();\n\n\t\t\tJOptionPane.showMessageDialog(null, \"Passageiro Alterado com sucesso!!\");\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\n\t\t\tSystem.out.println(\"Erro ao atualizar passageiro!\");\n\t\t\tJOptionPane.showMessageDialog(null, \"-Erro ao atualizar o passageiro \");\n\t\t\tJOptionPane.showMessageDialog(null, \"certifique se de inserir um CPF VALIDO(15 CARACTERES)\t \");\n\t\t}\n\n\t}", "private void actualizaPuntuacion() {\n if(cambiosFondo <= 10){\n puntos+= 1*0.03f;\n }\n if(cambiosFondo > 10 && cambiosFondo <= 20){\n puntos+= 1*0.04f;\n }\n if(cambiosFondo > 20 && cambiosFondo <= 30){\n puntos+= 1*0.05f;\n }\n if(cambiosFondo > 30 && cambiosFondo <= 40){\n puntos+= 1*0.07f;\n }\n if(cambiosFondo > 40 && cambiosFondo <= 50){\n puntos+= 1*0.1f;\n }\n if(cambiosFondo > 50) {\n puntos += 1 * 0.25f;\n }\n }", "public static void actualizarRegistro(){\n int idActulizar = Integer.parseInt(JOptionPane.showInputDialog(\"Ingrese el ID a Actualizar\"));\n Scanner teclado = new Scanner(System.in); \n \n System.out.println(\"Actualizando.... \");\n //String anombre = teclado.nextLine();\n persona pa = new persona();\n pa.setNombre(teclado.nextLine());\n pa.setAp_paterno(teclado.nextLine());\n pa.setAp_materno(teclado.nextLine());\n pa.setDireccion(teclado.nextLine());\n pa.setSexo(teclado.nextLine());\n \n pd.actualizarPerosna(idActulizar, pa);\n // mostras los actualizados\n for (persona ps: pd.listaPersonas()){\n System.out.println(ps.getId()+ \" \"+\n ps.getNombre()+ \" \"+\n ps.getAp_paterno()+ \" \"+ \n ps.getAp_materno());\n }\n }", "private void updateProfile() {\n usuario.setEmail(usuario.getEmail());\n usuario.setNome(etName.getText().toString());\n usuario.setApelido(etUsername.getText().toString());\n usuario.setPais(etCountry.getText().toString());\n usuario.setEstado(etState.getText().toString());\n usuario.setCidade(etCity.getText().toString());\n\n showLoadingProgressDialog();\n\n AsyncEditProfile sinc = new AsyncEditProfile(this);\n sinc.execute(usuario);\n }", "void updateAccount();", "public void updateFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);", "public static void atualizar(int id, String nome){\n System.out.println(\"Dados atualizados!\");\n }", "int updateByPrimaryKey(ParUsuarios record);", "public ModificarPerfilBean() {\r\n }", "public void actualizar(Procedimiento procedimiento) {\n IProcedimientoDao dao = new ProcedimientoDaoImpl();\n dao.actualizarProcedimiento(procedimiento);\n }", "public void ValidandoPerfil()\r\n\t{\n\t\t\r\n\t}", "public void saveProfileEditData() {\r\n\r\n }", "@Override\n\t\tpublic void update(Metodologia metodologia,String name) {\n\t\t\t\n\t\t}", "public void recalculatePermissions ( ) {\n\t\texecute ( handle -> handle.recalculatePermissions ( ) );\n\t}", "private void modificaAccount(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n HttpSession session = request.getSession();\r\n\r\n String codiceFiscale = request.getParameter(\"codiceFiscale\");\r\n String nome = request.getParameter(\"nome\");\r\n String cognome = request.getParameter(\"cognome\");\r\n String sesso = request.getParameter(\"sesso\");\r\n String email = request.getParameter(\"email\");\r\n String residenza = request.getParameter(\"residenza\");\r\n String luogoDiNascita = request.getParameter(\"luogoDiNascita\");\r\n String dataDiNascita = request.getParameter(\"dataDiNascita\");\r\n String password = request.getParameter(\"password\");\r\n String confermaPsw = request.getParameter(\"confermaPsw\");\r\n\r\n if (validazione(codiceFiscale, nome, cognome, sesso, email, residenza, luogoDiNascita, \r\n dataDiNascita, password, confermaPsw)) {\r\n\r\n // Medico medico = MedicoModel.getMedicoByCF(codiceFiscale);\r\n Medico medico = (Medico) session.getAttribute(\"utente\");\r\n\r\n if (medico != null) {\r\n\r\n if (!email.equals(medico.getEmail()) && MedicoModel\r\n .checkEmail(email)) {\r\n response.sendRedirect(\"./ModificaAccountMedicoView.jsp?notifica=EmailGiaInUso\");\r\n return;\r\n }\r\n\r\n medico.setNome(nome);\r\n medico.setCognome(cognome);\r\n medico.setSesso(sesso);\r\n medico.setEmail(email);\r\n medico.setResidenza(residenza);\r\n medico.setLuogoDiNascita(luogoDiNascita);\r\n\r\n if (!dataDiNascita.equals(\"\")) {\r\n medico.setDataDiNascita(LocalDate.parse(dataDiNascita, DateTimeFormatter.ofPattern(\"dd/MM/yyyy\")));\r\n }\r\n MedicoModel.updateMedico(medico);\r\n password = CriptazioneUtility.criptaConMD5(password);// serve a criptare la pasword in MD5\r\n // prima di registrarla nel db ps.non\r\n // cancellare il commento quando\r\n // spostate la classe\r\n\r\n MedicoModel.updatePasswordMedico(medico.getCodiceFiscale(), password);\r\n session.setAttribute(\"medico\", medico);\r\n\r\n response.sendRedirect(\"./profilo.jsp?notifica=modificaEffettuata\");\r\n\r\n } else {\r\n request.setAttribute(\"notifica\", \"Non e' stato trovato il medico da aggiornare\");\r\n RequestDispatcher requestDispatcher = request.getRequestDispatcher(\"./dashboard.jsp\");\r\n requestDispatcher.forward(request, response);\r\n }\r\n } else {\r\n request.setAttribute(\"notifica\", \"Uno o piu' parametri del medico non sono validi.\");\r\n RequestDispatcher requestDispatcher = \r\n request.getRequestDispatcher(\"./ModificaAccountMedicoView.jsp\");\r\n requestDispatcher.forward(request, response);\r\n }\r\n }", "private void prosesUpdate() {\n final String name = tvName.getText().toString();\r\n\r\n //get dari tabel/collection user\r\n Constants.refAcademicCal.addValueEventListener(new ValueEventListener() {\r\n @Override\r\n public void onDataChange(DataSnapshot dataSnapshot) {\r\n //mengambil data email\r\n AcademicModel emails = dataSnapshot.getValue(AcademicModel.class);\r\n\r\n Constants.refAcademicCal.child(\"name\").setValue(name);\r\n if (isPicChange)\r\n Constants.refAcademicCal.child(\"imgUrl\").setValue(photoUrl.toString());\r\n\r\n Toast.makeText(AcademicCal.this, \"Update berhasil!\", Toast.LENGTH_SHORT).show();\r\n finish();\r\n\r\n }\r\n\r\n @Override\r\n public void onCancelled(DatabaseError error) {\r\n // Failed to read value\r\n Log.w(\"\", \"Failed to read value.\", error.toException());\r\n //showProgress(false);\r\n }\r\n });\r\n }", "private void atualizarBotoes() {\r\n\t\tbtIncluir.setDisable(cliente.getId() != null);\r\n\t\tbtAlterar.setDisable(cliente.getId() == null);\r\n\t\tbtExcluir.setDisable(cliente.getId() == null);\r\n\t}", "int updateByPrimaryKeySelective(ParUsuarios record);", "public void setPerfilId( Long id );", "@Override\r\n\tpublic int updPermission(Permission perms) {\n\t\treturn 0;\r\n\t}", "public void processActualizar() {\n }", "public void actualizarUsuario(UsuarioDto dto){\n\t\tUsuario usuario = usuarioDao.load(dto.getId());\n\t\t\n\t\t// Seteo los valores a actualizar\n\t\tusuario.setNombre(dto.getNombre());\n\t\tusuario.setApellido(dto.getApellido());\n\t\t\n\t\t// Actualizo en la db\n\t\tusuarioDao.update(usuario);\n\t\t\n\t\tlog.info(\"Se actualizo el producto: \" + dto.getId());\n\t}", "public void setFotoPerfil(Part foto){\n if(foto == null){\n throw new IllegalArgumentException(\"Foto de perfil de usuario igual a null\");\n }\n fotoPerfil = foto;\n }", "public void actualizar() {\n\n try {\n\n servtpDocumento.actualizarTipoDocumento(tipoDocumento);\n req = RequestContext.getCurrentInstance();\n req.execute(\"PF('dialogoTpDocuActualizar').hide();\");//Cierra el dialogo para actualizar\n req = null;\n tipoDocumento = new TipoDocumento();\n MensajesFaces.informacion(\"Actualizado\", \"Exitoso\");\n\n } catch (Exception e) {\n MensajesFaces.error(\"Error\", \"detalle\" + e);\n\n }\n\n }", "@Override\n public void update(Usuario usuario) {\n }", "private void actualizarCantidadPropiedades(Persona pPersona, int pPropiedad) throws Exception {\n\n\t\tpPersona = this.entityManager.find(Persona.class, pPersona.getIdPersona());\n\t\tpPersona.setCantidadPropiedades(pPersona.getCantidadPropiedades() + pPropiedad);\n\t}", "@Override\n\t\tpublic void guardar() {\n\t\t\t\n\t\t\tif (tab_presupuesto.guardar()){\n\t\t\t\tif (tab_asociacion_presupuestaria.guardar()) {\n\t\t\t\t\tguardarPantalla();\n\t\t\t\t\t//Actualizar el arbol\n\t\t\t\t\tarb_clasificador.ejecutarSql();\n\t\t\t\t\tutilitario.addUpdate(\"arb_clasificador\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\n\t\t}", "public void saveOrUpdateProfile(){\n try {\n \n if(PersonalDataController.getInstance().existRegistry(username)){\n PersonalDataController.getInstance().update(username, staff_name, staff_surname, \n Integer.parseInt(id_type), \n id_number, imagePic, phone_number, mobile_number, email, birthdate, \n Integer.parseInt(gender), birthdate);\n }else{\n PersonalDataController.getInstance().create(username, staff_name, staff_surname, \n Integer.parseInt(id_type), \n id_number, imagePic, phone_number, mobile_number, email, birthdate, \n Integer.parseInt(gender));\n }\n } catch (GB_Exception ex) {\n LOG.error(ex);\n GBMessage.putMessage(GBEnvironment.getInstance().getError(32), null);\n }\n GBMessage.putMessage(GBEnvironment.getInstance().getError(33), null);\n }", "private void updateProfile(PrivateProfile p) {\n final ProgressDialog dialog = new ProgressDialog(SettingsActivity.this);\n dialog.setMessage(getString(R.string.progress_update_profile));\n dialog.show();\n\n // Prepare user inputs for validator\n HashMap<String, Object> fields = new HashMap<String, Object>();\n fields.put(\"firstName\", mFirstName.getText().toString().trim());\n fields.put(\"lastName\", mLastName.getText().toString().trim());\n fields.put(\"homeCity\", mHomeCity.getText().toString().trim());\n fields.put(\"phone\", mPhone.getText().toString().trim());\n fields.put(\"arriveHQBy\", mArriveHQBy.getText().toString().trim());\n fields.put(\"arriveHomeBy\", mArriveHomeBy.getText().toString().trim());\n\n validateFields(fields);\n\n userProfile.setFirstName((String) fields.get(\"firstName\"));\n userProfile.setLastName((String) fields.get(\"lastName\"));\n userProfile.setHomeCity((String) fields.get(\"homeCity\"));\n userProfile.setPhoneNumber((String) fields.get(\"phone\"));\n userProfile.setDriverStatus((Boolean) fields.get(\"driving\"));\n userProfile.setDriverCar((String) fields.get(\"car\"));\n userProfile.setArriveHQBy((String) fields.get(\"arriveHQBy\"));\n userProfile.setArriveHomeBy((String) fields.get(\"arriveHomeBy\"));\n\n userProfile.saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n dialog.dismiss();\n if (e != null) {\n // Show the error message\n Toast.makeText(SettingsActivity.this, e.getMessage(), Toast.LENGTH_LONG).show();\n } else {\n // show user the activity was complete\n Toast.makeText(SettingsActivity.this, R.string.profile_saved, Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "public void actualizarUsuario(Integer id, String nombre, long documento, String email, Boolean activo) throws Exception;", "private void guardarFoto() {\n if (foto != null && is != null) {\n\n Image foto_Nueva;\n foto_Nueva = foto.getScaledInstance(frmPersona.getLblFoto().getWidth(), frmPersona.getLblFoto().getHeight(), Image.SCALE_SMOOTH);\n frmPersona.getLblFoto().setIcon(new ImageIcon(foto_Nueva));\n cancelarFoto();\n ctrFrmPersona.pasarFoto(is);\n } else {\n JOptionPane.showMessageDialog(vtnWebCam, \"Aun no se a tomado una foto.\");\n }\n\n }", "public void AsignarPermiso(Permiso p){\n\t\tPermisoRol pr = new PermisoRol(p,this);\n\t\tpermisos.add(pr);\n\t}", "private void actualizaUsuario() {\n\t\t\n\t\tInteger edad=miCoordinador.validarEdad(campoEdad.getText().trim());\n\t\t\n\t\tif (edad!=null) {\n\t\t\t\n\t\t\tUsuarioVo miUsuarioVo=new UsuarioVo();\n\t\t\t//se asigna cada dato... el metodo trim() del final, permite eliminar espacios al inicio y al final, en caso de que se ingresen datos con espacio\n\t\t\tmiUsuarioVo.setDocumento(campoDocumento.getText().trim());\n\t\t\tmiUsuarioVo.setNombre(campoNombre.getText().trim());\n\t\t\tmiUsuarioVo.setEdad(Integer.parseInt(campoEdad.getText().trim()));\n\t\t\tmiUsuarioVo.setProfesion(campoProfesion.getText().trim());\n\t\t\tmiUsuarioVo.setTelefono(campoTelefono.getText().trim());\n\t\t\tmiUsuarioVo.setDireccion(campoDireccion.getText().trim());\n\t\t\t\n\t\t\tString actualiza=\"\";\n\t\t\t//se llama al metodo validarCampos(), este retorna true o false, dependiendo de eso ingresa a una de las opciones\n\t\t\tif (miCoordinador.validarCampos(miUsuarioVo)) {\n\t\t\t\t//si se retornó true es porque todo está correcto y se llama a actualizar\n\t\t\t\tactualiza=miCoordinador.actualizaUsuario(miUsuarioVo);//en registro se almacena ok o error, dependiendo de lo que retorne el metodo\n\t\t\t}else{\n\t\t\t\tactualiza=\"mas_datos\";//si validarCampos() retorna false, entonces se guarda la palabra mas_datos para indicar que hace falta diligenciar los campos obligatorios\n\t\t\t}\n\t\t\t\n\t\t\t//si el registro es exitoso muestra un mensaje en pantalla, sino, se valida si necesita mas datos o hay algun error\n\t\t\tif (actualiza.equals(\"ok\")) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \" Se ha Modificado Correctamente \",\"Confirmación\",JOptionPane.INFORMATION_MESSAGE);\t\t\t\n\t\t\t}else{\n\t\t\t\tif (actualiza.equals(\"mas_datos\")) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Debe Ingresar los campos obligatorios\",\"Faltan Datos\",JOptionPane.WARNING_MESSAGE);\t\t\t\n\t\t\t\t}else{\n\t\t JOptionPane.showMessageDialog(null, \"Error al Modificar\",\"Error\",JOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t}\t\t\t\t\t\n\t\t\t\n\t\t}else{\n\t\t\tJOptionPane.showMessageDialog(null, \"Debe ingresar una edad Valida!!!\",\"Advertencia\",JOptionPane.ERROR_MESSAGE);\n\t\t}\n\n\t\t\t\t\n\t}", "public void actualizarPorTipoIdentificacion()\r\n/* 686: */ {\r\n/* 687:755 */ cargarListaTipoComprobanteSRI();\r\n/* 688:756 */ cargarListaCreditoTributarioSRI();\r\n/* 689: */ }", "@Override // 프로필 사진 업로드\r\n\tpublic int photoupdate(MemberVO vo) {\n\t\treturn sqlSession.update(NAMESPACE + \".photoupdate\", vo);\r\n\t}", "public void actualizarPais(Paises pais);", "private void aumentarPuntos() {\r\n this.puntos++;\r\n this.form.AumentarPuntos(this.puntos);\r\n }", "private void modificarReserva() throws Exception {\r\n\t\tif (mngRes.existeReservaPeriodo(getSitio().getId())) {\r\n\t\t\tif (mayorEdad) {\r\n\t\t\t\tmngRes.modificarReserva(getEstudiante(), periodo.getPrdId(), getSitio(), null);\r\n\t\t\t\tlibres = mngRes.traerLibres(getSitio().getId().getArtId());\r\n\t\t\t} else {\r\n\t\t\t\tmngRes.modificarReserva(getEstudiante(), periodo.getPrdId(), getSitio(),\r\n\t\t\t\t\t\tgetDniRepresentante() + \";\" + getNombreRepresentante());\r\n\t\t\t\tlibres = mngRes.traerLibres(getSitio().getId().getArtId());\r\n\t\t\t}\r\n\t\t\tMensaje.crearMensajeINFO(\"Reserva realizada correctamente, no olvide descargar su contrato.\");\r\n\t\t} else {\r\n\t\t\tMensaje.crearMensajeWARN(\"El sitio seleccionado ya esta copado, favor eliga otro.\");\r\n\t\t}\r\n\t}", "public void modifica(DTOAcreditacionGafetes acreGafete) throws Exception ;", "@Override\r\n\tpublic void atualizar(Aluno pAluno) {\r\n\t}", "private void updateUserInfo(String name, @NotNull Uri pickedImgUri, FirebaseUser currentUser) {\n //carico la foto sullo storage di Firebase e chiedo l'url\n StorageReference mStorage = FirebaseStorage.getInstance().getReference().child(\"foto utenti\");\n StorageReference imageFilePath = mStorage.child(pickedImgUri.getLastPathSegment());\n imageFilePath.putFile(pickedImgUri).addOnSuccessListener(taskSnapshot -> {\n //immagine caricata, ora posso avere l'url\n imageFilePath.getDownloadUrl().addOnSuccessListener(uri -> {\n //l'url contiene l'immagine profilo dell'utente\n UserProfileChangeRequest profileUpdate = new UserProfileChangeRequest.Builder().setDisplayName(name).setPhotoUri(uri).build();\n\n currentUser.updateProfile(profileUpdate).addOnCompleteListener(task -> {\n if (task.isSuccessful()) {\n //informazioni utente modificate\n showMessage(\"Registrato con successo!\");\n updateUI();\n }\n });\n\n });\n });\n }", "@Override\n\tpublic void updateUserProfileInfo(String name) throws Exception {\n\n\t}", "public void editarData(){\n\t\talunoTurmaService.inserirAlterar(alunoTurmaAltera);\n\t\t\n\t\t\n\t\tmovimentacao.setDataMovimentacao(alunoTurmaAltera.getDataMudanca());\n\t\tmovimentacaoService.inserirAlterar(movimentacao);\n\t\t\n\t\tFecharDialog.fecharDialogDATAAluno();\n\t\tExibirMensagem.exibirMensagem(Mensagem.SUCESSO);\n\t\talunoTurmaAltera = new AlunoTurma();\n\t\tmovimentacao = new Movimentacao();\n\t\t\n\t\tatualizarListas();\n\t}", "protected void edit(HttpServletRequest request, HttpServletResponse response, EcAnonymousPaymentInfoForm _EcAnonymousPaymentInfoForm, EcAnonymousPaymentInfo _EcAnonymousPaymentInfo) throws Exception{\n\r\n _EcAnonymousPaymentInfo.setAnonymousUserId(WebParamUtil.getLongValue(_EcAnonymousPaymentInfoForm.getAnonymousUserId()));\r\n _EcAnonymousPaymentInfo.setFirstName(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getFirstName()));\r\n _EcAnonymousPaymentInfo.setMiddleInitial(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getMiddleInitial()));\r\n _EcAnonymousPaymentInfo.setLastName(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getLastName()));\r\n _EcAnonymousPaymentInfo.setAddress1(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getAddress1()));\r\n _EcAnonymousPaymentInfo.setAddress2(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getAddress2()));\r\n _EcAnonymousPaymentInfo.setCity(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getCity()));\r\n _EcAnonymousPaymentInfo.setState(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getState()));\r\n _EcAnonymousPaymentInfo.setZip(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getZip()));\r\n _EcAnonymousPaymentInfo.setCountry(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getCountry()));\r\n _EcAnonymousPaymentInfo.setPaymentType(WebParamUtil.getIntValue(_EcAnonymousPaymentInfoForm.getPaymentType()));\r\n _EcAnonymousPaymentInfo.setPaymentNum(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getPaymentNum()));\r\n _EcAnonymousPaymentInfo.setPaymentExpireMonth(WebParamUtil.getIntValue(_EcAnonymousPaymentInfoForm.getPaymentExpireMonth()));\r\n _EcAnonymousPaymentInfo.setPaymentExpireYear(WebParamUtil.getIntValue(_EcAnonymousPaymentInfoForm.getPaymentExpireYear()));\r\n _EcAnonymousPaymentInfo.setPaymentExtraNum(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getPaymentExtraNum()));\r\n _EcAnonymousPaymentInfo.setTimeCreated(WebParamUtil.getDateValue(_EcAnonymousPaymentInfoForm.getTimeCreated()));\r\n\r\n m_actionExtent.beforeUpdate(request, response, _EcAnonymousPaymentInfo);\r\n m_ds.update(_EcAnonymousPaymentInfo);\r\n m_actionExtent.afterUpdate(request, response, _EcAnonymousPaymentInfo);\r\n }", "@Override\n\tpublic void modificada(Mao m, Participante p) {\n\t\t\n\t}", "private void modi() { \n try {\n cvo.getId_cliente();\n cvo.setNombre_cliente(vista.txtNombre.getText());\n cvo.setApellido_cliente(vista.txtApellido.getText());\n cvo.setDireccion_cliente(vista.txtDireccion.getText());\n cvo.setCorreo_cliente(vista.txtCorreo.getText());\n cvo.setClave_cliente(vista.txtClave.getText());\n cdao.actualizar(cvo);\n vista.txtNombre.setText(\"\");\n vista.txtApellido.setText(\"\");\n vista.txtDireccion.setText(\"\");\n vista.txtCorreo.setText(\"\");\n vista.txtClave.setText(\"\");\n JOptionPane.showMessageDialog(null, \"Registro Modificado\");\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Debe ingresar Datos para Modificar registro!\");\n }\n }", "public void updatePago(Integer idPago, Context context){\n SQLiteDatabase db = getWritableDatabase();\n ContentValues actualizarPago = new ContentValues();\n actualizarPago.put(\"activo\",false);\n try{\n db.update(pago,actualizarPago,\"idPago=\"+idPago+\" AND activo = 1\",null);\n Log.d(TAG, \"ACTUALIZACION DE PAGO CORRECTAMENTE \");\n }catch (SQLiteException ex){\n Log.d(TAG, \"SIN PAGO: \"+ex.getMessage());\n Toast.makeText(context, \"No se actualizó el pago\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n public void update(Promocion prm) {\n promocionRepository.update(prm);\n }", "public void updateUsuario(Usuario usuario) {\n\t\t\n\t}", "public void actualiza() {\n //Si el indice de bloque a mover no es -1(no hay que mover bloque)...\n if(bAvanzaBloque) {\n for (Object objeBloque : lnkBloques) {\n Objeto objBloque = (Objeto) objeBloque;\n //Mueves los bloques que hay que mover\n if(objBloque.getVelocidad()!=0) {\n objBloque.abajo();\n }\n }\n }\n //Si la direccion X es true(el proyectil va a la derecha)\n if (bDireccionX) {\n objProyectil.derecha();\n } //Si es false (va ala izquierda)\n else {\n objProyectil.izquierda();\n }\n\n //Si la direccion Y es true(el proyectil va hacia arriba)\n if (!bDireccionY) {\n objProyectil.arriba();\n } //Si es false (va hacia abajo)\n else {\n objProyectil.abajo();\n }\n\n if (iNumBloques == 0) { // Si se acaban los bloques\n iNumBloques = 54; // Se reinicia la variable de los bloques\n iNivel++; // Aumenta el nivel\n // Se reposiciona el proyectil\n objProyectil.reposiciona((objBarra.getX() + objBarra.getAncho() / 2\n - (objProyectil.getAncho() / 2)), (objBarra.getY()\n - objProyectil.getAlto()));\n // Se aumenta la velocidad del proyectil\n objProyectil.setVelocidad(objProyectil.getVelocidad() + 3);\n // Se reposiciona la barra\n objBarra.reposiciona(((getWidth() / 2)\n - (objProyectil.getAncho() / 2)), (getHeight()\n - objBarra.getAlto()));\n // se limpia la lista de bloques\n lnkBloques.clear();\n // se vuelve a llenar y se acomoda\n try {\n acomodaBloques();\n } catch (IOException ioeError) {\n System.out.println(\"Hubo un error al cargar el juego: \"\n + ioeError.toString());\n }\n // se mueve hacia arriba el proyectil\n bDireccionY = false;\n bDireccionX = true;\n }\n\n if (iVidas == 0) {\n bPerdio = true;\n }\n /*if (iVidas == 0) {\n bPerdio = true;\n bPausado = true;\n iNumBloques = 54; // se reinicia la cantidad de bloques\n iNivel = 1; // vuelve al nivel 1\n // La direccion del proyectil sera para arrib\n bDireccionY = false;\n // La direccion que nos interesa es: false: Izq. true: Dererecha\n bDireccionX = true;\n // Se reposiciona el proyectil\n objProyectil.reposiciona((objBarra.getX() + objBarra.getAncho() / 2\n - (objProyectil.getAncho() / 2)), (objBarra.getY()\n - objProyectil.getAlto()));\n // Se reincia la velocidad del proyectil\n objProyectil.setVelocidad(5);\n // Se reposiciona la barra\n objBarra.reposiciona(((getWidth() / 2) \n - (objProyectil.getAncho() / 2)), (getHeight() \n - objBarra.getAlto()));\n // se limpia la lista de bloques\n lnkBloques.clear();\n // se vuelve a llenar y se acomoda\n try {\n acomodaBloques();\n } catch (IOException ioeError) {\n System.out.println(\"Hubo un error al cargar el juego: \"\n + ioeError.toString());\n }\n }\n \n if (!bPerdio) {\n iVidas = 3; // se reinicia la cantidad de vidas\n iScore = 0; // se reincia el score\n }*/\n }", "@Override\n\tpublic void update(User objetc) {\n\t\tuserDao.update(objetc);\n\t}", "@Override\npublic void update(Account account) {\n\taccountdao.update(account);\n}", "private void actualizarInventarios() {\r\n\t\tfor (InventarioProducto inventarioProducto : inventariosEditar) {\r\n\t\t\tproductoEJB.editarInventarioProducto(inventarioProducto);\r\n\t\t}\r\n\t}", "public void actualiza(){\r\n //pregunto si se presiono una tecla de dirección\r\n if(bTecla) {\r\n int iX = basPrincipal.getX();\r\n int iY = basPrincipal.getY();\r\n if(iDir == 1) {\r\n iY -= getHeight() / iMAXALTO;\r\n }\r\n if(iDir == 2) {\r\n iX += getWidth() / iMAXANCHO;\r\n }\r\n if(iDir == 3) {\r\n iY += getHeight() / iMAXALTO;\r\n }\r\n if(iDir == 4) {\r\n iX -= getWidth() / iMAXANCHO;\r\n }\r\n //limpio la bandera\r\n bTecla = false;\r\n \r\n //asigno posiciones en caso de no salirme\r\n if(iX >= 0 && iY >= 0 && iX + basPrincipal.getAncho() <= getWidth()\r\n && iY + basPrincipal.getAlto() <= getHeight()) {\r\n basPrincipal.setX(iX);\r\n basPrincipal.setY(iY);\r\n } \r\n }\r\n \r\n //Muevo los chimpys\r\n for(Base basChimpy : lklChimpys) {\r\n basChimpy.setX(basChimpy.getX() - iAceleracion);\r\n }\r\n \r\n //Muevo los diddys\r\n for(Base basDiddy : lklDiddys) {\r\n basDiddy.setX(basDiddy.getX() + iAceleracion);\r\n }\r\n\r\n }", "public void saveORUpdateObra(Obra obra) throws Exception;", "@Override\n\t/*Método que se utilizará en el momento de modificar los datos de un usuario desde su panel de usuario*/\n\tpublic String modificarUsuario(String nombreusuario, String nombre,String apellidos,String clave,String email,String premium) {\n\t\tDBConnection con = new DBConnection();\n\t\tString sqldatos=\"select * from usuarios where nombreusuario LIKE '\"+nombreusuario+\"'\"; //selecciono los datos actuales del usuario\n\t\t\n\t\ttry {\n\t\t\tStatement st = con.getConnection().createStatement();\n\t\t\tResultSet rs = st.executeQuery(sqldatos);\n\t\t\t//Las siguientes variables guardarán los datos del usuario que tienen en la base de datos \n\t\t\tString nombrebd=\"\";\n\t\t\tString apellidosbd=\"\"; \n\t\t\tString clavebd= \"\"; \n\t\t\tString emailbd= \"\";\n\t\t\tString premiumbd=\"\";\n\t\t\twhile(rs.next()) {\n\t\t\t\tnombrebd=rs.getString(\"nombre\");\n\t\t\t\tapellidosbd= rs.getString(\"apellidos\"); \n\t\t\t\tclavebd= rs.getString(\"clave\"); \n\t\t\t\temailbd=rs.getString(\"email\");\n\t\t\t\tpremiumbd=rs.getString(\"premium\");\n\t\t\t}\n\t\t\t\n\t\t\t//en caso de que algunos de los campos de ese formulario NO estén completos, se pondrán los datos que ya se tenían en la BD relacionados con el mismo\n\t\t\t//si esto no se hiciese así, quedarían datos en blanco\n\t\t\tif(nombre.equals(\"\")) {\n\t\t\t\tnombre=nombrebd;\n\t\t\t}\n\t\t\tif(apellidos.equals(\"\")) {\n\t\t\t\tapellidos=apellidosbd;\n\t\t\t}\n\t\t\tif(clave.equals(\"\")) {\n\t\t\t\tclave=clavebd;\n\t\t\t}\n\t\t\tif(email.equals(\"\")) {\n\t\t\t\temail=emailbd;\n\t\t\t}\n\t\t\tif(premium.equals(\"\")) {\n\t\t\t\tpremium=premiumbd;\n\t\t\t}\n\t\t\t\n\t\t\tString sqlmodificacion=\"Update usuarios SET nombre='\"+nombre+\"', apellidos='\"+apellidos+\"',clave='\"+clave+\"', email='\"+email+\"', premium='\"+premium+\"' where nombreusuario LIKE '\"+nombreusuario+\"'\";\n\t\t\tst.executeQuery(sqlmodificacion); //se modifica el usuario \n\t\t\tst.close();\n\t\t\treturn \"OK\"; //se devuelve para mostrarse en la web este mensaje\n\t\t}catch(Exception e){\n\t\t\treturn e.getMessage();\n\t\t}finally{\n\t\t\tcon.desconectar();\n\t\t}\n\t}", "public void modificar() {\n try {\n if(!fecha.equals(null)){\n Dr_siseg_usuarioBean usuario = new Dr_siseg_usuarioBean();\n FacesContext facesContext = FacesContext.getCurrentInstance();\n usuario = (Dr_siseg_usuarioBean) facesContext.getExternalContext().getSessionMap().get(\"usuario\");\n \n calendar.setTime((Date) this.fecha);\n this.Selected.setApel_fecha_sesion(calendar.getTime());\n\n ApelacionesDao apelacionesDao = new ApelacionesDao();\n apelacionesDao.IME_APELACIONES(2, Selected); \n\n BitacoraSolicitudDao bitacoraSolicitudDao = new BitacoraSolicitudDao();//INSERTA EL MOVIMIENTO EN LA BITACORA\n BitacoraSolicitudBean bitacoraSolicitudBean = new BitacoraSolicitudBean();\n bitacoraSolicitudBean.setBit_sol_id(this.Selected.getApel_sol_numero());\n bitacoraSolicitudBean.setUsuarioBean(usuario);\n bitacoraSolicitudBean.setBit_tipo_movimiento(\"1\");\n bitacoraSolicitudBean.setBit_detalle(\"Fue modificada la apelacion\");\n bitacoraSolicitudDao.dmlDr_regt_bitacora_solicitud(bitacoraSolicitudBean);\n\n this.Listar();\n this.Selected = new ApelacionesBean();\n addMessage(\"Guadado Exitosamente\", 1);\n }else\n {\n addMessage(\"Es requerida la fecha\",1 );\n }\n } catch (ExceptionConnection ex) {\n Logger.getLogger(ApelacionController.class.getName()).log(Level.SEVERE, null, ex);\n addMessage(\"Se produjo un error al insertar el registro, contacte al administrador del sistema\", 1);\n }\n }", "public void editarHospede() {\n int i;\n if (hospedesCadastrados.isEmpty()) {\n System.err.println(\"Nao existe hospedes cadastrados\\n\");\n } else {\n listarHospedes();\n int cpf = verifica();\n for (i = 0; i < hospedesCadastrados.size(); i++) {\n if (hospedesCadastrados.get(i).getCpf() == cpf) {//hospede\n System.err.println(\"O que deseja editar:\\n Nome(1)\\n\"\n + \"Cpf(2)\\nE-MAIL(3)\");\n int a = verifica();\n switch (a) {\n case 1:\n System.err.println(\"Digite o novo nome do hospede:\\n\");\n String nome = ler.next();\n hospedesCadastrados.get(i).setNome(nome);\n System.err.println(\"Atualzacao concluida!\\n\");\n break;\n case 2:\n System.err.println(\"Digite o novo CPF do hospede:\\n\");\n int cpf1 = verifica();\n hospedesCadastrados.get(i).setCpf(cpf1);\n System.err.println(\"Atualzacao concluida!\\n\");\n break;\n case 3:\n System.err.println(\"Digite o novo E-MAIL do hospede:\\n\");\n String email = ler.next();\n hospedesCadastrados.get(i).setEmail(email);\n System.err.println(\"Atualzacao concluida!\\n\");\n break;\n }\n\n } else if (hospedesCadastrados.size() == i) {\n System.err.println(\"Nao existem hospedes com esse cpf cadastrados!\\n\");\n }\n }\n }\n }", "public void modifierProfil(User user) {\n \t\r\n \tif (!userRepository.findById(user.getId()).isPresent()) {\r\n \t\tthrow new EntityNotFoundException(\"L'utilisateur avec id \" + user.getId() + \" n'existe pas.\");\r\n \t}\r\n \tuserRepository.save(user);\r\n }", "@Override\n\tvoid postarFoto() {\n\n\t}" ]
[ "0.6795131", "0.66594", "0.6317607", "0.62241", "0.6180056", "0.6174173", "0.6056303", "0.5977137", "0.59685975", "0.5956413", "0.5945815", "0.5945688", "0.59325546", "0.5908618", "0.5884456", "0.58643484", "0.5851259", "0.577304", "0.57717955", "0.57694", "0.5760908", "0.57573", "0.5747069", "0.5728839", "0.57267785", "0.5725861", "0.57218146", "0.57043225", "0.5702365", "0.5680265", "0.56802505", "0.5678286", "0.5661723", "0.5654658", "0.5636379", "0.5626734", "0.5617204", "0.5605095", "0.5602053", "0.5599732", "0.5597753", "0.5577469", "0.5570762", "0.55684996", "0.55666167", "0.5550979", "0.55401474", "0.55208623", "0.5516406", "0.5513272", "0.5509377", "0.5499786", "0.5495665", "0.54915905", "0.54912037", "0.54900986", "0.5488887", "0.5486593", "0.54828566", "0.54734933", "0.54714316", "0.5464289", "0.5458029", "0.5451088", "0.5443976", "0.5438955", "0.54218084", "0.5417528", "0.5412384", "0.54118854", "0.54046416", "0.5399945", "0.5393321", "0.53881794", "0.5379488", "0.5377648", "0.5373713", "0.5365774", "0.5364561", "0.5361845", "0.5355632", "0.5354784", "0.53509027", "0.53433454", "0.53433126", "0.53426766", "0.533424", "0.5333272", "0.5333069", "0.533219", "0.53295964", "0.53251183", "0.532269", "0.5300517", "0.52894145", "0.5287738", "0.528305", "0.5279935", "0.52775955", "0.52763253", "0.5275352" ]
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.completa_perfil, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.72461367", "0.7201596", "0.7195268", "0.7177002", "0.71069986", "0.7039653", "0.70384306", "0.70115715", "0.7010647", "0.69803435", "0.6945406", "0.69389313", "0.6933442", "0.69172275", "0.69172275", "0.6890826", "0.6883689", "0.687515", "0.6874831", "0.68615955", "0.68615955", "0.68615955", "0.68615955", "0.68522274", "0.6846375", "0.68189865", "0.68165565", "0.68124795", "0.6812267", "0.6812267", "0.68056566", "0.6800461", "0.6797465", "0.6790805", "0.6789039", "0.6787885", "0.6782993", "0.67597246", "0.67570525", "0.6747535", "0.6743268", "0.6743268", "0.6740546", "0.67395175", "0.67256093", "0.6723954", "0.6722248", "0.6722248", "0.6720444", "0.67118156", "0.6706721", "0.6704184", "0.66993994", "0.66988564", "0.669681", "0.66943884", "0.66860807", "0.668306", "0.668306", "0.6682587", "0.668012", "0.6678661", "0.6676379", "0.6668044", "0.66669863", "0.66628903", "0.6657356", "0.6657356", "0.6657356", "0.66565585", "0.665397", "0.665397", "0.665397", "0.66525495", "0.66518986", "0.66496557", "0.6648199", "0.6646489", "0.66462386", "0.6646177", "0.6645531", "0.66453475", "0.66446036", "0.66438025", "0.6642411", "0.6641632", "0.6638948", "0.6634394", "0.66336566", "0.6632082", "0.66315377", "0.66315377", "0.66315377", "0.6628936", "0.6627818", "0.6627061", "0.66256744", "0.6623986", "0.661993", "0.6618369", "0.6618369" ]
0.0
-1
Represents a type of search
public static interface SearchType { /** * Creates a search of this type with the given query * * @param search The search query * @param builder The search builder that is compiling the search * @return The compiled search object representing the given query */ public abstract Search create(String search, SearchBuilder builder); /** @return All headers that may begin a search of this type */ public abstract String [] getHeaders(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSearchType() {\r\n\t\treturn searchType;\r\n\t}", "public String getSearchType() {\r\n\t\treturn searchType;\r\n\t}", "public int getSearchType()\r\n\t{\r\n\t\treturn searchType;\r\n\t}", "public abstract S getSearch();", "SearchResultsType createSearchResultsType();", "private AniteQueryType(final int searchType)\r\n\t{\r\n\t\tthis.searchType = searchType;\r\n\t}", "public SearchType getSearchType() {\n\t\treturn searchType;\n\t}", "Search getSearch();", "public void setSearchType(final int searchType)\r\n\t{\r\n\t\tthis.searchType = searchType;\r\n\t}", "abstract public void search();", "public interface SearchInterface {\n int ACTION_TYPE_AMBIGUOUS = 1;\n int ACTION_TYPE_SWITCH_CHANNEL = 2;\n int ACTION_TYPE_SWITCH_INPUT = 3;\n\n /**\n * Search channels, inputs, or programs.\n * This assumes that parental control settings will not be change while searching.\n *\n * @param action One of {@link #ACTION_TYPE_SWITCH_CHANNEL}, {@link #ACTION_TYPE_SWITCH_INPUT},\n * or {@link #ACTION_TYPE_AMBIGUOUS},\n */\n List<SearchResult> search(String query, int limit, int action);\n}", "public interface Searchable {\n\n}", "private Search() {}", "public String getSearchClass() {\r\n return searchClass;\r\n }", "@Override\r\n\tpublic <T> SearchResult<T> search(String index, String type, String query, Class<T> clz) throws ElasticSearchException{\r\n\t\tQuery esQuery = getQuery(this.indexName, type, query);\r\n\t\tQueryResponse response = query(esQuery);\r\n\t\t\r\n\t\tSearchResult<T> result = new SearchResult<T>();\t\t\r\n\t\tresult.setHits(response.getHits(clz));\r\n\t\t\r\n\t\tif(response.hasAggregations())\r\n\t\t\tresult.setAggregations(response.getAggregations());\r\n\t\t\r\n\t\treturn result;\r\n\t}", "abstract public boolean performSearch();", "public interface SearchResult {\n\t/**\n\t * Returns the meta data of this entity associated with the search result.\n\t * \n\t * @return\tThe meta data\n\t */\n\tMetadata getMetaData();\n\t\n\t/**\n\t * Returns the identifier of this entity associated with the search result.\n\t * \n\t * @return\tThe identifier\n\t */\n\tString getHash();\n\t\n\t/**\n\t * Returns the hash algorithm used for hashing the content.\n\t * \n\t * @return The hash algorithm\n\t */\n\tString getHashAlgorithm();\n}", "public MagicSearch createMagicSearch();", "List<SearchResult> search(SearchQuery searchQuery);", "public void search() {\r\n \t\r\n }", "public interface SearchQuerySet extends QuerySet\n{\n\n // for AbstractSearch\n public static final int STAT_MODELS = 1;\n public static final int STAT_CLUSTERS = 2;\n public static final int STAT_GENOMES = 4;\n public static final int STAT_MODEL_CLUSTERS = 8;\n\n public String getStatsById(Collection data);\n public String getStatsByQuery(String query);\n public String getStatsById(Collection data,int stats);\n public String getStatsByQuery(String query,int stats);\n \n // for BlastSearch\n public String getBlastSearchQuery(Collection dbNames, Collection keys, KeyTypeUser.KeyType keyType);\n \n //for ClusterIDSearch\n public String getClusterIDSearchQuery(Collection input, int limit, int[] DBs, KeyTypeUser.KeyType keyType);\n \n // for ClusterNameSearch\n public String getClusterNameSearchQuery(Collection input, int limit, int[] DBs, KeyTypeUser.KeyType keyType);\n \n // for DescriptionSearch\n public String getDescriptionSearchQuery(Collection input, int limit, int[] DBs, KeyTypeUser.KeyType keyType);\n \n // for GoSearch \n public String getGoSearchQuery(Collection input, int limit, KeyTypeUser.KeyType keyType);\n \n // for GoTextSearch\n public String getGoTextSearchQuery(Collection input, int limit, KeyTypeUser.KeyType keyType);\n \n // for IdSearch\n public String getIdSearchQuery(Collection input, int limit, int[] DBs, KeyTypeUser.KeyType keyType);\n \n // for QueryCompSearch\n public String getQueryCompSearchQuery(String comp_id, String status, KeyTypeUser.KeyType keyType);\n \n // for QuerySearch\n public String getQuerySearchQuery(String queries_id, KeyTypeUser.KeyType keyType); \n \n // for SeqModelSearch\n public String getSeqModelSearchQuery(Collection model_ids, KeyTypeUser.KeyType keyType);\n \n // for UnknowclusterIdSearch\n public String getUnknownClusterIdSearchQuery(int cluster_id, KeyTypeUser.KeyType keyType);\n \n // for ProbeSetSearch\n public String getProbeSetSearchQuery(Collection input, int limit, KeyTypeUser.KeyType keyType);\n \n // for ProbeSetKeySearch\n public String getProbeSetKeySearchQuery(Collection input, int limit, KeyTypeUser.KeyType keyType);\n \n // for QueryTestSearch\n public String getQueryTestSearchQuery(String query_id, String version, String genome_id);\n \n // for QueryStatsSearch\n public String getQueryStatsSearchQuery(List query_ids,List DBs);\n \n // for PskClusterSearch\n public String getPskClusterSearchQuery(int cluster_id,KeyTypeUser.KeyType keyType);\n \n // for ClusterCorrSearch\n public String getClusterCorrSearchQuery(int cluster_id, int psk_id, KeyTypeUser.KeyType keyType);\n \n // for UnknownGenesSearch\n public String getUnknownGenesSearchQuery(Collection sources, KeyTypeUser.KeyType keyType);\n \n}", "public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }", "Page<TypeBonDTO> search(String query, Pageable pageable);", "public search() {\n }", "@In String search();", "public void search() {\n }", "boolean getSearchable();", "@Override\n\tpublic void search() {\n\t}", "@Override\r\n\tpublic void search() {\n\r\n\t}", "public SearchQueryBuilder(String query, String searchType) {\n this(query, SearchTypeService.getSearchModel(searchType));\n }", "List<TypePatientPropertyCondition> search(String query);", "List<Corretor> search(String query);", "public interface ISearchEngine {\n\n enum SearchParam {\n CORE,\n EXPERIMENT,\n HOST,\n PORT\n }\n\n /**\n * Query engine for searching relevant documents\n * @return\n */\n SearchResponse query(SearchRequest request, Map<SearchParam, String> params);\n\n /**\n * Query search engine for spell correction\n * @param request: spell check request\n * @return\n */\n SpellResponse spellQuery(SearchRequest request, Map<SearchParam, String> params);\n}", "void searchProbed (Search search);", "public abstract Solution<T> search(Searchable<T> s);", "public interface IndexSearch {\n /**\n * Returns the index type.\n * @return type\n */\n IndexType type();\n\n /**\n * Returns the current token.\n * @return token\n */\n byte[] token();\n}", "public void setSearchType(final String searchType) {\r\n\t\tif (searchType == null || !searchType.equals(Constants.SEARCH_TYPE_CAT)\r\n\t\t\t\t&& !searchType.equals(Constants.SEARCH_TYPE_KY_WD) && !searchType.equals(Constants.SEARCH_TYPE_PRD)) {\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid value of Search Type: \" + searchType);\r\n\t\t}\r\n\t\tthis.searchType = searchType;\r\n\t}", "@Override\n\tpublic boolean isSearching() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isSearching() {\n\t\treturn false;\n\t}", "public void setSearchClass(String searchClass) {\r\n this.searchClass = searchClass;\r\n }", "public void setTypeFilter(String typeFilter)\r\n\t{\r\n\t\tif ((this.pageBackingBean.getCurrentUser() != null && this.pageBackingBean.getCurrentUser().isActive())\r\n\t\t || this.settingEjb.getBooleanSettingByName(Constants.SETTING_SEARCH_ALLOW_NON_USERS))\r\n\t\t{\r\n\t\t\t// Ensure that an Indexing is not taking place\r\n\t\t\tif (this.settingEjb.getBooleanSettingByName(Constants.SETTING_SEARCH_INDEXING_COMMENCED))\r\n\t\t\t{\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.typeFilter = typeFilter;\r\n\t\t\tthis.resultsPage = 1;\r\n\t\t\t\r\n\t\t\t// If we're browsing by subject\r\n\t\t\tif (this.typeFilter.equals(\"Subject\"))\r\n\t\t\t{\r\n\t\t\t\tthis.indexEjb.setBrowseQueryBySubject();\r\n\t\t\t\tthis.totalHits = this.indexEjb.getTotalSubjects();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// If we're browsing by type\r\n\t\t\tif (this.typeFilter.equals(\"Type\"))\r\n\t\t\t{\r\n\t\t\t\tthis.indexEjb.setBrowseQueryByType();\r\n\t\t\t\tthis.totalHits = this.indexEjb.getTotalTypes();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// If we're browsing by Creator\r\n\t\t\tif (this.typeFilter.equals(\"Creator\"))\r\n\t\t\t{\r\n\t\t\t\tthis.indexEjb.setBrowseQueryByCreator();\r\n\t\t\t\tthis.totalHits = this.indexEjb.getTotalCreators();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// If we're browsing by Location\r\n\t\t\tif (this.typeFilter.equals(\"Location\"))\r\n\t\t\t{\r\n\t\t\t\tthis.indexEjb.setBrowseQueryByLocation();\r\n\t\t\t\tthis.totalHits = this.indexEjb.getTotalNonEmptyLocations();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "SearchResult<TimelineMeta> search(SearchQuery searchQuery);", "@java.lang.Override\n public com.clarifai.grpc.api.Search getSearch() {\n if (inputSourceCase_ == 10) {\n return (com.clarifai.grpc.api.Search) inputSource_;\n }\n return com.clarifai.grpc.api.Search.getDefaultInstance();\n }", "TSearchResults createSearchResults(TSearchQuery searchQuery);", "@java.lang.Override\n public com.clarifai.grpc.api.SearchOrBuilder getSearchOrBuilder() {\n if (inputSourceCase_ == 10) {\n return (com.clarifai.grpc.api.Search) inputSource_;\n }\n return com.clarifai.grpc.api.Search.getDefaultInstance();\n }", "void search();", "void search();", "private Object queryDatabase(String searchType, String searchTerm) {\n Connection connection = null;\n PreparedStatement statement = null;\n Search search = new Search();\n ResultSet resultSet = null;\n String queryString = null;\n\n try {\n connection = getConnection(connection);\n\n queryString = getQueryString(searchType);\n\n statement = connection.prepareStatement(queryString);\n \n if (searchType.equals(\"employeeId\")) {\n statement.setString(1, searchTerm);\n } else {\n statement.setString(1, searchTerm + \"%\");\n }\n\n resultSet = statement.executeQuery();\n\n buildEmployeeList(resultSet, search);\n } catch (SQLException sqlException) {\n sqlException.printStackTrace();\n } catch (Exception exception) {\n System.err.println(\"General Error\");\n exception.printStackTrace();\n } finally {\n try {\n if (resultSet != null) {\n resultSet.close();\n }\n\n\n if (statement != null) {\n statement.close();\n }\n\n\n if (connection != null) {\n connection.close();\n }\n } catch (SQLException sqlException) {\n sqlException.printStackTrace();\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n }\n return search;\n }", "List<DataTerm> search(String searchTerm);", "public QueryType getType();", "List<TypeTreatmentPlanStatuses> search(String query);", "private void search(Object value)\r\n\t\t{\n\r\n\t\t}", "@Override\n public Data3DPlastic search() {\n return super.search();\n }", "List<ResultDTO> search(String query);", "@GetMapping(\"/search\")\n public ResponseEntity searchField(@RequestParam(\"type\") String type,@RequestParam(\"value\")String value){\n return new ResponseEntity<>(hr_service.findByField(type,value),HttpStatus.OK);\n }", "SearchResult<TimelineMeta> search(SearchParameter searchParameter);", "@java.lang.Override\n public com.clarifai.grpc.api.Search getSearch() {\n if (searchBuilder_ == null) {\n if (inputSourceCase_ == 10) {\n return (com.clarifai.grpc.api.Search) inputSource_;\n }\n return com.clarifai.grpc.api.Search.getDefaultInstance();\n } else {\n if (inputSourceCase_ == 10) {\n return searchBuilder_.getMessage();\n }\n return com.clarifai.grpc.api.Search.getDefaultInstance();\n }\n }", "public SearchResponse search(SearchRequest request) throws SearchServiceException;", "java.lang.String getSearchValue();", "public List<? extends GTData> search(String query, Type type) throws IOException {\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n\n Search search = new Search.Builder(query)\n .addIndex(INDEX_NAME)\n .addType(type.toString())\n .setParameter(Parameters.SIZE, 10000)\n .build();\n SearchResult result = client.execute(search);\n\n List<? extends GTData> dataList = null;\n if (type.equals(Bid.class)) {\n dataList = result.getSourceAsObjectList(Bid.class);\n } else if (type.equals(Task.class)) {\n dataList = result.getSourceAsObjectList(Task.class);\n } else if (type.equals(User.class)) {\n dataList = result.getSourceAsObjectList(User.class);\n } else if (type.equals(Photo.class)) {\n dataList = result.getSourceAsObjectList(Photo.class);\n }\n\n return dataList;\n }", "public interface SearchTypeSearchRepository extends ElasticsearchRepository<SearchType, Long> {\n}", "SearchResponse search(SearchRequest searchRequest) throws IOException;", "public interface SearchCallback<T, O> extends IClusterable {\r\n public SearchCallbackResult<T> search(String searchString, O searchBy);\r\n }", "public String getQueryType();", "public String getQueryType();", "TSearchQuery createSearchQuery(SearchQueryDefinitionAPI searchQueryDefinition);", "public interface SearchResult\n{\n /**\n * Title of search result item.\n * \n * @return String title\n */\n String getTitle();\n /**\n * Name of search result item.\n * \n * @return String title\n */\n String getName();\n /**\n * Select the link of the search result item.\n * \n * @return true if link found and selected\n */\n HtmlPage clickLink();\n /**\n * Verify if folder or not, true if search row represent\n * a folder.\n * \n * @return boolean true if search result is of folder\n */\n boolean isFolder();\n \n /**\n * Date of search result item.\n * \n * @return String Date\n */\n \n String getDate();\n \n /**\n * Site of search result item.\n * \n * @return String Site\n */\n \n String getSite();\n \n /**\n * Select the site link of the search result item.\n * \n * @return true if link found and selected\n */\n HtmlPage clickSiteLink();\n \n /**\n * Select the Date link of the search result item.\n * \n * @return true if link found and selected\n */\n \n\t HtmlPage clickDateLink();\n\t \n\t /**\n * Actions of search result item.\n * \n * @return enum ActionSet\n */\n\t ActionsSet getActions();\n\n /**\n * Method to click on content path in the details section\n *\n * @return SharePage\n */\n public HtmlPage clickContentPath();\n\n /**\n * Method to get thumbnail url\n *\n * @return String\n */\n public String getThumbnailUrl();\n\n /**\n * Method to get preview url\n *\n * @return String\n */\n public String getPreViewUrl();\n\n /**\n * Method to get thumbnail of element\n *\n * @return String\n */\n public String getThumbnail();\n\n /**\n * Method to click on Download icon for the element\n */\n public void clickOnDownloadIcon();\n\n /**\n * Select the site link of the search result item.\n *\n * @return true if link found and selected\n */\n HtmlPage clickSiteName();\n\t \n\t/**\n * Select the Image link of the search result item.\n * \n * @return PreViewPopUpPage if link found and selected\n */\n\tPreViewPopUpPage clickImageLink();\n\n\tHtmlPage selectItemCheckBox();\n\n\tboolean isItemCheckBoxSelected();\n\t\n}", "public Search(String value) {\n this(value, false);\n }", "@Override\n\tpublic int countBySearch(String searchType, String searchValue) throws Exception {\n\t\treturn 0;\n\t}", "@java.lang.Override\n public com.clarifai.grpc.api.SearchOrBuilder getSearchOrBuilder() {\n if ((inputSourceCase_ == 10) && (searchBuilder_ != null)) {\n return searchBuilder_.getMessageOrBuilder();\n } else {\n if (inputSourceCase_ == 10) {\n return (com.clarifai.grpc.api.Search) inputSource_;\n }\n return com.clarifai.grpc.api.Search.getDefaultInstance();\n }\n }", "QueryType createQueryType();", "ResultSet searchType(String type) {\n \ttry {\n \t\tStatement search = this.conn.createStatement();\n \tString query = \"SELECT * \"\n \t\t\t+ \"FROM Pokemon AS P, Types AS T \"\n \t\t\t+ \"WHERE (P.Type1=T.TypeID OR P.Type2 = T.TypeID) AND \"\n \t\t\t+ \"T.name = \" + \"'\" + type + \"'\";\n \t\n \treturn search.executeQuery(query);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n }", "public PostingsList search( Query query, int queryType, int rankingType, int structureType ) {\r\n switch(queryType){\r\n case Index.INTERSECTION_QUERY : \r\n return searchIntersection( query, rankingType, structureType);\r\n\r\n case Index.PHRASE_QUERY :\r\n return searchPhrase( query, rankingType, structureType);\r\n default:\r\n break;\r\n }\r\n\r\n return null;\r\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}", "private SearchQuery(String _query, WebSearchType webSearchType) {\n this._query = _query;\n this._Web_search = webSearchType;\n }", "@Override\n\tpublic void onClick(View v) {\n\t\tif (searchText.equals(\"Restaurants\")){\n\t\t\tsearchType=\"restaurant\";\t\n\t\t}\n\t\telse if (searchText.equals(\"Shopping Mall\")){\n\t\t\tsearchType=\"shopping_mall\";\n\t\t}\n\t\telse if (searchText.equals(\"ATM\")){\n\t\t\tsearchType=\"atm\";\n\t\t}\n\t\telse if (searchText.equals(\"Bank\")){\n\t\t\tsearchType=\"bank\";\n\t\t}\n\t\telse if (searchText.equals(\"Hospital\")){\n\t\t\tsearchType=\"hospital\";\n\t\t}\n\t\tloadPage();\n\t\t\n\t}", "DistributedSearchType createDistributedSearchType();", "public abstract Search create(String search, SearchBuilder builder);", "@Override\n\tprotected void executeSearch(String term) {\n\t\t\n\t}", "public NotSearch()\n\t\t{\n\t\t}", "public interface SearchFilter {\n String getFilter();\n}", "public String getSearchHint();", "public abstract List<LocationDto> search_type_building\n (BuildingDto building, LocationTypeDto type);", "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 Search() {\n this.timestamp = System.currentTimeMillis();\n }", "@Override\n\tpublic List<BoardVO> admin_search(String type, String keyword) {\n\t\treturn null;\n\t}", "public interface SearchResult {\n\n\t/**\n\t * Gets the rank of the result fetched.\n\t * \n\t * @return The rank of the result (starting with 1).\n\t */\n\tpublic int getRank(); \n\n /**\n * Gets the title of the result fetched.\n * \n * @return The title of result.\n */\n public String getTitle();\n \n /**\n * Gets the URL that can be used for accessing the document. The URL is specifically required\n * when fetching the content.\n * \n * @return The URL of the result.\n * @throws SearchResultException The URL might be malformed.\n */\n public URL getURL() throws SearchResultException; \n \n /**\n * Get a short summary of the document. This summary is usually provided by the SearchEngine\n * and should therefore not resolve in an exception.\n * \n * @return The summary of the result.\n */\n public String getSummary();\n \n /**\n * Retrieves the HTML content of a result. For this, a HTTP connection has to be created that\n * can result in connection exceptions. These exceptions are packed in abstract \n * \"SearchResultException\". The content will be plain text.\n * \n * @return The content document related to a result\n * @throws SearchResultException The retrieval of the document might fail.\n */\n public String getContent() throws SearchResultException;\n \n /**\n * Retrieves all links of a result document. For this the content document is searched for all\n * links and forms. Their URLs are extracted, cleaned, and returned as a list. \n * \n * @return List of URLs of documents linked to by this document\n * @throws SearchResultException The document might not be available and retrieval might fail.\n */\n public Set<String> getLinks() throws SearchResultException;\n}", "List<OwnerOperatorDTO> search(String query);", "SearchResponse search(Pageable pageable, QueryBuilder query, AggregationBuilder aggregation);", "public String conductSearchForItem()\r\n\t{\r\n\t\tAdvancedSearch_Model query = new AdvancedSearch_Model();\r\n\t\t\r\n\t\tif (this.typeFilter.equals(\"Subject\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.CONTAIN, Constants.SEARCH_DOCUMENT_FIELD_CATEGORY, this.selectedItem.getTerm());\r\n\t\t}\r\n\t\tif (this.typeFilter.equals(\"Type\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.TERM_QUERY, Constants.SEARCH_DOCUMENT_FIELD_TYPE, this.selectedItem.getTerm());\r\n\t\t}\r\n\t\tif (this.typeFilter.equals(\"Creator\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.CONTAIN, Constants.SEARCH_DOCUMENT_FIELD_CREATOR, this.selectedItem.getTerm());\r\n\t\t}\r\n\t\tif (this.typeFilter.equals(\"Location\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.TERM_QUERY, Constants.SEARCH_DOCUMENT_FIELD_LOCATION,\r\n\t\t\t this.selectedItem.getTerm());\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.TERM_QUERY, Constants.SEARCH_DOCUMENT_FIELD_TYPE, this.selectedItem.getType());\r\n\t\t}\r\n\t\t\r\n\t\t// Set the AdvancedSearch_Model on the Search Backing Bean\r\n\t\tthis.searchBackingBean.setAdvancedQueryModel(query);\r\n\t\tthis.searchBackingBean.setSimpleOrAdvanced(SimpleOrAdvanced.ADVANCED);\r\n\t\tthis.searchBackingBean.setSearchType(\"all\");\r\n\t\tthis.searchBackingBean.autoSearch();\r\n\t\t\r\n\t\t// Transfer the user to the Search Results page\r\n\t\tthis.pageBackingBean.setRenderPage(Constants.PAGE_RESTRICTED_SEARCHRESULTS);\r\n\t\t\r\n\t\treturn \"update\";\r\n\t}", "@SuppressWarnings(\"unchecked\")\n private SearchT toNativeQuery() {\n initSearch();\n\n BasicRecordType basicRecordType = BasicRecordType.getByType(searchRecordTypeDesc.getType());\n if (BasicRecordType.TRANSACTION == basicRecordType) {\n SearchFieldAdapter<?> fieldAdapter = metaDataSource.getBasicMetaData().getSearchFieldAdapter(SearchFieldType.SELECT);\n Object searchTypeField = fieldAdapter.populate(LIST_ANY_OF, Arrays.asList(recordTypeInfo.getRecordType().getType()));\n Beans.setProperty(searchBasic, NsObjectTransducer.TYPE, searchTypeField);\n\n } else if (BasicRecordType.CUSTOM_RECORD == basicRecordType) {\n CustomRecordTypeInfo customRecordTypeInfo = (CustomRecordTypeInfo) recordTypeInfo;\n NsRef customizationRef = customRecordTypeInfo.getCustomizationRef();\n\n Object recType = metaDataSource.getBasicMetaData().createInstance(RefType.CUSTOMIZATION_REF.getTypeName());\n Beans.setProperty(recType, NsObjectTransducer.SCRIPT_ID, customizationRef.getScriptId());\n // Avoid using Internal Id for custom records\n Beans.setProperty(recType, NsObjectTransducer.TYPE, Beans.getEnumAccessor(\n (Class<Enum<?>>) Beans.getBeanInfo(recType.getClass()).getProperty(NsObjectTransducer.TYPE).getWriteType())\n .getEnumValue(customizationRef.getType()));\n\n Beans.setProperty(searchBasic, NsObjectTransducer.REC_TYPE, recType);\n }\n\n // Set custom fields\n if (!customFieldList.isEmpty()) {\n Object customFieldListWrapper = metaDataSource.getBasicMetaData().createInstance(SEARCH_CUSTOM_FIELD_LIST);\n List<Object> customFields = (List<Object>) Beans.getProperty(customFieldListWrapper, NsObjectTransducer.CUSTOM_FIELD);\n for (Object customField : customFieldList) {\n customFields.add(customField);\n }\n Beans.setProperty(searchBasic, NsObjectTransducer.CUSTOM_FIELD_LIST, customFieldListWrapper);\n }\n\n SearchT searchRecord;\n if (searchRecordTypeDesc.getSearchClass() != null) {\n Beans.setProperty(search, BASIC, searchBasic);\n searchRecord = search;\n if (searchAdvanced != null) {\n Beans.setProperty(searchAdvanced, CONDITION, search);\n searchRecord = searchAdvanced;\n }\n } else {\n searchRecord = searchBasic;\n }\n\n return searchRecord;\n }", "ReagentSearch getReagentSearch();", "@Action\r\n public String search() {\n ServiceFunctions.clearCache();\r\n\r\n if (isAdmin()) {\r\n return adminSearch();\r\n }\r\n\r\n return publicSearch();\r\n }", "io.dstore.values.StringValueOrBuilder getSearchValueOrBuilder();", "public PostingsList search( Query query, int queryType, int rankingType,\n int structureType ) {\n double idf_threshold = new Double(0);\n double index_elimination = new Double(0.008);\n // System.err.println(pageRank[docNumber.get(\"121\")]);\n\n if (query.size()>0){\n switch (queryType){\n case Index.INTERSECTION_QUERY:\n System.err.println(\"Intersection query\");\n return intersect(query);\n case Index.PHRASE_QUERY:\n System.err.println(\"Phrase query\");\n return phrase_query(query);\n case Index.RANKED_QUERY:\n System.err.println(\"Ranked query\");\n switch(rankingType){\n case Index.TF_IDF: return ranked_query(query, 1, idf_threshold);\n case Index.PAGERANK: return ranked_query(query, 0, idf_threshold);//ranked_query(query, 0, idf_threshold);//ranked_query2(query, 0);\n case Index.COMBINATION: return ranked_query(query, index_elimination, idf_threshold);\n }\n default:\n System.out.println(\"not valid query\");\n return null;\n }\n }\n else\n // Query was empty\n return null;\n }", "public void performSearch() {\n History.newItem(MyWebApp.SEARCH_RESULTS);\n getMessagePanel().clear();\n if (keywordsTextBox.getValue().isEmpty()) {\n getMessagePanel().displayMessage(\"Search term is required.\");\n return;\n }\n mywebapp.getResultsPanel().resetSearchParameters();\n //keyword search does not restrict to spots\n mywebapp.addCurrentLocation();\n if (markFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(markFilterCheckbox.getValue());\n }\n if (contestFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setContests(contestFilterCheckbox.getValue());\n }\n if (geoFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setGeospatialOff(!geoFilterCheckbox.getValue());\n }\n if (plateFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(plateFilterCheckbox.getValue());\n }\n if (spotFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setSpots(spotFilterCheckbox.getValue());\n }\n String color = getValue(colorsListBox);\n mywebapp.getResultsPanel().getSearchParameters().setColor(color);\n String manufacturer = getValue(manufacturersListBox);\n if (manufacturer != null) {\n Long id = new Long(manufacturer);\n mywebapp.getResultsPanel().getSearchParameters().setManufacturerId(id);\n }\n String vehicleType = getValue(vehicleTypeListBox);\n mywebapp.getResultsPanel().getSearchParameters().setVehicleType(vehicleType);\n// for (TagHolder tagHolder : tagHolders) {\n// mywebapp.getResultsPanel().getSearchParameters().getTags().add(tagHolder);\n// }\n mywebapp.getResultsPanel().getSearchParameters().setKeywords(keywordsTextBox.getValue());\n mywebapp.getMessagePanel().clear();\n mywebapp.getResultsPanel().performSearch();\n mywebapp.getTopMenuPanel().setTitleBar(\"Search\");\n //mywebapp.getResultsPanel().setImageResources(resources.search(), resources.searchMobile());\n }", "@SuppressWarnings(\"unchecked\")\n private void initSearch() {\n if (searchBasic != null) {\n return;\n }\n try {\n // get a search class instance\n if (searchRecordTypeDesc.getSearchClass() != null) {\n search = (SearchT) searchRecordTypeDesc.getSearchClass().newInstance();\n }\n\n // get a advanced search class instance and set 'savedSearchId' into it\n searchAdvanced = null;\n if (StringUtils.isNotEmpty(savedSearchId)) {\n if (searchRecordTypeDesc.getSearchAdvancedClass() != null) {\n searchAdvanced = (SearchT) searchRecordTypeDesc.getSearchAdvancedClass().newInstance();\n Beans.setProperty(searchAdvanced, SAVED_SEARCH_ID, savedSearchId);\n } else {\n throw new NetSuiteException(new NetSuiteErrorCode(NetSuiteErrorCode.OPERATION_NOT_SUPPORTED),\n i18n.advancedSearchNotAllowed(recordTypeName));\n }\n }\n\n // basic search class not found or supported\n if (searchRecordTypeDesc.getSearchBasicClass() == null) {\n throw new NetSuiteException(new NetSuiteErrorCode(NetSuiteErrorCode.OPERATION_NOT_SUPPORTED),\n i18n.searchNotAllowed(recordTypeName));\n }\n\n // get a basic search class instance\n searchBasic = (SearchT) searchRecordTypeDesc.getSearchBasicClass().newInstance();\n\n } catch (InstantiationException | IllegalAccessException e) {\n throw new NetSuiteException(new NetSuiteErrorCode(NetSuiteErrorCode.INTERNAL_ERROR), e.getMessage(), e);\n }\n }", "public interface Searcher<E, C extends SearchCriteria<C>> {\n\n /**\n * It searches entities of a type based on a criteria.\n *\n * @param criteria the criteria\n * @return a page of entities.\n */\n Observable<Page<E>> search(C criteria);\n\n}", "public interface SearchStrategy<T> {\n\t\n\t/**\n\t * Sucht den gewünschten Knoten.\n\t * @return gesuchten Knoten - wenn nicht gefunden, dann null.\n\t */\n\tpublic Node<T> search(T value, Node<T> root);\n\t\n\t/**\n\t * Gibt den Pfad der zuletzt ausgeführten Suche zurück.\n\t * \n\t * @return Liste der Knoten, die durchsucht wurden.\n\t */\n\tpublic ArrayList<Node<T>> getPath();\n}", "TSearchResults searchWithQuery(TSearchQuery searchQuery, SearchParametersAPI overrideParameters, TRepo repo, AreaFactory<TContent, TArea> areaFactory, ContentFactory<TContent> contentFactory);" ]
[ "0.7293129", "0.7293129", "0.714576", "0.7104911", "0.7081415", "0.7052888", "0.70077115", "0.691546", "0.6746177", "0.6708753", "0.669936", "0.66266257", "0.6457197", "0.63391095", "0.6309647", "0.63019663", "0.62927777", "0.6250673", "0.6230372", "0.62215245", "0.6211719", "0.620514", "0.6198819", "0.6192971", "0.61595196", "0.61540675", "0.6107589", "0.60947007", "0.6066114", "0.60479826", "0.60473186", "0.60445553", "0.6037776", "0.601668", "0.6012511", "0.60022944", "0.5988535", "0.5986855", "0.5986855", "0.5978744", "0.5976433", "0.5962899", "0.5953624", "0.5949557", "0.5939719", "0.5935259", "0.5935259", "0.593277", "0.59218085", "0.5885942", "0.5875968", "0.58707607", "0.5866161", "0.5838344", "0.5836125", "0.58356196", "0.5827576", "0.5826537", "0.58237576", "0.5822695", "0.58204156", "0.58124214", "0.5803328", "0.57957417", "0.57957417", "0.5787133", "0.5780887", "0.57592714", "0.5757393", "0.5755442", "0.575174", "0.5750671", "0.5741215", "0.57279414", "0.5727508", "0.5726819", "0.5722864", "0.5722642", "0.5707446", "0.56929505", "0.5690713", "0.5686951", "0.5681975", "0.56815416", "0.5669395", "0.5664239", "0.5658835", "0.56578785", "0.5649466", "0.56471944", "0.5643046", "0.56428456", "0.5629124", "0.5624013", "0.56211716", "0.56201065", "0.5611946", "0.55982053", "0.5593217", "0.55865145" ]
0.7886986
0
Creates a search of this type with the given query
public abstract Search create(String search, SearchBuilder builder);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TSearchResults createSearchResults(TSearchQuery searchQuery);", "TSearchQuery createSearchQuery(SearchQueryDefinitionAPI searchQueryDefinition);", "public MagicSearch createMagicSearch();", "public SearchQueryBuilder(String query, String searchType) {\n this(query, SearchTypeService.getSearchModel(searchType));\n }", "Search getSearch();", "List<SearchResult> search(SearchQuery searchQuery);", "interface FindByQueryWithQuery<T> extends TerminatingFindByQuery<T> {\n\n\t\t/**\n\t\t * Set the filter query to be used.\n\t\t *\n\t\t * @param query must not be {@literal null}.\n\t\t * @return new instance of {@link TerminatingFindByQuery}.\n\t\t * @throws IllegalArgumentException if query is {@literal null}.\n\t\t */\n\t\tTerminatingFindByQuery<T> matching(Query query);\n\n\t}", "public search() {\n }", "TSearchResults searchWithQuery(TSearchQuery searchQuery, SearchParametersAPI overrideParameters, TRepo repo, AreaFactory<TContent, TArea> areaFactory, ContentFactory<TContent> contentFactory);", "Query createQuery(final String query);", "List<ResultDTO> search(String query);", "CampusSearchQuery generateQuery();", "private Search() {}", "List<Corretor> search(String query);", "Page<T> search(Pageable pageable, QueryBuilder query);", "public static interface SearchType\n\t{\n\t\t/**\n\t\t * Creates a search of this type with the given query\n\t\t * \n\t\t * @param search The search query\n\t\t * @param builder The search builder that is compiling the search\n\t\t * @return The compiled search object representing the given query\n\t\t */\n\t\tpublic abstract Search create(String search, SearchBuilder builder);\n\n\t\t/** @return All headers that may begin a search of this type */\n\t\tpublic abstract String [] getHeaders();\n\t}", "List<TypePatientPropertyCondition> search(String query);", "private SearchQuery(String _query, WebSearchType webSearchType) {\n this._query = _query;\n this._Web_search = webSearchType;\n }", "public abstract S getSearch();", "SearchResponse search(Pageable pageable, QueryBuilder query, AggregationBuilder aggregation);", "TSearchQuery prepareSearchQuery(SearchQueryDefinitionAPI searchQueryDefinition);", "List<ShipmentInfoPODDTO> search(String query);", "private void searchBook(String query) {\n String filter = this.bookFilter.getValue();\n String sort = this.sort.getValue();\n \n // Get the user defined comparator\n Comparator<Book> c = getBookComparator(filter, sort);\n\n // Create a book used for comparison\n Book book = createBookForQuery(filter, query);\n \n // Find all matches\n GenericList<Book> results = DashboardController.library.getBookTable().findAll(book, c);\n\n // Cast results to an array\n Book[] bookResults = bookResultsToArray(results, c);\n\n // Load the results in a new scene\n this.loadBookResultsView(bookResults);\n }", "public SearchResponse search(SearchRequest request) throws SearchServiceException;", "SearchResponse search(SearchRequest searchRequest) throws IOException;", "public Query(){\n this(new MongoQueryFilter.MongoQueryFilterBuilder());\n }", "public SearchQueryBuilder(String query, Enums.WebSearchType webSearchType) {\n this(query, SearchTypeService.getSearchModel(webSearchType));\n }", "List<Revenue> search(String query);", "Page<T> search(Pageable pageable, String query);", "SearchResponse query(SearchRequest request, Map<SearchParam, String> params);", "SearchResult<TimelineMeta> search(SearchQuery searchQuery);", "public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }", "public static QueryInterface createQuery() {\n return new XmlQuery();\n }", "public AddressBook search(String query)\n {\n Integer count = 0;\n Integer size = addressEntryList.size();\n AddressBook ab = new AddressBook();\n int indexes[] = new int[size];\n //For loop, iterating through our entire list of Address Entries\n for (int i = 0; i < addressEntryList.size(); i++)\n {\n //If the lastname is the search query\n if(addressEntryList.get(i).getLastName().contains(query))\n {\n indexes[count] = i;\n count++;\n }\n }\n //If we found anything\n if (count > 0)\n {\n //Add entries found\n for (int i = 0; i < count; i++)\n {\n ab.addressEntryList.add(addressEntryList.get(indexes[i]));\n }\n }\n //No entries were found\n else {\n System.out.println(\"No entries were found.\");\n }\n\n return ab;\n\n }", "public Search(String value) {\n this(value, false);\n }", "Page<TypeBonDTO> search(String query, Pageable pageable);", "abstract public void search();", "private Object queryDatabase(String searchType, String searchTerm) {\n Connection connection = null;\n PreparedStatement statement = null;\n Search search = new Search();\n ResultSet resultSet = null;\n String queryString = null;\n\n try {\n connection = getConnection(connection);\n\n queryString = getQueryString(searchType);\n\n statement = connection.prepareStatement(queryString);\n \n if (searchType.equals(\"employeeId\")) {\n statement.setString(1, searchTerm);\n } else {\n statement.setString(1, searchTerm + \"%\");\n }\n\n resultSet = statement.executeQuery();\n\n buildEmployeeList(resultSet, search);\n } catch (SQLException sqlException) {\n sqlException.printStackTrace();\n } catch (Exception exception) {\n System.err.println(\"General Error\");\n exception.printStackTrace();\n } finally {\n try {\n if (resultSet != null) {\n resultSet.close();\n }\n\n\n if (statement != null) {\n statement.close();\n }\n\n\n if (connection != null) {\n connection.close();\n }\n } catch (SQLException sqlException) {\n sqlException.printStackTrace();\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n }\n return search;\n }", "@Override\r\n\t\t\tpublic List<ScoredDocument> search(Query query) {\n\t\t\t\treturn null;\r\n\t\t\t}", "public Search() {\n this.timestamp = System.currentTimeMillis();\n }", "private SearchRequestBuilder createSearchBuilder(StoreURL storeURL, EsQuery esQuery) {\n SearchRequestBuilder searchBuilder = this.getClient(storeURL)\n .prepareSearch(esQuery.getGraph())\n .setQuery(RootBuilder.get(esQuery))\n .setFetchSource(true)\n .setFrom(esQuery.getPageNo())\n .setSize(esQuery.getPageSize());\n if(CollectionUtils.isNotEmpty(esQuery.getSchemas())){\n searchBuilder.setTypes(esQuery.getSchemas().toArray(new String[]{}));\n }\n this.addAggregations(esQuery, searchBuilder); // aggregation\n this.addSortFields(esQuery, searchBuilder); // sort\n this.addHighlightFields(esQuery, searchBuilder); // highlight\n return searchBuilder;\n }", "public QueryResultBuilder<T> applySearch(Option<Search> search);", "List<ResultDTO> searchUser(String query);", "public void search(String query) {\n Log.i(TAG, \"search: \" + query);\n artistInteractor.searchInItunes(query, this);\n }", "List<OwnerOperatorDTO> search(String query);", "SearchResultsType createSearchResultsType();", "private Query getQuery(String index, String type, String query){\r\n\t\tSearchQuery esQuery = new SearchQuery();\r\n\t\tesQuery.setIndex(this.indexName);\r\n\t\t\r\n\t\tif(StringUtils.isNotEmpty(type))\r\n\t\t\tesQuery.setType(type);\r\n\t\t\r\n\t\tesQuery.setQuery(query);\r\n\t\t\r\n\t\treturn esQuery;\t\t\r\n\t}", "public EntrezSearcher (String query, String folderPath){\n this(\"pubmed\",\"xml\", query,folderPath);\n }", "public void setSearchQuery(String searchQuery) {\n this.searchQuery = searchQuery;\n }", "private void search(String querySearch) {\n searchResult = new ArrayList<>();\n for (MonitoringModel item : searchList) {\n if (item.getPROG_ID().toLowerCase().contains(querySearch) || item.getPROG_ID().contains(querySearch) ||\n item.getKEPUTUSAN().toLowerCase().contains(querySearch) || item.getKEPUTUSAN().contains(querySearch) ||\n Common.formatTgl(item.getTGL_TARGET()).toLowerCase().contains(querySearch) || Common.formatTgl(item.getTGL_TARGET()).contains(querySearch) ||\n Common.formatStatusMonitoringToString(item.getLAST_STATUS()).toLowerCase().contains(querySearch) || Common.formatStatusMonitoringToString(item.getLAST_STATUS()).contains(querySearch)) {\n searchResult.add(item);\n }\n }\n if (searchResult.isEmpty())\n tvEmptySearch.setText(\"No results found for '\" + querySearch + \"'\");\n else\n tvEmptySearch.setText(\"\");\n\n searchAdapter = new ListAdapter(getContext(), searchResult);\n rvList.setAdapter(searchAdapter);\n }", "SearchResponse search(Pageable pageable, QueryBuilder query, Collection<AggregationBuilder> aggregations);", "Page<Tbc_analises_componente> search(String query, Pageable pageable);", "List<Cemetery> search(String query);", "@Override\r\n\tpublic <T> SearchResult<T> search(String index, String type, String query, Class<T> clz) throws ElasticSearchException{\r\n\t\tQuery esQuery = getQuery(this.indexName, type, query);\r\n\t\tQueryResponse response = query(esQuery);\r\n\t\t\r\n\t\tSearchResult<T> result = new SearchResult<T>();\t\t\r\n\t\tresult.setHits(response.getHits(clz));\r\n\t\t\r\n\t\tif(response.hasAggregations())\r\n\t\t\tresult.setAggregations(response.getAggregations());\r\n\t\t\r\n\t\treturn result;\r\n\t}", "public void setNewSearch(String query){\n isNewSearch = true;\n this.query = query;\n }", "public QueryInfoSearch getQueryInfoSearch() {\n if (queryInfoSearch != null) return queryInfoSearch;\n queryInfoSearch = new QueryInfoSearch();\n return queryInfoSearch;\n }", "public void search() {\r\n \t\r\n }", "public Search createSearch(String searchText)\n\t\t{\n\t\t\tStringBuilder sb = new StringBuilder(searchText);\n\t\t\ttrim(sb);\n\t\t\tSearch current = null;\n\t\t\twhile(sb.length() > 0)\n\t\t\t{\n\t\t\t\tboolean not = false;\n\t\t\t\tif(sb.length() > 1 && lower(sb.charAt(0)) == 'o' && lower(sb.charAt(1)) == 'r')\n\t\t\t\t{ // OR operator\n\t\t\t\t\tsb.delete(0, 2);\n\t\t\t\t\tExpressionSearch exp = exp(false);\n\t\t\t\t\texp.add(current);\n\t\t\t\t\tcurrent = exp;\n\t\t\t\t\ttrim(sb);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse if(sb.length() > 2 && lower(sb.charAt(0)) == 'a' && lower(sb.charAt(1)) == 'n'\n\t\t\t\t\t&& lower(sb.charAt(2)) == 'd')\n\t\t\t\t{\n\t\t\t\t\tsb.delete(0, 3);\n\t\t\t\t\ttrim(sb);\n\t\t\t\t}\n\t\t\t\telse if(sb.length() > 1 && sb.charAt(0) == '!')\n\t\t\t\t{\n\t\t\t\t\tsb.delete(0, 1);\n\t\t\t\t\ttrim(sb);\n\t\t\t\t\tnot = true;\n\t\t\t\t}\n\n\t\t\t\tSearch next;\n\t\t\t\tif(sb.charAt(0) == '(')\n\t\t\t\t{\n\t\t\t\t\tint c = goPastParen(sb, 0);\n\t\t\t\t\tString nextExpr = sb.substring(1, c).trim();\n\t\t\t\t\tif(nextExpr.length() == 0)\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"Empty parenthetical expression\");\n\t\t\t\t\tnext = createSearch(nextExpr);\n\t\t\t\t\tsb.delete(0, c + 1);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tnext = parseNext(sb);\n\t\t\t\tif(not)\n\t\t\t\t{\n\t\t\t\t\tNotSearch notS = not();\n\t\t\t\t\tnotS.setOperand(next);\n\t\t\t\t\tnext = notS;\n\t\t\t\t}\n\n\t\t\t\tif(current instanceof ExpressionSearch\n\t\t\t\t\t&& ((ExpressionSearch) current).getOperandCount() == 1)\n\t\t\t\t\t((ExpressionSearch) current).add(next);\n\t\t\t\telse if(current != null)\n\t\t\t\t{\n\t\t\t\t\tExpressionSearch exp = exp(true);\n\t\t\t\t\texp.addOps(current, next);\n\t\t\t\t\tcurrent = exp;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcurrent = next;\n\n\t\t\t\ttrim(sb);\n\t\t\t}\n\t\t\tif(current instanceof ExpressionSearch)\n\t\t\t\t((ExpressionSearch) current).simplify();\n\t\t\treturn current;\n\t\t}", "public NaturalLanguageSearchRequest(String query) throws IllegalArgumentException {\n if (query == null) {\n throw new IllegalArgumentException(\"query is required\");\n }\n\n this.query = query;\n this.section = \"Products\";\n this.page = 1;\n this.resultsPerPage = 30;\n }", "public Search(Connection con, String inpt) {\n index = 0;\n conn = con;\n results = new ArrayList<>();\n input = inpt;\n query(conn, input);\n }", "public CorpusSearch(Path searchRoot, MdCSearchQuery query) {\n try {\n this.searchRoot = searchRoot;\n this.query = query;\n extensions = new String[]{\n \".gly\", \".GLY\", \".hie\", \".HIE\"\n };\n fileIterator = Files\n .walk(searchRoot)\n .filter(this::isJSeshPath)\n .iterator();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "public void doSearch(String query)\n \t{\n \t\tlistener.onQueryTextSubmit(query);\n \t}", "public NsSearchResult<RecT> search() {\n Object searchRecord = toNativeQuery();\n NsSearchResult<RecT> result = clientService.search(searchRecord);\n if (!result.isSuccess()) {\n NetSuiteClientService.checkError(result.getStatus());\n }\n return result;\n }", "public void search() {\n }", "@Override\n @Transactional(readOnly = true)\n public List<WorkType> search(String query) {\n log.debug(\"Request to search WorkTypes for query {}\", query);\n return StreamSupport\n .stream(workTypeSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n }", "protected SearchSearchResponse doNewSearch(QueryContext queryContext) throws Exception {\n\t\t\n\t\tBooleanQuery query = _queryBuilder.buildSearchQuery(queryContext);\n\t\t\n\t\tBooleanQuery rescoreQuery = \n\t\t\t\t_queryBuilder.buildRescoreQuery(queryContext);\n\t\t\n\t\tList<Aggregation> aggregations = getAggregations(queryContext);\n\n\t\treturn execute(queryContext, query, rescoreQuery, aggregations);\n\t}", "@Override\n @Transactional(readOnly = true)\n public List<AdsDTO> search(String query) {\n log.debug(\"Request to search Ads for query {}\", query);\n return StreamSupport\n .stream(adsSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .map(adsMapper::toDto)\n .collect(Collectors.toList());\n }", "List<TypeTreatmentPlanStatuses> search(String query);", "@Transactional(readOnly = true)\n public List<Patient> search(String query) {\n log.debug(\"Request to search Patients for query {}\", query);\n List<Patient> result = StreamSupport\n .stream(patientSearchRepository.search(wrapperQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n return result;\n }", "public Builder setSearch(com.clarifai.grpc.api.Search value) {\n if (searchBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n inputSource_ = value;\n onChanged();\n } else {\n searchBuilder_.setMessage(value);\n }\n inputSourceCase_ = 10;\n return this;\n }", "Page<ConsultationInfoDTO> search(String query, Pageable pageable);", "SearchResult<TimelineMeta> search(SearchParameter searchParameter);", "Page<ParaUserDTO> search(String query, Pageable pageable);", "List<Codebadge> search(String query);", "@Override\n @Transactional(readOnly = true)\n public List<Goods> search(String query) {\n log.debug(\"Request to search Goods for query {}\", query);\n return StreamSupport\n .stream(goodsSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n }", "private DynamicForm createSearchBox() {\r\n\t\tfinal DynamicForm filterForm = new DynamicForm();\r\n\t\tfilterForm.setNumCols(4);\r\n\t\tfilterForm.setAlign(Alignment.LEFT);\r\n\t\tfilterForm.setAutoFocus(false);\r\n\t\tfilterForm.setWidth(\"59%\"); //make it line up with sort box\r\n\t\t\r\n\t\tfilterForm.setDataSource(SmartGWTRPCDataSource.getInstance());\r\n\t\tfilterForm.setOperator(OperatorId.OR);\r\n\t\t\r\n\t\t//Visible search box\r\n\t\tTextItem nameItem = new TextItem(\"name\", \"Search\");\r\n\t\tnameItem.setAlign(Alignment.LEFT);\r\n\t\tnameItem.setOperator(OperatorId.ICONTAINS); // case insensitive\r\n\t\t\r\n\t\t//The rest are hidden and populated with the contents of nameItem\r\n\t\tfinal HiddenItem companyItem = new HiddenItem(\"company\");\r\n\t\tcompanyItem.setOperator(OperatorId.ICONTAINS);\r\n\t\tfinal HiddenItem ownerItem = new HiddenItem(\"ownerNickName\");\r\n\t\townerItem.setOperator(OperatorId.ICONTAINS);\r\n\r\n\t\tfilterForm.setFields(nameItem,companyItem,ownerItem);\r\n\t\t\r\n\t\tfilterForm.addItemChangedHandler(new ItemChangedHandler() {\r\n\t\t\tpublic void onItemChanged(ItemChangedEvent event) {\r\n\t\t\t\tString searchTerm = filterForm.getValueAsString(\"name\");\r\n\t\t\t\tcompanyItem.setValue(searchTerm);\r\n\t\t\t\townerItem.setValue(searchTerm);\r\n\t\t\t\tif (searchTerm==null) {\r\n\t\t\t\t\titemsTileGrid.fetchData();\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tCriteria criteria = filterForm.getValuesAsCriteria();\r\n\t\t\t\t\titemsTileGrid.fetchData(criteria);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\treturn filterForm;\r\n\t}", "private AniteQueryType(final int searchType)\r\n\t{\r\n\t\tthis.searchType = searchType;\r\n\t}", "public abstract List createQuery(String query);", "public Utwor search2(String query) {\n for (Utwor utwor : utwory) {\n if (utwor.getTitle().equals(query)) {\n return utwor;\n }\n }\n return null;\n }", "void searchForProducts(String searchQuery) {\n if (searchQuery.isEmpty()) {\n searchQuery = \"%\";\n } else {\n searchQuery = \"%\" + searchQuery + \"%\";\n }\n filter.postValue(searchQuery);\n }", "public PostingsList search( Query query, int queryType, int rankingType, int structureType ) {\r\n switch(queryType){\r\n case Index.INTERSECTION_QUERY : \r\n return searchIntersection( query, rankingType, structureType);\r\n\r\n case Index.PHRASE_QUERY :\r\n return searchPhrase( query, rankingType, structureType);\r\n default:\r\n break;\r\n }\r\n\r\n return null;\r\n }", "void searchProbed (Search search);", "public SearchResponse<T, P> build(Pageable searchRequest, QueryResponse queryResponse) {\n // Create response\n SearchResponse<T, P> searchResponse = new SearchResponse<T, P>(searchRequest);\n searchResponse.setCount(queryResponse.getResults().getNumFound());\n searchResponse.setLimit(queryResponse.getResults().size());\n // The results and facets are copied into the response\n final List<ST> resultsST = queryResponse.getBeans(annotatedClass);\n // convert types\n final List<T> results = Lists.newArrayList();\n for (ST x : resultsST) {\n results.add(x);\n }\n searchResponse.setResults(results);\n searchResponse.setFacets(getFacetsFromResponse(queryResponse));\n setHighlightedFields(searchResponse, queryResponse);\n if(queryResponse.getSpellCheckResponse() != null){\n searchResponse.setSpellCheckResponse(SpellCheckResponseBuilder.build(queryResponse.getSpellCheckResponse()));\n }\n return searchResponse;\n }", "public abstract <T> List<? extends T> createQuery(String query, Class<T> type);", "@SuppressWarnings(\"unchecked\")\n private SearchT toNativeQuery() {\n initSearch();\n\n BasicRecordType basicRecordType = BasicRecordType.getByType(searchRecordTypeDesc.getType());\n if (BasicRecordType.TRANSACTION == basicRecordType) {\n SearchFieldAdapter<?> fieldAdapter = metaDataSource.getBasicMetaData().getSearchFieldAdapter(SearchFieldType.SELECT);\n Object searchTypeField = fieldAdapter.populate(LIST_ANY_OF, Arrays.asList(recordTypeInfo.getRecordType().getType()));\n Beans.setProperty(searchBasic, NsObjectTransducer.TYPE, searchTypeField);\n\n } else if (BasicRecordType.CUSTOM_RECORD == basicRecordType) {\n CustomRecordTypeInfo customRecordTypeInfo = (CustomRecordTypeInfo) recordTypeInfo;\n NsRef customizationRef = customRecordTypeInfo.getCustomizationRef();\n\n Object recType = metaDataSource.getBasicMetaData().createInstance(RefType.CUSTOMIZATION_REF.getTypeName());\n Beans.setProperty(recType, NsObjectTransducer.SCRIPT_ID, customizationRef.getScriptId());\n // Avoid using Internal Id for custom records\n Beans.setProperty(recType, NsObjectTransducer.TYPE, Beans.getEnumAccessor(\n (Class<Enum<?>>) Beans.getBeanInfo(recType.getClass()).getProperty(NsObjectTransducer.TYPE).getWriteType())\n .getEnumValue(customizationRef.getType()));\n\n Beans.setProperty(searchBasic, NsObjectTransducer.REC_TYPE, recType);\n }\n\n // Set custom fields\n if (!customFieldList.isEmpty()) {\n Object customFieldListWrapper = metaDataSource.getBasicMetaData().createInstance(SEARCH_CUSTOM_FIELD_LIST);\n List<Object> customFields = (List<Object>) Beans.getProperty(customFieldListWrapper, NsObjectTransducer.CUSTOM_FIELD);\n for (Object customField : customFieldList) {\n customFields.add(customField);\n }\n Beans.setProperty(searchBasic, NsObjectTransducer.CUSTOM_FIELD_LIST, customFieldListWrapper);\n }\n\n SearchT searchRecord;\n if (searchRecordTypeDesc.getSearchClass() != null) {\n Beans.setProperty(search, BASIC, searchBasic);\n searchRecord = search;\n if (searchAdvanced != null) {\n Beans.setProperty(searchAdvanced, CONDITION, search);\n searchRecord = searchAdvanced;\n }\n } else {\n searchRecord = searchBasic;\n }\n\n return searchRecord;\n }", "@java.lang.Override\n public com.clarifai.grpc.api.SearchOrBuilder getSearchOrBuilder() {\n if (inputSourceCase_ == 10) {\n return (com.clarifai.grpc.api.Search) inputSource_;\n }\n return com.clarifai.grpc.api.Search.getDefaultInstance();\n }", "public abstract <T> List<? extends T> createQuery(String query, Class<T> type, int firstResult, int maxResult);", "@Override\n public Data3DPlastic search() {\n return super.search();\n }", "@Override\n public List<Vehicle> searchByQuery(String q) {\n List<AggregationOperation> operations = new ArrayList<>();\n operations.addAll(getVehicleAggregations());\n operations.add(\n Aggregation.addFields()\n .addFieldWithValue(\n \"yearString\", ConvertOperators.ToString.toString(\"cars.vehicles.year\"))\n .build());\n\n Query query = new Query();\n query.addCriteria(Criteria.where(\"cars.vehicles.model\").regex(\".*\" + q + \".*\"));\n Criteria criteria = new Criteria();\n\n Criteria modelCriteria = new Criteria(\"cars.vehicles.model\");\n BsonRegularExpression modelRegex = new BsonRegularExpression(\".*\" + q + \".*\");\n modelCriteria.regex(modelRegex);\n Criteria makeCriteria = new Criteria(\"cars.vehicles.make\");\n BsonRegularExpression makeRegex = new BsonRegularExpression(\".*\" + q + \".*\");\n makeCriteria.regex(makeRegex);\n\n Criteria yearCriteria = new Criteria(\"yearString\");\n BsonRegularExpression yearRegex = new BsonRegularExpression(\".*\" + q + \".*\");\n yearCriteria.regex(yearRegex);\n criteria.orOperator(modelCriteria, makeCriteria, yearCriteria);\n operations.add(match(criteria));\n operations.add(getVehicleProjection());\n operations.add(sort(Sort.Direction.DESC, \"date_added\"));\n TypedAggregation<Warehouse> aggregation =\n Aggregation.newAggregation(Warehouse.class, operations);\n return mongoTemplate.aggregate(aggregation, Vehicle.class).getMappedResults();\n }", "public Builder query(final String query) {\n this.query = query;\n return this;\n }", "@Override\n public void search(SearchQuery searchQuery) throws VanilaException {\n\n setKeepQuite(false);\n\n String query = searchQuery.query;\n SearchOptions options = searchQuery.options;\n\n if (isCacheHavingResults(query)) {\n searchComplete(query, mRecentSearchResultsMap.get(query), null);\n }\n else {\n if (mIsBusyInSearch) {\n mMostRecentAwaitingQuery = searchQuery;\n }\n else {\n\n mMostRecentAwaitingQuery = null;\n mIsBusyInSearch = true;\n\n FSRequestDTO request = mFSContext.buildVenueRequest(query, options);\n\n FSVenueSearchGateway gateway = mMobilePlatformFactory.getSyncAdapter()\n .getSyncGateway(FSVenueSearchGateway.CLASS_NAME);\n gateway.fireReadVenueListRequest(request);\n }\n }\n }", "List<DataTerm> search(String searchTerm);", "@SuppressWarnings(\"unchecked\")\n private void initSearch() {\n if (searchBasic != null) {\n return;\n }\n try {\n // get a search class instance\n if (searchRecordTypeDesc.getSearchClass() != null) {\n search = (SearchT) searchRecordTypeDesc.getSearchClass().newInstance();\n }\n\n // get a advanced search class instance and set 'savedSearchId' into it\n searchAdvanced = null;\n if (StringUtils.isNotEmpty(savedSearchId)) {\n if (searchRecordTypeDesc.getSearchAdvancedClass() != null) {\n searchAdvanced = (SearchT) searchRecordTypeDesc.getSearchAdvancedClass().newInstance();\n Beans.setProperty(searchAdvanced, SAVED_SEARCH_ID, savedSearchId);\n } else {\n throw new NetSuiteException(new NetSuiteErrorCode(NetSuiteErrorCode.OPERATION_NOT_SUPPORTED),\n i18n.advancedSearchNotAllowed(recordTypeName));\n }\n }\n\n // basic search class not found or supported\n if (searchRecordTypeDesc.getSearchBasicClass() == null) {\n throw new NetSuiteException(new NetSuiteErrorCode(NetSuiteErrorCode.OPERATION_NOT_SUPPORTED),\n i18n.searchNotAllowed(recordTypeName));\n }\n\n // get a basic search class instance\n searchBasic = (SearchT) searchRecordTypeDesc.getSearchBasicClass().newInstance();\n\n } catch (InstantiationException | IllegalAccessException e) {\n throw new NetSuiteException(new NetSuiteErrorCode(NetSuiteErrorCode.INTERNAL_ERROR), e.getMessage(), e);\n }\n }", "List<LectureDTO> search(String query);", "public QueryCore(String query)\n {\n this.query = query;\n }", "public interface SearchQuerySet extends QuerySet\n{\n\n // for AbstractSearch\n public static final int STAT_MODELS = 1;\n public static final int STAT_CLUSTERS = 2;\n public static final int STAT_GENOMES = 4;\n public static final int STAT_MODEL_CLUSTERS = 8;\n\n public String getStatsById(Collection data);\n public String getStatsByQuery(String query);\n public String getStatsById(Collection data,int stats);\n public String getStatsByQuery(String query,int stats);\n \n // for BlastSearch\n public String getBlastSearchQuery(Collection dbNames, Collection keys, KeyTypeUser.KeyType keyType);\n \n //for ClusterIDSearch\n public String getClusterIDSearchQuery(Collection input, int limit, int[] DBs, KeyTypeUser.KeyType keyType);\n \n // for ClusterNameSearch\n public String getClusterNameSearchQuery(Collection input, int limit, int[] DBs, KeyTypeUser.KeyType keyType);\n \n // for DescriptionSearch\n public String getDescriptionSearchQuery(Collection input, int limit, int[] DBs, KeyTypeUser.KeyType keyType);\n \n // for GoSearch \n public String getGoSearchQuery(Collection input, int limit, KeyTypeUser.KeyType keyType);\n \n // for GoTextSearch\n public String getGoTextSearchQuery(Collection input, int limit, KeyTypeUser.KeyType keyType);\n \n // for IdSearch\n public String getIdSearchQuery(Collection input, int limit, int[] DBs, KeyTypeUser.KeyType keyType);\n \n // for QueryCompSearch\n public String getQueryCompSearchQuery(String comp_id, String status, KeyTypeUser.KeyType keyType);\n \n // for QuerySearch\n public String getQuerySearchQuery(String queries_id, KeyTypeUser.KeyType keyType); \n \n // for SeqModelSearch\n public String getSeqModelSearchQuery(Collection model_ids, KeyTypeUser.KeyType keyType);\n \n // for UnknowclusterIdSearch\n public String getUnknownClusterIdSearchQuery(int cluster_id, KeyTypeUser.KeyType keyType);\n \n // for ProbeSetSearch\n public String getProbeSetSearchQuery(Collection input, int limit, KeyTypeUser.KeyType keyType);\n \n // for ProbeSetKeySearch\n public String getProbeSetKeySearchQuery(Collection input, int limit, KeyTypeUser.KeyType keyType);\n \n // for QueryTestSearch\n public String getQueryTestSearchQuery(String query_id, String version, String genome_id);\n \n // for QueryStatsSearch\n public String getQueryStatsSearchQuery(List query_ids,List DBs);\n \n // for PskClusterSearch\n public String getPskClusterSearchQuery(int cluster_id,KeyTypeUser.KeyType keyType);\n \n // for ClusterCorrSearch\n public String getClusterCorrSearchQuery(int cluster_id, int psk_id, KeyTypeUser.KeyType keyType);\n \n // for UnknownGenesSearch\n public String getUnknownGenesSearchQuery(Collection sources, KeyTypeUser.KeyType keyType);\n \n}", "@Override\n public Page<AlunoDTO> search(String query, Pageable pageable) {\n log.debug(\"Request to search for a page of Alunos for query {}\", query);\n Page<Aluno> result = alunoSearchRepository.search(queryStringQuery(query), pageable);\n return result.map(alunoMapper::toDto);\n }", "@java.lang.Override\n public com.clarifai.grpc.api.Search getSearch() {\n if (inputSourceCase_ == 10) {\n return (com.clarifai.grpc.api.Search) inputSource_;\n }\n return com.clarifai.grpc.api.Search.getDefaultInstance();\n }", "public void buildSearcher() throws IOException {\n IndexReader rdr = DirectoryReader.open(FSDirectory.open(new File(indexDir).toPath()));\n searcher = new IndexSearcher(rdr);\n parser = new QueryParser(\"text\", new StandardAnalyzer());\n }", "public Search(UserInput userInput) {\n\t\tthis.userInput = userInput;\n\t\tstorage = Storage.getInstance();\n\t\tfeedback = Feedback.getInstance();\n\t\tnew ArrayList<Task>();\n\t}" ]
[ "0.7736154", "0.7389975", "0.72136635", "0.6974559", "0.68308413", "0.68107426", "0.674649", "0.6733411", "0.67075074", "0.6695386", "0.6664845", "0.666225", "0.6639111", "0.66099846", "0.65828836", "0.65461814", "0.6525006", "0.6490776", "0.64814055", "0.647788", "0.6470068", "0.6456059", "0.6444996", "0.64341", "0.6427833", "0.63760364", "0.637513", "0.6349112", "0.6335045", "0.6319959", "0.6319107", "0.6284033", "0.6261867", "0.62486446", "0.6239891", "0.6236603", "0.6230374", "0.62250805", "0.6202639", "0.6198045", "0.61901605", "0.61826867", "0.61585844", "0.6158333", "0.61509186", "0.61450094", "0.6125933", "0.6125876", "0.612231", "0.6098338", "0.60980844", "0.60979116", "0.6082854", "0.6066715", "0.60560226", "0.60411566", "0.60353935", "0.60352683", "0.60340023", "0.60257846", "0.59970975", "0.59934235", "0.599238", "0.59647536", "0.5959177", "0.59555745", "0.5946189", "0.594546", "0.59444183", "0.5940721", "0.59352666", "0.5903389", "0.58868444", "0.58736414", "0.587361", "0.58693224", "0.5861872", "0.585799", "0.5855805", "0.58556026", "0.5853761", "0.58519447", "0.5849782", "0.58320093", "0.5827193", "0.58014464", "0.5798835", "0.5797711", "0.5775111", "0.5774447", "0.57638216", "0.57522595", "0.57390946", "0.5737314", "0.5730946", "0.57281435", "0.572791", "0.5727111", "0.5725931", "0.5723723" ]
0.69513005
4
Parses an operator out of a modifiable character sequence.
public static Operator parse(StringBuilder sb, String search) { if(sb.charAt(0) == '<' || sb.charAt(0) == '>') { boolean gt = sb.charAt(0) == '>'; sb.delete(0, 1); if(sb.charAt(0) == '=') { sb.delete(0, 1); if(gt) return GTE; else return LTE; } else { if(gt) return GT; else return LT; } } else if(sb.charAt(0) == '=') { sb.delete(0, 1); if(sb.charAt(0) == '=') sb.delete(0, 1); return EQ; } else if(sb.charAt(0) == '!') { sb.delete(0, 1); if(sb.charAt(0) != '=') throw new IllegalArgumentException("Illegal size expression: " + search + "--operator unrecognized"); sb.delete(0, 1); return NEQ; } else /* If a header is used with a parseable value right after, the operator is equality */ return EQ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void processOperator() {\r\n\t\tif (expression[currentIndex] == '*') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.AND_STRING);\r\n\t\t} else if (expression[currentIndex] == '+') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.OR_STRING);\r\n\t\t} else if (expression[currentIndex] == '!') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.NOT_STRING);\r\n\t\t} else {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.XOR_STRING);\r\n\t\t\t// xor operator has 2 characters more than any other operator.\r\n\t\t\tcurrentIndex += 2;\r\n\t\t}\r\n\r\n\t\tcurrentIndex++;\r\n\t}", "private static char getOperator() throws ParseError {\n TextIO.skipBlanks(); // Skip past any blanks in the input.\n\n char op = TextIO.peek();\n\n if ( op == '+' || op == '-' || op == '*' || op == '/' )\n TextIO.getAnyChar(); // Read the operator.\n else\n throw new ParseError( \"Found \" + op + \" instead of an operator.\" );\n\n return op;\n\n }", "private IMathExpr parseOperator(String expr, MathBinOper operator,\r\n boolean processLeft2Right) throws InvalidMathExprException {\r\n int startPos, endPos, step;\r\n \r\n if (processLeft2Right) { // Parse expression forwards.\r\n startPos = 0;\r\n endPos = expr.length();\r\n step = 1;\r\n } else { // Parse expression backwards.\r\n startPos = expr.length() - 1;\r\n endPos = -1; // Going backwards, even 0 index counts.\r\n step = -1;\r\n }\r\n \r\n int i = startPos;\r\n while (i != endPos) {\r\n if (this.isOutsideOfBracket(expr, i)) {\r\n char c = expr.charAt(i);\r\n \r\n if (c == operator.getSign()) {\r\n IMathExpr left = new MathExpr(expr.substring(0, i));\r\n IMathExpr right = new MathExpr(expr.substring(i + 1,\r\n expr.length()));\r\n \r\n return MathBinOper.buildBinaryOper(operator, left, right);\r\n }\r\n }\r\n \r\n i += step;\r\n }\r\n \r\n return null;\r\n }", "protected void operation(String operator){\n if (this.tail<2){\n this.arr[tail++] = this.value;\n this.arr[tail++] = operator;\n } else{\n if (this.peek() != \")\"){\n this.arr[this.tail++] = this.value;\n }\n this.arr[this.tail++] = operator;\n }\n this.value=\"\"; // reset tracking variables\n this.decimalUsed = false;\n }", "private Token getNextOperator() {\n char currChar = this.data[currentIndex];\n\n if (currChar == '+' || currChar == '-' || currChar == '*' || currChar == '/' || currChar == '^') {\n currentIndex++;\n return new Token(TokenType.OPERATOR, currChar);\n } else {\n throw new LexerException(\"Invalid character in tags\");\n }\n }", "public static Expression parse(String exp) {\n\t\texp = exp.replace(\" \", \"\");\r\n\t\tchar[] cs = exp.toCharArray();\r\n\t\tint i = 0;\r\n\t\twhile (i < cs.length && !Operator.validOp(cs[i])) {\r\n\t\t\t++i;\r\n\t\t}\r\n\t\tif (i == cs.length)\r\n\t\t\treturn new Expression(Token.parse(exp));\r\n\t\telse {\r\n\t\t\t//to preserve order of operations here, flip order accordingly\r\n\t\t\t//if the operator is * or /\r\n\t\t\treturn new Expression(\r\n\t\t\t\t\tExpression.parse(exp.substring(0,i)),\r\n\t\t\t\t\t(Operator)Token.parse(cs[i]),\r\n\t\t\t\t\tExpression.parse(exp.substring(i+1, exp.length()))\r\n\t\t\t);\r\n\t\t}\r\n\t}", "public static String parseExpressionForOperator(String expression) {\n int space = expression.indexOf(\" \");\n String frac1 = expression.substring(0, space);\n String operator = expression.substring(space + 1, space + 2);\n return operator;\n }", "private boolean isOperator(char c) {\n\t\treturn c == '<' || c == '=' || c == '>' || c == '!';\n\t}", "private boolean isOperator(char ch)\n {\n if (ch == '+' || ch == '-' || ch == '*' || ch == '/' || ch == '^')\n//returns true if either of the operator is found\n return true;\n//else returns false\n return false;\n }", "private void setOperatorToken() {\n\t\t\n\t\tif (currentIndex + 1 >= data.length)\n\t\t\tthrow new QueryLexerException(\"Invalid input. After operator must come text\");\n\t\t\n\t\tif (isOperator(data[currentIndex + 1])) {\n\t\t\t// two symbol operator\n\t\t\t\tif(data[currentIndex + 1] != '=') \n\t\t\t\t\tthrow new QueryLexerException(\"Invalid operator.\");\n\t\t\t\t\n\t\t\t\tif(data[currentIndex] == '=')\n\t\t\t\t\tthrow new QueryLexerException(\"Invalid operator.\");\n\t\t\t\t\n\t\t\t\tString operator = new String(data, currentIndex, 2);\n\t\t\t\ttoken = new Token(TokenType.OPERATOR, operator);\n\t\t\t\tcurrentIndex += 2;\n\t\t} else {\n\t\t\t// just one symbol operator\n\t\t\tif (data[currentIndex] == '!')\n\t\t\t\tthrow new QueryLexerException(\"Invalid operator.\");\n\t\t\t\n\t\t\ttoken = new Token(TokenType.OPERATOR, String.valueOf(data[currentIndex]));\n\t\t\tcurrentIndex++;\n\t\t}\n\t}", "public String operator( String op);", "private Operator checkOperator(char c){\n if (c == '+'){\n return new AddOperator(); \n }\n else if (c == '-'){\n return new SubOperator(); \n }\n else if (c == '*'){\n return new MulOperator(); \n }\n else if (c == '/'){\n return new DivOperator(); \n }\n else \n return null;\n }", "java.lang.String getOperator();", "String getOperator();", "private boolean isOperator(char ch) {\r\n\t\treturn (ch == '+' || ch == '-' || ch == '*' || ch == '/');\r\n\t}", "public final SymbolNode getOperator() { return this.operator; }", "private boolean isOperator(String s) {\n\t\treturn (s.equals(\"+\") || s.equals(\"-\") || s.equals(\"*\") || s.equals(\"/\") || s.equals(\"^\"));\n\t}", "private static boolean isOperator(char c) {\n return c == '+' ||\n c == '-' ||\n c == '*' ||\n c == '/';\n }", "public String getOperator()\r\n\t{\r\n\t\tSystem.out.println(\"Choose the any operation from the following operations:\");\r\n System.out.println(\"1.+\");\r\n System.out.println(\"2.-\");\r\n System.out.println(\"3.*\");\r\n System.out.println(\"4./\");\r\n \r\n\t\tString op=sc.next();\r\n\t\treturn op;\r\n\t}", "private boolean isOperator(char input) {\n\t\tboolean isOperator = false;\n\t\t\n\t\tif((input == '+') || (input == '-') || (input == '*') || (input == '/'))\n\t\t{\n\t\t\tisOperator = true;\n\t\t}\n\t\t\n\t\treturn isOperator;\n\t}", "private boolean isOperator(char x) {\n return (x == '^' ||\n x == '*' ||\n x == '/' ||\n x == '+' ||\n x == '-');\n }", "@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }", "public boolean isOperator(char character) {\n\t\tfor (int index= 0; index < JAVA_OPERATORS.length; index++) {\n\t\t\tif (JAVA_OPERATORS[index] == character)\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isOperator(char ch) {\n if (ch == '+' || ch == '-' || ch == '*' || ch == '/' || ch == '^' || ch == '(' || ch == ')') {\n return true;\n }\n else {\n return false;\n }\n }", "public String operator() {\n return this.operator;\n }", "public static boolean isOperator(char c){\n return c == '+' || c == '-' || c == '*' || c == '/' || c == '%' \n || c == '(' || c == ')';\n }", "@Test\r\n\tpublic void testParseOperator() {\r\n\r\n\t\t// find the number of operators in the input\r\n\r\n\t\tint add = 0;\r\n\t\tint minus = 0;\r\n\t\tint multiply = 0;\r\n\t\tint divide = 0;\r\n\t\tString input = \"a = 5\\nb = a - 1\\nc = a + (b / 2 * 4)\";\r\n\t\tfor (int i = 0; i < input.length(); i++) {\r\n\t\t\tif (input.charAt(i) == '+')\r\n\t\t\t\tadd++;\r\n\t\t\tif (input.charAt(i) == '-')\r\n\t\t\t\tminus++;\r\n\t\t\tif (input.charAt(i) == '*')\r\n\t\t\t\tmultiply++;\r\n\t\t\tif (input.charAt(i) == '/')\r\n\t\t\t\tdivide++;\r\n\t\t}\r\n\r\n\t\t// Enter the code\r\n\r\n\t\tdriver.findElement(By.name(\"code[code]\")).sendKeys(input);\r\n\r\n\t\t// Look for the \"Parse\" button and click\r\n\r\n\t\tdriver.findElements(By.name(\"commit\")).get(1).click();\r\n\r\n\t\t// Check that there contains corresponding quantity of operators\r\n\r\n\t\ttry {\r\n\t\t\tWebElement code = driver.findElement(By.tagName(\"code\"));\r\n\t\t\tString res = code.getText();\r\n\t\t\tint add1 = 0, minus1 = 0, multiply1 = 0, divide1 = 0;\r\n\t\t\tfor (int i = 0; i < res.length(); i++) {\r\n\t\t\t\tif (res.charAt(i) == '+')\r\n\t\t\t\t\tadd1++;\r\n\t\t\t\tif (res.charAt(i) == '-')\r\n\t\t\t\t\tminus1++;\r\n\t\t\t\tif (res.charAt(i) == '*')\r\n\t\t\t\t\tmultiply1++;\r\n\t\t\t\tif (res.charAt(i) == '/')\r\n\t\t\t\t\tdivide1++;\r\n\t\t\t}\r\n\t\t\tassertEquals(add, add1);\r\n\t\t\tassertEquals(minus, minus1);\r\n\t\t\tassertEquals(multiply, multiply1);\r\n\t\t\tassertEquals(divide, divide1);\r\n\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\tfail();\r\n\t\t}\r\n\t}", "public List<Character> getOperator() {\r\n\t\treturn operator;\r\n\t}", "boolean operator(Character input){\r\n //detects operands\r\n if(input == '^'||input == '-'||input == '+'||input == '/'||input == '*'|| input =='('|| input ==')'){\r\n return true;\r\n }\r\n else\r\n return false;\r\n }", "public String getOperator()\r\n {\r\n return operator;\r\n }", "public boolean isOperator(final char ch) {\n return (ch == '+' || ch == '-' \n || ch == '*' || ch == '/' \n || ch == '^');\n }", "public String getOperator() {\n return operator;\n }", "public boolean isOperator(char operator) {\r\n \tif (operator == '+' || operator == '-' ||\r\n \t\t\t\toperator == '*' || operator == '/' || \r\n \t\t\t\toperator == '^' || operator == '%') {\r\n \t\t\r\n \t\treturn true;\r\n \t} else {\r\n \t\treturn false;\r\n \t}\r\n \r\n }", "public boolean isOperator(char c){\n char[] operator = { '+', '-', '*', '/','^', ')', '(' };\r\n int temp = 0;\r\n for (int i = 0; i < operator.length; i++) {\r\n if (c == operator[i])\r\n temp +=1;\r\n }\r\n return temp != 0;\r\n }", "public R visit(Operator n) {\n R _ret=null;\n int which = n.f0.which;\n String s = \" \";\n switch (which)\n {\n case 0 : {s=\"LT\"; break;}\n case 1 : {s= \"PLUS\"; break;}\n case 2 : {s= \"MINUS\";break;}\n case 3 : {s= \"TIMES\"; break;}\n }\n \t return (R)s;\n }", "private void operator() {\n reduce();\n shift();\n getDispenser().advance();\n if(getDispenser().tokenIsNumber()) setState(State.NUMBER);\n else if (getDispenser().tokenIsLeftParen()) setState(State.LEFT_PAREN);\n else syntaxError(NUM);\n \n }", "private boolean isOperator(String input) {\n return new String(this.operator).contains(input);\n }", "public InvalidOperatorException(char op){\n super(LocalizationHelper.getMessage(LocalizationHelper.Message.INVALID_OPERATOR, Character.toString(op)));\n }", "public static Expr parse(String str) {\r\n\t\tExprBinary at = new ExprBinary(null, null); // the root of the tree\r\n\t\tStringBuilder opstore = new StringBuilder(); // stores operator characters\r\n\t\tStringBuilder adder = new StringBuilder(); // stores value characters\r\n\t\tboolean text = false; // whether inside of a string\r\n\r\n\t\tfor (int i = 0; i < str.length(); i++) {\r\n\t\t\tchar c = str.charAt(i);\r\n\t\t\tboolean add = (c != '\\\\'); // whether to add the char to adder. ignore escape char\r\n\t\t\tboolean leftSide = (opstore.length() == 0); // whether on the left side of the binary expression (before the operator)\r\n\t\t\tString adderStr = adder.toString();\r\n\t\t\tString opStr = opstore.toString();\r\n\r\n\t\t\tif (c == '\"') { // string\r\n\t\t\t\tif (i == 0 || str.charAt(i - 1) != '\\\\') {\r\n\t\t\t\t\ttext = !text; // ignore string contents\r\n\t\t\t\t}\r\n\t\t\t} else if (!text) {\r\n\t\t\t\tif (c == ' ') {\r\n\t\t\t\t\tadd = false; // ignore spaces\r\n\t\t\t\t} else if (c == '(') { // grouping or function\r\n\t\t\t\t\tint closeIndex = getExitIndex(str, i);\r\n\t\t\t\t\tString contents = str.substring(i + 1, closeIndex);\r\n\t\t\t\t\tExpr group; // the expression denoted by the parentheses group\r\n\r\n\t\t\t\t\tif (i > 0 && (!isReserved(str.charAt(i - 1)) || str.charAt(i - 1) == ')')) { // function\r\n\t\t\t\t\t\tif (adderStr.isEmpty()) { // function reference call ... func()()\r\n\t\t\t\t\t\t\tExpr leftLink = leftSide ? at.left() : at.right();\r\n\t\t\t\t\t\t\tExprCall rightLink = new ExprCall(null, contents); // a reference call is only a parameter group, null name\r\n\t\t\t\t\t\t\tgroup = new ExprCallChain(leftLink, rightLink);\r\n\r\n\t\t\t\t\t\t} else { // function call\r\n\t\t\t\t\t\t\tif (adderStr.startsWith(\".\")) { // function sub call ... func().subfunc()\r\n\t\t\t\t\t\t\t\tExpr leftLink = leftSide ? at.left() : at.right();\r\n\t\t\t\t\t\t\t\tExprCall rightLink = new ExprCall(adderStr.substring(1), contents);\r\n\t\t\t\t\t\t\t\tgroup = new ExprCallChain(leftLink, rightLink);\r\n\r\n\t\t\t\t\t\t\t} else { // standalone function ... func()\r\n\t\t\t\t\t\t\t\tif (Character.toString(adderStr.charAt(0)).equals(Operator.REF.op)) { // @func()\r\n\t\t\t\t\t\t\t\t\tgroup = new ExprFuncRef(adderStr.substring(1), contents);\r\n\t\t\t\t\t\t\t\t} else { // func()\r\n\t\t\t\t\t\t\t\t\tgroup = new ExprCall(adderStr, contents);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else { // parenthetical grouping\r\n\t\t\t\t\t\tchar cc = (adderStr.length() == 1 ? adderStr.charAt(0) : 0); // operator before parenthesis ... !()\r\n\t\t\t\t\t\tif (isReserved(cc)) { // operation on the group\r\n\t\t\t\t\t\t\tgroup = new ExprUnary(Operator.get(Character.toString(cc)), parse(contents));\r\n\t\t\t\t\t\t} else { // ignore character, not an operator\r\n\t\t\t\t\t\t\tgroup = parse(contents);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// add to tree\r\n\t\t\t\t\tif (leftSide) at.setLeft(group);\r\n\t\t\t\t\telse at.setRight(group);\r\n\r\n\t\t\t\t\tadder.setLength(0);\r\n\t\t\t\t\ti = closeIndex;\r\n\t\t\t\t\tadd = false;\r\n\r\n\t\t\t\t} else if (c == '{') { // array initializer ... {}\r\n\t\t\t\t\tint closeIndex = getExitIndex(str, i);\r\n\t\t\t\t\tExpr arr = new ExprArray(str.substring(i + 1, closeIndex), adderStr);\r\n\r\n\t\t\t\t\tif (adderStr.length() == 1 && isReserved(adderStr.charAt(0))) {\r\n\t\t\t\t\t\t// unary op done on array initializer ... !{}\r\n\t\t\t\t\t\tarr = new ExprUnary(Operator.get(Character.toString(adderStr.charAt(0))), arr);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (leftSide) at.setLeft(arr);\r\n\t\t\t\t\telse at.setRight(arr);\r\n\r\n\t\t\t\t\tadder.setLength(0);\r\n\t\t\t\t\ti = closeIndex;\r\n\t\t\t\t\tadd = false;\r\n\r\n\t\t\t\t} else if (isOp(c)) { // operator\r\n\t\t\t\t\t// add value used in operation to tree\r\n\t\t\t\t\tif (!adderStr.isEmpty()) {\r\n\t\t\t\t\t\tif (leftSide) { // ex: adderStr + ___\r\n\t\t\t\t\t\t\tat.setLeft(parseValue(adderStr));\r\n\t\t\t\t\t\t} else { // ex: (___ + adderStr) + ___\r\n\t\t\t\t\t\t\tat.setRight(parseValue(adderStr));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (opStr.equals(\"\") || (i > 0 && isOp(str.charAt(i - 1)))) { // accumulate operator from adjacent operator characters (ex: != consists of ! and =)\r\n\t\t\t\t\t\tif (!(adderStr.isEmpty() && (opStr + c).equals(\"-\")) && (Operator.get(opStr + c) != null || (opStr.isEmpty() && isOp(c)))) {// if the operator exists, then it is an operator character\r\n\t\t\t\t\t\t\tif (opStr.equals(\"-\") && c == '-') { // this and the above line handle negatives and double negatives\r\n\t\t\t\t\t\t\t\topStr = \"+\";\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\topStr += c;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tadd = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else { // existing operator operation must be added to tree ... in \"(a + b) * c\", \"(a+b)\" must be abstracted-out so we get \"x * c\"\r\n\t\t\t\t\t\tint endIndex = i + 1; // end index of operator\r\n\r\n\t\t\t\t\t\t// get entire operator if operator is more than 1 character long\r\n\t\t\t\t\t\tfor (int i2 = endIndex; i2 < str.length(); i2++) {\r\n\t\t\t\t\t\t\tif (isOp(str.charAt(i2))) endIndex++;\r\n\t\t\t\t\t\t\telse break;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tOperator nextOp = Operator.get(str.substring(i, endIndex)); // second (right-most) operator\r\n\t\t\t\t\t\tat.op = Operator.get(opStr); // first (left-most) operator\r\n\r\n\t\t\t\t\t\t// group values in operation by operator precedence\r\n\t\t\t\t\t\tint p1 = precedence(nextOp); // right-most op\r\n\t\t\t\t\t\tint p2 = precedence(at.op); // left-most op\r\n\r\n\t\t\t\t\t\tif (p1 > p2) { // group around the right-most op\r\n\t\t\t\t\t\t\tExprBinary right = new ExprBinary(at, nextOp);\r\n\t\t\t\t\t\t\tright.setLeft(at.right());\r\n\r\n\t\t\t\t\t\t\tat.setRight(right);\r\n\t\t\t\t\t\t\tat = right;\r\n\r\n\t\t\t\t\t\t} else if (p1 < p2) { // group around the left-most op\r\n\t\t\t\t\t\t\tExprBinary last = at;\r\n\t\t\t\t\t\t\tExprBinary match = at.parent();\r\n\r\n\t\t\t\t\t\t\t// correctly add to the binary tree based on precedence of operators\r\n\t\t\t\t\t\t\twhile (match instanceof ExprBinary && p1 < (p2 = precedence(((ExprBinary) match).op))) {\r\n\t\t\t\t\t\t\t\tlast = match;\r\n\t\t\t\t\t\t\t\tmatch = match.parent();\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tExprBinary tr = new ExprBinary(match, nextOp);\r\n\t\t\t\t\t\t\ttr.setLeft(last);\r\n\r\n\t\t\t\t\t\t\tif (match != null) {\r\n\t\t\t\t\t\t\t\tif (last == match.right()) match.setRight(tr);\r\n\t\t\t\t\t\t\t\telse match.setLeft(tr);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tat = tr;\r\n\r\n\t\t\t\t\t\t} else { // group from left to right (equal operator precedence)\r\n\t\t\t\t\t\t\tExprBinary left = new ExprBinary(at, at.op); // group existing values into left node, add right to open right node spot\r\n\t\t\t\t\t\t\tleft.setLeft(at.left());\r\n\t\t\t\t\t\t\tleft.setRight(at.right());\r\n\r\n\t\t\t\t\t\t\tat.op = nextOp;\r\n\t\t\t\t\t\t\tat.setLeft(left);\r\n\t\t\t\t\t\t\tat.setRight(null);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\topStr = nextOp.op;\r\n\t\t\t\t\t\ti = endIndex - 1;\r\n\t\t\t\t\t\tadd = false;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tadder.setLength(0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// store valid value characters\r\n\t\t\tif (add) {\r\n\t\t\t\tadder.append(c);\r\n\r\n\t\t\t\t// if this is the last character, then add the stored value to the tree.\r\n\t\t\t\t// otherwise, would be incorrectly ignored because there is no next operator\r\n\t\t\t\tif (i + 1 == str.length()) {\r\n\t\t\t\t\tif (opstore.length() == 0) {\r\n\t\t\t\t\t\tat.setLeft(parseValue(adder.toString()));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tat.setRight(parseValue(adder.toString()));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// initialize binary tree operator if not done so already\r\n\t\tif (at.op == null) {\r\n\t\t\tat.op = Operator.get(opstore.toString());\r\n\t\t}\r\n\r\n\t\t// after traversing the tree to some point, we need to get back to root so we can return the entire tree\r\n\t\twhile (at.parent() != null) {\r\n\t\t\tat = (ExprBinary) at.parent();\r\n\t\t}\r\n\r\n\t\t// the expression may not actually be a binary operation\r\n\t\tif (at.op == null && at.right() == NULL) {\r\n\t\t\tif (at.left() == NULL) return NULL; // the expression is empty\r\n\t\t\treturn at.left(); // the expression is a single value/unary-operation\r\n\t\t}\r\n\r\n\t\treturn at;\r\n\t}", "public String getOperator() {\n return operator;\n }", "public String getOperator() {\n return operator;\n }", "public String getOperator() {\n return operator;\n }", "public String getOperator() {\n return operator;\n }", "public String getOperator() {\n return operator;\n }", "public String getOperator() {\n return operator;\n }", "private boolean isOperator(String op){\n return (op.equals(\"+\") || op.equals(\"-\") || op.equals(\"*\") || op.equals(\"/\"));\n }", "public static String parseOperator(String operator) {\n\t\tif (StringUtils.isEmpty(operator))\n\t\t\treturn SqlBuilder.EQUAL;\n\t\telse if (\"Equals\".equals(operator))\n\t\t\treturn SqlBuilder.EQUAL;\n\t\telse if (\"Between\".equals(operator))\n\t\t\treturn SqlBuilder.BETWEEN;\n\t\telse if (\"LessThan\".equals(operator))\n\t\t\treturn SqlBuilder.LT;\n\t\telse if (\"GreaterThan\".equals(operator))\n\t\t\treturn SqlBuilder.GT;\n\t\telse if (\"IsNotNull\".equals(operator))\n\t\t\treturn SqlBuilder.NOT_NULL;\n\t\telse if (\"IsNull\".equals(operator))\n\t\t\treturn SqlBuilder.IS_NULL;\n\t\telse if (\"NotLike\".equals(operator))\n\t\t\treturn SqlBuilder.NOT_LIKE;\n\t\telse if (\"Like\".equals(operator))\n\t\t\treturn SqlBuilder.LIKE;\n\t\telse if (\"NotIn\".equals(operator))\n\t\t\treturn SqlBuilder.NOT_IN;\n\t\telse if (\"In\".equals(operator))\n\t\t\treturn SqlBuilder.IN;\n\t\telse if (\"NotNull\".equals(operator))\n\t\t\treturn SqlBuilder.NOT_NULL;\n\t\telse if (\"Not\".equals(operator))\n\t\t\treturn SqlBuilder.IS_NOT;\n\t\telse\n\t\t\tthrow new RuntimeException(\"无法识别该类过滤操作:\" + operator);\n\t}", "@Test\r\n\t\tpublic void testParseOperator() {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\tdriver.findElement(By.id(\"code_code\")).sendKeys(\"a = 5\\nb = 6\\nc = a + (b * 4)\");;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\tWebElement submitButton = driver.findElement(By.xpath(\"(//input[@name='commit'])[2]\"));\r\n\t\t\tsubmitButton.click();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tWebElement e = driver.findElement(By.tagName(\"code\"));\r\n\t\t\t\tString elementText = e.getText();\r\n\t\t\t\tassertTrue(elementText.contains(\"*\"));\r\n\t\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\t\tfail();\r\n\t\t\t}\r\n\t\t}", "Operator(String s, Precedence precedence) {\n this.operatorString = s;\n this.precedence = precedence;\n }", "private static boolean isOperator(String c)\n\t\t{\t\n\t\t\tif (c.equals(\"+\") || c.equals(\"-\") || c.equals(\"*\") || c.equals(\"/\") ) \n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "static boolean isOperator(char c) {\n return \"+\\u2212\\u00d7\\u00f7/*\".indexOf(c) != -1;\n }", "public void splitExpression(String expression, String op) {\n operator = new arithmetic_op(op);\n expression = expression.trim();\n int index = expression.indexOf(op);\n left = new arithmetic_ex((expression.substring(0, index)).trim());\n right = new arithmetic_ex((expression.substring(index + 1)).trim());\n }", "public static boolean checkOperator(String inputChar){\r\n\t\tchar tempChar = inputChar.charAt(0);\r\n\t\t\r\n\t\tswitch(tempChar){\r\n\t\t\tcase '+': return true;\r\n\t\t\tcase '-': return true;\r\n\t\t\tcase '*': return true;\r\n\t\t\tcase '/': return true;\r\n\t\t\tcase '%': return true;\r\n\t\t\tcase '&': return true;\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}", "public boolean isOperator() {\n\t\treturn (letter == '+') || (letter == '*') ||\n\t\t\t (letter == '%') || (letter == '-') ? true : false;\n\t}", "public void visit(Operator operator);", "public static Operator fromText(@NonNull String text) {\n\t\t\tfor (Operator o : Operator.values()) {\n\t\t\t\tif (o.value.equals(text)) {\n\t\t\t\t\treturn o;\n\t\t\t\t}\n\t\t\t}\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\tSafeResourceLoader.getStringFormatted(\"UNKNOWN_OPERATOR\",\n\t\t\t\t\tScriptManager.getResourceBundle(), text));\n\t\t}", "public boolean isOperator(char ch) {\n\t\tString operatorPrefixes = \"=<>+*-/\";\n\t\tif (operatorPrefixes.indexOf(ch) != -1) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public String getOperator() {\n\t\treturn operator;\n\t}", "public String getOperator() {\n\t\treturn operator;\n\t}", "public void setOperator(String incomingOperator)\r\n {\r\n \r\n operator = incomingOperator;\r\n \r\n }", "public boolean validOperator(char op){\n switch(op){\n case '+':\n case '-':\n case '*':\n case '/':\n case '^':\n case ')':\n case '(':\n return true;\n }\n\n return false;\n }", "private Token scanAmbiguousWithEquals() {\n Pair<Integer, Integer> pos = new Pair<>(in.line(), in.pos());\n buffer.add(c);\n int nextChar = in.read();\n TokenType type;\n\n // operators '>=', '<=' and ':='\n if (nextChar == '=') {\n buffer.add(nextChar);\n switch (c) {\n case '>' -> type = TokenType.GEQUALS;\n case '<' -> type = TokenType.LEQUALS;\n case ':' -> type = TokenType.ASSIGN;\n default -> type = null;\n }\n c = in.read();\n }\n // operators '>', '<', ':'\n else {\n switch (c) {\n case '>' -> type = TokenType.GREATER;\n case '<' -> type = TokenType.LESS;\n case ':' -> type = TokenType.COLON;\n default -> type = null;\n }\n c = nextChar;\n }\n Token tok = new Token(buffer.toString(), type, pos);\n buffer.flush();\n return tok;\n }", "private static char readOperation() {\n\t\tOut.println();\n\t\tOut.print(\"Bitte Operation auswaehlen: (a, z, e, n, l, p, x): \");\n\n\t\tString line = In.readLine().trim();\n\t\t//Student (Simon Sternbauer): I have added a method to show all appointments by typing in \"p\"\n\t\twhile (line.length() == 0 || ! line.startsWith(\"a\") && ! line.startsWith(\"z\") && \n\t\t\t\t! line.startsWith(\"e\") && ! line.startsWith(\"n\") && \n\t\t\t\t! line.startsWith(\"l\") && ! line.startsWith(\"x\") &&\n\t\t\t\t! line.startsWith(\"p\")) {\n\t\t\t// wrong operation code, repeat input of operation code\n\t\t\tOut.println();\n\t\t\tOut.print(\" Falsche Eingabe! Bitte Eingabe wiederholen: (a, z, e, n, l, x): \");\n\t\t\t \n\t\t\tline = In.readLine().trim();\n\t\t}\n\t\treturn line.charAt(0);\n\t}", "public static IntermediateOpcode getOpcode(String operator) {\n if(StringUtils.isBlank(operator)) {\n return null;\n }\n for(IntermediateOpcode opcode : IntermediateOpcode.class.getEnumConstants()) {\n if(opcode.operator.equals(operator)) {\n return opcode;\n }\n }\n return null;\n }", "private static int getPrecedence(char operator)\r\n\t{\r\n\t\tswitch (operator)\r\n\t\t{\r\n\t\tcase '(': case ')': return 0;\r\n\t\tcase '+': case '-': return 1;\r\n\t\tcase '*': case '/': return 2;\r\n\t\tcase '^':\t\t\treturn 3;\r\n\t\tcase '.': return 4;\r\n\t\t} // end switch\r\n\r\n\t\treturn -1;\r\n\t\t\r\n\t}", "private String getOpossiteOperation(String operation) {\n StringBuilder newOperation = new StringBuilder();\n for (int i = 0; i < operation.length(); i++) { \n if (i+2 <= operation.length()) {\n StringBuilder sb = new StringBuilder();\n sb.append(operation.charAt(i));\n sb.append(operation.charAt(i+1));\n String op = sb.toString();\n if (this.opposites.containsKey(op)) {\n newOperation.append(this.opposites.get(op));\n i++;\n } else if (this.opposites.containsKey(String.valueOf(operation.charAt(i)))) {\n newOperation.append(this.opposites.get(String.valueOf(operation.charAt(i))));\n } else if (Arrays.asList(this.operators_logical).contains(op)) {\n newOperation.append(op);\n i++;\n } else {\n newOperation.append(operation.charAt(i));\n }\n } else{ //Last character\n newOperation.append(operation.charAt(i));\n } \n }\n return newOperation.toString();\n }", "private static boolean check_if_operator(char c)\n {\n return c == '+' || c == '-' || c == '*' || c == '/' || c == '^'|| c == 'r'\n || c == '(' || c == ')'|| c == 's' || c == 'c' || c == 't' || c == 'l';\n }", "com.google.protobuf.ByteString getOperatorBytes();", "private Object visitOperatorNode(SimpleNode node, Object data)\n\t{\n\t\tfinal FormulaSemantics semantics = (FormulaSemantics) data;\n\t\tOperator op = node.getOperator();\n\t\tif (op == null)\n\t\t{\n\t\t\tFormulaSemanticsUtilities.setInvalid(semantics,\n\t\t\t\t\"Parse Error: Object of type \" + node.getClass()\n\t\t\t\t\t+ \" expected to have an operator, none was found\");\n\t\t\treturn semantics;\n\t\t}\n\t\tif (node.jjtGetNumChildren() != 2)\n\t\t{\n\t\t\tFormulaSemanticsUtilities.setInvalid(semantics,\n\t\t\t\tgetInvalidCountReport(node, 2));\n\t\t\treturn semantics;\n\t\t}\n\t\tNode child1 = node.jjtGetChild(0);\n\t\tchild1.jjtAccept(this, data);\n\t\t//Consistent with the \"fail fast\" behavior in the implementation note\n\t\tif (!semantics.getInfo(FormulaSemanticsUtilities.SEM_VALID).isValid())\n\t\t{\n\t\t\treturn semantics;\n\t\t}\n\t\t//Need to capture now\n\t\t@SuppressWarnings(\"PMD.PrematureDeclaration\")\n\t\tClass<?> format1 =\n\t\t\t\tsemantics.getInfo(FormulaSemanticsUtilities.SEM_FORMAT)\n\t\t\t\t\t.getFormat();\n\n\t\tNode child2 = node.jjtGetChild(1);\n\t\tchild2.jjtAccept(this, semantics);\n\t\t//Consistent with the \"fail fast\" behavior in the implementation note\n\t\tif (!semantics.getInfo(FormulaSemanticsUtilities.SEM_VALID).isValid())\n\t\t{\n\t\t\treturn semantics;\n\t\t}\n\t\tClass<?> format2 =\n\t\t\t\tsemantics.getInfo(FormulaSemanticsUtilities.SEM_FORMAT)\n\t\t\t\t\t.getFormat();\n\t\tClass<?> returnedFormat =\n\t\t\t\tfm.getOperatorLibrary().processAbstract(op, format1, format2);\n\t\t//null response means the library couldn't find an appropriate operator\n\t\tif (returnedFormat == null)\n\t\t{\n\t\t\tFormulaSemanticsUtilities.setInvalid(semantics,\n\t\t\t\t\"Parse Error: Operator \" + op.getSymbol()\n\t\t\t\t\t+ \" cannot process children: \" + format1.getSimpleName()\n\t\t\t\t\t+ \" and \" + format2.getSimpleName() + \" found in \"\n\t\t\t\t\t+ node.getClass().getName());\n\t\t\treturn semantics;\n\t\t}\n\t\tsemantics.setInfo(FormulaSemanticsUtilities.SEM_FORMAT,\n\t\t\tnew FormulaFormat(returnedFormat));\n\t\treturn semantics;\n\t}", "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 }", "public char getOper(){\n\t\treturn oper;\n\t}", "public static Operator getOperator(String string) {\n\t\tif (string.equals(\"%\")) {\n\t\t\treturn MOD;\n\t\t} else if (string.equals(\"/\")) {\n\t\t\treturn DIV;\n\t\t}\n\t\tfor (Operator operator : Operator.values()) {\n\t\t\tif (operator.toString().equals(string)) {\n\t\t\t\treturn operator;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private OperatorToken(final CharSequence symbol, final Precedence precedence, final Associativity associativity,\n final Multiplicity multiplicity, final Function<BigDecimal[], BigDecimal> operation) {\n super(symbol, multiplicity, operation);\n this.precedence = precedence;\n this.associativity = associativity;\n }", "private boolean isOperator(String value) {\r\n return value.equals(\"*\") || value.equals(\"/\") || value.equals(\"-\") || value.equals(\"+\") || value.equals(\"(\") || value.equals(\")\");\r\n }", "public interface BiomedicalParseSym {\n /* terminals */\n public static final int OR_OP = 6;\n public static final int String = 4;\n public static final int RPAREN = 3;\n public static final int error = 1;\n public static final int AND_OP = 5;\n public static final int NOT_OP = 7;\n public static final int LPAREN = 2;\n public static final int EOF = 0;\n}", "private boolean isOperator (String s){ \n for (int i = 0; i<operators.length; i++){\n if (s.equals(operators[i])){\n return true;\n }\n }\n return false;\n }", "private DoubleBinaryOperator chooseOperator() {\n\t\tswitch(name) {\n\t\tcase \"+\":\n\t\t\treturn ADD;\n\t\t\t\n\t\tcase \"-\":\n\t\t\treturn SUB;\n\t\t\t\n\t\tcase \"*\":\n\t\t\treturn MULTIPLY;\n\t\t\t\n\t\tcase \"/\":\n\t\t\treturn DIVIDE;\n\t\t\t\n\t\tcase \"x^n\":\n\t\t\treturn POW;\n\t\t\t\n\t\tdefault:\n\t\t\tthrow new IllegalStateException(\"Invalid binary operator\");\n\t\t}\n\t}", "static BinaryOperator<SibillaValue> getOperator(String op) {\n if (op.equals(\"+\")) {return SibillaValue::sum;}\n if (op.equals(\"-\")) {return SibillaValue::sub; }\n if (op.equals(\"%\")) {return SibillaValue::mod; }\n if (op.equals(\"*\")) {return SibillaValue::mul; }\n if (op.equals(\"/\")) {return SibillaValue::div; }\n if (op.equals(\"//\")) {return SibillaValue::zeroDiv; }\n return (x,y) -> SibillaValue.ERROR_VALUE;\n }", "private OperatorToken(final CharSequence symbol, final Precedence precedence, final Associativity associativity,\n final Function<BigDecimal[], BigDecimal> operation) {\n super(symbol, BINARY, operation);\n this.precedence = precedence;\n this.associativity = associativity;\n }", "public void setOperator(String operator) {\n this.operator = operator;\n }", "private static boolean isOperator(String token) {\n\t\treturn OPERATORS.containsKey(token);\n\t}", "public Operator getOperator() {\n return this.operator;\n }", "private static boolean isOperator(String value){\r\n\t\tif (value.equals(\"+\") ||value.equals(\"-\")|| value.equals(\"*\")|| value.equals(\"/\"))\r\n\t\t\treturn true;\r\n\t\telse return false;\r\n\t}", "void expr() throws IOException {\n\t\tinput = input+(char)lookahead;\n\t\tterm();\n\t\trest();\n\t\tprintPostfix();\n\t}", "private static String ConvertOp(String Operator) \n\t{\n\t\tswitch(Operator)\n\t\t{\n\t\tcase \"comp\":\n\t\t{\n\t\t\treturn \"Comp\";\n\t\t}\n\t\tcase \"mul\":\n\t\t{\n\t\t\treturn \"Times\";\n\t\t}\n\t\tcase \"div\":\n\t\t{\n\t\t\treturn \"Divid\";\n\t\t}\n\t\tcase \"plus\":\n\t\t{\n\t\t\treturn \"Plus\";\n\t\t}\n\t\tcase \"max\":\n\t\t{\n\t\t\treturn \"Max\";\n\t\t}\n\t\tcase \"min\":\n\t\t{\t\n\t\t\treturn \"Min\";\n\t\t}\n\t\tcase \"Comp\":\n\t\t{\n\t\t\treturn \"comp\";\n\t\t}\n\t\tcase \"Times\":\n\t\t{\n\t\t\treturn \"mul\";\n\t\t}\n\t\tcase \"Divid\":\n\t\t{\n\t\t\treturn \"div\";\n\t\t}\n\t\tcase \"Plus\":\n\t\t{\n\t\t\treturn \"plus\";\n\t\t}\n\t\tcase \"Max\":\n\t\t{\n\t\t\treturn \"max\";\n\t\t}\n\t\tcase \"Min\":\n\t\t{\t\n\t\t\treturn \"min\";\n\t\t}\n\t\tdefault:\n\t\t\treturn \"Error\";\n\t\t}\n\t}", "public Code visitOperatorNode(ExpNode.OperatorNode node) {\n beginGen(\"Operator\");\n Code code;\n ExpNode args = node.getArg();\n switch (node.getOp()) {\n case ADD_OP:\n code = args.genCode(this);\n code.generateOp(Operation.ADD);\n break;\n case SUB_OP:\n code = args.genCode(this);\n code.generateOp(Operation.NEGATE);\n code.generateOp(Operation.ADD);\n break;\n case MUL_OP:\n code = args.genCode(this);\n code.generateOp(Operation.MPY);\n break;\n case DIV_OP:\n code = args.genCode(this);\n code.generateOp(Operation.DIV);\n break;\n case EQUALS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.EQUAL);\n break;\n case LESS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.LESS);\n break;\n case NEQUALS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.EQUAL);\n code.genBoolNot();\n break;\n case LEQUALS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.LESSEQ);\n break;\n case GREATER_OP:\n /* Generate argument values in reverse order and use LESS */\n code = genArgsInReverse((ExpNode.ArgumentsNode)args);\n code.generateOp(Operation.LESS);\n break;\n case GEQUALS_OP:\n /* Generate argument values in reverse order and use LESSEQ */\n code = genArgsInReverse((ExpNode.ArgumentsNode)args);\n code.generateOp(Operation.LESSEQ);\n break;\n case NEG_OP:\n code = args.genCode(this);\n code.generateOp(Operation.NEGATE);\n break;\n default:\n errors.fatal(\"PL0 Internal error: Unknown operator\",\n node.getLocation());\n code = null;\n }\n endGen(\"Operator\");\n return code;\n }", "private void getToken(){\n\t\tboolean primaryFirst=false;\t\t\t// determines whether the current token is a primary (true) or an operator (false)\n\t\tboolean primaryIsReal=false;\t\t// determines whether the current primary is a numerical number (true) or a name (false)\n\t\tboolean checkedPrimaryType=false;\t// determine whether the primary type has already been checked (true) or not (false)\n\t\t\n\t\twhile(true){\n\t\t\tcurr_pos++;\n\t\t\tif(curr_pos>input.length()-1){\n\t\t\t\tcurr_tok=token_value.END;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(\n\t\t\t\tinput.charAt(curr_pos)=='+' ||\n\t\t\t\tinput.charAt(curr_pos)=='-' ||\n\t\t\t\tinput.charAt(curr_pos)=='*'\t||\t\n\t\t\t\tinput.charAt(curr_pos)=='/'\t||\n\t\t\t\tinput.charAt(curr_pos)=='('\t||\n\t\t\t\tinput.charAt(curr_pos)==')'\t||\n\t\t\t\tinput.charAt(curr_pos)=='^'\t||\n\t\t\t\tinput.charAt(curr_pos)=='_'\t||\n\t\t\t\tinput.charAt(curr_pos)=='='\n\t\t\t){\n\t\t\t\tif(!primaryFirst){\n\t\t\t\t\tfor(int i=0; i<charToEnum.length; i++){\n\t\t\t\t\t\tif(input.charAt(curr_pos) == charToEnum[i]){\n\t\t\t\t\t\t\tcurr_tok=token_value.values()[i];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tcurr_pos--;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(!checkedPrimaryType){\n\t\t\t\t\tcheckedPrimaryType=true;\n\t\t\t\t\tint num = (int)input.charAt(curr_pos);\n\t\t\t\t\tif(num > 47 && num < 58){ // number case\n\t\t\t\t\t\tprimaryIsReal=true;\n\t\t\t\t\t}\n\t\t\t\t\tstring_value=\"\";\n\t\t\t\t}\n\t\t\t\tprimaryFirst=true;\n\t\t\t\tstring_value+=input.charAt(curr_pos);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(primaryFirst){\n\t\t\tif(primaryIsReal){\n\t\t\t\tnumber_value = Double.parseDouble(string_value);\n\t\t\t\tcurr_tok=token_value.NUMBER;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcurr_tok=token_value.NAME;\n\t\t\t}\n\t\t}\n\t}", "public static String getOperator(Operator operator) {\n\t\tif (operator == MOD) {\n\t\t\treturn \"%\";\n\t\t} else if (operator == DIV) {\n\t\t\treturn \"/\";\n\t\t} else {\n\t\t\treturn operator.toString();\n\t\t}\n\t}", "public static EvaluationStep getBinaryOperation(final String theOperator)\n {\n if(\"+\".equals(theOperator)) return Addition;\n if(\"-\".equals(theOperator)) return Subtraction;\n if(\"*\".equals(theOperator)) return Mulitplication;\n if(\"/\".equals(theOperator)) return Division;\n if(\"^\".equals(theOperator)) return Exponentiation;\n throw new IllegalStateException(\"Invalid binary operator ($operator).\".replace(\"$operator\", (null != theOperator) ? theOperator : \"null\"));\n }", "public final Operator operator() {\n return operator;\n }", "public OperatorNode(final Operator operator,\n final int pos) {\n super(pos);\n this.operator = operator;\n }", "public void convertInfixToPostfix() {\n\t\t// Create operator stack\n\t\tStack<String> op_stack = new Stack<String>();\n\n\t\t// Prepare the input string\n\t\tprepareInput();\n\t\t\n\t\t// Split the expression \n\t\tString[] tokens = input.split(\"(?<=[^\\\\.a-zA-Z\\\\d])|(?=[^\\\\.a-zA-Z\\\\d])\");\n\t\t\n\t\t//For each token\n\t\tfor (String t : tokens) {\n\t\t\t// If the token is empty, skip it\n\t\t\tif(t.equals(\"\") || t.equals(\" \")) continue;\n\t\t\t\n\t\t\t// If operator (o1)\n\t\t\tif (Operator.isOperator(t)) {\n\n\t\t\t\t// While there is an operator (o2) an the stack and\n\t\t\t\t// (o1 is left associative AND o2 precedence is higher or equal to o1 precedence)\n\t\t\t\t// OR\n\t\t\t\t// (o1 is right associative AND o2 precedence is higher than o1 precedence)\n\t\t\t\twhile (!op_stack.empty()\n\t\t\t\t\t\t&& Operator.isOperator(op_stack.peek())\n\t\t\t\t\t\t&& (\n\t\t\t\t\t\t\t((Operator.getAssociativity(t) == Operator.LEFT) && Operator.comparePrec(op_stack.peek(), t) >= 0) \n\t\t\t\t\t\t\t|| \n\t\t\t\t\t\t\t((Operator.getAssociativity(t) == Operator.RIGHT) && Operator.comparePrec(op_stack.peek(), t) > 0)\n\t\t\t\t\t\t )\n\t\t\t\t ) \n\t\t\t\t{\n\t\t\t\t\t// add o2 to the output\n\t\t\t\t\toutput.add(op_stack.pop());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Push o1 on to the stack.\n\t\t\t\top_stack.push(t);\n\t\t\t}\n\n\t\t\telse if (t.equals(\"(\")) {\n\t\t\t\top_stack.push(t);\n\t\t\t}\n\n\t\t\telse if (t.equals(\")\")) {\n\t\t\t\t// While there is not a left parenthesis, add the top token from the stack to the output\n\t\t\t\twhile (!op_stack.peek().equals(\"(\")) {\n\t\t\t\t\toutput.add(op_stack.pop());\n\t\t\t\t}\n\n\t\t\t\t// Pop out the left parenthesis\n\t\t\t\top_stack.pop();\n\t\t\t\t\n\t\t\t\t// While there is a function on the top of the stack, add it to the output\n\t\t\t\tif(!op_stack.empty() && Function.isFunction(op_stack.peek())) output.add(op_stack.pop());\n\t\t\t}\n\t\t\telse if(Function.isFunction(t)){\n\t\t\t\top_stack.push(t);\n\t\t\t}\n\t\t\telse if(isNumeric(t) || isVariable(t)){\n\t\t\t\toutput.add(t);\n\t\t\t}\n\t\t}\n\n\t\t// Finally empty the stack, by adding all remaining tokens to the output.\n\t\twhile (!op_stack.empty()) {\n\t\t\toutput.add(op_stack.pop());\n\t\t}\n\t}", "public Operator operator() {\n return _operator != null ? _operator : Operator.OR;\n }", "private static Element string2Element(String token) {\r\n\t\tif (token.equals(\"+\")) {\r\n\t\t\treturn Operator.plusSign();\r\n\t\t} else if (token.equals(\"-\")) {\r\n\t\t\treturn Operator.minusSign();\r\n\t\t} else if (token.equals(\"*\")) {\r\n\t\t\treturn Operator.timesSign();\r\n\t\t} else if (token.equals(\"/\")) {\r\n\t\t\treturn Operator.dividedBySign();\r\n\t\t} else if (token.equals(\"(\")) {\r\n\t\t\treturn Parenthesis.leftParenthesis();\r\n\t\t} else if (token.equals(\")\")) {\r\n\t\t\treturn Parenthesis.rightParenthesis();\r\n\t\t} else {\r\n\t\t\treturn new Number(Double.parseDouble(token));\r\n\t\t}\r\n\t}", "public static String getrp(String s){\n char[] arr = s.toCharArray();\n int len = arr.length;\n String out = \"\";\n\n for(int i = 0; i < len; i++){\n char ch = arr[i];\n if(ch == ' ') continue;\n\n // if is operand, add to\n // the output stream directly\n if(ch >= '0' && ch <= '9') {\n out+=ch;\n continue;\n }\n\n //if is '(', push to the stack directly\n if(ch == '(') op.push(ch);\n\n //if is '+' or '-', pop the operator\n // from the stack until '(' and add to\n // the output stream\n //push the operator to the stack\n if(ch == '+' || ch == '-'){\n while(!op.empty() && (op.peek() != '('))\n out+=op.pop();\n op.push(ch);\n continue;\n }\n\n //if is '*' or '/', pop the operator stack and\n // add to the output stream\n // until lower priority or '('\n //push the operator to the stack\n if(ch == '*' || ch == '/'){\n while(!op.empty() && (op.peek() == '*' || op.peek() == '/'))\n out+=op.pop();\n op.push(ch);\n continue;\n }\n\n //if is ')' pop the operator stack and\n // add to the output stream until '(',\n // pop '('\n if(ch == ')'){\n while(!op.empty() && op.peek() != '(')\n out += op.pop();\n op.pop();\n continue;\n }\n }\n while(!op.empty()) out += op.pop();\n return out;\n }", "String getOp();", "String getOp();", "String getOp();", "@Test\n public void operator_literal() {\n OutputNode output = new OutputNode(\"testing\", typeOf(Result.class), typeOf(String.class));\n OperatorNode operator = new OperatorNode(\n classOf(SimpleOp.class), typeOf(Result.class), typeOf(String.class),\n output, new ValueElement(valueOf(\"???\")));\n InputNode root = new InputNode(operator);\n MockContext context = new MockContext();\n testing(root, context, op -> {\n op.process(\"Hello, world!\");\n });\n assertThat(context.get(\"testing\"), contains(\"Hello, world!???\"));\n }", "public Character compop() {\n if (lexer.token != Symbol.LT && lexer.token != Symbol.GT && lexer.token != Symbol.EQUAL) {\n error.signal(\"Missing comparison operator for condition\");\n }\n Character c = lexer.getStringValue().toCharArray()[0];\n lexer.nextToken();\n return c;\n }" ]
[ "0.7219788", "0.71655095", "0.66240716", "0.66002595", "0.65692157", "0.65577567", "0.64621216", "0.6352257", "0.62750524", "0.62657267", "0.626249", "0.6243372", "0.61984676", "0.6184491", "0.60896045", "0.60365456", "0.59664124", "0.59653234", "0.59544235", "0.59473693", "0.5934832", "0.5931732", "0.59316885", "0.5923267", "0.5894951", "0.5801894", "0.5801651", "0.5794665", "0.5764447", "0.57546484", "0.5751134", "0.57028866", "0.5695632", "0.5691576", "0.5677964", "0.56638306", "0.5659012", "0.5654002", "0.56386536", "0.5633424", "0.5633424", "0.5633424", "0.5633424", "0.5633424", "0.5633424", "0.5632287", "0.56276464", "0.562512", "0.5623843", "0.561461", "0.5613609", "0.5608811", "0.5607013", "0.55797225", "0.55709577", "0.5564631", "0.5560149", "0.55562735", "0.55562735", "0.55474156", "0.5542656", "0.55419457", "0.5534853", "0.551715", "0.551624", "0.54810065", "0.5465519", "0.546107", "0.54605085", "0.54559976", "0.5430343", "0.54243153", "0.54103744", "0.53983", "0.5380679", "0.5378479", "0.53665805", "0.53604007", "0.53603053", "0.5359455", "0.535678", "0.5352272", "0.53501457", "0.5346892", "0.5332454", "0.5322931", "0.53162926", "0.5307085", "0.5305147", "0.5299481", "0.5288637", "0.5287662", "0.52857465", "0.5285394", "0.52813315", "0.5268124", "0.5268124", "0.5268124", "0.52616334", "0.5250904" ]
0.5887718
25
Creates a SearchDate. The input may be constrained to any single time range, but combinations that create multiple ranges (e.g. h!=null, but md==null, meaning at a particular time on some day) are not accommodated.
public SearchDate(Integer md, Integer wd, Integer m, Integer y, Integer h, Integer min, Integer sec, Integer mills, boolean local) { if(wd != null && (md != null || m != null || y != null)) throw new IllegalArgumentException( "If the week day is specified, month day, month, and year cannot be"); monthDay = md; weekDay = wd; month = m; year = y; hour = h; minute = min; second = sec; milli = mills; long [] times = calcTimes(); minTime = times[0]; maxTime = times[1]; gmt = !local; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SearchDate(long time)\n\t\t{\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\tcal.setTimeInMillis(time);\n\t\t\tcal.setTimeZone(java.util.TimeZone.getTimeZone(\"GMT\"));\n\t\t\tgmt = true;\n\t\t\tyear = Integer.valueOf(cal.get(Calendar.YEAR));\n\t\t\tmonth = Integer.valueOf(cal.get(Calendar.MONTH));\n\t\t\tmonthDay = Integer.valueOf(cal.get(Calendar.DAY_OF_MONTH));\n\t\t\thour = Integer.valueOf(cal.get(Calendar.HOUR_OF_DAY));\n\t\t\tminute = Integer.valueOf(cal.get(Calendar.MINUTE));\n\t\t\tsecond = Integer.valueOf(cal.get(Calendar.SECOND));\n\t\t\tmilli = Integer.valueOf(cal.get(Calendar.MILLISECOND));\n\t\t\tminTime = maxTime = time;\n\t\t\tweekDay = null;\n\t\t}", "public static SearchCriteria build(Integer minimalSize,\n Integer maximalSize,\n Integer fromMonthInclusive,\n Integer toMonthInclusive) {\n SearchCriteria criteria = new SearchCriteria();\n criteria.minimalSize = minimalSize;\n criteria.maximalSize = maximalSize;\n criteria.fromMonthInclusive = fromMonthInclusive;\n criteria.toMonthInclusive = toMonthInclusive;\n return criteria;\n }", "private ArticleSearchQuery.SearchCriterion parseDateRange(String dateRangeParam, LocalDate startDate, LocalDate endDate) {\n ArticleSearchQuery.SearchCriterion dateRange = ArticleSearchQuery.SolrEnumeratedDateRange.ALL_TIME;\n if (!Strings.isNullOrEmpty(dateRangeParam)) {\n dateRange = ArticleSearchQuery.SolrEnumeratedDateRange.valueOf(dateRangeParam);\n } else if (startDate != null && endDate != null) {\n dateRange = new ArticleSearchQuery.SolrExplicitDateRange(\"explicit date range\",\n startDate.toString(), endDate.toString());\n }\n return dateRange;\n }", "public DateTime createDateTime() throws IllegalCommandArgumentException {\n DateTime dateTime = null;\n if (containsStartDate && containsStartTime && containsEndDate && containsEndTime) {\n compareStartEndDate();\n dateTime = new DateTime(startDate, startTime, endDate, endTime);\n checkStartEndDate(startDate, endDate, dateTime); \n } else if (containsStartDate && containsStartTime && containsEndTime) {\n dateTime = new DateTime(startDate, startTime, endTime);\n checkEndDate(startDate, dateTime);\n } else if (containsStartDate && containsStartTime) {\n dateTime = new DateTime(startDate, startTime);\n checkEndDate(startDate, dateTime);\n } else if (containsStartDate && containsEndDate) {\n compareStartEndDate();\n dateTime = new DateTime(startDate, \"0800\", endDate, \"2359\");\n checkStartEndDate(startDate, endDate, dateTime);\n } else if (containsStartDate) {\n dateTime = new DateTime(startDate);\n checkEndDate(startDate, dateTime);\n } else if (containsStartTime && containsEndTime) {\n dateTime = new DateTime(currentDate, startTime, endTime);\n } else if (containsStartTime) {\n dateTime = new DateTime(currentDate, startTime);\n }\n return dateTime;\n }", "public abstract Search create(String search, SearchBuilder builder);", "public DateRange(@NotNull DateRange dr) {\r\n startDate = dr.startDate != null ? dr.startDate.copy() : null;\r\n endDate = dr.endDate != null ? dr.endDate.copy() : null;\r\n interval = dr.interval;\r\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> forDateRange(DateTime start, DateTime end);", "TSearchResults createSearchResults(TSearchQuery searchQuery);", "private SearchAction makeSearchAction(boolean isSearchFree)\r\n throws MakeActionException, InvalidDateRangeException {\r\n if (params.length == 0) {\r\n throw new MakeActionException(SearchAction.ERR_INSUFFICIENT_ARGS);\r\n }\r\n\r\n SearchAction searchAction = new SearchAction(goku);\r\n\r\n // determine if search is to find free slots\r\n if (isSearchFree == true) {\r\n // test if datetime received is free of tasks\r\n searchAction.isSearchFree = isSearchFree;\r\n searchAction.freeDateQuery = parseDate();\r\n if (searchAction.freeDateQuery == null) {\r\n throw new MakeActionException(SearchAction.ERR_NO_VALID_DATE_FOUND);\r\n }\r\n } else {\r\n // search normally\r\n DateTime dq = extractDateQuery();\r\n DateTime dl = extractDeadline();\r\n DateRange dr = extractPeriod();\r\n searchAction.onDateQuery = dq;\r\n searchAction.dline = dl;\r\n searchAction.period = dr;\r\n\r\n // if datequery, deadline or periods are null, ignore keywords\r\n // \"on, by, from, to\"\r\n if (dq == null) {\r\n paramsOnIndex = null;\r\n }\r\n if (dl == null) {\r\n paramsByIndex = null;\r\n }\r\n if (dr == null) {\r\n paramsFromIndex = null;\r\n }\r\n\r\n String title = extractTitle();\r\n if (!title.isEmpty()) {\r\n searchAction.title = title;\r\n }\r\n }\r\n\r\n return searchAction;\r\n }", "public static Date createDate(int yyyy, int month, int day, int hour, int min) {\n/* 93 */ CALENDAR.clear();\n/* 94 */ CALENDAR.set(yyyy, month - 1, day, hour, min);\n/* 95 */ return CALENDAR.getTime();\n/* */ }", "public int dateSearch(String o1_date, String o1_time, String o2_date, String o2_time) {\n\n int yearStartUser = Integer.valueOf(o1_date.substring(6));\n int monthStartUser = Integer.valueOf(o1_date.substring(3, 5));\n int dayStartUser = Integer.valueOf(o1_date.substring(0, 2));\n\n int yearEnd = Integer.valueOf(o2_date.substring(6));\n int monthEnd = Integer.valueOf(o2_date.substring(3, 5));\n int dayEnd = Integer.valueOf(o2_date.substring(0, 2));\n\n if (yearEnd > yearStartUser)\n return 1;\n if (yearEnd == yearStartUser && monthEnd > monthStartUser)\n return 1;\n if (yearEnd == yearStartUser && monthEnd == monthStartUser && dayEnd > dayStartUser)\n return 1;\n if (yearEnd == yearStartUser && monthEnd == monthStartUser && dayEnd == dayStartUser){\n if (o2_time.compareTo(o1_time)>0)return 1;\n if (o2_time.compareTo(o1_time)==0)return 0;\n\n }\n\n\n\n return -1;\n }", "@Test\n public void testDateRangeValidDate() throws Exception {\n Map<String, String> fields = new HashMap<String, String>();\n fields.put(\"generatedTimestamp\", \"12/31/1981\");\n \n this.addSingleDayDateRange.invoke(this.lockService, fields);\n \n Assert.assertEquals(\"does not contain valid date range \" + fields.get(\"generatedTimestamp\"),\n \"12/31/1981..01/01/1982\", fields.get(\"generatedTimestamp\"));\n }", "@Query(\n value = \"SELECT d\\\\:\\\\:date\\n\" +\n \"FROM generate_series(\\n\" +\n \" :startDate\\\\:\\\\:timestamp without time zone,\\n\" +\n \" :endDate\\\\:\\\\:timestamp without time zone,\\n\" +\n \" '1 day'\\n\" +\n \" ) AS gs(d)\\n\" +\n \"WHERE NOT EXISTS(\\n\" +\n \" SELECT\\n\" +\n \" FROM bookings\\n\" +\n \" WHERE bookings.date_range @> d\\\\:\\\\:date\\n\" +\n \" );\",\n nativeQuery = true)\n List<Date> findAvailableDates(@Param(\"startDate\") LocalDate startDate, @Param(\"endDate\") LocalDate endDate);", "void setSearchRecurrenceStart(java.util.Calendar searchRecurrenceStart);", "void xsetSearchRecurrenceStart(org.apache.xmlbeans.XmlDateTime searchRecurrenceStart);", "DateRange extractPeriod() throws InvalidDateRangeException {\r\n DateRange dr = null;\r\n int indexOfFrom = Arrays.asList(lowerParams).lastIndexOf(\"from\");\r\n int indexOfTo = Arrays.asList(lowerParams).lastIndexOf(\"to\");\r\n if (indexOfFrom >= 0 && indexOfTo >= 0) {\r\n paramsFromIndex = indexOfFrom;\r\n if (indexOfTo + 1 < lowerParams.length) {\r\n /*\r\n * Parse start date\r\n */\r\n String[] startCandidates = Arrays.copyOfRange(lowerParams,\r\n indexOfFrom + 1, indexOfTo);\r\n\r\n DateTime start = DateUtil.parse(startCandidates);\r\n\r\n if (start != null && start.getHour() == null) {\r\n start = initTimeToStartOfDay(start);\r\n }\r\n\r\n /*\r\n * Parsed end date\r\n */\r\n String[] endCandidates = Arrays.copyOfRange(lowerParams, indexOfTo + 1,\r\n lowerParams.length);\r\n DateTime end = DateUtil.parse(endCandidates);\r\n\r\n if (end != null && end.getHour() == null) {\r\n end = initTimeToEndOfDay(end);\r\n }\r\n\r\n if (start != null && end != null) {\r\n dr = new DateRange(start, end);\r\n }\r\n }\r\n }\r\n return dr;\r\n }", "private void buildQueryFilterTemporal(String dateField,\n String startDate,\n String endDate,\n boolean isDatesContainedChecked,\n String namedTimescale, \n String namedTimescaleQueryType,\n TermsList termsList\n ) \n \t\tthrows UnsupportedEncodingException {\n\t boolean endDateSpecified = false;\n\t boolean startDateSpecified = false;\n\t \n /* If the user specified a named time-scale query, search for it\n * in the \"timescale\" field.\n */\n if ((namedTimescale != null) && (!(namedTimescale.equals(\"\")))) {\n termsList.addTerm(namedTimescale);\n String parenthesizedValue = parenthesizeQueryValue(namedTimescale);\n String escapedValue = Search.escapeQueryChars(parenthesizedValue);\n String encodedValue = URLEncoder.encode(escapedValue, \"UTF-8\");\n String timescaleQuery = String.format(\"timescale:%s\", encodedValue);\n updateQString(timescaleQuery);\n }\n \n if ((startDate == null) || (startDate.equals(\"\"))) {\n \tstartDate = \"*\";\n }\n else {\n startDate = ISO8601Utility.formatTimestamp(startDate, \"DAY\");\n if (startDate != null) startDateSpecified = true;\n }\n\n if ((endDate == null) || (endDate.equals(\"\"))) {\n \tendDate = \"NOW\";\n }\n else {\n \tendDate = ISO8601Utility.formatTimestamp(endDate, \"DAY\");\n \tif (endDate != null) endDateSpecified = true;\n }\n\n validateDateRange(startDate, endDate);\n \n // If a start date or an end date was specified, search temporal coverage\n //\n if (startDateSpecified || endDateSpecified) {\n \tString temporalFilter = null;\n \tString collectionFilter = null;\n \tString pubDateFilter = null;\n \tString LEFT_BRACKET = \"%5B\";\n \tString RIGHT_BRACKET = \"%5D\";\n\n if (dateField.equals(\"ALL\") || dateField.equals(\"COLLECTION\")) {\n \t String singleDateQuery = String.format(\"singledate:%s%s+TO+%s%s\", LEFT_BRACKET, startDate, endDate, RIGHT_BRACKET);\n \t String startDateQuery = String.format(\"begindate:%s*+TO+%s%s\", LEFT_BRACKET, endDate, RIGHT_BRACKET);\n \t String endDateQuery = String.format(\"enddate:%s%s+TO+NOW%s\", LEFT_BRACKET, startDate, RIGHT_BRACKET);\n \t collectionFilter = String.format(\"(%s+OR+(%s+AND+%s))\", singleDateQuery, startDateQuery, endDateQuery);\n }\n \n if (dateField.equals(\"ALL\") || dateField.equals(\"PUBLICATION\")) {\n \t pubDateFilter = String.format(\"pubdate:%s%s+TO+%s%s\", LEFT_BRACKET, startDate, endDate, RIGHT_BRACKET);\n }\n \n if (dateField.equals(\"ALL\")) {\n \t temporalFilter = String.format(\"(%s+OR+%s)\", pubDateFilter, collectionFilter);\n }\n else if (dateField.equals(\"COLLECTION\")) {\n \t temporalFilter = collectionFilter;\n }\n else if (dateField.equals(\"PUBLICATION\")) {\n \t temporalFilter = pubDateFilter;\n }\n \n updateFQString(temporalFilter); \n }\n\n }", "public DateRange getDateRange();", "TSearchQuery createSearchQuery(SearchQueryDefinitionAPI searchQueryDefinition);", "public static DateTimeRangeHelper getDateTimeRange(String s) throws DukeException {\n try {\n String[] stringArr = s.split(\"-\");\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"d/M/yyyy HHmm\");\n LocalDateTime dateTime = LocalDateTime.parse(stringArr[0], formatter);\n DateTimeFormatter dukeFormatter = new DateTimeFormatterBuilder()\n .appendText(ChronoField.DAY_OF_MONTH, ordNo)\n .appendPattern(\" 'of' MMMM yyyy, h\")\n .toFormatter();\n\n DateTimeFormatter toFormatter = DateTimeFormatter.ofPattern(\"HHmm\");\n LocalTime toTime = LocalTime.parse(stringArr[1], toFormatter);\n DateTimeFormatter toTimeFormatter = DateTimeFormatter.ofPattern(\"ha\");\n\n String st = dateTime.format(dukeFormatter) + \"-\" + toTime.format(toTimeFormatter);\n\n return new DateTimeRangeHelper(dateTime.toLocalTime(), toTime, dateTime.toLocalDate(), st);\n\n } catch (Exception ex) {\n throw new DukeException(\"I don't think that was a valid event\");\n }\n\n }", "public Cell(Date startDate, Date endDate, String startTime, String endTime, String name, String description, int slotPriority, boolean repeating, int ID, String color) {\n if(startDate instanceof java.sql.Date){\n Calendar cal = Calendar.getInstance();\n cal.setTime(new Date(startDate.getTime()));\n cal.set(Calendar.HOUR_OF_DAY, Integer.parseInt(startTime));\n this.startDate = cal.getTime();\n cal.setTime(new Date(endDate.getTime()));\n cal.set(Calendar.HOUR_OF_DAY, Integer.parseInt(endTime));\n this.endDate = cal.getTime();\n }else{\n Calendar cal = Calendar.getInstance();\n cal.setTime(startDate);\n cal.set(Calendar.HOUR_OF_DAY, Integer.parseInt(startTime));\n this.startDate = cal.getTime();\n cal.setTime(endDate);\n cal.set(Calendar.HOUR_OF_DAY, Integer.parseInt(endTime));\n this.endDate = cal.getTime();\n }\n this.startTime = startTime;\n this.endTime = endTime;\n this.name = name;\n this.description = description;\n this.slotPriority = slotPriority;\n this.repeating = repeating;\n this.ID = ID;\n this.color = color;\n }", "public static void create() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString title = \"\";\n\t\tString date = \"\";\n\t\tString startTime = \"\";\n\t\tString endTime = \"\";\n\t\tSystem.out.println(\"Enter the title of the event you would like to create: \");\n\t\tif (sc.hasNextLine()) {\n\t\t\ttitle = sc.nextLine().toLowerCase();\n\t\t}\n\t\tSystem.out.println(\"Enter the date on MM/DD/YYYY format: \");\n\t\tif (sc.hasNextLine()) {\n\t\t\tdate = sc.nextLine().toLowerCase();\n\t\t}\n\t\tSystem.out.println(\"Enter the starting time in 24 hour format (ex 15:30): \");\n\t\tif (sc.hasNextLine()) {\n\t\t\tstartTime = sc.nextLine().toLowerCase();\n\t\t}\n\t\tSystem.out.println(\"Enter the ending time: in 24 hour format (ex 15:30): \"); // if there's no end time set the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// end time to the start time.\n\t\tif (sc.hasNextLine()) {\n\t\t\tendTime = sc.nextLine().toLowerCase();\n\t\t\tif (endTime.equals(\"\")) {\n\t\t\t\tendTime = startTime;\n\t\t\t}\n\t\t}\n\t\tEvent toAdd = new Event(title, date, startTime, endTime);\n\n\t\tGregorianCalendar calendar = new GregorianCalendar(toAdd.getYear(), toAdd.getMonth(), toAdd.getDay());\n\t\tif (calendarToEvent.get(calendar) == null) { // there are no events under this date\n\t\t\tTreeSet<Event>treeSetForMap = new TreeSet<Event>();\n\t\t\ttreeSetForMap.add(toAdd);\n\t\t\tcalendarToEvent.put(calendar, treeSetForMap);\n\t\t} else { // there are already events, add event to the treeset\n\t\t\tboolean canAdd = true;\n\t\t\tfor (Event e : calendarToEvent.get(calendar)) {\n\t\t\t\tif (e.conflictCheck(toAdd)) { //check this (e.getIntEndTime()) < (toAdd.getIntStartTime()) ////return true if there is a conflict, false if there isn't\n\t\t\t\t\tSystem.out.println(\"Sorry can't add that event, there is a conflict\");\n\t\t\t\t\tcanAdd = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (canAdd) {\n\t\t\t\tcalendarToEvent.get(calendar).add(toAdd); // THAT'S WHAT IT USED TO BE calendarToEvent.get(toAdd.getDate()).add(toAdd);\n\t\t\t}\n\t\t}\n\t}", "public SolrQuery buildSolrQueryForPeriod(String query, String startDate, String endDate) {\n log.info(\"query between \" + startDate + \"T00:00:00Z and \" + endDate + \"T23:59:59Z\");\n SolrQuery solrQuery = new SolrQuery();\n solrQuery.setQuery(query); //Smurf labs forces text:query\n solrQuery.setRows(0); // 1 page only\n solrQuery.add(\"fl\", \"id\");// rows are 0 anyway\n solrQuery.add(\"fq\",\"content_type_norm:html\"); // only html pages\n solrQuery.add(\"fq\",\"crawl_date:[\" + startDate + \"T00:00:00Z TO \" + endDate + \"T23:59:59Z]\");\n return solrQuery;\n }", "protected abstract T create(final double idealStartTime);", "org.apache.xmlbeans.XmlDateTime xgetSearchRecurrenceStart();", "java.util.Calendar getSearchRecurrenceStart();", "private static String dateRangeRestriction(String startDate, String endDate){\r\n String restriction = \"\";\r\n String[] startDateParts = startDate.split(\"/\");\r\n String[] endDateParts = endDate.split(\"/\");\r\n int prevYear = Integer.parseInt(endDateParts[0]) - 1; //year previus to End year\r\n int nextYear = Integer.parseInt(startDateParts[0]) + 1; //year next to End year\r\n if(prevYear-nextYear > 1){ // For intermediate years we may not care about days and months\r\n restriction += \" PubDate-Year:[\" + nextYear + \" TO \" + prevYear + \"] OR \";\r\n }\r\n if(endDateParts[0].equals(startDateParts[0])){ // Year of start and end is the same\r\n restriction += \"( +PubDate-Year:\" + endDateParts[0] \r\n + \" +PubDate-Month:[\" + startDateParts[1] + \" TO \" + endDateParts[1] \r\n + \"] +PubDate-Day:[\" + startDateParts[2] + \" TO \" + endDateParts[2] + \"])\";\r\n } else {\r\n restriction += \"( +PubDate-Year:\" + endDateParts[0] \r\n + \" +PubDate-Month:[ 01 TO \" + endDateParts[1] \r\n + \"] +PubDate-Day:[ 01 TO \" + endDateParts[2] + \"]) OR \"\r\n + \"( +PubDate-Year:\" + startDateParts[0] \r\n + \" +PubDate-Month:[ \" + startDateParts[1] + \" TO 12\" \r\n + \"] +PubDate-Day:[ \" + startDateParts[2] + \" TO 31 ])\";\r\n }\r\n restriction = \"(\" + restriction + \")\";\r\n return restriction;\r\n }", "private Command createDisplayDateRangeNoNaturalLanguage(ArrayList<String> arguments, ArrayList<String> timeArray,\n String nullString) {\n Command command;\n String fromDate = arguments.get(0);\n String toDate = arguments.get(1);\n Integer.parseInt(fromDate);\n Integer.parseInt(toDate);\n if (checkValidDate(fromDate) && checkValidDate(toDate)) {\n if (checkStartDateBeforeEndDate(fromDate, toDate)) {\n timeArray.add(fromDate);\n timeArray.add(toDate);\n command = new Command(\"display\", 3, timeArray);\n } else {\n timeArray.add(toDate);\n timeArray.add(fromDate);\n command = new Command(\"display\", 3, timeArray);\n }\n } else {\n command = createInvalidCommand();\n }\n return command;\n }", "public ParameterData(String filterString, LocalDate matchDate, TimeSearch timeSearch) {\n this.filterString = filterString;\n this.matchDate = matchDate;\n this.timeSearch = timeSearch;\n description = null;\n dateTime = null;\n taskNumber = 0;\n }", "public Period(Date a, Date b) throws IllegalArgumentException {\n\n if (a == null || b == null) {\n throw new IllegalArgumentException(ERR_MISSING_DATE);\n }\n\n a = (Date) a.clone();\n b = (Date) b.clone();\n\n if (b.before(a)) {\n _start = b;\n _end = a;\n\n } else if (a.before(b)) {\n _start = a;\n _end = b;\n\n } else {\n throw new IllegalArgumentException(ERR_START_EQUALS_END);\n }\n }", "public void testCreateCreationDateFilter2() {\r\n try {\r\n instance.createCreationDateFilter(new Date(20000), new Date(10000));\r\n fail(\"IllegalArgumentException expected.\");\r\n } catch (IllegalArgumentException iae) {\r\n //good\r\n }\r\n }", "public TimeOffRequestQueryBody dateRange(DateRange dateRange) {\n this.dateRange = dateRange;\n return this;\n }", "public void searchByRangeDate(long firstDate, long secondDate, final int limit) throws IOException {\n final IndexSearcher indexSearcher = new IndexSearcher(reader);\n\n Query q = NumericRangeQuery.newLongRange(\"creationDate\", secondDate, firstDate, true, true);\n System.out.println(\"Type of query: \" + q.getClass().getSimpleName());\n\n final TopDocs search = indexSearcher.search(q, limit);\n final ScoreDoc[] hits = search.scoreDocs;\n showHits(hits);\n }", "public Date createDate()\n {\n Timestamp maxDate = new\n Timestamp(2021 - 1900, 11,\n 31, 23, 59, 59, 0);\n Timestamp minDate = new\n Timestamp(2017 - 1900, 0,\n 1, 0, 0, 0, 0);\n long range = maxDate.getTime() - minDate.getTime();\n long randTime = Math.abs(Main.rnd.nextLong()) % range;\n //we use abs because random number might be negative\n return new Date(minDate.getTime() + randTime);\n }", "void setDateRange(Date start, Date end);", "public Reservation build() throws BuilderException \n{\n\tif (date == null) {\n\t\tthrow new BuilderException(\"Valid date not found\");\n\t}\n\tif (city == null) {\n\t\tthrow new BuilderException(\"Valid city not found\");\n\t}\n\tif (headcount < MINHEAD) {\n\t\tthrow new BuilderException(\n\t\t\t\"Minimum headcount is \" + MINHEAD); \n\t}\n\tif (dollarsPerHead * headcount < MINTOTAL) {\n\t\tthrow new BuilderException(\n\t\t\t\"Minimum total cost is \" + MINTOTAL); \n\t}\n\treturn new Reservation(\n\t\tdate, \n\t\theadcount, \n\t\tcity, \n\t\tdollarsPerHead, \n\t\thasSite); \n}", "public VehicleSearchRequest createSearchVechicle() {\r\n\r\n\t\tVehicleSearchRequest searchRequest = new VehicleSearchRequest();\r\n\r\n\t\tif (StringUtils.isBlank(searchLocation)) {\r\n\t\t\tsearchRequest.setLocation(DefaultValues.LOCATION_DEFAULT.getDef());\r\n\t\t} else {\r\n\t\t\tsearchRequest.setLocation(searchLocation);\r\n\t\t}\r\n\r\n\t\tif (StringUtils.isBlank(searchVehicleType)) {\r\n\t\t\tsearchRequest.setVehicleType(VehicleType.getEnum(DefaultValues.VEHICLE_TYPE_DEFAULT.getDef()));\r\n\t\t} else {\r\n\t\t\tsearchRequest.setVehicleType(VehicleType.getEnum(searchVehicleType));\r\n\t\t}\r\n\r\n\t\tif (StringUtils.isBlank(searchFin)) {\r\n\t\t\tsearchRequest.setFin(DefaultValues.FIN_DEFAULT.getDef());\r\n\t\t} else {\r\n\t\t\tsearchRequest.setFin(searchFin);\r\n\t\t}\r\n\r\n\t\tif (StringUtils.isBlank(searchModel)) {\r\n\t\t\tsearchRequest.setModel(DefaultValues.MODEL_DEFAULT.getDef());\r\n\t\t} else {\r\n\t\t\tsearchRequest.setModel(searchModel);\r\n\t\t}\r\n\r\n\t\tif (StringUtils.isBlank(searchFuelType)) {\r\n\t\t\tsearchRequest.setFuelType(FuelType.DEFAULT);\r\n\t\t} else {\r\n\t\t\tsearchRequest.setFuelType(FuelType.getEnum(searchFuelType));\r\n\t\t}\r\n\r\n\t\tif (searchMaxCapacity == 0) {\r\n\t\t\tsearchRequest.setMaxCapacity(DefaultValues.MAX_CAPACITY_DEFAULT.getDefValue());\r\n\t\t} else {\r\n\t\t\tsearchRequest.setMaxCapacity(searchMaxCapacity);\r\n\t\t}\r\n\r\n\t\tif (searchMinCapacity == 0) {\r\n\t\t\tsearchRequest.setMinCapacity(DefaultValues.MIN_CAPACITY_DEFAULT.getDefValue());\r\n\t\t} else {\r\n\t\t\tsearchRequest.setMinCapacity(searchMinCapacity);\r\n\t\t}\r\n\r\n\t\tif (searchMinYear == 0) {\r\n\t\t\tsearchRequest.setMinYear(DefaultValues.MIN_YEAR_DEFAULT.getDefValue());\r\n\t\t} else {\r\n\t\t\tsearchRequest.setMinYear(searchMinYear);\r\n\t\t}\r\n\r\n\t\tif (searchMaxYear == 0) {\r\n\t\t\tsearchRequest.setMaxYear(DefaultValues.MAX_YEAR_DEFAULT.getDefValue());\r\n\t\t} else {\r\n\t\t\tsearchRequest.setMaxYear(searchMaxYear);\r\n\t\t}\r\n\r\n\t\tif (searchMaxPrice == 0) {\r\n\t\t\tsearchRequest.setMaxPrice(DefaultValues.MAX_PRICE_DEFAULT.getDefValue());\r\n\t\t} else {\r\n\t\t\tsearchRequest.setMaxPrice(searchMaxPrice);\r\n\t\t}\r\n\r\n\t\tif (searchMinPrice == 0) {\r\n\t\t\tsearchRequest.setMinPrice(DefaultValues.MIN_PRICE_DEFAULT.getDefValue());\r\n\t\t} else {\r\n\t\t\tsearchRequest.setMinPrice(searchMinPrice);\r\n\t\t}\r\n\t\treturn searchRequest;\r\n\t}", "private void addDateRangeFiltering(Map params, String dateProperty, Date startDate, Date endDate) {\n\n\t\t// date range filter is enabled\n\t\tif (dateProperty != null) {\n\n\t\t\tparams.put(IReportDAO.DATE_COLUMN, dateProperty);\n\t\t\tString check = (String) params.get(IReportDAO.DATE_COLUMN);\n\t\t\tif (check.equalsIgnoreCase(\"lastModifiedTime\")) {\n\t\t\t\t// from date\n\t\t\t\tparams.put(IReportDAO.FROM_DATE, null);\n\t\t\t\t// to date\n\t\t\t\tparams.put(IReportDAO.TO_DATE, null);\n\t\t\t} else {\n\t\t\t\t// from date\n\t\t\t\tparams.put(IReportDAO.FROM_DATE, startDate);\n\t\t\t\t// to date\n\t\t\t\tparams.put(IReportDAO.TO_DATE, endDate);\n\t\t\t}\n\n\t\t}\n\t}", "public void searchHotelReservations(Connection connection, String hotel_name, int branchID, LocalDate checkIn, LocalDate checkOut) throws SQLException {\n\n ResultSet rs = null;\n String sql = \"SELECT c_id, res_num, check_in, check_out FROM Booking WHERE hotel_name = ? AND branch_ID = ? AND check_in >= to_date(?, 'YYYY-MM-DD') AND check_out <= to_date(?, 'YYYY-MM-DD')\";\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n setHotelName(hotel_name);\n pStmt.setString(1, getHotelName());\n setBranchID(branchID);\n pStmt.setInt(2, getBranchID());\n\n if (checkIn == null && checkOut == null){\n pStmt.setString(3, LocalDate.parse(\"2000-01-01\").toString());\n pStmt.setString(4, LocalDate.parse(\"3000-01-01\").toString());\n }\n else if (checkIn == null){\n pStmt.setString(3, checkIn.toString());\n pStmt.setString(4, LocalDate.parse(\"3000-01-01\").toString());\n }\n else if (checkOut == null){\n pStmt.setString(3, LocalDate.parse(\"2000-01-01\").toString());\n pStmt.setString(4, checkOut.toString());\n }\n else {\n pStmt.setString(3, checkIn.toString());\n pStmt.setString(4, checkOut.toString());\n }\n\n try {\n\n System.out.printf(\" Reservations for %S, branch ID (%d): \\n\", getHotelName(), getBranchID());\n System.out.println(\"+------------------------------------------------------------------------------+\");\n\n rs = pStmt.executeQuery();\n\n while (rs.next()) {\n System.out.println(\" \" + rs.getString(1) + \" \" + rs.getInt(2));\n System.out.println(\" Reservation DATES: \" + rs.getDate(3) + \" TO \" + rs.getDate(4));\n }\n }\n catch (SQLException e) { throw e; }\n finally {\n pStmt.close();\n rs.close();\n }\n }", "public DeadlineDateInRangePredicate(long numberOfDays) throws ParseException {\n DeadlineDate dateSpecifiedByUser;\n try {\n dateSpecifiedByUser = new DeadlineDate(\n LocalDate.now().plusDays(numberOfDays).format(dateDateFormatter));\n } catch (DateTimeException e) {\n throw new ParseException(\n String.format(MESSAGE_INVALID_COMMAND_FORMAT, DueInCommand.MESSAGE_USAGE));\n } catch (IllegalArgumentException re) {\n throw new ParseException(\n String.format(MESSAGE_INVALID_COMMAND_FORMAT, DueInCommand.MESSAGE_USAGE));\n }\n this.numberOfDays = numberOfDays;\n this.endDate = minimumOf(dateSpecifiedByUser, maxDate);\n }", "public AssignDateCommand(Index index, EventDate startDate, EventDate endDate, EventDayTime eventDayTime) {\n requireNonNull(index);\n this.index = index;\n this.startOrTargetEventDate = Optional.of(startDate);\n this.endEventDate = Optional.of(endDate);\n this.eventDayTime = eventDayTime;\n }", "public Schedule (Employee employee, Date startDate, Date endDate) {\n this.employee = employee;\n this.startDate = startDate;\n this.endDate = endDate;\n }", "Between createBetween();", "public static SearchDate parse(StringBuilder sb, String srch)\n\t\t{\n\t\t\tif(sb.length() > 0 && sb.charAt(0) == '\"')\n\t\t\t\tsb.delete(0, 1);\n\t\t\tjava.util.Calendar now = java.util.Calendar.getInstance();\n\t\t\tInteger d, m, y, h, min = null, sec = null, mill = null;\n\t\t\tfinal boolean [] local = new boolean [] {false};\n\t\t\tboolean doubleZero = sb.length() >= 2 && sb.charAt(0) == '0' && sb.charAt(1) == '0';\n\t\t\tboolean tripleZero = doubleZero && sb.length() >= 3 && sb.charAt(2) == '0';\n\t\t\tint num = parseInt(sb);\n\t\t\tif(num >= 0)\n\t\t\t{ // num could be day or time\n\t\t\t\ttrim(sb);\n\t\t\t\tint month = parseMonth(sb, srch);\n\t\t\t\tif(month >= 0)\n\t\t\t\t{ // num was the day. Now year and/or hour may be specified\n\t\t\t\t\td = Integer.valueOf(num);\n\t\t\t\t\tm = Integer.valueOf(month);\n\t\t\t\t\tif(sb.length() > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!Character.isWhitespace(sb.charAt(0)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tint year = parseInt(sb);\n\t\t\t\t\t\t\tif(year >= 0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(year < 100)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tyear += (now.get(Calendar.YEAR) / 100) * 100;\n\t\t\t\t\t\t\t\t\tif(year > now.get(Calendar.YEAR))\n\t\t\t\t\t\t\t\t\t\tyear -= 100;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if(year <= now.get(Calendar.YEAR))\n\t\t\t\t\t\t\t\t{}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Illegal year in search \"\n\t\t\t\t\t\t\t\t\t\t+ srch);\n\t\t\t\t\t\t\t\ty = Integer.valueOf(year);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\ty = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ty = null;\n\t\t\t\t\t\tint [] hm = parseTime(sb, srch, local);\n\t\t\t\t\t\tif(hm != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\th = Integer.valueOf(hm[0]);\n\t\t\t\t\t\t\tif(hm.length > 1 && hm[1] >= 0)\n\t\t\t\t\t\t\t\tmin = Integer.valueOf(hm[1]);\n\t\t\t\t\t\t\tif(hm.length > 2 && hm[2] >= 0)\n\t\t\t\t\t\t\t\tsec = Integer.valueOf(hm[2]);\n\t\t\t\t\t\t\tif(hm.length > 3 && hm[3] >= 0)\n\t\t\t\t\t\t\t\tmill = Integer.valueOf(hm[3]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\th = null;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ty = h = null;\n\t\t\t\t}\n\t\t\t\telse if(parseSuffix(sb, num))\n\t\t\t\t{ // num was the day, with no month/year specified\n\t\t\t\t\tnow.add(Calendar.MONTH, -1);\n\t\t\t\t\tif(num < 1 && num > now.getActualMaximum(Calendar.DAY_OF_MONTH))\n\t\t\t\t\t{\n\t\t\t\t\t\tnow.add(Calendar.MONTH, 1);\n\t\t\t\t\t\tif(num < 1 || num > 31)\n\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Illegal day in search \" + srch);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Illegal day in search \" + srch\n\t\t\t\t\t\t\t\t+ \" for \" + print(MONTHS[now.get(Calendar.MONTH) - 1]));\n\t\t\t\t\t}\n\t\t\t\t\td = Integer.valueOf(num);\n\t\t\t\t\tint [] hm = parseTime(sb, srch, local);\n\t\t\t\t\tif(hm != null)\n\t\t\t\t\t{\n\t\t\t\t\t\th = Integer.valueOf(hm[0]);\n\t\t\t\t\t\tif(hm.length > 1 && hm[1] >= 0)\n\t\t\t\t\t\t\tmin = Integer.valueOf(hm[1]);\n\t\t\t\t\t\tif(hm.length > 2 && hm[2] >= 0)\n\t\t\t\t\t\t\tsec = Integer.valueOf(hm[2]);\n\t\t\t\t\t\tif(hm.length > 3 && hm[3] >= 0)\n\t\t\t\t\t\t\tmill = Integer.valueOf(hm[3]);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\th = null;\n\t\t\t\t\tm = null;\n\t\t\t\t\ty = null;\n\t\t\t\t\th = null;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{ // num was the time\n\t\t\t\t\tm = null;\n\t\t\t\t\ty = null;\n\t\t\t\t\td = null;\n\t\t\t\t\th = null;\n\t\t\t\t\tif((num == 0 && !tripleZero) || (num > 0 && num < 24 && !doubleZero))\n\t\t\t\t\t\th = Integer.valueOf(num);\n\t\t\t\t\telse if(num >= 2400 || num % 100 >= 60)\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"Illegal time in search \" + srch + \": \"\n\t\t\t\t\t\t\t+ num);\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\th = Integer.valueOf(num / 100);\n\t\t\t\t\t\tmin = Integer.valueOf(num % 100);\n\t\t\t\t\t}\n\t\t\t\t\tif(sb.length() > 0 && sb.charAt(0) == ':')\n\t\t\t\t\t{\n\t\t\t\t\t\tsb.delete(0, 1);\n\t\t\t\t\t\tint s = parseInt(sb);\n\t\t\t\t\t\tif(s >= 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsec = Integer.valueOf(s);\n\t\t\t\t\t\t\tif(sb.length() > 0 && sb.charAt(0) == '.')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tint mil = parseInt(sb);\n\t\t\t\t\t\t\t\tif(mil >= 0)\n\t\t\t\t\t\t\t\t\tmill = Integer.valueOf(mil);\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\telse\n\t\t\t{\n\t\t\t\td = null;\n\t\t\t\tint month = parseMonth(sb, srch);\n\t\t\t\tif(month < 0)\n\t\t\t\t{\n\t\t\t\t\tnum = parseWeekDay(sb, srch);\n\t\t\t\t\tif(num < 0)\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"Illegal data value in search: \" + srch);\n\t\t\t\t\ttrim(sb);\n\t\t\t\t\tInteger wd = Integer.valueOf(num);\n\t\t\t\t\tnum = parseInt(sb);\n\t\t\t\t\tif(num < 0)\n\t\t\t\t\t\th = null;\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\th = Integer.valueOf(num);\n\t\t\t\t\t\tif(sb.length() > 0 && (sb.charAt(0) == 'Z' || sb.charAt(0) == 'z'))\n\t\t\t\t\t\t\tsb.delete(0, 1);\n\t\t\t\t\t}\n\t\t\t\t\tif(sb.length() > 0 && sb.charAt(0) == '\"')\n\t\t\t\t\t\tsb.delete(0, 1);\n\t\t\t\t\treturn new SearchDate(null, wd, null, null, h, min, null, null, local[0]);\n\t\t\t\t}\n\t\t\t\tm = Integer.valueOf(month);\n\t\t\t\tif(sb.length() > 0)\n\t\t\t\t{\n\t\t\t\t\tif(!Character.isWhitespace(sb.charAt(0)))\n\t\t\t\t\t{\n\t\t\t\t\t\tint year = parseInt(sb);\n\t\t\t\t\t\tif(year >= 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(year < 100)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tyear += (now.get(Calendar.YEAR) / 100) * 100;\n\t\t\t\t\t\t\t\tif(year > now.get(Calendar.YEAR))\n\t\t\t\t\t\t\t\t\tyear -= 100;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(year <= now.get(Calendar.YEAR))\n\t\t\t\t\t\t\t{}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Illegal year in search \" + srch);\n\t\t\t\t\t\t\ty = Integer.valueOf(year);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ty = null;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ty = null;\n\t\t\t\t\tint [] hm = parseTime(sb, srch, local);\n\t\t\t\t\tif(hm != null)\n\t\t\t\t\t{\n\t\t\t\t\t\th = Integer.valueOf(hm[0]);\n\t\t\t\t\t\tif(hm.length > 1 && hm[1] >= 0)\n\t\t\t\t\t\t\tmin = Integer.valueOf(hm[1]);\n\t\t\t\t\t\tif(hm.length > 2 && hm[2] >= 0)\n\t\t\t\t\t\t\tsec = Integer.valueOf(hm[2]);\n\t\t\t\t\t\tif(hm.length > 3 && hm[3] >= 0)\n\t\t\t\t\t\t\tmill = Integer.valueOf(hm[3]);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\th = null;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\ty = h = null;\n\t\t\t}\n\t\t\tif(sb.length() > 0 && sb.charAt(0) == '\"')\n\t\t\t\tsb.delete(0, 1);\n\t\t\treturn new SearchDate(d, null, m, y, h, min, sec, mill, local[0]);\n\t\t}", "public TaskOccurrence buildTaskOccurrenceFromTask(ReadOnlyTask task, String startDate, String endDate) {\n TaskOccurrence toBuild = new TaskOccurrence(task.getLastAppendedComponent());\n toBuild = changeStartDate(toBuild, startDate);\n toBuild = changeEndDate(toBuild, endDate);\n return toBuild;\n }", "abstract public Range createRange();", "public void setRange(Date lower, Date upper) {\n/* 610 */ if (lower.getTime() >= upper.getTime()) {\n/* 611 */ throw new IllegalArgumentException(\"Requires 'lower' < 'upper'.\");\n/* */ }\n/* 613 */ setRange(new DateRange(lower, upper));\n/* */ }", "private void checkDateBounds(PortfolioRecord portRecord) {\n List<DataPoint> history = portRecord.getHistory();\n\n if (!userSetDates) {\n fromDateBound = null;\n toDateBound = null;\n }\n\n if (history.size() > 0) {\n LocalDate minDate = history.get(0).getDate();\n LocalDate maxDate = history.get(history.size() - 1).getDate();\n\n if (fromDateBound == null && toDateBound == null) {\n fromDateBound = minDate;\n toDateBound = maxDate;\n } else if (toDateBound.compareTo(maxDate) < 0) {\n toDateBound = maxDate;\n }\n } else {\n fromDateBound = null;\n toDateBound = null;\n userSetDates = false;\n }\n }", "private void validateDateRange(String startDateStr, String endDateStr) {\n Date startDate = null;\n Date endDate = null;\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n \n try {\n if ((startDateStr != null) && (endDateStr != null)) {\n startDate = dateFormat.parse(startDateStr);\n endDate = dateFormat.parse(endDateStr);\n \n if ((startDate != null) && (endDate != null) && (startDate.after(endDate))) {\n throw new IllegalArgumentException(\n \"The date range is invalid. Start date ('\" + startDateStr + \n \"') should be less than end date ('\" + endDateStr + \"').\"); \t\n }\n }\n }\n catch (ParseException e) {\n logger.warn(\"Couldn't parse date string: \" + e.getMessage());\n }\n \n }", "public TestTask buildNonRecurringTaskWithStartDate() throws IllegalValueException {\n builder = new TaskBuilder();\n return builder.withName(\"non recurring\").withStartDate(\"11 oct 2016 11pm\")\n .withEndDate(\"12 oct 2016 11pm\").build();\n }", "protected Pair<Date, Date> askForDates(boolean onlyEnd, int numDaysAsDefault) {\n\t\tthis.checkForDatesForm(onlyEnd, numDaysAsDefault);\r\n\t\tthis.datesDialog.setVisible(Boolean.TRUE);\r\n\r\n\t\t// Result?\r\n\t\tObject result = this.datesForm.getDataFieldValue(\"RESULT\");\r\n\t\tif (!ParseUtilsExtended.getBoolean(result, false)) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tDate from = (Date) this.datesForm.getDataFieldValue(\"INIT_DATE\");\r\n\t\tDate to = (Date) this.datesForm.getDataFieldValue(\"END_DATE\");\r\n\r\n\t\t// Validate dates\r\n\t\tif ((from != null) && (to != null) && to.before(from)) {\r\n\t\t\tMessageManager.getMessageManager().showMessage(this.getForm(), \"W_INVALID_DATES\", MessageType.WARNING, new Object[] {});\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t// Past dates (ends before now) -> the check must not be activated -> Considered in service implementation\r\n\t\t// Future dates (starts after than now)? -> not problem? -> Must not be a problem, access will be restricted by check and dates\r\n\r\n\t\treturn new Pair(from, to);\r\n\t}", "Range createRange();", "private android.view.View makeSearchAndTime()\n\t{\n\t\t{\n\t\t\tsearchAndTime = new LinearLayout(getContext());\n\t\t\tsearchAndTime.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,\n\t\t\t\t\tLayoutParams.WRAP_CONTENT));\n\t\t\tsearchAndTime.setOrientation(LinearLayout.HORIZONTAL);\n\n\t\t\tTextView search = new TextView(getContext());\n\t\t\tsearch.setLayoutParams(new LayoutParams(SEARCH_WIDTH, LayoutParams.WRAP_CONTENT));\n\t\t\tsearchAndTime.addView(search);\n\n\t\t\tsearchAndTime.addView(makeTimeView());\n\t\t}\n\n\t\treturn searchAndTime;\n\t}", "@Test\n public void testDateRangeNoDate() throws Exception {\n Map<String, String> fields = new HashMap<String, String>();\n this.addSingleDayDateRange.invoke(this.lockService, fields);\n \n Assert.assertNull(\"should not contain a time \" + fields.get(\"generatedTimestamp\"), fields.get(\"generatedTimestamp\"));\n }", "public Search createSearch(String searchText)\n\t\t{\n\t\t\tStringBuilder sb = new StringBuilder(searchText);\n\t\t\ttrim(sb);\n\t\t\tSearch current = null;\n\t\t\twhile(sb.length() > 0)\n\t\t\t{\n\t\t\t\tboolean not = false;\n\t\t\t\tif(sb.length() > 1 && lower(sb.charAt(0)) == 'o' && lower(sb.charAt(1)) == 'r')\n\t\t\t\t{ // OR operator\n\t\t\t\t\tsb.delete(0, 2);\n\t\t\t\t\tExpressionSearch exp = exp(false);\n\t\t\t\t\texp.add(current);\n\t\t\t\t\tcurrent = exp;\n\t\t\t\t\ttrim(sb);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse if(sb.length() > 2 && lower(sb.charAt(0)) == 'a' && lower(sb.charAt(1)) == 'n'\n\t\t\t\t\t&& lower(sb.charAt(2)) == 'd')\n\t\t\t\t{\n\t\t\t\t\tsb.delete(0, 3);\n\t\t\t\t\ttrim(sb);\n\t\t\t\t}\n\t\t\t\telse if(sb.length() > 1 && sb.charAt(0) == '!')\n\t\t\t\t{\n\t\t\t\t\tsb.delete(0, 1);\n\t\t\t\t\ttrim(sb);\n\t\t\t\t\tnot = true;\n\t\t\t\t}\n\n\t\t\t\tSearch next;\n\t\t\t\tif(sb.charAt(0) == '(')\n\t\t\t\t{\n\t\t\t\t\tint c = goPastParen(sb, 0);\n\t\t\t\t\tString nextExpr = sb.substring(1, c).trim();\n\t\t\t\t\tif(nextExpr.length() == 0)\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"Empty parenthetical expression\");\n\t\t\t\t\tnext = createSearch(nextExpr);\n\t\t\t\t\tsb.delete(0, c + 1);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tnext = parseNext(sb);\n\t\t\t\tif(not)\n\t\t\t\t{\n\t\t\t\t\tNotSearch notS = not();\n\t\t\t\t\tnotS.setOperand(next);\n\t\t\t\t\tnext = notS;\n\t\t\t\t}\n\n\t\t\t\tif(current instanceof ExpressionSearch\n\t\t\t\t\t&& ((ExpressionSearch) current).getOperandCount() == 1)\n\t\t\t\t\t((ExpressionSearch) current).add(next);\n\t\t\t\telse if(current != null)\n\t\t\t\t{\n\t\t\t\t\tExpressionSearch exp = exp(true);\n\t\t\t\t\texp.addOps(current, next);\n\t\t\t\t\tcurrent = exp;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcurrent = next;\n\n\t\t\t\ttrim(sb);\n\t\t\t}\n\t\t\tif(current instanceof ExpressionSearch)\n\t\t\t\t((ExpressionSearch) current).simplify();\n\t\t\treturn current;\n\t\t}", "public static List<Row> filterDate(List<Row> inputList, LocalDateTime startOfDateRange, LocalDateTime endOfDateRange) {\n\t\t//checks to ensure that the start of the range (1st LocalDateTime input) is before the end of the range (2nd LocalDateTime input)\n\t\tif(startOfDateRange.compareTo(endOfDateRange) > 0) {\n\t\t\t//if not, then send an error and return empty list\n\t\t\tGUI.sendError(\"Error: start of date range must be before end of date range.\");\n\t\t\treturn Collections.emptyList();\n\t\t}\n\n\t\tList<Row> outputList = new ArrayList<>();\n\n\t\t//iterate through inputList, adding all rows that fall within the specified date range to the outputList\n\t\tfor(Row row : inputList) {\n\t\t\tif(row.getDispatchTime().compareTo(startOfDateRange) >= 0 && row.getDispatchTime().compareTo(endOfDateRange) <= 0) {\n\t\t\t\toutputList.add(row);\n\t\t\t}\n\t\t}\n\n\t\t//outputList is returned after being populated\n\t\treturn outputList;\n\t}", "Date NearestEvent(Date d);", "@RequestMapping(value=\"/rs/search\", method = {RequestMethod.GET,RequestMethod.POST})\r\n\tpublic RestSearchResultModel search(\r\n\t\t\t@RequestParam(value = \"logPathPatterns\", required=false) String logPathPatterns,\r\n\t\t\t@RequestParam(value = \"logFileNamePatterns\", required=false) String logFileNamePtterns,\r\n\t\t\t@RequestParam(value = \"search\", required=true) String search,\r\n\t\t\t@RequestParam(value = \"searchOnLabels\", required=true) String searchOnLabels,\r\n\t\t\t@RequestParam(value = \"fromDateTime\", required=false) String fromDateTime,\r\n\t\t\t@RequestParam(value = \"toDateTime\", required=false) String toDateTime,\r\n\t\t\t@RequestParam(value = \"viewTz\", required=true) String viewTz) {\n\t\tRestSearchInput input = new RestSearchInput();\r\n\t\tinput.setLogPathPatterns(logPathPatterns);\r\n\t\tinput.setLogFileNamePtterns(logFileNamePtterns);\r\n\t\tinput.setSearch(search);\r\n\t\tinput.setSearchOnLabels(searchOnLabels);\r\n\t\tinput.setFromDateTime(fromDateTime);\r\n\t\tinput.setToDateTime(toDateTime);\r\n\t\tinput.setViewTz(viewTz);\r\n\t\treturn search(input);\r\n\t}", "RangeValue createRangeValue();", "public static boolean create(String title, String date, String startTime, String endTime) {\n\t\tboolean canAdd = true;\n\t\tif (date.length() != 10) { //not in the correct format MM/DD/YYYY\n\t\t\tString month = date.substring(0, date.indexOf(\"/\"));\n\t\t\tSystem.out.println(\"month within create: \" + month);\n\t\t\tif (month.length() != 2) {\n\t\t\t\tmonth = \"0\" + month;\n\t\t\t}\n\t\t\tString day = date.substring(date.indexOf(\"/\") + 1, date.indexOf(\"/\", date.indexOf(\"/\") + 1));\n\t\t\tSystem.out.println(\"day within create: \" + day);\n\t\t\tif (day.length() != 2) {\n\t\t\t\tday = \"0\" + day;\n\t\t\t}\n\t\t\tString year = date.substring(date.indexOf(\"/\", date.indexOf(\"/\") + 1) + 1);\n\t\t\tSystem.out.println(\"year within create: \" + year);\n\t\t\tdate = month + \"/\" + day + \"/\" + year;\n\t\t}\n\t\tEvent toAdd = new Event(title, date, startTime, endTime);\n\n\t\tGregorianCalendar calendar = new GregorianCalendar(toAdd.getYear(), toAdd.getMonth(), toAdd.getDay());\n\t\tif (calendarToEvent.get(calendar) == null) { // there are no events under this date\n\t\t\tTreeSet<Event> treeSetForMap = new TreeSet<Event>();\n\t\t\ttreeSetForMap.add(toAdd);\n\t\t\tcalendarToEvent.put(calendar, treeSetForMap);\n\t\t} else { // there are already events, add event to the treeset\n\t\t\t\n\t\t\tfor (Event e : calendarToEvent.get(calendar)) {\n\t\t\t\tif (e.conflictCheck(toAdd)) { //check this (e.getIntEndTime()) < (toAdd.getIntStartTime()) ////return true if there is a conflict, false if there isn't\n\t\t\t\t\tSystem.out.println(\"Sorry can't add that event, there is a conflict\");\n\t\t\t\t\tcanAdd = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (canAdd) {\n\t\t\t\tcalendarToEvent.get(calendar).add(toAdd); // THAT'S WHAT IT USED TO BE calendarToEvent.get(toAdd.getDate()).add(toAdd);\n\t\t\t}\n\t\t}\n\t\treturn canAdd;\n\t}", "public void makeValidDate() {\n\t\tdouble jd = swe_julday(this.year, this.month, this.day, this.hour, SE_GREG_CAL);\n\t\tIDate dt = swe_revjul(jd, SE_GREG_CAL);\n\t\tthis.year = dt.year;\n\t\tthis.month = dt.month;\n\t\tthis.day = dt.day;\n\t\tthis.hour = dt.hour;\n\t}", "@Query(\"select dailyReservation from DailyReservation dailyReservation where dailyReservation.date between :startDate and :endDate\")\n List<DailyReservation> findAllDailyReservation(@Param(\"startDate\") LocalDate startDate, @Param(\"endDate\") LocalDate endDate );", "private void setup_search_region (RJGUIController.XferCatalogMod xfer) {\n\n\t\t// Time range for aftershock search\n\t\t\n\t\tdouble minDays = xfer.x_dataStartTimeParam;\n\t\tdouble maxDays = xfer.x_dataEndTimeParam;\n\t\t\n\t\tlong startTime = fcmain.mainshock_time + Math.round(minDays*ComcatOAFAccessor.day_millis);\n\t\tlong endTime = fcmain.mainshock_time + Math.round(maxDays*ComcatOAFAccessor.day_millis);\n\n\t\t// Check that start date is before current time\n\n\t\tlong time_now = System.currentTimeMillis();\t\t// must be the actual system time, not ServerClock\n\t\t\n\t\tPreconditions.checkState(startTime < time_now, \"Start time is after now!\");\n\n\t\t// Check that end date is before current time, shrink the time range if not\n\t\t\n\t\tif (endTime > time_now) {\n\t\t\tdouble calcMaxDays = (time_now - startTime)/ComcatOAFAccessor.day_millis;\n\t\t\tSystem.out.println(\"WARNING: End time after current time. Setting max days to: \" + calcMaxDays);\n\t\t\txfer.modify_dataEndTimeParam(calcMaxDays);\n\t\t\tmaxDays = xfer.x_dataEndTimeParam;\n\t\t}\n\n\t\t// The magnitude-of-completeness parameters\n\n\t\tdouble magCat = fetch_fcparams.mag_comp_params.get_magCat();\n\t\tMagCompFn magCompFn = fetch_fcparams.mag_comp_params.get_magCompFn();\n\t\tSearchMagFn magSample = fetch_fcparams.mag_comp_params.get_fcn_magSample();\n\t\tSearchRadiusFn radiusSample = fetch_fcparams.mag_comp_params.get_fcn_radiusSample();\n\t\tSearchMagFn magCentroid = fetch_fcparams.mag_comp_params.get_fcn_magCentroid();\n\t\tSearchRadiusFn radiusCentroid = fetch_fcparams.mag_comp_params.get_fcn_radiusCentroid();\n\n\t\t// No custom region\n\n\t\tcustom_search_region = null;\n\n\t\t// Depth range for aftershock search, assume default\n\t\t\n\t\tdouble minDepth = ForecastParameters.SEARCH_PARAM_OMIT;\n\t\tdouble maxDepth = ForecastParameters.SEARCH_PARAM_OMIT;\n\n\t\t// Minimum magnitude is default, set from the mag-of-comp parameters\n\n\t\tdouble min_mag = ForecastParameters.SEARCH_PARAM_OMIT;\n\n\t\t// Switch on region type\n\n\t\tswitch (xfer.x_regionTypeParam) {\n\n\t\tcase STANDARD:\n\n\t\t\t// Standard region, just change to no minimum magnitude\n\n\t\t\tmagSample = magSample.makeRemovedMinMag();\n\t\t\tmagCentroid = magCentroid.makeRemovedMinMag();\n\t\t\tbreak;\n\n\t\tcase CENTROID_WC_CIRCLE:\n\n\t\t\t// WC circle around centroid, set multiplier and limits, and no minimum magnitude\n\n\t\t\tmagSample = SearchMagFn.makeNoMinMag();\n\t\t\tradiusSample = SearchRadiusFn.makeWCClip (\n\t\t\t\txfer.x_wcMultiplierParam,\n\t\t\t\txfer.x_minRadiusParam,\n\t\t\t\txfer.x_maxRadiusParam\n\t\t\t);\n\t\t\tmagCentroid = SearchMagFn.makeNoMinMag();\n\t\t\tradiusCentroid = SearchRadiusFn.makeWCClip (\n\t\t\t\txfer.x_wcMultiplierParam,\n\t\t\t\txfer.x_minRadiusParam,\n\t\t\t\txfer.x_maxRadiusParam\n\t\t\t);\n\t\t\tminDepth = xfer.x_minDepthParam;\n\t\t\tmaxDepth = xfer.x_maxDepthParam;\n\t\t\tbreak;\n\n\t\tcase CENTROID_CIRCLE:\n\n\t\t\t// Circle around centroid, set constant radius, and no minimum magnitude\n\n\t\t\tmagSample = SearchMagFn.makeNoMinMag();\n\t\t\tradiusSample = SearchRadiusFn.makeConstant (xfer.x_radiusParam);\n\t\t\tmagCentroid = SearchMagFn.makeNoMinMag();\n\t\t\tradiusCentroid = SearchRadiusFn.makeConstant (xfer.x_radiusParam);\n\t\t\tminDepth = xfer.x_minDepthParam;\n\t\t\tmaxDepth = xfer.x_maxDepthParam;\n\t\t\tbreak;\n\n\t\tcase EPICENTER_WC_CIRCLE:\n\n\t\t\t// WC circle around epicenter, set multiplier and limits, and no minimum magnitude\n\n\t\t\tmagSample = SearchMagFn.makeNoMinMag();\n\t\t\tradiusSample = SearchRadiusFn.makeWCClip (\n\t\t\t\txfer.x_wcMultiplierParam,\n\t\t\t\txfer.x_minRadiusParam,\n\t\t\t\txfer.x_maxRadiusParam\n\t\t\t);\n\t\t\tmagCentroid = SearchMagFn.makeSkipCentroid();\n\t\t\tradiusCentroid = SearchRadiusFn.makeConstant (0.0);\n\t\t\tminDepth = xfer.x_minDepthParam;\n\t\t\tmaxDepth = xfer.x_maxDepthParam;\n\t\t\tbreak;\n\n\t\tcase EPICENTER_CIRCLE:\n\n\t\t\t// Circle around epicenter, set constant radius, and no minimum magnitude\n\n\t\t\tmagSample = SearchMagFn.makeNoMinMag();\n\t\t\tradiusSample = SearchRadiusFn.makeConstant (xfer.x_radiusParam);\n\t\t\tmagCentroid = SearchMagFn.makeSkipCentroid();\n\t\t\tradiusCentroid = SearchRadiusFn.makeConstant (0.0);\n\t\t\tminDepth = xfer.x_minDepthParam;\n\t\t\tmaxDepth = xfer.x_maxDepthParam;\n\t\t\tbreak;\n\n\t\tcase CUSTOM_CIRCLE:\n\n\t\t\t// Custom circle, and no minimum magnitude\n\n\t\t\tmagSample = SearchMagFn.makeNoMinMag();\n\t\t\tmagCentroid = SearchMagFn.makeSkipCentroid();\n\t\t\tcustom_search_region = SphRegion.makeCircle (\n\t\t\t\tnew SphLatLon(xfer.x_centerLatParam, xfer.x_centerLonParam),\n\t\t\t\txfer.x_radiusParam\n\t\t\t);\n\t\t\tminDepth = xfer.x_minDepthParam;\n\t\t\tmaxDepth = xfer.x_maxDepthParam;\n\t\t\tbreak;\n\n\t\tcase CUSTOM_RECTANGLE:\n\n\t\t\t// Custom rectangle, and no minimum magnitude\n\n\t\t\tmagSample = SearchMagFn.makeNoMinMag();\n\t\t\tmagCentroid = SearchMagFn.makeSkipCentroid();\n\t\t\tcustom_search_region = SphRegion.makeMercRectangle (\n\t\t\t\tnew SphLatLon(xfer.x_minLatParam, xfer.x_minLonParam),\n\t\t\t\tnew SphLatLon(xfer.x_maxLatParam, xfer.x_maxLonParam)\n\t\t\t);\n\t\t\tminDepth = xfer.x_minDepthParam;\n\t\t\tmaxDepth = xfer.x_maxDepthParam;\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tthrow new IllegalStateException(\"Unknown region type: \" + xfer.x_regionTypeParam);\n\t\t}\n\n\t\t// Make revised magnitude-of-completeness parameters\n\n\t\tfetch_fcparams.mag_comp_params = new MagCompPage_Parameters (\n\t\t\tmagCat,\n\t\t\tmagCompFn,\n\t\t\tmagSample,\n\t\t\tradiusSample,\n\t\t\tmagCentroid,\n\t\t\tradiusCentroid\n\t\t);\n\n\t\t// Make the search region\n\n\t\tfetch_fcparams.set_aftershock_search_region (\n\t\t\tfcmain,\t\t\t\t\t// ForecastMainshock fcmain,\n\t\t\t0L,\t\t\t\t\t\t// long the_start_lag,\n\t\t\t0L,\t\t\t\t\t\t// long the_forecast_lag,\n\t\t\tcustom_search_region,\t// SphRegion the_aftershock_search_region,\n\t\t\tminDays,\t\t\t\t// double the_min_days,\n\t\t\tmaxDays,\t\t\t\t// double the_max_days,\n\t\t\tminDepth,\t\t\t\t// double the_min_depth,\n\t\t\tmaxDepth,\t\t\t\t// double the_max_depth,\n\t\t\tmin_mag\t\t\t\t\t// double the_min_mag\n\t\t);\n\n\t\tif (!( fetch_fcparams.aftershock_search_avail )) {\n\t\t\tthrow new IllegalStateException(\"Failed to build aftershock search region\");\n\t\t}\n\n\t\t// If the event (i.e. cur_mainshock) is outside the plotting domain, change its\n\t\t// hypocenter so it is inside the plotting domain\n\n\t\tLocation hypo = cur_mainshock.getHypocenterLocation();\n\t\tif (fetch_fcparams.aftershock_search_region.getPlotWrap()) {\n\t\t\tif (hypo.getLongitude() < 0.0) {\n\t\t\t\tcur_mainshock.setHypocenterLocation (new Location (\n\t\t\t\t\thypo.getLatitude(), hypo.getLongitude() + 360.0, hypo.getDepth() ));\n\t\t\t}\n\t\t} else {\n\t\t\tif (hypo.getLongitude() > 180.0) {\n\t\t\t\tcur_mainshock.setHypocenterLocation (new Location (\n\t\t\t\t\thypo.getLatitude(), hypo.getLongitude() - 360.0, hypo.getDepth() ));\n\t\t\t}\n\t\t}\n\n\t\treturn;\n\t}", "@Factory\n public static OnDateMatcher fallsOn(final Date expected) {\n return new OnDateMatcher(expected);\n }", "public SolrAdvancedSearch(\n\t String creatorName,\n String creatorOrganization,\n String dateField,\n String startDate,\n String endDate,\n String namedTimescale,\n String[] siteValues,\n String subjectField,\n String subjectValue,\n boolean isIncludeEcotrendsChecked,\n boolean isIncludeLandsat5Checked,\n boolean isDatesContainedChecked,\n boolean isSpecificChecked,\n boolean isRelatedChecked,\n boolean isRelatedSpecificChecked,\n String taxon,\n String identifier,\n boolean isBoundaryContainedChecked,\n String boundsChangedCount,\n String northBound,\n String southBound,\n String eastBound,\n String westBound,\n String locationName\n ) {\n\tsuper();\n this.creatorName = creatorName;\n this.creatorOrganization = creatorOrganization;\n this.dateField = dateField;\n this.startDate = startDate;\n this.endDate = endDate;\n this.isDatesContainedChecked = isDatesContainedChecked;\n this.namedTimescale = namedTimescale;\n this.siteValues = siteValues;\n this.subjectField = subjectField;\n this.subjectValue = subjectValue;\n this.includeEcotrends = isIncludeEcotrendsChecked;\n this.includeLandsat5 = isIncludeLandsat5Checked;\n this.taxon = taxon;\n this.identifier = identifier;\n \n this.isBoundaryContainedChecked = isBoundaryContainedChecked;\n this.boundsChangedCount = boundsChangedCount;\n this.northBound = northBound;\n this.southBound = southBound;\n this.eastBound = eastBound;\n this.westBound = westBound;\n this.locationName = locationName;\n \n this.hasExact = !isSpecificChecked && !isRelatedChecked && !isRelatedSpecificChecked;\n this.hasNarrow = isSpecificChecked && !isRelatedChecked && !isRelatedSpecificChecked;\n this.hasRelated = !isSpecificChecked && isRelatedChecked && !isRelatedSpecificChecked;\n this.hasNarrowRelated = isSpecificChecked && isRelatedChecked && !isRelatedSpecificChecked;\n this.hasAll = isRelatedSpecificChecked;\n \n this.qString = DEFAULT_Q_STRING;\n this.fqString = initializeFilterQuery(includeEcotrends, includeLandsat5);\n }", "public void testRange() throws IOException, InvalidGeoException\r\n {\n LgteIndexSearcherWrapper searcher = new LgteIndexSearcherWrapper(path);\r\n\r\n //try find Jorge and Bruno documents last year\r\n // In this case the closest one will be in 2007\r\n String query = \"contents:(Jorge Bruno)\";\r\n\r\n LgteQuery lgteQueryResult1;\r\n LgteQuery lgteQueryResult1and2;\r\n try\r\n {\r\n lgteQueryResult1 = LgteQueryParser.parseQuery(query);\r\n lgteQueryResult1and2 = LgteQueryParser.parseQuery(query);\r\n\r\n MyCalendar c1Aux = new MyCalendar(2005,11,20,9,0,10);\r\n MyCalendar c2Aux = new MyCalendar(2007,1,12,20,45,15);\r\n long dif = c2Aux.getTimeInMillis() - c1Aux.getTimeInMillis();\r\n\r\n lgteQueryResult1.getQueryParams().setTimeMiliseconds(c1Aux.getTimeInMillis());\r\n lgteQueryResult1.getQueryParams().setRadiumMiliseconds(dif -1);\r\n lgteQueryResult1and2.getQueryParams().setTimeMiliseconds(c1Aux.getTimeInMillis());\r\n lgteQueryResult1and2.getQueryParams().setRadiumMiliseconds(dif+1);\r\n }\r\n catch (ParseException e)\r\n {\r\n fail(e.toString());\r\n return;\r\n }\r\n\r\n //Lets use aos Time Sorter to dont worry about distances and stuff like that, he will do the job\r\n TimeDistanceSortSource dsort1 = new TimeDistanceSortSource();\r\n LgteSort sort1 = new LgteSort(new SortField(\"foo\", dsort1));\r\n\r\n //LgteHits give you Documents and time with unecessary lines of boring code\r\n LgteHits lgteHits1;\r\n LgteHits lgteHits1and2;\r\n lgteHits1 = searcher.search(lgteQueryResult1, sort1);\r\n assertTrue(lgteHits1.length() == 1);\r\n\r\n lgteHits1and2 = searcher.search(lgteQueryResult1and2, sort1);\r\n assertTrue(lgteHits1and2.length() == 2);\r\n\r\n\r\n long time1_0 = lgteHits1.doc(0).getTime().getTime();\r\n long time1and2_0 = lgteHits1and2.doc(0).getTime().getTime();\r\n long time1and2_1 = lgteHits1and2.doc(1).getTime().getTime();\r\n assertTrue(time1_0 == new MyCalendar(2005,11,20,9,0,10).getTimeInMillis());\r\n assertTrue(time1and2_0 == new MyCalendar(2005,11,20,9,0,10).getTimeInMillis());\r\n assertTrue(time1and2_1 == new MyCalendar(2007,1,12,20,45,15).getTimeInMillis());\r\n\r\n\r\n searcher.close();\r\n }", "public com.vodafone.global.er.decoupling.binding.request.DayRangeFullType createDayRangeFullType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.DayRangeFullTypeImpl();\n }", "public Map<Integer, Date> searchTrains(TrainSearch trainSearch) throws NotFoundInDatabaseException {\n Station station1 = stationService.getStationByName(trainSearch.getStation1().getName());\n Station station2 = stationService.getStationByName(trainSearch.getStation2().getName());\n if (station1.getName().equals(station2.getName())) {\n throw new NotFoundInDatabaseException(\"You should choose two different stations!\");\n }\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n List<Train> trainList = getAllTrains();\n Map<Integer, Date> trainMap = new HashMap<Integer, Date>();\n for (Train train: trainList) {\n if (scheduleService.checkTrainSchedule(train.getId(), station1.getId(), station2.getId())) {\n Schedule schedule = scheduleService.getScheduleByTrainIdAndStationId(train.getId(), station1.getId());\n String stringSearchDate = sdf.format(trainSearch.getDate());\n String stringScheduleDate = sdf.format(schedule.getDepartureDate());\n if (stringSearchDate.equals(stringScheduleDate)) {\n trainMap.put(train.getNumber(), schedule.getDepartureDate());\n }\n }\n }\n return trainMap;\n }", "private Calendar createNewCalendar(String dateAndTime) {\n // initiate a calendar\n Calendar calendar = Calendar.getInstance();\n // take the given dateandTime string and split it into the different values\n String date = dateAndTime.split(\" \")[0];\n String time = dateAndTime.split(\" \")[1];\n int year = Integer.valueOf(date.split(\"-\")[0]);\n int month = Integer.valueOf(date.split(\"-\")[1]) - 1;\n int day = Integer.valueOf(date.split(\"-\")[2]);\n int hour = Integer.valueOf(time.split(\":\")[0]);\n int min = Integer.valueOf(time.split(\":\")[1]);\n // set the calendar to the wanted values\n calendar.set(year, month, day, hour, min);\n return calendar;\n }", "public static void main(String[] args) {\n DataFactory df = new DataFactory();\n Date minDate = df.getDate(2000, 1, 1);\n Date maxDate = new Date();\n \n for (int i = 0; i <=1400; i++) {\n Date start = df.getDateBetween(minDate, maxDate);\n Date end = df.getDateBetween(start, maxDate);\n System.out.println(\"Date range = \" + dateToString(start) + \" to \" + dateToString(end));\n }\n\n}", "@Query(value = FIND_BOOKED_DATES)\n\tpublic List<BookingDate> getBooking(Date startDate, Date endDate);", "public Search() {\n this.timestamp = System.currentTimeMillis();\n }", "public static Filter createdWithinDateRangeFilter(Date startDate, Date endDate) {\r\n return FilterCreationHelper.createRangeFilter(RejectEmailDAO.SEARCH_CREATED_DATE, startDate, endDate);\r\n }", "public T caseDateTimeRange(DateTimeRange object) {\n\t\treturn null;\n\t}", "private DateRange setDefaultTemporalSubset(DimensionDescriptor timeDimension, SimpleFeature f) {\n final String start = timeDimension.getStartAttribute();\n final String end = timeDimension.getEndAttribute();\n Date startTime = (Date) f.getAttribute(start);\n Date endTime = startTime;\n if (end != null) {\n endTime = (Date) f.getAttribute(end);\n }\n return new DateRange(startTime, endTime);\n }", "public Exact_Period_Count create_query(String word, Date min, Date max)\r\n\t{\r\n\t\tExact_Period_Count query = new Exact_Period_Count(word, min, max);\r\n\t\tif(!m_table.containsKey(word))\r\n\t\t\tm_table.put(word, new LinkedList<Exact_Period_Count>());\r\n\t\t\r\n\t\tm_table.get(word).add(query);\r\n\t\tm_queryList.add(query);\r\n\t\treturn query;\r\n\t}", "private Date getFrom(RuleTypes.HistoricRequirements ph) {\n Calendar date = new GregorianCalendar();\n date.set(Calendar.HOUR_OF_DAY, 0);\n date.set(Calendar.MINUTE, 0);\n date.set(Calendar.SECOND, 0);\n date.set(Calendar.MILLISECOND, 0);\n int today;\n\n switch(ph) {\n case TODAY:\n return date.getTime();\n case YESTERDAY:\n date.add(Calendar.DAY_OF_MONTH, -1);\n return date.getTime();\n case THIS_WEEK:\n today = date.get(Calendar.DAY_OF_WEEK);\n date.add(Calendar.DAY_OF_WEEK,-today+Calendar.MONDAY);\n return date.getTime();\n case LAST_WEEK:\n today = date.get(Calendar.DAY_OF_WEEK);\n date.add(Calendar.DAY_OF_WEEK,-today+Calendar.MONDAY);\n date.add(Calendar.DAY_OF_MONTH, -7);\n return date.getTime();\n case THIS_MONTH:\n date.set(Calendar.DAY_OF_MONTH, date.getActualMinimum(Calendar.DAY_OF_MONTH));\n return date.getTime();\n case LAST_MONTH:\n date.set(Calendar.DAY_OF_MONTH, date.getActualMinimum(Calendar.DAY_OF_MONTH));\n date.add(Calendar.MONTH, -1);\n return date.getTime();\n case T12_HRS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -12);\n return date.getTime();\n case T24_HRS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -24);\n return date.getTime();\n case T2_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -48);\n return date.getTime();\n case T3_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -72);\n return date.getTime();\n case T4_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -96);\n return date.getTime();\n case T5_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -120);\n return date.getTime();\n case T6_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -144);\n return date.getTime();\n case T7_DAYS:\n date = new GregorianCalendar();\n date.add(Calendar.HOUR, -168);\n return date.getTime();\n }\n return null;\n }", "public static void main(String[] args) {\n\t\tDateTimeFormatter dateTimeFormatter = DateTimeFormat.forPattern(\"yyyy-MM-dd HH:mm:ss\");\n\t\tList<Interval> existingIntervals;\n\t\texistingIntervals = new ArrayList<Interval>();\n\t\t\n\t\texistingIntervals.add(new Interval(DateTime.parse(\"2016-06-13 08:00:00\", dateTimeFormatter), DateTime.parse(\"2016-06-13 10:00:00\", dateTimeFormatter)));\n\t\texistingIntervals.add(new Interval(DateTime.parse(\"2016-06-13 10:35:00\", dateTimeFormatter), DateTime.parse(\"2016-06-13 11:35:00\", dateTimeFormatter)));\n\t\texistingIntervals.add(new Interval(DateTime.parse(\"2016-06-13 12:00:00\", dateTimeFormatter), DateTime.parse(\"2016-06-13 14:00:00\", dateTimeFormatter)));\n\t\texistingIntervals.add(new Interval(DateTime.parse(\"2016-06-13 15:00:00\", dateTimeFormatter), DateTime.parse(\"2016-06-13 19:05:00\", dateTimeFormatter)));\n\t\t\n\t\tDateTimeGapFinder dateTimeGapFinder = new DateTimeGapFinder();\n\t\t// the search interval overshadows the extremities of existing intervals\n\t\tInterval bigSearch = new Interval(DateTime.parse(\"2016-06-13 10:00:00\", dateTimeFormatter), DateTime.parse(\"2016-06-13 12:00:00\", dateTimeFormatter));\n\t\t\n\t\tList<Interval> bigSearchResults = dateTimeGapFinder.findGaps(existingIntervals, bigSearch);\n\t\t\n\t\tSystem.out.println(bigSearchResults);\n\t\t\n\t}", "public static String genDateConstraint(String strFieldName, String strFromDate, String strToDate) {\r\n StringBuffer sbTemp = new StringBuffer();\r\n if (strFromDate != null) {\r\n if (strFromDate.trim().length() > 0) {\r\n sbTemp.append(\" AND \").append(strFieldName)\r\n .append(\">=TO_DATE('\")\r\n .append(strFromDate).append(\"','\")\r\n .append(NCMS.SQL_DATE_FORMAT_EXT)\r\n .append(\"')\");\r\n }\r\n }\r\n if (strToDate != null) {\r\n if (strToDate.trim().length() > 0) {\r\n // [To Date] means that end of this date e.g time is 23:59:59\r\n sbTemp.append(\" AND \")\r\n .append(strFieldName).append(\"<=TO_DATE('\")\r\n// .append(strToDate).append(\" 23:59:59\").append(\"','\")\r\n// .append(NCMS.SQL_DATE_FORMAT_FULL)\r\n// .append(\"')\");\r\n .append(strToDate).append(\" 23:59:59\").append(\"','DD-MON-YY HH24:MI:SS')\");\r\n }\r\n }\r\n return sbTemp.toString();\r\n }", "@Override\n\tpublic boolean create(Dates obj) {\n\t\treturn false;\n\t}", "List<Map<String, Object>> betweenDateFind(String date1, String date2) throws ParseException;", "void setSearchWindowStart(java.util.Calendar searchWindowStart);", "DateConstant createDateConstant();", "public PubDateFilter() {\r\n this(System.currentTimeMillis());\r\n }", "private Tasks createDurationTaskForFullInputCommand(Tasks task, String descriptionOfTask, String startDate,\n String startTime, String endDate, String endTime) {\n if (checkValidDate(startDate) && checkValidDate(endDate) && checkValidTime(startTime) && checkValidTime(endTime)) {\n if (startDate.equals(endDate)) { //creates a Duration object using createDurationTaskForSameDayEvent\n task = createDurationTaskForSameDayEvent(task, descriptionOfTask, startDate, startTime, endTime);\n } else if (checkStartDateBeforeEndDate(startDate, endDate)) { //creates a Duration object for (start,start,end,end) if checkStartDateBeforeEndDate true\n Duration durationPeriod = new Duration(startDate, startTime, endDate, endTime);\n task = new DurationTask(descriptionOfTask, durationPeriod);\n } else { //creates a Duration object for (end,end,start,start) if checkStartDateBeforeEndDate false\n Duration durationPeriod = new Duration(endDate, endTime, startDate, startTime);\n task = new DurationTask(descriptionOfTask, durationPeriod);\n }\n }\n return task;\n }", "public void setValidUntil(Date validUntil);", "public DayPeriod(Date startDate, Date endDate) {\n\t\tthis.start = startDate;\n\t\tthis.end = endDate;\n\t}", "Appointment(String description, String beginTime , String endTime){\n ShortDateFormat = new SimpleDateFormat(\"MM/dd/yyyy hh:mm a\", Locale.ENGLISH);\n //Check for bad data\n try{\n if(beginTime.contains(\"\\\"\")||endTime.contains(\"\\\"\"))\n throw new IllegalArgumentException(\"Date and time cannot contain quotes \");\n\n String[] tempStart = beginTime.split(\" \");\n String[] tempEnd= endTime.split(\" \");\n\n if(!tempStart[0].matches(\"(0?[1-9]|1[012])/(0?[1-9]|[12][0-9]|3[01])/((19|20)\\\\d\\\\d)\")||!tempEnd[0].matches(\"(0?[1-9]|1[012])/(0?[1-9]|[12][0-9]|3[01])/((19|20)\\\\d\\\\d)\")) {\n throw new IllegalArgumentException(\"Invalid Date Format\");\n }\n\n if(!tempStart[1].matches(\"([01]?[0-9]|2[0-3]):[0-5][0-9]\")||!tempEnd[1].matches(\"([01]?[0-9]|2[0-3]):[0-5][0-9]\"))\n throw new IllegalArgumentException(\"Time format must follow mm:hh (12 hour time)\");\n\n if(!tempStart[2].matches(\"(am|pm|AM|PM)\")&&!tempEnd[2].matches(\"(am|pm|AM|PM)\"))\n throw new IllegalArgumentException(\"Time must include am/pm\");\n }\n catch(IllegalArgumentException ex){\n System.out.println(ex.getMessage());\n System.exit(1);\n }\n\n setDate(beginTime,endTime);\n this.description = description;\n\n }", "public List<Campsite> findCampsitesByReservationDate(long campground_id, LocalDate from_date,LocalDate to_date);", "@Test(expected = IllegalDateException.class)\n\tpublic void testBookStartDateInPast() throws Exception {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.add(Calendar.HOUR, -2);\n\t\t// start is current date - 2\n\t\tDate invalidStartDate = cal.getTime();\n\t\tbookingManagement.book(USER_ID, Arrays.asList(room1.getId()), invalidStartDate, validEndDate);\n\t}", "@RequestMapping(path = \"/availability\", method = RequestMethod.GET)\n public List<ReservationDTO> getAvailability(\n @RequestParam(value = \"start_date\", required = false)\n @DateTimeFormat(iso = ISO.DATE) LocalDate startDate,\n @RequestParam(value = \"end_date\", required = false)\n @DateTimeFormat(iso = ISO.DATE) LocalDate endDate) {\n\n Optional<LocalDate> optStart = Optional.ofNullable(startDate);\n Optional<LocalDate> optEnd = Optional.ofNullable(endDate);\n\n if (!optStart.isPresent() && !optEnd.isPresent()) {\n //case both are not present, default time is one month from now\n startDate = LocalDate.now();\n endDate = LocalDate.now().plusMonths(1);\n } else if (optStart.isPresent() && !optEnd.isPresent()) {\n //case only start date is present, default time is one month from start date\n endDate = startDate.plusMonths(1);\n } else if (!optStart.isPresent()) {\n //case only end date is present, default time is one month before end date\n startDate = endDate.minusMonths(1);\n } // if both dates are present, do nothing just use them\n\n List<Reservation> reservationList = this.service\n .getAvailability(startDate, endDate);\n\n return reservationList.stream().map(this::parseReservation).collect(Collectors.toList());\n }", "public AssignDateCommand(Index index, EventDate targetEventDate, EventDayTime eventDayTime) {\n requireNonNull(index);\n this.index = index;\n this.startOrTargetEventDate = Optional.of(targetEventDate);\n this.endEventDate = Optional.empty();\n this.eventDayTime = eventDayTime;\n }", "public DateTime(String showName, String date, String startTime, String endTime) throws ParseException //Constructor.\n\t{//Start Constructor.\n\t\tthis.showName = showName;//Initializes the show name variable.\n\t\tthis.date = convertDate(date);//Initializes the date variable.\n\t\tthis.startTime = convertTime(startTime);//Initializes the start time variable.\n\t\tthis.endTime = convertTime(endTime);//Initializes the end time variable.\n\t}", "@GetMapping(\"/get\")\n public List<Task> getTasksBetweenDateAndTime(@RequestParam(\"dstart\") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate dateStart,\n @RequestParam(\"dend\") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) LocalDate dateEnd,\n @RequestParam(value = \"number\", required = false, defaultValue = \"0\") int number) {\n return taskService.filterTasks(dateStart, dateEnd, number);\n }", "public void testCreateCreationDateFilter1() {\r\n try {\r\n instance.createCreationDateFilter(null, null);\r\n fail(\"IllegalArgumentException expected.\");\r\n } catch (IllegalArgumentException iae) {\r\n //good\r\n }\r\n }", "private SearchSourceBuilder buildBaseSearchSource() {\n long histogramSearchStartTime = Math.max(0, context.start - ExtractorUtils.getHistogramIntervalMillis(context.aggs));\n\n SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder()\n .size(0)\n .query(ExtractorUtils.wrapInTimeRangeQuery(context.query, context.timeField, histogramSearchStartTime, context.end));\n\n context.aggs.getAggregatorFactories().forEach(searchSourceBuilder::aggregation);\n context.aggs.getPipelineAggregatorFactories().forEach(searchSourceBuilder::aggregation);\n return searchSourceBuilder;\n }", "private DateRangeFormatter calcCustomTimeFrame(int fromD, int fromM, int fromY, int toD, int toM, int toY) {\n\t\tif (reportRequest.getTimeFrame().getType() != TimeFrameType.CUSTOMIZED) return null;\n\t\t\n\t\tRange<Integer> correctDayRange = null;\n\t\tRange<Integer> days30 = new Range<Integer>(1, 30);\n\t\tRange<Integer> days31 = new Range<Integer>(1, 31);\n\t\tRange<Integer> days28 = new Range<Integer>(1, 28);\n\t\tRange<Integer> days29 = new Range<Integer>(1, 29);\n\t\tRange<Integer> months = new Range<Integer>(1, 12);\n\t\t\n\t\tLocalDate now = LocalDate.now();\n\t\tRange<Integer> years = new Range<Integer>(now.getYear() - 10, now.getYear() + 1);\n\t\t\n\t\t//check start year\n\t\tif (!years.intersects(fromY)) return null;\n\t\t\n\t\t//check start month\n\t\tif (!months.intersects(fromM)) return null;\n\t\t\n\t\t//check start day\n\t\tswitch(fromM) {\n\t\t\tcase 1: correctDayRange = days31; break;\n\t\t\tcase 2: {\n\t\t\t\t//check leap year\n\t\t\t\tif (fromY % 4 == 0) correctDayRange = days29;\n\t\t\t\telse correctDayRange = days28;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase 3: correctDayRange = days31; break;\n\t\t\tcase 4: correctDayRange = days30; break;\n\t\t\tcase 5: correctDayRange = days31; break;\n\t\t\tcase 6: correctDayRange = days30; break;\n\t\t\tcase 7: correctDayRange = days31; break;\n\t\t\tcase 8: correctDayRange = days31; break;\n\t\t\tcase 9: correctDayRange = days30; break;\n\t\t\tcase 10: correctDayRange = days31; break;\n\t\t\tcase 11: correctDayRange = days30; break;\n\t\t\tcase 12: correctDayRange = days31; break;\n\t\t}\n\t\t\n\t\tif (!correctDayRange.intersects(fromD)) return null;\n\t\t\n\t\t//check end year\n\t\tif (!years.intersects(toY)) return null;\n\t\t\n\t\t//check end month\n\t\tif (!months.intersects(toM)) return null;\n\t\t\n\t\t//check end day\n\t\tswitch(toM) {\n\t\t\tcase 1: correctDayRange = days31; break;\n\t\t\tcase 2: {\n\t\t\t\t//check leap year\n\t\t\t\tif (toY % 4 == 0) correctDayRange = days29;\n\t\t\t\telse correctDayRange = days28;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase 3: correctDayRange = days31; break;\n\t\t\tcase 4: correctDayRange = days30; break;\n\t\t\tcase 5: correctDayRange = days31; break;\n\t\t\tcase 6: correctDayRange = days30; break;\n\t\t\tcase 7: correctDayRange = days31; break;\n\t\t\tcase 8: correctDayRange = days31; break;\n\t\t\tcase 9: correctDayRange = days30; break;\n\t\t\tcase 10: correctDayRange = days31; break;\n\t\t\tcase 11: correctDayRange = days30; break;\n\t\t\tcase 12: correctDayRange = days31; break;\n\t\t}\n\t\t\n\t\tif (!correctDayRange.intersects(toD)) return null;\n\t\telse {\n\t\t\tLocalDate start = LocalDate.of(fromY, fromM, fromD);\n\t\t\tLocalDate end = LocalDate.of(toY, toM, toD);\n\t\t\treturn new DateRangeFormatter(start, end);\n\t\t}\n\t}", "public void setDateBounds(PortfolioRecord portRecord, LocalDate fromDate, LocalDate toDate) {\n List<DataPoint> history = portRecord.getHistory();\n LocalDate minDate = history.get(0).getDate();\n LocalDate maxDate = history.get(history.size() - 1).getDate();\n\n if (fromDate != null && toDate != null && !(fromDate.equals(fromDateBound) && toDate.equals(toDateBound))) {\n userSetDates = true;\n\n if (fromDate.compareTo(minDate) < 0) {\n fromDateBound = minDate;\n } else {\n fromDateBound = fromDate;\n }\n\n if (toDate.compareTo(maxDate) > 0) {\n toDateBound = maxDate;\n } else {\n toDateBound = toDate;\n }\n\n updatePerformanceGraph(true, portRecord);\n }\n }", "public void testSearchTimeEntries() throws Exception {\r\n TimeEntry timeEntry = AccuracyTestHelper.createTimeEntry(null);\r\n instance.createTimeEntries(new TimeEntry[] {timeEntry}, true);\r\n\r\n Filter filter = instance.getTimeEntryFilterFactory().createCompanyIdFilter(timeEntry.getCompanyId());\r\n TimeEntry[] timeEntries = instance.searchTimeEntries(filter);\r\n\r\n assertEquals(\"Failed to search the time entries.\", 1, timeEntries.length);\r\n assertEquals(\"Failed to search the time entries.\", timeEntry, timeEntries[0]);\r\n }", "public Task addEvent(String specifications) throws DukeException {\n try {\n if (!specifications.contains(\"/at\")) {\n throw new DukeException(\"Please use /at to specify a date and time!\");\n }\n String[] specificationsArray = specifications.split(\"/at \", 2);\n String[] dateTimeArray = specificationsArray[1].split(\" \", 2);\n String[] timeArray = dateTimeArray[1].split(\"-\", 2);\n String date = dateTimeArray[0];\n String startTime = timeArray[0];\n String endTime = timeArray[1];\n String startDateTime = date + \" \" + startTime;\n String endDateTime = date + \" \" + endTime;\n Task newTask = new Events(specificationsArray[0], startDateTime, endDateTime);\n tasks.add(newTask);\n return newTask;\n } catch (ArrayIndexOutOfBoundsException e) {\n throw new DukeException(\"Please specify a date and time range! \\nEg. /at 18/10/2020 10pm - 11pm\");\n }\n }" ]
[ "0.54830205", "0.5289184", "0.528088", "0.5111503", "0.5071913", "0.50539756", "0.5015029", "0.5012388", "0.49914196", "0.4951995", "0.4934798", "0.4916413", "0.49114162", "0.48900458", "0.4881795", "0.48741695", "0.48451355", "0.48437098", "0.48372367", "0.4832614", "0.48202378", "0.4814456", "0.48023817", "0.47569197", "0.4748334", "0.47473824", "0.4736206", "0.47310922", "0.47240844", "0.47088918", "0.4703046", "0.47002715", "0.46898904", "0.46747637", "0.46575645", "0.46477497", "0.46474272", "0.46384886", "0.46293664", "0.4624259", "0.46205232", "0.4611738", "0.46080494", "0.45945054", "0.45461047", "0.45351812", "0.45302778", "0.45290908", "0.4527581", "0.4521333", "0.45183247", "0.45087755", "0.45065528", "0.45059058", "0.44971225", "0.44887313", "0.44787818", "0.44730282", "0.44704992", "0.44600964", "0.44543833", "0.44524947", "0.44498616", "0.44484922", "0.4431273", "0.44230136", "0.44176522", "0.44172674", "0.44119194", "0.4409268", "0.44018537", "0.4399629", "0.4393849", "0.4382178", "0.43799996", "0.43790233", "0.4368474", "0.43663108", "0.43532494", "0.43517718", "0.4348281", "0.43460876", "0.43431586", "0.43423608", "0.43411314", "0.4329801", "0.432959", "0.43287322", "0.4326579", "0.43174428", "0.43168557", "0.4316791", "0.4310781", "0.43055874", "0.43007255", "0.4298301", "0.42933884", "0.42926", "0.42923307", "0.4288799" ]
0.5384198
1
Creates a SearchDate for a definite time.
public SearchDate(long time) { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); cal.setTimeZone(java.util.TimeZone.getTimeZone("GMT")); gmt = true; year = Integer.valueOf(cal.get(Calendar.YEAR)); month = Integer.valueOf(cal.get(Calendar.MONTH)); monthDay = Integer.valueOf(cal.get(Calendar.DAY_OF_MONTH)); hour = Integer.valueOf(cal.get(Calendar.HOUR_OF_DAY)); minute = Integer.valueOf(cal.get(Calendar.MINUTE)); second = Integer.valueOf(cal.get(Calendar.SECOND)); milli = Integer.valueOf(cal.get(Calendar.MILLISECOND)); minTime = maxTime = time; weekDay = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract T create(final double idealStartTime);", "private Calendar createNewCalendar(String dateAndTime) {\n // initiate a calendar\n Calendar calendar = Calendar.getInstance();\n // take the given dateandTime string and split it into the different values\n String date = dateAndTime.split(\" \")[0];\n String time = dateAndTime.split(\" \")[1];\n int year = Integer.valueOf(date.split(\"-\")[0]);\n int month = Integer.valueOf(date.split(\"-\")[1]) - 1;\n int day = Integer.valueOf(date.split(\"-\")[2]);\n int hour = Integer.valueOf(time.split(\":\")[0]);\n int min = Integer.valueOf(time.split(\":\")[1]);\n // set the calendar to the wanted values\n calendar.set(year, month, day, hour, min);\n return calendar;\n }", "private android.view.View makeSearchAndTime()\n\t{\n\t\t{\n\t\t\tsearchAndTime = new LinearLayout(getContext());\n\t\t\tsearchAndTime.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,\n\t\t\t\t\tLayoutParams.WRAP_CONTENT));\n\t\t\tsearchAndTime.setOrientation(LinearLayout.HORIZONTAL);\n\n\t\t\tTextView search = new TextView(getContext());\n\t\t\tsearch.setLayoutParams(new LayoutParams(SEARCH_WIDTH, LayoutParams.WRAP_CONTENT));\n\t\t\tsearchAndTime.addView(search);\n\n\t\t\tsearchAndTime.addView(makeTimeView());\n\t\t}\n\n\t\treturn searchAndTime;\n\t}", "public Search() {\n this.timestamp = System.currentTimeMillis();\n }", "public DateTime(LocalDate date, Optional<LocalTime> optionalTime) {\n this.date = date;\n this.optionalTime = optionalTime;\n }", "public long getSearchTime();", "public Date createDate()\n {\n Timestamp maxDate = new\n Timestamp(2021 - 1900, 11,\n 31, 23, 59, 59, 0);\n Timestamp minDate = new\n Timestamp(2017 - 1900, 0,\n 1, 0, 0, 0, 0);\n long range = maxDate.getTime() - minDate.getTime();\n long randTime = Math.abs(Main.rnd.nextLong()) % range;\n //we use abs because random number might be negative\n return new Date(minDate.getTime() + randTime);\n }", "public void setTimeCreate(Date timeCreate) {\n this.timeCreate = timeCreate;\n }", "public DateTime(Date date,Time12 time)\n {\n\t\tthis.date=date;\n\t\tthis.time=time;\n }", "private Date getTestListingDateTimeStamp() {\n TimeZone.setDefault(TimeZone.getTimeZone(\"Europe/London\"));\n\n GregorianCalendar calendar = new GregorianCalendar(2010, 0, 1, 17, 0);\n return new Date(calendar.getTimeInMillis());\n }", "public DateTime createDateTime() throws IllegalCommandArgumentException {\n DateTime dateTime = null;\n if (containsStartDate && containsStartTime && containsEndDate && containsEndTime) {\n compareStartEndDate();\n dateTime = new DateTime(startDate, startTime, endDate, endTime);\n checkStartEndDate(startDate, endDate, dateTime); \n } else if (containsStartDate && containsStartTime && containsEndTime) {\n dateTime = new DateTime(startDate, startTime, endTime);\n checkEndDate(startDate, dateTime);\n } else if (containsStartDate && containsStartTime) {\n dateTime = new DateTime(startDate, startTime);\n checkEndDate(startDate, dateTime);\n } else if (containsStartDate && containsEndDate) {\n compareStartEndDate();\n dateTime = new DateTime(startDate, \"0800\", endDate, \"2359\");\n checkStartEndDate(startDate, endDate, dateTime);\n } else if (containsStartDate) {\n dateTime = new DateTime(startDate);\n checkEndDate(startDate, dateTime);\n } else if (containsStartTime && containsEndTime) {\n dateTime = new DateTime(currentDate, startTime, endTime);\n } else if (containsStartTime) {\n dateTime = new DateTime(currentDate, startTime);\n }\n return dateTime;\n }", "DateConstant createDateConstant();", "public abstract Search create(String search, SearchBuilder builder);", "private static Calendar createCalendar(int year, int month, int date,\r\n\t\t\tint hour, int minute, int second) {\r\n\t\tCalendar calendar = createCalendar(year, month, date, hour, minute);\r\n\t\tcalendar.set(Calendar.SECOND, second);\r\n\t\treturn calendar;\r\n\t}", "TSearchResults createSearchResults(TSearchQuery searchQuery);", "public ParameterData(String filterString, LocalDate matchDate, TimeSearch timeSearch) {\n this.filterString = filterString;\n this.matchDate = matchDate;\n this.timeSearch = timeSearch;\n description = null;\n dateTime = null;\n taskNumber = 0;\n }", "public static AbsTime factory(Date date)\n {\n return new AbsTime(date);\n }", "public static Date createDate(int yyyy, int month, int day, int hour, int min) {\n/* 93 */ CALENDAR.clear();\n/* 94 */ CALENDAR.set(yyyy, month - 1, day, hour, min);\n/* 95 */ return CALENDAR.getTime();\n/* */ }", "org.apache.xmlbeans.XmlDateTime xgetSearchRecurrenceStart();", "TSearchQuery createSearchQuery(SearchQueryDefinitionAPI searchQueryDefinition);", "private static Calendar createCalendar(int year, int month, int date,\r\n\t\t\tint hour, int minute) {\r\n\t\tCalendar calendar = createCalendar(year, month, date);\r\n\t\tcalendar.set(Calendar.HOUR_OF_DAY, hour);\r\n\t\tcalendar.set(Calendar.MINUTE, minute);\r\n\t\treturn calendar;\r\n\t}", "private void fillInDateTime ( final String dateField, final String date, final String timeField,\n final String time ) {\n waitForAngular();\n fillInDate( dateField, date );\n fillInTime( timeField, time );\n }", "public SearchDate(Integer md, Integer wd, Integer m, Integer y, Integer h, Integer min,\n\t\t\tInteger sec, Integer mills, boolean local)\n\t\t{\n\t\t\tif(wd != null && (md != null || m != null || y != null))\n\t\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"If the week day is specified, month day, month, and year cannot be\");\n\t\t\tmonthDay = md;\n\t\t\tweekDay = wd;\n\t\t\tmonth = m;\n\t\t\tyear = y;\n\t\t\thour = h;\n\t\t\tminute = min;\n\t\t\tsecond = sec;\n\t\t\tmilli = mills;\n\t\t\tlong [] times = calcTimes();\n\t\t\tminTime = times[0];\n\t\t\tmaxTime = times[1];\n\t\t\tgmt = !local;\n\t\t}", "public void createTempSpecialDayTrainSchedule(Timestamp date);", "public static void create() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString title = \"\";\n\t\tString date = \"\";\n\t\tString startTime = \"\";\n\t\tString endTime = \"\";\n\t\tSystem.out.println(\"Enter the title of the event you would like to create: \");\n\t\tif (sc.hasNextLine()) {\n\t\t\ttitle = sc.nextLine().toLowerCase();\n\t\t}\n\t\tSystem.out.println(\"Enter the date on MM/DD/YYYY format: \");\n\t\tif (sc.hasNextLine()) {\n\t\t\tdate = sc.nextLine().toLowerCase();\n\t\t}\n\t\tSystem.out.println(\"Enter the starting time in 24 hour format (ex 15:30): \");\n\t\tif (sc.hasNextLine()) {\n\t\t\tstartTime = sc.nextLine().toLowerCase();\n\t\t}\n\t\tSystem.out.println(\"Enter the ending time: in 24 hour format (ex 15:30): \"); // if there's no end time set the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// end time to the start time.\n\t\tif (sc.hasNextLine()) {\n\t\t\tendTime = sc.nextLine().toLowerCase();\n\t\t\tif (endTime.equals(\"\")) {\n\t\t\t\tendTime = startTime;\n\t\t\t}\n\t\t}\n\t\tEvent toAdd = new Event(title, date, startTime, endTime);\n\n\t\tGregorianCalendar calendar = new GregorianCalendar(toAdd.getYear(), toAdd.getMonth(), toAdd.getDay());\n\t\tif (calendarToEvent.get(calendar) == null) { // there are no events under this date\n\t\t\tTreeSet<Event>treeSetForMap = new TreeSet<Event>();\n\t\t\ttreeSetForMap.add(toAdd);\n\t\t\tcalendarToEvent.put(calendar, treeSetForMap);\n\t\t} else { // there are already events, add event to the treeset\n\t\t\tboolean canAdd = true;\n\t\t\tfor (Event e : calendarToEvent.get(calendar)) {\n\t\t\t\tif (e.conflictCheck(toAdd)) { //check this (e.getIntEndTime()) < (toAdd.getIntStartTime()) ////return true if there is a conflict, false if there isn't\n\t\t\t\t\tSystem.out.println(\"Sorry can't add that event, there is a conflict\");\n\t\t\t\t\tcanAdd = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (canAdd) {\n\t\t\t\tcalendarToEvent.get(calendar).add(toAdd); // THAT'S WHAT IT USED TO BE calendarToEvent.get(toAdd.getDate()).add(toAdd);\n\t\t\t}\n\t\t}\n\t}", "public void testSearchTimeEntries() throws Exception {\r\n TimeEntry timeEntry = AccuracyTestHelper.createTimeEntry(null);\r\n instance.createTimeEntries(new TimeEntry[] {timeEntry}, true);\r\n\r\n Filter filter = instance.getTimeEntryFilterFactory().createCompanyIdFilter(timeEntry.getCompanyId());\r\n TimeEntry[] timeEntries = instance.searchTimeEntries(filter);\r\n\r\n assertEquals(\"Failed to search the time entries.\", 1, timeEntries.length);\r\n assertEquals(\"Failed to search the time entries.\", timeEntry, timeEntries[0]);\r\n }", "void xsetSearchRecurrenceStart(org.apache.xmlbeans.XmlDateTime searchRecurrenceStart);", "public DateTime(final BusinessObject parent) {\n super(parent);\n if (clock == null) {\n throw new ApplicationException(\"Clock not set up\");\n }\n setValue(new java.util.Date(clock.getTime()));\n isNull = false;\n }", "public int dateSearch(String o1_date, String o1_time, String o2_date, String o2_time) {\n\n int yearStartUser = Integer.valueOf(o1_date.substring(6));\n int monthStartUser = Integer.valueOf(o1_date.substring(3, 5));\n int dayStartUser = Integer.valueOf(o1_date.substring(0, 2));\n\n int yearEnd = Integer.valueOf(o2_date.substring(6));\n int monthEnd = Integer.valueOf(o2_date.substring(3, 5));\n int dayEnd = Integer.valueOf(o2_date.substring(0, 2));\n\n if (yearEnd > yearStartUser)\n return 1;\n if (yearEnd == yearStartUser && monthEnd > monthStartUser)\n return 1;\n if (yearEnd == yearStartUser && monthEnd == monthStartUser && dayEnd > dayStartUser)\n return 1;\n if (yearEnd == yearStartUser && monthEnd == monthStartUser && dayEnd == dayStartUser){\n if (o2_time.compareTo(o1_time)>0)return 1;\n if (o2_time.compareTo(o1_time)==0)return 0;\n\n }\n\n\n\n return -1;\n }", "public DateTime(String showName, String date, String startTime, String endTime) throws ParseException //Constructor.\n\t{//Start Constructor.\n\t\tthis.showName = showName;//Initializes the show name variable.\n\t\tthis.date = convertDate(date);//Initializes the date variable.\n\t\tthis.startTime = convertTime(startTime);//Initializes the start time variable.\n\t\tthis.endTime = convertTime(endTime);//Initializes the end time variable.\n\t}", "public Schedule(Date startTime, long repeatAfter, TimeUnit unit) {\n\t\tsuper();\n\t\tthis.startTime = startTime == null ? new Date() : startTime;\n\t\tthis.repeatAfter = repeatAfter;\n\t\tthis.unit = unit;\n\t}", "private Calendar createCalendar() {\n Calendar cal = Calendar.getInstance();\n\n // clear all aspects of the time that are not used\n cal.set(Calendar.MILLISECOND, 0);\n\n return cal;\n }", "Date getForDate();", "public Schedule(Date startTime) {\n\t\tAssert.notNull(startTime, \"Scheduled time reqd\");\n\t\tthis.startTime = startTime;\n\t\tthis.repeatAfter = -1;\n\t}", "Schedule createSchedule();", "public ShortDate(final long time) {\n super(time);\n }", "private SearchAction makeSearchAction(boolean isSearchFree)\r\n throws MakeActionException, InvalidDateRangeException {\r\n if (params.length == 0) {\r\n throw new MakeActionException(SearchAction.ERR_INSUFFICIENT_ARGS);\r\n }\r\n\r\n SearchAction searchAction = new SearchAction(goku);\r\n\r\n // determine if search is to find free slots\r\n if (isSearchFree == true) {\r\n // test if datetime received is free of tasks\r\n searchAction.isSearchFree = isSearchFree;\r\n searchAction.freeDateQuery = parseDate();\r\n if (searchAction.freeDateQuery == null) {\r\n throw new MakeActionException(SearchAction.ERR_NO_VALID_DATE_FOUND);\r\n }\r\n } else {\r\n // search normally\r\n DateTime dq = extractDateQuery();\r\n DateTime dl = extractDeadline();\r\n DateRange dr = extractPeriod();\r\n searchAction.onDateQuery = dq;\r\n searchAction.dline = dl;\r\n searchAction.period = dr;\r\n\r\n // if datequery, deadline or periods are null, ignore keywords\r\n // \"on, by, from, to\"\r\n if (dq == null) {\r\n paramsOnIndex = null;\r\n }\r\n if (dl == null) {\r\n paramsByIndex = null;\r\n }\r\n if (dr == null) {\r\n paramsFromIndex = null;\r\n }\r\n\r\n String title = extractTitle();\r\n if (!title.isEmpty()) {\r\n searchAction.title = title;\r\n }\r\n }\r\n\r\n return searchAction;\r\n }", "public DateTime(Date date) {\r\n\t\tthis.timeString = YYYY_MMT_DD_T_HH_MM_SS_FORMATTER.format(date);\r\n\t}", "java.lang.String getFoundingDate();", "public AssignDateCommand(Index index, EventDayTime eventDayTime) {\n requireNonNull(index);\n this.index = index;\n this.startOrTargetEventDate = Optional.empty();\n this.endEventDate = Optional.empty();\n this.eventDayTime = eventDayTime;\n }", "public AssignDateCommand(Index index, EventDate targetEventDate, EventDayTime eventDayTime) {\n requireNonNull(index);\n this.index = index;\n this.startOrTargetEventDate = Optional.of(targetEventDate);\n this.endEventDate = Optional.empty();\n this.eventDayTime = eventDayTime;\n }", "public void setdCreatetime(Date dCreatetime) {\n this.dCreatetime = dCreatetime;\n }", "private Date calculateDate(Date date, String time) {\n Date fullDate = null;\n if (date != null) {\n fullDate = date;\n if (time != null && !time.isEmpty()) {\n fullDate = DateUtil.addTimeToDate(fullDate, time);\n }\n }\n return fullDate;\n }", "public MyDate(long inElapsedTime)\n {\n //put in logic here\n elapsedTime = inElapsedTime;\n this.setDate(elapsedTime);\n }", "TimerSchedule createTimerSchedule();", "public PubDateFilter() {\r\n this(System.currentTimeMillis());\r\n }", "public void setCreatTime(Date creatTime) {\n this.creatTime = creatTime;\n }", "public void setCreatTime(Date creatTime) {\n this.creatTime = creatTime;\n }", "public Timetable(String description, String location, LocalDate date, LocalTime time) {\n super(description);\n setLocation(location);\n setDate(date);\n setTime(time);\n }", "public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }", "public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }", "public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }", "public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }", "public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }", "public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }", "public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }", "public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }", "java.util.Calendar getSearchRecurrenceStart();", "public TimedEvent(String label, Date date, Time time) {\n super(label, date); // using the constructor of its superclass\n this.setTime(time); // assigns the time argument value to the attribute\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 Timetable(String description, LocalDate date, LocalTime time) {\n this(description, null, date, time);\n }", "public CinemaDate setTime(String t) {\n return new CinemaDate(this.month, this.day, t);\n }", "public void createDate(){\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy_MM_dd\"); //TODO -HHmm si dejo diagonales separa bonito en dia, pero para hacer un armado de excel creo que debo hacer un for mas\n currentDateandTime = sdf.format(new Date());\n Log.e(TAG, \"todays date is: \"+currentDateandTime );\n\n}", "public RunFilter withCreateTime(OffsetDateTime createTime) {\n this.createTime = createTime;\n return this;\n }", "@Transactional\n\tpublic Event createEvent(String name, String eventDate, String startTime, String endTime, String startLocation, String endLocation, String carType, String driveType, String makeOfCar, Integer meterPerStop, Integer availableSeats) {\n\t\tEvent event= new Event();\n\t\tjava.util.Date tmpDate = null;\n\t\ttry {\n\t\t\t//\"01 NOVEMBER 2018\"\n\t\t\ttmpDate = new SimpleDateFormat(\"dd MMM yyyy\").parse(eventDate);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//\"10:34:34\"\n\t\tjava.sql.Date sqlDate = new java.sql.Date(tmpDate.getTime());\n\t\tTime sqlStart = Time.valueOf(startTime);\n\t\tTime sqlEnd = Time.valueOf(endTime);\n\t\tevent.setName(name);\n\t\tevent.setEventDate(sqlDate);\n\t\tevent.setStartTime(sqlStart);\n\t\tevent.setEndTime(sqlEnd);\n\t\tevent.setStartLocation(startLocation);\n\t\tevent.setEndLocation(endLocation);\n\t\tevent.setCarType(carType);\n\t\tevent.setDriveType(driveType);\n\t\tevent.setMakeOfCar(makeOfCar);\n\t\tevent.setMeterPerStop(meterPerStop);\n\t\tevent.setSeats(availableSeats);\n\t\tentityManager.persist(event);\n\t\treturn event;\n\t}", "@DSSafe(DSCat.UTIL_FUNCTION)\n \n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:56:11.275 -0500\", hash_original_method = \"58DD96CFC8DDA00016DEC24CC6519017\", hash_generated_method = \"1F810C618BA62488684578EB05C3C6A1\")\n \n@Override\n public void setTime(long theTime) {\n /*\n * Store the Date based on the supplied time after removing any time\n * elements finer than the day based on zero GMT\n */\n super.setTime(normalizeTime(theTime));\n }", "public static Date dateTime(final int time) {\r\n\t\tfinal Calendar calendar = Calendar.getInstance();\r\n\t\tcalendar.set(time, 01, 01, 01, 0, 0);\r\n\t\treturn calendar.getTime();\r\n\t}", "void setFoundingDate(java.lang.String foundingDate);", "public Date createDate(String strDate){\n\n Date date = null;\n\n // Get time\n Calendar cal = Calendar.getInstance();\n Date currentLocalTime = cal.getTime();\n DateFormat dateformat = new SimpleDateFormat(\"HH:mm:ss\");\n String localTime = dateformat.format(currentLocalTime);\n\n // Concat strings\n String tmpDate = strDate + \" \" + localTime;\n //\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\n try {\n date = format.parse(tmpDate);\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n return date;\n }", "public Map<Integer, Date> searchTrains(TrainSearch trainSearch) throws NotFoundInDatabaseException {\n Station station1 = stationService.getStationByName(trainSearch.getStation1().getName());\n Station station2 = stationService.getStationByName(trainSearch.getStation2().getName());\n if (station1.getName().equals(station2.getName())) {\n throw new NotFoundInDatabaseException(\"You should choose two different stations!\");\n }\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n List<Train> trainList = getAllTrains();\n Map<Integer, Date> trainMap = new HashMap<Integer, Date>();\n for (Train train: trainList) {\n if (scheduleService.checkTrainSchedule(train.getId(), station1.getId(), station2.getId())) {\n Schedule schedule = scheduleService.getScheduleByTrainIdAndStationId(train.getId(), station1.getId());\n String stringSearchDate = sdf.format(trainSearch.getDate());\n String stringScheduleDate = sdf.format(schedule.getDepartureDate());\n if (stringSearchDate.equals(stringScheduleDate)) {\n trainMap.put(train.getNumber(), schedule.getDepartureDate());\n }\n }\n }\n return trainMap;\n }", "public AssignDateCommand(Index index, EventDate startDate, EventDate endDate, EventDayTime eventDayTime) {\n requireNonNull(index);\n this.index = index;\n this.startOrTargetEventDate = Optional.of(startDate);\n this.endEventDate = Optional.of(endDate);\n this.eventDayTime = eventDayTime;\n }", "Appointment(String description, String beginTime , String endTime){\n ShortDateFormat = new SimpleDateFormat(\"MM/dd/yyyy hh:mm a\", Locale.ENGLISH);\n //Check for bad data\n try{\n if(beginTime.contains(\"\\\"\")||endTime.contains(\"\\\"\"))\n throw new IllegalArgumentException(\"Date and time cannot contain quotes \");\n\n String[] tempStart = beginTime.split(\" \");\n String[] tempEnd= endTime.split(\" \");\n\n if(!tempStart[0].matches(\"(0?[1-9]|1[012])/(0?[1-9]|[12][0-9]|3[01])/((19|20)\\\\d\\\\d)\")||!tempEnd[0].matches(\"(0?[1-9]|1[012])/(0?[1-9]|[12][0-9]|3[01])/((19|20)\\\\d\\\\d)\")) {\n throw new IllegalArgumentException(\"Invalid Date Format\");\n }\n\n if(!tempStart[1].matches(\"([01]?[0-9]|2[0-3]):[0-5][0-9]\")||!tempEnd[1].matches(\"([01]?[0-9]|2[0-3]):[0-5][0-9]\"))\n throw new IllegalArgumentException(\"Time format must follow mm:hh (12 hour time)\");\n\n if(!tempStart[2].matches(\"(am|pm|AM|PM)\")&&!tempEnd[2].matches(\"(am|pm|AM|PM)\"))\n throw new IllegalArgumentException(\"Time must include am/pm\");\n }\n catch(IllegalArgumentException ex){\n System.out.println(ex.getMessage());\n System.exit(1);\n }\n\n setDate(beginTime,endTime);\n this.description = description;\n\n }", "@TargetApi(Build.VERSION_CODES.KITKAT)\n @RequiresApi(api = Build.VERSION_CODES.KITKAT)\n public void createReservation() {\n Time timeObj = null;\n DateFormat formatter= new SimpleDateFormat(\"kk:mm\");\n try {\n timeObj = new Time(formatter.parse(time).getTime());\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n Bitmap generatedQR = generateQR();\n //Create reservation & save to Repository\n Reservation reservation = new Reservation(film, timeObj, listPlaces, generatedQR);\n Repository.addReservation(reservation);\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 }", "public void setDateAndTime(int d,int m,int y,int h,int n,int s);", "ShipmentTimeEstimate createShipmentTimeEstimate();", "protected StartOfDay() {\n super();\n\n }", "DateLiteral createDateLiteral();", "public static Date zeroTime(Date d) {\r\n DateMidnight dm = new DateMidnight(d);\r\n return dm.toDate();\r\n }", "private void constructVssDateTimeFormat() {\n vssDateTimeFormat = new SimpleDateFormat(\"'Date: '\" + this.dateFormat + \" 'Time: 'hh:mma\"); \n }", "public static AbsTime factory() throws Time.Ex_TimeNotAvailable\n {\n return new AbsTime();\n }", "public static Date createDate(int yyyy, int month, int day) {\n/* 75 */ CALENDAR.clear();\n/* 76 */ CALENDAR.set(yyyy, month - 1, day);\n/* 77 */ return CALENDAR.getTime();\n/* */ }", "@Test\n public void createScheduleEntry(){\n ScheduleEntry entry = new ScheduleEntry();\n entry.setCalendar(calendar);\n entry.setDepartureTime(DepartureTime);\n }", "public static native JsDate create(int year, int month, int dayOfMonth, int hours,\n int minutes, int seconds) /*-{\n return new Date(year, month, dayOfMonth, hours, minutes, seconds);\n }-*/;", "protected Time(Date dateTime) throws ArgumentException {\n\t\tthis.setHours(dateTime.getHours());\n\t\tthis.setMinutes(dateTime.getMinutes());\n\t\tthis.setSeconds(dateTime.getSeconds());\n\t}", "@Factory\n public static OnDateMatcher fallsOn(final Date expected) {\n return new OnDateMatcher(expected);\n }", "public CalendarEvent(String title, String date, String timeOccurring, EventType type) {\n this.title = title;\n this.date = date;\n this.timeOccurring = timeOccurring;\n this.type = type;\n }", "public CalendarEvent(String fullTitle) {\n Log.d(TAG, fullTitle);\n\n int firstSpaceLoc = fullTitle.indexOf(' ');\n if(firstSpaceLoc != -1) {\n this.date = fullTitle.substring(0, firstSpaceLoc);\n int useSpaceNum = 1;\n try {\n this.timeOccurring = fullTitle.substring(firstSpaceLoc + 1, fullTitle.indexOf('M') + 1);\n useSpaceNum = 2; //if we do find a time use the third space found in the fullTitle to get the title from the xml.\n } catch (Exception e){\n this.timeOccurring = \"06:00 AM\"; // if their is no specific time found in the title string, just set the time occuring to \"12am\".\n useSpaceNum = 0;\n Log.d(TAG, \"\\tNo time for calendar event found.\");\n } finally {\n this.title = fullTitle.substring(Utils.findNthIndexOf(fullTitle,\" \", useSpaceNum) + 1); // the rest of the title tag should be the name of the event.;\n parseEventType();\n logEvent();\n }\n }\n }", "public static Date makeDate(String tvaTimeString) throws TVAnytimeException\n\t{\n\t\tint year = -1;\n\t\tint month = -1;\n\t\tint day = -1;\n\t\tint hours = -1;\n\t\tint minutes = -1;\n\t\tint seconds = -1;\n\n\t\tint offsetHours = 0;\t\t// an offset to deal with time zones\n\t\tint offsetMinutes = 0;\n\n\t\t// look to see if the string ends in \"Z\" (GMT) \n\t\tif (tvaTimeString.endsWith(\"Z\")) {\n\t\t\toffsetHours = 0;\n\t\t\toffsetMinutes = 0;\n\t\t}\n // or no +/- for offset\n else if (tvaTimeString.length()>6 && (!tvaTimeString.substring(tvaTimeString.length()-6,tvaTimeString.length()-5).equals(\"+\")) && (!tvaTimeString.substring(tvaTimeString.length()-6,tvaTimeString.length()-5).equals(\"-\")) ) {\n\t\t\toffsetHours = 0;\n\t\t\toffsetMinutes = 0;\n }\n\t\t// if not, pull out the offsets for hours and minutes\n\t\telse {\n\t\t\tString stringOffset = (tvaTimeString.substring(tvaTimeString.length()-6, tvaTimeString.length()));\n\n\t\t\ttry {\n\t\t\t\toffsetHours = Integer.parseInt(stringOffset.substring(1,3));\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tthrow new TVAnytimeException (\"TimeToolbox: problem parsing time offsetHours. \"+e);\n\t\t\t}\n\n\t\t\tif (offsetHours < 0 || offsetHours > 23)\n\t\t\t\tthrow new TVAnytimeException (\"TimeToolbox: hours offset is out of range (must be between 0 and 23).\");\n\n\t\t\ttry {\n\t\t\t\toffsetMinutes = Integer.parseInt(stringOffset.substring(4,6));\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tthrow new TVAnytimeException (\"TimeToolbox: problem parsing time offsetMinutes. \"+e);\n\t\t\t}\n\n\t\t\t// check for valid offsetMinutes range\n\t\t\tif (offsetMinutes < 0 || offsetMinutes > 59)\n\t\t\t\tthrow new TVAnytimeException (\"TimeToolbox: minutes offset is out of range (must be between 0 and 59).\");\n\n\t\t\t// if a negative offset...\n\t\t\tif (stringOffset.startsWith(\"-\")) {\n\t\t\t\toffsetHours = (offsetHours * -1);\n\t\t\t\toffsetMinutes = (offsetMinutes * -1);\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tyear = Integer.parseInt(tvaTimeString.substring(0, 4));\n\t\t\tmonth = Integer.parseInt(tvaTimeString.substring(5, 7));\n\t\t\tday = Integer.parseInt(tvaTimeString.substring(8, 10));\n\t\t} catch (NumberFormatException e) {\n\t\t\tthrow new TVAnytimeException (\"TimeToolbox: problem parsing year, month or day integer. \"+e);\n\t\t}\n\n\t\t// check validity of year\n\t\tif (year < 0)\n\t\t\tthrow new TVAnytimeException (\"TimeToolbox: year is out of range (must be greater than 0.\");\n\n\t\t// check validity of month\n\t\tif (month < 1 || month > 12)\n\t\t\tthrow new TVAnytimeException (\"TimeToolbox: month is out of range (must be between 1 and 12).\");\n\n\t\t// check validity of day\n\t\tif (day < 1 || day > 31)\n\t\t\tthrow new TVAnytimeException (\"TimeToolbox: day is out of range (must be between 1 and 31).\");\n\n\t\ttry {\n\t\t\thours = Integer.parseInt(tvaTimeString.substring(11, 13));\n\t\t\tminutes = Integer.parseInt(tvaTimeString.substring(14, 16));\n\t\t\tseconds = Integer.parseInt(tvaTimeString.substring(17, 19));\n\t\t} catch (NumberFormatException e) {\n\t\t\tthrow new TVAnytimeException (\"TimeToolbox: problem parsing hour, minute or seconds integer. \"+e);\n\t\t}\n\n\t\t// check validity of hours\n\t\tif (hours < 0 || hours > 23)\n\t\t\tthrow new TVAnytimeException (\"TimeToolbox: hour is out of range (must be between 0 and 23.\");\n\n\t\t// check validity of minutes\n\t\tif (minutes < 0 || minutes > 59)\n\t\t\tthrow new TVAnytimeException (\"TimeToolbox: minutes is out of range (must be between 0 and 59).\");\n\n\t\t// check validity of seconds\n\t\tif (seconds < 0 || seconds > 59)\n\t\t\tthrow new TVAnytimeException (\"TimeToolbox: seconds is out of range (must be between 0 and 59).\");\n\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\tcal.set(year, month-1, day, hours-offsetHours, minutes-offsetMinutes, seconds);\n cal.set(Calendar.MILLISECOND, 0);\n\n\t\tcal.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\n\t\treturn cal.getTime();\n\t}", "org.hl7.fhir.DateTime addNewAppliesDateTime();", "public static boolean create(String title, String date, String startTime, String endTime) {\n\t\tboolean canAdd = true;\n\t\tif (date.length() != 10) { //not in the correct format MM/DD/YYYY\n\t\t\tString month = date.substring(0, date.indexOf(\"/\"));\n\t\t\tSystem.out.println(\"month within create: \" + month);\n\t\t\tif (month.length() != 2) {\n\t\t\t\tmonth = \"0\" + month;\n\t\t\t}\n\t\t\tString day = date.substring(date.indexOf(\"/\") + 1, date.indexOf(\"/\", date.indexOf(\"/\") + 1));\n\t\t\tSystem.out.println(\"day within create: \" + day);\n\t\t\tif (day.length() != 2) {\n\t\t\t\tday = \"0\" + day;\n\t\t\t}\n\t\t\tString year = date.substring(date.indexOf(\"/\", date.indexOf(\"/\") + 1) + 1);\n\t\t\tSystem.out.println(\"year within create: \" + year);\n\t\t\tdate = month + \"/\" + day + \"/\" + year;\n\t\t}\n\t\tEvent toAdd = new Event(title, date, startTime, endTime);\n\n\t\tGregorianCalendar calendar = new GregorianCalendar(toAdd.getYear(), toAdd.getMonth(), toAdd.getDay());\n\t\tif (calendarToEvent.get(calendar) == null) { // there are no events under this date\n\t\t\tTreeSet<Event> treeSetForMap = new TreeSet<Event>();\n\t\t\ttreeSetForMap.add(toAdd);\n\t\t\tcalendarToEvent.put(calendar, treeSetForMap);\n\t\t} else { // there are already events, add event to the treeset\n\t\t\t\n\t\t\tfor (Event e : calendarToEvent.get(calendar)) {\n\t\t\t\tif (e.conflictCheck(toAdd)) { //check this (e.getIntEndTime()) < (toAdd.getIntStartTime()) ////return true if there is a conflict, false if there isn't\n\t\t\t\t\tSystem.out.println(\"Sorry can't add that event, there is a conflict\");\n\t\t\t\t\tcanAdd = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (canAdd) {\n\t\t\t\tcalendarToEvent.get(calendar).add(toAdd); // THAT'S WHAT IT USED TO BE calendarToEvent.get(toAdd.getDate()).add(toAdd);\n\t\t\t}\n\t\t}\n\t\treturn canAdd;\n\t}", "public RestaurantTime (){\r\n\t\topenTime = new int[] {0000};\r\n\t\tcloseTime = new int[] {2359};\r\n\t}", "public void setInputTime(Date inputTime) {\n this.inputTime = inputTime;\n }", "public void setInputTime(Date inputTime) {\n this.inputTime = inputTime;\n }", "public void init( Object date,\n Object time)\n {\n leftOperand = (ValueNode) date;\n rightOperand = (ValueNode) time;\n operator = \"timestamp\";\n methodName = \"getTimestamp\";\n }", "TimeConstant createTimeConstant();", "public void setCreateTime(Date createTime) {\n this.createTime = createTime;\n }" ]
[ "0.56634474", "0.5403866", "0.5350468", "0.5315115", "0.5291834", "0.5235336", "0.5220148", "0.5198326", "0.5190688", "0.5179924", "0.51786876", "0.5162098", "0.51187074", "0.5117412", "0.51051486", "0.5090987", "0.50401497", "0.5038594", "0.50326484", "0.50137925", "0.5010864", "0.50014806", "0.49838993", "0.49593145", "0.49467418", "0.49247748", "0.49216512", "0.4917224", "0.49152792", "0.48946145", "0.48784795", "0.4877912", "0.48778296", "0.487642", "0.48740318", "0.4871547", "0.4862574", "0.48618683", "0.4845335", "0.48426512", "0.4837538", "0.48252332", "0.4824135", "0.48195904", "0.48106322", "0.48058897", "0.4791665", "0.4791665", "0.4788957", "0.47877094", "0.47877094", "0.47877094", "0.47877094", "0.47877094", "0.47877094", "0.47877094", "0.47877094", "0.47813773", "0.47744662", "0.47719637", "0.47719637", "0.47719637", "0.47708696", "0.4764328", "0.47457898", "0.47395632", "0.47385007", "0.47333553", "0.47324228", "0.47222647", "0.47197312", "0.47190997", "0.47151908", "0.47065175", "0.4703256", "0.46936494", "0.46936494", "0.46831048", "0.4682456", "0.46714124", "0.46653372", "0.46530145", "0.4650868", "0.4641425", "0.46401384", "0.46399528", "0.46342114", "0.46332806", "0.46295175", "0.46279463", "0.46187887", "0.45974332", "0.4595562", "0.45910883", "0.45890713", "0.45873794", "0.45873794", "0.45868152", "0.45844576", "0.45676" ]
0.6937469
0
Parses a date from a search string, removing it from the string
public static SearchDate parse(StringBuilder sb, String srch) { if(sb.length() > 0 && sb.charAt(0) == '"') sb.delete(0, 1); java.util.Calendar now = java.util.Calendar.getInstance(); Integer d, m, y, h, min = null, sec = null, mill = null; final boolean [] local = new boolean [] {false}; boolean doubleZero = sb.length() >= 2 && sb.charAt(0) == '0' && sb.charAt(1) == '0'; boolean tripleZero = doubleZero && sb.length() >= 3 && sb.charAt(2) == '0'; int num = parseInt(sb); if(num >= 0) { // num could be day or time trim(sb); int month = parseMonth(sb, srch); if(month >= 0) { // num was the day. Now year and/or hour may be specified d = Integer.valueOf(num); m = Integer.valueOf(month); if(sb.length() > 0) { if(!Character.isWhitespace(sb.charAt(0))) { int year = parseInt(sb); if(year >= 0) { if(year < 100) { year += (now.get(Calendar.YEAR) / 100) * 100; if(year > now.get(Calendar.YEAR)) year -= 100; } else if(year <= now.get(Calendar.YEAR)) {} else throw new IllegalArgumentException("Illegal year in search " + srch); y = Integer.valueOf(year); } else y = null; } else y = null; int [] hm = parseTime(sb, srch, local); if(hm != null) { h = Integer.valueOf(hm[0]); if(hm.length > 1 && hm[1] >= 0) min = Integer.valueOf(hm[1]); if(hm.length > 2 && hm[2] >= 0) sec = Integer.valueOf(hm[2]); if(hm.length > 3 && hm[3] >= 0) mill = Integer.valueOf(hm[3]); } else h = null; } else y = h = null; } else if(parseSuffix(sb, num)) { // num was the day, with no month/year specified now.add(Calendar.MONTH, -1); if(num < 1 && num > now.getActualMaximum(Calendar.DAY_OF_MONTH)) { now.add(Calendar.MONTH, 1); if(num < 1 || num > 31) throw new IllegalArgumentException("Illegal day in search " + srch); else throw new IllegalArgumentException("Illegal day in search " + srch + " for " + print(MONTHS[now.get(Calendar.MONTH) - 1])); } d = Integer.valueOf(num); int [] hm = parseTime(sb, srch, local); if(hm != null) { h = Integer.valueOf(hm[0]); if(hm.length > 1 && hm[1] >= 0) min = Integer.valueOf(hm[1]); if(hm.length > 2 && hm[2] >= 0) sec = Integer.valueOf(hm[2]); if(hm.length > 3 && hm[3] >= 0) mill = Integer.valueOf(hm[3]); } else h = null; m = null; y = null; h = null; } else { // num was the time m = null; y = null; d = null; h = null; if((num == 0 && !tripleZero) || (num > 0 && num < 24 && !doubleZero)) h = Integer.valueOf(num); else if(num >= 2400 || num % 100 >= 60) throw new IllegalArgumentException("Illegal time in search " + srch + ": " + num); else { h = Integer.valueOf(num / 100); min = Integer.valueOf(num % 100); } if(sb.length() > 0 && sb.charAt(0) == ':') { sb.delete(0, 1); int s = parseInt(sb); if(s >= 0) { sec = Integer.valueOf(s); if(sb.length() > 0 && sb.charAt(0) == '.') { int mil = parseInt(sb); if(mil >= 0) mill = Integer.valueOf(mil); } } } } } else { d = null; int month = parseMonth(sb, srch); if(month < 0) { num = parseWeekDay(sb, srch); if(num < 0) throw new IllegalArgumentException("Illegal data value in search: " + srch); trim(sb); Integer wd = Integer.valueOf(num); num = parseInt(sb); if(num < 0) h = null; else { h = Integer.valueOf(num); if(sb.length() > 0 && (sb.charAt(0) == 'Z' || sb.charAt(0) == 'z')) sb.delete(0, 1); } if(sb.length() > 0 && sb.charAt(0) == '"') sb.delete(0, 1); return new SearchDate(null, wd, null, null, h, min, null, null, local[0]); } m = Integer.valueOf(month); if(sb.length() > 0) { if(!Character.isWhitespace(sb.charAt(0))) { int year = parseInt(sb); if(year >= 0) { if(year < 100) { year += (now.get(Calendar.YEAR) / 100) * 100; if(year > now.get(Calendar.YEAR)) year -= 100; } else if(year <= now.get(Calendar.YEAR)) {} else throw new IllegalArgumentException("Illegal year in search " + srch); y = Integer.valueOf(year); } else y = null; } else y = null; int [] hm = parseTime(sb, srch, local); if(hm != null) { h = Integer.valueOf(hm[0]); if(hm.length > 1 && hm[1] >= 0) min = Integer.valueOf(hm[1]); if(hm.length > 2 && hm[2] >= 0) sec = Integer.valueOf(hm[2]); if(hm.length > 3 && hm[3] >= 0) mill = Integer.valueOf(hm[3]); } else h = null; } else y = h = null; } if(sb.length() > 0 && sb.charAt(0) == '"') sb.delete(0, 1); return new SearchDate(d, null, m, y, h, min, sec, mill, local[0]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String parseDate(String input) {\n String year = input.substring(0, 4);\n String month = input.substring(5, 7);\n String day = input.substring(8, 10);\n return year + \"-\" + month + \"-\" + day;\n }", "public Date parse (String dateAsString , String dateFormat) throws Exception ;", "public void parseDate(String d)\n {\n\tdate.set(d);\n String [] dateList = d.split(\"-\");\n \n year.set(Integer.valueOf(dateList[0]));\n month.set(Integer.valueOf(dateList[1]));\n day.set(Integer.valueOf(dateList[2]));\n }", "private static String getDateFromString(String stringDate) throws Exception {\n // matcher for the RegEx\n Matcher matcher = pattern.matcher(stringDate);\n\n //now we want to get the values if matcher found anyhthin\n if (matcher.find()) {\n return matcher.group(); // матчер, группируй найденное\n }\n throw new Exception(\"Can't extract the date from the string\");\n\n }", "private Date parseStringToDate(String date) {\n Date resultDate = null;\n if (date.contains(TODAY) || date.contains(YESTERDAY)) {\n String[] dateStrings = date.split(\",\");\n if (dateStrings[0].equalsIgnoreCase(TODAY)) {\n Calendar today = Calendar.getInstance();\n resultDate = today.getTime();\n } else if (dateStrings[0].equalsIgnoreCase(YESTERDAY)) {\n Calendar yesterday = Calendar.getInstance();\n yesterday.add(Calendar.DATE, MINUS_DAY);\n resultDate = yesterday.getTime();\n }\n } else {\n SimpleDateFormat formatter = new SimpleDateFormat(DATE_FORMAT);\n try {\n resultDate = formatter.parse(date);\n } catch (ParseException e) {\n LOG.error(e.getMessage(), e);\n }\n }\n return resultDate;\n }", "private Date stringToDate(String s) throws ParseException{\r\n\t\tSimpleDateFormat fmt = new SimpleDateFormat(DATE_FORMAT);\r\n\t\treturn fmt.parse(s);\r\n\t}", "public static Date dateParsing(String birthDate2) {\n\t\treturn null;\r\n\t}", "public static Date parseDate(String date) {\r\n return parseDateWithPattern(date, \"dd/MM/yyyy\");\r\n }", "public static String evaluteEventDate(String eventdate){\r\n\t\t return eventdate.substring(0,10).replaceAll(\"-\", \"\");\r\n\t}", "public static Date stringToDate (String s) {\n\t\tint year=0 , month=0 , date=0;\n\t\tCalendar cal = Calendar.getInstance(Locale.getDefault());\n\t\t\n\t\tStringTokenizer st = new StringTokenizer (s,\"/\");\n\t\t\n\t\tdate = Integer.parseInt(st.nextToken());\n\t\tmonth = Integer.parseInt(st.nextToken());\n\t\tyear = Integer.parseInt(st.nextToken());\n\t\tcal.clear();\n\t\tcal.set(year,month-1,date);\n\t\t//System.out.println(\"\\nDate : \"+getStringFromDate(cal.getTime()));\n\t\treturn (Date)cal.getTime().clone();\n\t}", "public static Date parseDate(String date) {\n return DateUtil.toDate(date);\n }", "private Date stringToDate(String datum)\r\n\t{\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd.MM.yyyy\");\r\n\t\ttry\r\n\t\t{\r\n\t\t\tDate d = df.parse(datum);\r\n\t\t\treturn d;\r\n\t\t}\r\n\t\tcatch (ParseException e)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public static Date stringToDate(String date) throws InvalidDateException{\n DateFormat format = new SimpleDateFormat(Constants.BIRTH_DATE_FORMAT);\n format.setLenient(false); //é uma flag para que a data esteja sempre entre os limites corretos\n try {\n return format.parse(date);\n } catch (ParseException ignored) {\n throw new InvalidDateException(\"Invalid date\");\n }\n }", "public static String[] filterDate(String date)\r\n\t{\r\n\t\treturn seperateStr(date);\r\n\t}", "public static Date strToDate(String strDate)\r\n/* 127: */ {\r\n/* 128:178 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd\");\r\n/* 129:179 */ ParsePosition pos = new ParsePosition(0);\r\n/* 130:180 */ Date strtodate = formatter.parse(strDate, pos);\r\n/* 131:181 */ return strtodate;\r\n/* 132: */ }", "private LocalDateTime parseDate(String s) {\n String[] splitDate = s.split(\" \", 2);\n // Split day, month, year\n String[] splitDateElements = splitDate[0].split(\"/\", 3);\n int day = parseInt(splitDateElements[0]);\n int month = parseInt(splitDateElements[1]);\n int year = parseInt(splitDateElements[2]);\n // Split hours and minutes\n int hours = parseInt(splitDate[1].substring(0, 2));\n int mins = parseInt(splitDate[1].substring(2, 4));\n return LocalDateTime.of(year, month, day, hours, mins);\n }", "public static Date parseDate(String date)\n\t{\n\t\treturn parseFormatDate(date, getDateFormat());\n\t}", "public static Date stringToDate(String date) {\n\t\tDate result = null;\n\t\tif (date != null && !\"\".equals(date)) {\n\t\t\tDateTimeFormatter f = DateTimeFormat.forPattern(SmartMoneyConstants.DATE_FORMAT);\n\t\t\tDateTime dateTime = f.parseDateTime(date);\n\t\t\tresult = dateTime.toDate();\n\t\t}\n\n\t\treturn result;\n\t}", "private String validateDateString(String dateString) {\n String returnValue = null;\n DateFormat dateFormat1 = new SimpleDateFormat(\"yyyy-MM-dd\");\n DateFormat dateFormat2 = new SimpleDateFormat(\"yyyy-MM\");\n DateFormat dateFormat3 = new SimpleDateFormat(\"yyyy\");\n Date date = null;\n \n if (dateString == null || dateString.equals(\"\")) {\n return dateString;\n }\n else {\n try {\n date = dateFormat1.parse(dateString);\n returnValue = dateFormat1.format(date);\n }\n catch (ParseException e1) {\n try {\n date = dateFormat2.parse(dateString);\n returnValue = dateFormat2.format(date);\n }\n catch (ParseException e2) {\n try {\n date = dateFormat3.parse(dateString);\n returnValue = dateFormat3.format(date);\n }\n catch (ParseException e3) {\n logger.warn(\"Couldn't parse date string using any of the recognized formats: \" + dateString);\n } \n }\n }\n }\n \n return returnValue;\n }", "public static Date stringToDate(String date)\r\n/* 29: */ {\r\n/* 30: 39 */ log.debug(\"DateUtil.stringToDate()\");\r\n/* 31: */ try\r\n/* 32: */ {\r\n/* 33: 41 */ return sdfDate.parse(date);\r\n/* 34: */ }\r\n/* 35: */ catch (ParseException e)\r\n/* 36: */ {\r\n/* 37: 43 */ log.fatal(\"DateUtil.stringToDate抛出异常\", e);\r\n/* 38: */ }\r\n/* 39: 44 */ return new Date();\r\n/* 40: */ }", "private static LocalDate parseLocalDate(final String input) {\n if (input.contains(\"--\") || input.contains(\"*\")) {\n return null;\n }\n return LocalDate.parse(input);\n\n }", "public Date parseString(String dateString) throws ParseException {\n return dateFormat.parse(dateString);\n }", "public static Date stringToDate(String dateString) {\n for(String format: DATE_FORMATS){\n try {\n return new SimpleDateFormat(format).parse(dateString);\n }\n catch (Exception e){}\n }\n throw new IllegalArgumentException(\"Date is not parsable\");\n }", "void unsetFoundingDate();", "java.lang.String getFoundingDate();", "public static Date StringToDate(String dateString) {\n int y = new Integer(dateString.substring(0, 4));\n int m = new Integer(dateString.substring(4, 6));\n int d = new Integer(dateString.substring(6, 8));\n int h = new Integer(dateString.substring(8, 10));\n int min = new Integer(dateString.substring(10, 12));\n\n try {\n Calendar convCal = Calendar.getInstance();\n convCal.set(y, m - 1, d, h, min);\n Date date = convCal.getTime();\n\n return date;\n } catch (Exception ex) {\n System.out.println(\"BwInfo.convertStringToDate() \" + ex);\n return null;\n }\n\n }", "public Date parseDate(String date) {\t\t\n\t\ttry{\n\t\t\tDate d2 = sdf.parse(date);\n\t\t\t//String month = parseMonth(date);\n\t\t\t//cal.setTime(d2);\t\t\t\n\t\t\t//months.put(month, new Integer(cal.get(Calendar.MONTH) + 1));\t\t\t\n\t\t\treturn d2;\n\t\t} catch(ParseException e){\n\t\t\tSystem.out.println(\"Invalid Date Format or No Such Date : \" + date + \". Message: \" + e.getMessage() );\n\t\t\treturn null;\n\t\t}\n\t}", "public static LocalDate stringToDate(String inputStringDate) {\n\t\treturn LocalDate.parse(inputStringDate);\n\t}", "protected void guessDateFormat(String dateStr) {\n if (log4j.isDebugEnabled()) {log4j.debug(BaseMessages.getString(PKG, \"MVSFileParser.DEBUG.Guess.Date\"));} //$NON-NLS-1$\n String[] dateSplit = dateStr.split(\"/\"); //$NON-NLS-1$\n String yrFmt = null;\n int yrPos = -1;\n int dayPos = -1;\n // quick look for either yyyy/xx/xx or xx/xx/yyyy\n for (int i=0; i<dateSplit.length; i++) {\n int aDigit = Integer.parseInt(dateSplit[i]); \n if (dateSplit[i].length() == 4) {\n yrFmt = \"yyyy\"; //$NON-NLS-1$\n yrPos = i;\n } else if (aDigit>31) {\n // found 2-digit year\n yrFmt = \"yy\"; //$NON-NLS-1$\n yrPos = i;\n } else if (aDigit > 12) {\n // definitely found a # <=31,\n dayPos = i;\n }\n }\n if (yrFmt != null) {\n StringBuffer fmt = new StringBuffer();\n if (dayPos >=0) {\n // OK, we know everything.\n String[] tmp = new String[3];\n tmp[yrPos] = yrFmt;\n tmp[dayPos] = \"dd\"; //$NON-NLS-1$\n for (int i=0; i<tmp.length; i++) {\n fmt.append(i>0?\"/\":\"\"); //$NON-NLS-1$ //$NON-NLS-2$\n fmt.append(tmp[i] == null ? \"MM\":tmp[i]); //$NON-NLS-1$\n }\n if (log4j.isDebugEnabled()) {log4j.debug(BaseMessages.getString(PKG, \"MVSFileParser.DEBUG.Guess.Date.Obvious\"));} //$NON-NLS-1$\n } else {\n // OK, we have something like 2010/01/01 - I can't\n // tell month from day. So, we'll guess. If it doesn't work on a later\n // date, we'll flip it (the alternate).\n \n StringBuffer altFmt = new StringBuffer();\n if (yrPos == 0) {\n fmt.append(yrFmt).append(\"/MM/dd\"); //$NON-NLS-1$\n altFmt.append(yrFmt).append(\"/dd/MM\"); //$NON-NLS-1$\n } else {\n fmt.append(\"MM/dd/\").append(yrFmt); //$NON-NLS-1$\n altFmt.append(\"dd/MM/\").append(yrFmt); //$NON-NLS-1$\n }\n this.alternateFormatString = altFmt.toString();\n if (log4j.isDebugEnabled()) {log4j.debug(BaseMessages.getString(PKG, \"MVSFileParser.DEBUG.Guess.Date.Ambiguous\"));} //$NON-NLS-1$\n }\n this.dateFormatString = fmt.toString();\n this.dateFormat = new SimpleDateFormat(dateFormatString);\n if (log4j.isDebugEnabled()) {log4j.debug(BaseMessages.getString(PKG, \"MVSFileParser.DEBUG.Guess.Date.Decided\", this.dateFormatString));} //$NON-NLS-1$\n try {\n dateFormat.parse(dateStr);\n } catch (ParseException ex) {\n if (log4j.isDebugEnabled()) {log4j.debug(BaseMessages.getString(PKG, \"MVSFileParser.DEBUG.Guess.Date.Unparsable\", dateStr));} //$NON-NLS-1$\n }\n } else {\n // looks ilke something like 01/02/05 - where's the year?\n if (log4j.isDebugEnabled()) {log4j.debug(BaseMessages.getString(PKG, \"MVSFileParser.DEBUG.Guess.Date.Year.Ambiguous\"));} //$NON-NLS-1$\n return;\n }\n \n }", "public Date stringToDate(String date) throws ParseException {\n String[] splitDate = date.split(\"T\");\n String day = splitDate[0];\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date dayDate = dateFormat.parse(day);\n return dayDate;\n }", "public static void valDate() {\n Scanner input = new Scanner(System.in);\n try {\n LocalDate dateObj = LocalDate.parse(date);\n } catch (DateTimeParseException ex) {\n System.err.println(\"Invalid date, please insert a valid date with pattern yyyy-MM-dd\");\n date = input.next();\n valDate();\n }\n }", "public static Date converteStringInvertidaSemBarraAAAAMMDDParaDate(String data) {\r\n\t\tDate retorno = null;\r\n\r\n\t\tString dataInvertida = data.substring(6, 8) + \"/\" + data.substring(4, 6) + \"/\" + data.substring(0, 4);\r\n\r\n\t\tSimpleDateFormat dataTxt = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\r\n\t\ttry {\r\n\t\t\tretorno = dataTxt.parse(dataInvertida);\r\n\t\t} catch (ParseException e) {\r\n\t\t\tthrow new IllegalArgumentException(data + \" não tem o formato dd/MM/yyyy.\");\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public static LocalDate parse(String dateStr) {\n String d = dateStr.substring(0, dateStr.indexOf('T'));\n LocalDate ld = null;\n try {\n ld = LocalDate.parse(d);\n } catch (Exception e) {\n System.err.println(\"Failed to parse datestring \" + dateStr + \" into a LocalDate!\");\n //e.printStackTrace();\n }\n // TODO: review what happens if format is invalid/LocalDate.parse fails - throw error, return null or both?\n return ld;\n }", "public static String dateStr(String input ){\n String mm = input.substring(0,2);\n String dd = input.substring(3,5);\n String yyyy = input.substring(6,10);\n return dd + \" - \" + mm + \" - \" + yyyy;\n }", "private Date parseDate(String text) throws Exception {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\");\n return dateFormat.parse(text);\n }", "public static java.util.Date convertFromStringToDate(String strDate){\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"dd-MMM-yyyy\"); /*This stringDate is come from UI*/\n\t\tjava.util.Date date = null;\n\t\tif(strDate != null && !strDate.trim().isEmpty()){\n\t\t\ttry {\n\t\t\t\tdate = format.parse(strDate);\n\t\t\t\tSystem.out.println(strDate);\n\t\t\t} catch (ParseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\t\n\t\treturn date;\n\t}", "public static Date fromString(String fullDate) {\n\t\tString[] parsed = fullDate.split(\",\");\n\t\tif (parsed.length != 3 && parsed.length != 5) {\n\t\t\tthrow new InvalidParsingStringException(Date.class.getName());\n\t\t}\n\t\tDate date = new Date();\n\t\tdate.setYear(Integer.valueOf(parsed[0]));\n\t\tdate.setMonth(Integer.valueOf(parsed[1]));\n\t\tdate.setDay(Integer.valueOf(parsed[2]));\n\t\tif (parsed.length == 5) {\n\t\t\tdate.setHour(Integer.valueOf(parsed[3]));\n\t\t\tdate.setMin(Integer.valueOf(parsed[4]));\n\t\t}\n\t\treturn date;\n\t}", "private static Date convertFromString(String dateString) throws ParseException {\n return new SimpleDateFormat(\"yyyyMMddHHmm\").parse(dateString);\n }", "default Date fromDisplay(String date) {\n try {\n return getDisplayDateFormat().parse(date);\n } catch (ParseException e) {\n throw new RuntimeException(String.format(\"couldn't parse date:{0} using:{1}\", date, getDisplayDateFormat()));\n }\n }", "private static Command parseDate(String content) {\r\n\t\tDate startDate, endDate;\r\n\t\tArrayList<String> sensitiveWord = new ArrayList<>(Arrays.asList(DATE));\r\n\t\tString description = \"\", patstring = \"\\\"(.*)\\\"\", strPattern = \"\", matPattern;\r\n\t\tString[] noPatList, leftConList;\r\n\t\tPattern pat = Pattern.compile(patstring);\r\n\t\tMatcher mat = pat.matcher(content);\r\n\t\tboolean find = mat.find();\r\n\t\t// if description indicated by user,\r\n\t\t// remove it and extract the time\r\n\t\tif (find) {\r\n\t\t\tstrPattern = mat.group(0).replaceAll(\"\\\"\", \"\");\r\n\t\t\tcontent = content.replace(strPattern, \"\");\r\n\r\n\t\t}\r\n\r\n\t\tArrayList<Date> date = DateGUIparser.getListDate(content);\r\n\t\tif (!date.isEmpty()) {\r\n\t\t\tif (find) {\r\n\t\t\t\tdescription = strPattern;\r\n\t\t\t} else {\r\n\t\t\t\tmatPattern = DateGUIparser.getMatchInput(content);\r\n\t\t\t\tnoPatList = content.split(matPattern);\r\n\t\t\t\tleftConList = noPatList[0].split(\" \");\r\n\t\t\t\tArrayList<String> wordList = new ArrayList<>(Arrays.asList(leftConList));\r\n\t\t\t\tif (!sensitiveWord.contains(matPattern)) {\r\n\t\t\t\t\twordList.remove(wordList.size() - 1);\r\n\t\t\t\t}\r\n\t\t\t\tfor (String str : wordList) {\r\n\t\t\t\t\tdescription += str + \" \";\r\n\t\t\t\t}\r\n\t\t\t\tfor (int i = 1; i < noPatList.length; i++) {\r\n\t\t\t\t\tdescription = description + noPatList[i] + \" \";\r\n\t\t\t\t}\r\n\t\t\t\tdescription = description.trim();\r\n\t\t\t}\r\n\t\t}\r\n\t\t// 1 date(as a deadline)\r\n\t\tif (date.size() == 1) {\r\n\t\t\treturn new CommandAdd(description, date.get(0));\r\n\t\t}\r\n\t\t// 2 dates(as start time and end time)\r\n\t\tif (date.size() == 2) {\r\n\t\t\tstartDate = date.get(0);\r\n\t\t\tendDate = date.get(1);\r\n\t\t\tif (startDate.compareTo(endDate) < 0) {\r\n\t\t\t\treturn new CommandAdd(description, date.get(0), date.get(1));\r\n\t\t\t} else {\r\n\t\t\t\tthrow new InvalidDateOrderException();\r\n\t\t\t}\r\n\t\t}\r\n\t\t// 3 or more dates(will be a exception)\r\n\t\tif (date.size() > 2) {\r\n\t\t\tthrow new MultipleDatesException(date.size());\r\n\t\t}\r\n\t\tif (find) {\r\n\t\t\tdescription = strPattern;\r\n\t\t} else {\r\n\t\t\tdescription = content;\r\n\t\t}\r\n\t\tif (description.trim().equals(\"\")) {\r\n\t\t\tthrow new EmptyDescriptionException();\r\n\t\t}\r\n\t\tCommandAddLogger.log(Level.INFO, \"successful add\");\r\n\t\treturn new CommandAdd(description);\r\n\t}", "private Date convertStringToDate(String dateInString){\n DateFormat format = new SimpleDateFormat(\"d-MM-yyyy HH:mm\", Locale.ENGLISH);\n Date date = null;\n try {\n date = format.parse(dateInString);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return date;\n }", "private void extractMomentFromString(Decoded decoded, String property, String dateString) {\n String tempString = decoded.propertyValue;\n\n if(tempString == null || tempString.isEmpty()){\n return;\n }\n\n int hibcDateFormatKey;\n try{\n hibcDateFormatKey = Integer.parseInt(tempString.substring(0, 1));\n } catch (NumberFormatException ex){\n decoded.error = Error.INVALID_DATE;\n return;\n }\n\n String dateFormat;\n\n switch(hibcDateFormatKey){\n case 0:\n case 1:\n dateFormat = \"MMyy\";\n break;\n case 2:\n dateFormat = \"MMddyy\";\n break;\n case 3:\n dateFormat = \"yyMMdd\";\n break;\n case 4:\n dateFormat = \"yyMMddHH\";\n break;\n case 5:\n dateFormat = \"yyddd\";\n break;\n case 6:\n dateFormat = \"yydddHH\";\n break;\n case 7:\n // no date here so can assign normal string\n decoded.propertyValue = tempString.substring(1);\n return;\n default:\n // no date\n return;\n }\n\n if(hibcDateFormatKey > 1){\n tempString = tempString.substring(1);\n }\n\n if(tempString.length() < dateFormat.length()){\n decoded.error = Error.INVALID_DATE;\n return;\n }\n\n // convert date to string for decoded date property\n DateTimeFormat dtf = new DateTimeFormat(dateFormat) {}; // odd trick so that you can use date time\n Date date = dtf.parse(tempString.substring(0, dateFormat.length()));\n decoded.date = dtf.format(date);\n\n decoded.propertyValue = tempString.substring(dateFormat.length());\n\n }", "private static void checkForParsableDate(AnalysisResults.Builder analysisBuilder) {\n Stream<String> dates =\n getTokensFromRawText(analysisBuilder.getRawText().get()).filter(ReceiptAnalysis::isDate);\n // Assume that the first date on the receipt is the transaction date.\n Optional<String> firstDate = dates.findFirst();\n\n firstDate.ifPresent(date -> ReceiptAnalysis.addDateIfValid(analysisBuilder, date));\n }", "private String convertDateVN(String date) {\r\n String arrDate[] = date.split(\"-\");\r\n date = arrDate[2] + \"/\" + arrDate[1] + \"/\" + arrDate[0];\r\n return date;\r\n }", "public static String unwrap(final String value) {\n if (value == null || value.length() < 2) {\n return value;\n }\n else if (value.charAt(0) == '\\'' && value.length() >= 11) {\n return value.substring(1, 11); // 2017-01-01\n }\n else {\n return value;\n }\n }", "public static String dateStr(String str)\n {\n String month = str.split(\"/\")[0];\n String day = str.split(\"/\")[1];\n String year = str.split(\"/\")[2];\n return day + \"-\" + month + \"-\" + year;\n }", "public boolean isValidDate(String valD) { //Checks if date is in proper format\n String valDWithoutSpace = valD.replaceAll(\"\\\\s\", \"\");\n return valDWithoutSpace.length() == 8;\n}", "private static boolean isDate(String token) {\n return dateRegex.matcher(token).matches();\n }", "public static Date parse(String input) throws java.text.ParseException {\n\t\treturn new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.S\").parse(input);\n\n\t}", "public Date stringToDate(String d)\n\t{\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"MMM-yyyy\");\n\t\t\n\t\tDate date = new Date();\n\t\t\n\t\ttry \n\t\t{\n\t\t\tdate = format.parse(d);\n\t\t} \n\t\tcatch (ParseException e) \n\t\t{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn date;\n\t}", "public static Date converteStringInvertidaSemBarraAAMMDDParaDate(String data) {\r\n\t\tDate retorno = null;\r\n\r\n\t\tString dataInvertida = data.substring(4, 6) + \"/\" + data.substring(2, 4) + \"/20\" + data.substring(0, 2);\r\n\r\n\t\tSimpleDateFormat dataTxt = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\r\n\t\ttry {\r\n\t\t\tretorno = dataTxt.parse(dataInvertida);\r\n\t\t} catch (ParseException e) {\r\n\t\t\tthrow new IllegalArgumentException(data + \" não tem o formato dd/MM/yyyy.\");\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public static String parseMmDdYyyyToYyyyMmDD(String dateString) {\n try {\n // Date is MM-DD-YYYY, convert to YYYY-MM-DD\n return String.format(\"%s-%s-%s\", dateString.substring(6, 10), dateString.substring(0, 2),\n dateString.substring(3, 5));\n } catch (StringIndexOutOfBoundsException e) {\n return dateString;\n }\n }", "private String formatDate(String dateString) {\n DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"LLL dd, yyyy\");\n LocalDate localDate = LocalDate.parse(dateString.substring(0, 10));\n return dateTimeFormatter.format(localDate);\n }", "public Date parseDateFromString(final String dateString) {\r\n\t\tDateFormat df = getDateTimeFormat();\r\n\t\tsynchronized (df) {\r\n\t\t\ttry {\r\n\t\t\t\treturn df.parse(dateString);\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t\tDominoUtils.handleException(e);\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public java.util.Date parse(java.lang.String r4, java.text.ParsePosition r5) {\n /*\n r3 = this;\n boolean r0 = r3.looksLikeISO8601(r4)\n if (r0 == 0) goto L_0x000b\n java.util.Date r4 = r3.parseAsISO8601(r4, r5)\n return r4\n L_0x000b:\n int r0 = r4.length()\n L_0x000f:\n int r0 = r0 + -1\n if (r0 < 0) goto L_0x0021\n char r1 = r4.charAt(r0)\n r2 = 48\n if (r1 < r2) goto L_0x0021\n r2 = 57\n if (r1 <= r2) goto L_0x0020\n goto L_0x0021\n L_0x0020:\n goto L_0x000f\n L_0x0021:\n if (r0 >= 0) goto L_0x0034\n r0 = 0\n boolean r0 = com.fasterxml.jackson.core.p007io.NumberInput.inLongRange(r4, r0)\n if (r0 == 0) goto L_0x0034\n java.util.Date r5 = new java.util.Date\n long r0 = java.lang.Long.parseLong(r4)\n r5.<init>(r0)\n return r5\n L_0x0034:\n java.util.Date r4 = r3.parseAsRFC1123(r4, r5)\n return r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.fasterxml.jackson.databind.util.StdDateFormat.parse(java.lang.String, java.text.ParsePosition):java.util.Date\");\n }", "private Calendar parseDate(String invoiceDate) throws InvoiceFileParseException {\n\n\t\tPattern p = Pattern.compile(\"[\\\\d]{1,2}/[\\\\d]{1,2}/[\\\\d]{4}\");\n\t\tMatcher m = p.matcher(invoiceDate);\n\t\tif (!m.matches()) {\n\t\t\tthrow new InvoiceFileParseException(\"Specified date is not valid [\" + invoiceDate + \"], expected date format is dd/MM/yyyy\");\n\t\t}\n\n\t\tCalendar invD;\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\ttry {\n\t\t\tinvD = Calendar.getInstance();\n\t\t\tinvD.setTime(sdf.parse(invoiceDate));\n\t\t} catch (ParseException e) {\n\t\t\tthrow new InvoiceFileParseException(\"Specified date is not valid [\" + invoiceDate + \"], expected date format is dd/MM/yyyy\", e);\n\t\t}\n\t\treturn invD;\n\t}", "public static boolean comprobarFecha(String s){\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n //dateFormat.setLenient(false);\n try {\n dateFormat.parse(s.trim());\n }catch (ParseException pe) {\n System.out.println(\"Fecha introducida de manera erronea\");\n return false;\n }\n return true;\n }", "public boolean setDateFromString(String s){\n String[] strs = s.split(\"/\");\n if(strs.length != 3){\n return false;\n }\n try {\n this.year = Integer.parseInt(strs[0].toString());\n this.month = Integer.parseInt(strs[1].toString());\n this.dayOfMonth = Integer.parseInt(strs[2].toString());\n }catch (NumberFormatException e){\n e.printStackTrace();\n return false;\n }\n this.dateString = s;\n return true;\n }", "public static String verifyHireDate(Scanner input, String tempDate){\n \n //String used for regex verification of input date\n String theRegex = \"[0-1][0-9][/][0-3][0-9][/][1-2][0-9][0-9][0-9]\";\n \n //While tempDate does not match theRegex\n while(!tempDate.matches(theRegex)){\n System.out.print(\"The employee's hire date you entered was invalid.\\nMake sure the date you enter matches IX/JX/KXXX including the slashes\"\n + \"\\nwhere I is a 0 or 1, J is 0-3, K is a 1 or 2, and X is a digit 0-9: \");\n tempDate = input.nextLine();\n }\n return tempDate; \n }", "@SuppressWarnings(\"deprecation\")\n\tpublic static Date getDateForString(String dateString) {\n\t\tString[] separation1 = dateString.split(\" \");\n\t\tString[] separation2 = separation1[0].split(\"/\");\n\t\tString[] separation3 = separation1[1].split(\":\");\n\t\treturn new Date(Integer.parseInt(separation2[2])-1900, (Integer.parseInt(separation2[1])-1), Integer.parseInt(separation2[0]), Integer.parseInt(separation3[0]), Integer.parseInt(separation3[1]), Integer.parseInt(separation3[2]));\n\t}", "public static synchronized Date parseDate(String s) throws ParseException {\n return dateFormat.parse(s);\n }", "public void removeCheckInDate(String theFirstStr) {\n HostCheckInListModel theModel = (HostCheckInListModel) checkInTimeList.getModel();\n theModel.removeElement(theFirstStr );\n }", "public static String parseStringDate(String s, String myPattern) {\n\n\t\tString pattern = \"\";\n\t\tLocale locale = null;\n\t\tif (s.indexOf(':') >= 0) {\n\t\t\tif (s.length() > 23) {\n\n\t\t\t\tpattern = \"EEE MMM dd HH:mm:ss Z yyyy\";\n\t\t\t\tlocale = Locale.ENGLISH;\n\n\t\t\t} else if (s.length() > 20) {\n\n\t\t\t\tpattern = \"yyyy-MM-dd HH:mm:ss.SSS\";\n\n\t\t\t} else {\n\t\t\t\tpattern = DD_MM_YYYY_HH_MM_SS;\n\n\t\t\t}\n\t\t} else {\n\t\t\tpattern = DD_MM_YYYY;\n\t\t}\n\n\t\tSimpleDateFormat sdfSource = null;\n\t\tif (pattern.length() > 23) {\n\t\t\tsdfSource = new SimpleDateFormat(pattern, locale);\n\t\t} else {\n\t\t\tsdfSource = new SimpleDateFormat(pattern);\n\t\t}\n\n\t\tDate date = null;\n\t\ttry {\n\t\t\tdate = sdfSource.parse(s);\n\t\t} catch (ParseException e) {\n\t\t\tLOGGER.error(e);\n\t\t}\n\n\t\tSimpleDateFormat sdfDestination = new SimpleDateFormat(myPattern);\n\n\t\treturn sdfDestination.format(date);\n\t}", "protected static Date parseDate(String dateStr) {\n if (dateStr != null) {\n try {\n DateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n return df.parse(dateStr);\n }\n catch (Exception e) {\n throw new IllegalArgumentException(\"Expected date in format yyyy-MM-dd but got \" + dateStr, e);\n }\n }\n return null;\n }", "public static Date parseDate(String s) {\n\t\tDate d = null;\n\t\tif (s == null) {\n\t\t\treturn d;\n\t\t}\n\n\t\tString pattern = \"\";\n\n\t\tif (s.indexOf(':') >= 0) {\n\t\t\tif (s.length() > 20) {\n\t\t\t\tpattern = \"yyyy-MM-dd HH:mm:ss.SSS\";\n\t\t\t} else {\n\t\t\t\tif (s.lastIndexOf(':') != s.indexOf(':'))\n\t\t\t\t\tpattern = DD_MM_YYYY_HH_MM_SS;\n\t\t\t\telse\n\t\t\t\t\tpattern = \"dd/MM/yyyy HH:mm\";\n\t\t\t}\n\t\t} else {\n\t\t\tpattern = DD_MM_YYYY;\n\t\t}\n\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(pattern);\n\t\tsdf.setTimeZone(TimeZone.getDefault());\n\t\tif (s.length() > 0) {\n\t\t\ttry {\n\t\t\t\td = sdf.parse(s);\n\t\t\t} catch (ParseException e) {\n\t\t\t\tthrow new FenixException(\"Errore nella conversione della data. \" + e.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}", "private static String convertDate(String dateString) {\n String date = null;\n\n try {\n //Parse the string into a date variable\n Date parsedDate = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\").parse(dateString);\n\n //Now reformat it using desired display pattern:\n date = new SimpleDateFormat(DATE_FORMAT).format(parsedDate);\n\n } catch (ParseException e) {\n Log.e(TAG, \"getDate: Error parsing date\", e);\n e.printStackTrace();\n }\n\n return date;\n }", "private static Date getDate(String sdate)\n\t{\n\t\tDate date = null;\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\ttry {\n\t\t\tdate = formatter.parse(sdate);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn date;\n\t}", "public static void validateDate(String date) throws CustomExceptionHandler {\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd.MM.yyyy\");\n formatter.setLenient(false);\n Date parsedDate;\n\n //Throw Exception if string is blank\n if(date.isBlank()||date.isEmpty())\n throw new CustomExceptionHandler(\"Date NOT Specified\");\n\n\n\n //Throw exception if date is not formatted correctly\n try\n {\n parsedDate = formatter.parse(date);\n\n }\n catch (Exception e)\n {\n throw new CustomExceptionHandler(\"The date format is not correct\");\n }\n }", "@Override\n public Date parse(String text, Locale locale) throws ParseException {\n return getDateFormat().parse(text);\n }", "private int parseMDYYYYtoJDate(String sDate) throws OException\r\n\t{\r\n final int month = 0;\r\n final int day = 1;\r\n final int year = 2;\r\n int result = OCalendar.today();\r\n String separator = \"\";\r\n\r\n if(sDate.indexOf(\"/\") > 0)\r\n separator = \"/\";\r\n else if(sDate.indexOf(\"-\") > 0)\r\n separator = \"-\";\r\n else if(sDate.indexOf(\"\\\\\") > 0)\r\n separator = \"\\\\\";\r\n else\r\n return result;\r\n\r\n String subDate[] = sDate.split(separator);\r\n if(subDate.length != 3)\r\n return result;\r\n\r\n if((subDate[day].length() != 1 && subDate[day].length() != 2)\r\n || (subDate[month].length() != 1 && subDate[month].length() != 2)\r\n || (subDate[year].length() != 2 && subDate[year].length() != 4))\r\n return result;\r\n\r\n // Fix Month to MM\r\n if(subDate[month].length() == 1)\r\n subDate[month] = \"0\" + subDate[month];\r\n\r\n // Fix Day to DD\r\n if(subDate[day].length() == 1)\r\n subDate[day] = \"0\" + subDate[day];\r\n\r\n // Fix Year to YYYY\r\n if(subDate[year].length() == 2)\r\n subDate[year] = \"20\" + subDate[year];\r\n\r\n\r\n // Convert to Julian Date using YYYYMMDD convert function\r\n result = OCalendar.convertYYYYMMDDToJd(subDate[year] + subDate[month] + subDate[day]);\r\n\r\n return result;\r\n\t}", "public static java.util.Date parseStringToDate(String data, String pattern) {\r\n\t\tjava.util.Date retorno = null;\r\n\r\n\t\tif (data != null && pattern != null) {\r\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(pattern);\r\n\t\t\tformat.setLenient(false);\r\n\t\t\ttry {\r\n\t\t\t\tretorno = format.parse(data);\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public static Date parseDate(String date)\n {\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date dt = null;\n try {\n dt = format.parse(date);\n } \n catch (ParseException ex) \n {\n System.out.println(\"Unexpected error during the conversion - \" + ex);\n }\n return dt;\n }", "public boolean selectDate(String dateString);", "private boolean checkDate(String date) {\n return date.matches(regexDate);\n }", "private String YYYYMMDD(String str) {\n\t\tString[] s = str.split(\"/\");\n\t\treturn s[0] + parseToTwoInteger(Integer.parseInt(s[1].trim())) + parseToTwoInteger(Integer.parseInt(s[2].trim()));\n\t}", "public static Date parseDateNaturalLanguage(String text, Date referenceDate) {\n\n for (DateGroup dateGroup : PARSER.parse(text, referenceDate)) {\n return dateGroup.getDates().get(0);\n }\n return null;\n }", "public static String convertDateAndTime(String inputString) {\n String trimmedInputString = inputString.trim();\n\n if (trimmedInputString.length() < 10) {\n return convertTime(inputString);\n } else {\n String dateString = trimmedInputString.substring(0, 10).trim();\n String timeString = trimmedInputString.substring(10).trim();\n try {\n String date = LocalDate.parse(dateString).format(DateTimeFormatter.ofPattern(\"d MMM yyyy\"));\n\n if (timeString.length() == 4) {\n return date + \" \" + convertTime(timeString);\n }\n\n return date + timeString;\n } catch (DateTimeParseException e) {\n return inputString;\n }\n }\n }", "public static void main(String[] args) {\n\t\t SimpleDateFormat sdf = new SimpleDateFormat (\"dd-MM-yyyy\");\n\t\t\t\t sdf.setLenient(false);\n\t\t\t\t String input = \"13-02-2018\"; \n\t\t\t\t System.out.println(\"Given Date is:\"+ input); \n\t\t\t\t Date dt;\n\t\t\t\t try {\n\t\t\t\t dt = sdf.parse(input); \n\t\t\t\t System.out.println(dt); \n\t\t\t\t } catch (ParseException e) { \n\t\t\t\t System.out.println(\"Invalid date entered :\" + input); \n\t\t\t\t }\n\n\t}", "public void setString (String s) { //set method\n full_Date = s;\n if(!isValidDate(full_Date)) throw new IllegalArgumentException(\"Invalid Date Format!\");\n\n Year = Integer.parseInt(full_Date.substring(0,3));\n Month = Integer.parseInt(full_Date.substring(4,5));\n Day = Integer.parseInt(full_Date.substring(6,7));\n\n \n}", "public static Date parseDateTime(String date)\n\t{\n\t\treturn parseFormatDate(date, getDateTimeFormat());\n\t}", "@SuppressLint(\"SimpleDateFormat\") public static String parse(String date, String format){\r\n\t\ttry {\r\n\t\t\tSimpleDateFormat localFormatter= new SimpleDateFormat(format);\r\n\t\t\tlocalFormatter.setLenient(false);\r\n\t\t\tString formattedDate=localFormatter.parse(date).toString();\r\n\t\t\t\r\n\t\t\t//days, months, years\r\n\t\t\tif(format.equals(formats[0])) return convertDate(formattedDate);\r\n\t\t\t\r\n\t\t\t//hours, minutes, seconds\r\n\t\t\telse if(format.equals(formats[1])) return convertHoursMinsSecs(formattedDate);\t\r\n\t\t\t\r\n\t\t\t//hours, minutes\r\n\t\t\telse if(format.equals(formats[2])) return convertHoursMins(formattedDate);\t\r\n\t\t\t\r\n\t\t\treturn \"\";\r\n\t\t\r\n\t\t} catch (ParseException e) {\r\n\t\t\t//e.printStackTrace();\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t}", "public static Date parseDateOnly(String dateString, String userId) throws ParseException\n\t{\n\t\tif ((dateString == null) || (dateString.trim().length() == 0)) return null;\n\t\tDateFormat format = DateFormat.getDateInstance(DateFormat.MEDIUM, getPreferredLocale(userId));\n\t\tformat.setTimeZone(getPreferredTimeZone(userId));\n\t\tDate rv = format.parse(dateString);\n\t\treturn rv;\n\t}", "private static final Date convertStringToDate(String aMask, String strDate) {\n SimpleDateFormat df = null;\n Date date = null;\n df = new SimpleDateFormat(aMask);\n try {\n date = df.parse(strDate);\n } catch (ParseException pe) {\n throw new ValidateException(\"日期转换出现异常,\"+pe.getMessage(), pe);\n }\n\n return (date);\n }", "@Test\n\t@DisplayName(\"string to date\")\n\tpublic void testStringToDate() throws ParseException\n\t{\n\t\tDateConverter d = new DateConverter(string1);\n\t\t\n\t\tString dateInString = \"1997-03-19\";\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\ttry {\n\t\t date1 = formatter.parse(dateInString);\n\t\t} catch (ParseException e) {\n\t\t //handle exception if date is not in \"dd-MMM-yyyy\" format\n\t\t}\n\t\tassertEquals(date1, d.getDate());\n\t}", "public static Date parseDate(String date) throws java.text.ParseException {\n if(date == null) return null;\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n try {\n return sdf.parse(date);\n\n } catch(ParseException e) {\n sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\n try {\n return sdf.parse(date);\n\n } catch(ParseException e2) {\n sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n return sdf.parse(date);\n }\n } \n }", "public static Date convertStringToDate(String date) throws ParseException {\n\t return new SimpleDateFormat(\"yyyy-MM-dd\").parse(date); \n\t}", "public LocalDateTime parseDate(String str) {\n String time = str.substring(str.indexOf(\",\") + 2);\n int hour = new Integer(time.split(\":\")[0].trim());\n int min = new Integer(time.split(\":\")[1].trim());\n LocalTime localTime = LocalTime.of(hour, min);\n\n str = str.substring(0, str.indexOf(\",\")).trim();\n LocalDate localDate = LocalDate.now();\n\n if (str.contains(\"вчера\")) {\n localDate.minusDays(1);\n } else if (!str.contains(\"сегодня\") && !str.contains(\"вчера\")) {\n int year = new Integer(\"20\" + str.substring(str.length() - 2));\n String strMonth = str.substring(2, 6).trim();\n int day = new Integer(str.substring(0, 2).trim());\n localDate = LocalDate.of(year, parseMonth(strMonth), day);\n }\n return LocalDateTime.of(localDate, localTime);\n }", "public static Date convertirStringADateUtil(String s){\n\t\tFORMATO_FECHA.setLenient(false);\n\t\tDate fecha = null;\n\t\ttry {\n\t\t\tfecha = FORMATO_FECHA.parse(s);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn fecha;\n\t}", "public static Date parseDateTime(String str)\n {\n if(Empty.isEmpty(str))\n return null;\n if(str.length() <= 10)\n return parse(str);\n try{\n \treturn (new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\")).parse(str);\n\t\t}catch(ParseException e){\n\t\t \t return null;\n\t\t}\n }", "public void parseDateTextFieldHelper() {\n\t\tyear = Integer.parseInt(textFieldDate.getText().substring(0, 4));\n\t\tmonth = Integer.parseInt(textFieldDate.getText().substring(5, 7));\n\t\tdayOfMonth = Integer.parseInt(textFieldDate.getText().substring(8, 10));\n\t}", "private String getDate(String str) {\n String[] arr = str.split(\"T\");\n DateFormat formatter = new SimpleDateFormat(\"yyyy-mm-d\", Locale.US);\n Date date = null;\n try {\n date = formatter.parse(arr[0]);\n } catch (java.text.ParseException e) {\n Log.e(LOG_TAG, \"Could not parse date\", e);\n }\n SimpleDateFormat dateFormatter = new SimpleDateFormat(\"MMM d, yyyy\", Locale.US);\n\n return dateFormatter.format(date);\n }", "private String convertDate(String date){\r\n String arrDate[] = date.split(\"/\");\r\n date = arrDate[2] + \"-\" + arrDate[1] + \"-\" + arrDate[0];\r\n return date;\r\n }", "public static String getFormattedMonthDay(String dateStr){\n\n Pattern fixDate = Pattern.compile(\"(\\\\d{4})(\\\\d{1,2})(\\\\d{1,2})\");\n Matcher correctDate = fixDate.matcher(dateStr);\n correctDate.find();\n\n String Nowiscorrect = String.format(\"%s/%s/%s\",\n correctDate.group(1),\n correctDate.group(2),\n correctDate.group(3));\n\n String MonthAndDay = currentDate.getdateWithMonthLetters(Nowiscorrect);\n\n\n Pattern rtl_CHARACTERS = Pattern.compile(\"^[۱-۹]+\");\n Matcher findTheYear = rtl_CHARACTERS.matcher(MonthAndDay);\n boolean isDone = findTheYear.find();\n\n return isDone ? findTheYear.replaceAll(\"\") : \"\";\n\n }", "private static String checkFormat(String date){\r\n\t\tif(date.length()==0) return \"\";\r\n\t\tint dateChars=0,timeChars=0;\r\n\t\tchar currenChar;\r\n\t\t\r\n\t\t//check if the first and the last character of the string is a number, it must always be\r\n\t\tif(!Character.isDigit(date.charAt(0))) return \"\";\r\n\t\tif(!Character.isDigit(date.charAt((date.length()-1)))) return \"\";\r\n\t\t\r\n\t\t\r\n\t\tfor(int i=1; i<date.length()-1;i++){\r\n\t\t\tcurrenChar=date.charAt(i);\r\n\t\t\t\r\n\t\t\t//check if every character is / or : or number\t\t\r\n\t\t\tif(!(Character.isDigit(currenChar) || currenChar==':' || currenChar=='/')) return \"\";\r\n\t\t\t//check if there is a number between // or ::, if not it returns false\r\n\t\t\tif((currenChar==':' || currenChar=='/') && (date.charAt(i+1)==':' || date.charAt(i+1)=='/')) return \"\";\r\n\t\t\t\r\n\t\t\t//count the / and :\r\n\t\t\tif(currenChar==':') timeChars++; \r\n\t\t\telse if(currenChar=='/') dateChars++;\r\n\t\t}\r\n\t\t\r\n\t\t//if it is time with one :\r\n\t\tif(timeChars==1 && dateChars==0){\r\n\t\t\t//check if one of the numbers has more than 2 digits, then it is invalid\r\n\t\t\tint index=0;\r\n\t\t\tfor(String s:splitWords(date.replaceAll(\":\", \" \"))){\r\n\t\t\t\tif( index==0 && s.length()!=1 && s.length()!=2) return \"\";\r\n\t\t\t\telse if(index>0 && s.length()!=2 ) return \"\";\r\n\t\t\t\tindex++;\r\n\t\t\t}\r\n\r\n\t\t\treturn formats[2];\r\n\t\t}\r\n\t\t\r\n\t\t//if it is time with two :\r\n\t\telse if(timeChars==2 && dateChars==0){\r\n\t\t\t//check if one of the numbers has more than 2 digits, then it is invalid\r\n\t\t\tint index=0;\r\n\t\t\tfor(String s:splitWords(date.replaceAll(\":\", \" \"))){\r\n\t\t\t\tif( index==0 && s.length()!=1 && s.length()!=2) return \"\";\r\n\t\t\t\telse if(index>0 && s.length()!=2 ) return \"\";\r\n\t\t\t\tindex++;\r\n\t\t\t}\r\n\r\n\t\t\treturn formats[1];\r\n\t\t}\r\n\t\t\r\n\t\t//if it is a date with two /\r\n\t\telse if(dateChars==2 && timeChars==0){\r\n\t\t\t//check if one of the numbers have the right amount of digits\r\n\t\t\tString[] numbers= splitWords(date.replaceAll(\"/\", \" \"));\r\n\t\t\tif(numbers[0].length()>2) return \"\";\r\n\t\t\tif(numbers[1].length()>2) return \"\";\r\n\t\t\tif(numbers[2].length()>4) return \"\";\r\n\t\t\t\r\n\t\t\treturn formats[0];\r\n\t\t}\r\n\t\t\r\n\t\telse return \"\";\t\t\r\n\t}", "public static Date stringToDate(String dateAsString){\r\n try { \r\n SimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\"); \r\n return df.parse(dateAsString);\r\n } catch (ParseException ex) {\r\n ex.printStackTrace();\r\n return null;\r\n }\r\n }", "default Date fromSource(String date) {\n try {\n return getSourceDateFormat().parse(date);\n } catch (ParseException e) {\n throw new RuntimeException(String.format(\"couldn't parse date:{0} using:{1}\", date, getSourceDateFormat()));\n }\n }", "public static Date isoStringToDate(String d) {\n\t\tDateTime dt = XML_DATE_TIME_FORMAT.parseDateTime(d);\n\t\treturn dt.toDate();\n\t}", "public String filter(String json) {\n\t\t\t\tjson = json.replaceAll(\"\\\"bday\\\",\\\\{\\\\},\\\"date-and-or-time\\\"\", \"\\\"bday\\\",{},\\\"date\\\"\");\n\t\t\t\tjson = json.replaceAll(\"\\\"anniversary\\\",\\\\{\\\\},\\\"date-and-or-time\\\"\", \"\\\"anniversary\\\",{},\\\"date-time\\\"\");\n\t\t\t\treturn json;\n\t\t\t}", "public MyDate(String date){\n \t\tStringTokenizer st;\n\n \t\tst = new StringTokenizer(date,\"/\");\t//tokenizer will always result in 3 tokens \n\n\t\tthis.day = Integer.parseInt(st.nextToken());\n\t\tthis.month = Integer.parseInt(st.nextToken());\n\t\tthis.year = Integer.parseInt(st.nextToken());\t\n\t}", "public static Date parseDate(String source, String pattern) throws Exception {\n\tif (null != source && !source.trim().isEmpty() && !source.equals(\"0\")) {\n\t DateFormat format = new SimpleDateFormat(pattern);\n\t Calendar calendar = new GregorianCalendar();\n\t calendar.setTime(format.parse(source));\n\t return new Date(calendar.getTimeInMillis());\n\t}\n\treturn null;\n }" ]
[ "0.61990666", "0.6114999", "0.6046056", "0.5977807", "0.5950328", "0.59491885", "0.5757129", "0.5746068", "0.5741168", "0.572943", "0.57282203", "0.56825686", "0.56438035", "0.5600488", "0.5580525", "0.5562381", "0.5557302", "0.5519248", "0.55022293", "0.5483868", "0.5470191", "0.5459393", "0.5454047", "0.5447644", "0.53961813", "0.53741336", "0.5372478", "0.536102", "0.535787", "0.5350494", "0.5342379", "0.5339412", "0.5320675", "0.53092664", "0.53087074", "0.5305455", "0.53004146", "0.5294214", "0.52937394", "0.528841", "0.5285488", "0.52596927", "0.52300113", "0.5220961", "0.52193207", "0.52182466", "0.52109253", "0.5197946", "0.51945263", "0.5192906", "0.5189246", "0.5184954", "0.5184833", "0.51739836", "0.51736563", "0.51703936", "0.5166546", "0.51621956", "0.51619583", "0.5160478", "0.5157467", "0.5157431", "0.5155625", "0.51540405", "0.51500213", "0.51494086", "0.51490927", "0.51487297", "0.5139155", "0.51381874", "0.51352376", "0.51286477", "0.512058", "0.5120414", "0.5105289", "0.5100839", "0.5093999", "0.50921917", "0.50888056", "0.5088539", "0.5085223", "0.5079843", "0.50753254", "0.5072681", "0.5057873", "0.50558", "0.5054786", "0.5054027", "0.50374", "0.5032053", "0.50247496", "0.50155807", "0.5015193", "0.5015145", "0.50109", "0.50105894", "0.500795", "0.50076896", "0.5006499", "0.5002556" ]
0.62422144
0
Parses a positive integer and removes its representation from a modifiable character sequence
public static int parseInt(StringBuilder sb) { int numberChars = 0; for(;; numberChars++) { if(numberChars >= sb.length()) break; char ch = sb.charAt(numberChars); if(ch >= '0' && ch <= '9') continue; else break; } if(numberChars == 0) return -1; else { int ret = Integer.parseInt(sb.substring(0, numberChars)); sb.delete(0, numberChars); return ret; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private final static String remZero( String s ) {\n\n\n int memid = 0;\n String newS = \"\";\n\n //\n // convert string to int to drop leading zeros\n //\n try {\n memid = Integer.parseInt(s);\n }\n catch (NumberFormatException e) {\n // ignore error\n }\n\n newS = String.valueOf( memid ); // convert back to string\n\n return new String (newS);\n\n }", "static String keepNumbersOnly(CharSequence s) {\n try {\n return s.toString().replaceAll(\"[^0-9]\", \"\");\n } catch (Exception e){\n return null;\n }\n }", "private String filterForNumbers(String s ){\n return s.chars()\n .filter(ch -> Character.isDigit(ch))\n .collect(StringBuilder::new, StringBuilder::appendCodePoint,\n StringBuilder::append)\n .toString();\n }", "private static String removeLeadingZero(String value) //Copied from github\r\n\t{\r\n\t\tString valueWithoutZeros = \"\";\r\n\t\ttry\r\n\t\t{\r\n\t\t\tvalueWithoutZeros = value.replaceFirst(\"^0+\", \"\");\r\n\t\t}\r\n\t\tcatch(Exception ee)\r\n\t\t{\r\n\t\t\tvalueWithoutZeros = value;\r\n\t\t}\r\n\t\t\r\n\t\treturn valueWithoutZeros;\r\n\t}", "static StringBuffer convert(String conv_Number){\r\n StringBuffer obj = new StringBuffer(conv_Number);\r\n for (int i=0 ; i<obj.length();i++){\r\n if(obj.charAt(i)<48 || obj.charAt(i)>57){\r\n obj.deleteCharAt(i);\r\n }}\r\n return obj;\r\n//* aurther=====================================================================@Wajaht Masood_003_assign\r\n }", "int decodeInt();", "private String trimNumber(String num){\n\t\tString incomingNumber = num;\n\t\tincomingNumber = incomingNumber.replaceAll(\"-\", \"\" );\n\t\tif(incomingNumber.startsWith(\"1\"))\n\t\t\tincomingNumber = incomingNumber.replaceFirst(\"1\", \"\");\n\t\tLog.d(TAG,\"trimnum: \" + num );\n\t\tLog.d(TAG,\"trimNumber: \" + incomingNumber);\n\t\treturn incomingNumber;\n\t}", "private static int parseAndStripInt(InputStream in) throws IOException, PNMReaderException {\n\t\treturn parseAndStripInt(in, Integer.MAX_VALUE, (int)Math.ceil(Math.log10(Integer.MAX_VALUE)), true);\n\t}", "@Test\n\tpublic void TestR1NonIntegerParseableChars() {\n\t\tString invalid_solution = \"a74132865635897241812645793126489357598713624743526189259378416467251938381964572\";\n\t\tassertEquals(-1, sv.verify(invalid_solution));\n\t}", "private final static String remZeroS( String s ) {\n\n char[] ca = s.toCharArray();\n char[] ca2 = new char [ca.length - 1];\n\n\n for ( int i=0; i<ca2.length; i++ ) {\n ca2[i] = ca[i+1];\n } // end for\n\n return new String (ca2);\n\n }", "@Override\n\tpublic int func1(String s) {\n\t\tfor(int i=s.length()-1; i>=0; i--) {\n\t\t\tif(s.charAt(i)>=48 && s.charAt(i)<=57) {\n\t\t\t\treturn Integer.parseInt(\"\"+s.charAt(i));\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "public static String removeNonNumeric(String str) {\n return removeRegex(str, \"[\\\\D]\");\n }", "public static void main(String[] args) {\r\n\t\t\r\n\t\tString s = \"9123401\";\r\n\tint a =\tInteger.parseInt(String.valueOf(s.charAt(0)));\r\n\t\r\n\tint b = s.charAt(0) -'0';\r\n//\tSystem.out.println((int)'0');\r\n\tSystem.out.println(b);\r\n//\tSystem.out.println(a);\r\n\r\n\t}", "private String intChecker(String s) {\n\t\tString newS = \"\";\n\t\tfor(int i = 0; i < s.length(); i++) {\n\t\t\tif(s.charAt(i) > 47 && s.charAt(i) < 58) {\n\t\t\t\tnewS += s.charAt(i);\n\t\t\t}\n\t\t}\n\t\treturn newS;\n\t}", "private static int parseInteger(String s, int index)\n\t{\n\t\tString temp = \"\";\n\t\tint i = index;\n\t\twhile (Character.isDigit(s.charAt(i)))\n\t\t{\n\t\t\ttemp += s.charAt(i++);\n\t\t}\n\t\treturn Integer.parseInt(temp);\n\t}", "public static void main(String[] args) throws Exception {\n String s;\n// s = \"0000000000000\";\n s = \"000000-123456\";\n// s = \"000000123456\";\n if (s.matches(\"^0+$\")) {\n s = \"0\";\n }else{\n s = s.replaceFirst(\"^0+\",\"\");\n }\n System.out.println(s);\n\n\n// System.out.println(StringUtils.addRight(s,'A',mod));\n// String s = \"ECPay thong bao: Tien dien T11/2015 cua Ma KH PD13000122876, la 389.523VND. Truy cap www.ecpay.vn hoac lien he 1900561230 de biet them chi tiet.\";\n// Pattern pattern = Pattern.compile(\"^(.+)[ ](\\\\d+([.]\\\\d+)*)+VND[.](.+)$\");\n// Matcher matcher = pattern.matcher(s);\n// if(matcher.find()){\n// System.out.println(matcher.group(2));\n// }\n }", "private int parseInt(char charAt) {\n\t\treturn 0;\n\t}", "private void prepareInput() {\n\t\tif(input.charAt(0) == '-') input = \"0\" + input;\n\t\tfor(int i = 0; i < input.length() - 1; i++) {\n\t\t\tif(input.charAt(i) == '(' && input.charAt(i+1) == '-') input = input.substring(0, i+1) + \"0\" + input.substring(i+1); \n\t\t}\n\t}", "private static int eatNumber (String s, int pos[]) {\r\n int sign = 1;\r\n int result = 0;\r\n int i = 0;\r\n if (s.charAt(pos[0])=='-') {\r\n pos[0]++;\r\n sign = -1;\r\n }\r\n for (; pos[0]<s.length(); i++) {\r\n char c=s.charAt(pos[0]);\r\n if (! Character.isDigit(c)) {\r\n break;\r\n }\r\n result = 10*result + (c-'0');\r\n pos[0]++;\r\n if (i==0 && result==0) return 0;\r\n }\r\n if (i==0) throw new RuntimeException();\r\n return result*sign;\r\n }", "public static String parseChar(String input, int i){\r\n\t\tString resultString = \"\";\r\n\t\twhile(i < input.length()){\r\n\t\t\tchar currentChar = input.charAt(i);\r\n\t\t\tif(currentChar >= 48 && currentChar <= 57){\r\n\t\t\t\tresultString+=currentChar;\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(resultString == \"\")\r\n\t\t\treturn input.substring(i,i+1);\r\n\t\treturn resultString;\r\n\t}", "Rule Digit() {\n // No effect on value stack\n return CharRange('0', '9');\n }", "private String parseNumber () {\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n \r\n fBuffer.delete(0, fBuffer.length());//empty string buffer\r\n \r\n char chr=next();//get next character\r\n assert \"-0123456789\".indexOf(chr)>=0;//assert valid start character\r\n while (\"0123456789.Ee+-\".indexOf(chr)>=0) {//until non number character\r\n fBuffer.append(chr);//append to string buffer\r\n chr=next();//get next character\r\n if (chr==NONE) throw new RuntimeException(\"Invalid syntax : \"+context());//gee, thanks...\r\n }//until non number character\r\n \r\n if (\"]},\".indexOf(chr)<0) throw new RuntimeException(\"Invalid syntax : \"+context());//no way jose\r\n\r\n back(); //rewind to the terminator character\r\n \r\n return fBuffer.toString();//return string in buffer\r\n \r\n }", "private Token readNum(char firstchar) {\n StringBuilder numConstructCache = new StringBuilder();\n char c = firstchar;\n\n while (true) {\n if (isLegalNumChar(c)) {\n numConstructCache.append(c);\n } else {\n revokeCharRead();\n break;\n }\n c = getNextChar();\n }\n return new Token(TokenType.NUMBER, numConstructCache.toString()); //the value of 0 is null\n }", "@Override\n\tpublic int func1(String s) {\n\t\tfor(int i=0; i<=s.length()-1; i++) {\n\t\t\tif(s.charAt(i)>=48 && s.charAt(i)<=57) {\n\t\t\t\treturn Integer.parseInt(\"\"+s.charAt(i));\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "public String cleanPhoneNumber(String string) {\n\t\tString newNumber = \"\"; \n\t\tfor(int i =0; i < string.length(); i++) {\n\t\t\tif(Character.isDigit(string.charAt(i))) {\n\t\t\t\tnewNumber = newNumber + string.charAt(i);\n\t\t\t}\n\t\t}\n\t\t//System.out.println(newNumber);\n\t\tif(newNumber.length() == 10) {\n\t\t\treturn newNumber;\n\t\t}\n\t\telse {\n\t\t\tthrow new IllegalArgumentException(\"number must contain only 10 digits\");\n\t\t}\n\t\t\n\t\t\n\t}", "static int getNumberFromString(String s) {\n if (s == null) {\n throw new NumberFormatException(\"null\");\n }\n int result = 0;\n int startIndex = 0;\n int length = s.length();\n boolean negative = false;\n char firstChar = s.charAt(0);\n if (firstChar == '-') {\n negative = true;\n startIndex = 1;\n }\n\n for (int i = startIndex; i < length; i++) {\n char num = s.charAt(i);\n result = result * 10 + num - '0';\n }\n\n return negative ? -result : result;\n }", "@Override\n public void afterTextChanged(Editable s) {\n String input = s.toString();\n if (input.length() > 0 && input.charAt(0) == '0') {\n s.replace(0, 1, \"\");\n }\n }", "@Test\n\tpublic void testDigitTestReplacementInValid() {\n\t\tString input = \"0\";\n\t\tString actualOutput = GeneralUtility.digitHasReplacement(input);\n\t\tAssert.assertEquals(null, actualOutput);\n\t}", "private void convertDigit(int i)\n {\n if(tempString.charAt(i) == '0' && i == 0)//Checks to see if the digit is equal to '0' and the first character.\n {\n tempString.replace(i, i+1, \"Zero\"); //Converts to capitalized version.\n }\n else if(tempString.charAt(i) == '0' && i != 0) //If it's equal to '0' and not the first, then not capital.\n tempString.replace(i, i+1, \"zero\"); //Converts to non-capitalized version.\n //The rest are very similar to the one above for numbers 1-9.\n if(tempString.charAt(i) == '1' && i == 0)\n {\n tempString.replace(i, i+1, \"One\");\n }\n else if(tempString.charAt(i) == '1' && i != 0)\n tempString.replace(i, i+1, \"one\");\n \n if(tempString.charAt(i) == '2' && i == 0)\n {\n tempString.replace(i, i+1, \"Two\");\n }\n else if(tempString.charAt(i) == '2' && i != 0)\n tempString.replace(i, i+1, \"two\");\n \n if(tempString.charAt(i) == '3' && i == 0)\n {\n tempString.replace(i, i+1, \"Three\");\n }\n else if(tempString.charAt(i) == '3' && i != 0)\n tempString.replace(i, i+1, \"three\");\n \n if(tempString.charAt(i) == '4' && i == 0)\n {\n tempString.replace(i, i+1, \"Four\");\n }\n else if(tempString.charAt(i) == '4' && i != 0)\n tempString.replace(i, i+1, \"four\");\n \n if(tempString.charAt(i) == '5' && i == 0)\n {\n tempString.replace(i, i+1, \"Five\");\n }\n else if(tempString.charAt(i) == '5' && i != 0)\n tempString.replace(i, i+1, \"five\");\n \n if(tempString.charAt(i) == '6' && i == 0)\n {\n tempString.replace(i, i+1, \"Six\");\n }\n else if(tempString.charAt(i) == '6' && i != 0)\n tempString.replace(i, i+1, \"six\");\n \n if(tempString.charAt(i) == '7' && i == 0)\n {\n tempString.replace(i, i+1, \"Seven\");\n }\n else if(tempString.charAt(i) == '7' && i != 0)\n tempString.replace(i, i+1, \"seven\");\n \n if(tempString.charAt(i) == '8' && i == 0)\n {\n tempString.replace(i, i+1, \"Eight\");\n }\n else if(tempString.charAt(i) == '8' && i != 0)\n tempString.replace(i, i+1, \"eight\");\n \n if(tempString.charAt(i) == '9' && i == 0)\n {\n tempString.replace(i, i+1, \"Nine\");\n }\n else if(tempString.charAt(i) == '9' && i != 0)\n tempString.replace(i, i+1, \"nine\");\n }", "public static String getDigits(String s)\r\n {\r\n if (s == null || s.length() == 0)\r\n return s;\r\n \r\n // Removes spaces and dashes\r\n StringBuffer buf = new StringBuffer();\r\n int len = s.length();\r\n for (int n = 0; n < len; n++)\r\n {\r\n char c = s.charAt(n);\r\n if (Character.isDigit(c))\r\n buf.append(c);\r\n }\r\n return buf.toString();\r\n }", "public numero(char s, int length)\n {\n this.sign = s;\n this.raw_value = new char[length];\n for(int i = 0; i < this.raw_value.length; i++) this.raw_value[i] = '0';\n }", "private static int convertCharToInt(char charAt) {\n\t\tif(charAt == 48) {\t\n\t\t\treturn 0;\n\t\t}else {\n\t\t\treturn 1;\n\t\t}\n\t}", "public static int parseInt(CharSequence seq) {\n int result = 0;\n int max = seq.length() - 1;\n int position = 1;\n boolean negative = false;\n for (int i = max; i >= 0; i--) {\n char c = seq.charAt(i);\n switch (c) {\n case '-':\n if (i == 0) {\n negative = true;\n continue;\n }\n throw new NumberFormatException(\"- encountered not at start of '\" + seq + \"'\");\n case '0':\n case '1':\n case '2':\n case '3':\n case '4':\n case '5':\n case '6':\n case '7':\n case '8':\n case '9':\n int prev = result;\n result += position * (c - '0');\n if (prev > result) {\n throw new NumberFormatException(\"Number too large for integer: '\" + seq + \"' - \"\n + \" \" + prev + \" + \" + (position * (c - '0')) + \" = \" + result);\n }\n position *= 10;\n continue;\n default:\n throw new NumberFormatException(\"Illegal character '\" + c + \"' in number '\" + seq + \"'\");\n }\n }\n return negative ? -result : result;\n }", "public static String cleanStringToNumber(String string) {\r\n\t\treturn string = string.replaceAll(\"([^0-9.])\", \"\");\r\n\t}", "private String compactNumbers(String inWord)\n {\n StringBuffer rtn = new StringBuffer().append(\"^\");\n boolean last_digit = false;\n\n for(int i = 0; i < inWord.length(); i++)\n {\n char ch = inWord.charAt(i);\n if(Character.isDigit(ch))\n {\n if(!last_digit)\n {\n last_digit = true;\n rtn.append('1');\n } // fi\n } // fi\n\n else\n {\n last_digit = false;\n rtn.append(ch);\n } // else\n } // for\n \n rtn.append(\"_\");\n\n return(rtn.toString());\n }", "private Token number() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\twhile(isDigit(this.currentChar) && this.pos != Integer.MIN_VALUE) {\n\t\t\tsb.append(this.currentChar);\n\t\t\tnext_char();\n\t\t}\n\t\t//处理小数\n\t\tif(this.currentChar == '.') {\n\t\t\tsb.append(this.currentChar);\n\t\t\tnext_char();\n\t\t\t\n\t\t\twhile(isDigit(this.currentChar) && this.pos != Integer.MIN_VALUE) {\n\t\t\t\tsb.append(this.currentChar);\n\t\t\t\tnext_char();\n\t\t\t}\n\t\t\treturn new Token(Type.REAL_CONST, sb.toString());\n\t\t}else {\n\t\t\treturn new Token(Type.INTEGER_CONST, sb.toString());\n\t\t}\n\t}", "private static int characterToIntegerDigit(char c) {\n\t\t// since all characters are integers in UTF-16\n\t\tif (c >= 48 && c <= 57) {\n\t\t\treturn (c - 48);\n\t\t}\n\t\treturn -1;\n\t}", "public static int atoiRightToLeft(String str) {\n int digitCounter = 1;\n int result = 0;\n\n for (int i = str.length() - 1; i >= 0; i--) {\n if (i == 0 && str.charAt(i) == '-') {\n return result * - 1;\n }\n result += (int) str.charAt(i) - '0' * digitCounter;\n digitCounter *= 10;\n }\n return result;\n }", "protected java.lang.String readNum() throws java.io.IOException {\n char c = readCharWord();\n java.lang.StringBuilder result = new java.lang.StringBuilder();\n if (c!='-' && !java.lang.Character.isDigit(c))\n throw error();\n do {\n result.append(c);\n c = next();\n } while (java.lang.Character.isDigit(c));\n return result.toString();\n }", "public static String removeNumber(String identifier) {\r\n\t\tString returnValue;\r\n\t\t\r\n\t\treturnValue = removeNamespace(identifier);\r\n\t\tif (returnValue.matches(\"\\\\w+\\\\d+\")) {\t\t//A sequence of letters followed by a sequence of numbers\r\n\t\t\treturnValue = returnValue.replaceAll(\"\\\\d\",\"\");\r\n\t\t} else {\r\n\t\t\tSystem.err.println(\r\n\t\t\t\t\t\"WARNING in Global.removeNumber: Found an identifier with an unexpected \" +\r\n\t\t\t\t\t\"format, \\\"\" + identifier + \"\\\".\");\r\n\t\t\treturnValue = identifier;\r\n\t\t}\r\n\t\treturn returnValue;\r\n\t}", "private String formato(String cadena){\n cadena = cadena.replaceAll(\" \",\"0\");\n return cadena;\n }", "public static int convertIntCharToInteger(String input) {\n\t\tint convertedInt = \tinput.charAt(0)-'0';\n\t\tSystem.out.println(convertedInt);\n\t\treturn convertedInt;\n\t}", "public static int atoi1(String str) {\n\t // Start typing your Java solution below\n\t // DO NOT write main() function\n\t \n\t \n\t //possible input\n\t //positive \n\t //negative\n\t //and zero.\n\t //what are the allowed chars + -, [1-9].\n\t //if invalid, what to do?\n\t //white spaces in input it is possible. zero value\n\t //if the number is out of range of representable value. max_int or min_int is returned.\n\t //ignore anything after the last digit.\n\t \n\t if(str == null || str.length() == 0) return 0;\n\t \n\t //remove empty space at beginning.\n\t int pos = 0;\n\t \n\t boolean isNeg = false;\n\t int res = 0;\n\t \n\t //pure char by char empty space removal.\n\t while(str.charAt(pos) == ' ') pos ++;\n\t \n\t if(str.charAt(pos) == '+' || str.charAt(pos) == '-'){\n\t if(str.charAt(pos) == '-') isNeg = true;\n\t pos ++;\n\t }\n\t \n\t \n\t while(pos < str.length() ){\n\t int tmp = str.charAt(pos) - '0';\n\t if(tmp >=0 && tmp <= 9 ){\n\t if(Integer.MAX_VALUE /10 >= res) res *= 10;\n\t else{\n\t return isNeg?Integer.MIN_VALUE: Integer.MAX_VALUE; //overflow situation.\n\t }\n\t \n\t if(Integer.MAX_VALUE - tmp >= res){\n\t res += tmp;\n\t }\n\t else{\n\t return isNeg?Integer.MIN_VALUE: Integer.MAX_VALUE;\n\t }\n\t pos ++;\n\t }else break; // invalid or ignore subsequent chars.\n\t }\n\t \n\t res = isNeg? -res: res;\n\t \n\t return res;\n\t \n\t }", "@Test\n public void shouldRemoveDigitInRange(){\n Assert.assertThat(\"match any digits\", CharMatcher.inRange('1','5').removeFrom(\"123TT T4\"), equalTo(\"TT T\"));\n Assert.assertThat(\"match any digits\", CharMatcher.inRange('3','5').negate().removeFrom(\"123TT T4\"), equalTo(\"12TT T\"));\n }", "public static int atoi(String str) {\n // Start typing your Java solution below\n // DO NOT write main() function\n \n \n //possible input\n //positive \n //negative\n //and zero.\n //what are the allowed chars + -, [1-9].\n //if invalid, what to do?\n //white spaces in input it is possible. zero value\n //if the number is out of range of representable value. max_int or min_int is returned.\n //ignore anything after the last digit.\n \n if(str == null || str.length() == 0) return 0;\n \n //remove empty space at beginning.\n int pos = 0;\n \n boolean isNeg = false;\n long res = 0;\n \n while(str.charAt(pos) == ' ') pos ++;\n \n if(str.charAt(pos) == '+' || str.charAt(pos) == '-'){\n if(str.charAt(pos) == '-') isNeg = true;\n pos ++;\n }\n \n \n while(pos < str.length() ){\n int tmp = str.charAt(pos) - '0'; //need to check overflow situation while iterating through it.\n if(tmp >=0 && tmp <= 9 ){\n res = res * 10 + tmp;\n pos ++;\n }else break; // invalid or ignore subsequent chars.\n }\n \n res = isNeg? -res: res;\n \n if(res > Integer.MAX_VALUE) res = Integer.MAX_VALUE;\n if(res < Integer.MIN_VALUE) res = Integer.MIN_VALUE;\n return (int) res;\n \n }", "public String validateNumberString() {\n String tempNumber = numberString;\n int start = 0;\n Pattern pattern = Pattern.compile(\"\\\\D+\");\n Matcher matcher = pattern.matcher(tempNumber);\n if (isZero()) {\n return \"0\";\n }\n if (isNegative()) {\n start++;\n }\n if (matcher.find(start)) {\n throw new IllegalArgumentException(\"Wrong number: \" + tempNumber);\n }\n pattern = Pattern.compile(\"([1-9][0-9]*)\");\n matcher.usePattern(pattern);\n if (!matcher.find(0)) {\n throw new IllegalArgumentException(\"Wrong number: \" + tempNumber);\n }\n return tempNumber.substring(matcher.start(), matcher.end());\n }", "public static String blowup(String str) {\n\t\tString result = \"\";\n\t\tfor(int i = 0; i < str.length() - 1; i++){\n\t\t\tif(Character.isDigit(str.charAt(i))){\n\t\t\t\tresult += miniBlow(str.charAt(i + 1), (str.charAt(i) - '0'));\n\t\t\t} else {\n\t\t\t\tresult += str.charAt(i);\n\t\t\t}\n\t\t}\n\t\tif(str.length() != 0 && !Character.isDigit(str.charAt(str.length() - 1))) {\n\t\t\tresult += str.charAt(str.length() - 1);\n\t\t}\n\t\treturn result;\n\t}", "static void separateNumbers(String s) {\n \tlong flag = 0;\n \tif(s.charAt(0) == '0') {\n \t\tflag = -1;\n \t}\n\t\tif (flag == 0) {\n\t\t\tfor (int length = 1; length * 2 <= s.length(); length++) {\n\t\t\t\tlong firstNumber = Long.parseLong(s.substring(0, length));\n\n\t\t\t\tStringBuilder sequence = new StringBuilder();\n\t\t\t\tlong number = firstNumber;\n\t\t\t\twhile (sequence.length() < s.length()) {\n\t\t\t\t\tsequence.append(number);\n\t\t\t\t\tnumber++;\n\t\t\t\t}\n\t\t\t\tif (sequence.toString().equals(s)) {\n\t\t\t\t\tflag = firstNumber;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n \tif(flag <= 0 ) {\n \t\tSystem.out.println(\"NO\");\n \t}\n \telse {\n \t\tSystem.out.println(\"YES \"+flag);\n \t}\n \t\n }", "private void transNumberToJustDigits(String number) {\n String[] justDigits = number.split(\"-\");\n\n for (String justDigit : justDigits) {\n numberWithoutDashes += justDigit;\n }\n\n }", "String einfachesErsetzen(String s) {\n\t\tString newS = s.replace(\"2\", \"0\");\n\t\tif (newS == s) {\n\t\t\tSystem.out.println(\"gleich\");\n\t\t}\n\t\treturn newS;\n\t}", "private String replaceSpecialCharactersFromNumber(String number) {\n\t\tnumber = number.replaceAll(\"[^a-zA-Z0-9]\", \"\");\n\t\treturn number;\n\t}", "public static int cleanBitsIthrough0(int num, int i) {\n int mask = (-1 << (i + 1));\n return num & mask;\n }", "public static int numDecodings_orig(String s) {\n\n if (s == null || s.length() == 0) {\n return 0;\n }\n\n char[] nums = s.toCharArray();\n int[] memos = new int[nums.length];\n memos[nums.length-1] = nums[nums.length-1] != '0' ? 1 : 0;\n for (int i = nums.length-2; i >= 0; i--) {\n int numAtI = nums[i+0]-'0';\n int numAtI_1 = nums[i+1]-'0';\n\n if (numAtI > 2 || (numAtI == 2 && numAtI_1 > 6)) {\n memos[i] = memos[i+1];\n } else if (numAtI == 1 || (numAtI == 2 && numAtI_1 <= 6)) {\n if (i < nums.length-2) {\n memos[i] = memos[i+1] + memos[i+2];\n } else {\n memos[i] = memos[i+1] + 1;\n }\n }\n }\n\n return memos[0];\n }", "static int decrementRepsRPE(String input) {\n int value = 0;\n if (!input.matches(\"\") && Integer.parseInt(input) >= 1) {\n value = Integer.parseInt(input);\n value = value - 1;\n return value;\n }\n return value;\n }", "private static Integer parseIntString( String valueString ) {\n return Integer.parseInt( valueString.replaceAll( \"[^0-9]\", \"\" ) );\n }", "public String removeKdigits(String num, int k) {\n Stack<Character> stack = new Stack<>();\n if(k==num.length()){\n return \"0\";\n }\n int i=0;\n while(i<num.length()){\n while(k>0&&!stack.empty()&&stack.peek()>num.charAt(i)){\n stack.pop();\n k--;\n }\n stack.push(num.charAt(i));\n i++;\n }\n while(k>0){\n stack.pop();\n k--;\n }\n StringBuffer sb = new StringBuffer();\n while(!stack.empty()){\n sb.insert(0, stack.pop());\n }\n for(i=0; i<sb.length(); i++){\n if(sb.charAt(i)!='0'){\n sb.delete(0, i);\n break;\n }\n }\n if(sb.toString().matches(\"[0]+\")){\n return \"0\";\n }\n return sb.toString();\n }", "public String clearLastDigit() {\r\n\r\n\t\tif (getOperand().length() == 1) {\r\n\t\t\tgetOperand().deleteCharAt(getOperand().length() - 1);\r\n\t\t\treturn \"0\";\r\n\t\t}\r\n\r\n\t\tif (getOperand().length() > 1) {\r\n\t\t\treturn getOperand().deleteCharAt(getOperand().length() - 1)\r\n\t\t\t\t\t.toString();\r\n\t\t} else {\r\n\t\t\treturn \"0\";\r\n\t\t}\r\n\t}", "public static String cleanStringToNumberOrZeroDefault(String string) {\r\n\t\tString result = cleanStringToNumber(string);\r\n\t\treturn result.contentEquals(\"\") ? \"0\" : result;\r\n\t}", "private String parseToTwoInteger(int input) {\n\t\treturn input < 10 ? \"0\" + input : \"\" + input;\n\t}", "private static int extractInt(String str) {\n\n String num = \"\";\n for (int i = 0; i < str.length(); i++) {\n if (java.lang.Character.isDigit(str.charAt(i))) num += str.charAt(i);\n }\n return (num.equals(\"\")) ? 0 : java.lang.Integer.parseInt(num);\n\n }", "public static void main(String[] args) {\n int integer = 6;\n String s = Integer.toString(integer);\n System.out.println(s);\n\n //integer to string (abc) -- ascii value\n //Character.toString();\n int a = 3;\n char character = (char) (a + '0' + 48);\n char c = 'c';\n s = Character.toString(character);\n System.out.println(s);\n int b = 13;\n c = (char) (b + 48 + '0');\n s = Character.toString(c);\n System.out.println(s);\n\n //parseInt String to Int...\n String str = \"0\";\n integer = Integer.parseInt(str);\n System.out.println(integer);\n str= \"00\";\n integer = Integer.parseInt(str);\n System.out.println(integer);\n str = \"-1\";\n integer = Integer.parseInt(str);\n System.out.println(integer);\n String inf = \"asdf\"; //any error produces -1\n integer = Integer.parseInt(str);\n System.out.println(integer);\n str = \"-2\";\n integer = Integer.parseInt(str);\n System.out.println(integer);\n str = \"-002\";\n integer = Integer.parseInt(str);\n System.out.println(integer); //handles all leading zeros... and negatives... edge case is when it is equal to -1 then error....\n //however good news is that my function has all negatives handled like no edge cases.... only 0000 edge case\n\n //- + 0000 123 0.000 */\n //handled all edge cases with integers... only edge cases with float 0.000 consider...\n //parseDouble\n str = \"0\";\n double d = Double.parseDouble(str);\n System.out.println(d);\n str = \"00.9\";\n d = Double.parseDouble(str);\n System.out.println(d);\n str = \"-00.9000\";\n d = Double.parseDouble(str);\n System.out.println(d);\n str = \"-1.987\";\n d = Double.parseDouble(str);\n System.out.println(d);\n str = \"asdf\"; //throws exception\n try {\n d = Double.parseDouble(str);\n } catch (NumberFormatException e) {\n System.out.println(\"error\");\n }\n System.out.println(d); //d remains same/old value;\n\n }", "static int numberFrom(String s) throws NumberFormatException {\n return Integer.parseInt(s.replaceAll(\"[,+\\\\s+]\", EMPTY));\n }", "public static int dehexchar(char c) {\n if(c >= '0' && c <= '9') {\n return c - '0';\n }\n if(c >= 'A' && c <= 'F') {\n return c - ('A' - 10);\n }\n if(c >= 'a' && c <= 'f') {\n return c - ('a' - 10);\n }\n\n return -1;\n }", "public static int numDecodings2(String s) {\r\n\t\tif(s == null || s.length() == 0)\r\n\t\t\treturn 0;\r\n\t\tint len = s.length();\r\n\t\tint prev1 = 1;\r\n\t\tint prev2 = s.charAt(0) == '0' ? 0 : 1;\r\n\t\t\r\n\t\tfor(int i = 2; i <= len; i++) {\r\n\t\t\tint code1 = Integer.valueOf(s.substring(i - 1, i)); // 1 digit\r\n\t\t\tint code2 = Integer.valueOf(s.substring(i - 2, i)); // 2 digit\r\n\t\t\tint temp = prev2;\r\n\t\t\tprev2 = (code1 != 0 ? prev2 : 0) + (code2 <= 26 && code2 > 9 ? prev1 : 0);\r\n\t\t\tprev1 = temp;\r\n\t\t}\r\n\t\t\r\n\t\treturn prev2;\r\n\t}", "private String readNumber() {\n StringBuilder sb = new StringBuilder();\n char currentChar = code.charAt(currentIndex);\n while (!isEndOfCode() && Character.isDigit(currentChar)) {\n sb.append(currentChar);\n currentIndex++;\n if (isEndOfCode()) break;\n currentChar = code.charAt(currentIndex);\n }\n return sb.toString();\n }", "public static int myAtoi(String s) {\n int n = s.length();\n if (n == 0) {\n return 0;\n }\n int i = 0;\n char[] c = s.toCharArray();\n\n //去除空格\n while (i < n && c[i] == ' ') {\n i++;\n }\n //极端情况 \" \"\n if (i == n) {\n return 0;\n }\n //判断符号\n int sign = 1;\n if (c[i] == '-') {\n sign = -1;\n i++;\n } else if (c[i] == '+') {\n i++;\n }\n //遍历\n int res = 0;\n while (i<n){\n char cur = c[i];\n if(cur< '0' || cur > '9'){\n break;\n }\n //提前判断乘以10 + 上当前数字是否越界\n if (res > Integer.MAX_VALUE / 10 || (res == Integer.MAX_VALUE / 10 && (cur - '0') > Integer.MAX_VALUE % 10)) {\n return Integer.MAX_VALUE;\n }\n if (res < Integer.MIN_VALUE / 10 || (res == Integer.MIN_VALUE / 10 && (cur - '0') > -(Integer.MIN_VALUE % 10))) {\n return Integer.MIN_VALUE;\n }\n res = res*10 + sign*(cur-'0');\n i++;\n }\n return res;\n\n\n }", "private void processPossibleNumber(String data, int position) {\n\n Token t = tokens.get(currentTokenPointer);\n\n try {\n\n char possiblePlus = data.charAt(position);\n\n Integer value = null;\n\n if (possiblePlus == '+') {\n\n String number = data.substring(position + 1);\n\n if (number.length() > 0 && number.charAt(0) == '-') {\n\n raiseParseProblem(\n\n \"numeric modifier for macro should be +nnn or -nnn. This '\" + data + \" is not allowed, at position \" + t.start, t.start);\n\n }\n\n value = Integer.parseInt(data.substring(position + 1));\n\n } else {\n\n if (possiblePlus != '-') {\n\n raiseParseProblem(\n\n \"numeric modifier for macro should be +nnn or -nnn. This '\" + data + \" is not allowed, at position \" + t.start, t.start);\n\n }\n\n value = Integer.parseInt(data.substring(position));\n\n }\n\n pushIt(new SumTransformer(value));\n\n } catch (NumberFormatException nfe) {\n\n raiseParseProblem(\"unable to determine the numeric modifier for macro. Macro was '\" + data + \"' at position \" + t.start, t.start);\n\n }\n\n }", "private int toInt(String binary){\n if (bitToInt(binary.charAt(0)) == 0){\n return positiveBinToInt(binary);\n }\n else{\n return negativeBinaryToInt(binary);\n }\n }", "private void removeLeadingZeroes() {\n // Iterate the number until that appears a number greater than 0\n while (number.size() > 0 && number.get(number.size() - 1) == 0) {\n number.remove(number.size() - 1);\n }\n\n // If the list is empty so the number is zero\n if (number.isEmpty()) {\n number.add(0);\n isPositive = true;\n }\n }", "@Test(expectedExceptions = ParseException.class)\n\tpublic void testInvalidNumber() throws ParseException {\n\t\tparser(\"<%=-41a%>\").block();\n\t}", "private int convertCharNumtoNum(char charIn){\n\t\tint number = -1;\n\t\tint convertedNum = Character.getNumericValue(charIn);\n\t\t\n\t\tfor(int i: Seats.SEAT_NUMS){\n\t\t\tif(i == convertedNum){\n\t\t\t\tnumber = convertedNum; \n\t\t\t}\n\t\t}\n\t\treturn number;\n\t}", "public static int parseInt(final CharSequence s)\n {\n // no string\n if (s == null)\n {\n throw new NumberFormatException(\"null\");\n }\n\n // determine length\n final int length = s.length();\n\n if (length == 0)\n {\n throw new NumberFormatException(\"length = 0\");\n }\n\n // that is safe, we already know that we are > 0\n final int digit = s.charAt(0);\n\n // turn the compare around to allow the compiler and cpu\n // to run the next code most of the time\n if (digit < '0' || digit > '9')\n {\n return Integer.parseInt(s.toString());\n }\n\n int value = digit - DIGITOFFSET;\n\n for (int i = 1; i < length; i++)\n {\n final int d = s.charAt(i);\n if (d < '0' || d > '9')\n {\n throw new NumberFormatException(\"Not an int \" + s.toString());\n }\n\n value = ((value << 3) + (value << 1));\n value += (d - DIGITOFFSET);\n }\n\n return value;\n }", "private static int invertirNumero(int num) {\n\t\tint cifra, inverso = 0;\n\t\twhile (num > 0) {\n\t\t\tcifra = num % 10;\n\t\t\tinverso = cifra + inverso * 10;\n\t\t\tnum /= 10;\n\t\t}\n\t\treturn inverso;\n\t}", "public static int convertStringToInt(String input){\n\t if(input.length()==0)\n\t return 0;\n\t \n\t int m=(int)input.charAt(0)-48;\n\t int n=input.length();\n\t \n\t while(n!=1)\n\t {\n\t m*=10;\n\t n--;\n\t }\n\t \n\t return m+convertStringToInt(input.substring(1,input.length()));\n\t \n\t \n\t\t\n\t}", "abstract String convertEnglishNumber(String number);", "public static String replaceHtmlEscapeNumber(String str)\n\t{\n\t\tMatcher matcher = htmlNumber.matcher(str);\n\t\twhile (matcher.find())\n\t\t{\n\t\t int pos = matcher.start();\n\t\t int end = matcher.end();\n\t\t int number = Integer.parseInt(str.substring(pos+2, end-1));\n\t\t char ch = (char)number;\n\t\t str = str.substring(0, pos) + ch + str.substring(end);\n\t\t\tmatcher = htmlNumber.matcher(str);\n\t\t}\n\n\t return str;\n\t}", "public static void main(String[] args){\n\t\tSystem.out.println(atoi(\"-0\"));\n\t\tSystem.out.println(atoi(\"13434ag\"));\n\t\tSystem.out.println(atoi(\"-2343\"));\n\t\tSystem.out.println(atoi(\"-03435\"));\n\t\tSystem.out.println(atoi(\"-003435\"));//number starts with 0 is fine.\n\t\t\n\t}", "public int stringIntegerEncoding(String str) {\n if (!str.matches(\"[0-9-]+\"))\n return -1;\n\n char[] strArr = str.toCharArray();\n int number = (strArr[0] != '-') ? Character.getNumericValue(strArr[0]) : 0;\n for (int i =1; i < strArr.length; i++) {\n number = 10*number + Character.getNumericValue(strArr[i]);\n }\n return (strArr[0] == '-')? -number : number;\n }", "private static boolean isPositiveInteger(String s){\n\t\ttry{\n\t\t\t//If the token is an integer less than 0 return false\n\t\t\tif(Integer.parseInt(s) < 0){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t//If an exception occurs return false\n\t\tcatch(NumberFormatException e){\n\t\t\treturn false;\n\t\t}\n\t\t//otherwise return true\n\t\treturn true;\n\t}", "private static String removeInvalid(String str){\n char[] chrArr = str.toCharArray();\n int val = 0;\n for(int i = 0; i < chrArr.length; i++){\n if(chrArr[i] == '(') val ++;\n else if(chrArr[i] == ')') val --;\n if(val < 0) {\n chrArr[i] = '#';\n val = 0;\n }\n }\n val = 0;\n for(int i = chrArr.length - 1; i >= 0; i--){\n if(chrArr[i] == ')') val ++;\n else if(chrArr[i] == '(') val --;\n if(val < 0){\n chrArr[i] = '#';\n val = 0;\n }\n }\n StringBuilder sb = new StringBuilder();\n for(int i = 0; i < chrArr.length; i++){\n if(chrArr[i] != '#') sb.append(chrArr[i]);\n }\n return sb.toString();\n}", "ILoString removeFirst(int n);", "@Test\n public void decodeStringNegative()\n {\n final BinaryEncoder encoder = new BinaryEncoder(-8, 8, 1.0);\n assertThat(encoder.decode(\"0011\"), is(-5.0));\n }", "public static String removeNonNumeric(String data) {\n\t\tif (isEmpty(data)) return null;\n\n\t\tStringBuilder newVal = new StringBuilder();\n\t\tfor (char a : data.toCharArray()) {\n\t\t\tif (Character.isDigit(a) || (a == '.')) newVal.append(a);\n\t\t}\n\t\t\n\t\treturn newVal.toString();\n\t}", "public String covertIng(int num) {\n\t\tchar[] digits = new char[10];\r\n\t\t\r\n\t\tboolean sign = num >= 0 ? true : false;\r\n\t\tint idx = 0;\r\n\t\t\r\n\t\twhile(idx <digits.length){\r\n\t\t\tdigits[idx] = toChar(num % 10);\r\n\t\t\tnum = num /10;\r\n\t\t\tif(num== 0)\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tidx++;\r\n\t\t}\r\n\t\t\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tif(!sign)\r\n\t\t\tsb.append('-');\r\n\t\t\r\n\t\twhile(idx>=0){\r\n\t\t\tsb.append(digits[idx--]);\r\n\t\t}\r\n\t\t\r\n\t\treturn sb.toString();\r\n\t\t\r\n\t}", "public int atoi(String input) {\n\t\n\t\tfinal int maxDiv10 = Integer.MAX_VALUE / 10;\n\t\t\n\t\tif(input == null) {\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\tint len = input.length();\n\t\tint index = 0;\n\t\tint sign = 1;\n\t\tint res = 0;\n\t\t\n\t\t//if white space just continue\n\t\twhile(index < len && Character.isWhitespace(input.charAt(index))) {\n\t\t\tindex++;\n\t\t}\n\t\t\n\t\t//check if still in bounds\n\t\tif(index == len) {\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\t//signal \n\t\tif(input.charAt(index) == '-') {\n\t\t\tsign = -1;\n\t\t\t//continue\n\t\t\tindex++;\n\t\t}\n\t\telse if(input.charAt(index) == '+') {\n\t\t\tsign = 1;\n\t\t\tindex++;\n\t\t}\n\n\t\twhile(index < len && Character.isDigit(input.charAt(index))) {\n\t\t\tint digit = Character.getNumericValue(input.charAt(index));\n\t\t\t\n\t\t\t//if result greater than max or equal to it \n\t\t\tif(res > maxDiv10 || res == maxDiv10 && digit >= 8) {\n\t\t\t\treturn sign == 1 ? Integer.MAX_VALUE : Integer.MIN_VALUE;\n\t\t\t}\n\t\t\tres = res * 10 + digit;\n\t\t\tindex++;\n\t\t}\n\t\treturn sign * res;\n\t}", "private static String removegivenChar(String str,int pos) {\n\t\treturn str.substring(0,pos) + str.substring(pos+1);\r\n\t}", "void mo9058ad(String str, int i);", "public int digitOnly(String input) {\n int digit = 0;\n String digitInString= input.replaceAll(\"[^0-9]\", \"\");\n digit = Integer.valueOf(digitInString);\n return digit;\n }", "private static int digit(int b) {\n\t\tif (b >= '0' && b <= '9') return b - '0';\n\t\tthrow exceptionf(\"Not a digit: '%s'\" + escape((char) b));\n\t}", "public int myAtoi(String str) {\n\t\tboolean isStarted = false;\n\t\tint startPos = str.length();\n\t\tint endPos = str.length();\n\t\tif (str == null || str.length() == 0) {\n\t\t\treturn 0;\n\t\t}\n\t\tchar[] s = str.toCharArray();\n\t\tfor (int i = 0; i < s.length; i++) {\n\t\t\tif (s[i] == ' ') {\n\t\t\t\tif (!isStarted) {\n\t\t\t\t\tcontinue;\n\t\t\t\t} else {\n\t\t\t\t\tendPos = i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (isValidNumber(s[i])) {\n\t\t\t\tif (!isStarted) {\n\t\t\t\t\tisStarted = true;\n\t\t\t\t\tstartPos = i;\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (isValidChar(i, s[i], str)) {\n\t\t\t\tisStarted = true;\n\t\t\t\tstartPos = i;\n\t\t\t} else {\n\t\t\t\tif (!isStarted) {\n\t\t\t\t\treturn 0;\n\t\t\t\t} else {\n\t\t\t\t\tendPos = i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tString valueStr = str.substring(startPos, endPos);\n\t\tvalueStr = (valueStr.equals(\"+\") || valueStr.equals(\"-\") || valueStr.isEmpty()) ? \"0\" : valueStr;\n\t\treturn filterOverflow(Double.valueOf(valueStr));\n\t}", "void circulardecode()\n{\nfor(i=0;i<s.length();i++)\n{\nc=s.charAt(i);\nk=(int)c;\nif(k==90)\nk1=65;\nelse\nif(k==122)\nk1=97;\nelse\nk1=k+1;\nc1=caseconverter(k,k1);\nSystem.out.print(c1);\n}\n}", "@Test\n\tpublic void castNumbersFollowedByMultipleDifferentNonAlphapeticalCharacters() {\n\t\tString input = \"I have one~!@##$%^^&*( new test\";\n\n\t\tStringUtility stringUtility = new StringUtility();\n\t\tString actualCastedString = stringUtility.castWordNumberToNumber(input);\n\n\t\tString correctlyCastedString = \"I have 1~!@##$%^^&*( new test\";\n\n\t\tAssert.assertEquals(actualCastedString, correctlyCastedString);\n\t}", "void overflowDigits() {\n for (int i = 0; i < preDigits.length(); i++) {\n char digit = preDigits.charAt(i);\n // This could be implemented with a modulo, but compared to the main\n // loop this code is too quick to measure.\n if (digit == '9') {\n preDigits.setCharAt(i, '0');\n } else {\n preDigits.setCharAt(i, (char)(digit + 1));\n }\n }\n }", "static int beautifulBinaryString(String b) {\n int index = b.indexOf(\"010\", 0) ;\n int change = 0;\n while (index != -1) {\n change++;\n index = b.indexOf(\"010\", index + 3) ;\n }\n return change;\n }", "public int myAtoi(String str) {\n\n\t\t// 去除前后空格\n\t\tstr = str.trim();\n\n\t\tif (str.equals(\"\"))\n\t\t\treturn 0;\n\n\t\tString s = \"\";\n\t\tint symbol = -1;\n\n\t\tfor (int i = 0, j = 0; i < 12 && i < str.length(); i++) {\n\n\t\t\tif (i == 0) {\n\t\t\t\tchar ch = str.charAt(i);\n\n\t\t\t\tif (str.charAt(i) > '9' || str.charAt(i) < '0')\n\t\t\t\t\tif (str.charAt(i) != '+' && str.charAt(i) != '-')\n\t\t\t\t\t\treturn 0;\n\t\t\t}\n\n\t\t\tif (i > 1 && s.equals(\"\"))\n\t\t\t\treturn 0;\n\n\t\t\tif (str.charAt(i) <= '9' && str.charAt(i) >= '0') {\n\t\t\t\ts += str.charAt(i);\n\t\t\t\tif (symbol < 0)\n\t\t\t\t\tsymbol = i;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (i > j)\n\t\t\t\tbreak;\n\t\t\tj++;\n\t\t}\n\n\t\tif (s.equals(\"\"))\n\t\t\treturn 0;\n\n\t\tif (symbol > 0 && str.charAt(symbol - 1) == '-') {\n\t\t\ts = \"-\" + s;\n\t\t\tif (s.length() > 11 || Long.parseLong(s) <= Integer.MIN_VALUE)\n\t\t\t\treturn Integer.MIN_VALUE;\n\t\t\telse\n\t\t\t\treturn Integer.parseInt(s);\n\t\t}\n\n\t\tif (s.length() > 10 || Long.parseLong(s) >= Integer.MAX_VALUE) {\n\t\t\treturn Integer.MAX_VALUE;\n\t\t}\n\n\t\treturn Integer.parseInt(s);\n\t}", "public static String extractDigits(String src) {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tfor (int i = 0; i < src.length(); i++) {\n\t\t\tchar c = src.charAt(i);\n\t\t\tif (Character.isDigit(c)) {\n\t\t\t\tbuilder.append(c);\n\t\t\t}\n\t\t}\n\t\treturn builder.toString();\n\t}", "@Override\n\tpublic void afterTextChanged(Editable s) {\n\t\tString str = s.toString();\n\t\t/*\n\t\t * if (!str.matches(\"^[0-9]+$\")) { s.delete(s.length() - 1, s.length() -\n\t\t * 1); str = s.toString(); }\n\t\t */\n\t\ttry {\n\t\t\tShort.parseShort(str);\n\t\t} catch (Exception e) {\n\t\t\ts.clear();\n\t\t\tif (!str.equals(\"\")) {\n\t\t\t\ts.append(\"\" + (Short.MAX_VALUE - 1));\n\t\t\t}\n\t\t}\n\t}", "private static String removeKdigits(String num, int k) {\r\n if (num.length() == k || num.equals(\"\")) return \"0\";\r\n StringBuilder dp = new StringBuilder();\r\n int lastMinIdx = - 1;\r\n for (int i = k; i < num.length(); i++) {\r\n lastMinIdx = findSmallestDigit(lastMinIdx + 1, i, num);\r\n dp.append(num.charAt(lastMinIdx));\r\n }\r\n int idx = 0;\r\n while (idx < dp.length() && dp.charAt(idx) == '0') idx++; //find first non-zero index\r\n String result = dp.toString().substring(idx, dp.length());\r\n return result.length() == 0 ? \"0\" : result;\r\n// dp.toString().replaceFirst(\"^0+(?!$)\", \"\");\r\n }", "public BencodeValue decodeNumber() throws IOException {\n int c = this.getNextIndicator();\n if (c != 'i') {\n throw new BencodeFormatException(\"Number begins with an 'i', not '\" +\n (char)c + \"'\");\n }\n this.indicator = 0;\n\n c = this.read();\n if (c == '0') {\n c = this.read();\n if (c == 'e') {\n return new BencodeValue(BigInteger.ZERO);\n }\n else\n throw new BencodeFormatException(\"Number ends with an 'e', not '\" + (char)c + \"'\");\n }\n\n char[] chars = new char[256];\n int off = 0;\n\n if (c == '-') {\n c = this.read();\n if (c == '0')\n throw new BencodeFormatException(\"Negative zero not allowed\");\n chars[off] = '-';\n off++;\n }\n\n if (c < '1' || c > '9')\n throw new BencodeFormatException(\"Invalid Integer start '\"\n + (char)c + \"'\");\n chars[off] = (char)c;\n off++;\n\n c = this.read();\n int i = c - '0';\n while (i >= 0 && i <= 9) {\n chars[off] = (char)c;\n off++;\n c = read();\n i = c - '0';\n }\n\n if (c != 'e')\n throw new BencodeFormatException(\"Integer should end with 'e'\");\n String s = new String(chars, 0, off);\n return new BencodeValue(new BigInteger(s));\n }", "public int numDecodings(String s) {\n if(s==null||s.length()==0){\n return 0;\n }\n\n int n=s.length();\n int[] mem=new int[n+1];\n\n mem[n]=1;\n if(Integer.parseInt(s.substring(n-1))!=0){\n mem[n-1]=1;\n }\n\n for(int i=n-2;i>=0;i--){\n if(Integer.parseInt(s.substring(i,i+1))==0){\n continue;\n }\n if(Integer.parseInt(s.substring(i,i+2))<26){\n mem[i]=mem[i+1]+mem[i+2];\n }else{\n mem[i]=mem[i+1];\n }\n }\n\n return mem[0];\n }", "private String subStringToInteger(String quantity) {\n String substring = null;\n\n if (quantity.contains(\".\")) {\n int indexEnd = quantity.indexOf(\".\");\n substring = quantity.substring(0, indexEnd);\n }\n\n return substring == null ? quantity : substring;\n }" ]
[ "0.6449296", "0.6166135", "0.6045169", "0.6002516", "0.5725446", "0.5681347", "0.5680899", "0.557619", "0.55728734", "0.5572179", "0.55398005", "0.5525399", "0.55167896", "0.55160916", "0.54909617", "0.54852927", "0.5484961", "0.547813", "0.54601204", "0.5459406", "0.54577243", "0.5420778", "0.5418029", "0.54166436", "0.5400526", "0.53978264", "0.5388943", "0.5379592", "0.53780097", "0.537201", "0.5369655", "0.53603506", "0.5339678", "0.5331676", "0.5327337", "0.5322978", "0.5311777", "0.53018224", "0.5284422", "0.5281282", "0.5281137", "0.5268781", "0.5266159", "0.526162", "0.5244487", "0.5236647", "0.52072495", "0.51967055", "0.51955074", "0.5188266", "0.5169529", "0.5168751", "0.5163582", "0.51594895", "0.5152555", "0.51319516", "0.513119", "0.51241446", "0.5103913", "0.5096286", "0.5093878", "0.5074575", "0.5073432", "0.5060032", "0.50444996", "0.5028226", "0.5027608", "0.50243783", "0.5018271", "0.50096", "0.5004798", "0.50025606", "0.49971044", "0.4996685", "0.4989483", "0.4985057", "0.49811068", "0.49668837", "0.49637878", "0.49600068", "0.4955588", "0.49555746", "0.4954772", "0.4952375", "0.49440178", "0.4940232", "0.4937123", "0.49308562", "0.4930791", "0.49296185", "0.49290034", "0.492699", "0.49262235", "0.4923609", "0.49214283", "0.491638", "0.4915648", "0.49148473", "0.49138585", "0.4913794", "0.49134707" ]
0.0
-1
Checks the string to see if it begins with the correct suffix for the given number, e.g. 1st, 102nd, 13th
public static boolean parseSuffix(StringBuilder sb, int num) { if(sb.length() < 2) return false; boolean ret; if(num % 10 == 1 && num / 10 != 1) ret = sb.charAt(0) == 's' && sb.charAt(1) == 't'; else if(num % 10 == 2 && num / 10 != 1) ret = sb.charAt(0) == 'n' && sb.charAt(1) == 'd'; else if(num % 10 == 2 && num / 10 != 1) ret = sb.charAt(0) == 'r' && sb.charAt(1) == 'd'; else ret = sb.charAt(0) == 't' && sb.charAt(1) == 'h'; if(ret) sb.delete(0, 2); return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean prefixMatched(long number){\r\n String numberString = \"\"+number;\r\n// String preFixSubstring = numberString.substring(0,2);\r\n if ((numberString.startsWith(\"4\")) || (numberString.startsWith(\"5\"))\r\n || (numberString.startsWith(\"6\")) || (numberString.startsWith(\"37\")))\r\n return true;\r\n return false;\r\n }", "private boolean startsWithDigit(String s) {\n return Pattern.compile(\"^[0-9]\").matcher(s).find();\n\t}", "private static boolean startsWithNumber(final String t, final int len,\n\t\t\tfinal String... str) {\n\t\tint j = 0;\n\t\twhile (j < len && isDigit(t.charAt(j))) {\n\t\t\tj++;\n\t\t}\n\t\tif (j != 0) {\n\t\t\tfor (String s : str) {\n\t\t\t\tif (t.startsWith(s, j)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean useSuffixPatternMatch()\n/* */ {\n/* 590 */ return this.suffixPatternMatch;\n/* */ }", "public static boolean prefixMatched(long number) {\r\n\t\tString num = Long.toString(number);\r\n\t\tint[] prefix = {4, 5, 6, 37};\t\t\t\t\t// lista prefixa za uporedbu\r\n\t\tfor (int i = 0; i < prefix.length; i++) {\r\n\t\t\tif (Long.valueOf(num.substring(0, 2)) == prefix[i]) {\t// uslov za dvocifreni prefix\r\n\t\t\t\treturn true;\r\n\t\t\t} \r\n\t\t\tif (Long.valueOf(num.substring(0, 1)) == prefix[i]) {\t// uslov za jednocifreni prefix\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 String getNumberSuffix(int num) {\n\t\t\t\tString s = String.valueOf(num);\n\t\t\t\tif (s.endsWith(\"0\")) { return \"st\"; }\n\t\t\t\telse if (s.endsWith(\"1\")) { return \"st\"; }\n\t\t\t\telse if (s.endsWith(\"2\")) { return \"nd\"; }\n\t\t\t\telse if (s.endsWith(\"3\")) { return \"rd\"; }\n\t\t\t\telse if (s.endsWith(\"10\")) { return \"th\"; }\n\t\t\t\telse if (s.endsWith(\"11\")) { return \"th\"; }\n\t\t\t\telse if (s.endsWith(\"12\")) { return \"th\"; }\n\t\t\t\telse if (s.endsWith(\"13\")) { return \"th\"; }\n\t\t\t\telse { return \"th\"; }\n }", "public boolean endsWith(String suffix) {\n/* 371 */ return this.m_str.endsWith(suffix);\n/* */ }", "public static boolean matchPrefix(long number, int d) { \n\t\t\t\treturn returnPrefix(number, numberOfDigits(d)) == d; \n\t\t\t}", "private static boolean stringStartsWith(String string, String prefix){\n for(int i=0; i < prefix.length(); i++){\n if(string.charAt(i) != prefix.charAt(i)){\n return false;\n }\n }\n return true;\n }", "public static void checkSuffix(Token t) {\r\n\t\tIterator<String> it = WordLists.lastNameSuffixes().iterator();\r\n\t\t\r\n\t\twhile(it.hasNext()) {\r\n\t\t\tString suffix = it.next();\r\n\t\t\t\r\n\t\t\tif(t.getName().equalsIgnoreCase(suffix)) {\r\n\t\t\t\tt.getFeatures().setSuffix(true);\r\n\t\t\t\treturn;\r\n\t\t\t}\t\r\n\t\t}\r\n\t}", "boolean isPrefix(String potentialPrefix);", "public boolean acceptable(String s){\n\t\tCharacter first = s.charAt(0);\n\t\tCharacter last = s.charAt(s.length() - 1);\n\t\t\n\t\treturn (super.acceptable(s) && !Character.isDigit(first) && Character.isDigit(last));\n\t}", "public static boolean determineSuffixtype(String suffix){\n\t\t/*\n\t\t * First character\n\t\t * True: vowel\n\t\t * False: consonant\n\t\t */\n\t\tString firstchar = suffix.substring(0, 1);\n\t\tif(isVowel(firstchar)){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "boolean truncateSuffix(final long lastIndexKept);", "private boolean checkSoThang(String soThang){\n String pattern = \"\\\\d+\"; \n return soThang.matches(pattern);\n }", "String getSuffix();", "public boolean startsWith(String prefix, int toffset) {\n/* 289 */ return this.m_str.startsWith(prefix, toffset);\n/* */ }", "public boolean startsWith(String prefix) {\n/* 333 */ return this.m_str.startsWith(prefix);\n/* */ }", "public boolean useRegisteredSuffixPatternMatch()\n/* */ {\n/* 610 */ return this.registeredSuffixPatternMatch;\n/* */ }", "public static void main(String[] args) {\n\n String str = \"abXYabc\"; //abXYabc //prefix means first couple of letters\n int n = 2; // 3\n // abX Yabc // rest of the string means word after the prefix\n\n String prefix = str.substring(0,n); // 0, 2 //here we need multiple characters\n String remaining = str.substring(n); //XYabc\n\n System.out.println(remaining.contains(prefix));\n\n\n }", "public boolean endsWith(\n String... suffix\n ) {\n \t// TODO optimize\n int offset = size() - suffix.length;\n if (offset < 0) return false;\n for(\n int index = 0;\n index < suffix.length;\n index++\n ) {\n if(!suffix[index].equals(this.getSegment(offset+index).toClassicRepresentation())) return false;\n }\n return true; \n }", "private static boolean isSuffix_r(String text, String pattern)\n {\n if (pattern.length() == 0)\n return true;\n else if (pattern.length() > text.length())\n return false;\n else if (pattern.charAt(pattern.length() - 1) != text.charAt(text.length() - 1))\n return false;\n else\n return isSuffix_r(text.substring(0, text.length() - 1), pattern.substring(0, pattern.length() - 1));\n }", "static boolean isSubstringUsingIndexOf(String big, String small) {\n return big.contains(small);\n }", "public boolean mixStart(String str) {\n if (str.length() < 3) return false;\n return (str.substring(1,3).equals(\"ix\"));\n}", "private int nextSuffix() {\r\n\t\t\tint unsignedByte = suffixes[index] & 0xFF;\r\n\r\n\t\t\tint suffix = unsignedByte + 1;\r\n\t\t\tsuffix += (256 * (offset));\r\n\r\n\t\t\tif (index < 255) {\r\n\t\t\t\tindex++;\r\n\t\t\t} else {\r\n\t\t\t\tindex = 0;\r\n\t\t\t\toffset++;\r\n\t\t\t}\r\n\t\t\treturn suffix;\r\n\t\t}", "public static String getDateSuffix(int date)\r\n\t{\r\n\t\tswitch(date)\r\n\t\t{\r\n\t\tcase 1:\r\n\t\tcase 21:\r\n\t\tcase 31:\r\n\t\t\treturn \"st\";\r\n\t\tcase 2:\r\n\t\tcase 22:\r\n\t\t\treturn \"nd\";\r\n\t\tcase 3:\r\n\t\tcase 23:\r\n\t\t\treturn \"rd\";\r\n\t\t}\r\n\t\treturn \"th\"; //if none of the above\r\n\t\t\t\t\t\r\n\t}", "private static boolean isDigitFollowing(String s, int index) {\n while (index < s.length()) {\n char c = s.charAt(index);\n if (c == ' ') {\n index++;\n continue;\n }\n if (Character.isDigit(c)) {\n return true;\n }\n return false;\n }\n return false;\n }", "void setSuffix(String suffix);", "public String validateNumberString() {\n String tempNumber = numberString;\n int start = 0;\n Pattern pattern = Pattern.compile(\"\\\\D+\");\n Matcher matcher = pattern.matcher(tempNumber);\n if (isZero()) {\n return \"0\";\n }\n if (isNegative()) {\n start++;\n }\n if (matcher.find(start)) {\n throw new IllegalArgumentException(\"Wrong number: \" + tempNumber);\n }\n pattern = Pattern.compile(\"([1-9][0-9]*)\");\n matcher.usePattern(pattern);\n if (!matcher.find(0)) {\n throw new IllegalArgumentException(\"Wrong number: \" + tempNumber);\n }\n return tempNumber.substring(matcher.start(), matcher.end());\n }", "private static boolean startsWith(final String source, final String prefix) {\n return prefix.length() <= source.length() && source.regionMatches(true, 0, prefix, 0, prefix.length());\n }", "public void setPositiveSuffix(String newValue) {\n positiveSuffix = newValue;\n posSuffixPattern = null;\n }", "static int isSubstring(String s1, String s2) {\n int m = s1.length();\n int n = s2.length();\n\n // A loop to slide pat[] one by one\n for (int i = 0; i <= n - m; i++) {\n int j;\n\n // For current index i, check for pattern match\n for (j = 0; j < m; j++) {\n if (s2.charAt(i + j) != s1.charAt(j)) {\n break;\n }\n }\n\n if (j == m) {\n return i;\n }\n }\n return -1;\n }", "static void separateNumbers(String s) {\n \tlong flag = 0;\n \tif(s.charAt(0) == '0') {\n \t\tflag = -1;\n \t}\n\t\tif (flag == 0) {\n\t\t\tfor (int length = 1; length * 2 <= s.length(); length++) {\n\t\t\t\tlong firstNumber = Long.parseLong(s.substring(0, length));\n\n\t\t\t\tStringBuilder sequence = new StringBuilder();\n\t\t\t\tlong number = firstNumber;\n\t\t\t\twhile (sequence.length() < s.length()) {\n\t\t\t\t\tsequence.append(number);\n\t\t\t\t\tnumber++;\n\t\t\t\t}\n\t\t\t\tif (sequence.toString().equals(s)) {\n\t\t\t\t\tflag = firstNumber;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n \tif(flag <= 0 ) {\n \t\tSystem.out.println(\"NO\");\n \t}\n \telse {\n \t\tSystem.out.println(\"YES \"+flag);\n \t}\n \t\n }", "public static boolean isNumber(String string) {\n if (string == null || string.isEmpty()) {\n return false;\n }\n int i = 0;\n if (string.charAt(0) == '-') {\n if (string.length() > 1) {\n i++;\n } else {\n return false;\n }\n }\n for (; i < string.length(); i++) {\n if (!Character.isDigit(string.charAt(i))) {\n return false;\n }\n }\n return true;\n}", "public static boolean less (int a, int b, String s) {\n int N = s.length();\n String v;\n String w;\n \n // construct suffix to compare\n if (a > 0) \n v = s.substring(a,N) + s.substring(0, a);\n else\n v = s.substring(a,N);\n \n // construct suffix to compare\n if (b > 0) \n w = s.substring(b,N) + s.substring(0, b);\n else\n w = s.substring(b,N);\n \n // is v less than v?\n if (v.compareTo(w) < 0)\n return true;\n else \n return false;\n }", "public static boolean endsWith(String value, String suffix) {\n if ((value == null) || (suffix == null)) {\n return false;\n }\n\n return value.endsWith(suffix);\n }", "public boolean prefixmatch(long cnumber, int d) {\n return getprefx(cnumber, thesize(d)) == d;\n }", "public static boolean test (String s){\n\t\t// This pattern tests whether string s contains 3 numbers.\n\t Pattern pattern = Pattern.compile(\"\\\\d{3}\");\n\t Matcher matcher = pattern.matcher(s);\n\t if (matcher.find()){\n\t return true; \n\t } \n\t return false; \n\t }", "@Test\n public void testStartsWith() {\n chkInt(\"startsWith('a')\", false);\n chkLong(\"startsWith('a')\", false);\n chkNumber(\"startsWith('a')\", false);\n chkBoolean(\"startsWith('a')\", false);\n chkString(\"startsWith('aaZ')\", true, \"'aaZb'\");\n chkDate(\"startsWith('a')\", false);\n chkList(\"startsWith('a')\", false, \"[]\");\n chkEnum(\"startsWith('a')\", false);\n }", "private static boolean stringContainsNumber( String userName ) {\n return Pattern.compile( \"[0-9]\" ).matcher( userName).find();\n }", "public boolean startsWith(XMLString prefix) {\n/* 353 */ return this.m_str.startsWith(prefix.toString());\n/* */ }", "public String getAlternativeOrderNumberSuffix();", "private static boolean startsWith(String str, String token) {\n return str.startsWith(token)\n && (str.length() == token.length()\n || Character.isUpperCase(str.charAt(token.length())));\n }", "public static int[] suffixArray(CharSequence S) {\n int n = S.length();\n Integer[] order = new Integer[n];\n for (int i = 0; i < n; i++)\n order[i] = n - 1 - i;\n\n // stable sort of characters\n Arrays.sort(order, (a, b) -> Character.compare(S.charAt(a), S.charAt(b)));\n\n int[] sa = new int[n];\n int[] classes = new int[n];\n for (int i = 0; i < n; i++) {\n sa[i] = order[i];\n classes[i] = S.charAt(i);\n }\n // sa[i] - suffix on i'th position after sorting by first len characters\n // classes[i] - equivalence class of the i'th suffix after sorting by\n // first len characters\n\n for (int len = 1; len < n; len *= 2) {\n int[] c = classes.clone();\n for (int i = 0; i < n; i++) {\n // condition sa[i - 1] + len < n simulates 0-symbol at the end\n // of the string\n // a separate class is created for each suffix followed by\n // simulated 0-symbol\n classes[sa[i]] = i > 0 && c[sa[i - 1]] == c[sa[i]] && sa[i - 1] + len < n\n && c[sa[i - 1] + len / 2] == c[sa[i] + len / 2] ? classes[sa[i - 1]] : i;\n }\n // Suffixes are already sorted by first len characters\n // Now sort suffixes by first len * 2 characters\n int[] cnt = new int[n];\n for (int i = 0; i < n; i++)\n cnt[i] = i;\n int[] s = sa.clone();\n for (int i = 0; i < n; i++) {\n // s[i] - order of suffixes sorted by first len characters\n // (s[i] - len) - order of suffixes sorted only by second len\n // characters\n int s1 = s[i] - len;\n // sort only suffixes of length > len, others are already sorted\n if (s1 >= 0)\n sa[cnt[classes[s1]]++] = s1;\n }\n }\n return sa;\n }", "private static boolean isLegalIdentifier(String str) {\n if (\"\".equals(str)) {\n return false;\n }\n if (str.charAt(0) >= '0' & str.charAt(0) <= '9') {\n return false;\n }\n\n return str.matches(\"^\\\\w+$\");\n }", "public final boolean isValidPrefix(String prefix) {\n return prefix.matches(\"^[0-9a-zA-Z]*$\") && prefix.length() <= 20;\n }", "public boolean startsWith(XMLString prefix, int toffset) {\n/* 313 */ return this.m_str.startsWith(prefix.toString(), toffset);\n/* */ }", "private static boolean validateString(String string) {\n Pattern pattern = Pattern.compile(\"^([1-9]+[0-9]?|100)\\\\s([1-9]+\" +\n \"[0-9]?|100)\\\\s([1-9]+[0-9]?|100)$\");\n Matcher matcher = pattern.matcher(string);\n return matcher.matches();\n }", "public static boolean prefixMatched(long number, int d)\n\t{\n\t\tif(getPrefix(number, d) == 4 || getPrefix(number, d) == 5)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse if(getPrefix(number, d) == 3)\n\t\t{\n\t\t\tif(getPrefix(number, d + 1) == 37)\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false; \n\t}", "public static boolean checkOccurrence(String toCheck) {\n if (!toCheck.equals(\"\")) {\n String firstChar = \"\" + toCheck.charAt(0);\n return firstChar.matches(\".*[A-Z].*\");\n }\n return false;\n }", "public int mo131899b(String str) {\n return super.lastIndexOf(str);\n }", "public static String m20348g(String str) {\n if (\".cnt\".equals(str)) {\n return \".cnt\";\n }\n if (\".tmp\".equals(str)) {\n return \".tmp\";\n }\n return null;\n }", "public static boolean suffixExpression(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"suffixExpression\")) return false;\n if (!nextTokenIs(b, \"<suffix expression>\", MINUS_MINUS, PLUS_PLUS)) return false;\n boolean r;\n Marker m = enter_section_(b, l, _LEFT_, SUFFIX_EXPRESSION, \"<suffix expression>\");\n r = consumeToken(b, MINUS_MINUS);\n if (!r) r = consumeToken(b, PLUS_PLUS);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "public boolean validateName(String input)//true if valid\n\t{\n\t\t//loop through string verifying for numbers\n\t\tfor(int i = 0;i<input.length(); i++)\n\t\t{\n\t\t\tchar c = input.charAt(i);\n\t\t\t\n\t\t\tif(!Character.isAlphabetic(c))\n\t\t\t{\n\t\t\t if(c == '-' || c == ' ')\n\t\t\t\t{\n\t\t\t\treturn true;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t else return false;\n\t\t\t}\t\n\t\t\t\n\t\t}\n\t\treturn true;\n\t}", "private boolean isNotNumeric(String s) {\n return s.matches(\"(.*)\\\\D(.*)\");\n }", "public void testNumberID() {\n String testID = generator.generatePrefixedIdentifier(\"123\");\n assertNotNull(testID);\n assertTrue(testID.matches(\"_123\" + ID_REGEX));\n }", "public static boolean isInt(String s){\n boolean flag = true;\n flag = ((s.charAt(0) >= '0' && s.charAt(0) <= '9') || s.charAt(0) == '-' || s.charAt(0) == '+' );\n int i = 1;\n while(flag && i < s.length()){\n flag = (s.charAt(i) >= '0' && s.charAt(i) <= '9' );\n i++;\n }\n return flag;\n }", "private static boolean areNumbers(String s) {\n boolean isADigit = false;//only changed once everything has been checked\n //checks if places 0-2 are numbers and 3 is a \"-\"\n for(int i = 0; i < 3; i++) {\n if(Character.isDigit(s.charAt(i)) && s.charAt(3) == '-') {\n isADigit = true;\n }\n }\n //checks if places 4-5 are numbers and 6 is a \"-\"\n for(int i = 4; i < 6; i++) {\n if(Character.isDigit(s.charAt(i)) && s.charAt(6) == '-') {\n isADigit = true;\n }\n }\n //checks if places 7-10 are numbers\n for(int i = 7; i < 11; i++) {\n if(Character.isDigit(s.charAt(i))) {\n isADigit = true;\n }\n }\n return isADigit;\n }", "public static boolean checkStringPile(String[] seq, int upperBound, String monthName ) {\n \tfor (int i = 0; i<upperBound; i++) {\n \t\tif (seq[i] == monthName) { return true;}\n \t}\n \treturn false;\n }", "public static void main(String[] args) {\n System.out.println(\"1. \" + StringTools.isAlpha(\"Happy\"));\n System.out.println(\"2. \" + StringTools.isAlpha(\"Happy-Happy\"));\n System.out.println(\"3. \" + StringTools.isAlpha(\"Happy-Happy\", '-'));\n System.out.println(\"\");\n System.out.println(\"1. \" + StringTools.isNumeric(\"09368955866\"));\n System.out.println(\"2. \" + StringTools.isNumeric(\"0936-895-5866\"));\n System.out.println(\"3. \" + StringTools.isNumeric(\"0936/895/5866\", '/'));\n System.out.println(\"\");\n System.out.println(\"1. \" + StringTools.isAlpha(\"HappyDay\"));\n System.out.println(\"2. \" + StringTools.isAlpha(\"#Happy-Day\"));\n System.out.println(\"3. \" + StringTools.isAlpha(\"Happy-Happy\", '#', '-'));\n // alpha space\n System.out.println(\"1. \" + StringTools.isAlpha(\"asd\", ' '));\n }", "private String checkName(String filename,int start_off){\n String name=FilenameUtil.setForwardSlash(filename);\n\n // check that it is a possibility\n if(name==null || name.length()<=0) return null;\n if(name.indexOf(matchname)<0) \n if( name.indexOf( matchname1) < 0) return null;\n if(! name.endsWith(\".class\") ) return null;\n if(name.indexOf(\"$\")>name.lastIndexOf(\"/\")) return null;\n \n // chop off the class part\n name=name.substring(start_off,name.length()-6);\n name=name.replace('/','.');\n \n return name;\n }", "public int compareWithString(String str) {\n if(this.value.length() > str.length())\n return 0;\n String subString = str.substring(0, this.value.length());\n // if it's prefix then return the length of match\n if(subString.equals(this.value))\n return this.value.length();\n // not match return 0\n else\n return 0;\n }", "private boolean isValid(String s, boolean hasDot) {\n\t if (s.length() > 0 && (s.charAt(0) == '+' || s.charAt(0) == '-')) {\n\t \ts = s.substring(1);\n\t }\n\t \n\t if (s.isEmpty() || s.equals(\".\")) {\n\t \treturn false;\n\t }\n\t \n\t for (int i = 0; i<s.length(); i++) {\n\t \tchar c = s.charAt(i);\n\t if (c == '.') {\n\t \t//can not have a second dot\n\t if (hasDot) {\n\t \treturn false;\n\t }\t \n\t hasDot = true;\n\t } else if (!('0' <= c && c <= '9')) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t}", "public void setSuffixPatternMatch(boolean suffixPatternMatch)\n/* */ {\n/* 583 */ this.suffixPatternMatch = suffixPatternMatch;\n/* */ }", "public boolean startsWith(String prefix) {\n char [] words=prefix.toCharArray();\n CharTree t=root;\n for (char c : words) {\n t=t.next[c-97];\n if(t==null)return false;\n }\n return true;\n }", "public void setSuffix(java.lang.String suffix) {\r\n this.suffix = suffix;\r\n }", "public static int parsingDelayMonth(String[] s){\n String[] month ={\"gen\",\"feb\",\"mar\",\"apr\",\"mag\",\"giu\",\"lug\",\"ago\",\"set\",\"ott\",\"nov\",\"dic\"};\n //Debug\n /*String temp=null;\n if(s.length!=0)\n temp=s[0];\n else\n temp=\"x\";*/\n for (int i=0;i<month.length;i++){\n if(month[i].equals(s[0]))\n return (i+1);\n }\n return -1;\n }", "public boolean startWith(String prefix) {\n boolean result = true;\n char[] prefixChar = prefix.toCharArray();\n if (prefixChar.length > data.length) {\n return false;\n }\n for (int i = 0; i < prefixChar.length; i++) {\n if (prefixChar[i] != data[i]) {\n result = false;\n break;\n }\n }\n return result;\n }", "public boolean startsWithM(String sequence) {\n if (sequence.length() > 0 && sequence.substring(0, 1).equals(\"M\")) {\n return true;\n }\n return false;\n }", "private static boolean isNumber(String value){\r\n\t\tfor (int i = 0; i < value.length(); i++){\r\n\t\t\tif (value.charAt(i) < '0' || value.charAt(i) > '9')\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private boolean checkGia(String giaPhong){\n String pattern =\"\\\\d+([.]\\\\d)?\";\n return giaPhong.matches(pattern);\n }", "@Override\n\tpublic void checkSuffix(String suffix) {\n\t\tHttpUtils.checkToken(suffix,\"Suffix '%s' is not a valid token\",suffix);\n\t}", "public boolean unitNameHasPrefix(String unitNameWithPrefix, boolean constrainBasedOnValidUnitNames){\n return findFirstPrefixPairMatches(unitNameWithPrefix, constrainBasedOnValidUnitNames) != NO_PREFIX_MATCH_ARRAY;\n }", "public static int findAbbreviation(String abbreviation) {\n\t\tint saveCount = lastSaveSelector.getItemCount();\n\t\tfor (int i = 0; i < saveCount; i++) {\n\t\t\tString save = lastSaveSelector.getItemAt(i);\n\t\t\tif (save.startsWith(abbreviation, save.indexOf('-') + 1))\n\t\t\t\treturn i;\n\t\t}\n\t\treturn -1;\n\t}", "public static Boolean Int(String arg){\n\t\tif(arg == arg.replaceAll(\"\\\\D\",\"\")){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public void setSuffix(java.lang.String suffix) {\n this.suffix = suffix;\n }", "public static boolean capicuaOrNot(String theNumber){\r\n\r\n //more local variables\r\n int counter=0, size=0;\r\n String newNumber=\"\";\r\n boolean yesOrNo=false;\r\n\r\n //process to determine wether it's capicúa or not\r\n size=theNumber.length()-1;\r\n //System.out.println(theNumber + size);\r\n for(counter=size; counter>=0; counter--){\r\n newNumber+=theNumber.charAt(counter);\r\n }//end of for loop\r\n System.out.println(newNumber);\r\n if(newNumber.equals(theNumber)){\r\n yesOrNo=true;\r\n }\r\n return yesOrNo;\r\n\r\n }", "public static boolean isValid(long number) {\r\n int length = getSize(number);\r\n if(!(length >=13 && length <= 16))\r\n return false;\r\n else if (!(prefixMatched(number)))\r\n return false;\r\n int sumOfDouble = sumOfDoubleEvenPlace(number);\r\n int sumOfOdd = sumOfOddPlace(number);\r\n if ((sumOfOdd + sumOfDouble) % 10 == 0)\r\n return true;\r\n return false;\r\n }", "private String isValid(String number)\n {\n\tif(number.matches(\"\\\\d+\")) return number;\n\treturn null;\n }", "private static boolean isKata(String s) {\n\t\tchar c = s.charAt(0);\n\t\tif (c < '0' || c > '9') return true;\n\t\t\n\t\ttry {\n\t\t\tInteger.parseInt(s);\n\t\t\treturn false;\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn true;\n\t\t}\n\t}", "private String extractCompletedSuffix(String word, String prefix) {\n\t\tif (word.startsWith(prefix)) {\n\t\t\treturn word.substring(prefix.length());\n\t\t} else {\n\t\t\tthrow new RuntimeException(\"Invalid prefix (word: \" + word + \n\t\t\t\t\t\t\t\t\t\t\" prefix:\" + prefix + \")\");\n\t\t} \n\t}", "private boolean checkForNumber(String field) {\n\n\t\tPattern p = Pattern.compile(\"[0-9].\");\n\t\tMatcher m = p.matcher(field);\n\n\t\treturn (m.find()) ? true : false;\n\t}", "public static double prefixString(String s1, String s2) {\n String[] a1 = s1.split(\"\\\\.\");\n String[] a2 = s2.split(\"\\\\.\");\n\n int min = Math.min(a1.length, a2.length);\n int max = Math.max(a1.length, a2.length);\n int cnt = 0;\n\n for (int i = 0; i < min; ++i) {\n if (a1[i].equals(a2[i])) {\n cnt += 1;\n } else {\n break;\n }\n }\n return formatDouble((double) cnt / min);\n }", "boolean hasVersionNamePrefix();", "private boolean alphabCheck(String first, String second) {\n\t\tif (first.length() == 1 || second.length() == 1) {\n\t\t\tif (first.compareTo(second) < 0) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif (first.substring(0, 1).compareTo(second.substring(0,1)) < 0) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (first.substring(0, 1).compareTo(second.substring(0,1)) == 0) {\n\t\t\t\t\treturn alphabCheck(first.substring(1, first.length()),second.substring(1,second.length()));\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public static boolean startsWith(final String string, final String sub) {\n final int sl = string.length(), tl = sub.length();\n if(tl > sl) return false;\n for(int t = 0; t < tl; t++) {\n if(!equals(string.charAt(t), sub.charAt(t))) return false;\n }\n return true;\n }", "@Test\r\n public void deriveFromIncSuffixExpressionWithSIUnits() throws IOException {\r\n //example with siunit literal\r\n check(\"4km++\", \"(int,km)\");\r\n }", "public char get_floating_suffix();", "public static String getSuffix(final String link) {\n String strippedLink = link;\n try {\n // Try to strip the query string, if any, to get the correct suffix:\n URL url = new URL(link);\n if ((url.getQuery() != null) && (url.getQuery().length() < (link.length() - 1))) {\n strippedLink = link.substring(0, link.length() - url.getQuery().length() - 1);\n }\n } catch (MalformedURLException e) {\n // Don't report this error, since this getting the suffix is a non-critical\n // operation, and this error will be triggered and reported elsewhere.\n }\n // First see if the stripped link gives a reasonable suffix:\n String suffix;\n int strippedLinkIndex = strippedLink.lastIndexOf('.');\n if ((strippedLinkIndex <= 0) || (strippedLinkIndex == (strippedLink.length() - 1))) {\n suffix = null;\n } else {\n suffix = strippedLink.substring(strippedLinkIndex + 1);\n }\n if (!ExternalFileTypes.getInstance().isExternalFileTypeByExt(suffix)) {\n // If the suffix doesn't seem to give any reasonable file type, try\n // with the non-stripped link:\n int index = link.lastIndexOf('.');\n if ((index <= 0) || (index == (link.length() - 1))) {\n // No occurrence, or at the end\n // Check if there are path separators in the suffix - if so, it is definitely\n // not a proper suffix, so we should give up:\n if (strippedLink.substring(strippedLinkIndex + 1).indexOf('/') >= 1) {\n return \"\";\n } else {\n return suffix; // return the first one we found, anyway.\n }\n } else {\n // Check if there are path separators in the suffix - if so, it is definitely\n // not a proper suffix, so we should give up:\n if (link.substring(index + 1).indexOf('/') >= 1) {\n return \"\";\n } else {\n return link.substring(index + 1);\n }\n }\n } else {\n return suffix;\n }\n }", "@Test\r\n public void testInvalidDecSuffixExpressionWithSIUnits() throws IOException {\n checkError(\"varS--\", \"0xA0171\");\r\n }", "public static boolean isNumber(String s) \r\n{ \r\n for (int i = 0; i < s.length(); i++) \r\n if (Character.isDigit(s.charAt(i)) \r\n == false) \r\n return false; \r\n\r\n return true; \r\n}", "public int isPrefixOfWord_mysolution(String sentence, String searchWord) {\n String[] words = sentence.split(\" \");\n for (int i = 0; i < words.length; i++) {\n String word = words[i];\n if (word.startsWith(searchWord)) {\n return i + 1;\n }\n }\n return -1;\n }", "public void setSuffix(String suffix) {\n this.suffix = suffix;\n }", "private String shortPrefix(String name) {\r\n StringBuilder b = new StringBuilder();\r\n String[] splits = name.split(\"_\");\r\n for (int i = 0; i < splits.length; ++i) {\r\n if (splits[i].length() > 0) {\r\n b.append(splits[i].charAt(0));\r\n }\r\n }\r\n if (b.length() < 3) {\r\n b.append(Integer.toString(name.length() % 10));\r\n }\r\n return b.toString().toLowerCase();\r\n }", "private boolean isValidBSN(String BSN) {\n int candidate;\n try {\n candidate = Integer.parseInt(BSN);\n } catch (NumberFormatException e) {\n return false;\n }\n\n if (candidate <= 9999999 || candidate > 999999999) {\n return false;\n }\n int sum = -1 * candidate % 10;\n\n for (int multiplier = 2; candidate > 0; multiplier++) {\n int val = (candidate /= 10) % 10;\n sum += multiplier * val;\n }\n\n return sum != 0 && sum % 11 == 0;\n\n }", "public boolean endsLy(String str) {\r\n return str.length() > 1 ? str.substring(str.length() - 2, str.length()).equals(\"ly\") : false;\r\n }", "public boolean startHi(String str) {\n if (str.length() < 2) return false;\n \n String front;\n if (str.length() == 2) {\n front = str;\n } else {\n front = str.substring(0, 2);\n }\n \n return (front.equals(\"hi\"));\n \n}", "void howManyStartsWithPrefix(String str) {\n dictionary.add(str);\n int count = 0;\n for (String word : words) {\n if (word.length() >= str.length()) {\n boolean isPrefix = true;\n for (int i = 0; i < str.length(); i++) {\n if (word.charAt(i) != str.charAt(i)) {\n isPrefix = false;\n break;\n }\n }\n if (isPrefix) {\n count++;\n }\n\n }\n }\n assertEquals(count, trie.howManyStartsWithPrefix(str));\n }", "private boolean checkNgay(String ngaySD){\n String pattern=\"\\\\d{4}-\\\\d{1,2}-\\\\d{1,2}\";\n return ngaySD.matches(pattern);\n }", "public boolean O00000oo(String str) {\r\n return O000000o(str.toLowerCase(Locale.ENGLISH)) > -1 || O000000o(str.toUpperCase(Locale.ENGLISH)) > -1;\r\n }" ]
[ "0.6443758", "0.6142376", "0.6092948", "0.60453326", "0.58758247", "0.58657724", "0.5793582", "0.5663384", "0.56449634", "0.56297493", "0.55456495", "0.5536934", "0.5534589", "0.5505349", "0.54161096", "0.5406319", "0.5391966", "0.5381724", "0.5377177", "0.5346346", "0.5328403", "0.5303402", "0.52963734", "0.5289302", "0.5228733", "0.52244925", "0.52143884", "0.5196547", "0.5192823", "0.5191108", "0.5188275", "0.51716876", "0.5170785", "0.51652205", "0.5156901", "0.51544315", "0.5135015", "0.51236767", "0.5120308", "0.51198906", "0.5104677", "0.5088335", "0.5082917", "0.5067987", "0.50652295", "0.505955", "0.5055205", "0.5040279", "0.50241303", "0.50216645", "0.501905", "0.49879676", "0.4985942", "0.49833202", "0.4975574", "0.49705097", "0.49599084", "0.49584243", "0.49580416", "0.49568725", "0.4936088", "0.49334463", "0.49333912", "0.4929384", "0.4927438", "0.49219033", "0.4921667", "0.491231", "0.49070004", "0.4904133", "0.4901092", "0.48987886", "0.48985866", "0.48956713", "0.48919415", "0.48758075", "0.48679346", "0.4863413", "0.48616636", "0.4859461", "0.48504883", "0.48503104", "0.48462662", "0.48458144", "0.4841455", "0.48409522", "0.4840459", "0.48387843", "0.4838553", "0.48352212", "0.48351693", "0.48304293", "0.48279786", "0.4827558", "0.48127642", "0.4799356", "0.47960812", "0.4793733", "0.4789179", "0.47880018" ]
0.6437755
1
Parses a search age from a string
public static SearchAge parse(StringBuilder sb, String srch) { Integer y = null, mo = null, w = null, d = null, h = null, min = null, sec = null; int c = 0; for(; c < sb.length() && !Character.isLetter(sb.charAt(c)) && (sb.charAt(c) < '0' || sb.charAt(c) > '9'); c++); while(c < sb.length()) { int amt = 0; for(; c < sb.length() && sb.charAt(c) >= '0' && sb.charAt(c) <= '9'; c++) amt = amt * 10 + sb.charAt(c) - '0'; for(; c < sb.length() && !Character.isLetter(sb.charAt(c)) && (sb.charAt(c) < '0' || sb.charAt(c) > '9'); c++); StringBuilder unit = new StringBuilder(); for(; c < sb.length() && Character.isLetter(sb.charAt(c)); c++) unit.append(sb.charAt(c)); String unitS = unit.toString().toLowerCase(); if(unitS.length() == 0) throw new IllegalArgumentException("No unit for age: " + srch); if("years".startsWith(unitS)) { if(y != null) throw new IllegalArgumentException("Multiple years specified for age: " + srch); y = Integer.valueOf(amt); } else if("months".startsWith(unitS) && unitS.length() > 1) { // "m" means minutes, not months if(mo != null) throw new IllegalArgumentException("Multiple months specified for age: " + srch); mo = Integer.valueOf(amt); } else if("weeks".startsWith(unitS)) { if(w != null) throw new IllegalArgumentException("Multiple weeks specified for age: " + srch); w = Integer.valueOf(amt); } else if("days".startsWith(unitS)) { if(d != null) throw new IllegalArgumentException("Multiple days specified for age: " + srch); d = Integer.valueOf(amt); } else if("hours".startsWith(unitS)) { if(h != null) throw new IllegalArgumentException("Multiple hours specified for age: " + srch); h = Integer.valueOf(amt); } else if("minutes".startsWith(unitS)) { if(min != null) throw new IllegalArgumentException("Multiple minutes specified for age: " + srch); min = Integer.valueOf(amt); } else if("seconds".startsWith(unitS)) { if(sec != null) throw new IllegalArgumentException("Multiple seconds specified for age: " + srch); sec = Integer.valueOf(amt); } else throw new IllegalArgumentException("Unrecognized age unit: " + unitS + " in search " + srch); for(; c < sb.length() && !Character.isLetter(sb.charAt(c)) && (sb.charAt(c) < '0' || sb.charAt(c) > '9'); c++); if(c < sb.length() && sb.charAt(c) == ',') { c++; for(; c < sb.length() && !Character.isLetter(sb.charAt(c)) && (sb.charAt(c) < '0' || sb.charAt(c) > '9'); c++); } } if(y == null && mo == null && w == null && d == null && h == null && min == null && sec == null) throw new IllegalArgumentException("No age specified in search: " + srch); return new SearchAge(y, mo, w, d, h, min, sec); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int getAge(String [] lignes){\n Pattern p= Pattern.compile(\"([0-9]{2}) *ans\");\n for(String ligne : lignes){\n // System.out.println(ligne);\n Matcher matcher = p.matcher(ligne);\n if(matcher.find())\n return Integer.parseInt(matcher.group(1));\n }\n return -1; // Dans le cas où la personne n'a pas préciser son age\n }", "public static String getRestrictionAgeFromSting(String response) {\n String restrictionAgeRegex = \"(?<=\\\"restriction_age\\\\\\\\\\\":)([\\\\s\\\\S]+?)(?=,)\";\n return getFirstMatchByRegex(response, restrictionAgeRegex);\n }", "public void setAge(String age) {\n\n Instant instant = Instant.parse(age) ;\n\n Date dateAge = Date.from(instant) ;\n\n //Date dateAge = format.parse(age);\n Log.e(\"age convert: \", String.valueOf(dateAge));\n this.age = dateAge;\n }", "private static boolean validateAge(String age) {\n return true;\n\n }", "public static int userAge(String formattedDate) {\n\t\t// Holds the year, month, and day in that order\n\t\tint[] dateNums = new int[3];\n\t\t// loop counter\n\t\tint i = 0;\n\t\t// goes through each part of the string and converts it into an int\n\t\tfor (String x : formattedDate.split(\"-\")) {\n\t\t\tdateNums[i] = Integer.parseInt(x);\n\t\t\ti++;\n\t\t}\n\t\t// get local date for the user date of birth\n\t\tLocalDate userDOB = LocalDate.of(dateNums[0], dateNums[1], dateNums[2]);\n\t\t// get current local date\n\t\tLocalDate today = LocalDate.now();\n\t\t\n\t\treturn Period.between(userDOB, today).getYears();\n\t}", "public static String calcAge(String dob)\r\n\t {\r\n\t\t LocalDate bday = LocalDate.of(Integer.parseInt(dob.substring(6,10)),Integer.parseInt(dob.substring(3,5)),Integer.parseInt(dob.substring(1,2)));\r\n\t\t LocalDate today = LocalDate.now(); \r\n\t\t Period age = Period.between(bday, today); \r\n\t\t int years = age.getYears(); \r\n\t\t int months = age.getMonths(); \r\n\t\t return years + \" Years and \" + months + \" Months\";\r\n\t }", "public int getAge(String dob) {\n try {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd\");\n Date date = sdf.parse(dob);\n Calendar cal = Calendar.getInstance();\n cal.setTime(date);\n return Calendar.getInstance().get(Calendar.YEAR) - cal.get(Calendar.YEAR);\n } catch (ParseException e) {\n return 0;\n }\n }", "public void setAge(String age)\r\n\t{\n\t\tthis.age = validateInteger( age, \"age\" );\r\n\t}", "int getAgeInYears(Person p);", "protected int askAge(String name) {\n\t\tint age = -1;\t\t\n\t\twhile (age < 0 || age > 120) {\n\t\t\tSystem.out.format(\"Sisesta %s vanus (0-120)\",name);\n\t\t\tage = TextIO.getlnInt();\n\t\t}\n\t\t\n\t\treturn age;\n\t}", "public static SearchDate parse(StringBuilder sb, String srch)\n\t\t{\n\t\t\tif(sb.length() > 0 && sb.charAt(0) == '\"')\n\t\t\t\tsb.delete(0, 1);\n\t\t\tjava.util.Calendar now = java.util.Calendar.getInstance();\n\t\t\tInteger d, m, y, h, min = null, sec = null, mill = null;\n\t\t\tfinal boolean [] local = new boolean [] {false};\n\t\t\tboolean doubleZero = sb.length() >= 2 && sb.charAt(0) == '0' && sb.charAt(1) == '0';\n\t\t\tboolean tripleZero = doubleZero && sb.length() >= 3 && sb.charAt(2) == '0';\n\t\t\tint num = parseInt(sb);\n\t\t\tif(num >= 0)\n\t\t\t{ // num could be day or time\n\t\t\t\ttrim(sb);\n\t\t\t\tint month = parseMonth(sb, srch);\n\t\t\t\tif(month >= 0)\n\t\t\t\t{ // num was the day. Now year and/or hour may be specified\n\t\t\t\t\td = Integer.valueOf(num);\n\t\t\t\t\tm = Integer.valueOf(month);\n\t\t\t\t\tif(sb.length() > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!Character.isWhitespace(sb.charAt(0)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tint year = parseInt(sb);\n\t\t\t\t\t\t\tif(year >= 0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(year < 100)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tyear += (now.get(Calendar.YEAR) / 100) * 100;\n\t\t\t\t\t\t\t\t\tif(year > now.get(Calendar.YEAR))\n\t\t\t\t\t\t\t\t\t\tyear -= 100;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if(year <= now.get(Calendar.YEAR))\n\t\t\t\t\t\t\t\t{}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Illegal year in search \"\n\t\t\t\t\t\t\t\t\t\t+ srch);\n\t\t\t\t\t\t\t\ty = Integer.valueOf(year);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\ty = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ty = null;\n\t\t\t\t\t\tint [] hm = parseTime(sb, srch, local);\n\t\t\t\t\t\tif(hm != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\th = Integer.valueOf(hm[0]);\n\t\t\t\t\t\t\tif(hm.length > 1 && hm[1] >= 0)\n\t\t\t\t\t\t\t\tmin = Integer.valueOf(hm[1]);\n\t\t\t\t\t\t\tif(hm.length > 2 && hm[2] >= 0)\n\t\t\t\t\t\t\t\tsec = Integer.valueOf(hm[2]);\n\t\t\t\t\t\t\tif(hm.length > 3 && hm[3] >= 0)\n\t\t\t\t\t\t\t\tmill = Integer.valueOf(hm[3]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\th = null;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ty = h = null;\n\t\t\t\t}\n\t\t\t\telse if(parseSuffix(sb, num))\n\t\t\t\t{ // num was the day, with no month/year specified\n\t\t\t\t\tnow.add(Calendar.MONTH, -1);\n\t\t\t\t\tif(num < 1 && num > now.getActualMaximum(Calendar.DAY_OF_MONTH))\n\t\t\t\t\t{\n\t\t\t\t\t\tnow.add(Calendar.MONTH, 1);\n\t\t\t\t\t\tif(num < 1 || num > 31)\n\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Illegal day in search \" + srch);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Illegal day in search \" + srch\n\t\t\t\t\t\t\t\t+ \" for \" + print(MONTHS[now.get(Calendar.MONTH) - 1]));\n\t\t\t\t\t}\n\t\t\t\t\td = Integer.valueOf(num);\n\t\t\t\t\tint [] hm = parseTime(sb, srch, local);\n\t\t\t\t\tif(hm != null)\n\t\t\t\t\t{\n\t\t\t\t\t\th = Integer.valueOf(hm[0]);\n\t\t\t\t\t\tif(hm.length > 1 && hm[1] >= 0)\n\t\t\t\t\t\t\tmin = Integer.valueOf(hm[1]);\n\t\t\t\t\t\tif(hm.length > 2 && hm[2] >= 0)\n\t\t\t\t\t\t\tsec = Integer.valueOf(hm[2]);\n\t\t\t\t\t\tif(hm.length > 3 && hm[3] >= 0)\n\t\t\t\t\t\t\tmill = Integer.valueOf(hm[3]);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\th = null;\n\t\t\t\t\tm = null;\n\t\t\t\t\ty = null;\n\t\t\t\t\th = null;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{ // num was the time\n\t\t\t\t\tm = null;\n\t\t\t\t\ty = null;\n\t\t\t\t\td = null;\n\t\t\t\t\th = null;\n\t\t\t\t\tif((num == 0 && !tripleZero) || (num > 0 && num < 24 && !doubleZero))\n\t\t\t\t\t\th = Integer.valueOf(num);\n\t\t\t\t\telse if(num >= 2400 || num % 100 >= 60)\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"Illegal time in search \" + srch + \": \"\n\t\t\t\t\t\t\t+ num);\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\th = Integer.valueOf(num / 100);\n\t\t\t\t\t\tmin = Integer.valueOf(num % 100);\n\t\t\t\t\t}\n\t\t\t\t\tif(sb.length() > 0 && sb.charAt(0) == ':')\n\t\t\t\t\t{\n\t\t\t\t\t\tsb.delete(0, 1);\n\t\t\t\t\t\tint s = parseInt(sb);\n\t\t\t\t\t\tif(s >= 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsec = Integer.valueOf(s);\n\t\t\t\t\t\t\tif(sb.length() > 0 && sb.charAt(0) == '.')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tint mil = parseInt(sb);\n\t\t\t\t\t\t\t\tif(mil >= 0)\n\t\t\t\t\t\t\t\t\tmill = Integer.valueOf(mil);\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\telse\n\t\t\t{\n\t\t\t\td = null;\n\t\t\t\tint month = parseMonth(sb, srch);\n\t\t\t\tif(month < 0)\n\t\t\t\t{\n\t\t\t\t\tnum = parseWeekDay(sb, srch);\n\t\t\t\t\tif(num < 0)\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"Illegal data value in search: \" + srch);\n\t\t\t\t\ttrim(sb);\n\t\t\t\t\tInteger wd = Integer.valueOf(num);\n\t\t\t\t\tnum = parseInt(sb);\n\t\t\t\t\tif(num < 0)\n\t\t\t\t\t\th = null;\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\th = Integer.valueOf(num);\n\t\t\t\t\t\tif(sb.length() > 0 && (sb.charAt(0) == 'Z' || sb.charAt(0) == 'z'))\n\t\t\t\t\t\t\tsb.delete(0, 1);\n\t\t\t\t\t}\n\t\t\t\t\tif(sb.length() > 0 && sb.charAt(0) == '\"')\n\t\t\t\t\t\tsb.delete(0, 1);\n\t\t\t\t\treturn new SearchDate(null, wd, null, null, h, min, null, null, local[0]);\n\t\t\t\t}\n\t\t\t\tm = Integer.valueOf(month);\n\t\t\t\tif(sb.length() > 0)\n\t\t\t\t{\n\t\t\t\t\tif(!Character.isWhitespace(sb.charAt(0)))\n\t\t\t\t\t{\n\t\t\t\t\t\tint year = parseInt(sb);\n\t\t\t\t\t\tif(year >= 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(year < 100)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tyear += (now.get(Calendar.YEAR) / 100) * 100;\n\t\t\t\t\t\t\t\tif(year > now.get(Calendar.YEAR))\n\t\t\t\t\t\t\t\t\tyear -= 100;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(year <= now.get(Calendar.YEAR))\n\t\t\t\t\t\t\t{}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Illegal year in search \" + srch);\n\t\t\t\t\t\t\ty = Integer.valueOf(year);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ty = null;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ty = null;\n\t\t\t\t\tint [] hm = parseTime(sb, srch, local);\n\t\t\t\t\tif(hm != null)\n\t\t\t\t\t{\n\t\t\t\t\t\th = Integer.valueOf(hm[0]);\n\t\t\t\t\t\tif(hm.length > 1 && hm[1] >= 0)\n\t\t\t\t\t\t\tmin = Integer.valueOf(hm[1]);\n\t\t\t\t\t\tif(hm.length > 2 && hm[2] >= 0)\n\t\t\t\t\t\t\tsec = Integer.valueOf(hm[2]);\n\t\t\t\t\t\tif(hm.length > 3 && hm[3] >= 0)\n\t\t\t\t\t\t\tmill = Integer.valueOf(hm[3]);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\th = null;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\ty = h = null;\n\t\t\t}\n\t\t\tif(sb.length() > 0 && sb.charAt(0) == '\"')\n\t\t\t\tsb.delete(0, 1);\n\t\t\treturn new SearchDate(d, null, m, y, h, min, sec, mill, local[0]);\n\t\t}", "public int text_parse()\n {\n int error=0;\n CId=C_ID.getText();\n CName=C_Name.getText();\n CNIC=C_NIC.getText();\n CPId=C_P_Id.getText();\n CPName=C_P_Name.getText();\n CAddress=C_Address.getText();\n CTelNo=C_TelNo.getText();\n //checks age integer validation\n try\n {\n CAge = Integer.parseInt(C_Age.getText());\n }\n catch(Exception ex)\n {\n error=1;\n }\n return error;\n }", "public Integer getAge( Date dob ) \n throws ParseException {\n if (dob == null) throw new NullPointerException(\"dob cannot be null\");\n \n Calendar c = Calendar.getInstance();\n int cmonth = c.get(Calendar.MONTH);\n int cday = c.get(Calendar.DATE);\n int cyear = c.get(Calendar.YEAR);\n \n c.setTime(dob);\n int bmonth = c.get(Calendar.MONTH);\n int bday = c.get(Calendar.DATE);\n int byear = c.get(Calendar.YEAR);\n\n if ( bmonth < cmonth || ( bmonth == cmonth && bday <= cday ) ){\n return new Integer( cyear - byear );\n } else return new Integer( cyear - byear - 1 );\n }", "public int getAge() {\n\t\tif (ageField.getText().isEmpty()) {\n\t\t\treturn 0;\n\t\t}else {\n\t\t\treturn Integer.parseInt(ageField.getText());\n\t\t}\n\t}", "int getFromAge();", "Builder addTypicalAgeRange(Text value);", "public static Date dateParsing(String birthDate2) {\n\t\treturn null;\r\n\t}", "private static String waitingForTheAge(String userAnswer)\n {\n try {\n age = Integer.parseInt(userAnswer);\n if ((age < LOW_AGE) || (HIGH_AGE < age)) {\n throw new NumberFormatException();\n }\n }catch(NumberFormatException nfe) {\n return String.format(fWRONG_INTEGER + fNOT_ALLOWED + fONCE_MORE,\n fAGE, LOW_AGE, HIGH_AGE);\n }\n if (age < 18) {\n State.setConversation(false);\n return String.format(fTOO_LOW + fNOT_ALLOWED, drink.getName());\n }\n stateDependentAnswer = Conversation::waitingForTheYear;\n return mBIRTH;\n // \"In which year you were born?\";\n }", "public int parseYear(String token) throws NumberFormatException {\n return Integer.parseInt(token);\n }", "Builder addTypicalAgeRange(String value);", "@Then(\"^age range of result \\\"([^\\\"]*)\\\" should be \\\"([^\\\"]*)\\\"$\")\n public void age_range_of_given_result(Integer resultItem, String ageRange)\n {\n int i = resultItem - 1;\n LOGGER.info(\"*** INFO: age range is: \" + resp.path(\"[\" + i + \"].age_range\"));\n String nthResult = resp.path(\"[\" + i + \"].age_range\").toString();\n assertThat(ageRange, equalTo(nthResult));\n }", "public Numerals(String stringYear) // Full Arabic year as a string, e.g. 1916 AD\n\t{\n\t\tif (stringYear.equals(\"\"))\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"Invalid input !\", new Throwable(\"Empty string\"));\n\t\t}\n\t\tif (stringYear.length() < 4)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"Invalid input !\", new Throwable(\"String too short\"));\n\t\t}\n\t\tera = stringYear.substring(stringYear.length() - 2);\n\t\tif (!era.equals(\"BC\") && !era.equals(\"AD\")) // Invalid era string, i.e not BC or AD\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"Invalid input !\", new Throwable(\"Era string wrong\"));\n\t\t}\n\t\tyearSt = stringYear.substring(0, stringYear.length() - 3);\n\t\tif (!yearSt.equals(yearSt.trim()))\n\t\t\tthrow new IllegalArgumentException(\"Invalid input !\", new Throwable(\"More than 1 space before era\"));\n\t\ttry\n\t\t{\n\t\t\tyear = Integer.parseInt(yearSt);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"Invalid input !\", new Throwable(\"Year in wrong format\"));\n\t\t}\n\t\tif (year < 0)\n\t\t\tthrow new IllegalArgumentException(\"Invalid input !\", new Throwable(\"Negative year\"));\n\t}", "private double parseScore(String s) {\n String[] arg = s.split(\" \");\n double score = Double.parseDouble(arg[0]);\n // double total = Double.parseDouble(arg[3]);\n return score;\n }", "public static void main(String[] args) {\n int currentYear = 2021;\r\n Scanner sc = new Scanner(System.in);\r\n System.out.println(\"Enter your birth Year?\");\r\n boolean hasInt = sc.hasNextInt();\r\n if(hasInt){\r\n\r\n int birthYear = sc.nextInt();\r\n sc.nextLine();\r\n\r\n System.out.println(\"Enter your name? \");\r\n String name = sc.nextLine();\r\n\r\n int age = currentYear - birthYear;\r\n if(age>=0 && age<100){\r\n System.out.println(\"Your name is \"+name+\", You are \"+age+\" years old.\");\r\n }else{\r\n System.out.println(\"Invalid age!\");\r\n }\r\n\r\n }else{\r\n System.out.println(\"Invalid Input\");\r\n }\r\n\r\n sc.close();\r\n }", "private int[] parseHours(String str) {\n try {\n return enumerate(str, 0, 23);\n } catch (IllegalArgumentException e) {\n throw new IllegalArgumentException(\"Error parsing hours: \" + e.getMessage());\n }\n }", "protected int subParse(final String text, int start, final char ch, final int count, final boolean obeyCount,\n\t\t\tfinal boolean allowNegative, final boolean[] ambiguousYear, final Calendar cal, final MessageFormat numericLeapMonthFormatter) {\n\t\tNumber number = null;\n\t\tNumberFormat currentNumberFormat = null;\n\t\tint value = 0;\n\t\tint i;\n\t\tParsePosition pos = new ParsePosition(0);\n\t\tboolean lenient = isLenient();\n\n\t\t//int patternCharIndex = DateFormatSymbols.patternChars.indexOf(ch);c\n\t\tint patternCharIndex = -1;\n\t\tif ('A' <= ch && ch <= 'z') {\n\t\t\tpatternCharIndex = PATTERN_CHAR_TO_INDEX[(int) ch - PATTERN_CHAR_BASE];\n\t\t}\n\n\t\tif (patternCharIndex == -1) {\n\t\t\treturn -start;\n\t\t}\n\n\t\tcurrentNumberFormat = getNumberFormat(ch);\n\n\t\tint field = PATTERN_INDEX_TO_CALENDAR_FIELD[patternCharIndex];\n\n\t\tif (numericLeapMonthFormatter != null) {\n\t\t\tnumericLeapMonthFormatter.setFormatByArgumentIndex(0, currentNumberFormat);\n\t\t}\n\n\t\t// If there are any spaces here, skip over them. If we hit the end\n\t\t// of the string, then fail.\n\t\tfor (;;) {\n\t\t\tif (start >= text.length()) {\n\t\t\t\treturn -start;\n\t\t\t}\n\t\t\tint c = UTF16.charAt(text, start);\n\t\t\tif (!UCharacter.isUWhiteSpace(c) || !PatternProps.isWhiteSpace(c)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tstart += UTF16.getCharCount(c);\n\t\t}\n\t\tpos.setIndex(start);\n\n\t\t// We handle a few special cases here where we need to parse\n\t\t// a number value. We handle further, more generic cases below. We need\n\t\t// to handle some of them here because some fields require extra processing on\n\t\t// the parsed value.\n\t\tif (patternCharIndex == 4 /*'k' HOUR_OF_DAY1_FIELD*/|| patternCharIndex == 15 /*'h' HOUR1_FIELD*/\n\t\t\t\t|| (patternCharIndex == 2 /*'M' MONTH_FIELD*/&& count <= 2)\n\t\t\t\t|| (patternCharIndex == 26 /*'L' STAND_ALONE_MONTH*/&& count <= 2) || patternCharIndex == 1 /*'y' YEAR */\n\t\t\t\t|| patternCharIndex == 18 /*'Y' YEAR_WOY */|| patternCharIndex == 30 /*'U' YEAR_NAME_FIELD, falls back to numeric */\n\t\t\t\t|| (patternCharIndex == 0 /*'G' ERA */&& cal.getType().equals(\"chinese\")) || patternCharIndex == 8 /*'S' FRACTIONAL_SECOND */) {\n\t\t\t// It would be good to unify this with the obeyCount logic below,\n\t\t\t// but that's going to be difficult.\n\n\t\t\tboolean parsedNumericLeapMonth = false;\n\t\t\tif (numericLeapMonthFormatter != null && (patternCharIndex == 2 || patternCharIndex == 26)) {\n\t\t\t\t// First see if we can parse month number with leap month pattern\n\t\t\t\tObject[] args = numericLeapMonthFormatter.parse(text, pos);\n\t\t\t\tif (args != null && pos.getIndex() > start && (args[0] instanceof Number)) {\n\t\t\t\t\tparsedNumericLeapMonth = true;\n\t\t\t\t\tnumber = (Number) args[0];\n\t\t\t\t\tcal.set(Calendar.IS_LEAP_MONTH, 1);\n\t\t\t\t} else {\n\t\t\t\t\tpos.setIndex(start);\n\t\t\t\t\tcal.set(Calendar.IS_LEAP_MONTH, 0);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!parsedNumericLeapMonth) {\n\t\t\t\tif (obeyCount) {\n\t\t\t\t\tif ((start + count) > text.length()) {\n\t\t\t\t\t\treturn -start;\n\t\t\t\t\t}\n\t\t\t\t\tnumber = parseInt(text, count, pos, allowNegative, currentNumberFormat);\n\t\t\t\t} else {\n\t\t\t\t\tnumber = parseInt(text, pos, allowNegative, currentNumberFormat);\n\t\t\t\t}\n\t\t\t\tif (number == null && patternCharIndex != 30) {\n\t\t\t\t\treturn -start;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (number != null) {\n\t\t\t\tvalue = number.intValue();\n\t\t\t}\n\t\t}\n\n\t\tswitch (patternCharIndex) {\n\t\tcase 0: // 'G' - ERA\n\t\t\tif (cal.getType().equals(\"chinese\")) {\n\t\t\t\t// Numeric era handling moved from ChineseDateFormat,\n\t\t\t\t// If we didn't have a number, already returned -start above\n\t\t\t\tcal.set(Calendar.ERA, value);\n\t\t\t\treturn pos.getIndex();\n\t\t\t}\n\t\t\tint ps = 0;\n\t\t\tif (count == 5) {\n\t\t\t\tps = matchString(text, start, Calendar.ERA, formatData.narrowEras, null, cal);\n\t\t\t} else if (count == 4) {\n\t\t\t\tps = matchString(text, start, Calendar.ERA, formatData.eraNames, null, cal);\n\t\t\t} else {\n\t\t\t\tps = matchString(text, start, Calendar.ERA, formatData.eras, null, cal);\n\t\t\t}\n\n\t\t\t// check return position, if it equals -start, then matchString error\n\t\t\t// special case the return code so we don't necessarily fail out until we \n\t\t\t// verify no year information also\n\t\t\tif (ps == -start)\n\t\t\t\tps = ISOSpecialEra;\n\n\t\t\treturn ps;\n\n\t\tcase 1: // 'y' - YEAR\n\t\tcase 18: // 'Y' - YEAR_WOY\n\t\t\t// If there are 3 or more YEAR pattern characters, this indicates\n\t\t\t// that the year value is to be treated literally, without any\n\t\t\t// two-digit year adjustments (e.g., from \"01\" to 2001). Otherwise\n\t\t\t// we made adjustments to place the 2-digit year in the proper\n\t\t\t// century, for parsed strings from \"00\" to \"99\". Any other string\n\t\t\t// is treated literally: \"2250\", \"-1\", \"1\", \"002\".\n\t\t\t/* 'yy' is the only special case, 'y' is interpreted as number. [Richard/GCL]*/\n\t\t\t/* Skip this for Chinese calendar, moved from ChineseDateFormat */\n\t\t\tif (override != null && (override.compareTo(\"hebr\") == 0 || override.indexOf(\"y=hebr\") >= 0) && value < 1000) {\n\t\t\t\tvalue += HEBREW_CAL_CUR_MILLENIUM_START_YEAR;\n\t\t\t} else if (count == 2 && (pos.getIndex() - start) == 2 && !cal.getType().equals(\"chinese\")\n\t\t\t\t\t&& UCharacter.isDigit(text.charAt(start)) && UCharacter.isDigit(text.charAt(start + 1))) {\n\t\t\t\t// Assume for example that the defaultCenturyStart is 6/18/1903.\n\t\t\t\t// This means that two-digit years will be forced into the range\n\t\t\t\t// 6/18/1903 to 6/17/2003. As a result, years 00, 01, and 02\n\t\t\t\t// correspond to 2000, 2001, and 2002. Years 04, 05, etc. correspond\n\t\t\t\t// to 1904, 1905, etc. If the year is 03, then it is 2003 if the\n\t\t\t\t// other fields specify a date before 6/18, or 1903 if they specify a\n\t\t\t\t// date afterwards. As a result, 03 is an ambiguous year. All other\n\t\t\t\t// two-digit years are unambiguous.\n\t\t\t\tint ambiguousTwoDigitYear = getDefaultCenturyStartYear() % 100;\n\t\t\t\tambiguousYear[0] = value == ambiguousTwoDigitYear;\n\t\t\t\tvalue += (getDefaultCenturyStartYear() / 100) * 100 + (value < ambiguousTwoDigitYear ? 100 : 0);\n\t\t\t}\n\t\t\tcal.set(field, value);\n\n\t\t\t// Delayed checking for adjustment of Hebrew month numbers in non-leap years.\n\t\t\tif (DelayedHebrewMonthCheck) {\n\t\t\t\tif (!HebrewCalendar.isLeapYear(value)) {\n\t\t\t\t\tcal.add(Calendar.MONTH, 1);\n\t\t\t\t}\n\t\t\t\tDelayedHebrewMonthCheck = false;\n\t\t\t}\n\t\t\treturn pos.getIndex();\n\t\tcase 30: // 'U' - YEAR_NAME_FIELD\n\t\t\tif (formatData.shortYearNames != null) {\n\t\t\t\tint newStart = matchString(text, start, Calendar.YEAR, formatData.shortYearNames, null, cal);\n\t\t\t\tif (newStart > 0) {\n\t\t\t\t\treturn newStart;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (number != null && (lenient || formatData.shortYearNames == null || value > formatData.shortYearNames.length)) {\n\t\t\t\tcal.set(Calendar.YEAR, value);\n\t\t\t\treturn pos.getIndex();\n\t\t\t}\n\t\t\treturn -start;\n\t\tcase 2: // 'M' - MONTH\n\t\tcase 26: // 'L' - STAND_ALONE_MONTH\n\t\t\tif (count <= 2) { // i.e., M/MM, L/LL\n\t\t\t\t// Don't want to parse the month if it is a string\n\t\t\t\t// while pattern uses numeric style: M/MM, L/LL.\n\t\t\t\t// [We computed 'value' above.]\n\t\t\t\tcal.set(Calendar.MONTH, value - 1);\n\t\t\t\t// When parsing month numbers from the Hebrew Calendar, we might need\n\t\t\t\t// to adjust the month depending on whether or not it was a leap year.\n\t\t\t\t// We may or may not yet know what year it is, so might have to delay\n\t\t\t\t// checking until the year is parsed.\n\t\t\t\tif (cal.getType().equals(\"hebrew\") && value >= 6) {\n\t\t\t\t\tif (cal.isSet(Calendar.YEAR)) {\n\t\t\t\t\t\tif (!HebrewCalendar.isLeapYear(cal.get(Calendar.YEAR))) {\n\t\t\t\t\t\t\tcal.set(Calendar.MONTH, value);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tDelayedHebrewMonthCheck = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn pos.getIndex();\n\t\t\t} else {\n\t\t\t\t// count >= 3 // i.e., MMM/MMMM or LLL/LLLL\n\t\t\t\t// Want to be able to parse both short and long forms.\n\t\t\t\tboolean haveMonthPat = (formatData.leapMonthPatterns != null && formatData.leapMonthPatterns.length >= DateFormatSymbols.DT_MONTH_PATTERN_COUNT);\n\t\t\t\t// Try count == 4 first:\n\t\t\t\tint newStart = (patternCharIndex == 2) ? matchString(text, start, Calendar.MONTH, formatData.months,\n\t\t\t\t\t\t(haveMonthPat) ? formatData.leapMonthPatterns[DateFormatSymbols.DT_LEAP_MONTH_PATTERN_FORMAT_WIDE] : null, cal)\n\t\t\t\t\t\t: matchString(text, start, Calendar.MONTH, formatData.standaloneMonths,\n\t\t\t\t\t\t\t\t(haveMonthPat) ? formatData.leapMonthPatterns[DateFormatSymbols.DT_LEAP_MONTH_PATTERN_STANDALONE_WIDE]\n\t\t\t\t\t\t\t\t\t\t: null, cal);\n\t\t\t\tif (newStart > 0) {\n\t\t\t\t\treturn newStart;\n\t\t\t\t} else { // count == 4 failed, now try count == 3\n\t\t\t\t\treturn (patternCharIndex == 2) ? matchString(text, start, Calendar.MONTH, formatData.shortMonths,\n\t\t\t\t\t\t\t(haveMonthPat) ? formatData.leapMonthPatterns[DateFormatSymbols.DT_LEAP_MONTH_PATTERN_FORMAT_ABBREV] : null,\n\t\t\t\t\t\t\tcal)\n\t\t\t\t\t\t\t: matchString(\n\t\t\t\t\t\t\t\t\ttext,\n\t\t\t\t\t\t\t\t\tstart,\n\t\t\t\t\t\t\t\t\tCalendar.MONTH,\n\t\t\t\t\t\t\t\t\tformatData.standaloneShortMonths,\n\t\t\t\t\t\t\t\t\t(haveMonthPat) ? formatData.leapMonthPatterns[DateFormatSymbols.DT_LEAP_MONTH_PATTERN_STANDALONE_ABBREV]\n\t\t\t\t\t\t\t\t\t\t\t: null, cal);\n\t\t\t\t}\n\t\t\t}\n\t\tcase 4: // 'k' - HOUR_OF_DAY (1..24)\n\t\t\t// [We computed 'value' above.]\n\t\t\tif (value == cal.getMaximum(Calendar.HOUR_OF_DAY) + 1) {\n\t\t\t\tvalue = 0;\n\t\t\t}\n\t\t\tcal.set(Calendar.HOUR_OF_DAY, value);\n\t\t\treturn pos.getIndex();\n\t\tcase 8: // 'S' - FRACTIONAL_SECOND\n\t\t\t// Fractional seconds left-justify\n\t\t\ti = pos.getIndex() - start;\n\t\t\tif (i < 3) {\n\t\t\t\twhile (i < 3) {\n\t\t\t\t\tvalue *= 10;\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tint a = 1;\n\t\t\t\twhile (i > 3) {\n\t\t\t\t\ta *= 10;\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t\tvalue /= a;\n\t\t\t}\n\t\t\tcal.set(Calendar.MILLISECOND, value);\n\t\t\treturn pos.getIndex();\n\t\tcase 9: { // 'E' - DAY_OF_WEEK\n\t\t\t// Want to be able to parse at least wide, abbrev, short forms.\n\t\t\tint newStart = matchString(text, start, Calendar.DAY_OF_WEEK, formatData.weekdays, null, cal); // try EEEE wide\n\t\t\tif (newStart > 0) {\n\t\t\t\treturn newStart;\n\t\t\t} else if ((newStart = matchString(text, start, Calendar.DAY_OF_WEEK, formatData.shortWeekdays, null, cal)) > 0) { // try EEE abbrev\n\t\t\t\treturn newStart;\n\t\t\t} else if (formatData.shorterWeekdays != null) {\n\t\t\t\treturn matchString(text, start, Calendar.DAY_OF_WEEK, formatData.shorterWeekdays, null, cal); // try EEEEEE short\n\t\t\t}\n\t\t\treturn newStart;\n\t\t}\n\t\tcase 25: { // 'c' - STAND_ALONE_DAY_OF_WEEK\n\t\t\t// Want to be able to parse at least wide, abbrev, short forms.\n\t\t\tint newStart = matchString(text, start, Calendar.DAY_OF_WEEK, formatData.standaloneWeekdays, null, cal); // try cccc wide\n\t\t\tif (newStart > 0) {\n\t\t\t\treturn newStart;\n\t\t\t} else if ((newStart = matchString(text, start, Calendar.DAY_OF_WEEK, formatData.standaloneShortWeekdays, null, cal)) > 0) { // try ccc abbrev\n\t\t\t\treturn newStart;\n\t\t\t} else if (formatData.standaloneShorterWeekdays != null) {\n\t\t\t\treturn matchString(text, start, Calendar.DAY_OF_WEEK, formatData.standaloneShorterWeekdays, null, cal); // try cccccc short\n\t\t\t}\n\t\t\treturn newStart;\n\t\t}\n\t\tcase 14: // 'a' - AM_PM\n\t\t\treturn matchString(text, start, Calendar.AM_PM, formatData.ampms, null, cal);\n\t\tcase 15: // 'h' - HOUR (1..12)\n\t\t\t// [We computed 'value' above.]\n\t\t\tif (value == cal.getLeastMaximum(Calendar.HOUR) + 1) {\n\t\t\t\tvalue = 0;\n\t\t\t}\n\t\t\tcal.set(Calendar.HOUR, value);\n\t\t\treturn pos.getIndex();\n\t\tcase 17: // 'z' - ZONE_OFFSET\n\t\t{\n\t\t\tOutput<TimeType> tzTimeType = new Output<TimeType>();\n\t\t\tStyle style = (count < 4) ? Style.SPECIFIC_SHORT : Style.SPECIFIC_LONG;\n\t\t\tTimeZone tz = tzFormat().parse(style, text, pos, tzTimeType);\n\t\t\tif (tz != null) {\n\t\t\t\ttztype = tzTimeType.value;\n\t\t\t\tcal.setTimeZone(tz);\n\t\t\t\treturn pos.getIndex();\n\t\t\t}\n\t\t\treturn -start;\n\t\t}\n\t\tcase 23: // 'Z' - TIMEZONE_RFC\n\t\t{\n\t\t\tOutput<TimeType> tzTimeType = new Output<TimeType>();\n\t\t\tStyle style = (count < 4) ? Style.ISO_BASIC_LOCAL_FULL : ((count == 5) ? Style.ISO_EXTENDED_FULL : Style.LOCALIZED_GMT);\n\t\t\tTimeZone tz = tzFormat().parse(style, text, pos, tzTimeType);\n\t\t\tif (tz != null) {\n\t\t\t\ttztype = tzTimeType.value;\n\t\t\t\tcal.setTimeZone(tz);\n\t\t\t\treturn pos.getIndex();\n\t\t\t}\n\t\t\treturn -start;\n\t\t}\n\t\tcase 24: // 'v' - TIMEZONE_GENERIC\n\t\t{\n\t\t\tOutput<TimeType> tzTimeType = new Output<TimeType>();\n\t\t\t// Note: 'v' only supports count 1 and 4\n\t\t\tStyle style = (count < 4) ? Style.GENERIC_SHORT : Style.GENERIC_LONG;\n\t\t\tTimeZone tz = tzFormat().parse(style, text, pos, tzTimeType);\n\t\t\tif (tz != null) {\n\t\t\t\ttztype = tzTimeType.value;\n\t\t\t\tcal.setTimeZone(tz);\n\t\t\t\treturn pos.getIndex();\n\t\t\t}\n\t\t\treturn -start;\n\t\t}\n\t\tcase 29: // 'V' - TIMEZONE_SPECIAL\n\t\t{\n\t\t\tOutput<TimeType> tzTimeType = new Output<TimeType>();\n\t\t\tStyle style = null;\n\t\t\tswitch (count) {\n\t\t\tcase 1:\n\t\t\t\tstyle = Style.ZONE_ID_SHORT;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tstyle = Style.ZONE_ID;\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tstyle = Style.EXEMPLAR_LOCATION;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tstyle = Style.GENERIC_LOCATION;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tTimeZone tz = tzFormat().parse(style, text, pos, tzTimeType);\n\t\t\tif (tz != null) {\n\t\t\t\ttztype = tzTimeType.value;\n\t\t\t\tcal.setTimeZone(tz);\n\t\t\t\treturn pos.getIndex();\n\t\t\t}\n\t\t\treturn -start;\n\t\t}\n\t\tcase 31: // 'O' - TIMEZONE_LOCALIZED_GMT_OFFSET\n\t\t{\n\t\t\tOutput<TimeType> tzTimeType = new Output<TimeType>();\n\t\t\tStyle style = (count < 4) ? Style.LOCALIZED_GMT_SHORT : Style.LOCALIZED_GMT;\n\t\t\tTimeZone tz = tzFormat().parse(style, text, pos, tzTimeType);\n\t\t\tif (tz != null) {\n\t\t\t\ttztype = tzTimeType.value;\n\t\t\t\tcal.setTimeZone(tz);\n\t\t\t\treturn pos.getIndex();\n\t\t\t}\n\t\t\treturn -start;\n\t\t}\n\t\tcase 32: // 'X' - TIMEZONE_ISO\n\t\t{\n\t\t\tOutput<TimeType> tzTimeType = new Output<TimeType>();\n\t\t\tStyle style;\n\t\t\tswitch (count) {\n\t\t\tcase 1:\n\t\t\t\tstyle = Style.ISO_BASIC_SHORT;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tstyle = Style.ISO_BASIC_FIXED;\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tstyle = Style.ISO_EXTENDED_FIXED;\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tstyle = Style.ISO_BASIC_FULL;\n\t\t\t\tbreak;\n\t\t\tdefault: // count >= 5\n\t\t\t\tstyle = Style.ISO_EXTENDED_FULL;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tTimeZone tz = tzFormat().parse(style, text, pos, tzTimeType);\n\t\t\tif (tz != null) {\n\t\t\t\ttztype = tzTimeType.value;\n\t\t\t\tcal.setTimeZone(tz);\n\t\t\t\treturn pos.getIndex();\n\t\t\t}\n\t\t\treturn -start;\n\t\t}\n\t\tcase 33: // 'x' - TIMEZONE_ISO_LOCAL\n\t\t{\n\t\t\tOutput<TimeType> tzTimeType = new Output<TimeType>();\n\t\t\tStyle style;\n\t\t\tswitch (count) {\n\t\t\tcase 1:\n\t\t\t\tstyle = Style.ISO_BASIC_LOCAL_SHORT;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tstyle = Style.ISO_BASIC_LOCAL_FIXED;\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tstyle = Style.ISO_EXTENDED_LOCAL_FIXED;\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tstyle = Style.ISO_BASIC_LOCAL_FULL;\n\t\t\t\tbreak;\n\t\t\tdefault: // count >= 5\n\t\t\t\tstyle = Style.ISO_EXTENDED_LOCAL_FULL;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tTimeZone tz = tzFormat().parse(style, text, pos, tzTimeType);\n\t\t\tif (tz != null) {\n\t\t\t\ttztype = tzTimeType.value;\n\t\t\t\tcal.setTimeZone(tz);\n\t\t\t\treturn pos.getIndex();\n\t\t\t}\n\t\t\treturn -start;\n\t\t}\n\t\tcase 27: // 'Q' - QUARTER\n\t\t\tif (count <= 2) { // i.e., Q or QQ.\n\t\t\t\t// Don't want to parse the quarter if it is a string\n\t\t\t\t// while pattern uses numeric style: Q or QQ.\n\t\t\t\t// [We computed 'value' above.]\n\t\t\t\tcal.set(Calendar.MONTH, (value - 1) * 3);\n\t\t\t\treturn pos.getIndex();\n\t\t\t} else {\n\t\t\t\t// count >= 3 // i.e., QQQ or QQQQ\n\t\t\t\t// Want to be able to parse both short and long forms.\n\t\t\t\t// Try count == 4 first:\n\t\t\t\tint newStart = matchQuarterString(text, start, Calendar.MONTH, formatData.quarters, cal);\n\t\t\t\tif (newStart > 0) {\n\t\t\t\t\treturn newStart;\n\t\t\t\t} else { // count == 4 failed, now try count == 3\n\t\t\t\t\treturn matchQuarterString(text, start, Calendar.MONTH, formatData.shortQuarters, cal);\n\t\t\t\t}\n\t\t\t}\n\n\t\tcase 28: // 'q' - STANDALONE QUARTER\n\t\t\tif (count <= 2) { // i.e., q or qq.\n\t\t\t\t// Don't want to parse the quarter if it is a string\n\t\t\t\t// while pattern uses numeric style: q or qq.\n\t\t\t\t// [We computed 'value' above.]\n\t\t\t\tcal.set(Calendar.MONTH, (value - 1) * 3);\n\t\t\t\treturn pos.getIndex();\n\t\t\t} else {\n\t\t\t\t// count >= 3 // i.e., qqq or qqqq\n\t\t\t\t// Want to be able to parse both short and long forms.\n\t\t\t\t// Try count == 4 first:\n\t\t\t\tint newStart = matchQuarterString(text, start, Calendar.MONTH, formatData.standaloneQuarters, cal);\n\t\t\t\tif (newStart > 0) {\n\t\t\t\t\treturn newStart;\n\t\t\t\t} else { // count == 4 failed, now try count == 3\n\t\t\t\t\treturn matchQuarterString(text, start, Calendar.MONTH, formatData.standaloneShortQuarters, cal);\n\t\t\t\t}\n\t\t\t}\n\n\t\tdefault:\n\t\t\t// case 3: // 'd' - DATE\n\t\t\t// case 5: // 'H' - HOUR_OF_DAY (0..23)\n\t\t\t// case 6: // 'm' - MINUTE\n\t\t\t// case 7: // 's' - SECOND\n\t\t\t// case 10: // 'D' - DAY_OF_YEAR\n\t\t\t// case 11: // 'F' - DAY_OF_WEEK_IN_MONTH\n\t\t\t// case 12: // 'w' - WEEK_OF_YEAR\n\t\t\t// case 13: // 'W' - WEEK_OF_MONTH\n\t\t\t// case 16: // 'K' - HOUR (0..11)\n\t\t\t// case 19: // 'e' - DOW_LOCAL\n\t\t\t// case 20: // 'u' - EXTENDED_YEAR\n\t\t\t// case 21: // 'g' - JULIAN_DAY\n\t\t\t// case 22: // 'A' - MILLISECONDS_IN_DAY\n\n\t\t\t// Handle \"generic\" fields\n\t\t\tif (obeyCount) {\n\t\t\t\tif ((start + count) > text.length())\n\t\t\t\t\treturn -start;\n\t\t\t\tnumber = parseInt(text, count, pos, allowNegative, currentNumberFormat);\n\t\t\t} else {\n\t\t\t\tnumber = parseInt(text, pos, allowNegative, currentNumberFormat);\n\t\t\t}\n\t\t\tif (number != null) {\n\t\t\t\tcal.set(field, number.intValue());\n\t\t\t\treturn pos.getIndex();\n\t\t\t}\n\t\t\treturn -start;\n\t\t}\n\t}", "public static void main(String[] args) {\n Scanner myage = new Scanner(System.in);\n System.out.print(\"What is your age?\");\n String age = myage.nextLine();\n int numage = Integer.parseInt(age);\n Age age1 = new Age();\n age1.determine(numage);\n }", "public void setAge(String age) {\n this.age = age;\n }", "public void tokenizeAndParse(){\n StringTokenizer st1 = new StringTokenizer(Strinput, \" \");\n while (st1.hasMoreTokens()){\n String temp = st1.nextToken();\n if(!temp.equals(\"Rs\")&&!temp.equals(\"Ri\")){\n melody.add(Integer.decode(temp.substring(0,2)));\n }\n\n }\n\n }", "@Override\n\tpublic String getAge(String name) {\n\t\tSystem.out.println(\"service ±»µ÷ÓÃÁË\");\n\t\treturn \"20\";\n\t}", "private double[] obtainSubstring(String s, int mag) {\n double[] result = new double[2];\n\n //Look for magnitude\n int lastPos = 0;\n for(int i = 0; i<(mag + 2); i++) {\n lastPos = s.indexOf(\" \", lastPos+1);\n }\n\n int nextSpace = s.indexOf(\" \", lastPos+1);\n result[1] = Double.parseDouble(s.substring(lastPos+1, nextSpace + 1));\n\n //Look for age\n int firstSpace = s.indexOf(\" \");\n int secondSpace = s.indexOf(\" \", firstSpace+1);\n\n result[0] = Double.parseDouble(s.substring(firstSpace+1, secondSpace + 1));\n\n return result;\n }", "private int parseAccountOrNum(String name) {\n \tint rtn;\n if (name.charAt(0) >= '0' && name.charAt(0) <= '9') {\n rtn = new Integer(name).intValue();\n }\n else {\n \trtn = parseAccount(name).readCache();\n }\n return rtn;\n }", "public int parsePrice(String goods) {\n return Integer.parseInt(goods.split(\"\\\\s+\")[2]);\n }", "private int caBeDate(String str){\n if(!isNumber(str)){\n return 0;\n }if(str.length()<2){\n return 0;\n }if(str.length()==2){\n return 1;\n }if(str.length() == 3){\n return 2;\n }if(str.length() == 4){\n return 3;\n }if(str.length()>4){\n return 6;\n }\n return 0;\n }", "public static void calculateTheAge (int birthYear){\n int age = 2021 - birthYear;\n System.out.println(\"The person is \" + age + \" years old\");\n }", "public static String calcAge(ArrayList<Lap> laptimes, LocalDate date) {\n\t\tint age = -1;\n\t\tLocalDate currentDate = LocalDate.now();\n\t\tage = Period.between(date, currentDate).getYears();\n\t\treturn Integer.toString(age);\n\t}", "public boolean isAdult( String dob ){\n StringTokenizer tokenizer = new StringTokenizer( dob, \"/\" );\n String bmonth = tokenizer.nextToken(); \n String bdate = tokenizer.nextToken();\n String byear = tokenizer.nextToken();\n \n int month = Integer.parseInt(bmonth);\n int date = Integer.parseInt(bdate);\n int year = Integer.parseInt(byear);\n\n // Test for age limit of 19 or older\n Calendar c = Calendar.getInstance();\n int curYear = c.get( Calendar.YEAR );\n \n // Get cut off date\n c.set( Calendar.YEAR, curYear - 19 );\n Date cutOffDate = c.getTime();\n \n // Get birth date\n c.set( year, month-1, date );\n Date birthDate = c.getTime();\n \n if ( birthDate.compareTo(cutOffDate) <= 0 ) return true;\n else return false;\n }", "int getToAge();", "public int getAge() {\n return Integer.parseInt(getCellContent(AGE));\n }", "private static String getDateFromString(String stringDate) throws Exception {\n // matcher for the RegEx\n Matcher matcher = pattern.matcher(stringDate);\n\n //now we want to get the values if matcher found anyhthin\n if (matcher.find()) {\n return matcher.group(); // матчер, группируй найденное\n }\n throw new Exception(\"Can't extract the date from the string\");\n\n }", "protected static String goodSearchYear(String YearCheck) throws Exception\n {\n String[] Year;\n try{\n Year = YearCheck.split(\"\\\\s+\");\n if (Year.length > 1 /*|| ID[0].equals(\"\")*/) {\n throw new Exception(\"ERROR: The Year must be 1 word only\\n\");\n }\n if (!(Year[0].equals(\"\")) && Year[0].length() !=4){\n throw new Exception(\"ERROR: Year entered but it is not 4 digits\");\n }\n if (!(Year[0].matches(\"[0-9]+\"))) {\n throw new Exception(\"ERROR: Year must only contain numbers\");\n }\n return Year[0];\n } catch (Exception e){\n throw new Exception(e.getMessage());\n }\n }", "private int[] parseMonths(String str) {\n try {\n return enumerate(str, 1, 12);\n } catch (IllegalArgumentException e) {\n throw new IllegalArgumentException(\"Error parsing months: \" + e.getMessage());\n }\n }", "public IValuable parse(String value);", "com.google.ads.googleads.v14.common.AgeRangeInfo getAgeRange();", "@SuppressWarnings(\"static-access\")\r\n\tprivate int calculateAge()\r\n\t{\r\n\t\tGregorianCalendar now = new GregorianCalendar();\r\n\t\tnow = new GregorianCalendar(now.YEAR, now.MONTH, now.DATE);//simplifys the date so there is no problem with times\r\n\t\tGregorianCalendar birthDay = new GregorianCalendar(now.YEAR, bDate.MONTH, bDate.DATE);\r\n\t\tint age = 0;\r\n\t\tif(now.before(birthDay) || now.equals(birthDay))\r\n\t\t{\r\n\t\t\tage = now.YEAR - bDate.YEAR;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tage = now.YEAR - bDate.YEAR;\r\n\t\t\tage--;\r\n\t\t}\r\n\t\treturn age;\r\n\t}", "public int parseAmount(String goods) {\n return Integer.parseInt(goods.split(\"\\\\s+\")[3]);\n }", "private int scoreDateMatch(int tag1, int tag2)\n {\n // If they're exactly equal, great.\n if (tag1 == tag2)\n return 50;\n \n // Parse the years\n String str1 = data.tags.getString(tag1);\n String str2 = data.tags.getString(tag2);\n int year1 = -99;\n int year2 = -99;\n try { year1 = Integer.parseInt(str1); }\n catch (NumberFormatException e) { }\n try { year2 = Integer.parseInt(str2); }\n catch (NumberFormatException e) { }\n \n // If either is missing, no match.\n if (year1 < 0 || year2 < 0)\n return 0;\n \n // If within 2 years, consider that a partial match.\n if (Math.abs(year1 - year2) <= 2)\n return 25;\n \n // All other cases: fail for now at least.\n return 0;\n }", "private int calculateAge() {\n\t\treturn LocalDate.now().getYear() - this.birthYear;\n\t}", "boolean checkNumberFormat (String birthDate){\r\n for (int i = 0; i < birthDate.length(); i++) {\r\n if ((birthDate.charAt(i) < 48 && birthDate.charAt(i) != 32 \r\n && birthDate.charAt(i) != 10) \r\n || birthDate.charAt(i) > 57){\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "public String age(boolean flag)\n\t{\n\t\tif(flag == false)\n\t\t\treturn \"Enter your age: \";\n\t\telse\n\t\t\treturn \"Age: \";\n\t}", "int getCustomerAge(String bookingRef);", "public PassengerPersonalInfo(){\n \t// TODO Auto-generated constructor stub\n Scanner cin = new Scanner(System.in);\n String tempAge;\n System.out.print(\"FIRST NAME: \");\n firstName = cin.nextLine();\n System.out.print(\"LAST NAME: \");\n lastName = cin.nextLine();\n while(true) {\n System.out.print(\"AGE: \");\n tempAge = cin.nextLine();\n try {\n age = Integer.parseInt(tempAge);\n if(age < 0 || age > 150) {\n throw new Exception();\n }\n break;\n }\n catch(Exception e){\n System.err.println(\"ERROR: Invalid Age!\");\n } \n } \n SimpleDateFormat sdt = new SimpleDateFormat(\"MM-dd-yyyy\");\n while(true) {\n System.out.print(\"DATE OF BIRTH(mm-dd-yyyy): \");\n String tempDateOfBirth = cin.nextLine();\n try { \n this.dateOfBirth= sdt.parse(tempDateOfBirth);\n break;\n } \n catch (ParseException e) { \n System.err.println(\"ERROR: Invalid Date Format!\"); \n }\n }\n //String ch = cin.nextLine();\n System.out.print(\"ADDRESS: \");\n address = cin.nextLine();\n System.out.print(\"NATIONALITY: \");\n nationality = cin.nextLine();\n while(true) {\n System.out.print(\"CONTACT NUMBER: \");\n String tempContactNumber = cin.nextLine();\n try {\n \tcontact = Long.parseLong(tempContactNumber);\n if(tempContactNumber.length() != 11)\n throw new Exception();\n break;\n }\n catch(Exception e){\n System.err.println(\"ERROR: Invalid Contact Number!\");\n } \n } \n }", "public static MOON_PHASE getByAge(int age)\n\t\t{\n\t\t\tswitch (age) {\n\t\t\t\tcase 29 : case 30 : case 0 : case 1 : case 2 : \tcase 3 :\n\t\t\t\t\treturn MOON_PHASE.NEW;\n\t\t\t\t\n\t\t\t\tcase 4 : case 5 : case 6 :\n\t\t\t\t\treturn MOON_PHASE.WAXING_CRESCENT;\n\t\t\t\t\t\n\t\t\t\tcase 7 : case 8 : case 9 :\n\t\t\t\t\treturn MOON_PHASE.FIRST_QUARTER;\n\t\t\t\t\t\n\t\t\t\tcase 10 : case 11 : case 12 : case 13 :\n\t\t\t\t\treturn MOON_PHASE.WAXING_GIBBIOUS;\n\t\t\t\t\t\n\t\t\t\tcase 14 : case 15 : case 16 : case 17 :\n\t\t\t\t\treturn MOON_PHASE.FULL;\n\t\t\t\t\n\t\t\t\tcase 18: case 19: case 20: case 21:\n\t\t\t\t\treturn MOON_PHASE.WANING_GIBBOUS;\n\t\t\t\t\n\t\t\t\tcase 22: case 23: case 24: case 25:\n\t\t\t\t\treturn MOON_PHASE.THIRD_QUARTER;\n\t\t\t\t\n\t\t\t\tcase 26: case 27: case 28:\n\t\t\t\t\treturn MOON_PHASE.WANING_CRESCENT;\n\t\t\t}\n\t\t\treturn NA;\n\t\t}", "public static String parseDate(String input) {\n String year = input.substring(0, 4);\n String month = input.substring(5, 7);\n String day = input.substring(8, 10);\n return year + \"-\" + month + \"-\" + day;\n }", "@Test\n\tpublic void parseDateTextFieldYearTest() {\n\t\tassertEquals(2016,\n\t\t\t\tInteger.parseInt(textFieldDate.getText().substring(0, 4)));\n\t}", "public void parse(final String s) throws NumberFormatException {\r\n\t}", "int getAge();", "int getAge();", "int getAge();", "public void setBirth(String a)\n\t{\n\t\ttry\n\t\t{\n\t\t\thuman = hf.parse(a);\n\t\t\tbirth = df.format(human);\n\t\t}\n\t\tcatch (java.text.ParseException e)\n\t\t{\n\t\t}\n\t}", "public String getAge() {\n return age;\n }", "private void parseLocation(String s) {\r\n String[] parsedString = s.split(\" \");\r\n location[0] = Integer.parseInt(parsedString[0]);\r\n location[1] = Integer.parseInt(parsedString[1]);\r\n orientation = parsedString[2].charAt(0);\r\n }", "public int inputBirthYear() {\n int birthYear = Integer.parseInt(editTextBirth.getText().toString());\n return birthYear;\n }", "public void yourAgeInSeconds()\n {\n System.out.print( \"Enter your goddamn age in years: \" );\n long years = scan.nextLong();\n long yearDays = 365 * years;\n System.out.print( \"Enter month number: \" );\n long months = scan.nextLong();\n long monthDays = 0;\n if ( months > 0 ) // 1 month\n {\n monthDays = 31;\n {\n if ( months > 1 ) // 2 months\n {\n monthDays = monthDays + 28;\n if ( months > 2 ) // 3 months\n {\n monthDays = monthDays + 31;\n if ( months > 3 )\n {\n monthDays = monthDays + 30;\n if ( months > 4 )\n {\n monthDays = monthDays + 31;\n if ( months > 5 )\n {\n monthDays = monthDays + 30;\n if ( months > 6 )\n {\n monthDays = monthDays + 31;\n if ( months > 7 )\n {\n monthDays = monthDays + 31;\n if ( months > 8 )\n {\n monthDays = monthDays + 30;\n if ( months > 9 )\n {\n monthDays = monthDays + 31;\n if ( months > 10 )\n {\n monthDays \n = monthDays + 30;\n if ( months > 11 )\n {\n monthDays \n = monthDays \n + 31;\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n\n System.out.print( \"Enter the day number: \" );\n long days = scan.nextLong();\n long totalDays = yearDays + monthDays + days;\n long seconds = totalDays * 24 * 60 * 60;\n System.out.println( \"Your are \" + seconds + \" seconds old.\" );\n }", "private static int m14203b(String str, String str2) {\n String str3 = \"1970/01/01 00:00:00\";\n if (str == null) {\n str = str3;\n }\n if (str2 == null) {\n str2 = str3;\n }\n String str4 = \"[:/\\\\s]\";\n String[] split = str.split(str4);\n String[] split2 = str2.split(str4);\n int max = Math.max(split.length, split2.length);\n int i = 0;\n while (i < max) {\n int parseInt = i < split.length ? Integer.parseInt(split[i]) : 0;\n int parseInt2 = i < split2.length ? Integer.parseInt(split2[i]) : 0;\n if (parseInt < parseInt2) {\n return -1;\n }\n if (parseInt > parseInt2) {\n return 1;\n }\n i++;\n }\n return 0;\n }", "public int getAge(int i) {\n\t\treturn 0;\r\n\t}", "public int parseValue (String text, int offset) {\n\t\tParsing t = new Parsing(text, offset);\n\t\tint posini;\n\t\t/* Ignore the leading blanks */\n\t\tt.gobbleSpaces();\n\t\tposini = t.pos;\n\t\t/* Take care of units requiring data in Sexagesimal */\n\t\tif ((mksa&_sex) != 0)\n\t\t\tvalue = t.parseSexa();\n\t\telse value = t.parseFactor();\n\t\tif (t.pos == posini) \t\t// Nothing (NaN checked in Parsing)\n\t\t\treturn(offset);\n\t\t// while ((t.pos < t.length) && (t.a[t.pos] == '-')) t.pos++;\n\t\treturn(t.pos);\n\t}", "private Integer parseTimeout(String timeoutStr) {\n \tInteger idsTimeout = -1;\n \tMatcher m = IDS_TIMEOUT_PATTERN.matcher(timeoutStr);\n \tif( m.matches() ) {\n \t\tidsTimeout = Integer.valueOf(m.group(1));\n \t\tString qualifier = m.group(2);\n \t\tif( \"s\".equals(qualifier) ) {\n \t\t\tidsTimeout = idsTimeout * 1000;\n \t\t} else if( \"m\".equals(qualifier) ) {\n \t\t\tidsTimeout = idsTimeout * 1000 * 60;\n \t\t}\n \t}\n \treturn idsTimeout;\n }", "protected int subParse(final String text, final int start, final char ch, final int count, final boolean obeyCount,\n\t\t\tfinal boolean allowNegative, final boolean[] ambiguousYear, final Calendar cal) {\n\t\treturn subParse(text, start, ch, count, obeyCount, allowNegative, ambiguousYear, cal, null);\n\t}", "public static long parse(String s) throws NumberFormatException {\n return parse(s, ByteUnit.B);\n }", "public void parseDate(String d)\n {\n\tdate.set(d);\n String [] dateList = d.split(\"-\");\n \n year.set(Integer.valueOf(dateList[0]));\n month.set(Integer.valueOf(dateList[1]));\n day.set(Integer.valueOf(dateList[2]));\n }", "public void setAverageLifeExp(int age) {\n averageLifeExp = age;\n }", "public Voter getVoter(int birthdate) {\r\n\r\n // Creating a valid date first.\r\n Date formatDate;\r\n \r\n if (createDate(birthdate) != null) {\r\n formatDate = createDate(birthdate); // formats the int birthdate into type date\r\n } else {\r\n formatDate = null;\r\n }\r\n // When it's incorrectly parsed.\r\n if (formatDate == null)\r\n return null;\r\n \r\n try {\r\n traverseRBT(voterDatabase.root, formatDate);\r\n }\r\n catch(NoSuchElementException e) {\r\n \r\n }\r\n return traverseRBT(voterDatabase.root, formatDate); //return the voter when looking through the entire tree for it\r\n }", "public static void setAge(String age){\n setUserProperty(Constants.ZeTarget_keyForUserPropertyAge, age);\n }", "int getExpYear(String bookingRef);", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public DukesAgeResult getText() {\n // Create a new Calendar for Duke's birthday\n Calendar dukesBirthday = new GregorianCalendar(1995, Calendar.MAY, 23);\n // Create a new Calendar for today\n Calendar now = GregorianCalendar.getInstance();\n\n // Subtract today's year from Duke's birth year, 1995\n int dukesAge = now.get(Calendar.YEAR) - dukesBirthday.get(Calendar.YEAR);\n dukesBirthday.add(Calendar.YEAR, dukesAge);\n\n // If today's date is before May 23, subtract a year from Duke's age\n if (now.before(dukesBirthday)) {\n dukesAge--;\n }\n // Return Duke's age as JSON\n DukesAgeResult result = new DukesAgeResult();\n result.setAge(dukesAge);\n result.setHost(getLocalHostAddress());\n return result;\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tint age = 20;\r\n\t\tSystem.out.println(\"Enter your age: \");\r\n\t\tScanner scanner = new Scanner(System.in);\r\n\t\tString userAgesrt = scanner.nextLine();\r\n\t\tSystem.out.println(\"Your age is \" + userAgesrt);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tint userAge = Integer.parseInt(userAgesrt);\r\n\t\t\t\tif (userAge >= age) {\r\n\t\t\t\t\tSystem.out.println(\"You may vote\");\r\n\t\t\t\t}else {\r\n\t\t\t\t\tSystem.out.println(\"You may vote in \" + (age - userAge));\r\n\t\t\t\t}\r\n\t\t\r\n\t\t}catch (NumberFormatException nfe)\r\n\t\t{\r\n\t\tSystem.out.println(\"NumberFormatException: \" + nfe.getMessage());\r\n\t\t}\r\n\t\tif(scanner != null) {\r\n\t\t scanner.close();\r\n\t\t}\r\n\t}", "public abstract int compare(String s1, String s2) throws NumberFormatException, ParseException;", "public void parseDateTextFieldHelper() {\n\t\tyear = Integer.parseInt(textFieldDate.getText().substring(0, 4));\n\t\tmonth = Integer.parseInt(textFieldDate.getText().substring(5, 7));\n\t\tdayOfMonth = Integer.parseInt(textFieldDate.getText().substring(8, 10));\n\t}", "public static void main(String[] args) {\n Person helga = new Person(\"Helga\", 31,12,2009);\n Person janika = new Person(\"Janika\", 1,1,2010);\n \n System.out.println(helga.age());\n System.out.println(janika.age());\n System.out.println(helga.olderThan(janika));\n \n //Person Helga, born 31.12.2009 should be older than Janika, born 1.1.2010\n }", "public int getAge();", "public int getAge();", "public int convertStringDateToInteger(String date);", "public Dice( String roll ) throws ParseException {\r\n\t\tparseRoll( roll );\r\n\t}", "public int getAge() {\n\t \t return age; \n\t}", "public void parseRoll( String roll ) throws ParseException {\r\n\t\tString terms[];\r\n if( roll.contains(\"+\"))\r\n terms = roll.split(\"\\\\+\");\r\n else\r\n terms = new String[]{roll};\r\n //for each term, check it matches regex and if so\r\n //push into roll values array. \r\n for( int i=0; i<terms.length; i++ ) {\r\n if( terms[i].matches(\"\\\\s*?\\\\d*?d\\\\d+\\\\s*?\")) { //match whitespace digit-'d'-digit\r\n //zap any whitespace\r\n terms[i] = terms[i].trim();\r\n int throwSize;\r\n if( terms[i].split(\"d\")[0].equals(\"\") )\r\n \tthrowSize=1;\t\t//if no size is specified, use 1. eg a term like \"d6\"\r\n else\r\n \ttry {\r\n \t\tthrowSize = Integer.parseInt( terms[i].split(\"d\")[0] );\r\n \t} catch( NumberFormatException nfe ) {\r\n \tthrow new ParseException( \"Throw size too big\", -1 );\r\n }\r\n //now get diceSize\r\n int diceSize;\r\n try {\r\n \tdiceSize = Integer.parseInt( terms[i].split(\"d\")[1]);\r\n } catch( NumberFormatException nfe ) {\r\n \tthrow new ParseException( \"Dice size too big\", -1 );\r\n }\r\n //create a Die and add it\r\n for( int j=0; j<throwSize; j++ )\r\n \taddDie( new Die(diceSize) );\r\n } else {\r\n throw new ParseException(\"Error parsing roll\", -1); \r\n }\r\n }\r\n\t}", "private static int parseTotalAttempts(String score) throws NumberFormatException {\n String[] splitString = score.split(\"/\");\n\n if (splitString.length != 2) {\n throw new NumberFormatException(\"Score is not formatted correctly.\");\n }\n\n return Integer.parseInt(splitString[1]);\n }", "final Integer getIdFromStringPerson(String selectedValue) {\n String [] tokens = selectedValue.split(\":\"); //Split our String\n int idPosition = 1; // ID's position in the our String(See getAsString())\n return Integer.parseInt(tokens[idPosition]); //Extract Id from the string\n }", "public int setAge(int age){\n \n if (age >= 0 && age < 18){\n \n System.out.println(\"OMG! He was too young to date, still a babe!\");\n }\n \n else if(age == 18){\n \n System.out.println(\"He was about your age!\");\n }\n \n else if (age < 0) {\n \n System.out.println(\"That is impossible. Liar! He doesn't exist!\");\n } \n \n else if(age > 18 && age <= 25){\n \n System.out.println(\"Great! He was marriage material!\");\n }\n \n else if (age >= 26 && age <=34){\n \n System.out.println(\"He was a bit old for you\");\n } \n \n else if (age >= 35 && age <=100){\n \n System.out.println(\"He was a sugar daddy!\");\n }\n \n else {\n \n System.out.println(\"That is unlikely to have happened. Were you dating a mummy?\");\n } \n \n return age;\n }", "private static int parseCorrectAttempts(String score) throws NumberFormatException {\n String[] splitString = score.split(\"/\");\n\n if (splitString.length != 2) {\n throw new NumberFormatException(\"Score is not formatted correctly.\");\n }\n\n return Integer.parseInt(splitString[0]);\n }", "public static int parseIndex(String sentence) throws IllegalInputException {\n String[] words = sentence.split(\" \");\n try {\n int targetIndex = Integer.parseInt(words[1]) - 1;\n return targetIndex;\n } catch (NumberFormatException nfe) {\n throw new IllegalInputException(\"Not a number. Try again!\");\n }\n }", "public final static int[] age(DateUtil birthDate, DateUtil asof)\n {\n if ( birthDate.getOrdinal() >= asof.getOrdinal() )\n {\n return new int[] {0, 0, 0};\n }\n int birthYYYY = birthDate.getYYYY();\n int birthMM = birthDate.getMM();\n int birthDD = birthDate.getDD();\n\n int asofYYYY = asof.getYYYY();\n int asofMM = asof.getMM();\n int asofDD = asof.getDD();\n\n int ageInYears = asofYYYY - birthYYYY;\n int ageInMonths = asofMM - birthMM;\n int ageInDays = asofDD - birthDD;\n\n if ( ageInDays < 0 )\n {\n // This does not need to be a while loop because\n // birthDD is always less than daysInbirthMM month.\n // Guaranteed after this single treatment, ageInDays will be >= 0.\n // i.e. ageInDays = asofDD - birthDD + daysInBirthMM.\n ageInDays += DateUtil.daysInMonth(birthMM, birthYYYY);\n ageInMonths--;\n }\n\n if ( ageInMonths < 0 )\n {\n ageInMonths += 12;\n ageInYears--;\n }\n if ( birthYYYY < 0 && asofYYYY > 0 ) ageInYears--;\n\n if ( ageInYears < 0 )\n {\n ageInYears = 0;\n ageInMonths = 0;\n ageInDays = 0;\n }\n int [] result = new int[3];\n result[0] = ageInYears;\n result[1] = ageInMonths;\n result[2] = ageInDays;\n return result;\n }", "public String ageString() {\n return getString(FhirPropertyNames.PROPERTY_AGE_STRING);\n }", "private int[] parseMinutes(String str) {\n try {\n return enumerate(str, 0, 59);\n } catch (IllegalArgumentException e) {\n throw new IllegalArgumentException(\"Error parsing minutes: \" + e.getMessage());\n }\n }", "public abstract T parse(String str);", "public static int getAge(int yearBorn)\n {\n return 2016-yearBorn;\n }", "public AgeCode getAgeCode(com.kcdataservices.partners.kcdebdmnlib_common.businessobjects.agecode.v1.AgeCode res){\n\t\tif( (res.getAge().intValue() == 50) || res.getPaxTypeCode().equals('L') ){\n\t\t\treturn AgeCode.LAPCHILD;\n\t\t}\n\t\tif( (res.getAge().intValue() == 7) || res.getPaxTypeCode().equals('I') ){\n\t\t\treturn AgeCode.INFANT;\n\t\t}\n\t\tif( (res.getAge().intValue() == 8) || res.getPaxTypeCode().equals('C') ){\n\t\t\treturn AgeCode.CHILD;\n\t\t}\n\t\tif( (res.getAge().intValue() == 10) || res.getPaxTypeCode().equals('A') ){\n\t\t\treturn AgeCode.ADULT;\n\t\t}\n\t\tif( (res.getAge().intValue() == 11) || res.getPaxTypeCode().equals('S') ){\n\t\t\treturn AgeCode.SENIOR;\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public abstract void parseValue(String value);", "private void parseMonthYearFromString(MonthYear my, String toParse) {\n String[] results = toParse.split(\" \");\n System.out.println(results[0]);\n System.out.println(results[1]);\n\n for(int i=0;i<MONTHS.length;i++) {\n if(results[0].equals(MONTHS[i])) {\n my.setMonth(i + 1);\n break;\n }\n }\n\n my.setYear(Integer.parseInt(results[1]));\n }", "protected ArrayList<Attraction> TryParseRange(String i, ArrayList<Attraction> toRunOn) throws Exception {\n ArrayList<Attraction> toReturn = new ArrayList<>();\n try {\n String[] range = i.split(\"-\");\n if (range.length > 2)\n throw new Exception(\"Error parsing\");\n final int low = Integer.parseInt(range[0]);\n final int high = Integer.parseInt(range[1]);\n for (Attraction item : toRunOn) {\n float price = item.getPrice();\n if (price >= low && price <= high)\n toReturn.add(item);\n }\n } catch (Exception ex) {\n return toReturn;\n }\n return toReturn;\n }" ]
[ "0.65122336", "0.6352055", "0.61948234", "0.5987332", "0.5732543", "0.57238054", "0.56974316", "0.5466805", "0.5356264", "0.52804315", "0.5254327", "0.52522373", "0.52458304", "0.52438486", "0.5237812", "0.51815504", "0.51479053", "0.51461035", "0.5137502", "0.5063701", "0.50296247", "0.49870017", "0.49830648", "0.49673143", "0.49624345", "0.49593538", "0.494656", "0.49414623", "0.49351388", "0.4931661", "0.49238336", "0.49232918", "0.49111098", "0.49098113", "0.49037302", "0.48967707", "0.4863991", "0.48572665", "0.48528934", "0.4825121", "0.47923905", "0.47867468", "0.47853506", "0.47736838", "0.47736648", "0.47728214", "0.47696847", "0.47652215", "0.47620603", "0.4741661", "0.47329667", "0.47273496", "0.47195894", "0.47161388", "0.47109556", "0.4706495", "0.46976325", "0.46976325", "0.46976325", "0.46838105", "0.46817958", "0.46817204", "0.4679608", "0.46791422", "0.4673705", "0.4664631", "0.46592364", "0.46570334", "0.4654484", "0.46433693", "0.4632702", "0.46326694", "0.46228483", "0.46179852", "0.46147546", "0.46139774", "0.4608708", "0.45955426", "0.45827386", "0.458083", "0.45727542", "0.45727542", "0.4568744", "0.45647112", "0.45556712", "0.45529422", "0.45462725", "0.45429587", "0.4541801", "0.45414743", "0.45354012", "0.45350018", "0.45319673", "0.45200324", "0.45177203", "0.4516379", "0.45151156", "0.4503815", "0.4501175", "0.44984633" ]
0.7144482
0
Checks a time to see if it matches this search age
public boolean matches(Operator op, long now, long time) { long ageTime = getTime(now); long prec = getPrecision(); switch(op) { case EQ: return Math.abs(time - ageTime) <= prec; case GT: return time < ageTime; case GTE: return time <= ageTime + prec; case LT: return time > ageTime; case LTE: return time >= ageTime - prec; case NEQ: return Math.abs(time - ageTime) > prec; } throw new IllegalStateException("Unrecognized operator: " + op); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkAge(Dating t);", "@Override\r\n\t\t\tpublic ExecuteResult execute(float deltaTime) {\n\t\t\t\tif(checkAgeOutSchool(man.getInfo().getAge())){\r\n\t\t\t\t\treturn ExecuteResult.FALSE;\r\n\t\t\t\t}\r\n\t\t\t\treturn ExecuteResult.TRUE;\r\n\t\t\t}", "private Boolean TimeInRange(String time){\n \n String[] t = time.split(\":\");\n \n int hours = Integer.parseInt(t[0]);\n int minutes = Integer.parseInt(t[1]);\n int seconds = Integer.parseInt(t[2]);\n \n if(hours == 11 && minutes == 59 && (seconds >= 55)){\n return true;\n }\n \n return false;\n \n }", "private boolean checkTime(){\n\t\treturn false;\r\n\t}", "boolean hasAgeRange();", "boolean hasDesiredTime();", "private void checkPlayingAt(@NonNull TimeIntervalMatcher time) {\n checkPlaying();\n timeView.check(matches(withText(time)));\n }", "public boolean hasExpired(Map params, Date since) \r\n\t{\t\t\r\n \treturn (System.currentTimeMillis() - since.getTime()) > 5000;\r\n\t}", "boolean hasTime();", "boolean hasTime();", "boolean hasAge();", "boolean hasExpiryTimeSecs();", "private static boolean validateAge(String age) {\n return true;\n\n }", "public boolean checkTime() {\n boolean result = false;\n long currentTime = System.currentTimeMillis();\n while (currentTime == timeFlag + 1000) {\n this.timeFlag = currentTime;\n result = true;\n return result;\n }\n return result;\n }", "public boolean isExpired() {\n return age() > this.timeout;\n }", "public boolean calcAge() {\n int age;\n boolean oldEnough = false;\n Calendar c = Calendar.getInstance();\n \n //getting todays date\n int thisYear = c.get(Calendar.YEAR);\n int thisMonth = c.get(Calendar.MONTH) + 1;\n int thisDay = c.get(Calendar.DAY_OF_MONTH);\n\n age = thisYear - yearDOB;\n if (age == 18 && thisMonth == monthDOB && thisDay < dayDOB) {\n age = 17;\n oldEnough = true;\n } else if (age < 18) {\n oldEnough = false;\n }\n return oldEnough;\n }", "boolean hasHasAge();", "boolean hasVotingEndTime();", "private static Boolean compareResponseTime(String test, Long responseTime) {\n return responseTime <= new Long(test);\n }", "boolean isValidExpTime();", "public boolean attackTimePassed(long nowTime) {\r\n\t\treturn (nowTime - this.getLastAttackTime() >= ATTACK_COOLDOWN);\r\n\t}", "boolean isExpire(long currentTime);", "public static boolean validateTime(String validTill) {\n\t\treturn true;\n\t}", "void timeCheck() throws Exception{\n\t\tif(arrival<time_check)\n\t\tthrow new Exception(\"Arrival time should be non-descending\");\n\t}", "public boolean isStudentBanned(long reservationTime, long currentTime){\n return (currentTime - reservationTime > 5*60000);\n }", "public boolean validateTimes() {\n if (!allDay) {\n // Convert the time strings to ints\n int startTimeInt = parseTime(startTime);\n int endTimeInt = parseTime(endTime);\n\n if (startTimeInt > endTimeInt) {\n return false;\n }\n }\n return true;\n }", "public static boolean inRange(long quakeTime) throws Exception {\n SimpleDateFormat dayFormatter = new SimpleDateFormat(\"MM/dd/yyyy\");\n String quakeDay = dayFormatter.format(new Date(quakeTime));\n String currentDay = dayFormatter.format(new Date());\n return (quakeDay.equals(currentDay));\n }", "private boolean startForaging() {\n\t\t// check if it is an acceptable time to forage\n\t\tif(clock.time > startForagingTime && clock.time < endForagingTime) {\n\t\t\tif(RandomHelper.nextDoubleFromTo(0, 1) < forageProb) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "boolean hasVotingStartTime();", "public boolean isExpired() {\n final LocalDateTime now = LocalDateTime.now().minusSeconds(10L);\n return now.isAfter(startTime.plusMinutes(exam.getExamTime())) || endTime != null;\n }", "public boolean checkBirthDay(java.util.Date birthdate) {\r\n\r\n Calendar calendar = GregorianCalendar.getInstance();\r\n calendar.setTime(new java.util.Date());\r\n int currentYear = calendar.get(Calendar.YEAR);\r\n\r\n calendar.setTime(birthdate);\r\n int birthYear = calendar.get(Calendar.YEAR);\r\n if ((currentYear - birthYear) < 18) {\r\n return false;\r\n }\r\n return true;\r\n\r\n }", "public boolean contains(long time) {\n\t\treturn ((start <= time) && (time <= end));\n\t}", "public boolean checkTimeout(){\n\t\tif((System.currentTimeMillis()-this.activeTime.getTime())/1000 >= this.expire){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isTooOld(){\n\t\tgetOlder();\n\t\treturn age >= maxAge;\n\t}", "public boolean timeExists(int time) {\n Node currentNode = first;\n while(currentNode != null) {\n if(time == currentNode.getData().getIntegerTime())\n return true;\n currentNode = currentNode.getNextNode();\n }\n return false;\n }", "boolean hasAgeRangeView();", "public Boolean comprovaAge(Date date) {\n\t\treturn (rv.validateAge(date));\n\t}", "public long getSearchTime();", "private static boolean isOldEnough(int[] ageRatings, int selectedMovie, int userAge) {\n\t\tint[] ratings = ageRatings;\n\t\tif (userAge >= ratings[selectedMovie]) {\n\t\t\treturn true;\n\t\t} else return false;\t\t\n\t}", "private boolean isSurpass(State lastTime, State nowTime) {\n boolean result;\n String last;\n String now;\n try {\n last = ShortcutUtil.refFormatOnlyDate(Long.valueOf(lastTime.getTime_point()));\n now = ShortcutUtil.refFormatOnlyDate(Long.valueOf(nowTime.getTime_point()));\n }catch (Exception e){\n e.printStackTrace();\n return false;\n }\n result = !last.equals(now);\n return result;\n }", "public static boolean timecomparison(String ftime, String stime) {\n\t\t\r\n\t\tint fYear = Integer.parseInt(ftime.substring(0,4));\r\n\t\tint sYear = Integer.parseInt(stime.substring(0,4));\r\n\t\t\r\n\t\tint fMonth = Integer.parseInt(ftime.substring(5,7));\r\n\t\tint sMonth = Integer.parseInt(stime.substring(5,7));\r\n\t\t\r\n\t\tint fDay = Integer.parseInt(ftime.substring(8,10));\r\n\t\tint sDay = Integer.parseInt(stime.substring(8,10));\r\n\t\t\r\n\t\tint fHour = Integer.parseInt(ftime.substring(11,13));\r\n\t\tint sHour = Integer.parseInt(stime.substring(11,13));\r\n\t\t\r\n\t\tint fMin = Integer.parseInt(ftime.substring(14,16));\r\n\t\tint sMin = Integer.parseInt(stime.substring(14,16));\r\n\t\t\r\n\t\tint fSec = Integer.parseInt(ftime.substring(17,19));\r\n\t\tint sSec = Integer.parseInt(stime.substring(17,19));\r\n\t\t\r\n\t\tdouble difference = (fYear-sYear)*262800*60 + (fMonth-sMonth)*720*60 + (fDay-sDay)*24*60+ (fHour-sHour)*60 + ((fMin-sMin));\r\n\t\t\r\n\t\t//might need to change the = depending on the order of checks\r\n\t\tif(difference <= 0) {\r\n\t\t\treturn true; \r\n\t\t}\r\n\t\telse return false; \r\n\t}", "public boolean isSetBirthTime()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(BIRTHTIME$12) != 0;\n }\n }", "private boolean isReqTimeFresh(Date reqTime, String username) {\r\n\t\tDate oldReqTime = oldRequestTimes.get(username); \r\n\t\tif(oldReqTime!= null && oldReqTime.equals(reqTime))\r\n\t\t\tthrow new RuntimeException(\"This request has been sent before.\");\r\n\t\t\r\n\t\tDate current = new Date();\r\n\t\treturn current.getTime() - 750 < reqTime.getTime() && reqTime.getTime() < current.getTime() + 750;\r\n\t}", "public static void main(String[] args) {\n \n int myAge = 16;\n int myBirthday = 901; // input date as 901 or 1021 putting a 0 infront results in an error.\n int todaysDate = 923;\n\n if (todaysDate == myBirthday) {\n myAge++; // adds 1\n System.out.println(\"I am \" + myAge + \" years old now.\");\n } else {\n System.out.println(\"I am still \" + myAge + \" years old.\");\n }\n }", "private boolean timeValidation(String time){\n if(! time.matches(\"(?:[0-1][0-9]|2[0-4]):[0-5]\\\\d\")){\n return false;\n }\n return true;\n }", "public boolean remainsTime() {\n current = System.currentTimeMillis();\n int timeSpent;\n timeSpent = (int) ((current-this.begin)/1000.0);\n return (timeSpent<=this.limite);\n }", "private boolean inTimeScope(Expression expr, long time) {\n\n String time_start = expr.getTime_start();\n String time_end = expr.getTime_end();\n String day_start = expr.getDay_start();\n String day_end = expr.getDay_end();\n\n if (!StringHelper.isEmpty(day_start) && !StringHelper.isEmpty(day_end)) {\n\n long startTime = DateTimeHelper.dateFormat(day_start, \"yyyy-MM-dd\").getTime();\n long endTime = DateTimeHelper.dateFormat(day_end, \"yyyy-MM-dd\").getTime();\n\n if (time < startTime || time >= endTime + 24 * 3600 * 1000) {\n return false;\n }\n }\n\n if (!StringHelper.isEmpty(time_start) && !StringHelper.isEmpty(time_end)) {\n\n long startTime = DateTimeHelper\n .dateFormat(DateTimeHelper.getToday(\"yyyy-MM-dd\") + \" \" + time_start, \"yyyy-MM-dd HH:mm\").getTime();\n long endTime = DateTimeHelper\n .dateFormat(DateTimeHelper.getToday(\"yyyy-MM-dd\") + \" \" + time_end, \"yyyy-MM-dd HH:mm\").getTime();\n\n if (time < startTime || time >= endTime) {\n return false;\n }\n }\n\n int weekday = DateTimeHelper.getWeekday(new Date(time));\n \n if(expr.getWeekdayLimit()!=null&&!expr.getWeekdayLimit()[weekday]) {\n return false;\n }\n \n return true;\n }", "public boolean validateAgeOfTheToken(Date issuedAtTime, long currentTimeInMillis, long timeStampSkewMillis) throws\n IdentityOAuth2Exception {\n if (issuedAtTime == null) {\n return true;\n }\n if (notAcceptBeforeTimeInMins > 0) {\n long issuedAtTimeMillis = issuedAtTime.getTime();\n long rejectBeforeMillis = 1000L * 60 * notAcceptBeforeTimeInMins;\n if (currentTimeInMillis + timeStampSkewMillis - issuedAtTimeMillis >\n rejectBeforeMillis) {\n String logMsg = getTokenTooOldMessage(currentTimeInMillis, timeStampSkewMillis, issuedAtTimeMillis, rejectBeforeMillis);\n return logAndReturnFalse(logMsg);\n }\n }\n return true;\n }", "public boolean checkRoomAvailabilty(String date,String startTime,String endTime ,String confID);", "private boolean checkValidTime(String inputTime) {\n int hour = Integer.parseInt(inputTime.substring(0,2));\n int minute = Integer.parseInt(inputTime.substring(2,4));\n \n if ((hour >= 0 && hour <= 23) && (minute >= 0 && minute <= 59)) {\n return true;\n } else {\n return false;\n }\n }", "public boolean isTimeUp(long startTime){\r\n\t\tlong diff = System.currentTimeMillis() - startTime;\r\n\t\treturn diff/(1000 * 60)%60 > TIMEOUT_IN_MINUTES;\r\n\t}", "boolean hasQueryTimeNsec();", "public boolean isDuringTime() {\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HHmm\");\r\n\t\tint now = Integer.parseInt( sdf.format(new Date()) );\r\n for ( int i = 0; i < openTime.length; i++ )\r\n\t\t\tif ( now >= openTime[i] && now <= closeTime[i])\r\n\t\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "boolean hasQueryTimeSec();", "boolean addEasyTimePlayed(long time);", "public void checkRegScore(){\n currentSecond = timeCounter / 60;\n currentMinute = timeElapsed;\n }", "public boolean isExpired() {\n\t\t// Return whether the exipred after time has passed in American Samoa\n\t\treturn getSamoaNow().after(this.expiredAfter);\n\t}", "boolean hasVisitEndtime();", "boolean hasVisitEndtime();", "public boolean isOlderThan(long timeToCompareWith) {\n return (this.timestamp < timeToCompareWith);\n }", "boolean hasErrorTime();", "public boolean timeUp(){\n return timeAlive == pok.getSpawnTime(); \n }", "@SuppressWarnings(\"static-access\")\r\n\tprivate int calculateAge()\r\n\t{\r\n\t\tGregorianCalendar now = new GregorianCalendar();\r\n\t\tnow = new GregorianCalendar(now.YEAR, now.MONTH, now.DATE);//simplifys the date so there is no problem with times\r\n\t\tGregorianCalendar birthDay = new GregorianCalendar(now.YEAR, bDate.MONTH, bDate.DATE);\r\n\t\tint age = 0;\r\n\t\tif(now.before(birthDay) || now.equals(birthDay))\r\n\t\t{\r\n\t\t\tage = now.YEAR - bDate.YEAR;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tage = now.YEAR - bDate.YEAR;\r\n\t\t\tage--;\r\n\t\t}\r\n\t\treturn age;\r\n\t}", "public boolean mcSitReservationPossible(int persons, LocalDateTime time) {\n\t\tint maxPersonsPossible = 60;\n\t\tint alreadyReserved = 0;\n\t\tfor (Reservation res : this.findByClass(McSitReservation.class)) {\n\t\t\tMcSitReservation reservation = (McSitReservation) res;\n\t\t\tLocalDateTime reservationDate = reservation.getDate();\n\t\t\tif (reservationDate.isAfter(time.minusMinutes(30)) && reservationDate.isBefore(time)) {\n\t\t\t\talreadyReserved += reservation.getCount();\n\t\t\t}\n\t\t}\n\t\tif (alreadyReserved <= maxPersonsPossible - persons)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "public void matineeMovieTickets()\n {\n System.out.print( \"Enter your age: \" );\n double age = scan.nextDouble();\n System.out.print( \"Enter the 24-hour clock time: \" );\n double time = scan.nextDouble();\n double price;\n if ( age <= 13 )\n {\n price = 4.00;\n if ( time < 1700 )\n {\n price = 2.00;\n }\n System.out.println( \"The ticket price is $\" + price );\n }\n if ( age > 13 )\n {\n price = 8.00;\n if ( time < 1700 )\n {\n price = 5.00;\n }\n System.out.println( \"The ticket price is $\" + price );\n }\n }", "boolean addHardTimePlayed(long time);", "boolean hasTimeRecord();", "public boolean withinMargin(double time,double margin ){\r\n\t\treturn MathUtil.abs(time-this.time)<=margin;\r\n\t}", "public boolean timeInBufferRange(long time) {\n \tif (!storage.isEmpty()) {\n if(time > storage.firstKey() && time < storage.lastKey())\n \treturn true;\n }\n \treturn false;\n }", "private int scoreDateMatch(int tag1, int tag2)\n {\n // If they're exactly equal, great.\n if (tag1 == tag2)\n return 50;\n \n // Parse the years\n String str1 = data.tags.getString(tag1);\n String str2 = data.tags.getString(tag2);\n int year1 = -99;\n int year2 = -99;\n try { year1 = Integer.parseInt(str1); }\n catch (NumberFormatException e) { }\n try { year2 = Integer.parseInt(str2); }\n catch (NumberFormatException e) { }\n \n // If either is missing, no match.\n if (year1 < 0 || year2 < 0)\n return 0;\n \n // If within 2 years, consider that a partial match.\n if (Math.abs(year1 - year2) <= 2)\n return 25;\n \n // All other cases: fail for now at least.\n return 0;\n }", "@Test\r\n\tpublic void testSetPersonTime() {\r\n\t\tteachu1.setPersonTime(newPersonTime);\r\n\r\n\t\tassertTrue(teachu1.getPersons().contains(person2));\r\n\t\tassertFalse(teachu1.getPersons().contains(person1));\r\n\t}", "boolean hasUseTime();", "boolean hasUseTime();", "public boolean isExpired(int threshold) {\n \t\n \tlogger.log(Level.ALL, \" auth expires in \" + authorizationExpiresIn.getTime());\n \tlogger.log(Level.ALL,expiresIn.getTime() + \" \" + threshold * 1000);\n if(expiresIn!=null) {\n \t// threshold is in seconds and need to add to millisecond time\n long exp = authorizationExpiresIn.getTime() + threshold * 1000; \n long now = System.currentTimeMillis();\n logger.log(Level.ALL,\"exp : \" + exp + \" - now \" + now + \" \" + (exp<=now)); //Add logging to Level.ALL\n return exp<=now; \n }\n return false;\n }", "boolean hasStartTime();", "private static boolean dateValid(int[] time ) { \r\n\t\tfor ( int i = 0 ; i < time.length; i++) \r\n\t\t\tif (time[i] >2400 || time[i] < 0 ) \r\n\t\t\t\treturn false;\r\n\t\treturn true;\t\t\r\n\t}", "boolean hasCreateTime();", "boolean hasCreateTime();", "boolean hasCreateTime();", "boolean hasCreateTime();", "boolean hasCreateTime();", "boolean hasCreateTime();", "long getAgeRelativeToReferencePoint(Calendar referenceTime, Calendar testTime);", "public boolean checkTimeInPast() throws ParseException {\n LocalTime ltnow = LocalTime.now();\n if(b_startTime != null && checkDateIsToday()){\n LocalTime ltstart = b_startTime.toInstant().atZone(ZoneId.systemDefault()).toLocalTime();\n return ltstart.isBefore(ltnow);\n }else{\n return false;\n }\n }", "public static boolean isBetweenTimes(String time1, String time2, String time) {\n if (time1.compareTo(time2) <= 0) {\n return time.compareTo(time1) >= 0 && time.compareTo(time2) < 0;\n } else {\n return time.compareTo(time1) >= 0 || time.compareTo(time2) < 0;\n }\n }", "@Override\n public double getMatchTime() {\n return MATCH_DURATION_IN_SECONDS;\n }", "boolean hasEndTime();", "public void verifyTime(@NonNull final LocalDateTime date) {\n onView(viewMatcher).check(ViewAssertions.matches(withText(date.format(timeFormat))));\n }", "public boolean timeValidated(Event e) {\n\t\tLocalDate date = e.sDate;\n\t\tLocalTime stime = e.sTime;\n\t\tLocalTime etime = e.eTime;\n\t\tArrayList<Event> list = new ArrayList<Event>();\n\t\tif(map.containsKey(date)) {\n\t\t\tlist = map.get(date);\n\n\t\t\tfor(int i = 0; i<list.size(); i++) {\n\t\t\t\tEvent evnt = list.get(i);\n\n\t\t\t\tif(e.sTime.equals(evnt.sTime) || e.eTime.equals(evnt.eTime)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t//check for start times\n\t\t\t\tif(e.sTime.isBefore(evnt.sTime)) {\n\t\t\t\t\tif(!e.eTime.isBefore(evnt.sTime)) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//check for end time\n\t\t\t\tif(e.sTime.isAfter(evnt.sTime)) {\n\t\t\t\t\tif(!e.sTime.isAfter(evnt.eTime)) {\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}\n\t\telse {\n\t\t\treturn true;\n\t\t}\n\t}", "public static boolean verifyTimeStamp(String timeStr) {\n return true;\n }", "boolean hasSubmitTime();", "public boolean DateValidation(String date, String startTime, String currentTime) {\n\n boolean state = false;\n\n //String x = dateChooser.getDate().toString();\n String Hyear = date.substring(24, 28); // get user input date\n String Hmonth = monthToCompare(date);\n String Hdate = date.substring(8, 10);\n String stHr = startTime.substring(0, 2);\n String stMin = startTime.substring(3, 5);\n\n int userYr, userMnth, userDate, userHour, userMin = 0;\n userYr = Integer.parseInt(Hyear); // conversion of user entered year to int\n userMnth = Integer.parseInt(Hmonth);\n userDate = Integer.parseInt(Hdate);\n userHour = Integer.parseInt(stHr);\n userMin = Integer.parseInt(stMin);\n\n String yyr = currentTime.substring(0, 4); // get currrent year from the string f\n String mmnth = currentTime.substring(5, 7);\n String ddt = currentTime.substring(8, 10); // get current date from the string f\n String hours = currentTime.substring(11, 13);\n String mins = currentTime.substring(14, 16);\n\n int yr, mnth, dt, shr, smin = 0;\n yr = Integer.parseInt(yyr); // convert current year from string to int\n mnth = Integer.parseInt(mmnth);\n dt = Integer.parseInt(ddt);\n shr = Integer.parseInt(hours);\n smin = Integer.parseInt(mins);\n\n if ((userYr == yr) || (userYr > yr)) { // if user entered year is the current year or future year, ok \n if (((userYr == yr) && (userMnth >= mnth)) || ((userYr > yr) && (userMnth >= mnth)) || ((userYr > yr) && (userMnth < mnth))) {\n if (((userYr == yr) && (userMnth >= mnth) && (userDate >= dt)) || ((userYr == yr) && (userMnth > mnth) && (userDate < dt)) || ((userYr == yr) && (userMnth > mnth) && (userDate >= dt))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt)) || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt))\n || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt)) || ((userYr > yr) && (userMnth < mnth) && (userDate < dt))) {\n if (((userYr == yr) && (userMnth == mnth) && (userDate >= dt) && (userHour >= shr)) || ((userYr == yr) && (userMnth == mnth) && (userDate > dt) && (userHour < shr))\n || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour >= shr)) || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour >= shr))\n || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour < shr)) || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour < shr))\n || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour >= shr)) || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour >= shr))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour >= shr)) || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour >= shr))\n || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour < shr)) || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour < shr))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour < shr)) || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour < shr))) {\n if (((userYr == yr) && (userMnth == mnth) && (userDate == dt) && (userHour == shr) && (userMin >= smin)) || ((userYr == yr) && (userMnth == mnth) && (userDate == dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr == yr) && (userMnth == mnth) && (userDate == dt) && (userHour > shr) && (userMin < smin)) || ((userYr == yr) && (userMnth == mnth) && (userDate > dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr == yr) && (userMnth == mnth) && (userDate > dt) && (userHour < shr) && (userMin >= smin)) || ((userYr == yr) && (userMnth == mnth) && (userDate > dt) && (userHour >= shr) && (userMin < smin))\n || ((userYr == yr) && (userMnth == mnth) && (userDate > dt) && (userHour < shr) && (userMin < smin)) || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour >= shr) && (userMin < smin)) || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour < shr) && (userMin >= smin))\n || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour >= shr) && (userMin >= smin)) || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour >= shr) && (userMin < smin))\n || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour < shr) && (userMin >= smin)) || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour < shr) && (userMin < smin))\n || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour < shr) && (userMin < smin)) || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour >= shr) && (userMin < smin)) || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour < shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour < shr) && (userMin < smin)) || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour >= shr) && (userMin < smin)) || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour < shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour < shr) && (userMin < smin)) || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour >= shr) && (userMin < smin)) || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour < shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour < shr) && (userMin < smin)) || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour >= shr) && (userMin < smin)) || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour < shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour < shr) && (userMin < smin))) {\n state = true;\n } else {\n JOptionPane.showMessageDialog(null, \"Invalid time!\");\n state = false;\n }\n\n } else {\n JOptionPane.showMessageDialog(null, \"Invalid time!\");\n state = false;\n }\n\n } else {\n JOptionPane.showMessageDialog(null, \"Invalid day!\");\n state = false;\n }\n\n } else {\n JOptionPane.showMessageDialog(null, \"Invalid month!\");\n state = false;\n }\n } else {// if the user entered year is already passed\n JOptionPane.showMessageDialog(null, \"Invalid year\");\n state = false;\n }\n return state;\n }", "public void timePasses(){\n crtClock++;\n if(crtClock==25)crtClock=1; // If end of day, reset to 1\n if(crtClock<=opHours)tellMeterToConsumeUnits(unitsPerHr);\n }", "public static Boolean isAdult(long dob_millis) {\n Calendar calendar_dob = Calendar.getInstance();\n calendar_dob.setTimeInMillis(dob_millis);\n\n Calendar calendar_min_adult = Calendar.getInstance();\n calendar_min_adult.set(Calendar.MINUTE, 0);\n calendar_min_adult.set(Calendar.SECOND, 0);\n calendar_min_adult.set(Calendar.HOUR, 0);\n calendar_min_adult.add(Calendar.YEAR, -18);\n\n // //// //Log.e(\"recc_compcal\", \"==\"+calendar_dob.getTimeInMillis()+\"==\"+calendar_min_adult.getTimeInMillis());\n\n return (calendar_dob.getTimeInMillis() < calendar_min_adult.getTimeInMillis());\n }", "public boolean hasExpired() {\n return this.getOriginalTime() + TimeUnit.MINUTES.toMillis(2) < System.currentTimeMillis();\n }", "private boolean checkTime(int hour, int minutes) {\n\tboolean check = true;\n\t\tif((hour < 0) || (hour > 23) || (minutes < 0) || (minutes > 59)) {\n\t\t\tcheck = false;\n\t\t}\n\t\telse {\n\t\t\tcheck = true;\n\t\t}\n\treturn check;\n\t}", "boolean hasInstant();", "public void check(int time)\n {\n if(time < 0)\n {\n throw new IllegalArgumentException();\n }\n }", "boolean hasExpiry();", "if (payDateTime == adhocTicket.getPaidDateTime()) {\n System.out.println(\"Paid Date Time is passed\");\n }" ]
[ "0.6189815", "0.60501206", "0.5992722", "0.5899801", "0.58575535", "0.5792889", "0.5728248", "0.56559956", "0.56228065", "0.56228065", "0.5607269", "0.5605614", "0.5587754", "0.55487937", "0.5546164", "0.5536681", "0.552506", "0.5519452", "0.55039364", "0.54988635", "0.5463593", "0.5423662", "0.53739655", "0.53669125", "0.5362901", "0.53584516", "0.535814", "0.53531134", "0.5343777", "0.5320985", "0.53100866", "0.53088886", "0.53077024", "0.52918094", "0.5290025", "0.5283107", "0.5281626", "0.52481836", "0.52462727", "0.52446955", "0.52131844", "0.5210577", "0.5193787", "0.5192569", "0.5191819", "0.51831514", "0.5158943", "0.5148106", "0.5147175", "0.5139325", "0.51331013", "0.5126804", "0.51232076", "0.51168185", "0.5116061", "0.5112762", "0.51029485", "0.5094565", "0.5094565", "0.5092169", "0.50885475", "0.5087357", "0.5086722", "0.50810075", "0.507412", "0.5060305", "0.5058246", "0.50394636", "0.50280714", "0.5027041", "0.5022326", "0.50178313", "0.50178313", "0.5012482", "0.50091404", "0.5007962", "0.50015783", "0.50015783", "0.50015783", "0.50015783", "0.50015783", "0.50015783", "0.5001277", "0.5001134", "0.49946618", "0.49929845", "0.49840403", "0.4978636", "0.49781626", "0.497337", "0.49704635", "0.49692264", "0.49617395", "0.49429595", "0.49397153", "0.49385107", "0.49368998", "0.49363098", "0.49221936", "0.49161118" ]
0.60663867
1
Creates a search iterator
public SearchIterator(Search... searches) { theSearches = searches; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SearchingIterator getIterator(Object key)\r\n\t{\r\n\t\tSearchingIterator x = new SearchingIterator(key); \r\n\t\treturn x; \r\n\t}", "public abstract Iter<Boolean> search(T element);", "public abstract Iterator<E> createIterator();", "IteratorExp createIteratorExp();", "Iterator<T> iterator();", "public Iterator iterator()\r\n {\r\n return new IteratorImpl( this, home() );\r\n }", "abstract public void search();", "public Iterator <T> iterator (){\n\t\t// create and return an instance of the inner class IteratorImpl\n\t\t\t\treturn new HashAVLTreeIterator();\n\t}", "public T iterator();", "public Iterator iterator () {\n return new MyIterator (first);\n }", "public Iterator<T> iterator();", "public Iterator<T> iterator();", "public Iterator<T> iterator();", "public Iterator<T> iterator();", "public Iterator <item_t> iterator () {\n return new itor ();\n }", "Iterator<K> iterator();", "public SList_Iterator<T> iterator() {\n return new iterator();\n }", "Iterator<E> iterator();", "Iterator<E> iterator();", "public Iterator<T> iterator(T instance, M matchCondition);", "@Override\r\n public Iterator iterator(){\n return new MyIterator(this);\r\n }", "TSearchResults createSearchResults(TSearchQuery searchQuery);", "public MagicSearch createMagicSearch();", "public Iterator<Type> iterator();", "public Iterator<E> iterator(){\r\n return new IteratorHelper();\r\n }", "public Iterator<Item> iterator(){\n return new Iterator<Item>(); //Iterator interface implementation instance(has all Iterator methods)\n }", "@Override\n\tpublic NodeIterator search(String queryString) throws Exception {\n\t\treturn null;\n\t}", "public Iterator<T> iterator() {\r\n \r\n return new Iteration();\r\n }", "public search() {\n }", "public search()\n\t { b = new char[INC];\n\t i = 0;\n\t i_end = 0;\n\t }", "BooleanIterator iterator(int startIndex);", "public Iterator<Item> iterator() {\n return new Iterator<Item>() {\n public boolean hasNext() {\n return false;\n }\n\n public Item next() {\n return null;\n }\n };\n }", "private Search() {}", "@Override\r\n\tpublic Iterator createIterator() {\n\t\treturn bestSongs.values().iterator();\r\n\t}", "void search();", "void search();", "@Override\n public Iterator<Object> iterator() {\n return new MyIterator();\n }", "public void testSearchManagerWithInstantiation() {\n loadTestingData();\n\n Query<?> cacheQuery = createQuery(\"blurb:'playing'\", Person.class);\n\n try (CloseableIterator<?> found = cacheQuery.iterator()) {\n assertTrue(found.hasNext());\n found.next();\n assertFalse(found.hasNext());\n }\n }", "public void search() {\r\n \t\r\n }", "SearchResult findNext(SearchOptions searchOptions);", "public Iterator<E> iterator();", "public Iterator<E> iterator();", "public Iterator<E> iterator();", "Search getSearch();", "public FlightIterator createIterator() {\r\n\t\treturn new FlightIterator(flights);\r\n\t}", "public Iterator<String> iterator();", "IterateExp createIterateExp();", "<C, PM> IteratorExp<C, PM> createIteratorExp();", "public void search() {\n }", "Iterator<T> iterator(int start, int limit);", "public Iterator<ElementType> iterator(){\n return new InnerIterator();\n }", "private void searchFunction() {\n\t\t\r\n\t}", "@Override\n public Iterator<T> iterator() {\n return new MyArrayList.MyIterator();\n }", "public Iterator iterator(final String tag)\n {\n return new Iterator()\n {\n int c=0;\n Node _node;\n\n /* -------------------------------------------------- */\n public boolean hasNext()\n {\n if(_node!=null)\n return true;\n while(_list!=null&&c<_list.size())\n {\n Object o=_list.get(c);\n if(o instanceof Node)\n {\n Node n=(Node)o;\n if(tag.equals(n._tag))\n {\n _node=n;\n return true;\n }\n }\n c++;\n }\n return false;\n }\n\n /* -------------------------------------------------- */\n public Object next()\n {\n try\n {\n if(hasNext())\n return _node;\n throw new NoSuchElementException();\n }\n finally\n {\n _node=null;\n c++;\n }\n }\n\n /* -------------------------------------------------- */\n public void remove()\n {\n throw new UnsupportedOperationException(\"Not supported\");\n }\n };\n }", "public Iterator<V> iterator()\n {\n return new Iterator<V>()\n {\n public boolean hasNext()\n {\n // STUB\n return false;\n } // hasNext()\n\n public V next()\n {\n // STUB\n return null;\n } // next()\n\n public void remove()\n throws UnsupportedOperationException\n {\n throw new UnsupportedOperationException();\n } // remove()\n }; // new Iterator<V>\n }", "@Override\n public Iterator<Integer> iterator() {\n return new IteratorImplementation();\n }", "SearchResult findNext(SearchResult result);", "public Iterator iterator() {\n maintain();\n return new MyIterator(collection.iterator());\n }", "public Iterator<Item> iterator() {\n return new AIterator();\n }", "@SuppressWarnings(\"unchecked\")\r\n public Iterator<Tuple<T>> iterator() {\n Iterator<Tuple<T>> fi = (Iterator<Tuple<T>>) new FilteredIterator<T>(resultTable.iterator(), filterOn);\r\n return fi;\r\n }", "public Iterator<T> getIterator();", "@Override\r\n\tpublic Iterator<Item> iterator() \r\n\t{\r\n\t\treturn new rqIterator();\r\n\t}", "public Iterator<T> iterator() {\n if (this.nrOfElements == 0) {\n return Collections.<T>emptyList().iterator();\n }\n return new Iterator<T>() {\n private Node walker = null;\n\n @Override\n public boolean hasNext() {\n return walker != last;\n }\n\n @Override\n public T next() {\n if (this.walker == null) {\n this.walker = first;\n return this.walker.getData();\n }\n\n if (this.walker.getNext() == null) {\n throw new NoSuchElementException();\n }\n\n this.walker = this.walker.getNext();\n return this.walker.getData();\n }\n };\n }", "public Iterator<Item> iterator() { return new RandomIterator();}", "public abstract DBIterator NewIterator(ReadOptions options);", "public OpIterator iterator() {\n // some code goes here\n // throw new\n // UnsupportedOperationException(\"please implement me for lab2\");\n return new InterAggrIterator();\n }", "public static ResultSetIterator iterator(ResultSet rs, int startIndex) {\r\n\t\treturn new ResultSetIterator(rs, startIndex);\r\n\t}", "public Iterator<Item> iterator() { return new ListIterator(); }", "public SearchId(Iterator<Entry<String, Var>> iter, String s, int i) {\n\t\tthis.iter = iter;\n\t\tstr = s;\n\t\tindex = i;\n\t}", "public Iterator<T> iterator()\n\t{\n\t\treturn new Iterator<T>()\n\t\t{\n\t\t\tNode<T> actual = head;\n\n\t\t\t@Override\n\t\t\tpublic boolean hasNext()\n\t\t\t{\n\t\t\t\treturn actual != null;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic T next() \n\t\t\t{\n\t\t\t\tif(hasNext())\n\t\t\t\t{\n\t\t\t\t\tT data = actual.getElement();\n\t\t\t\t\tactual = actual.getNext();\n\t\t\t\t\treturn data;\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t};\n\t}", "public Iterator<Item> iterator() { \n return new ListIterator(); \n }", "public abstract TreeIter<T> iterator();", "public Iterator<T> iterator() {\n\t\treturn new ReferentIterator();\n\t}", "@Override\r\n\tpublic void search() {\n\r\n\t}", "public Iterator<Item> iterator() {\n RQIterator it = new RQIterator();\n return it;\n }", "List<SearchResult> search(SearchQuery searchQuery);", "public Iterator<BigInteger> iterator() {\n // return new FibIterator();\n return new Iterator<BigInteger>() {\n private BigInteger previous = BigInteger.valueOf(-1);\n private BigInteger current = BigInteger.ONE;\n private int index = 0;\n \n \n @Override\n //if either true will stop, evaluates upper < 0 first (short circuit)\n public boolean hasNext() {\n return upper < 0 || index < upper;\n }\n\n @Override\n //Creating a new value called next\n public BigInteger next() {\n BigInteger next = previous.add(current);\n previous = current;\n current = next;\n index++;\n return current;\n }\n \n };\n }", "public Iterator<S> iterator() {\n\t\t// ..\n\t\treturn null;\n\t}", "@Override\n\tpublic void search() {\n\t}", "@Override\n\tpublic Iterator createIterator() {\n\t\treturn new WeaponListIterator(weaponList);\n\t}", "public RunIterator iterator() {\n // Replace the following line with your solution.\n return new RunIterator(runs.getFirst());\n // You'll want to construct a new RunIterator, but first you'll need to\n // write a constructor in the RunIterator class.\n \n \n }", "public abstract S getSearch();", "public Iterator<E> iterator()\n {\n return new MyListIterator();\n }", "public Iterator iterator()\n {\n return new HashSetIterator();\n }", "public Iterator<Item> iterator() {\n return new RandomizedIterator();\n }", "public Iterator<Item> iterator() {\n return new CustomIterator<Item>(head);\n }", "public Iterator<Item> iterator() {\n\t\treturn new ListIterator(); \n\t\t}", "public Iterator iterator() {\n\t return new EntryIterator(set.iterator());\n\t}", "@Override\n @Nonnull Iterator<T> iterator();", "public IterI(){\n }", "protected interface ISearchIndex<T> extends Iterable<T> {\n List<T> radius(T center, double radius);\n }", "public Iterator iterator()\r\n {\r\n if (!cache.initialized()) \r\n throw new IllegalStateException(Cache.NOT_INITIALIZED);\r\n\r\n try\r\n {\r\n return new CompositeIterator(new Iterator[] { \r\n spaceMgr.makeComponentSpaceIterator(),\r\n spaceMgr.makeHistorySpaceIterator() });\r\n }\r\n catch (RuntimeException e)\r\n {\r\n e.printStackTrace();\r\n throw e;\r\n }\r\n }", "public java.util.Iterator<Entry> iterator(){\n\t\treturn new ContentIterator();\n\t}", "public abstract Search create(String search, SearchBuilder builder);", "@Override\n public Iterator<T> iterator() {\n return new CLITableIterator<T>(createNew(tables, cursor, rowIndex));\n }", "@Override\n Iterator<T> iterator();", "public Iterator<K> getKeyIterator() \n { \n Iterator<K> myIterator = new KeyIterator(this);\n return myIterator; \n }", "public Iterator<Object[]> getIterator()\n\t{\n\t\tinit();\n\t\t\n\t\treturn new SimpleIterator();\n\t}", "@Override\n public Iterator<T> iterator() {\n return new Itr();\n }", "@Override\n public Iterator<T> iterator() {\n return new Itr();\n }" ]
[ "0.71849674", "0.65103984", "0.65098494", "0.6343245", "0.63077354", "0.62746286", "0.61060345", "0.6073855", "0.60660166", "0.60581917", "0.6055104", "0.6055104", "0.6055104", "0.6055104", "0.5968911", "0.5964967", "0.5897924", "0.5887462", "0.5887462", "0.58758783", "0.58686817", "0.58620656", "0.58480996", "0.5832018", "0.58271253", "0.58234954", "0.5816693", "0.58086425", "0.5791547", "0.57738334", "0.57645845", "0.57389176", "0.5734036", "0.57285535", "0.572247", "0.572247", "0.57066095", "0.56818706", "0.5654868", "0.564729", "0.5646037", "0.5646037", "0.5646037", "0.56328386", "0.5622599", "0.5617556", "0.56132555", "0.5609358", "0.5604036", "0.56038094", "0.5603604", "0.55706686", "0.5559718", "0.5557891", "0.5552123", "0.55520433", "0.5545489", "0.5545041", "0.5534425", "0.55321926", "0.5525929", "0.5513136", "0.5510726", "0.549767", "0.5495289", "0.54893476", "0.5484282", "0.54830515", "0.5482061", "0.54741347", "0.5466241", "0.5464002", "0.54580927", "0.54555506", "0.54483837", "0.5437466", "0.5436841", "0.54295385", "0.5419083", "0.541495", "0.54131216", "0.54034257", "0.54011315", "0.5393765", "0.53669596", "0.5365566", "0.5362897", "0.53607434", "0.5360197", "0.5339519", "0.53392994", "0.5332513", "0.53289866", "0.5322842", "0.5320445", "0.53163916", "0.5316293", "0.53117913", "0.5299307", "0.5299307" ]
0.5497261
64
Creates an empty NOT search
public NotSearch() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NotSearch not()\n\t\t{\n\t\t\treturn new NotSearch();\n\t\t}", "@Test\n public void executeEmptySearch_noResults() {\n emptySearchFields();\n\n //Even with empty fields, the search should be created and executed\n presenter.doSearch();\n\n //However, with all the search fields empty no results will be found\n Assert.assertFalse(presenter.hasNextResult());\n }", "public abstract boolean canMatchEmpty();", "public boolean isEmpty() { return this.filterExpression.length()==0; }", "public static Query empty() {\n return new Query();\n }", "@Override\n\tpublic boolean isSearching() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isSearching() {\n\t\treturn false;\n\t}", "public Builder clearSearchValueNull() {\n \n searchValueNull_ = false;\n onChanged();\n return this;\n }", "@Test\n public void testSearchFilter_WithoutQuery() {\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n\n BridgeRequest request = new BridgeRequest();\n request.setStructure(\"user\");\n request.setFields(fields);\n request.setQuery(\"\");\n\n RecordList list = null;\n BridgeError unexpectedError = null;\n try {\n list = getAdapter().search(request);\n } catch (BridgeError e) {\n unexpectedError = e;\n }\n\n assertNull(unexpectedError);\n assertTrue(list.getRecords().size() > 0);\n }", "public Search createSearch(String searchText)\n\t\t{\n\t\t\tStringBuilder sb = new StringBuilder(searchText);\n\t\t\ttrim(sb);\n\t\t\tSearch current = null;\n\t\t\twhile(sb.length() > 0)\n\t\t\t{\n\t\t\t\tboolean not = false;\n\t\t\t\tif(sb.length() > 1 && lower(sb.charAt(0)) == 'o' && lower(sb.charAt(1)) == 'r')\n\t\t\t\t{ // OR operator\n\t\t\t\t\tsb.delete(0, 2);\n\t\t\t\t\tExpressionSearch exp = exp(false);\n\t\t\t\t\texp.add(current);\n\t\t\t\t\tcurrent = exp;\n\t\t\t\t\ttrim(sb);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse if(sb.length() > 2 && lower(sb.charAt(0)) == 'a' && lower(sb.charAt(1)) == 'n'\n\t\t\t\t\t&& lower(sb.charAt(2)) == 'd')\n\t\t\t\t{\n\t\t\t\t\tsb.delete(0, 3);\n\t\t\t\t\ttrim(sb);\n\t\t\t\t}\n\t\t\t\telse if(sb.length() > 1 && sb.charAt(0) == '!')\n\t\t\t\t{\n\t\t\t\t\tsb.delete(0, 1);\n\t\t\t\t\ttrim(sb);\n\t\t\t\t\tnot = true;\n\t\t\t\t}\n\n\t\t\t\tSearch next;\n\t\t\t\tif(sb.charAt(0) == '(')\n\t\t\t\t{\n\t\t\t\t\tint c = goPastParen(sb, 0);\n\t\t\t\t\tString nextExpr = sb.substring(1, c).trim();\n\t\t\t\t\tif(nextExpr.length() == 0)\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"Empty parenthetical expression\");\n\t\t\t\t\tnext = createSearch(nextExpr);\n\t\t\t\t\tsb.delete(0, c + 1);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tnext = parseNext(sb);\n\t\t\t\tif(not)\n\t\t\t\t{\n\t\t\t\t\tNotSearch notS = not();\n\t\t\t\t\tnotS.setOperand(next);\n\t\t\t\t\tnext = notS;\n\t\t\t\t}\n\n\t\t\t\tif(current instanceof ExpressionSearch\n\t\t\t\t\t&& ((ExpressionSearch) current).getOperandCount() == 1)\n\t\t\t\t\t((ExpressionSearch) current).add(next);\n\t\t\t\telse if(current != null)\n\t\t\t\t{\n\t\t\t\t\tExpressionSearch exp = exp(true);\n\t\t\t\t\texp.addOps(current, next);\n\t\t\t\t\tcurrent = exp;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcurrent = next;\n\n\t\t\t\ttrim(sb);\n\t\t\t}\n\t\t\tif(current instanceof ExpressionSearch)\n\t\t\t\t((ExpressionSearch) current).simplify();\n\t\t\treturn current;\n\t\t}", "private void emptySearchFields() {\n view.setMinPrice(-1);\n view.setMaxPrice(-1);\n view.setMinSQM(-1);\n view.setMaxSQM(-1);\n view.setBedrooms(-1);\n view.setBathrooms(-1);\n view.setFloor(-1);\n view.setHeating(false); //Is supposed to be a checkbox so even unchecked it is false not empty\n view.setLocation(\"Athens\"); //Is supposed to get a string from a dropdown so it wil never be empty\n }", "public Query not() {\n builder.negateQuery();\n return this;\n }", "private Search() {}", "public Builder clearSearch() {\n if (searchBuilder_ == null) {\n if (inputSourceCase_ == 10) {\n inputSourceCase_ = 0;\n inputSource_ = null;\n onChanged();\n }\n } else {\n if (inputSourceCase_ == 10) {\n inputSourceCase_ = 0;\n inputSource_ = null;\n }\n searchBuilder_.clear();\n }\n return this;\n }", "public static Predicate<String> none() {\n return (each) -> false;\n }", "public void testFieldMatchCriteriaEmptyField() {\r\n try {\r\n new FieldMatchCriteria(\" \", \"str\");\r\n fail(\"testFieldMatchCriteriaEmptyField is failure.\");\r\n } catch (IllegalArgumentException iae) {\r\n // pass\r\n } catch (Exception e) {\r\n fail(\"testFieldMatchCriteriaEmptyField is failure.\");\r\n }\r\n }", "boolean getSearchValueNull();", "@Test\n\tpublic void testNoopProject() {\n\t\tTag a = new Tag(A);\n\t\ttagService.create(a);\n\t\tTag b = tagService.create(new Tag(B));\n\t\tTag c = tagService.create(new Tag(C));\n\t\tIterable<Tag> values = tagService.find().matching(\n\t\t\t\tnew QueryBuilder<TagInformer>() {\n\n\t\t\t\t\tpublic QueryExpression createMatchingExpression(\n\t\t\t\t\t\t\tTagInformer object) {\n\t\t\t\t\t\treturn object.getText().differentFrom(null);\n\t\t\t\t\t}\n\t\t\t\t}).projectOn(new NoopProjectionBuilder<Tag, TagInformer>()).getAll();\n\t\tassertThat(values, IsCollectionContaining.hasItems(a, b, c));\n\t}", "@Override\n public boolean isEmpty() {\n return filtered.isEmpty();\n }", "public void searchPlain() throws InvalidExpressionException\n {\n search(null, getAccessor().getApplication().getLocalRelationSet(), Filldirection.NONE, null, null, true);\n }", "@Test\n public void testSearchFilter_WithAddedSearchBase_NoQueryParens() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"OU=Users(samaccountname=mary.olowu)\");\n request.setParameters(parameters);\n\n BridgeError unexpectedError = null;\n RecordList list = null;\n try {\n list = getAdapter().search(request);\n } catch (BridgeError e) {\n unexpectedError = e;\n }\n\n assertNull(unexpectedError);\n assertTrue(list.getRecords().size() > 0);\n }", "@Then(\"no results appear in the search list\")\n public void no_results_appear_in_the_search_list() {\n assert true;\n }", "public void makeEmpty();", "public void makeEmpty();", "public Builder setSearchValueNull(boolean value) {\n \n searchValueNull_ = value;\n onChanged();\n return this;\n }", "@Test\n public void testNotIsNullCriteria() throws Exception {\n String sql = \"Select a From db.g Where Not a IS NULL\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, \"a\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, \"db.g\");\n\n Node notCriteriaNode = verify(queryNode, Query.CRITERIA_REF_NAME, NotCriteria.ID);\n \n Node isNullCriteriaNode = verify(notCriteriaNode, NotCriteria.CRITERIA_REF_NAME, IsNullCriteria.ID);\n verifyElementSymbol(isNullCriteriaNode, IsNullCriteria.EXPRESSION_REF_NAME, \"a\");\n \n verifySql(\"SELECT a FROM db.g WHERE NOT (a IS NULL)\", fileNode);\n }", "@Test\n public void testSearchFilter_WithoutAddedSearchBase_WithoutParensInQuery_WithoutParensInParam() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"samaccountname=mary.olowu\");\n request.setParameters(parameters);\n\n BridgeError expectedError = null;\n RecordList list = null;\n try {\n list = getAdapter().search(request);\n } catch (BridgeError e) {\n expectedError = e;\n }\n\n assertNotNull(expectedError);\n }", "public Query notEqual(String key, Object value) {\n Preconditions.checkNotNull(key);\n builder.addFilter(builder.getOperator(QueryFilterBuilder.Operators.NOTEQUAL), key, value);\n return this;\n }", "@Test\n public void executeEmptySearch() {\n emptySearchFields();\n\n int counterBefore = AccountDAO.getSearchID();\n\n //Even with empty fields, the search should be created and executed\n presenter.doSearch();\n Assert.assertEquals(counterBefore + 1, AccountDAO.getSearchID());\n }", "@Test\n\tpublic void basic_courses_without_students(){\n\t\t\n\t\tCriteriaBuilder criteriaBuilder = em.getCriteriaBuilder();\n\t\tCriteriaQuery<Course> criteriaQuery = criteriaBuilder.createQuery(Course.class);\n\t\t\n\t\t//2. Define root tables which are involved into query\n\t\tRoot<Course> courseRoot = criteriaQuery.from(Course.class);\t\t\n\n\t\t//3. Define predicate using criteria builder\n\t\tPredicate isEmptyStudentPredicate = criteriaBuilder.isEmpty(courseRoot.get(\"students\"));\n\t\t\n\t\t//4. Add predictes to the criteria query\n\t\tcriteriaQuery.where(isEmptyStudentPredicate);\n\t\t\n\t\t//5. Defined Typed Query\n\t\tTypedQuery<Course> query = em.createQuery(criteriaQuery.select(courseRoot));\n\t\t\n\t\tList<Course> resultList = query.getResultList();\n\t\t\n\t\tlogger.info(\"isEMPTY STUDENT COURSES ==> {}\", resultList);\n\t\t\t\n\t\t\n\t}", "public static DuplicateNameMatch newEmptyMatch() {\r\n return new Mutable(null, null);\r\n }", "public search() {\n }", "public static DefaultExpression empty() { throw Extensions.todo(); }", "public static List<String> filter_empty(String[] arr){\n\t\tboolean contient_added = false;\n\t\tList<String> out = new ArrayList<String>();\n\t\tfor(String s : arr) {\n\t\t\tif(s.trim().length() > 0){\n\t\t\t\tif(s.equals(\"CONTIENT\")){\n\t\t\t\t\tif(contient_added){\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tcontient_added = true;\n\t\t\t\t}\n\t\t\t\tout.add(s);\n\t\t\t}\n\t\t}\n\t\treturn out;\n\t}", "public Builder clearSearchNodeCharacteristicIdsNull() {\n \n searchNodeCharacteristicIdsNull_ = false;\n onChanged();\n return this;\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> containsNone(String field, String... values);", "public Units whereNot(UnitSelector.BooleanSelector selector)\n\t{\n\t\tUnits result = new Units();\n\t\tfor (Unit unit : this)\n\t\t{\n\t\t\tif (!selector.isTrueFor(unit))\n\t\t\t{\n\t\t\t\tresult.add(unit);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public NotCondition() {\r\n\t\tsuper();\r\n\t}", "public void clearSearch(){\n search.clear();\n }", "private Boolean nonEmptyQuery(String query){\n\t\tBoolean isCorrect = false;\n\t\tString [] queryElements = query.split(\"--\");\n\t\tif(queryElements.length==2 && !queryElements[0].isEmpty() && !queryElements[1].isEmpty())\n\t\t\tisCorrect = true;\n\t\treturn isCorrect;\n\t}", "public abstract void makeEmpty();", "public SeleniumQueryObject not(String selector) {\n\t\treturn NotFunction.not(this, this.elements, selector);\n\t}", "public static TextP notContaining(final String value) {\n return new TextP(Text.notContaining, value);\n }", "public static ArticleFilter none() {\n return new ArticleFilter() {\n @Override public boolean testArticle(PubmedArticle article) {\n return false;\n };\n };\n }", "@Test\n\tpublic void notWordGrepTest() throws Exception{\n\t\t// word is 'unconstitutional'\n\t\tHashSet<String> grepFound = loadGrepResults(\"unconstitutional\");\n\t\tCollection<Page> index = queryTest.query(\"!unconstitutional\");\n\t\tHashSet<String> indexFound = new HashSet<String>();\n\n\t\tfor (Page p : index)\n\t\t\tindexFound.add(p.getURL().getPath().toLowerCase());\n\t\t\n\t\t// 9359 valid files in RHF\n\t\tassertEquals(indexFound.size(), 9359 - grepFound.size());\n\t\t\n\t\t// check that the sets are disjoint\n\t\tfor (String s : indexFound)\n\t\t\tassertFalse(grepFound.contains(s));\n\t\tfor (String s : grepFound)\n\t\t\tassertFalse(indexFound.contains(s));\n\t}", "public Builder clearSearchPersonTypeIdNull() {\n \n searchPersonTypeIdNull_ = false;\n onChanged();\n return this;\n }", "public Builder clearSearchValue() {\n if (searchValueBuilder_ == null) {\n searchValue_ = null;\n onChanged();\n } else {\n searchValue_ = null;\n searchValueBuilder_ = null;\n }\n\n return this;\n }", "public String conductUnRestrictedSearchForItem()\r\n\t{\r\n\t\tAdvancedSearch_Model query = new AdvancedSearch_Model();\r\n\t\t\r\n\t\tif (this.typeFilter.equals(\"Subject\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.CONTAIN, Constants.SEARCH_DOCUMENT_FIELD_CATEGORY,\r\n\t\t\t \"\\\"\" + this.selectedItem.getTerm() + \"\\\"\");\r\n\t\t}\r\n\t\tif (this.typeFilter.equals(\"Type\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.TERM_QUERY, Constants.SEARCH_DOCUMENT_FIELD_TYPE, this.selectedItem.getTerm());\r\n\t\t}\r\n\t\tif (this.typeFilter.equals(\"Creator\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.CONTAIN, Constants.SEARCH_DOCUMENT_FIELD_CREATOR,\r\n\t\t\t \"\\\"\" + this.selectedItem.getTerm() + \"\\\"\");\r\n\t\t}\r\n\t\tif (this.typeFilter.equals(\"Location\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.TERM_QUERY, Constants.SEARCH_DOCUMENT_FIELD_LOCATION,\r\n\t\t\t this.selectedItem.getTerm());\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.TERM_QUERY, Constants.SEARCH_DOCUMENT_FIELD_TYPE, this.selectedItem.getType());\r\n\t\t}\r\n\t\t\r\n\t\t// Set the AdvancedSearch_Model on the Search Backing Bean\r\n\t\tthis.searchBackingBean.setAdvancedQueryModel(query);\r\n\t\tthis.searchBackingBean.setSimpleOrAdvanced(SimpleOrAdvanced.ADVANCED);\r\n\t\tthis.searchBackingBean.setSearchType(\"all\");\r\n\t\tthis.searchBackingBean.autoSearch();\r\n\t\t\r\n\t\treturn \"search\";\r\n\t}", "default Filter<T> negate()\n {\n final Filter<T> parent = this;\n\n return new Filter<T>()\n {\n @Override\n public boolean isFiltered(final T element)\n {\n return !parent.isFiltered(element);\n }\n\n @Override\n public Filter<T> negate()\n {\n return parent;\n }\n };\n }", "@Test\n void testAndFilterWithoutExplicitIndex() {\n Query q = newQueryFromEncoded(\"?query=trump\" +\n \"&model.type=all\" +\n \"&model.defaultIndex=text\" +\n \"&filter=%2B%28filterTerm%29\");\n assertEquals(\"AND text:trump |text:filterTerm\",\n q.getModel().getQueryTree().toString());\n }", "@Test(expected=IllegalArgumentException.class)\r\n\tpublic void emptyFlightSearch() {\r\n\t\tList<FlightAbstract> flightResults = SearchEngine.flightSearch(newFlightSearch);\r\n\t}", "boolean canMatchEmptyString() {\n return false;\n }", "boolean not_query(DiagnosticChain diagnostics, Map<Object, Object> context);", "@Override\n\tpublic Object[] advSearchCondition() {\n\t\treturn null;\n\t}", "public static UnaryExpression isNotEmpty(String propertyName) {\n return new UnaryExpression(Operator.NOT_EMPTY, propertyName);\n }", "public static NonpositiveRequiredCapabilityMatch newEmptyMatch() {\r\n return new Mutable(null, null, null, null);\r\n }", "@Override\n public void onTextChanged(CharSequence cs, int arg1, int arg2, int arg3) {\n \tSystem.out.println(cs);\n \tsearchTxt = cs; \n \tif(searchTxt.length() == 0) {\n \t\tMainActivity.this.adapter.getFilter().filter(null);\n \t}\n }", "@Test\n public void testSearchFilter_WithoutAddedSearchBase_WithParens() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"(<%=parameter[\\\"Search String\\\"]%>)\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"samaccountname=mary.olowu\");\n request.setParameters(parameters);\n\n BridgeError unexpectedError = null;\n RecordList list = null;\n try {\n list = getAdapter().search(request);\n } catch (BridgeError e) {\n unexpectedError = e;\n }\n\n assertNull(unexpectedError);\n assertTrue(list.getRecords().size() > 0);\n }", "@Test\n public void executeValidSearch_notAllFields(){\n emptySearchFields();\n view.setFloor(1);\n view.setBedrooms(1);\n view.setBathrooms(1);\n presenter.doSearch();\n Assert.assertTrue(presenter.hasNextResult());\n }", "default Boolean isEmpty(){\n return builder().length() == 0;\n }", "public void not() {\n\t\tfinal EWAHIterator i =\n\t\t\t\tnew EWAHIterator(this.buffer, this.actualsizeinwords);\n\t\tif (!i.hasNext())\n\t\t\treturn;\n\t\twhile (true) {\n\t\t\tfinal RunningLengthWord rlw1 = i.next();\n\t\t\tif (rlw1.getRunningLength() > 0)\n\t\t\t\trlw1.setRunningBit(!rlw1.getRunningBit());\n\t\t\tfor (int j = 0; j < rlw1.getNumberOfLiteralWords(); ++j) {\n\t\t\t\ti.buffer()[i.dirtyWords() + j] =\n\t\t\t\t\t\t~i.buffer()[i.dirtyWords() + j];\n\t\t\t}\n\t\t\tif (!i.hasNext()) {// must potentially adjust the last dirty word\n\t\t\t\tif (rlw1.getNumberOfLiteralWords() == 0)\n\t\t\t\t\treturn;\n\t\t\t\tint usedbitsinlast = this.sizeinbits % wordinbits;\n\t\t\t\tif (usedbitsinlast == 0)\n\t\t\t\t\treturn;\n\t\t\t\ti.buffer()[i.dirtyWords() + rlw1.getNumberOfLiteralWords() - 1] &=\n\t\t\t\t\t\t((oneMask) >>> (wordinbits - usedbitsinlast));\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "CampusSearchQuery generateQuery();", "abstract public void search();", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> containsNone(EntityField field, String... values);", "@Override\n\tpublic void visit(NotExpression arg0) {\n\t\t\n\t}", "public void clearSearch() {\n searchParam = \"\";\n lazyModel = null;\n listRemotoFake = null;\n first = 0;\n rows = 10;\n }", "AggregationBuilder buildExcludeFilteredAggregation(Set<String> excludeNames);", "public abstract QueryElement addNotEquals(String property, Object value);", "public Builder clearMissingResults() {\n \n missingResults_ = false;\n onChanged();\n return this;\n }", "@Test\n\tpublic void shouldNotReturnResultFilteredByDocumentType()\n\t{\n\t\tlogin(USER_MARK_RIVERS_RUSTIC_HW_COM);\n\n\t\tfinal SearchPageData<B2BDocumentModel> result = pagedB2BDocumentDao.getAllPagedDocuments(\n\t\t\t\tcreatePageableData(0, 10, StringUtils.EMPTY), Collections.singletonList(AccountSummaryAddonUtils\n\t\t\t\t\t\t.createTypeCriteriaObject(UNKNOWN, StringUtils.EMPTY, FILTER_BY_DOCUMENT_TYPE)));\n\n\t\tTestCase.assertEquals(0, result.getResults().size());\n\t}", "private List<Factor> getEmpty(List<Factor> factors) {\n ArrayList<Factor> filt = new ArrayList<Factor>();\n for (Factor f : factors) {\n if (f.getVars().size() == 0) {\n filt.add(f);\n }\n }\n return filt;\n }", "public MatchNoneQueryBuilder(StreamInput in) throws IOException {\n super(in);\n }", "public abstract Search defaultSearch(StringBuilder sb);", "public boolean empty();", "protected void checkContainsNone(final String msg,\n final NullnessAnnotation... search) {\n if (!violationFound && !containsAny(search)) {\n violation(msg);\n }\n }", "private void searchFunction() {\n\t\t\r\n\t}", "public SearchConditionSB() {\r\n }", "public SingleRuleBuilder orNot(String predicate, String... variables) { return or(true, predicate, variables); }", "@Test\n public void testSomeToStrings() {\n System.out.println(new JresBoolQuery()\n .must(new JresQueryStringQuery(\"stuff:true\").withDefaultOperator(\"AND\"))\n .should(\n new JresMatchQuery(\"color\", \"orange\"),\n new JresTermQuery(\"key\", \"abc123\")\n )\n .mustNot(new JresDisMaxQuery(\n new JresMatchQuery(\"color\", \"yellow\"),\n new JresMatchQuery(\"color\", \"green\")\n ))\n );\n }", "public DocumentMutation empty();", "boolean isExcluded();", "public boolean empty() {\r\n if (text.equals(\"\") ||\r\n MoreString.indexOfIgnoreCase(text, \"<title>404 Not Found\") >= 0)\r\n return true;\r\n return false;\r\n }", "@Test\n public void testSearch3() throws Exception\n {\n unauthenticate();\n Assert.isTrue(actorService.search(\"NONEXISTENTUSER\").isEmpty());\n }", "abstract void clearSearchResults();", "@Test\n public void testNotEquals2() throws Exception {\n String sql = \"SELECT a from db.g where a != 'value'\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, \"a\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, \"db.g\");\n\n Node criteriaNode = verify(queryNode, Query.CRITERIA_REF_NAME, CompareCriteria.ID);\n verifyProperty(criteriaNode, AbstractCompareCriteria.OPERATOR_PROP_NAME, CriteriaOperator.Operator.NE.name());\n verifyElementSymbol(criteriaNode, AbstractCompareCriteria.LEFT_EXPRESSION_REF_NAME, \"a\");\n verifyConstant(criteriaNode, CompareCriteria.RIGHT_EXPRESSION_REF_NAME, \"value\");\n \n verifySql(\"SELECT a FROM db.g WHERE a <> 'value'\", fileNode);\n }", "public void clear() {\n\t\toredCriteria.clear();\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t}", "public Builder clearConditionListNull() {\n \n conditionListNull_ = false;\n onChanged();\n return this;\n }", "public void assertSearchResultShouldNotContain(String searchKeyword) {\n List<List<String>> rowLst = getAllRows();\n for (List<String> row : rowLst) {\n boolean isPresent = false;\n for (String col : row) {\n if (col.toLowerCase().contains(searchKeyword.toLowerCase())) {\n isPresent = true;\n break;\n }\n }\n assertFalse(isPresent,\n \"Search keyword '\" + searchKeyword + \"' is present in row: \" + row);\n }\n }", "public void search() {\r\n \t\r\n }", "@Test\n\tpublic void notPhraseGrepTest() throws Exception {\n\t\t// phrase is \"I am forced\"\n\t\tHashSet<String> grepFound = loadGrepResults(\"!i+am+forced\");\n\t\tCollection<Page> index = queryTest.query(\"! \\\"I am Forced\\\"\");\n\t\tHashSet<String> indexFound = new HashSet<String>();\n\n\t\tfor (Page p : index)\n\t\t\tindexFound.add(p.getURL().getPath().toLowerCase());\n\t\tassertEquals(grepFound, indexFound);\n\t}", "public MagicSearch createMagicSearch();", "public void search() {\n }", "public void clear() {\r\n\t\toredCriteria.clear();\r\n\t}", "public void clear() {\r\n\t\toredCriteria.clear();\r\n\t}", "public void clear() {\r\n\t\toredCriteria.clear();\r\n\t}", "public void clear() {\r\n\t\toredCriteria.clear();\r\n\t}", "public static UnaryExpression isEmpty(String propertyName) {\n return new UnaryExpression(Operator.EMPTY, propertyName);\n }", "abstract boolean canMatchEmptyString();", "QueryElement addOrEmpty(String collectionProperty);" ]
[ "0.67211384", "0.6099998", "0.6028967", "0.59099", "0.58927876", "0.58197266", "0.58197266", "0.57896465", "0.57333624", "0.5697793", "0.5683615", "0.5647372", "0.56052405", "0.5538864", "0.5505396", "0.5494422", "0.54746556", "0.5431063", "0.5425625", "0.5418956", "0.53679174", "0.5330217", "0.5310312", "0.5310312", "0.53100395", "0.5280774", "0.52748203", "0.5261609", "0.5258048", "0.5251874", "0.5251184", "0.52469385", "0.5245461", "0.52338475", "0.5233297", "0.52302814", "0.522871", "0.5224999", "0.5209385", "0.5169581", "0.5165107", "0.51590556", "0.5156146", "0.5144851", "0.5137909", "0.5106898", "0.50934356", "0.5092885", "0.5091774", "0.50877744", "0.50855744", "0.5084132", "0.5067089", "0.50633657", "0.5057881", "0.50386846", "0.5038304", "0.5037677", "0.50207126", "0.4996214", "0.49828315", "0.49786106", "0.49768695", "0.49752772", "0.497142", "0.4969804", "0.49612615", "0.4960717", "0.4956843", "0.49505743", "0.4950502", "0.49365482", "0.49318525", "0.4923735", "0.49201617", "0.4919452", "0.49137712", "0.48943305", "0.48931038", "0.48904505", "0.48843494", "0.48822686", "0.48746374", "0.4860054", "0.48534727", "0.48494372", "0.48494372", "0.4844418", "0.48428744", "0.48368436", "0.48331675", "0.48319486", "0.48310104", "0.48277077", "0.48277077", "0.48277077", "0.48277077", "0.48267823", "0.48252454", "0.48237222" ]
0.6227925
1
Adds an operand to this expression
public void add(Search search) { if(search instanceof CompoundSearch) ((CompoundSearch) search).setParent(this); theOperands = ArrayUtils.add(theOperands, search); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void add(String operand, Integer value) throws Exception {\n if (operand.equals(\"=\")){\n Integer accVal = dataMemory.getData(0);\n dataMemory.setData(0, accVal + value);\n }else if (operand.equals(\" \")){\n Integer regVal = dataMemory.getData(value);\n Integer accVal = dataMemory.getData(0);\n dataMemory.setData(0, accVal + regVal);\n }else if (operand.equals(\"*\")){\n Integer newDirection = dataMemory.getData(value);\n Integer regVal = dataMemory.getData(newDirection);\n Integer accVal = dataMemory.getData(0);\n dataMemory.setData(0, accVal + regVal);\n }else{\n throw new IllegalArgumentException(\"No valid operand\");\n }\n }", "Expression addExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = multExpression();\r\n\t\twhile(isKind(OP_PLUS, OP_MINUS)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = multExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "public void addop() {\n if (lexer.token != Symbol.PLUS && lexer.token != Symbol.MINUS) {\n error.signal(\"Wrong operator for addop. Using not a plus or not a minus.\");\n }\n lexer.nextToken();\n }", "public <V extends Number> FluentExp<V> plus (SQLExpression<V> expr)\n {\n return new Add<V>(this, expr);\n }", "public void appendOperator(String operator){\n if(validateExp(currentExp)){\n currentExp+=operator;\n calculationResult.onExpressionChange(currentExp,true);\n count++;\n }\n }", "@Override\n public Expression asExpression(TokenValue<?> token, Deque<Value<Expression>> next) {\n Additive op = token.getValue(); // + | -\n // + is always followed by an argument\n Expression arg = next.pollFirst().getTarget(); // b argument\n Term<Additive> term = new Term<>(op, arg);\n return term;\n }", "public void addOperator(String operator) {\n this.operators.add(operator);\n }", "public ArithmaticExpression add(Expression expression) {\n this.getChildren().add(expression);\n return this;\n }", "ExpOperand createExpOperand();", "BaseNumber add(BaseNumber operand);", "public void addOperator(Operator op) {\r\n\t\telements.add(op);\r\n\t}", "long addExpression(Expression expression);", "PlusExpr (Expr l, Expr r) {\n leftOperand = l;\n rightOperand = r;\n }", "public static BinaryExpression add(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public AdditionOp(Expression left, Expression right, String id){\n super(left, \"+\", right, id);\n this.setType(ExpType.ADDITION);\n }", "public OperandCondition(Operand operand) {\n this.operand = operand;\n }", "public void addOperator(Operator operator){\n _operators.add(operator);\n }", "public final void rule__AddExp__OpAlternatives_1_1_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1899:1: ( ( '+' ) | ( '-' ) )\n int alt14=2;\n int LA14_0 = input.LA(1);\n\n if ( (LA14_0==12) ) {\n alt14=1;\n }\n else if ( (LA14_0==13) ) {\n alt14=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 14, 0, input);\n\n throw nvae;\n }\n switch (alt14) {\n case 1 :\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1900:1: ( '+' )\n {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1900:1: ( '+' )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1901:1: '+'\n {\n before(grammarAccess.getAddExpAccess().getOpPlusSignKeyword_1_1_0_0()); \n match(input,12,FOLLOW_12_in_rule__AddExp__OpAlternatives_1_1_04042); \n after(grammarAccess.getAddExpAccess().getOpPlusSignKeyword_1_1_0_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1908:6: ( '-' )\n {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1908:6: ( '-' )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1909:1: '-'\n {\n before(grammarAccess.getAddExpAccess().getOpHyphenMinusKeyword_1_1_0_1()); \n match(input,13,FOLLOW_13_in_rule__AddExp__OpAlternatives_1_1_04062); \n after(grammarAccess.getAddExpAccess().getOpHyphenMinusKeyword_1_1_0_1()); \n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "Operand createOperand();", "public final Expr addExpr() throws RecognitionException {\r\n Expr result = null;\r\n\r\n int addExpr_StartIndex = input.index();\r\n\r\n Token op=null;\r\n Expr lhs =null;\r\n\r\n Expr rhs =null;\r\n\r\n\r\n try {\r\n if ( state.backtracking>0 && alreadyParsedRule(input, 15) ) { return result; }\r\n\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:121:5: (lhs= mulExpr (op= ( '+' | '-' ) rhs= mulExpr )* )\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:121:9: lhs= mulExpr (op= ( '+' | '-' ) rhs= mulExpr )*\r\n {\r\n pushFollow(FOLLOW_mulExpr_in_addExpr674);\r\n lhs=mulExpr();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result =lhs; }\r\n\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:121:46: (op= ( '+' | '-' ) rhs= mulExpr )*\r\n loop10:\r\n do {\r\n int alt10=2;\r\n int LA10_0 = input.LA(1);\r\n\r\n if ( ((LA10_0 >= 24 && LA10_0 <= 25)) ) {\r\n alt10=1;\r\n }\r\n\r\n\r\n switch (alt10) {\r\n \tcase 1 :\r\n \t // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:121:48: op= ( '+' | '-' ) rhs= mulExpr\r\n \t {\r\n \t op=(Token)input.LT(1);\r\n\r\n \t if ( (input.LA(1) >= 24 && input.LA(1) <= 25) ) {\r\n \t input.consume();\r\n \t state.errorRecovery=false;\r\n \t state.failed=false;\r\n \t }\r\n \t else {\r\n \t if (state.backtracking>0) {state.failed=true; return result;}\r\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\r\n \t throw mse;\r\n \t }\r\n\r\n\r\n \t pushFollow(FOLLOW_mulExpr_in_addExpr692);\r\n \t rhs=mulExpr();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return result;\r\n\r\n \t if ( state.backtracking==0 ) { \r\n \t if ((op!=null?op.getText():null).equals(\"+\")) {\r\n \t result = new Add(result, rhs);\r\n \t }\r\n \t if ((op!=null?op.getText():null).equals(\"-\")) {\r\n \t result = new Sub(result, rhs); \r\n \t }\r\n \t }\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop10;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n if ( state.backtracking>0 ) { memoize(input, 15, addExpr_StartIndex); }\r\n\r\n }\r\n return result;\r\n }", "public final void rule__AstExpressionAdditive__OperatorAlternatives_1_1_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2946:1: ( ( '+' ) | ( '-' ) )\n int alt17=2;\n int LA17_0 = input.LA(1);\n\n if ( (LA17_0==28) ) {\n alt17=1;\n }\n else if ( (LA17_0==29) ) {\n alt17=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 17, 0, input);\n\n throw nvae;\n }\n switch (alt17) {\n case 1 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2947:1: ( '+' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2947:1: ( '+' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2948:1: '+'\n {\n before(grammarAccess.getAstExpressionAdditiveAccess().getOperatorPlusSignKeyword_1_1_0_0()); \n match(input,28,FOLLOW_28_in_rule__AstExpressionAdditive__OperatorAlternatives_1_1_06365); \n after(grammarAccess.getAstExpressionAdditiveAccess().getOperatorPlusSignKeyword_1_1_0_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2955:6: ( '-' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2955:6: ( '-' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2956:1: '-'\n {\n before(grammarAccess.getAstExpressionAdditiveAccess().getOperatorHyphenMinusKeyword_1_1_0_1()); \n match(input,29,FOLLOW_29_in_rule__AstExpressionAdditive__OperatorAlternatives_1_1_06385); \n after(grammarAccess.getAstExpressionAdditiveAccess().getOperatorHyphenMinusKeyword_1_1_0_1()); \n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public static BinaryExpression add(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }", "public <V extends Number> FluentExp<V> plus (V value)\n {\n return new Add<V>(this, value);\n }", "public void setOperand(Number value) {\n setAttributeInternal(OPERAND, value);\n }", "void visit(PlusExpression expression);", "public final EObject ruleAdditionOperator() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4767:28: ( ( () otherlv_1= '+' ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4768:1: ( () otherlv_1= '+' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4768:1: ( () otherlv_1= '+' )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4768:2: () otherlv_1= '+'\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4768:2: ()\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4769:5: \r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n current = forceCreateModelElement(\r\n grammarAccess.getAdditionOperatorAccess().getAdditionOperatorAction_0(),\r\n current);\r\n \r\n }\r\n\r\n }\r\n\r\n otherlv_1=(Token)match(input,64,FOLLOW_64_in_ruleAdditionOperator10657); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getAdditionOperatorAccess().getPlusSignKeyword_1());\r\n \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "OpFunctionArgOperand createOpFunctionArgOperand();", "public final void rule__XAdditiveExpression__FeatureAssignment_1_0_0_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17607:1: ( ( ( ruleOpAdd ) ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17608:1: ( ( ruleOpAdd ) )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17608:1: ( ( ruleOpAdd ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17609:1: ( ruleOpAdd )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAdditiveExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); \r\n }\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17610:1: ( ruleOpAdd )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17611:1: ruleOpAdd\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAdditiveExpressionAccess().getFeatureJvmIdentifiableElementOpAddParserRuleCall_1_0_0_1_0_1()); \r\n }\r\n pushFollow(FOLLOW_ruleOpAdd_in_rule__XAdditiveExpression__FeatureAssignment_1_0_0_135558);\r\n ruleOpAdd();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAdditiveExpressionAccess().getFeatureJvmIdentifiableElementOpAddParserRuleCall_1_0_0_1_0_1()); \r\n }\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAdditiveExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__XAdditiveExpression__FeatureAssignment_1_0_0_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12362:1: ( ( ( ruleOpAdd ) ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12363:1: ( ( ruleOpAdd ) )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12363:1: ( ( ruleOpAdd ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12364:1: ( ruleOpAdd )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXAdditiveExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12365:1: ( ruleOpAdd )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12366:1: ruleOpAdd\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXAdditiveExpressionAccess().getFeatureJvmIdentifiableElementOpAddParserRuleCall_1_0_0_1_0_1()); \n }\n pushFollow(FOLLOW_ruleOpAdd_in_rule__XAdditiveExpression__FeatureAssignment_1_0_0_124806);\n ruleOpAdd();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXAdditiveExpressionAccess().getFeatureJvmIdentifiableElementOpAddParserRuleCall_1_0_0_1_0_1()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXAdditiveExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__XAdditiveExpression__FeatureAssignment_1_0_0_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:17630:1: ( ( ( ruleOpAdd ) ) )\r\n // InternalDroneScript.g:17631:2: ( ( ruleOpAdd ) )\r\n {\r\n // InternalDroneScript.g:17631:2: ( ( ruleOpAdd ) )\r\n // InternalDroneScript.g:17632:3: ( ruleOpAdd )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAdditiveExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); \r\n }\r\n // InternalDroneScript.g:17633:3: ( ruleOpAdd )\r\n // InternalDroneScript.g:17634:4: ruleOpAdd\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAdditiveExpressionAccess().getFeatureJvmIdentifiableElementOpAddParserRuleCall_1_0_0_1_0_1()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleOpAdd();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAdditiveExpressionAccess().getFeatureJvmIdentifiableElementOpAddParserRuleCall_1_0_0_1_0_1()); \r\n }\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAdditiveExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public AddExp(Exp term, Exp exp) {\n\t\tthis.term = term;\n\t\tthis.exp = exp;\n\t}", "public boolean setOperand(int operandNumber, String operandValue);", "public final Expr addExpr() throws RecognitionException {\n Expr result = null;\n\n int addExpr_StartIndex = input.index();\n\n Token op=null;\n Expr lhs =null;\n\n Expr rhs =null;\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 11) ) { return result; }\n\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:124:5: (lhs= mulExpr (op= ( '+' | '-' ) rhs= mulExpr )* )\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:124:9: lhs= mulExpr (op= ( '+' | '-' ) rhs= mulExpr )*\n {\n pushFollow(FOLLOW_mulExpr_in_addExpr547);\n lhs=mulExpr();\n\n state._fsp--;\n if (state.failed) return result;\n\n if ( state.backtracking==0 ) { result =lhs; }\n\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:124:46: (op= ( '+' | '-' ) rhs= mulExpr )*\n loop8:\n do {\n int alt8=2;\n int LA8_0 = input.LA(1);\n\n if ( ((LA8_0 >= 21 && LA8_0 <= 22)) ) {\n alt8=1;\n }\n\n\n switch (alt8) {\n \tcase 1 :\n \t // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:124:48: op= ( '+' | '-' ) rhs= mulExpr\n \t {\n \t op=(Token)input.LT(1);\n\n \t if ( (input.LA(1) >= 21 && input.LA(1) <= 22) ) {\n \t input.consume();\n \t state.errorRecovery=false;\n \t state.failed=false;\n \t }\n \t else {\n \t if (state.backtracking>0) {state.failed=true; return result;}\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t throw mse;\n \t }\n\n\n \t pushFollow(FOLLOW_mulExpr_in_addExpr565);\n \t rhs=mulExpr();\n\n \t state._fsp--;\n \t if (state.failed) return result;\n\n \t if ( state.backtracking==0 ) { \n \t if ((op!=null?op.getText():null).equals(\"+\")) {\n \t result = new Add(result, rhs);\n \t }\n \t if ((op!=null?op.getText():null).equals(\"-\")) {\n \t result = new Sub(result, rhs); \n \t }\n \t }\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop8;\n }\n } while (true);\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 if ( state.backtracking>0 ) { memoize(input, 11, addExpr_StartIndex); }\n\n }\n return result;\n }", "public void enfoncerPlus() {\n\t\ttry {\n\t\t\tthis.op = new Plus();\n\t\t\tif (!raz) {\n\t\t\t\tthis.pile.push(valC);\n\t\t\t}\n\t\t\tint a = this.pile.pop(); int b = this.pile.pop();\n\t\t\tthis.valC = this.op.eval(b,a);\n\t\t\tthis.pile.push(this.valC);\n\t\t\tthis.raz = true;\n\t\t}\n\t\tcatch (EmptyStackException e) {\n\t\t\tSystem.out.println(\"Erreur de syntaxe : Saisir deux operandes avant de saisir un operateur\");\n\t\t}\n\t}", "public ArithmaticExpression add(Object object) {\n this.getChildren().add(new ConstantExpression(object));\n return this;\n }", "public final void rule__XOtherOperatorExpression__RightOperandAssignment_1_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:17615:1: ( ( ruleXAdditiveExpression ) )\r\n // InternalDroneScript.g:17616:2: ( ruleXAdditiveExpression )\r\n {\r\n // InternalDroneScript.g:17616:2: ( ruleXAdditiveExpression )\r\n // InternalDroneScript.g:17617:3: ruleXAdditiveExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXOtherOperatorExpressionAccess().getRightOperandXAdditiveExpressionParserRuleCall_1_1_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleXAdditiveExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXOtherOperatorExpressionAccess().getRightOperandXAdditiveExpressionParserRuleCall_1_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public void operand(String str) {\n postFix.add(str);\n }", "public final void rule__XOtherOperatorExpression__RightOperandAssignment_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12347:1: ( ( ruleXAdditiveExpression ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12348:1: ( ruleXAdditiveExpression )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12348:1: ( ruleXAdditiveExpression )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:12349:1: ruleXAdditiveExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXOtherOperatorExpressionAccess().getRightOperandXAdditiveExpressionParserRuleCall_1_1_0()); \n }\n pushFollow(FOLLOW_ruleXAdditiveExpression_in_rule__XOtherOperatorExpression__RightOperandAssignment_1_124771);\n ruleXAdditiveExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXOtherOperatorExpressionAccess().getRightOperandXAdditiveExpressionParserRuleCall_1_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public void buttonPlus(View v) {\n\n /* Add the character to the expression and update screen. */\n expression += \"+\";\n\n TextView expressionText = (TextView) findViewById(R.id.expressionText);\n expressionText.setText(expression);\n }", "ColumnOperand createColumnOperand();", "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}", "Unary operator(Operator o);", "public void visit(Operand operand);", "public FluentExp<Number> dateAdd (SQLExpression<?> expr)\n {\n return new Add<Number>(this, expr);\n }", "public GraphNode addOperation(String op){\n\t\tGraphNode opVar = new GraphNode(addElement(op, 3), 3);\n\t\tauthGraph.addVertex(opVar);\n\t\treturn opVar;\n\t}", "public Addition(int precedence){\n super(\"+\", precedence);\n }", "public void add()\r\n {\r\n resultDoubles = Operations.addition(leftOperand, rightOperand);\r\n resultResetHelper();\r\n }", "public final void rule__OpAdd__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1953:1: ( ( '+' ) | ( '-' ) )\n int alt8=2;\n int LA8_0 = input.LA(1);\n\n if ( (LA8_0==23) ) {\n alt8=1;\n }\n else if ( (LA8_0==24) ) {\n alt8=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 8, 0, input);\n\n throw nvae;\n }\n switch (alt8) {\n case 1 :\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1954:1: ( '+' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1954:1: ( '+' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1955:1: '+'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpAddAccess().getPlusSignKeyword_0()); \n }\n match(input,23,FOLLOW_23_in_rule__OpAdd__Alternatives4123); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpAddAccess().getPlusSignKeyword_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1962:6: ( '-' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1962:6: ( '-' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1963:1: '-'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpAddAccess().getHyphenMinusKeyword_1()); \n }\n match(input,24,FOLLOW_24_in_rule__OpAdd__Alternatives4143); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpAddAccess().getHyphenMinusKeyword_1()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public static UnaryExpression unaryPlus(Expression expression) {\n return makeUnary(ExpressionType.UnaryPlus, expression, expression.getType());\n }", "public AddInstruction(String label, String op) {\n\t\tsuper(label, op);\n\t}", "public final void rule__XOtherOperatorExpression__RightOperandAssignment_1_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17592:1: ( ( ruleXAdditiveExpression ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17593:1: ( ruleXAdditiveExpression )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17593:1: ( ruleXAdditiveExpression )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:17594:1: ruleXAdditiveExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXOtherOperatorExpressionAccess().getRightOperandXAdditiveExpressionParserRuleCall_1_1_0()); \r\n }\r\n pushFollow(FOLLOW_ruleXAdditiveExpression_in_rule__XOtherOperatorExpression__RightOperandAssignment_1_135523);\r\n ruleXAdditiveExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXOtherOperatorExpressionAccess().getRightOperandXAdditiveExpressionParserRuleCall_1_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final ASTOperatorParser.expr_return expr() throws RecognitionException {\n ASTOperatorParser.expr_return retval = new ASTOperatorParser.expr_return();\n retval.start = input.LT(1);\n int expr_StartIndex = input.index();\n\n Object root_0 = null;\n\n Token char_literal4 = null;\n Token char_literal5 = null;\n ParserRuleReturnScope mexpr3 = null;\n ParserRuleReturnScope mexpr6 = null;\n\n Object char_literal4_tree = null;\n Object char_literal5_tree = null;\n\n try {\n if (state.backtracking > 0 && alreadyParsedRule(input, 2)) {\n return retval;\n }\n\n // /compiler-examples/src-antlr/antlr/astexample/ASTOperator.g:20:2: ( mexpr ( ( '+' ^| '-' ^) mexpr )* )\n // /compiler-examples/src-antlr/antlr/astexample/ASTOperator.g:20:4: mexpr ( ( '+' ^| '-' ^) mexpr )*\n {\n root_0 = (Object) adaptor.nil();\n\n pushFollow(FOLLOW_mexpr_in_expr63);\n mexpr3 = mexpr();\n state._fsp--;\n if (state.failed) return retval;\n if (state.backtracking == 0)\n adaptor.addChild(root_0, mexpr3.getTree());\n\n // /compiler-examples/src-antlr/antlr/astexample/ASTOperator.g:20:10: ( ( '+' ^| '-' ^) mexpr )*\n loop2: while (true) {\n int alt2 = 2;\n int LA2_0 = input.LA(1);\n if (((LA2_0 >= 9 && LA2_0 <= 10))) {\n alt2 = 1;\n }\n\n switch (alt2) {\n case 1:\n // /compiler-examples/src-antlr/antlr/astexample/ASTOperator.g:20:11: ( '+' ^| '-' ^) mexpr\n {\n // /compiler-examples/src-antlr/antlr/astexample/ASTOperator.g:20:11: ( '+' ^| '-' ^)\n int alt1 = 2;\n int LA1_0 = input.LA(1);\n if ((LA1_0 == 9)) {\n alt1 = 1;\n } else if ((LA1_0 == 10)) {\n alt1 = 2;\n }\n\n else {\n if (state.backtracking > 0) {\n state.failed = true;\n return retval;\n }\n NoViableAltException nvae = new NoViableAltException(\"\", 1, 0,\n input);\n throw nvae;\n }\n\n switch (alt1) {\n case 1:\n // /compiler-examples/src-antlr/antlr/astexample/ASTOperator.g:20:12: '+' ^\n {\n char_literal4 = (Token) match(input, 9, FOLLOW_9_in_expr67);\n if (state.failed) return retval;\n if (state.backtracking == 0) {\n char_literal4_tree = (Object) adaptor.create(char_literal4);\n root_0 = (Object) adaptor.becomeRoot(\n char_literal4_tree,\n root_0);\n }\n\n }\n break;\n case 2:\n // /compiler-examples/src-antlr/antlr/astexample/ASTOperator.g:20:17: '-' ^\n {\n char_literal5 = (Token) match(input, 10, FOLLOW_10_in_expr70);\n if (state.failed) return retval;\n if (state.backtracking == 0) {\n char_literal5_tree = (Object) adaptor.create(char_literal5);\n root_0 = (Object) adaptor.becomeRoot(\n char_literal5_tree,\n root_0);\n }\n\n }\n break;\n\n }\n\n pushFollow(FOLLOW_mexpr_in_expr74);\n mexpr6 = mexpr();\n state._fsp--;\n if (state.failed) return retval;\n if (state.backtracking == 0)\n adaptor.addChild(root_0, mexpr6.getTree());\n\n }\n break;\n\n default:\n break loop2;\n }\n }\n\n }\n\n retval.stop = input.LT(-1);\n\n if (state.backtracking == 0) {\n retval.tree = (Object) adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n retval.tree = (Object) adaptor.errorNode(\n input,\n retval.start,\n input.LT(-1),\n re);\n } finally {\n // do for sure before leaving\n if (state.backtracking > 0) {\n memoize(input, 2, expr_StartIndex);\n }\n\n }\n return retval;\n }", "private void executeCommand() {\n\t\texpression += operand;\n\t\tdouble execute = command.execute(expression);\n\t\toperand = new StringBuilder(Double.toString(execute));\n\t\tfirstOperand = true;\n\t}", "public static BinaryExpression addAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public final void rule__OpAdd__Alternatives() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:2486:1: ( ( '+' ) | ( '-' ) )\r\n int alt12=2;\r\n int LA12_0 = input.LA(1);\r\n\r\n if ( (LA12_0==30) ) {\r\n alt12=1;\r\n }\r\n else if ( (LA12_0==31) ) {\r\n alt12=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 12, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt12) {\r\n case 1 :\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:2487:1: ( '+' )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:2487:1: ( '+' )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:2488:1: '+'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpAddAccess().getPlusSignKeyword_0()); \r\n }\r\n match(input,30,FOLLOW_30_in_rule__OpAdd__Alternatives5294); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpAddAccess().getPlusSignKeyword_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:2495:6: ( '-' )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:2495:6: ( '-' )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:2496:1: '-'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpAddAccess().getHyphenMinusKeyword_1()); \r\n }\r\n match(input,31,FOLLOW_31_in_rule__OpAdd__Alternatives5314); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpAddAccess().getHyphenMinusKeyword_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public Command createStoreCommand(Operand lhs, Operand rhs);", "public static UnaryExpression unaryPlus(Expression expression, Method method) {\n return makeUnary(ExpressionType.UnaryPlus, expression, expression.getType(), method);\n }", "CriteriaExpression<?> getRightHandOperand();", "public void add(Qryop a) {\n this.args.add(a);\n // flip the flag to accept weight\n this.acceptWeight = true;\n }", "public Fraction plus(Fraction rightOperand){\n\t\tint denom = myDenominator*rightOperand.getDenominator();\n\n\t\tint num = (myNumerator * (denom/myDenominator)) +\n\t\t\t\t\t(rightOperand.getNumerator() * \n\t\t\t\t\t(denom/rightOperand.getDenominator()));\n\t\t\n\t\treturn new Fraction (num, denom);\n\t}", "public static UnaryExpression increment(Expression expression) { throw Extensions.todo(); }", "public void setArithmeticOperator(String value) {\n setAttributeInternal(ARITHMETICOPERATOR, value);\n }", "private void addOp(final Op op) {\n result.add(op);\n }", "public void add(BinMltLinExpr expr) {\n\t\tcoefficients.addAll(expr.coefficients);\n\t\ttermVars.addAll(expr.termVars);\n\t\tconstant += expr.constant;\n\t}", "public void addExpression(ValueChangeEvent event) throws ManagerBeanException {\r\n \tgetController().addExpression( event );\r\n }", "CriteriaExpression<?> getLeftHandOperand();", "SubQueryOperand createSubQueryOperand();", "Unary expr(Expr e);", "public final Enumerator ruleAdditiveOperator() throws RecognitionException {\n Enumerator current = null;\n\n setCurrentLookahead(); resetLookahead(); \n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6799:6: ( ( ( '+' ) | ( '-' ) ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6800:1: ( ( '+' ) | ( '-' ) )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6800:1: ( ( '+' ) | ( '-' ) )\n int alt100=2;\n int LA100_0 = input.LA(1);\n\n if ( (LA100_0==70) ) {\n alt100=1;\n }\n else if ( (LA100_0==61) ) {\n alt100=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"6800:1: ( ( '+' ) | ( '-' ) )\", 100, 0, input);\n\n throw nvae;\n }\n switch (alt100) {\n case 1 :\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6800:2: ( '+' )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6800:2: ( '+' )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6800:4: '+'\n {\n match(input,70,FOLLOW_70_in_ruleAdditiveOperator11918); \n\n current = grammarAccess.getAdditiveOperatorAccess().getAdditionEnumLiteralDeclaration_0().getEnumLiteral().getInstance();\n createLeafNode(grammarAccess.getAdditiveOperatorAccess().getAdditionEnumLiteralDeclaration_0(), null); \n \n\n }\n\n\n }\n break;\n case 2 :\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6806:6: ( '-' )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6806:6: ( '-' )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6806:8: '-'\n {\n match(input,61,FOLLOW_61_in_ruleAdditiveOperator11933); \n\n current = grammarAccess.getAdditiveOperatorAccess().getSubtractionEnumLiteralDeclaration_1().getEnumLiteral().getInstance();\n createLeafNode(grammarAccess.getAdditiveOperatorAccess().getSubtractionEnumLiteralDeclaration_1(), null); \n \n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n resetLookahead(); \n \tlastConsumedNode = currentNode;\n \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public void setOperandA(int val);", "public static BinaryExpression addAssign(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }", "protected void operation(String operator){\n if (this.tail<2){\n this.arr[tail++] = this.value;\n this.arr[tail++] = operator;\n } else{\n if (this.peek() != \")\"){\n this.arr[this.tail++] = this.value;\n }\n this.arr[this.tail++] = operator;\n }\n this.value=\"\"; // reset tracking variables\n this.decimalUsed = false;\n }", "public ExpressionSearch addOps(Search... ops)\n\t\t{\n\t\t\tfor(Search op : ops)\n\t\t\t\tadd(op);\n\t\t\treturn this;\n\t\t}", "public Rule itAdd()\n \t{\n \t\treturn sequence(expr(), SP_COMMA/*oneOrMore(sequence(SP_COMMA, expr())), optional(SP_COMMA), eos()*/);\n \t}", "public void emitWithOperand(OpCode opcode, int operandAddress){\n\t\t\n\t}", "public SymbolicElement<T> getAddition();", "@SuppressWarnings(\"unchecked\")\n @Override\n public Expression asExpression(Rule rule, Deque<Value<Expression>> args) {\n if (args.size() == 1) {\n // a single term is not a sum\n return args.pollFirst().getTarget();\n } else {\n Expression signedTerm = args.removeFirst().getTarget();\n if (! (signedTerm instanceof Term<?>)\n || ! (((Term<?>) signedTerm).operation instanceof Additive)) {\n // force \"x\" to be \"+x\"\n signedTerm = new Term<>(Additive.PLUS, signedTerm);\n }\n List<Term<Additive>> arguments = new LinkedList<>();\n arguments.add((Term<Additive>) signedTerm);\n args.stream()\n // next arguments are all Term<Additive>\n .map(v -> (Term<Additive>) v.getTarget())\n .forEachOrdered(arguments::add);\n return new Sum(arguments);\n }\n }", "public final void rule__XAdditiveExpression__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:4902:1: ( ( ( rule__XAdditiveExpression__RightOperandAssignment_1_1 ) ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:4903:1: ( ( rule__XAdditiveExpression__RightOperandAssignment_1_1 ) )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:4903:1: ( ( rule__XAdditiveExpression__RightOperandAssignment_1_1 ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:4904:1: ( rule__XAdditiveExpression__RightOperandAssignment_1_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXAdditiveExpressionAccess().getRightOperandAssignment_1_1()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:4905:1: ( rule__XAdditiveExpression__RightOperandAssignment_1_1 )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:4905:2: rule__XAdditiveExpression__RightOperandAssignment_1_1\n {\n pushFollow(FOLLOW_rule__XAdditiveExpression__RightOperandAssignment_1_1_in_rule__XAdditiveExpression__Group_1__1__Impl10116);\n rule__XAdditiveExpression__RightOperandAssignment_1_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXAdditiveExpressionAccess().getRightOperandAssignment_1_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public void add(int add) {\r\n value += add;\r\n }", "public T plus( double b ) {\n T ret = createLike();\n ops.plus(mat, b, ret.mat);\n return ret;\n }", "@Override\n public String getNotation() {\n return \"+\";\n }", "public Number getOperand() {\n return (Number)getAttributeInternal(OPERAND);\n }", "public void completePlusExpr_Op(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {\n\t\t// subclasses may override\n\t}", "public void add(BinLinExpr expr) {\n\t\tcoefficients.addAll(expr.coefficients);\n\t\tfor (BinVar var : expr.vars) {\n\t\t\tList<BinVar> termVar = new ArrayList<BinVar>();\n\t\t\ttermVar.add(var);\n\t\t\t\n\t\t\ttermVars.add(termVar);\n\t\t}\n\t\tconstant += expr.constant;\n\t}", "public Object visitAdditiveExpression(GNode n) {\n Object a, b, result;\n String op;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n b = dispatch(n.getGeneric(2));\n op = n.getString(1);\n \n dostring = false;\n \n if (a instanceof Long && b instanceof Long) {\n if (op.equals(\"+\")) {\n result = (Long) a + (Long) b;\n }\n else if (op.equals(\"-\")) {\n result = (Long) a - (Long) b;\n }\n else {\n result = \"\";\n }\n }\n else {\n result = parens(a) + \" \" + op + \" \" + parens(b);\n }\n \n return result;\n }", "private StringBuilder getOperand() {\r\n\t\tif (\"\".equals(operator)) {\r\n\t\t\treturn firstNumber;\r\n\t\t} else {\r\n\t\t\treturn secondNumber;\r\n\t\t}\r\n\t}", "Expr expr();", "public final void rule__XAdditiveExpression__Group_1__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:8107:1: ( ( ( rule__XAdditiveExpression__RightOperandAssignment_1_1 ) ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:8108:1: ( ( rule__XAdditiveExpression__RightOperandAssignment_1_1 ) )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:8108:1: ( ( rule__XAdditiveExpression__RightOperandAssignment_1_1 ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:8109:1: ( rule__XAdditiveExpression__RightOperandAssignment_1_1 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAdditiveExpressionAccess().getRightOperandAssignment_1_1()); \r\n }\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:8110:1: ( rule__XAdditiveExpression__RightOperandAssignment_1_1 )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:8110:2: rule__XAdditiveExpression__RightOperandAssignment_1_1\r\n {\r\n pushFollow(FOLLOW_rule__XAdditiveExpression__RightOperandAssignment_1_1_in_rule__XAdditiveExpression__Group_1__1__Impl16804);\r\n rule__XAdditiveExpression__RightOperandAssignment_1_1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAdditiveExpressionAccess().getRightOperandAssignment_1_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public Calculator() {\r\n\t\tthis.operator = new Addition();\r\n\t}", "private void addOp(Scanner input) {\n\t\tprogramStack.add(\"add\");\n\t\tString firstToken = input.next();\n\t\tif(firstToken.equalsIgnoreCase(\"add\"))\n\t\t\taddOp(input);\n\t\telse\n\t\t\tprogramStack.push(firstToken);\n\n\t\tString secondToken = input.next();\n\t\tif(secondToken.equalsIgnoreCase(\"add\"))\n\t\t\taddOp(input);\n\t\telse\n\t\t\tprogramStack.push(secondToken);\n\n\t\tint val2;\n\t\tif (isVariable(programStack.peek()))\n\t\t\tval2 = getRAMValue(programStack.pop());\n\t\telse\n\t\t\tval2 = Integer.parseInt(programStack.pop());\n\n\t\tint val1;\n\t\tif (isVariable(programStack.peek()))\n\t\t\tval1 = getRAMValue(programStack.pop());\n\t\telse\n\t\t\tval1 = Integer.parseInt(programStack.pop());\n\n\t\tint sum = val1 + val2;\n\n\t\tprogramStack.pop();\n\t\tprogramStack.push(Integer.toString(sum));\n\n\t}", "public final Expr relExpr() throws RecognitionException {\r\n Expr result = null;\r\n\r\n int relExpr_StartIndex = input.index();\r\n\r\n Token op=null;\r\n Expr lhs =null;\r\n\r\n Expr rhs =null;\r\n\r\n\r\n try {\r\n if ( state.backtracking>0 && alreadyParsedRule(input, 16) ) { return result; }\r\n\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:133:5: (lhs= addExpr (op= ( '<' | '<=' | '>' | '>=' | '==' | '!=' ) rhs= addExpr )* )\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:133:9: lhs= addExpr (op= ( '<' | '<=' | '>' | '>=' | '==' | '!=' ) rhs= addExpr )*\r\n {\r\n pushFollow(FOLLOW_addExpr_in_relExpr727);\r\n lhs=addExpr();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result =lhs; }\r\n\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:133:46: (op= ( '<' | '<=' | '>' | '>=' | '==' | '!=' ) rhs= addExpr )*\r\n loop11:\r\n do {\r\n int alt11=2;\r\n int LA11_0 = input.LA(1);\r\n\r\n if ( (LA11_0==19||(LA11_0 >= 28 && LA11_0 <= 32)) ) {\r\n alt11=1;\r\n }\r\n\r\n\r\n switch (alt11) {\r\n \tcase 1 :\r\n \t // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:133:48: op= ( '<' | '<=' | '>' | '>=' | '==' | '!=' ) rhs= addExpr\r\n \t {\r\n \t op=(Token)input.LT(1);\r\n\r\n \t if ( input.LA(1)==19||(input.LA(1) >= 28 && input.LA(1) <= 32) ) {\r\n \t input.consume();\r\n \t state.errorRecovery=false;\r\n \t state.failed=false;\r\n \t }\r\n \t else {\r\n \t if (state.backtracking>0) {state.failed=true; return result;}\r\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\r\n \t throw mse;\r\n \t }\r\n\r\n\r\n \t pushFollow(FOLLOW_addExpr_in_relExpr751);\r\n \t rhs=addExpr();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return result;\r\n\r\n \t if ( state.backtracking==0 ) { \r\n \t if ((op!=null?op.getText():null).equals(\"<\")) {\r\n \t result = new LT(result, rhs);\r\n \t }\r\n \t if ((op!=null?op.getText():null).equals(\"<=\")) {\r\n \t result = new LEq(result, rhs); \r\n \t }\r\n \t if ((op!=null?op.getText():null).equals(\">\")) {\r\n \t result = new GT(result, rhs);\r\n \t }\r\n \t if ((op!=null?op.getText():null).equals(\">=\")) {\r\n \t result = new GEq(result, rhs); \r\n \t }\r\n \t if ((op!=null?op.getText():null).equals(\"==\")) {\r\n \t result = new Eq(result, rhs);\r\n \t }\r\n \t if ((op!=null?op.getText():null).equals(\"!=\")) {\r\n \t result = new NEq(result, rhs);\r\n \t }\r\n \t }\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop11;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n if ( state.backtracking>0 ) { memoize(input, 16, relExpr_StartIndex); }\r\n\r\n }\r\n return result;\r\n }", "public final void mPLUS() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = PLUS;\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\n\t\t\t// /Users/Sarah/Projects/ontop/obdalib-core/src/main/java/it/unibz/krdb/obda/parser/Datalog.g:434:5: ( '+' )\n\t\t\t// /Users/Sarah/Projects/ontop/obdalib-core/src/main/java/it/unibz/krdb/obda/parser/Datalog.g:434:16: '+'\n\t\t\t{\n\t\t\tmatch('+'); \n\t\t\t}\n\n\t\t\tstate.type = _type;\n\t\t\tstate.channel = _channel;\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "public final Expr relExpr() throws RecognitionException {\n Expr result = null;\n\n int relExpr_StartIndex = input.index();\n\n Token op=null;\n Expr lhs =null;\n\n Expr rhs =null;\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 12) ) { return result; }\n\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:136:5: (lhs= addExpr (op= ( '<' | '<=' | '>' | '>=' | '==' | '!=' ) rhs= addExpr )* )\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:136:9: lhs= addExpr (op= ( '<' | '<=' | '>' | '>=' | '==' | '!=' ) rhs= addExpr )*\n {\n pushFollow(FOLLOW_addExpr_in_relExpr600);\n lhs=addExpr();\n\n state._fsp--;\n if (state.failed) return result;\n\n if ( state.backtracking==0 ) { result =lhs; }\n\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:136:46: (op= ( '<' | '<=' | '>' | '>=' | '==' | '!=' ) rhs= addExpr )*\n loop9:\n do {\n int alt9=2;\n int LA9_0 = input.LA(1);\n\n if ( (LA9_0==16||(LA9_0 >= 25 && LA9_0 <= 29)) ) {\n alt9=1;\n }\n\n\n switch (alt9) {\n \tcase 1 :\n \t // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:136:48: op= ( '<' | '<=' | '>' | '>=' | '==' | '!=' ) rhs= addExpr\n \t {\n \t op=(Token)input.LT(1);\n\n \t if ( input.LA(1)==16||(input.LA(1) >= 25 && input.LA(1) <= 29) ) {\n \t input.consume();\n \t state.errorRecovery=false;\n \t state.failed=false;\n \t }\n \t else {\n \t if (state.backtracking>0) {state.failed=true; return result;}\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t throw mse;\n \t }\n\n\n \t pushFollow(FOLLOW_addExpr_in_relExpr624);\n \t rhs=addExpr();\n\n \t state._fsp--;\n \t if (state.failed) return result;\n\n \t if ( state.backtracking==0 ) { \n \t if ((op!=null?op.getText():null).equals(\"<\")) {\n \t result = new LT(result, rhs);\n \t }\n \t if ((op!=null?op.getText():null).equals(\"<=\")) {\n \t result = new LEq(result, rhs); \n \t }\n \t if ((op!=null?op.getText():null).equals(\">\")) {\n \t result = new GT(result, rhs);\n \t }\n \t if ((op!=null?op.getText():null).equals(\">=\")) {\n \t result = new GEq(result, rhs); \n \t }\n \t if ((op!=null?op.getText():null).equals(\"==\")) {\n \t result = new Eq(result, rhs);\n \t }\n \t if ((op!=null?op.getText():null).equals(\"!=\")) {\n \t result = new NEq(result, rhs);\n \t }\n \t }\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop9;\n }\n } while (true);\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 if ( state.backtracking>0 ) { memoize(input, 12, relExpr_StartIndex); }\n\n }\n return result;\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}", "@Override\r\n\tpublic int plus(int x, int y) {\n\t\treturn x + y;\r\n\t}", "public String getOperand(int operandNumber);", "public void executeAdd(){\n\t\tBitString destBS = mIR.substring(4, 3);\n\t\tBitString firstOperand = mIR.substring(7, 3);\n\t\tint sum;\n\t\tif(mIR.substring(10, 1).getValue() == 1){\n\t\t\tint imma5 = mIR.substring(11, 5).getValue2sComp();\n\t\t\tsum = imma5 + mRegisters[firstOperand.getValue()].getValue2sComp();\n\t\t} else {\n\t\t\tBitString secondOperand = mIR.substring(13, 3);\n\t\t\tsum = mRegisters[secondOperand.getValue()].getValue2sComp() + mRegisters[firstOperand.getValue()].getValue2sComp();\n\t\t}\n\n\t\tmRegisters[destBS.getValue()].setValue(sum);\n\n\t\tsetConditionalCode(mRegisters[destBS.getValue()]);\n\n\n\t}", "public final void entryRuleOpAdd() throws RecognitionException {\n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:659:1: ( ruleOpAdd EOF )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:660:1: ruleOpAdd EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpAddRule()); \n }\n pushFollow(FOLLOW_ruleOpAdd_in_entryRuleOpAdd1334);\n ruleOpAdd();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpAddRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleOpAdd1341); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "public MvtPlus() {\r\n\t\tsuper('+');\r\n\t}", "public final void mPLUS() throws RecognitionException {\r\n try {\r\n int _type = PLUS;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // C:\\\\sandbox\\\\objc2j\\\\src\\\\ru\\\\andremoniy\\\\objctojavacnv\\\\antlr\\\\Preprocessor.g:279:6: ( '+' )\r\n // C:\\\\sandbox\\\\objc2j\\\\src\\\\ru\\\\andremoniy\\\\objctojavacnv\\\\antlr\\\\Preprocessor.g:279:8: '+'\r\n {\r\n match('+'); \r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n }", "Expression createExpression();" ]
[ "0.6961952", "0.690399", "0.66893", "0.6687634", "0.6676499", "0.65954494", "0.65063274", "0.64982426", "0.6495445", "0.6466162", "0.64393157", "0.64093643", "0.6341741", "0.62975526", "0.6251601", "0.62057406", "0.62040967", "0.61647594", "0.61069584", "0.6105548", "0.6103568", "0.6053784", "0.60381734", "0.60199636", "0.6006608", "0.5985683", "0.5969302", "0.5961163", "0.59484804", "0.59453756", "0.5933614", "0.59307367", "0.5924916", "0.59156877", "0.59005183", "0.589642", "0.5886248", "0.5855197", "0.58456254", "0.5833582", "0.5790176", "0.5788437", "0.5784802", "0.57686806", "0.5756778", "0.57495064", "0.5747663", "0.5746862", "0.5730849", "0.5727887", "0.57259244", "0.5717792", "0.5694788", "0.56709075", "0.56675816", "0.56589675", "0.5632919", "0.56317824", "0.5629581", "0.56263787", "0.5618265", "0.56040674", "0.55926824", "0.55923414", "0.55912054", "0.55865514", "0.5574562", "0.5560712", "0.555578", "0.5554876", "0.55391634", "0.551239", "0.54718983", "0.54700214", "0.5465514", "0.54559475", "0.545255", "0.54448676", "0.5436871", "0.54234684", "0.54201865", "0.5418811", "0.54049796", "0.54037225", "0.53913707", "0.5387681", "0.5385057", "0.5383805", "0.5381308", "0.5379374", "0.53770894", "0.5368019", "0.53671724", "0.5366958", "0.5366005", "0.5359919", "0.5353121", "0.5352833", "0.5352615", "0.53455055", "0.5340668" ]
0.0
-1
Removes an operand from this expression
public boolean remove(Search search) { int index = ArrayUtils.indexOf(theOperands, search); if(index >= 0) { remove(index); return true; } else return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void clearActiveOperand();", "public void clearOperands();", "public void deleteExpression(){\n\n if(currentExp.equals(\"\")){\n calculationResult.onExpressionChange(\"Invalid Input\",false);\n }\n currentExp = \"\";\n calculationResult.onExpressionChange(currentExp,true);\n calculationResult.onExpressionChangeResult(\"\",true);\n\n }", "Unary expr(Expr e);", "public void removeOperatorWithName(String name) {\n \toperators.remove(operators.get(name));\n }", "private ASTNode unaryMinusRules(ASTNode operand){\n Token operandToken = operand.getToken();\n if (operand instanceof UnaryOP && operandToken.getType() == TokenType.MINUS) {\n return ((UnaryOP) operand).getOperand();\n }\n else{\n return operand;\n }\n }", "public Expression eliminateLet() {\n\treturn new UnaryPrimitiveApplication(operator,\n\t\t\t\t\t argument.eliminateLet());\n }", "Expression unaryExpressionNotPlusMinus() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tif (isKind(OP_EXCLAMATION)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e = unaryExpression();\r\n\t\t\treturn new ExpressionUnary(first,op,e);\r\n\t\t} else \t{\r\n\t\t\treturn primary(); //errors will be reported by primary()\r\n\t\t}\r\n\t}", "Unary operator(Operator o);", "public static DecisionOperator<IntVar> remove() {\n return DecisionOperator.int_neq;\n }", "public MathEval clear(String pfx) {\r\n variables.subMap((pfx+\".\"),(pfx+\".\"+Character.MAX_VALUE)).clear();\r\n return this;\r\n }", "@Override\n public void popOperands(Stack<ExpNode> stack) {\n this.expr = stack.pop();\n }", "void deleteExpression(Expression expression);", "public MathEval clear() {\r\n variables.clear();\r\n return this;\r\n }", "public Operator removeOperator(Object key)\n\t{\n\t\treturn (Operator) mComparisonOperatorMap.remove(key);\n\t}", "Expression unaryExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tif (isKind(OP_PLUS)) { //throw away the plus here\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e = unaryExpression();\r\n\t\t\treturn new ExpressionUnary(first, op, e);\r\n\t\t}\r\n\t\telse if (isKind(OP_MINUS)){\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e = unaryExpression();\r\n\t\t\treturn new ExpressionUnary(first, op, e);\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn unaryExpressionNotPlusMinus();\r\n\t\t}\r\n\t}", "private Expr unary() {\n if(match(BANG, MINUS)) { // If this thing can be accurately considered a unary...\n Token operator = previous();\n Expr right = unary();\n return new Expr.Unary(operator, right);\n }\n\n return call(); // Otherwise, pass it up the chain of precedence\n }", "private void jetUnopExpr(){\n\t\tUnopExpr unopExpr = (UnopExpr) rExpr;\n\t\tif(unopExpr instanceof LengthExpr){\n\t\t\t//length_expr = \"length\" immediate;\n\t\t\t//$i1 = lengthof $r10\n\t\t\t//(assert (= $i1 lengthMap.get($r10)))\n\t\t\tLengthExpr lengthExpr = (LengthExpr) unopExpr;\n\t\t\tValue immediate = lengthExpr.getOp();\n\t\t\tif(immediate instanceof Constant){\n\t\t\t\tthis.exprStr = immediate.toString();\n\t\t\t}else{\n\t\t\t\tthis.exprStr = fileGenerator.getRenameOf(immediate, false, this.stmtIdx);\n\t\t\t}\n\t\t}else if(unopExpr instanceof NegExpr){\n\t\t\t//neg_expr = \"-\" immediate;\n\t\t\t//a = -b\n\t\t\t//(assert (= a (- 0 b))))\n\t\t\tNegExpr negExpr = (NegExpr) unopExpr;\n\t\t\tValue immediate = negExpr.getOp();\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tsb.append(\"(- 0 \");\n\t\t\tif(immediate instanceof Constant){\n\t\t\t\tsb.append(immediate.toString());\n\t\t\t}else{\n\t\t\t\tsb.append(fileGenerator.getRenameOf(immediate, false, this.stmtIdx));\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t}\n\t}", "public Search remove(int index)\n\t\t{\n\t\t\tSearch ret = theOperands[index];\n\t\t\ttheOperands = ArrayUtils.remove(theOperands, index);\n\t\t\tif(ret instanceof CompoundSearch)\n\t\t\t\t((CompoundSearch) ret).setParent(null);\n\t\t\treturn ret;\n\t\t}", "public boolean isOperand(){\n return false;\n }", "public void removeOperation(String symbol) {\n checkForNull(symbol);\n\n map.remove(symbol);\n }", "public BastUnaryExpr(TokenAndHistory[] tokens, AbstractBastExpr operand, int type) {\n super(tokens, operand);\n this.type = type;\n fieldMap.put(BastFieldConstants.UNARY_EXPR_OPERAND, new BastField(operand));\n }", "public static UnaryExpression negate(Expression expression) {\n return makeUnary(ExpressionType.Negate, expression, null);\n }", "@Override\n\tpublic Number operate(Number expr1) {\n\t\treturn null;\n\t}", "public R visit(com.biosimilarity.lift.lib.scalar.Absyn.Negation p, A arg)\n {\n\n p.arithmeticexpr_.accept(new ArithmeticExprVisitor<R,A>(), arg);\n\n return null;\n }", "public Object remove(Object key)\n\t{\n\t\tremoveOperator(key);\n\t\tremoveLogicalOperator(key);\n\t\treturn super.remove(key);\n\t}", "public static UnaryExpression negateChecked(Expression expression) {\n return makeUnary(ExpressionType.NegateChecked, expression, null);\n }", "private static UnaryExpr retrieveUnaryExpression(Expression expression) {\n return expression.asUnaryExpr();\n }", "public static UnaryExpression not(Expression expression) {\n return makeUnary(ExpressionType.Not, expression, expression.getType());\n }", "CriteriaExpression<?> getLeftHandOperand();", "private PointCut removePointCut(PointCut p, Integer arg) {\n\t\tif (p.getType().equals(this.targetType)) {\n\t\t\tif (arg == 0) {\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\tList<PointCut> pointcuts = new ArrayList<PointCut>();\n\t\t\t\treturn new CombinedPointCut(p.getBeginLine(), p.getBeginColumn(), \"&&\", pointcuts);\n\t\t\t}\n\t\t} else\n\t\t\treturn p;\n\t}", "public static UnaryExpression decrement(Expression expression) { throw Extensions.todo(); }", "public LogicalOperator removeLogicalOperator(Object key)\n\t{\n\t\treturn (LogicalOperator) mLogicalOperatorMap.remove(key);\n\t}", "CriteriaExpression<?> getRightHandOperand();", "public NegationExpression(Expression passinnum){\r\n\t\tthis.arg=passinnum;\r\n\t}", "public void completeUnaryExpr_Op(EObject model, Assignment assignment, ContentAssistContext context,\n\t\t\tICompletionProposalAcceptor acceptor) {\n\t\t// subclasses may override\n\t}", "public String clearLastDigit() {\r\n\r\n\t\tif (getOperand().length() == 1) {\r\n\t\t\tgetOperand().deleteCharAt(getOperand().length() - 1);\r\n\t\t\treturn \"0\";\r\n\t\t}\r\n\r\n\t\tif (getOperand().length() > 1) {\r\n\t\t\treturn getOperand().deleteCharAt(getOperand().length() - 1)\r\n\t\t\t\t\t.toString();\r\n\t\t} else {\r\n\t\t\treturn \"0\";\r\n\t\t}\r\n\t}", "@Override\n public void step(final EvaluationContext theContext)\n {\n // pop the value, negate, push the value\n //\n final Double theOperand = theContext.popValue();\n theContext.pushValue(-theOperand);\n }", "public abstract ArithValue negate();", "private void removeOpRecursive(Operator<?> operator) {\n List<Operator<?>> parentOperators = new ArrayList<Operator<?>>();\n for (Operator<?> op : operator.getParentOperators()) {\n parentOperators.add(op);\n }\n for (Operator<?> parentOperator : parentOperators) {\n Preconditions.checkArgument(parentOperator.getChildOperators().contains(operator),\n \"AssertionError: parent of \" + operator.getName() + \" doesn't have it as child.\");\n parentOperator.removeChild(operator);\n if (parentOperator.getNumChild() == 0) {\n removeOpRecursive(parentOperator);\n }\n }\n }", "public String getRightOperand()\r\n {\r\n if (rightOperand == null)\r\n {\r\n return null;\r\n }\r\n if (rightOperand.contains(\"+1i\"))\r\n {\r\n return rightOperand.replace(\"+1i\", \"+i\");\r\n }\r\n else if (rightOperand.contains(\"-1i\"))\r\n {\r\n return rightOperand.replace(\"-1i\", \"-i\");\r\n }\r\n return rightOperand;\r\n }", "@Override\n\tpublic void VisitUnaryNode(UnaryOperatorNode Node) {\n\n\t}", "private void negate()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.negate();\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}", "public static EvaluationStep getUnaryOperation(final String theOperator)\n {\n if(\"+\".equals(theOperator)) return NoOp;\n if(\"-\".equals(theOperator)) return Negation;\n throw new IllegalStateException(\"Invalid unary operator ($operator).\".replace(\"$operator\", (null != theOperator) ? theOperator : \"null\"));\n }", "@Override\n\t\t\tpublic Ast unaryOp(UnaryOp ast, Void dummy) {\n\t\t\t\tsuper.unaryOp(ast, dummy);\n\t\t\t\ttry {\n\t\t\t\t\tInteger intValue = null;\n\t\t\t\t\tBoolean boolValue = null;\n\n\t\t\t\t\tswitch (ast.operator) {\n\t\t\t\t\tcase U_BOOL_NOT:\n\t\t\t\t\t\tboolValue = !asBool(ast.arg());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase U_MINUS:\n\t\t\t\t\t\tintValue = -asInt(ast.arg());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase U_PLUS:\n\t\t\t\t\t\tintValue = asInt(ast.arg());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn replace(ast, intValue, boolValue);\n\t\t\t\t} catch (NotConstantException e) {\n\t\t\t\t\t// non-constant argument, no effect\n\t\t\t\t\treturn ast;\n\t\t\t\t}\n\t\t\t}", "public static UnaryExpression negate(Expression expression, Method method) {\n return makeUnary(ExpressionType.Negate, expression, null, method);\n }", "public final EObject ruleUnaryExpressionNotPlusMinus() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token otherlv_2=null;\n EObject this_UnaryExpression_1 = null;\n\n EObject this_UnaryExpression_3 = null;\n\n EObject this_CastedExpression_4 = null;\n\n EObject this_PrimaryExpression_5 = 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:899:28: ( ( (otherlv_0= '~' this_UnaryExpression_1= ruleUnaryExpression ) | (otherlv_2= '!' this_UnaryExpression_3= ruleUnaryExpression ) | ( ( ruleCastedExpression )=>this_CastedExpression_4= ruleCastedExpression ) | this_PrimaryExpression_5= rulePrimaryExpression ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:900:1: ( (otherlv_0= '~' this_UnaryExpression_1= ruleUnaryExpression ) | (otherlv_2= '!' this_UnaryExpression_3= ruleUnaryExpression ) | ( ( ruleCastedExpression )=>this_CastedExpression_4= ruleCastedExpression ) | this_PrimaryExpression_5= rulePrimaryExpression )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:900:1: ( (otherlv_0= '~' this_UnaryExpression_1= ruleUnaryExpression ) | (otherlv_2= '!' this_UnaryExpression_3= ruleUnaryExpression ) | ( ( ruleCastedExpression )=>this_CastedExpression_4= ruleCastedExpression ) | this_PrimaryExpression_5= rulePrimaryExpression )\n int alt14=4;\n alt14 = dfa14.predict(input);\n switch (alt14) {\n case 1 :\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:900:2: (otherlv_0= '~' this_UnaryExpression_1= ruleUnaryExpression )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:900:2: (otherlv_0= '~' this_UnaryExpression_1= ruleUnaryExpression )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:900:4: otherlv_0= '~' this_UnaryExpression_1= ruleUnaryExpression\n {\n otherlv_0=(Token)match(input,38,FOLLOW_38_in_ruleUnaryExpressionNotPlusMinus2125); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_0, grammarAccess.getUnaryExpressionNotPlusMinusAccess().getTildeKeyword_0_0());\n \n }\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getUnaryExpressionNotPlusMinusAccess().getUnaryExpressionParserRuleCall_0_1()); \n \n }\n pushFollow(FOLLOW_ruleUnaryExpression_in_ruleUnaryExpressionNotPlusMinus2147);\n this_UnaryExpression_1=ruleUnaryExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_UnaryExpression_1; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n\n\n }\n break;\n case 2 :\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:914:6: (otherlv_2= '!' this_UnaryExpression_3= ruleUnaryExpression )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:914:6: (otherlv_2= '!' this_UnaryExpression_3= ruleUnaryExpression )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:914:8: otherlv_2= '!' this_UnaryExpression_3= ruleUnaryExpression\n {\n otherlv_2=(Token)match(input,39,FOLLOW_39_in_ruleUnaryExpressionNotPlusMinus2166); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_2, grammarAccess.getUnaryExpressionNotPlusMinusAccess().getExclamationMarkKeyword_1_0());\n \n }\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getUnaryExpressionNotPlusMinusAccess().getUnaryExpressionParserRuleCall_1_1()); \n \n }\n pushFollow(FOLLOW_ruleUnaryExpression_in_ruleUnaryExpressionNotPlusMinus2188);\n this_UnaryExpression_3=ruleUnaryExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_UnaryExpression_3; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n\n\n }\n break;\n case 3 :\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:928:6: ( ( ruleCastedExpression )=>this_CastedExpression_4= ruleCastedExpression )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:928:6: ( ( ruleCastedExpression )=>this_CastedExpression_4= ruleCastedExpression )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:928:7: ( ruleCastedExpression )=>this_CastedExpression_4= ruleCastedExpression\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getUnaryExpressionNotPlusMinusAccess().getCastedExpressionParserRuleCall_2()); \n \n }\n pushFollow(FOLLOW_ruleCastedExpression_in_ruleUnaryExpressionNotPlusMinus2222);\n this_CastedExpression_4=ruleCastedExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_CastedExpression_4; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n\n\n }\n break;\n case 4 :\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:939:5: this_PrimaryExpression_5= rulePrimaryExpression\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getUnaryExpressionNotPlusMinusAccess().getPrimaryExpressionParserRuleCall_3()); \n \n }\n pushFollow(FOLLOW_rulePrimaryExpression_in_ruleUnaryExpressionNotPlusMinus2250);\n this_PrimaryExpression_5=rulePrimaryExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_PrimaryExpression_5; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\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 void setOperand(Number value) {\n setAttributeInternal(OPERAND, value);\n }", "ExpOperand createExpOperand();", "public void sub(String operand, Integer value) throws Exception{\n if (operand.equals(\"=\")){\n Integer accVal = dataMemory.getData(0);\n dataMemory.setData(0, accVal - value);\n }else if (operand.equals(\" \")){\n Integer regVal = dataMemory.getData(value);\n Integer accVal = dataMemory.getData(0);\n dataMemory.setData(0, accVal - regVal);\n }else if (operand.equals(\"*\")){\n Integer newDirection = dataMemory.getData(value);\n Integer regVal = dataMemory.getData(newDirection);\n Integer accVal = dataMemory.getData(0);\n dataMemory.setData(0, accVal - regVal);\n }else{\n throw new IllegalArgumentException(\"No valid operand\");\n }\n }", "BaseNumber subtract(BaseNumber operand);", "void removeOperators(Object rgID, List<Object> operIDs);", "final void resetOperator( UniqueString us ) {\n this.operator = Context.getGlobalContext().getSymbol(us);\n }", "public Number getOperand() {\n return (Number)getAttributeInternal(OPERAND);\n }", "public Expression simplify() {\r\n return this;\r\n }", "@Override\n public boolean visit(JsPostfixOperation x, JsContext<JsExpression> ctx) {\n return !(x.getArg() instanceof JsStringLiteral);\n }", "public Unary createNot(Expr expr) {\n return createNot(expr.position(), expr);\n }", "public void deleteCharacter(){\n if(currentExp.length()>0){\n currentExp = currentExp.substring(0,currentExp.length()-1);\n calculationResult.onExpressionChange(currentExp,true);\n calculationResult.onExpressionChangeResult(\"\",true);\n }\n else{\n calculationResult.onExpressionChange(\"Invalid Input\",false);\n }\n\n }", "private static void removeFromKey(SelectionKey key, int op)\n {\n int status = key.interestOps() ^ op;\n if (status == 0) {\n terminateKey(key);\n } else {\n key.interestOps(status);\n }\n }", "public final void unaryExpressionNotPlusMinus() throws RecognitionException {\n int unaryExpressionNotPlusMinus_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"unaryExpressionNotPlusMinus\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(823, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 122) ) { return ; }\n // Java.g:824:5: ( '~' unaryExpression | '!' unaryExpression | castExpression | primary ( selector )* ( '++' | '--' )? )\n int alt145=4;\n try { dbg.enterDecision(145);\n\n try {\n isCyclicDecision = true;\n alt145 = dfa145.predict(input);\n }\n catch (NoViableAltException nvae) {\n dbg.recognitionException(nvae);\n throw nvae;\n }\n } finally {dbg.exitDecision(145);}\n\n switch (alt145) {\n case 1 :\n dbg.enterAlt(1);\n\n // Java.g:824:9: '~' unaryExpression\n {\n dbg.location(824,9);\n match(input,111,FOLLOW_111_in_unaryExpressionNotPlusMinus4985); if (state.failed) return ;\n dbg.location(824,13);\n pushFollow(FOLLOW_unaryExpression_in_unaryExpressionNotPlusMinus4987);\n unaryExpression();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n case 2 :\n dbg.enterAlt(2);\n\n // Java.g:825:9: '!' unaryExpression\n {\n dbg.location(825,9);\n match(input,112,FOLLOW_112_in_unaryExpressionNotPlusMinus4997); if (state.failed) return ;\n dbg.location(825,13);\n pushFollow(FOLLOW_unaryExpression_in_unaryExpressionNotPlusMinus4999);\n unaryExpression();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n case 3 :\n dbg.enterAlt(3);\n\n // Java.g:826:9: castExpression\n {\n dbg.location(826,9);\n pushFollow(FOLLOW_castExpression_in_unaryExpressionNotPlusMinus5009);\n castExpression();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n case 4 :\n dbg.enterAlt(4);\n\n // Java.g:827:9: primary ( selector )* ( '++' | '--' )?\n {\n dbg.location(827,9);\n pushFollow(FOLLOW_primary_in_unaryExpressionNotPlusMinus5019);\n primary();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(827,17);\n // Java.g:827:17: ( selector )*\n try { dbg.enterSubRule(143);\n\n loop143:\n do {\n int alt143=2;\n try { dbg.enterDecision(143);\n\n int LA143_0 = input.LA(1);\n\n if ( (LA143_0==29||LA143_0==48) ) {\n alt143=1;\n }\n\n\n } finally {dbg.exitDecision(143);}\n\n switch (alt143) {\n \tcase 1 :\n \t dbg.enterAlt(1);\n\n \t // Java.g:0:0: selector\n \t {\n \t dbg.location(827,17);\n \t pushFollow(FOLLOW_selector_in_unaryExpressionNotPlusMinus5021);\n \t selector();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop143;\n }\n } while (true);\n } finally {dbg.exitSubRule(143);}\n\n dbg.location(827,27);\n // Java.g:827:27: ( '++' | '--' )?\n int alt144=2;\n try { dbg.enterSubRule(144);\n try { dbg.enterDecision(144);\n\n int LA144_0 = input.LA(1);\n\n if ( ((LA144_0>=109 && LA144_0<=110)) ) {\n alt144=1;\n }\n } finally {dbg.exitDecision(144);}\n\n switch (alt144) {\n case 1 :\n dbg.enterAlt(1);\n\n // Java.g:\n {\n dbg.location(827,27);\n if ( (input.LA(1)>=109 && input.LA(1)<=110) ) {\n input.consume();\n state.errorRecovery=false;state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n dbg.recognitionException(mse);\n throw mse;\n }\n\n\n }\n break;\n\n }\n } finally {dbg.exitSubRule(144);}\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 122, unaryExpressionNotPlusMinus_StartIndex); }\n }\n dbg.location(828, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"unaryExpressionNotPlusMinus\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "public final Expr unExpr() throws RecognitionException {\r\n Expr result = null;\r\n\r\n int unExpr_StartIndex = input.index();\r\n\r\n Expr x =null;\r\n\r\n\r\n try {\r\n if ( state.backtracking>0 && alreadyParsedRule(input, 13) ) { return result; }\r\n\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:100:5: ( '+' x= unExpr | '-' x= unExpr | '!' x= unExpr |x= primary )\r\n int alt8=4;\r\n switch ( input.LA(1) ) {\r\n case 24:\r\n {\r\n alt8=1;\r\n }\r\n break;\r\n case 25:\r\n {\r\n alt8=2;\r\n }\r\n break;\r\n case 18:\r\n {\r\n alt8=3;\r\n }\r\n break;\r\n case Ident:\r\n case Int:\r\n case StringLiteral:\r\n case 21:\r\n {\r\n alt8=4;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return result;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 8, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n\r\n switch (alt8) {\r\n case 1 :\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:100:7: '+' x= unExpr\r\n {\r\n match(input,24,FOLLOW_24_in_unExpr533); if (state.failed) return result;\r\n\r\n pushFollow(FOLLOW_unExpr_in_unExpr537);\r\n x=unExpr();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result = new Pos(x); }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:101:7: '-' x= unExpr\r\n {\r\n match(input,25,FOLLOW_25_in_unExpr547); if (state.failed) return result;\r\n\r\n pushFollow(FOLLOW_unExpr_in_unExpr551);\r\n x=unExpr();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result = new Neg(x); }\r\n\r\n }\r\n break;\r\n case 3 :\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:102:7: '!' x= unExpr\r\n {\r\n match(input,18,FOLLOW_18_in_unExpr561); if (state.failed) return result;\r\n\r\n pushFollow(FOLLOW_unExpr_in_unExpr565);\r\n x=unExpr();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result = new Not(x); }\r\n\r\n }\r\n break;\r\n case 4 :\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:103:7: x= primary\r\n {\r\n pushFollow(FOLLOW_primary_in_unExpr577);\r\n x=primary();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result = x; }\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n if ( state.backtracking>0 ) { memoize(input, 13, unExpr_StartIndex); }\r\n\r\n }\r\n return result;\r\n }", "public String removeCharacter(int idx)\r\n\t{\r\n\t\tif(expression.length() == 0)\r\n\t\t\treturn \"\";\r\n\t\tString result = expression.substring(idx, idx + 1);\r\n\t\tif(idx == expression.length() - 1)\r\n\t\t\texpression = expression.substring(0, idx);\r\n\t\telse\r\n\t\t\texpression = expression.substring(0, idx) + expression.substring(idx + 1);\r\n\t\treturn result;\r\n\t}", "public final Expr unExpr() throws RecognitionException {\n Expr result = null;\n\n int unExpr_StartIndex = input.index();\n\n Expr x =null;\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 9) ) { return result; }\n\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:104:5: ( '+' x= unExpr | '-' x= unExpr | '!' x= unExpr |x= primary )\n int alt6=4;\n switch ( input.LA(1) ) {\n case 21:\n {\n alt6=1;\n }\n break;\n case 22:\n {\n alt6=2;\n }\n break;\n case 15:\n {\n alt6=3;\n }\n break;\n case BoolLit:\n case Decimal:\n case Ident:\n case Int:\n case StringLit:\n case 18:\n {\n alt6=4;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return result;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 6, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt6) {\n case 1 :\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:104:8: '+' x= unExpr\n {\n match(input,21,FOLLOW_21_in_unExpr401); if (state.failed) return result;\n\n pushFollow(FOLLOW_unExpr_in_unExpr405);\n x=unExpr();\n\n state._fsp--;\n if (state.failed) return result;\n\n if ( state.backtracking==0 ) { result = new Pos(x); }\n\n }\n break;\n case 2 :\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:105:8: '-' x= unExpr\n {\n match(input,22,FOLLOW_22_in_unExpr416); if (state.failed) return result;\n\n pushFollow(FOLLOW_unExpr_in_unExpr420);\n x=unExpr();\n\n state._fsp--;\n if (state.failed) return result;\n\n if ( state.backtracking==0 ) { result = new Neg(x); }\n\n }\n break;\n case 3 :\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:106:8: '!' x= unExpr\n {\n match(input,15,FOLLOW_15_in_unExpr431); if (state.failed) return result;\n\n pushFollow(FOLLOW_unExpr_in_unExpr435);\n x=unExpr();\n\n state._fsp--;\n if (state.failed) return result;\n\n if ( state.backtracking==0 ) { result = new Not(x); }\n\n }\n break;\n case 4 :\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:107:8: x= primary\n {\n pushFollow(FOLLOW_primary_in_unExpr448);\n x=primary();\n\n state._fsp--;\n if (state.failed) return result;\n\n if ( state.backtracking==0 ) { result = x; }\n\n }\n break;\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 if ( state.backtracking>0 ) { memoize(input, 9, unExpr_StartIndex); }\n\n }\n return result;\n }", "public void delLiteral();", "public Fraction minus(Fraction rightOperand){\n\t\tint denom = myDenominator*rightOperand.getDenominator();\n\n\t\tint num = (myNumerator * (denom/myDenominator)) -\n\t\t\t\t\t(rightOperand.getNumerator() *\n\t\t\t\t\t(denom/rightOperand.getDenominator()));\n\n\t\treturn new Fraction(num, denom);\n\t}", "@Override\n public String visit(UnaryExpr n, Object arg) {\n return null;\n }", "public String getLeftOperand()\r\n {\r\n if (leftOperand == null)\r\n {\r\n return null;\r\n }\r\n if (leftOperand.contains(\"+1i\"))\r\n {\r\n return leftOperand.replace(\"+1i\", \"+i\");\r\n }\r\n else if (leftOperand.contains(\"-1i\"))\r\n {\r\n return leftOperand.replace(\"-1i\", \"-i\");\r\n }\r\n return leftOperand;\r\n }", "public static UnaryExpression negateChecked(Expression expression, Method method) {\n return makeUnary(ExpressionType.NegateChecked, expression, null, method);\n }", "public static NotSpecification not( Specification<Composite> operand )\n {\n return new NotSpecification( operand );\n }", "void visit(MinusExpression expression);", "private Node prune(Node r) {\r\n if (r == null) return null;\r\n Op op = r.op();\r\n r.left(prune(r.left()));\r\n if (r.left() == null) r.ref(prune(r.ref()));\r\n else r.right(prune(r.right()));\r\n if (r.right() != null && r.right().op() == Temp) r.right(null);\r\n if (op == Temp) return r.left();\r\n return r;\r\n }", "public void del(){\n /*use an if statement to check if the curr is not empty remove the last number*/\n if(!curr.isEmpty()){\n\n /*check if the dot is the last char in the curr then set dot_inserted to false*/\n if(curr.substring(curr.length()-1, curr.length()).equals(\".\")){\n dot_inserted = false;\n }\n\n /*Check validation for the operator*/\n /*if operator is detected delete 3 digits or chars from the curr and\n set operator inserted to false*/\n /*The 3digits or number include the default spaces*/\n if(curr.substring(curr.length()-1, curr.length()).equals(\" \")){\n curr = curr.substring(0, curr.length()-3);\n operator_inserted = false;\n }else{\n curr = curr.substring(0, curr.length()-1);\n }\n }\n }", "void unsetValueQuantity();", "public void undoEquation() {\n if (eqn == null) {\n EquationList eqn = null;\n } else {\n eqn = eqn.next;\n }\n }", "private Token negationCheck(Token pToken, Token pPrevToken) {\n if (pPrevToken == null || pPrevToken instanceof BinaryOperator || pPrevToken instanceof LeftParen) {\n pToken = new NegOperator();\n }\n return pToken;\n }", "public void neg_() {\n TH.THTensor_(neg)(this, this);\n }", "public T minus( double b ) {\n T ret = createLike();\n ops.minus(mat, b, ret.mat);\n return ret;\n }", "private StringBuilder getOperand() {\r\n\t\tif (\"\".equals(operator)) {\r\n\t\t\treturn firstNumber;\r\n\t\t} else {\r\n\t\t\treturn secondNumber;\r\n\t\t}\r\n\t}", "Operand createOperand();", "public void removeOperador() {\r\n\t\toperadorLaboratorio=null;\r\n\t}", "@Override\n\tprotected void minus(char c, InterimResult ir)\n\t{\n\t\tNegateAction Negate = new NegateAction();\n\t\tNegate.execute(ir, c);\t\t\n\t}", "@Override\n\tdouble evaluate() {\n\t\treturn Math.abs(operand.getVal());\n\t}", "public void subtract()\r\n {\r\n resultDoubles = Operations.subtraction(leftOperand, rightOperand);\r\n resultResetHelper();\r\n }", "public void clear()\r\n {\r\n result = null;\r\n leftOperand = null;\r\n rightOperand = null;\r\n operator = null;\r\n resultDoubles = null;\r\n }", "public Object visitBitwiseNegationExpression(GNode n) {\n Object a, result;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n \n dostring = false;\n \n if (a instanceof Long) {\n result = ~ (Long) a;\n }\n else {\n return \"~ \" + parens(a);\n }\n \n return result;\n }", "@Override public JannotTreeJCExpression getLeftOperand()\n{\n return createTree(getNode().getLeftOperand()); \n}", "default void negate()\n {\n getAxis().negate();\n setAngle(-getAngle());\n }", "public void removeLastInstruction() {\n if (methodMode) {\n methodCode.removeLastInstruction();\n } else {\n program.removeLastInstruction();\n }\n }", "public void removeOperation(String name)\n {\n nameToOperation.remove(name);\n }", "public void remove( AnyType x )\r\n\t{\r\n\t\troot = remove( x, root );\r\n\t}", "public static UnaryExpression postDecrementAssign(Expression expression) {\n return makeUnary(ExpressionType.PostDecrementAssign, expression, expression.getType());\n }", "public ComplementOp() {\r\n\t\tsuper();\r\n\t}", "public static UnaryExpression not(Expression expression, Method method) {\n return makeUnary(ExpressionType.Not, expression, null, method);\n }", "public Object visitUnaryMinusExpression(GNode n) {\n Object a;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n \n dostring = false;\n \n if (a instanceof Long) {\n return - (Long) a;\n }\n else {\n return \"- \" + parens(a);\n }\n }", "@Override\n public RowExpression rewrite(RowExpression expression, Rule.Context context)\n {\n if (expression instanceof CallExpression && ((CallExpression) expression).getArguments().stream().anyMatch(OriginalExpressionUtils::isExpression)) {\n return removeOriginalExpressionArguments((CallExpression) expression, context.getSession(), context.getSymbolAllocator(), context);\n }\n return removeOriginalExpression(expression, context, new HashMap<>());\n }", "@Override\n public boolean visit(JsBinaryOperation x, JsContext<JsExpression> ctx) {\n return !x.getOperator().isAssignment()\n || !(x.getArg1() instanceof JsStringLiteral);\n }", "public void clear() {\r\n\t\tfirstNumber.setLength(0);\r\n\t\tsecondNumber.setLength(0);\r\n\t\toperator = \"\";\r\n\t\tsign = false;\r\n\t}", "public AVLNode delUnaryRight() {\n\t\t\tchar side = this.parentSide();\n\t\t\tif (side == 'R') {\n\t\t\t\tthis.parent.setRight(this.getRight());\n\t\t\t} else {\n\t\t\t\tthis.parent.setLeft(this.getRight());\n\t\t\t}\n\t\t\tthis.right.setParent(this.parent);\n\t\t\tAVLNode parent = (AVLNode) this.parent;\n\t\t\tthis.parent = null;\n\t\t\tthis.left = null;\n\t\t\treturn parent;\n\t\t}", "public void remove(ImageView power){\n power.setImage(null);\n }", "public static UnaryExpression decrement(Expression expression, Method method) { throw Extensions.todo(); }" ]
[ "0.6833485", "0.6469902", "0.6260975", "0.6205498", "0.6173911", "0.6115458", "0.6002815", "0.5988549", "0.59364", "0.58757406", "0.58134747", "0.57954466", "0.578467", "0.56979054", "0.56727946", "0.56608737", "0.561321", "0.5609277", "0.5599793", "0.55852205", "0.5547832", "0.55016804", "0.54900396", "0.5482525", "0.54411864", "0.5406117", "0.5405707", "0.5383952", "0.53794444", "0.5371796", "0.53602594", "0.5358054", "0.5352437", "0.53466237", "0.5279096", "0.5273542", "0.5272232", "0.5259985", "0.52573526", "0.5253191", "0.52263355", "0.52179956", "0.520826", "0.5204537", "0.5197741", "0.5194869", "0.5169658", "0.5165146", "0.51548356", "0.51499337", "0.51479286", "0.514396", "0.5140745", "0.51352805", "0.513363", "0.51305073", "0.5116052", "0.5114639", "0.5113574", "0.5083554", "0.50815344", "0.5067777", "0.5064538", "0.50436157", "0.50413996", "0.5030136", "0.5026404", "0.502591", "0.50258315", "0.5022713", "0.5020834", "0.5019346", "0.5007844", "0.50069016", "0.50046057", "0.49975556", "0.4996935", "0.49915704", "0.49897107", "0.49895462", "0.49805343", "0.4968445", "0.49490514", "0.49448627", "0.4908292", "0.4903491", "0.49021155", "0.49012706", "0.48958972", "0.48822916", "0.48820412", "0.48766288", "0.48731083", "0.48708975", "0.4866284", "0.48662597", "0.48662347", "0.48583418", "0.48575315", "0.48561844" ]
0.51935464
46
Removes an operand from this expression
public Search remove(int index) { Search ret = theOperands[index]; theOperands = ArrayUtils.remove(theOperands, index); if(ret instanceof CompoundSearch) ((CompoundSearch) ret).setParent(null); return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void clearActiveOperand();", "public void clearOperands();", "public void deleteExpression(){\n\n if(currentExp.equals(\"\")){\n calculationResult.onExpressionChange(\"Invalid Input\",false);\n }\n currentExp = \"\";\n calculationResult.onExpressionChange(currentExp,true);\n calculationResult.onExpressionChangeResult(\"\",true);\n\n }", "Unary expr(Expr e);", "public void removeOperatorWithName(String name) {\n \toperators.remove(operators.get(name));\n }", "private ASTNode unaryMinusRules(ASTNode operand){\n Token operandToken = operand.getToken();\n if (operand instanceof UnaryOP && operandToken.getType() == TokenType.MINUS) {\n return ((UnaryOP) operand).getOperand();\n }\n else{\n return operand;\n }\n }", "public Expression eliminateLet() {\n\treturn new UnaryPrimitiveApplication(operator,\n\t\t\t\t\t argument.eliminateLet());\n }", "Expression unaryExpressionNotPlusMinus() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tif (isKind(OP_EXCLAMATION)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e = unaryExpression();\r\n\t\t\treturn new ExpressionUnary(first,op,e);\r\n\t\t} else \t{\r\n\t\t\treturn primary(); //errors will be reported by primary()\r\n\t\t}\r\n\t}", "Unary operator(Operator o);", "public static DecisionOperator<IntVar> remove() {\n return DecisionOperator.int_neq;\n }", "public MathEval clear(String pfx) {\r\n variables.subMap((pfx+\".\"),(pfx+\".\"+Character.MAX_VALUE)).clear();\r\n return this;\r\n }", "@Override\n public void popOperands(Stack<ExpNode> stack) {\n this.expr = stack.pop();\n }", "void deleteExpression(Expression expression);", "public MathEval clear() {\r\n variables.clear();\r\n return this;\r\n }", "public Operator removeOperator(Object key)\n\t{\n\t\treturn (Operator) mComparisonOperatorMap.remove(key);\n\t}", "Expression unaryExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tif (isKind(OP_PLUS)) { //throw away the plus here\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e = unaryExpression();\r\n\t\t\treturn new ExpressionUnary(first, op, e);\r\n\t\t}\r\n\t\telse if (isKind(OP_MINUS)){\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e = unaryExpression();\r\n\t\t\treturn new ExpressionUnary(first, op, e);\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn unaryExpressionNotPlusMinus();\r\n\t\t}\r\n\t}", "private Expr unary() {\n if(match(BANG, MINUS)) { // If this thing can be accurately considered a unary...\n Token operator = previous();\n Expr right = unary();\n return new Expr.Unary(operator, right);\n }\n\n return call(); // Otherwise, pass it up the chain of precedence\n }", "private void jetUnopExpr(){\n\t\tUnopExpr unopExpr = (UnopExpr) rExpr;\n\t\tif(unopExpr instanceof LengthExpr){\n\t\t\t//length_expr = \"length\" immediate;\n\t\t\t//$i1 = lengthof $r10\n\t\t\t//(assert (= $i1 lengthMap.get($r10)))\n\t\t\tLengthExpr lengthExpr = (LengthExpr) unopExpr;\n\t\t\tValue immediate = lengthExpr.getOp();\n\t\t\tif(immediate instanceof Constant){\n\t\t\t\tthis.exprStr = immediate.toString();\n\t\t\t}else{\n\t\t\t\tthis.exprStr = fileGenerator.getRenameOf(immediate, false, this.stmtIdx);\n\t\t\t}\n\t\t}else if(unopExpr instanceof NegExpr){\n\t\t\t//neg_expr = \"-\" immediate;\n\t\t\t//a = -b\n\t\t\t//(assert (= a (- 0 b))))\n\t\t\tNegExpr negExpr = (NegExpr) unopExpr;\n\t\t\tValue immediate = negExpr.getOp();\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tsb.append(\"(- 0 \");\n\t\t\tif(immediate instanceof Constant){\n\t\t\t\tsb.append(immediate.toString());\n\t\t\t}else{\n\t\t\t\tsb.append(fileGenerator.getRenameOf(immediate, false, this.stmtIdx));\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t}\n\t}", "public boolean isOperand(){\n return false;\n }", "public void removeOperation(String symbol) {\n checkForNull(symbol);\n\n map.remove(symbol);\n }", "public BastUnaryExpr(TokenAndHistory[] tokens, AbstractBastExpr operand, int type) {\n super(tokens, operand);\n this.type = type;\n fieldMap.put(BastFieldConstants.UNARY_EXPR_OPERAND, new BastField(operand));\n }", "public static UnaryExpression negate(Expression expression) {\n return makeUnary(ExpressionType.Negate, expression, null);\n }", "@Override\n\tpublic Number operate(Number expr1) {\n\t\treturn null;\n\t}", "public R visit(com.biosimilarity.lift.lib.scalar.Absyn.Negation p, A arg)\n {\n\n p.arithmeticexpr_.accept(new ArithmeticExprVisitor<R,A>(), arg);\n\n return null;\n }", "public Object remove(Object key)\n\t{\n\t\tremoveOperator(key);\n\t\tremoveLogicalOperator(key);\n\t\treturn super.remove(key);\n\t}", "public static UnaryExpression negateChecked(Expression expression) {\n return makeUnary(ExpressionType.NegateChecked, expression, null);\n }", "private static UnaryExpr retrieveUnaryExpression(Expression expression) {\n return expression.asUnaryExpr();\n }", "public static UnaryExpression not(Expression expression) {\n return makeUnary(ExpressionType.Not, expression, expression.getType());\n }", "CriteriaExpression<?> getLeftHandOperand();", "private PointCut removePointCut(PointCut p, Integer arg) {\n\t\tif (p.getType().equals(this.targetType)) {\n\t\t\tif (arg == 0) {\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\tList<PointCut> pointcuts = new ArrayList<PointCut>();\n\t\t\t\treturn new CombinedPointCut(p.getBeginLine(), p.getBeginColumn(), \"&&\", pointcuts);\n\t\t\t}\n\t\t} else\n\t\t\treturn p;\n\t}", "public static UnaryExpression decrement(Expression expression) { throw Extensions.todo(); }", "public LogicalOperator removeLogicalOperator(Object key)\n\t{\n\t\treturn (LogicalOperator) mLogicalOperatorMap.remove(key);\n\t}", "CriteriaExpression<?> getRightHandOperand();", "public NegationExpression(Expression passinnum){\r\n\t\tthis.arg=passinnum;\r\n\t}", "public void completeUnaryExpr_Op(EObject model, Assignment assignment, ContentAssistContext context,\n\t\t\tICompletionProposalAcceptor acceptor) {\n\t\t// subclasses may override\n\t}", "public String clearLastDigit() {\r\n\r\n\t\tif (getOperand().length() == 1) {\r\n\t\t\tgetOperand().deleteCharAt(getOperand().length() - 1);\r\n\t\t\treturn \"0\";\r\n\t\t}\r\n\r\n\t\tif (getOperand().length() > 1) {\r\n\t\t\treturn getOperand().deleteCharAt(getOperand().length() - 1)\r\n\t\t\t\t\t.toString();\r\n\t\t} else {\r\n\t\t\treturn \"0\";\r\n\t\t}\r\n\t}", "@Override\n public void step(final EvaluationContext theContext)\n {\n // pop the value, negate, push the value\n //\n final Double theOperand = theContext.popValue();\n theContext.pushValue(-theOperand);\n }", "public abstract ArithValue negate();", "private void removeOpRecursive(Operator<?> operator) {\n List<Operator<?>> parentOperators = new ArrayList<Operator<?>>();\n for (Operator<?> op : operator.getParentOperators()) {\n parentOperators.add(op);\n }\n for (Operator<?> parentOperator : parentOperators) {\n Preconditions.checkArgument(parentOperator.getChildOperators().contains(operator),\n \"AssertionError: parent of \" + operator.getName() + \" doesn't have it as child.\");\n parentOperator.removeChild(operator);\n if (parentOperator.getNumChild() == 0) {\n removeOpRecursive(parentOperator);\n }\n }\n }", "public String getRightOperand()\r\n {\r\n if (rightOperand == null)\r\n {\r\n return null;\r\n }\r\n if (rightOperand.contains(\"+1i\"))\r\n {\r\n return rightOperand.replace(\"+1i\", \"+i\");\r\n }\r\n else if (rightOperand.contains(\"-1i\"))\r\n {\r\n return rightOperand.replace(\"-1i\", \"-i\");\r\n }\r\n return rightOperand;\r\n }", "@Override\n\tpublic void VisitUnaryNode(UnaryOperatorNode Node) {\n\n\t}", "private void negate()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.negate();\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}", "public static EvaluationStep getUnaryOperation(final String theOperator)\n {\n if(\"+\".equals(theOperator)) return NoOp;\n if(\"-\".equals(theOperator)) return Negation;\n throw new IllegalStateException(\"Invalid unary operator ($operator).\".replace(\"$operator\", (null != theOperator) ? theOperator : \"null\"));\n }", "@Override\n\t\t\tpublic Ast unaryOp(UnaryOp ast, Void dummy) {\n\t\t\t\tsuper.unaryOp(ast, dummy);\n\t\t\t\ttry {\n\t\t\t\t\tInteger intValue = null;\n\t\t\t\t\tBoolean boolValue = null;\n\n\t\t\t\t\tswitch (ast.operator) {\n\t\t\t\t\tcase U_BOOL_NOT:\n\t\t\t\t\t\tboolValue = !asBool(ast.arg());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase U_MINUS:\n\t\t\t\t\t\tintValue = -asInt(ast.arg());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase U_PLUS:\n\t\t\t\t\t\tintValue = asInt(ast.arg());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn replace(ast, intValue, boolValue);\n\t\t\t\t} catch (NotConstantException e) {\n\t\t\t\t\t// non-constant argument, no effect\n\t\t\t\t\treturn ast;\n\t\t\t\t}\n\t\t\t}", "public static UnaryExpression negate(Expression expression, Method method) {\n return makeUnary(ExpressionType.Negate, expression, null, method);\n }", "public boolean remove(Search search)\n\t\t{\n\t\t\tint index = ArrayUtils.indexOf(theOperands, search);\n\t\t\tif(index >= 0)\n\t\t\t{\n\t\t\t\tremove(index);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}", "public final EObject ruleUnaryExpressionNotPlusMinus() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token otherlv_2=null;\n EObject this_UnaryExpression_1 = null;\n\n EObject this_UnaryExpression_3 = null;\n\n EObject this_CastedExpression_4 = null;\n\n EObject this_PrimaryExpression_5 = 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:899:28: ( ( (otherlv_0= '~' this_UnaryExpression_1= ruleUnaryExpression ) | (otherlv_2= '!' this_UnaryExpression_3= ruleUnaryExpression ) | ( ( ruleCastedExpression )=>this_CastedExpression_4= ruleCastedExpression ) | this_PrimaryExpression_5= rulePrimaryExpression ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:900:1: ( (otherlv_0= '~' this_UnaryExpression_1= ruleUnaryExpression ) | (otherlv_2= '!' this_UnaryExpression_3= ruleUnaryExpression ) | ( ( ruleCastedExpression )=>this_CastedExpression_4= ruleCastedExpression ) | this_PrimaryExpression_5= rulePrimaryExpression )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:900:1: ( (otherlv_0= '~' this_UnaryExpression_1= ruleUnaryExpression ) | (otherlv_2= '!' this_UnaryExpression_3= ruleUnaryExpression ) | ( ( ruleCastedExpression )=>this_CastedExpression_4= ruleCastedExpression ) | this_PrimaryExpression_5= rulePrimaryExpression )\n int alt14=4;\n alt14 = dfa14.predict(input);\n switch (alt14) {\n case 1 :\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:900:2: (otherlv_0= '~' this_UnaryExpression_1= ruleUnaryExpression )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:900:2: (otherlv_0= '~' this_UnaryExpression_1= ruleUnaryExpression )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:900:4: otherlv_0= '~' this_UnaryExpression_1= ruleUnaryExpression\n {\n otherlv_0=(Token)match(input,38,FOLLOW_38_in_ruleUnaryExpressionNotPlusMinus2125); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_0, grammarAccess.getUnaryExpressionNotPlusMinusAccess().getTildeKeyword_0_0());\n \n }\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getUnaryExpressionNotPlusMinusAccess().getUnaryExpressionParserRuleCall_0_1()); \n \n }\n pushFollow(FOLLOW_ruleUnaryExpression_in_ruleUnaryExpressionNotPlusMinus2147);\n this_UnaryExpression_1=ruleUnaryExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_UnaryExpression_1; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n\n\n }\n break;\n case 2 :\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:914:6: (otherlv_2= '!' this_UnaryExpression_3= ruleUnaryExpression )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:914:6: (otherlv_2= '!' this_UnaryExpression_3= ruleUnaryExpression )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:914:8: otherlv_2= '!' this_UnaryExpression_3= ruleUnaryExpression\n {\n otherlv_2=(Token)match(input,39,FOLLOW_39_in_ruleUnaryExpressionNotPlusMinus2166); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_2, grammarAccess.getUnaryExpressionNotPlusMinusAccess().getExclamationMarkKeyword_1_0());\n \n }\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getUnaryExpressionNotPlusMinusAccess().getUnaryExpressionParserRuleCall_1_1()); \n \n }\n pushFollow(FOLLOW_ruleUnaryExpression_in_ruleUnaryExpressionNotPlusMinus2188);\n this_UnaryExpression_3=ruleUnaryExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_UnaryExpression_3; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n\n\n }\n break;\n case 3 :\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:928:6: ( ( ruleCastedExpression )=>this_CastedExpression_4= ruleCastedExpression )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:928:6: ( ( ruleCastedExpression )=>this_CastedExpression_4= ruleCastedExpression )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:928:7: ( ruleCastedExpression )=>this_CastedExpression_4= ruleCastedExpression\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getUnaryExpressionNotPlusMinusAccess().getCastedExpressionParserRuleCall_2()); \n \n }\n pushFollow(FOLLOW_ruleCastedExpression_in_ruleUnaryExpressionNotPlusMinus2222);\n this_CastedExpression_4=ruleCastedExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_CastedExpression_4; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n\n\n }\n break;\n case 4 :\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:939:5: this_PrimaryExpression_5= rulePrimaryExpression\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getUnaryExpressionNotPlusMinusAccess().getPrimaryExpressionParserRuleCall_3()); \n \n }\n pushFollow(FOLLOW_rulePrimaryExpression_in_ruleUnaryExpressionNotPlusMinus2250);\n this_PrimaryExpression_5=rulePrimaryExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_PrimaryExpression_5; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\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 void setOperand(Number value) {\n setAttributeInternal(OPERAND, value);\n }", "ExpOperand createExpOperand();", "public void sub(String operand, Integer value) throws Exception{\n if (operand.equals(\"=\")){\n Integer accVal = dataMemory.getData(0);\n dataMemory.setData(0, accVal - value);\n }else if (operand.equals(\" \")){\n Integer regVal = dataMemory.getData(value);\n Integer accVal = dataMemory.getData(0);\n dataMemory.setData(0, accVal - regVal);\n }else if (operand.equals(\"*\")){\n Integer newDirection = dataMemory.getData(value);\n Integer regVal = dataMemory.getData(newDirection);\n Integer accVal = dataMemory.getData(0);\n dataMemory.setData(0, accVal - regVal);\n }else{\n throw new IllegalArgumentException(\"No valid operand\");\n }\n }", "BaseNumber subtract(BaseNumber operand);", "void removeOperators(Object rgID, List<Object> operIDs);", "final void resetOperator( UniqueString us ) {\n this.operator = Context.getGlobalContext().getSymbol(us);\n }", "public Number getOperand() {\n return (Number)getAttributeInternal(OPERAND);\n }", "public Expression simplify() {\r\n return this;\r\n }", "@Override\n public boolean visit(JsPostfixOperation x, JsContext<JsExpression> ctx) {\n return !(x.getArg() instanceof JsStringLiteral);\n }", "public Unary createNot(Expr expr) {\n return createNot(expr.position(), expr);\n }", "public void deleteCharacter(){\n if(currentExp.length()>0){\n currentExp = currentExp.substring(0,currentExp.length()-1);\n calculationResult.onExpressionChange(currentExp,true);\n calculationResult.onExpressionChangeResult(\"\",true);\n }\n else{\n calculationResult.onExpressionChange(\"Invalid Input\",false);\n }\n\n }", "private static void removeFromKey(SelectionKey key, int op)\n {\n int status = key.interestOps() ^ op;\n if (status == 0) {\n terminateKey(key);\n } else {\n key.interestOps(status);\n }\n }", "public final void unaryExpressionNotPlusMinus() throws RecognitionException {\n int unaryExpressionNotPlusMinus_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"unaryExpressionNotPlusMinus\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(823, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 122) ) { return ; }\n // Java.g:824:5: ( '~' unaryExpression | '!' unaryExpression | castExpression | primary ( selector )* ( '++' | '--' )? )\n int alt145=4;\n try { dbg.enterDecision(145);\n\n try {\n isCyclicDecision = true;\n alt145 = dfa145.predict(input);\n }\n catch (NoViableAltException nvae) {\n dbg.recognitionException(nvae);\n throw nvae;\n }\n } finally {dbg.exitDecision(145);}\n\n switch (alt145) {\n case 1 :\n dbg.enterAlt(1);\n\n // Java.g:824:9: '~' unaryExpression\n {\n dbg.location(824,9);\n match(input,111,FOLLOW_111_in_unaryExpressionNotPlusMinus4985); if (state.failed) return ;\n dbg.location(824,13);\n pushFollow(FOLLOW_unaryExpression_in_unaryExpressionNotPlusMinus4987);\n unaryExpression();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n case 2 :\n dbg.enterAlt(2);\n\n // Java.g:825:9: '!' unaryExpression\n {\n dbg.location(825,9);\n match(input,112,FOLLOW_112_in_unaryExpressionNotPlusMinus4997); if (state.failed) return ;\n dbg.location(825,13);\n pushFollow(FOLLOW_unaryExpression_in_unaryExpressionNotPlusMinus4999);\n unaryExpression();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n case 3 :\n dbg.enterAlt(3);\n\n // Java.g:826:9: castExpression\n {\n dbg.location(826,9);\n pushFollow(FOLLOW_castExpression_in_unaryExpressionNotPlusMinus5009);\n castExpression();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n case 4 :\n dbg.enterAlt(4);\n\n // Java.g:827:9: primary ( selector )* ( '++' | '--' )?\n {\n dbg.location(827,9);\n pushFollow(FOLLOW_primary_in_unaryExpressionNotPlusMinus5019);\n primary();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(827,17);\n // Java.g:827:17: ( selector )*\n try { dbg.enterSubRule(143);\n\n loop143:\n do {\n int alt143=2;\n try { dbg.enterDecision(143);\n\n int LA143_0 = input.LA(1);\n\n if ( (LA143_0==29||LA143_0==48) ) {\n alt143=1;\n }\n\n\n } finally {dbg.exitDecision(143);}\n\n switch (alt143) {\n \tcase 1 :\n \t dbg.enterAlt(1);\n\n \t // Java.g:0:0: selector\n \t {\n \t dbg.location(827,17);\n \t pushFollow(FOLLOW_selector_in_unaryExpressionNotPlusMinus5021);\n \t selector();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop143;\n }\n } while (true);\n } finally {dbg.exitSubRule(143);}\n\n dbg.location(827,27);\n // Java.g:827:27: ( '++' | '--' )?\n int alt144=2;\n try { dbg.enterSubRule(144);\n try { dbg.enterDecision(144);\n\n int LA144_0 = input.LA(1);\n\n if ( ((LA144_0>=109 && LA144_0<=110)) ) {\n alt144=1;\n }\n } finally {dbg.exitDecision(144);}\n\n switch (alt144) {\n case 1 :\n dbg.enterAlt(1);\n\n // Java.g:\n {\n dbg.location(827,27);\n if ( (input.LA(1)>=109 && input.LA(1)<=110) ) {\n input.consume();\n state.errorRecovery=false;state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n dbg.recognitionException(mse);\n throw mse;\n }\n\n\n }\n break;\n\n }\n } finally {dbg.exitSubRule(144);}\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 122, unaryExpressionNotPlusMinus_StartIndex); }\n }\n dbg.location(828, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"unaryExpressionNotPlusMinus\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "public final Expr unExpr() throws RecognitionException {\r\n Expr result = null;\r\n\r\n int unExpr_StartIndex = input.index();\r\n\r\n Expr x =null;\r\n\r\n\r\n try {\r\n if ( state.backtracking>0 && alreadyParsedRule(input, 13) ) { return result; }\r\n\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:100:5: ( '+' x= unExpr | '-' x= unExpr | '!' x= unExpr |x= primary )\r\n int alt8=4;\r\n switch ( input.LA(1) ) {\r\n case 24:\r\n {\r\n alt8=1;\r\n }\r\n break;\r\n case 25:\r\n {\r\n alt8=2;\r\n }\r\n break;\r\n case 18:\r\n {\r\n alt8=3;\r\n }\r\n break;\r\n case Ident:\r\n case Int:\r\n case StringLiteral:\r\n case 21:\r\n {\r\n alt8=4;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return result;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 8, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n\r\n switch (alt8) {\r\n case 1 :\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:100:7: '+' x= unExpr\r\n {\r\n match(input,24,FOLLOW_24_in_unExpr533); if (state.failed) return result;\r\n\r\n pushFollow(FOLLOW_unExpr_in_unExpr537);\r\n x=unExpr();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result = new Pos(x); }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:101:7: '-' x= unExpr\r\n {\r\n match(input,25,FOLLOW_25_in_unExpr547); if (state.failed) return result;\r\n\r\n pushFollow(FOLLOW_unExpr_in_unExpr551);\r\n x=unExpr();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result = new Neg(x); }\r\n\r\n }\r\n break;\r\n case 3 :\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:102:7: '!' x= unExpr\r\n {\r\n match(input,18,FOLLOW_18_in_unExpr561); if (state.failed) return result;\r\n\r\n pushFollow(FOLLOW_unExpr_in_unExpr565);\r\n x=unExpr();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result = new Not(x); }\r\n\r\n }\r\n break;\r\n case 4 :\r\n // C:\\\\Users\\\\caytekin\\\\Documents\\\\GitHub\\\\sea-of-ql\\\\caytekin\\\\QLJava/src/org/uva/sea/ql/parser/antlr/QL.g:103:7: x= primary\r\n {\r\n pushFollow(FOLLOW_primary_in_unExpr577);\r\n x=primary();\r\n\r\n state._fsp--;\r\n if (state.failed) return result;\r\n\r\n if ( state.backtracking==0 ) { result = x; }\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n if ( state.backtracking>0 ) { memoize(input, 13, unExpr_StartIndex); }\r\n\r\n }\r\n return result;\r\n }", "public String removeCharacter(int idx)\r\n\t{\r\n\t\tif(expression.length() == 0)\r\n\t\t\treturn \"\";\r\n\t\tString result = expression.substring(idx, idx + 1);\r\n\t\tif(idx == expression.length() - 1)\r\n\t\t\texpression = expression.substring(0, idx);\r\n\t\telse\r\n\t\t\texpression = expression.substring(0, idx) + expression.substring(idx + 1);\r\n\t\treturn result;\r\n\t}", "public final Expr unExpr() throws RecognitionException {\n Expr result = null;\n\n int unExpr_StartIndex = input.index();\n\n Expr x =null;\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 9) ) { return result; }\n\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:104:5: ( '+' x= unExpr | '-' x= unExpr | '!' x= unExpr |x= primary )\n int alt6=4;\n switch ( input.LA(1) ) {\n case 21:\n {\n alt6=1;\n }\n break;\n case 22:\n {\n alt6=2;\n }\n break;\n case 15:\n {\n alt6=3;\n }\n break;\n case BoolLit:\n case Decimal:\n case Ident:\n case Int:\n case StringLit:\n case 18:\n {\n alt6=4;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return result;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 6, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt6) {\n case 1 :\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:104:8: '+' x= unExpr\n {\n match(input,21,FOLLOW_21_in_unExpr401); if (state.failed) return result;\n\n pushFollow(FOLLOW_unExpr_in_unExpr405);\n x=unExpr();\n\n state._fsp--;\n if (state.failed) return result;\n\n if ( state.backtracking==0 ) { result = new Pos(x); }\n\n }\n break;\n case 2 :\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:105:8: '-' x= unExpr\n {\n match(input,22,FOLLOW_22_in_unExpr416); if (state.failed) return result;\n\n pushFollow(FOLLOW_unExpr_in_unExpr420);\n x=unExpr();\n\n state._fsp--;\n if (state.failed) return result;\n\n if ( state.backtracking==0 ) { result = new Neg(x); }\n\n }\n break;\n case 3 :\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:106:8: '!' x= unExpr\n {\n match(input,15,FOLLOW_15_in_unExpr431); if (state.failed) return result;\n\n pushFollow(FOLLOW_unExpr_in_unExpr435);\n x=unExpr();\n\n state._fsp--;\n if (state.failed) return result;\n\n if ( state.backtracking==0 ) { result = new Not(x); }\n\n }\n break;\n case 4 :\n // /home/jahn/workspace1/QLAndroid/src/org/uva/sea/ql/parser/antlr/QL.g:107:8: x= primary\n {\n pushFollow(FOLLOW_primary_in_unExpr448);\n x=primary();\n\n state._fsp--;\n if (state.failed) return result;\n\n if ( state.backtracking==0 ) { result = x; }\n\n }\n break;\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 if ( state.backtracking>0 ) { memoize(input, 9, unExpr_StartIndex); }\n\n }\n return result;\n }", "public void delLiteral();", "public Fraction minus(Fraction rightOperand){\n\t\tint denom = myDenominator*rightOperand.getDenominator();\n\n\t\tint num = (myNumerator * (denom/myDenominator)) -\n\t\t\t\t\t(rightOperand.getNumerator() *\n\t\t\t\t\t(denom/rightOperand.getDenominator()));\n\n\t\treturn new Fraction(num, denom);\n\t}", "@Override\n public String visit(UnaryExpr n, Object arg) {\n return null;\n }", "public String getLeftOperand()\r\n {\r\n if (leftOperand == null)\r\n {\r\n return null;\r\n }\r\n if (leftOperand.contains(\"+1i\"))\r\n {\r\n return leftOperand.replace(\"+1i\", \"+i\");\r\n }\r\n else if (leftOperand.contains(\"-1i\"))\r\n {\r\n return leftOperand.replace(\"-1i\", \"-i\");\r\n }\r\n return leftOperand;\r\n }", "public static UnaryExpression negateChecked(Expression expression, Method method) {\n return makeUnary(ExpressionType.NegateChecked, expression, null, method);\n }", "public static NotSpecification not( Specification<Composite> operand )\n {\n return new NotSpecification( operand );\n }", "void visit(MinusExpression expression);", "private Node prune(Node r) {\r\n if (r == null) return null;\r\n Op op = r.op();\r\n r.left(prune(r.left()));\r\n if (r.left() == null) r.ref(prune(r.ref()));\r\n else r.right(prune(r.right()));\r\n if (r.right() != null && r.right().op() == Temp) r.right(null);\r\n if (op == Temp) return r.left();\r\n return r;\r\n }", "public void del(){\n /*use an if statement to check if the curr is not empty remove the last number*/\n if(!curr.isEmpty()){\n\n /*check if the dot is the last char in the curr then set dot_inserted to false*/\n if(curr.substring(curr.length()-1, curr.length()).equals(\".\")){\n dot_inserted = false;\n }\n\n /*Check validation for the operator*/\n /*if operator is detected delete 3 digits or chars from the curr and\n set operator inserted to false*/\n /*The 3digits or number include the default spaces*/\n if(curr.substring(curr.length()-1, curr.length()).equals(\" \")){\n curr = curr.substring(0, curr.length()-3);\n operator_inserted = false;\n }else{\n curr = curr.substring(0, curr.length()-1);\n }\n }\n }", "void unsetValueQuantity();", "public void undoEquation() {\n if (eqn == null) {\n EquationList eqn = null;\n } else {\n eqn = eqn.next;\n }\n }", "private Token negationCheck(Token pToken, Token pPrevToken) {\n if (pPrevToken == null || pPrevToken instanceof BinaryOperator || pPrevToken instanceof LeftParen) {\n pToken = new NegOperator();\n }\n return pToken;\n }", "public void neg_() {\n TH.THTensor_(neg)(this, this);\n }", "public T minus( double b ) {\n T ret = createLike();\n ops.minus(mat, b, ret.mat);\n return ret;\n }", "private StringBuilder getOperand() {\r\n\t\tif (\"\".equals(operator)) {\r\n\t\t\treturn firstNumber;\r\n\t\t} else {\r\n\t\t\treturn secondNumber;\r\n\t\t}\r\n\t}", "Operand createOperand();", "public void removeOperador() {\r\n\t\toperadorLaboratorio=null;\r\n\t}", "@Override\n\tprotected void minus(char c, InterimResult ir)\n\t{\n\t\tNegateAction Negate = new NegateAction();\n\t\tNegate.execute(ir, c);\t\t\n\t}", "@Override\n\tdouble evaluate() {\n\t\treturn Math.abs(operand.getVal());\n\t}", "public void subtract()\r\n {\r\n resultDoubles = Operations.subtraction(leftOperand, rightOperand);\r\n resultResetHelper();\r\n }", "public void clear()\r\n {\r\n result = null;\r\n leftOperand = null;\r\n rightOperand = null;\r\n operator = null;\r\n resultDoubles = null;\r\n }", "public Object visitBitwiseNegationExpression(GNode n) {\n Object a, result;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n \n dostring = false;\n \n if (a instanceof Long) {\n result = ~ (Long) a;\n }\n else {\n return \"~ \" + parens(a);\n }\n \n return result;\n }", "@Override public JannotTreeJCExpression getLeftOperand()\n{\n return createTree(getNode().getLeftOperand()); \n}", "default void negate()\n {\n getAxis().negate();\n setAngle(-getAngle());\n }", "public void removeLastInstruction() {\n if (methodMode) {\n methodCode.removeLastInstruction();\n } else {\n program.removeLastInstruction();\n }\n }", "public void removeOperation(String name)\n {\n nameToOperation.remove(name);\n }", "public void remove( AnyType x )\r\n\t{\r\n\t\troot = remove( x, root );\r\n\t}", "public static UnaryExpression postDecrementAssign(Expression expression) {\n return makeUnary(ExpressionType.PostDecrementAssign, expression, expression.getType());\n }", "public ComplementOp() {\r\n\t\tsuper();\r\n\t}", "public static UnaryExpression not(Expression expression, Method method) {\n return makeUnary(ExpressionType.Not, expression, null, method);\n }", "public Object visitUnaryMinusExpression(GNode n) {\n Object a;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n \n dostring = false;\n \n if (a instanceof Long) {\n return - (Long) a;\n }\n else {\n return \"- \" + parens(a);\n }\n }", "@Override\n public RowExpression rewrite(RowExpression expression, Rule.Context context)\n {\n if (expression instanceof CallExpression && ((CallExpression) expression).getArguments().stream().anyMatch(OriginalExpressionUtils::isExpression)) {\n return removeOriginalExpressionArguments((CallExpression) expression, context.getSession(), context.getSymbolAllocator(), context);\n }\n return removeOriginalExpression(expression, context, new HashMap<>());\n }", "@Override\n public boolean visit(JsBinaryOperation x, JsContext<JsExpression> ctx) {\n return !x.getOperator().isAssignment()\n || !(x.getArg1() instanceof JsStringLiteral);\n }", "public void clear() {\r\n\t\tfirstNumber.setLength(0);\r\n\t\tsecondNumber.setLength(0);\r\n\t\toperator = \"\";\r\n\t\tsign = false;\r\n\t}", "public AVLNode delUnaryRight() {\n\t\t\tchar side = this.parentSide();\n\t\t\tif (side == 'R') {\n\t\t\t\tthis.parent.setRight(this.getRight());\n\t\t\t} else {\n\t\t\t\tthis.parent.setLeft(this.getRight());\n\t\t\t}\n\t\t\tthis.right.setParent(this.parent);\n\t\t\tAVLNode parent = (AVLNode) this.parent;\n\t\t\tthis.parent = null;\n\t\t\tthis.left = null;\n\t\t\treturn parent;\n\t\t}", "public void remove(ImageView power){\n power.setImage(null);\n }", "public static UnaryExpression decrement(Expression expression, Method method) { throw Extensions.todo(); }" ]
[ "0.6833485", "0.6469902", "0.6260975", "0.6205498", "0.6173911", "0.6115458", "0.6002815", "0.5988549", "0.59364", "0.58757406", "0.58134747", "0.57954466", "0.578467", "0.56979054", "0.56727946", "0.56608737", "0.561321", "0.5609277", "0.55852205", "0.5547832", "0.55016804", "0.54900396", "0.5482525", "0.54411864", "0.5406117", "0.5405707", "0.5383952", "0.53794444", "0.5371796", "0.53602594", "0.5358054", "0.5352437", "0.53466237", "0.5279096", "0.5273542", "0.5272232", "0.5259985", "0.52573526", "0.5253191", "0.52263355", "0.52179956", "0.520826", "0.5204537", "0.5197741", "0.5194869", "0.51935464", "0.5169658", "0.5165146", "0.51548356", "0.51499337", "0.51479286", "0.514396", "0.5140745", "0.51352805", "0.513363", "0.51305073", "0.5116052", "0.5114639", "0.5113574", "0.5083554", "0.50815344", "0.5067777", "0.5064538", "0.50436157", "0.50413996", "0.5030136", "0.5026404", "0.502591", "0.50258315", "0.5022713", "0.5020834", "0.5019346", "0.5007844", "0.50069016", "0.50046057", "0.49975556", "0.4996935", "0.49915704", "0.49897107", "0.49895462", "0.49805343", "0.4968445", "0.49490514", "0.49448627", "0.4908292", "0.4903491", "0.49021155", "0.49012706", "0.48958972", "0.48822916", "0.48820412", "0.48766288", "0.48731083", "0.48708975", "0.4866284", "0.48662597", "0.48662347", "0.48583418", "0.48575315", "0.48561844" ]
0.5599793
18
A shorthand, chainingenabled method
public ExpressionSearch addOps(Search... ops) { for(Search op : ops) add(op); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ChainingMethods() {\n // private constructor\n\n }", "public Builder getThis() { return this; }", "private final T self() { return (T)this; }", "private final T self() { return (T)this; }", "public T and() { return parent; }", "Chain getChain();", "default With with(final String name) {\r\n\t\treturn new With(this, name);\r\n\t}", "public BaseCore then (BaseCore thenCore)\n {\n chained = thenCore;\n return chained;\n }", "public an b() {\n return a(this.a);\n }", "private Combined() {}", "public Object get(Object obj) {\n return c().a(obj);\n }", "public a get() {\n return c();\n }", "public t b() {\n return a(this.a);\n }", "protected abstract Set method_1559();", "public bb b() {\n return a(this.a);\n }", "public R spitOut3(R obj) {\n\t\treturn obj;\t\t\n\t}", "public Set a()\r\n/* 44: */ {\r\n/* 45: 47 */ return this.e;\r\n/* 46: */ }", "abstract Function get(Object arg);", "protected abstract T getThis();", "Operator operator();", "public void andThisIsAMethodName(){}", "default With with(final With with) {\r\n\t\treturn with.parent(this);\r\n\t}", "public final /* synthetic */ Object a() {\r\n return c.a(this.a, b.d());\r\n }", "@Override\n\tpublic void jugar() {}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "@Override\n public Matcher way() {\n return withView(getElementView(this));\n }", "public final Iterable getChainingIterator() {\n\t// TODO: Implemente the chaining iterator and add generic type to Iterable. I suppose it is this class.\n\tthrow new IllegalAccessError(\"Not implemented yet\");\n }", "public With as(Select select) {\n\t\tgetLast().setSelect(Objects.requireNonNull(select, \"select cannot be null\"));\n\t\treturn this;\n\t}", "public Rule call()\n \t{\n \t\treturn sequence(id(),\n \t\t\t\tfirstOf(\n \t\t\t\tsequence(enforcedSequence(PAR_L, optional(args()), PAR_R), optional(closure())), //params & opt. closure\n \t\t\t\tclosure())); // closure only\n \t}", "protected T self() {\n return (T) this;\n }", "@Override\n public BinaryOperator<ObjectNode> combiner() {\n return (l, r) -> {\n Iterator<Map.Entry<String, JsonNode>> it = r.fields();\n while (it.hasNext()) {\n Map.Entry<String, JsonNode> entry = it.next();\n l.set(entry.getKey(), entry.getValue());\n }\n return l;\n };\n }", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "StackManipulation cached();", "public static Object builder() {\n\t\treturn null;\r\n\t}", "public THING get() {\n return directlyGet();\n }", "public e n() {\r\n return a(this);\r\n }", "private T thisT() {\n @SuppressWarnings(\"unchecked\")\n T thisT = (T) this;\n return thisT;\n }", "public ChainOperator(){\n\n }", "protected a bi() {\n return new a(this);\n }", "public static Object builder() {\n\t\treturn null;\n\t}", "Chain createChain();", "public GetBuilder get() {\n return new GetBuilder(this);\n }", "Snapshot apply();", "Object peekABoo();", "public <R> R transform(Function<? super Builder<?>, ? extends R> f) {\n return f.apply(this);\n }", "@Override\n\t@SuppressWarnings(\"all\")\n\tpublic IReturn IReturn() {\n\t\treturn this;\n\t}", "public static ChainingMethods getInstance(){\n if (mInstance == null) {\n mInstance = new ChainingMethods();\n }\n\n return mInstance;\n }", "public static Builder builder(){ return new Builder(); }", "public void lambaAsObjectExample() {\n }", "protected Multiset<E> c() {\n return a();\n }", "default <V> Parser<S, T, P<U, V>> and(Parser<S, T, V> p) {\n return and(p,(a,b)->P.p(a,b));\n }", "public AssertScriptModel and() {\n\t return this;\n\t}", "public Object call() throws Exception {\n return this.call();\n }", "public MethodBuilder get(String name) {\n\t\treturn name(\"get \" + name);\n\t}", "public final /* bridge */ /* synthetic */ Object mo7556bF() {\n return this;\n }", "public final /* bridge */ /* synthetic */ Object mo7556bF() {\n return this;\n }", "@Override\n public BinaryFunc get() { return new AbsPlus(); }", "public void a() {\n ((a) this.a).a();\n }", "public A getFirst() { return first; }", "protected Context f() {\n return this.a;\n }", "protected abstract T self();", "protected abstract T self();", "protected abstract T self();", "public Operation zCombinedAnd(Operation op)\r\n {\r\n if (op.equals(this))\r\n {\r\n return this;\r\n }\r\n return null;\r\n }", "public class_4 method_9() {\n return this.method_17();\n }", "public static MethodBuilder method() {\n\t\treturn new MethodBuilder();\n\t}", "public Expression simplify() {\r\n return this;\r\n }", "private Builder() {\n\t\t}", "public static void thisMethod() {\n }", "private Builder() {}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "B getResult();", "public Entry method_1584() {\n return this.c();\n }", "public Complex getComplex() {return this;}", "public final com.squareup.b.a invoke() {\n return new com.squareup.b.a(this.this$0);\n }", "@SafeVarargs\n/* */ public final a<T> a(T... var0) {\n/* 122 */ Stream.<T>of(var0).map(this.b::getKey).forEach(var0 -> this.a.a(var0, this.c));\n/* 123 */ return this;\n/* */ }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "public KCallable mo37239b() {\n C12946x.m33839a(this);\n return this;\n }", "Builder makePermanent();", "@Deprecated\n public Call fullCopy() {\n return treeCopyNoTransform();\n }", "public T orElse(T other) {\r\n\t\treturn value != null ? value : other;\r\n\t}", "public Entity.Spigot spigot() {\n/* 1087 */ return this.spigot;\n/* */ }", "public Builder toBuilder() {\n return new Builder(this);\n }", "public Builder toBuilder() {\n return new Builder(this);\n }", "public Builder toBuilder() {\n return new Builder(this);\n }", "public Builder toBuilder() {\n return new Builder(this);\n }", "public Builder toBuilder() {\n return new Builder(this);\n }", "public Builder toBuilder() {\n return new Builder(this);\n }", "public Builder toBuilder() {\n return new Builder(this);\n }", "public A first() {\n return first;\n }", "T compose(AbsonObject abson);", "public Watermelon saySomething() {\n return new Watermelon(\"Japanese\" , \"Square\");//it return an object of watermelon\n }", "private static void alloptional() {\n AllOptional op1 = ImmutableAllOptional.builder().build();\n System.out.println(op1);\n \n AllOptional op2 = ImmutableAllOptional.builder()\n //.v1(1)\n .v2(2)\n .i1(1)\n .l1(1L)\n .d1(1.0)\n .build();\n System.out.println(op2);\n System.out.println();\n }", "public Ability init(Object... args)\r\n {\r\n return this;\r\n }", "private ArraySetHelper() {\n\t\t// nothing\n\t}", "private Get() {}", "private Get() {}", "T first();", "Object produce();", "public final T getResult() {\n join();\n return self();\n }", "protected Expr simplifyOnce(final Set<FSimplifierOptions> opts) {\r\n\t\treturn this;\r\n\t}" ]
[ "0.58702105", "0.54599595", "0.5391991", "0.5391991", "0.53666174", "0.51898474", "0.5157154", "0.5154773", "0.49586144", "0.48908177", "0.48720354", "0.48608387", "0.485988", "0.48297176", "0.4806982", "0.48022807", "0.47977406", "0.47927386", "0.4790983", "0.47684133", "0.47485125", "0.4730156", "0.47298285", "0.47227493", "0.471461", "0.47140238", "0.46854678", "0.4667644", "0.46499753", "0.46435583", "0.4642036", "0.4630253", "0.46225643", "0.46210352", "0.46208113", "0.461558", "0.4607098", "0.46050003", "0.45989004", "0.4597737", "0.45904794", "0.45875645", "0.45800328", "0.45781663", "0.45534542", "0.45309177", "0.4525116", "0.45246273", "0.4520847", "0.4520722", "0.452027", "0.45160216", "0.44764262", "0.44728115", "0.4471198", "0.4471198", "0.4467159", "0.44639534", "0.44593474", "0.44549224", "0.4448558", "0.4448558", "0.4448558", "0.44280908", "0.4427616", "0.4423061", "0.44152135", "0.4413716", "0.44124487", "0.4407158", "0.44066876", "0.43955797", "0.43907857", "0.43873045", "0.43797773", "0.43787014", "0.43697855", "0.43676716", "0.43671098", "0.43663606", "0.435966", "0.43592975", "0.43479997", "0.43479997", "0.43479997", "0.43479997", "0.43479997", "0.43479997", "0.43479997", "0.43444124", "0.4342684", "0.43421462", "0.43341464", "0.43335313", "0.43325627", "0.4331152", "0.4331152", "0.4330746", "0.4326385", "0.43238094", "0.43211463" ]
0.0
-1
Recursively simplifies this expression if possible
public void simplify() { for(int o = 0; o < theOperands.length; o++) { if(!(theOperands[o] instanceof ExpressionSearch)) continue; ExpressionSearch exp = (ExpressionSearch) theOperands[o]; exp.simplify(); if(exp.getOperandCount() == 0) { remove(o); o--; } if(exp.and == and) { Search [] newOps = new Search [theOperands.length + exp.theOperands.length - 1]; System.arraycopy(theOperands, 0, newOps, 0, o); System.arraycopy(exp.theOperands, 0, newOps, o, exp.theOperands.length); System.arraycopy(theOperands, o + 1, newOps, o + exp.theOperands.length, theOperands.length - o - 1); for(Search op : exp.theOperands) if(op instanceof CompoundSearch) ((CompoundSearch) op).setParent(this); o += exp.theOperands.length - 1; theOperands = newOps; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public node simplify() {\n node n = null;\n Object[] o = children().toArray();\n int l = o.length;\n if ( l == 1 )\n return (node) o[0];\n\n node orr = (node) o[0];\n node atmost1 = (node) o[0];\n\n for ( int i=1; i<l; i++ ) {\n orr = new or( orr, (node) o[i] );\n atmost1 = new atmostone( atmost1, (node) o[i] );\n }\n node result = (new and(orr, atmost1)).simplify();\n return result;\n }", "@Override\n public Expression simplifyMore() {\n Expression left = super.getLeft();\n Expression right = super.getRight();\n\n // x * x -> x^2\n if (left.toString().equals(right.toString())) {\n return new Pow(left, 2);\n }\n\n // ((2.0 * x) * (x * 3.0)) -> 6x^2\n if (left instanceof Mult && right instanceof Mult) {\n if (((Mult) left).getRight().toString().equals(((Mult) right).getLeft().toString())) {\n Expression exp = new Mult(new Mult(((Mult) left).getLeft(), ((Mult) right).getRight()),\n new Mult(((Mult) left).getRight(), ((Mult) right).getLeft()));\n exp.turnBonusOn();\n return exp.simplify();\n }\n }\n\n // 2x * 2x -> 4x^2\n if (left instanceof Mult && right instanceof Mult) {\n if (((Mult) left).getRight().toString().equals(((Mult) right).getRight().toString())) {\n return new Mult(new Mult(((Mult) left).getLeft(), ((Mult) right).getLeft()).simplify(),\n new Pow(((Mult) left).getRight(), 2)).simplify();\n }\n }\n\n // 2x * 2y -> 4xy\n if (left instanceof Mult && right instanceof Mult) {\n return new Mult(new Mult(((Mult) left).getLeft(), ((Mult) right).getLeft()).simplify(),\n new Mult(((Mult) left).getRight(), ((Mult) right).getRight())).simplify();\n }\n\n // sin(x) * cos(x) -> 0.5 * sin(2x)\n if (right instanceof Sin && left instanceof Cos) {\n Expression exp = new Mult(0.5, new Sin(new Mult(2, ((Sin) right).getExpression())));\n exp.turnBonusOn();\n return exp.simplify();\n }\n\n // cos(x) * sin(x) -> 0.5 * sin(2x)\n if (right instanceof Cos && left instanceof Sin) {\n Expression exp = new Sin(new Mult(2, ((Cos) right).getExpression()));\n exp.turnBonusOn();\n return exp.simplify();\n }\n\n // log(x, y) * 2 -> 2 * log(x, y)\n if (left instanceof Sin || left instanceof Cos || left instanceof Log) {\n Expression exp = new Mult(right, left);\n exp.turnBonusOn();\n return exp.simplify();\n }\n\n // x^2 * x^3 -> x^5\n if (left instanceof Pow && right instanceof Pow) {\n if (((Pow) left).getLeft().toString().equals(((Pow) right).getLeft().toString())) {\n Expression exp = new Pow(((Pow) left).getLeft(),\n new Plus(((Pow) left).getRight(), ((Pow) right).getRight()));\n exp.turnBonusOn();\n return exp.simplify();\n }\n }\n\n // x^2 * x -> x^3\n if (left instanceof Pow) {\n if (((Pow) left).getLeft().toString().equals(right.toString())) {\n Expression exp = new Pow(((Pow) left).getLeft(), new Plus(((Pow) left).getRight(), 1));\n exp.turnBonusOn();\n return exp.simplify();\n }\n }\n\n return this;\n }", "@Override\n public Expression simplify() {\n Expression right = getExpRight().simplify();\n Expression left = getExpLeft().simplify();\n //check if you can simplify more\n Num zero = new Num(0), one = new Num(1);\n //check if the left expression equals to zero\n if (zero.isEqual(left)) {\n return zero;\n }\n //check if the right expression equals to zero\n if (zero.isEqual(right)) {\n return zero;\n }\n //check if the left expression equals to one\n if (one.isEqual(left)) {\n return right;\n }\n //check if the right expression equals to one\n if (one.isEqual(right)) {\n return left;\n }\n try {\n //check if the expression is a number\n double value = evaluate();\n return new Num(value);\n } catch (Exception e) {\n return new Mult(left, right);\n }\n }", "@Override\n public Expression simplify() {\n try {\n return new Num(this.evaluate());\n } catch (Exception e) {\n if (getExpression1().simplify().toString().equals(getExpression2().simplify().toString())) {\n return new Num(0);\n }\n if (getExpression1().simplify().toString().equals(\"0.0\")) {\n return new Neg(getExpression2().simplify());\n }\n if (getExpression2().simplify().toString().equals(\"0.0\")) {\n return getExpression1().simplify();\n }\n return new Minus(getExpression1().simplify(), getExpression2().simplify());\n }\n }", "public RegexNode ReduceRep()\n\t{\n\t\tRegexNode u;\n\t\tRegexNode child;\n\t\tint type;\n\t\tint min;\n\t\tint max;\n\n\t\tu = this;\n\t\ttype = Type();\n\t\tmin = _m;\n\t\tmax = _n;\n\n\t\tfor (;;)\n\t\t{\n\t\t\tif (u.ChildCount() == 0)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tchild = u.Child(0);\n\n\t\t\t// multiply reps of the same type only\n\t\t\tif (child.Type() != type)\n\t\t\t{\n\t\t\t\tint childType = child.Type();\n\n\t\t\t\tif (!(childType >= Oneloop && childType <= Setloop && type == Loop || childType >= Onelazy && childType <= Setlazy && type == Lazyloop))\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// child can be too lumpy to blur, e.g., (a {100,105}) {3} or (a {2,})?\n\t\t\t// [but things like (a {2,})+ are not too lumpy...]\n\t\t\tif (u._m == 0 && child._m > 1 || child._n < child._m * 2)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tu = child;\n\t\t\tif (u._m > 0)\n\t\t\t{\n\t\t\t\tu._m = min = ((Integer.MAX_VALUE - 1) / u._m < min) ? Integer.MAX_VALUE : u._m * min;\n\t\t\t}\n\t\t\tif (u._n > 0)\n\t\t\t{\n\t\t\t\tu._n = max = ((Integer.MAX_VALUE - 1) / u._n < max) ? Integer.MAX_VALUE : u._n * max;\n\t\t\t}\n\t\t}\n\n\t\treturn min == Integer.MAX_VALUE ? new RegexNode(Nothing, _options) : u;\n\t}", "public static Expression transform(Expression input){\n\t\tshouldBeIgnored = false;\n\t\tif(check(input) == false) return null;\n\n\t\treturn recursiveTransform(input);\n\t}", "Expression simplifyForSideEffect();", "public Expression simplify() {\n Expression exp = this.getExp().simplify();\n if (exp.getVariables().isEmpty()) {\n try {\n Num n = new Num(this.evaluate());\n return n;\n } catch (Exception e) {\n int checkStyleFix = 0;\n }\n }\n Cos s = new Cos(exp);\n return s;\n }", "public Expression simplify() {\r\n return this;\r\n }", "@Override\r\n\tpublic Expression simplify() {\n\t\tSystem.out.println(\"减法化简\");\r\n\t\tExpression newLeft = left.simplify();\r\n Expression newRight = right.simplify();\r\n ConstantExpression leftConst =null;\r\n ConstantExpression rightConst =null;\r\n NegateExpression rightNegate =null;\r\n try {\r\n \tleftConst =(ConstantExpression) newLeft;\r\n\t\t} catch (Exception e) {\t}\r\n\t\ttry {\r\n\t\t\trightConst =(ConstantExpression) newRight;\r\n\t\t} catch (Exception e) {\t}\r\n\t\ttry {\r\n\t\t\trightNegate =(NegateExpression) newRight;\r\n\t\t} catch (Exception e) {\t}\r\n\t\t\r\n\t\tif ( leftConst != null && rightConst != null )\r\n {\r\n // two constants; just evaluate it;\r\n return new ConstantExpression( leftConst.getValue()- rightConst.getValue());\r\n }\r\n else if ( leftConst != null && leftConst.getValue()== 0 )\r\n {\r\n // 0 - y; return -y;\r\n if ( rightNegate != null )\r\n {\r\n // y = -u (--u); return u;\r\n return rightNegate.child;\r\n }\r\n return new NegateExpression( newRight );\r\n }\r\n else if ( rightConst != null && rightConst.getValue()== 0 )\r\n {\r\n // x - 0; return x;\r\n return newLeft;\r\n }\r\n else if ( rightNegate != null )\r\n {\r\n // x - -y; return x + y;\r\n return new AddExpression( newLeft, rightNegate.child );\r\n }\r\n\t\tif(newLeft.toString().equals(newRight.toString())){\r\n\t\t\treturn new ConstantExpression(0);\r\n\t\t}\r\n // x - y; no simplification\r\n return new SubExpression( newLeft, newRight );\r\n\t}", "public RegexNode Reduce()\n\t{\n\t\tRegexNode n;\n\n\t\tswitch (Type())\n\t\t{\n\t\t\tcase Alternate:\n\t\t\t\tn = ReduceAlternation();\n\t\t\t\tbreak;\n\n\t\t\tcase Concatenate:\n\t\t\t\tn = ReduceConcatenation();\n\t\t\t\tbreak;\n\n\t\t\tcase Loop:\n\t\t\tcase Lazyloop:\n\t\t\t\tn = ReduceRep();\n\t\t\t\tbreak;\n\n\t\t\tcase Group:\n\t\t\t\tn = ReduceGroup();\n\t\t\t\tbreak;\n\n\t\t\tcase Set:\n\t\t\tcase Setloop:\n\t\t\t\tn = ReduceSet();\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tn = this;\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn n;\n\t}", "@Override\n public Expression simplify() {\n Expression ex1Simp = getEx2().simplify(), ex2Simp = getEx2().simplify();\n\n try {\n if (ex2Simp.evaluate() == 1) {\n return ex1Simp.simplify();\n }\n } catch (Exception e) {\n\n }\n ;\n Boolean equality = false;\n try {\n if (ex1Simp.evaluate() == ex2Simp.evaluate()) {\n equality = true;\n } else {\n equality = false;\n }\n } catch (Exception e) {\n }\n\n List<String> vars = ex1Simp.getVariables();\n List<String> vars2 = ex2Simp.getVariables();\n\n if (vars.containsAll(vars2) && vars2.containsAll(vars)) {\n Map<String, Double> varsMap = new TreeMap<>();\n double i = 2;\n for (String s : vars) {\n varsMap.put(s, i);\n i += 1;\n }\n\n try {\n if (ex1Simp.evaluate(varsMap) == ex2Simp.evaluate(varsMap)) {\n equality = true;\n } else {\n equality = false;\n }\n } catch (Exception e) {\n }\n\n }\n\n\n if (equality) {\n return new Num(1);\n } else return new Log(getEx2().simplify(), getEx2().simplify());\n }", "public static Expression reduce(Expression expression) { throw Extensions.todo(); }", "public void recursion(final String expression, int countOperation) {\n int numberOfOperations=0;\n String operationString=expression.replace(\" \",\"\");\n for (int i=0; i<operationString.length()-1; i++)\n {\n if(expression.substring(i,i+1).matches(\"\\\\+\")\n ||operationString.substring(i,i+1).matches(\"\\\\-\")\n ||operationString.substring(i,i+1).matches(\"\\\\*\")\n ||operationString.substring(i,i+1).matches(\"/\")\n ||operationString.substring(i,i+1).matches(\"\\\\^\")\n ||operationString.substring(i,i+1).matches(\"i\")\n ||operationString.substring(i,i+1).matches(\"a\")\n ||operationString.substring(i,i+1).matches(\"o\"))\n {\n numberOfOperations++;\n }\n }\n String result;\n int count=0;\n if (operationString.substring(0,1).equals(\"(\"))\n {\n int start=1;\n int end=0;\n count=1;\n while (count<operationString.length() && start!=end)\n {\n String temp=operationString.substring(count,count+1);\n if (temp.equals(\"(\"))\n {\n start++;\n }\n if (temp.equals(\")\"))\n {\n end++;\n }\n count++;\n }\n }\n if (count!=operationString.length() && !operationString.substring(0,1).equals(\"(\"))\n {\n //разбиваем выражения на подвыражения\n List<String> symbols=new ArrayList<>();\n for (int i=0; i<operationString.length()-1;)\n {\n String temp=operationString.substring(i,i+1);\n if (\"+-*/^\".contains(temp))\n {\n symbols.add(temp);\n i++;\n }\n if(temp.equals(\"s\") || temp.equals(\"t\") || temp.equals(\"c\"))\n {\n symbols.add(operationString.substring(i,i+3));\n i=i+3;\n }\n if (temp.matches(\"\\\\d\"))\n {\n int k=i+1;\n StringBuilder sb=new StringBuilder(temp);\n while (k<operationString.length()&&(operationString.substring(k,k+1).matches(\"\\\\d\")||operationString.substring(k,k+1).matches(\"\\\\.\")))\n {\n sb.append(operationString.substring(k,k+1));\n k++;\n }\n i=k;\n symbols.add(new String(sb));\n }\n if (temp.equals(\"(\"))\n {\n int start=1;\n int end=0;\n int k=i+1;\n while(k<operationString.length() && start!=end)\n {\n if (operationString.substring(k,k+1).equals(\"(\"))\n {\n start++;\n }\n if(operationString.substring(k,k+1).equals(\")\"))\n {\n end++;\n }\n k++;\n }\n PrintStream oldOut=System.out;\n String recTemp;\n ByteArrayOutputStream baos=new ByteArrayOutputStream();\n PrintStream ps=new PrintStream(baos);\n System.setOut(ps);\n recursion(operationString.substring(i,k),++countOperation);\n recTemp=baos.toString();\n System.setOut(oldOut);\n symbols.add(recTemp);\n i=k;\n }\n }\n\n for (int i=0; i<symbols.size(); i++)\n {\n if (symbols.get(i).startsWith(\"s\"))\n {\n symbols.set(i,\"\"+Math.sin(Double.parseDouble(symbols.remove(i+1))*Math.PI/180));\n }\n if (symbols.get(i).startsWith(\"t\"))\n {\n symbols.set(i,\"\"+Math.tan(Double.parseDouble(symbols.remove(i+1))*Math.PI/180));\n }\n if (symbols.get(i).startsWith(\"c\"))\n {\n symbols.set(i,\"\"+Math.cos(Double.parseDouble(symbols.remove(i+1))*Math.PI/180));\n }\n }\n for (int i=0; i<symbols.size();)\n {\n if (symbols.get(i).equals(\"^\"))\n {\n symbols.set(i-1, Math.pow(Double.parseDouble(symbols.get(i - 1)), Double.parseDouble(symbols.get(i + 1))) + \"\");\n symbols.remove(i);\n symbols.remove(i);\n i--;\n }\n i++;\n }\n for (int i=0; i<symbols.size();)\n {\n if (symbols.get(i).equals(\"/\"))\n {\n symbols.set(i-1, Double.parseDouble(symbols.get(i - 1))/Double.parseDouble(symbols.get(i + 1)) + \"\");\n symbols.remove(i);\n symbols.remove(i);\n i--;\n }\n if (symbols.get(i).equals(\"*\"))\n {\n symbols.set(i-1, Double.parseDouble(symbols.get(i - 1))*Double.parseDouble(symbols.get(i + 1)) + \"\");\n symbols.remove(i);\n symbols.remove(i);\n i--;\n }\n i++;\n }\n for (int i=0; i<symbols.size(); i++)\n {\n if (symbols.get(i).equals(\"-\"))\n {\n symbols.set(i,\"-\"+symbols.remove(i+1));\n }\n if (symbols.get(i).equals(\"+\"))\n {\n symbols.remove(i);\n i--;\n }\n }\n double answer=0;\n for (String s:symbols)\n {\n answer=answer+Double.parseDouble(s);\n }\n result=answer+\"\";\n countOperation--;\n }\n else\n {\n //отбрасываем начальные и конечные скобки\n operationString=operationString.substring(1,operationString.length()-1);\n PrintStream oldOut=System.out;\n ByteArrayOutputStream baos=new ByteArrayOutputStream();\n PrintStream ps=new PrintStream(baos);\n System.setOut(ps);\n recursion(operationString,++countOperation);\n result=baos.toString();\n System.setOut(oldOut);\n }\n if (countOperation==0)\n {\n System.out.println(result+\" \"+numberOfOperations);\n }\n else\n {\n System.out.println(result);\n }\n }", "public static Expression reduceExtensions(Expression expression) { throw Extensions.todo(); }", "public void flatten()\r\n\t\t{\r\n\t\t\tif (_children.size() > 0) \r\n\t\t\t{\r\n\t\t\t\tint i = 0;\r\n\t\t\t\twhile(i < _children.size())\r\n\t\t\t\t{\r\n\t\t\t\t\tExpressionNode subExpr = _children.get(i);\r\n\t\t\t\t\tsubExpr.flatten();\r\n\t\t\t\t\tif (_data.equals(subExpr._data)) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t_children.addAll(subExpr._children);\r\n\t\t\t\t\t\t_children.remove(subExpr);\r\n\t\t\t\t\t}\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t}", "private static FlatLexerRule flattenLexerRule(Rule rule, Map<String, Rule> rules) {\n // Because some rules were resolved as a dependency of another rule,\n // it might happen that it is already flattened.\n if (rule instanceof FlatLexerRule) {\n return (FlatLexerRule) rule;\n }\n\n if (rule instanceof UnresolvedLexerRule) {\n throw new IngridParserException(\n \"Rule '\" + rule.name + \"' must be resolved before flattening\");\n }\n\n LexerRule lexerRule = (LexerRule) rule;\n\n // If we have only one element, we might be looking at a literal rule..\n // We count all elements of all alternatives:\n if (lexerRule.alternatives.size() == 1 && lexerRule.alternatives.get(0).size() == 1) {\n Rule only = lexerRule.alternatives.get(0).get(0);\n if (only instanceof LiteralRule) {\n return new LiteralRule(rule.name, ((LiteralRule) only).value);\n }\n }\n\n // We can construct one big regex out of sub rules\n List<List<String>> regexs = new ArrayList<>();\n\n // Gather all sub rule contents (or resolve them, if wasn't resolved before)\n for (List<Rule> alternative : lexerRule.alternatives) {\n List<String> subRegex = new ArrayList<>();\n\n for (Rule element : alternative) {\n // Is each sub element already resolved?\n if (!(element instanceof FlatLexerRule)) {\n if (element instanceof QuantifierRule) {\n int lastIndex = subRegex.size() - 1;\n\n if (lastIndex < 0) {\n throw new IngridParserException(\"Quantifier suffix found with no prefix regex\");\n }\n\n // If more characters, we might need braces\n // There are cases where we might not, such as [A-Z] or (foo), so might be improved a little\n // It's tricky though, because of cases such as [A-Z][a-z], so simple heuristics is not enough\n String prevRegex = subRegex.get(lastIndex);\n if (prevRegex.length() > 1) {\n prevRegex = '(' + prevRegex + ')';\n }\n\n // We append it to the previous rule\n String quantifier = ((QuantifierRule) element).quantity.toString();\n\n subRegex.set(lastIndex, prevRegex + quantifier);\n\n } else if(element instanceof BlockStartRule) {\n subRegex.add(\"(\");\n } else if(element instanceof BlockEndRule) {\n subRegex.add(\")\");\n } else if(element instanceof BlockAltRule) {\n subRegex.add(\"|\");\n } else if (element instanceof UnresolvedLexerRule) {\n if (!rules.containsKey(element.name)) {\n throw new UnresolvableRuleException(\"Failed to resolve lexer rule '\" + element.name + \"'\");\n }\n\n try {\n FlatLexerRule flatRule = flattenLexerRule(rules.get(element.name), rules);\n rules.put(element.name, flatRule);\n subRegex.add(flatRule.getContent());\n } catch (StackOverflowError t) {\n throw new IngridParserException(\n \"Lexer rule '\" + rule.name + \"' or some of its subrules is recursive! \" +\n \"Ingrid cannot handle cyclic rules :(\");\n }\n } else {\n throw new IngridParserException(\n \"Rule '\" + element.name + \"' (\" + element.getClass().getSimpleName() + \") failed to be flattened\");\n }\n } else {\n // We need to escape literal rule\n // e.g. <?xml to <\\?xml\n String regex;\n if (element instanceof LiteralRule) {\n regex = escapeLiteral((LiteralRule) element);\n } else {\n regex = ((FlatLexerRule) element).getContent();\n }\n\n subRegex.add(regex);\n }\n }\n\n regexs.add(subRegex);\n }\n\n // Build regex from gathered strings\n return new RegexRule(rule.name, buildLexerRegex(regexs));\n }", "@Override\n\tpublic String visitSubexpr(SubexprContext ctx) {\n\t\t\n\t\tif(ctx.getChildCount()==1)\n\t\t{\n\t\t\treturn visitValue(ctx.value())\t;\t}\n\t\telse\n\t\t{\n\t\t\tString result = \"\";\n\t\t\tresult = \"temp\"+count.count++;\n\t\t\tif(ctx.getChild(1).getText().equals(\"*\"))\n\t\t\t{\n\t\t\t\n\t\t\t\n\t\t\tsb.append(\"MUL \"+visit(ctx.children.get(0))+\" \"+visitValue(ctx.value())+\" \"+ result+\"\\n\");\n\t\t\treturn result;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsb.append(\"DIV \"+visit(ctx.children.get(0))+ \" \"+visitValue(ctx.value())+\" \"+result+\"\\n\");\n\t\t\t\treturn \tresult;\n\t\t\t}\n\t\t}\n\t\n\t}", "public RegexNode ReduceConcatenation()\n\t{\n\t\t// Eliminate empties and concat adjacent strings/chars\n\n\t\tboolean wasLastString;\n\t\tRegexOptions optionsLast;\n\t\tRegexOptions optionsAt;\n\t\tint i;\n\t\tint j;\n\n\t\tif (_children == null)\n\t\t{\n\t\t\treturn new RegexNode(RegexNode.Empty, _options);\n\t\t}\n\n\t\twasLastString = false;\n\t\toptionsLast = RegexOptions.forValue(0);\n\n\t\tfor (i = 0, j = 0; i < _children.size(); i++, j++)\n\t\t{\n\t\t\tRegexNode at;\n\t\t\tRegexNode prev;\n\n\t\t\tat = _children.get(i);\n\n\t\t\tif (j < i)\n\t\t\t{\n\t\t\t\t_children.set(j, at);\n\t\t\t}\n\n\t\t\tif (at._type == RegexNode.Concatenate && ((at._options.getValue() & RegexOptions.RightToLeft.getValue()) == (_options.getValue() & RegexOptions.RightToLeft.getValue())))\n\t\t\t{\n\t\t\t\tfor (int k = 0; k < at._children.size(); k++)\n\t\t\t\t{\n\t\t\t\t\tat._children.get(k)._next = this;\n\t\t\t\t}\n\n\t\t\t\t//_children.InsertRange(i + 1, at._children);\n\t\t\t\t_children.addAll(i + 1 , at._children);\n\t\t\t\tj--;\n\t\t\t}\n\t\t\telse if (at._type == RegexNode.Multi || at._type == RegexNode.One)\n\t\t\t{\n\t\t\t\t// Cannot merge strings if L or I options differ\n\t\t\t\toptionsAt = RegexOptions.forValue(at._options.getValue() & (RegexOptions.RightToLeft.getValue() | RegexOptions.IgnoreCase.getValue()));\n\n\t\t\t\tif (!wasLastString || optionsLast != optionsAt)\n\t\t\t\t{\n\t\t\t\t\twasLastString = true;\n\t\t\t\t\toptionsLast = optionsAt;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tprev = _children.get(--j);\n\n\t\t\t\tif (prev._type == RegexNode.One)\n\t\t\t\t{\n\t\t\t\t\tprev._type = RegexNode.Multi;\n\t\t\t\t\tprev._str = String.valueOf(prev._ch);\n\t\t\t\t}\n\n\t\t\t\tif ((optionsAt.getValue() & RegexOptions.RightToLeft.getValue()) == 0)\n\t\t\t\t{\n\t\t\t\t\tif (at._type == RegexNode.One)\n\t\t\t\t\t{\n\t\t\t\t\t\tprev._str += (new Character(at._ch)).toString();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tprev._str += at._str;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (at._type == RegexNode.One)\n\t\t\t\t\t{\n\t\t\t\t\t\tprev._str = (new Character(at._ch)).toString() + prev._str;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tprev._str = at._str + prev._str;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse if (at._type == RegexNode.Empty)\n\t\t\t{\n\t\t\t\tj--;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\twasLastString = false;\n\t\t\t}\n\t\t}\n\n\t\tif (j < i)\n\t\t{\n\t\t\t//_children.removeRange(j, i - j + j);\n\t\t\tArrayExt.removeRange(_children, j, i - j + j);\n\t\t}\n\n\t\treturn StripEnation(RegexNode.Empty);\n\t}", "@Override\n public RowExpression rewrite(RowExpression expression, Rule.Context context)\n {\n if (expression instanceof CallExpression && ((CallExpression) expression).getArguments().stream().anyMatch(OriginalExpressionUtils::isExpression)) {\n return removeOriginalExpressionArguments((CallExpression) expression, context.getSession(), context.getSymbolAllocator(), context);\n }\n return removeOriginalExpression(expression, context, new HashMap<>());\n }", "private void helper(String num, StringBuilder resBld, int s, long target, long factor, List<String> res) {\n int len = num.length(), preLen = resBld.length();\n // iterate over all possible ends of first number\n for(int i = s; i <= len - 2; i ++) {\n // Note: type: avoid leading zero in the expression\n if(i > s && num.charAt(s) == '0') break;\n long val = Long.parseLong(num.substring(s, i + 1));\n resBld.append(num.charAt(i));\n \n resBld.append('*');\n helper(num, resBld, i + 1, target, factor * val, res);\n resBld.deleteCharAt(resBld.length() - 1); \n\n // Note: '-' only takes effect on the first number, so we treat it as a -1 factor \n // to the first number\n resBld.append('-');\n helper(num, resBld, i + 1, target - factor * val, -1, res);\n resBld.deleteCharAt(resBld.length() - 1); \n \n resBld.append('+');\n helper(num, resBld, i + 1, target - factor * val, 1, res);\n resBld.deleteCharAt(resBld.length() - 1);\n }\n // NOTE: type: conservative ending\n // avoid s exceeds length of num in the following iterations\n resBld.append(num.charAt(len - 1));\n // avoid leading zero\n if((num.charAt(s) != '0' || s == len - 1) && factor * Long.parseLong(num.substring(s, len)) == target)\n res.add(resBld.toString());\n resBld.setLength(preLen);\n }", "public String expressionExpand(String s) {\n if (s == null) {\n return \"\";\n }\n Stack<StringBuilder> stk = new Stack<>();\n stk.push(new StringBuilder());\n for (int i = 0; i < s.length(); i++) {\n if (Character.isDigit(s.charAt(i))) {\n int j = i + 1;\n while (j < s.length() && Character.isDigit(s.charAt(j))) {\n j++;\n }\n String num = s.substring(i, j);\n stk.push(new StringBuilder(num));\n stk.push(new StringBuilder());\n i = j; // skip [\n } else if (Character.isLetter(s.charAt(i))) {\n stk.peek().append(s.charAt(i));\n } else if (s.charAt(i) == ']') {\n StringBuilder next = stk.pop();\n int num = Integer.valueOf(stk.pop().toString());\n while (num > 0) {\n stk.peek().append(next);\n num--;\n }\n }\n }\n return stk.pop().toString();\n }", "@Override\n\tpublic String visitExpr(ExprContext ctx) {\n\t\t\t\t\n\t\t\tif(ctx.getChildCount()==1)\n\t\t\t{\n\t\t\t\treturn visitSubexpr(ctx.subexpr());\n\t\t\t}\n\t\t\telse\n\t\t\t\t\n\t\t\t{\n\t\t\t\tString result = \"\";\n\t\t\t\t\n\t\t\t\t\tresult = \"temp\"+ count.count++;\n\t\t\t\tif(ctx.getChild(1).getText().equals(\"+\"))\n\t\t\t\t{\n\t\t\t\t\tsb.append(\"ADD \"+visit(ctx.children.get(0))+\" \"+visitSubexpr(ctx.subexpr())+\" \"+result+\"\\n\");\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsb.append(\"SUB \"+visit(ctx.children.get(0))+\" \"+visitSubexpr(ctx.subexpr())+\" \"+ result+\"\\n\");\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\t\t\t}\n\t\n\n\t\t\n\t}", "public static Expression reduceAndCheck(Expression expression) { throw Extensions.todo(); }", "private String translateExpression(PropertyExpression e) {\n if (e.getObjectExpression() instanceof BinaryExpression) {\n BinaryExpression be = (BinaryExpression) e.getObjectExpression();\n if (be.getOperation().getText().equals(\"[\")) {\n String left = translateExpression(be.getLeftExpression());\n if (left.equals(inputName)) {\n return withInputSuffix(e.getPropertyAsString()) + \"[\" + translateExpression(be.getRightExpression()) + \"]\";\n }\n }\n }\n\n\n String obj = translateExpression(e.getObjectExpression());\n //TODO fix for \"not in main case\"\n //if (obj.equals(outputName) && shaderType.equals(\"vs\")) return withOutputSuffix(e.getPropertyAsString());\n if (obj.equals(outputName)) return withOutputSuffix(e.getPropertyAsString());\n //TODO fix for \"not in main case\"\n //if (obj.equals(inputName) && shaderType.equals(\"fs\")) return withOutputSuffix(e.getPropertyAsString());\n if (obj.equals(inputName)) return withInputSuffix(e.getPropertyAsString());\n //if (obj.equals(outputName)) return e.getPropertyAsString();\n //if (obj.equals(inputName)) return e.getPropertyAsString();\n if (obj.equals(\"\")) return e.getPropertyAsString();\n if ((e.getObjectExpression() instanceof BinaryExpression)) return \"(\" + obj + \").\" + e.getPropertyAsString();\n return obj + \".\" + e.getPropertyAsString();\n }", "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 Expr simplify(final Set<FSimplifierOptions> opts) {\r\n\t\tExpr e = this;\r\n \twhile (true) {\r\n \t\tfinal Expr simplified = e.simplifyOnce(opts);\r\n \t\tif (simplified.equals(e)) {\r\n \t\t\treturn simplified;\r\n \t\t} else {\r\n \t\t\te = simplified;\r\n \t\t}\r\n \t}\r\n }", "private String simplify(){\r\n return Utility.getStringFromKey(recipient) + Float.toString(value) + parentId;\r\n }", "<T extends Formula> T simplify(T f);", "@Test\n\t\tpublic void applyRecursivelyGoal() {\n\t\t\tassertSuccess(\" ;H; ;S; s ⊆ ℤ |- r∈s ↔ s\",\n\t\t\t\t\trm(\"\", ri(\"\", rm(\"2.1\", empty))));\n\t\t}", "@Override\n\tpublic int evalTree() {\n\t\tint num;\n\t\tExpressionTree left, right;\n\t\t\n\t\ttry {\n\t\t\tnum = Integer.parseInt(EMPTY + this.getValue());\n\n\t\t\treturn num;\n\t\t}\n\n\t\tcatch (NumberFormatException n) {\n\t\t\tleft = new ExpressionTree(getLeft());\n\t\t\tright = new ExpressionTree(getRight());\n\t\t\tif(TIMES_SIGN.equals(this.getValue()))\n\t\t\t\treturn left.evalTree() * right.evalTree();\n\t\t\telse\n\t\t\t\treturn left.evalTree() + right.evalTree();\n\t\t}\n\t}", "public void rewrite(LogicalPlan input) throws QueryCompilationException\n {\n // Stack the logical operators for a bottom-up and right-to-left traversal\n Stack<Operator> stack_logical = new Stack<Operator>();\n LogicalPlanUtil.stackBottomUpRightToLeft(input.getRootOperator(), stack_logical);\n \n // Remove the duplicate Navigate bottom-up\n while (!stack_logical.isEmpty())\n {\n Operator current_op = stack_logical.pop();\n if (current_op instanceof Navigate)\n {\n Navigate current_nav = (Navigate) current_op;\n RelativeVariable duplicate = getDuplicate(current_nav);\n if (duplicate != null)\n {\n // Remove the current Navigate operator and update the variable references above\n Operator child = current_nav.getChild();\n LogicalPlanUtil.remove(current_op);\n m_substitutions.clear();\n m_substitutions.put(current_nav.getAliasVariable(), duplicate);\n VariableReferencesUpdater var_ref_updater = new VariableReferencesUpdater();\n Operator op = child;\n do\n {\n op = op.getParent();\n if (op == null) break;\n op.accept(var_ref_updater);\n op.updateOutputInfo();\n } while (!(op instanceof Project || op instanceof GroupBy));\n }\n else\n {\n m_navigate_vars.put(current_nav.getAliasVariable(), current_nav);\n }\n }\n }\n }", "public void recursiveExpand(StatementParse node, ArrayList<StatementParse> expanded){\n if (node.getName().equals(\"-\")){\n node.getChildren().get(1).changeNegativity();\n }\n for (StatementParse child: node.getChildren()){\n // distribute if the child is negative\n if (child.isNegative()){\n for (StatementParse grandChild: child.getChildren()){\n grandChild.changeNegativity();\n }\n }\n if (this.isMulDiv(child)) {\n StatementParse transformedMulDiv = this.mulDivTransform(child);\n expanded.add(transformedMulDiv);\n } else if (this.isAddSub(child)){\n recursiveExpand(child, expanded);\n } else {\n expanded.add(child);\n }\n }\n }", "public Tree transformTree(Tree t) {\n return QPtransform(t);\n }", "private void simplify()\n\t{\n\t\tint gcd=1;\n\t\tint smallest= Math.min(numerator, denominator);\n\t\tfor(int i=2;i<=smallest;i++)\n\t\t{\n\t\t\tif(numerator%i==0 && denominator%i==0)\n\t\t\t{\n\t\t\t\tgcd=i;\n\t\t\t}\n\t\t}\n\t\t//To get the fraction into its simplest form we divide the numerator and denominator with their gcd\n\t\tnumerator= numerator/gcd;\n\t\tdenominator= denominator/gcd;\n\t}", "public ExprMatrix simplify() ;", "public static Expression VisitChildren(ExpressionVisitor visitor) { throw Extensions.todo(); }", "public String solveExpression(String expression) {\n Calculator calculator = new Calculator();\n ExpressionRootFinder rootFinder = new ExpressionRootFinder();\n if (rootFinder.isExpressionContainsInnerExpressions(expression)) {\n while (rootFinder.isExpressionContainsInnerExpressions(expression)) {\n String rootExpression = rootFinder.findRoot(expression);\n expression = expression.replace(\"(\" + rootExpression + \")\",\n calculator.calculate(rootExpression) + \"\");\n }\n String result = calculator.calculate(expression) + \"\";\n LOGGER.info(\"A complex expression was solved. Expression: \" + expression + \" Result: \" + result);\n return result;\n } else {\n String result = calculator.calculate(expression) + \"\";\n LOGGER.info(\"A simple expression was solved. Expression: \" + expression + \" Result: \" + result);\n return result;\n }\n }", "private Code<?> transform(Code.Quantifier e) {\n\t\tPair<SemanticType, Integer>[] e_types = e.types;\n\t\tPair<SemanticType, Integer>[] n_types = new Pair[e_types.length];\n\t\tCode<?> invariant = null;\n\t\tfor (int i = 0; i != e_types.length; ++i) {\n\t\t\tPair<SemanticType, Integer> p1 = e_types[i];\n\t\t\tCode.Variable var = Code.Variable(p1.first(), p1.second());\n\t\t\tPair<SemanticType,Code<?>> p2 = expand(var, p1.first(), 0);\n\t\t\tn_types[i] = new Pair<SemanticType,Integer>(p2.first(),p1.second());\n\t\t\tCode<?> ei = p2.second();\t\t\t\n\t\t\tif (ei != null) {\n\t\t\t\tinvariant = invariant == null ? ei : and(invariant, ei);\n\t\t\t}\n\t\t}\n\t\tCode<?> body = transform(e.operands[0]);\n\t\tif (invariant != null) {\n\t\t\t// We need to treat universal and existential quantifiers\n\t\t\t// differently.\n\t\t\tif(e.opcode == Code.Op.EXISTS) {\n\t\t\t\tbody = and(invariant, body);\n\t\t\t} else {\n\t\t\t\tbody = implies(invariant, body);\n\t\t\t}\n\t\t}\n\t\treturn Code.Quantifier(e.type, e.opcode, body, n_types, e.attributes());\n\t}", "private Node expandStateArgNode(State s, Node curr, Node parent, int depth) {\n\n Node add = null;\n\n if (curr instanceof TerminalNode) {\n\n if (curr instanceof NullaryTerminalNode) {\n\n if (parent != null && !(parent instanceof RepSketchNode)) {\n\n if (((OperatorNode) parent).operatorName.equals(\"notcc\")) {\n\n if (((TerminalNode) curr).sym.name.equals(\"<any>\")) return add;\n\n } else if (((OperatorNode) parent).operatorName.equals(\"not\")) {\n\n s.cost += Main.NOT_TERMINAL_PATTERN;\n\n }\n\n }\n\n add = s.pp.mkTerminalNode(((TerminalNode) curr).sym.name, parent);\n\n\n } else if (curr instanceof RealConstantTerminalNode) {\n\n RealConstantTerminalNode cn = (RealConstantTerminalNode) curr;\n add = s.pp.mkRealConstantNode(cn.k, curr.parent);\n\n }\n\n return add;\n\n } else if (curr instanceof OperatorNode) {\n\n Node[] args = new Node[((OperatorNode) curr).opSymbol.prod.argumentSymbols.length];\n add = s.pp.mkOperatorNode(((OperatorNode) curr).opSymbol, parent, args);\n\n\n if (((OperatorNode) curr).operatorName.contains(\"repeat\")) {\n\n s.pp.numRepeat++;\n\n if (checkConsecutiveRepeat(add)) s.cost += Main.CONSECUTIVE_REPEAT_COST;\n\n }\n\n\n for (int i = 0; i < args.length; i++) {\n\n Node curr_arg = ((OperatorNode) curr).args.get(i);\n Node parsed_arg = expandStateArgNode(s, curr_arg, add, depth + 1);\n\n ((OperatorNode) add).args.set(i, parsed_arg);\n\n }\n\n return add;\n } else {\n\n add = s.pp.mkVarNode(curr, parent, depth);\n\n return add;\n\n }\n\n }", "public StatementParse reconstructTree(ArrayList<StatementParse> expression){\n // an empty expression will not trigger this method\n // first element is always an integer\n StatementParse left_node = expression.get(0);\n\n for (int i = 1; i < expression.size(); i++){\n StatementParse right_node = expression.get(i);\n if (right_node instanceof IntegerParse && ((IntegerParse) right_node).getValue() == 0){\n continue;\n }\n StatementParse top;\n if (right_node.isNegative()){\n top = new StatementParse(\"-\");\n } else {\n top = new StatementParse(\"+\");\n }\n top.getChildren().add(left_node);\n top.getChildren().add(right_node);\n left_node = top;\n }\n return left_node;\n }", "public String simplify(){\n\n int simp = gcd(numerator, denominator);\n numerator = (numerator/simp);\n denominator = (denominator/simp);\n if (denominator == 1){\n return (numerator + \"\");\n }\n if (numerator > denominator){\n int first = (numerator/denominator);\n numerator = (numerator%denominator);\n return (first + \"_\" + numerator + \"/\" + denominator);\n }\n else {\n return (numerator + \"/\" + denominator);\n }\n\n }", "private static String fixKleene(String reg) {\n int ind, beg, len;\n String expr;\n\n do {\n ind = reg.indexOf('*');\n if (ind != -1 && reg.charAt(ind - 1) == QUOTE)\n ind = 0;\n } while(ind == 0);\n\n while (ind >= 1) {\n char character = reg.charAt(ind - 1);\n if (character == ')') {\n beg = reg.substring(0, ind).lastIndexOf(\"(\");\n expr = reg.substring(beg + 1, ind - 1);\n len = expr.length();\n if (expr.contains(\"|\")) {\n if (ind + len + 2 < reg.length()\n && reg.substring(ind + 1, ind + 1 + len + 2).equals(\"(\" + expr + \")\")) {\n replace(reg, ind, '+');\n removeChars(reg, ind + 1, len + 2);\n }\n if (ind - (2 + len) * 2 >= 0\n && reg.substring(ind - (2 + len) * 2, ind - 2 - len).equals(\n \"(\" + expr + \")\")) {\n replace(reg, ind, '+');\n removeChars(reg, ind - (2 + len) * 2, len + 2);\n }\n } else {\n if (ind + len < reg.length()\n && reg.substring(ind + 1, ind + 1 + len).equals(expr)) {\n replace(reg, ind, '+');\n removeChars(reg, ind + 1, len);\n }\n if (ind - 2 - len * 2 >= 0\n && reg.substring(ind - 2 - len * 2, ind - 2 - len).equals(expr)) {\n replace(reg, ind, '+');\n removeChars(reg, ind - 2 - len * 2, len);\n }\n }\n } else if (reg.charAt(ind - 1) == QUOTE) {\n if (ind + 2 < reg.length() && reg.charAt(ind + 2) == character\n && reg.charAt(ind + 1) == QUOTE) {\n reg = replace(reg, ind, '+');\n reg = removeChars(reg, ind + 1, 2);\n }\n if (ind - 2 * 2 >= 0 && reg.charAt(ind - 2 - 1) == character\n && reg.charAt(ind - 2 * 2) == QUOTE) {\n reg = replace(reg, ind, '+');\n reg = removeChars(reg, ind - 2, 2);\n }\n } else {\n if (ind + 1 < reg.length() && reg.charAt(ind + 1) == character) {\n reg = replace(reg, ind, '+');\n reg = removeChars(reg, ind + 1, 1);\n }\n if (ind - 2 >= 0 && reg.charAt(ind - 2) == character) {\n reg = replace(reg, ind, '+');\n reg = removeChars(reg, ind - 2, 1);\n }\n }\n ind = reg.indexOf('*', ind + 1);\n }\n return reg;\n }", "public XPathExpr getXPathExpr(boolean shouldSimplify)\n {try{__CLR4_0_68g8gl1l0dv4j.R.inc(313);\n __CLR4_0_68g8gl1l0dv4j.R.inc(314);if ( (((shouldSimplify && ! this.simplified )&&(__CLR4_0_68g8gl1l0dv4j.R.iget(315)!=0|true))||(__CLR4_0_68g8gl1l0dv4j.R.iget(316)==0&false)))\n {{\n __CLR4_0_68g8gl1l0dv4j.R.inc(317);this.xpath.simplify();\n __CLR4_0_68g8gl1l0dv4j.R.inc(318);this.simplified = true;\n }\n\n }__CLR4_0_68g8gl1l0dv4j.R.inc(319);return this.xpath;\n }finally{__CLR4_0_68g8gl1l0dv4j.R.flushNeeded();}}", "@Test\n\t\tpublic void applyRecusivelyHyp() {\n\t\t\tassertSuccess(\" ;H; ;S; s⊆ℤ ;; r∈s ↔ s |- ⊥\",\n\t\t\t\t\trm(\"\", ri(\"\", ri(\"\", rm(\"2.1\", empty)))));\n\t\t}", "private TreeNode exprTreeHelper(String expr) {\n if (expr.charAt(0) != '(') {\n return new TreeNode(expr); // you fill this in\n } else {\n // expr is a parenthesized expression.\n // Strip off the beginning and ending parentheses,\n // find the main operator (an occurrence of + or * not nested\n // in parentheses, and construct the two subtrees.\n int nesting = 0;\n int opPos = 0;\n for (int k = 1; k < expr.length() - 1; k++) {\n // you supply the missing code\n \tif (nesting == 0) {\n \t\tif (expr.charAt(k) == '+' || expr.charAt(k) == '*') {\n \t\t\topPos = k;\n \t\t}\n \t}\n \tif (expr.charAt(k) == '(') {\n \t\tnesting++;\n \t} else if (expr.charAt(k) == ')') {\n \t\tnesting--;\n \t}\n }\n String opnd1 = expr.substring(1, opPos);\n String opnd2 = expr.substring(opPos + 1, expr.length() - 1);\n String op = expr.substring(opPos, opPos + 1);\n System.out.println(\"expression = \" + expr);\n System.out.println(\"operand 1 = \" + opnd1);\n System.out.println(\"operator = \" + op);\n System.out.println(\"operand 2 = \" + opnd2);\n System.out.println();\n return new TreeNode(op, exprTreeHelper(opnd1), exprTreeHelper(opnd2)); // you fill this in\n }\n }", "private static String optimizeAlternationHelper(List<String> alternations, int depth, StringBuilder out) {\n final int size = alternations.size();\n if (size < 2) {\n out.append(((size == 1) && (depth < alternations.get(0).length())) ?\n escapeRegex(alternations.get(0).substring(depth)) : \"\");\n return out.toString();\n }\n \n alternations.sort((s1, s2) ->\n (s1.length() > depth) ?\n ((s2.length() > depth) ? (s1.charAt(depth) - s2.charAt(depth)) : 1) :\n ((s2.length() > depth) ? -1 : 0));\n \n int index = IntStream.range(0, size).boxed()\n .filter(i -> alternations.get(i).length() > depth).findFirst().orElse(size);\n if (index == size) {\n return out.toString();\n }\n \n final boolean hasEmpty = index > 0;\n final boolean allSame = alternations.get(index).charAt(depth) == alternations.get(size - 1).charAt(depth);\n \n out.append((!allSame || hasEmpty) ? \"(?:\" : \"\");\n if (allSame) {\n out.append(escapeRegexChar(alternations.get(index).charAt(depth)));\n optimizeAlternationHelper(alternations.subList(index, size), depth + 1, out);\n \n } else {\n boolean first = true;\n while (index < size) {\n final char c = alternations.get(index).charAt(depth);\n final int start = index;\n index = IntStream.range(index, size).boxed()\n .filter(i -> alternations.get(i).charAt(depth) != c).findFirst().orElse(size);\n \n out.append(first ? \"\" : '|').append(escapeRegexChar(c));\n optimizeAlternationHelper(alternations.subList(start, index), depth + 1, out);\n \n first = false;\n }\n }\n out.append((!allSame || hasEmpty) ? ')' : \"\").append(hasEmpty ? '?' : \"\");\n \n return out.toString();\n }", "static long factorialRecurse(int n) {\r\n if (n == 0 || n == 1) {\r\n return 1;\r\n }\r\n return factorialRecurse(n - 1) * n;\r\n }", "public static String recursiveMethod(String str) {\n\t\tif (str.length() == 0) {\n\t\t\treturn \"\";\n\t\t}\n\t\treturn str.substring(str.length() - 1) + recursiveMethod(str.substring(0, str.length() - 1));\n\t}", "public ArrayList<StatementParse> collapseExpression(ArrayList<StatementParse> expression){\n int index = 0;\n for (int i = 0; i < expression.size(); i++){\n if (expression.get(i) instanceof IntegerParse) {\n index = i;\n break;\n }\n // when all nodes are not constant\n if (i == expression.size() - 1){\n index = expression.size();\n }\n }\n\n int result = 0;\n for (int i = index; i < expression.size(); i++){\n StatementParse child = expression.get(i);\n if (child.isNegative()){\n result = result - ((IntegerParse) child).getValue();\n } else {\n result = result + ((IntegerParse) child).getValue();\n }\n }\n ArrayList<StatementParse> converted = new ArrayList<>(expression.subList(0, index));\n // collapse 0\n if (result == 0) return converted;\n // if result is negative, flip the sign\n IntegerParse integer;\n if (result < 0){\n result = - result;\n integer = new IntegerParse(result);\n integer.setNegative(true);\n } else {\n integer = new IntegerParse(result);\n }\n converted.add(integer);\n return converted;\n }", "public RegexNode ReduceAlternation()\n\t{\n\t\t// Combine adjacent sets/chars\n\n\t\tboolean wasLastSet;\n\t\tboolean lastNodeCannotMerge;\n\t\tRegexOptions optionsLast;\n\t\tRegexOptions optionsAt;\n\t\tint i;\n\t\tint j;\n\t\tRegexNode at;\n\t\tRegexNode prev;\n\n\t\tif (_children == null)\n\t\t{\n\t\t\treturn new RegexNode(RegexNode.Nothing, _options);\n\t\t}\n\n\t\twasLastSet = false;\n\t\tlastNodeCannotMerge = false;\n\t\toptionsLast = RegexOptions.forValue(0);\n\n\t\tfor (i = 0, j = 0; i < _children.size(); i++, j++)\n\t\t{\n\t\t\tat = _children.get(i);\n\n\t\t\tif (j < i)\n\t\t\t{\n\t\t\t\t_children.set(j, at);\n\t\t\t}\n\n\t\t\tfor (;;)\n\t\t\t{\n\t\t\t\tif (at._type == Alternate)\n\t\t\t\t{\n\t\t\t\t\tfor (int k = 0; k < at._children.size(); k++)\n\t\t\t\t\t{\n\t\t\t\t\t\tat._children.get(k)._next = this;\n\t\t\t\t\t}\n\n\t\t\t\t\t//_children.InsertRange(i + 1, at._children);\n\t\t\t\t\t_children.addAll(i + 1, at._children);\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\telse if (at._type == Set || at._type == One)\n\t\t\t\t{\n\t\t\t\t\t// Cannot merge sets if L or I options differ, or if either are negated.\n\t\t\t\t\toptionsAt = RegexOptions.forValue(at._options.getValue() & (RegexOptions.RightToLeft.getValue() | RegexOptions.IgnoreCase.getValue()));\n\n\n\t\t\t\t\tif (at._type == Set)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (!wasLastSet || optionsLast != optionsAt || lastNodeCannotMerge || !RegexCharClass.IsMergeable(at._str))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\twasLastSet = true;\n\t\t\t\t\t\t\tlastNodeCannotMerge = !RegexCharClass.IsMergeable(at._str);\n\t\t\t\t\t\t\toptionsLast = optionsAt;\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\telse if (!wasLastSet || optionsLast != optionsAt || lastNodeCannotMerge)\n\t\t\t\t\t{\n\t\t\t\t\t\twasLastSet = true;\n\t\t\t\t\t\tlastNodeCannotMerge = false;\n\t\t\t\t\t\toptionsLast = optionsAt;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\n\t\t\t\t\t// The last node was a Set or a One, we're a Set or One and our options are the same.\n\t\t\t\t\t// Merge the two nodes.\n\t\t\t\t\tj--;\n\t\t\t\t\tprev = _children.get(j);\n\n\t\t\t\t\tRegexCharClass prevCharClass;\n\t\t\t\t\tif (prev._type == RegexNode.One)\n\t\t\t\t\t{\n\t\t\t\t\t\tprevCharClass = new RegexCharClass();\n\t\t\t\t\t\tprevCharClass.AddChar(prev._ch);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tprevCharClass = RegexCharClass.Parse(prev._str);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (at._type == RegexNode.One)\n\t\t\t\t\t{\n\t\t\t\t\t\tprevCharClass.AddChar(at._ch);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tRegexCharClass atCharClass = RegexCharClass.Parse(at._str);\n\t\t\t\t\t\tprevCharClass.AddCharClass(atCharClass);\n\t\t\t\t\t}\n\n\t\t\t\t\tprev._type = RegexNode.Set;\n\t\t\t\t\tprev._str = prevCharClass.ToStringClass();\n\n\t\t\t\t}\n\t\t\t\telse if (at._type == RegexNode.Nothing)\n\t\t\t\t{\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\twasLastSet = false;\n\t\t\t\t\tlastNodeCannotMerge = false;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (j < i)\n\t\t{\n\t\t\t//_children.removeRange(j, i - j + j);\n\t\t\tArrayExt.removeRange(_children, j, i - j + j);\n\t\t}\n\n\t\treturn StripEnation(RegexNode.Nothing);\n\t}", "private TreeNode exprTreeHelper(String expr) {\n if (expr.charAt(0) != '(') {\n \n \treturn new TreeNode(expr); // you fill this in\n } else{\n // expr is a parenthesized expression.\n // Strip off the beginning and ending parentheses,\n // find the main operator (an occurrence of + or * not nested\n // in parentheses, and construct the two subtrees.\n int nesting = 0;\n int opPos = 0;\n char myChar='\\0';\n \n for (int k = 1; k < expr.length() - 1; k++) {\n myChar = expr.charAt(k);\n \tif(myChar == '('){\n \tnesting++;\n }\n if(myChar==')'){\n \tnesting--;\n }\n if(nesting == 0){\n \tif(myChar == '+' || myChar == '*'){\n \t\topPos = k;\n \t break;\t\n \t}\n }\n }\n \n String opnd1 = expr.substring(1, opPos);\n String opnd2 = expr.substring(opPos + 1, expr.length() - 1);\n String op = expr.substring(opPos, opPos + 1);\n System.out.println(\"expression = \" + expr);\n System.out.println(\"operand 1 = \" + opnd1);\n System.out.println(\"operator = \" + op);\n System.out.println(\"operand 2 = \" + opnd2);\n System.out.println();\n return new TreeNode(op,exprTreeHelper(opnd1),exprTreeHelper(opnd2));\n \n }\n }", "protected Expr simplifyOnce(final Set<FSimplifierOptions> opts) {\r\n\t\treturn this;\r\n\t}", "public int calculate(String s) {\n Deque<Integer> stack = new ArrayDeque<>();\n\n // Init\n int result = 0; // For the on-going result\n int sign = 1; // 1 means positive, -1 means negative\n int operand = 0;\n\n // 1 + 2 + 1\n // The tricky part is that we find an operator/sign first, then we know\n // the operand after that. We save the sign first, and when we evaluate the\n // expression so far, we use that sign.\n\n // Go through the expression string character by character.\n // Evaluate to the left when we find '+', '-', ')', or end of loop.\n // We use a stack when we find parenthesis.\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if (Character.isDigit(c)) {\n // Form operand, since it could be more than one digit.\n operand = 10 * operand + (c - '0');\n } else if (c == '+') {\n // We can evaluate the expression to the left,\n // with result, sign, operand\n result += sign * operand;\n // Save the recently encountered '+' sign\n sign = 1;\n // Reset operand\n operand = 0;\n } else if (c == '-') {\n // We can evaluate the expression to the left,\n result += sign * operand;\n // Save the '-' sign.\n sign = -1;\n operand = 0;\n } else if (c == '(') {\n // Push the result so far and sign onto the stack, for later use.\n // We push the result first, then sign in the stack.\n stack.push(result);\n stack.push(sign);\n // Reset result, sign, and operand, as if new evaluation begins for the new\n // sub-expression\n result = 0;\n sign = 1;\n operand = 0;\n } else if (c == ')') {\n // We can evaluate the sub-expression to the left.\n result += sign * operand;\n // Now that we know the sub-expression ended, we can also evaluate to the left.\n // First we take the sign out of the stack, and then add the result we saved\n // before to the result of the sub-expression.\n result *= stack.pop();\n result += stack.pop();\n // Reset sign and operand.\n sign = 1;\n operand = 0;\n }\n }\n\n // We need to evaluate again.\n result += sign * operand;\n\n return result;\n }", "public static Temp evalExpression(CommonTree tree){\n\t\t// leaf node, int/float/id\n\n\t\tif (tree.getChildCount() == 0){\n\t\t\tTemp temp = new Temp(temperaryNum++,tree.getType(),tree.getText());\n\t\t\tif (tree.getType() == LittleParser.INTLITERAL){\n\t\t\t\tircode.add(new ThreeOpCode(\"STOREI\",tree.getText(),temp.getName()));\n\t\t\t}\n\t\t\telse if(tree.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\tircode.add(new ThreeOpCode(\"STOREF\",tree.getText(),temp.getName()));\n\t\t\t}\n\t\t\telse{ // look up the variable in the symbol table to set type, use var_name instead of $Tx and recycle $Tx\n\t\t\t\ttemp.setType(allTables.lookupType(temp.getValue().trim()));\n\t\t\t\ttemp.setName(tree.getText());\n\t\t\t\ttemperaryNum--;\n\t\t\t}\n\t\t\treturn temp;\n\t\t}\n\t\t// Not a leaf node, evaluate children expressions\n\t\telse{\n\t\t\t// test for function call\n\t\t\tif (tree.getType() == LittleParser.FUNC_CALL){\n\t\t\t\t// add IR for evaluating the function and return temperary for return value\n\t\t\t\t// after it has been popped off the stack\n\t\t\t\treturn evalFunction(tree);\n\t\t\t}\n\t\t\t//\t\t\tif (tree.getChild(0).getChildCount() == 0 && tree.getChild(1).getChildCount() == 0){\n\t\t\t//\t\t\t\tif ()\n\t\t\t//\t\t\t}\n\t\t\tTemp left = evalExpression((CommonTree) tree.getChild(0));\n\t\t\tTemp right = evalExpression((CommonTree) tree.getChild(1));\n\n\t\t\tTemp temp = new Temp(temperaryNum++,left.getType(), \"EXP\");\n\t\t\tif (tree.getText().contains(\"+\")){ // add\n\t\t\t\tif (left.getType() == LittleParser.INTLITERAL && right.getType() == LittleParser.INTLITERAL){\n\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == LittleParser.FLOATLITERAL || right.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDR\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t} //both parameters\n\t\t\t\telse if (left.getType() == -1 && right.getType() == -1){\n\t\t\t\t\t//System.out.println(left.getName() + \": \" + left.getType() + \" \" + right.getName() + \": \" + right.getType());\n\t\t\t\t\t// need to lookup symbol in main and then global to find type\n\t\t\t\t\tint ltype = allTables.lookupType(left.name);\n\t\t\t\t\tint rtype = allTables.lookupType(right.name);\n\t\t\t\t\tif (ltype == LittleParser.INTLITERAL && rtype == LittleParser.INTLITERAL){\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDI\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDR\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\ttemp.setType(LittleParser.INTLITERAL);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (tree.getText().contains(\"-\")){ // subtract\n\t\t\t\tif (left.getType() == LittleParser.INTLITERAL && right.getType() == LittleParser.INTLITERAL){\n\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == LittleParser.FLOATLITERAL || right.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBR\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == -1 && right.getType() == -1){\n\t\t\t\t\t//System.out.println(left.getName() + \": \" + left.getType() + \" \" + right.getName() + \": \" + right.getType());\n\t\t\t\t\t// need to lookup symbol in main and then global to find type\n\t\t\t\t\tint ltype = allTables.lookupType(left.name);\n\t\t\t\t\tint rtype = allTables.lookupType(right.name);\n\t\t\t\t\tif (ltype == LittleParser.INTLITERAL && rtype == LittleParser.INTLITERAL){\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBI\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBR\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\ttemp.setType(LittleParser.INTLITERAL);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (tree.getText().contains(\"*\")){ // multiply\n\t\t\t\tif (left.getType() == LittleParser.INTLITERAL && right.getType() == LittleParser.INTLITERAL){\n\t\t\t\t\t//System.out.println(\"MULTI \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"MULI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == LittleParser.FLOATLITERAL || right.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\t//System.out.println(\"MULTF \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"MULR\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == -1 && right.getType() == -1){\n\t\t\t\t\t//System.out.println(left.getName() + \": \" + left.getType() + \" \" + right.getName() + \": \" + right.getType());\n\t\t\t\t\t// need to lookup symbol in main and then global to find type\n\t\t\t\t\tint ltype = allTables.lookupType(left.name);\n\t\t\t\t\tint rtype = allTables.lookupType(right.name);\n\t\t\t\t\tif (ltype == LittleParser.INTLITERAL && rtype == LittleParser.INTLITERAL){\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"MULI\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"MULR\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t//System.out.println(\"MULTI \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"MULI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\ttemp.setType(LittleParser.INTLITERAL);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{ // divide\n\t\t\t\tif (right.getType() == LittleParser.INTLITERAL && left.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\t//System.out.println(\"DIVI \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (right.getType() == LittleParser.FLOATLITERAL || left.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\t//System.out.println(\"DIVF \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVR\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == -1 && right.getType() == -1){\n\t\t\t\t\t//System.out.println(left.getName() + \": \" + left.getType() + \" \" + right.getName() + \": \" + right.getType());\n\t\t\t\t\t// need to lookup symbol in main and then global to find type\n\t\t\t\t\tint ltype = allTables.lookupType(left.name);\n\t\t\t\t\tint rtype = allTables.lookupType(right.name);\n\t\t\t\t\tif (ltype == LittleParser.INTLITERAL && rtype == LittleParser.INTLITERAL){\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVI\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVR\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t//System.out.println(\"DIVI \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\ttemp.setType(LittleParser.INTLITERAL);\n\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn temp;\n\t\t}\n\n\t}", "private void helper(StringBuilder sb, List<String> result, \n int n, int left, int right) {\n if (left == n && right == n) { // base case: left and right parentheses used out\n result.add(sb.toString());\n return;\n }\n \n // case 1: still have left parenthesis left, add '('\n if (left <= n) {\n sb.append('(');\n helper(sb, result, n, left + 1, right);\n sb.deleteCharAt(sb.length() - 1);\n }\n \n // case 2: still have left parenthesis need to be matched, add ')'\n if (left > right) {\n sb.append(')');\n helper(sb, result, n, left, right + 1);\n sb.deleteCharAt(sb.length() - 1);\n }\n }", "@Override\n public JsonNode visit(JmesPathSubExpression subExpression, JsonNode input) throws InvalidTypeException {\n JsonNode prelimnaryResult = subExpression.getExpressions().get(0).accept(this, input);\n for (int i = 1; i < subExpression.getExpressions().size(); i++) {\n prelimnaryResult = subExpression.getExpressions().get(i).accept(this, prelimnaryResult);\n }\n return prelimnaryResult;\n }", "public ASTNode simplify() {\n ASTNode mat=getChildConst(0);\n \n if(mat instanceof CompoundMatrix) {\n if(getChild(1).isConstant()) { // If the index is a constant, evaluate it. \n long idx=getChild(1).getValue();\n if(idx<1 || idx>=(mat.numChildren())) {\n return null; // out of bounds -- do not attempt to evaluate it. \n }\n else {\n ASTNode elem=mat.getChild( (int)idx ); // Index from 1. Index domain is in position 0.\n if(mat==getChild(0)) {\n elem.setParent(null);\n }\n return elem;\n }\n }\n \n Intpair a=getChild(1).getBounds();\n int numelements=mat.numChildren()-1;\n \n if(a.upper<numelements) {\n // Always safe to trim the right-hand end of the matrix\n ArrayList<ASTNode> newelements=list();\n if(mat==getChild(0)) {\n mat.detachChildren();\n }\n getChild(1).setParent(null);\n for(int i=1; i<=a.upper; i++) newelements.add(mat.getChild(i));\n return new ElementOne(CompoundMatrix.make(newelements), getChild(1));\n }\n \n // IF the index is not yet flattened, then trim both ends.\n if(getChild(1).toFlatten(false) && (a.lower>1 || a.upper<numelements)) {\n // Trim the ends of the compound matrix by the bounds of the index variable. \n // Does not deal with holes in the index domain. This would require a table constraint. \n // Potentially unflattens the index variable. dangerous. \n ArrayList<ASTNode> newelements=list();\n \n if(a.lower<1) a.lower=1;\n if(a.upper>numelements) a.upper=numelements;\n if(mat==getChild(0)) {\n mat.detachChildren();\n }\n getChild(1).setParent(null);\n for(long i=a.lower; i<=a.upper; i++) newelements.add(mat.getChild((int)i));\n return new ElementOne(CompoundMatrix.make(newelements), BinOp.makeBinOp(\"-\", getChild(1), NumberConstant.make(a.lower-1)));\n }\n\t }\n\t \n\t return null;\n\t}", "@Override\r\n\tpublic void visit(UnaryExpression unaryExpression) {\n\r\n\t}", "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 static String math_level2(String line){\n int current_index = 0;\n line = \"+\"+line; //Every element must have a sign before so I add a plus as a sign of the first element.\n while(current_index<line.length() && (line.contains(\"*\") || line.contains(\"/\"))){\n char current_char = line.charAt(current_index);\n if(current_char == '*' || current_char =='/'){\n String first_string = reverser(line.substring(0,current_index));\n if (first_string !=\"\") first_string = reverser(first_string.substring(0,finder(first_string)));\n else first_string = line.substring(0,current_index);\n \n char before_sign = line.charAt(current_index-first_string.length()-1); // Sign before an element has an effect on the result so I'm storing it.\n \n String second_string = line.substring(current_index+1);\n second_string = line.substring(current_index+1,current_index+finder(second_string.substring(1))+2);\n \n boolean is_double_first = first_string.contains(\".\");\n boolean is_second_double = second_string.contains(\".\");\n boolean isdouble = is_double_first || is_second_double;\n\n if(isdouble){\n double number1 = Double.parseDouble(first_string);\n double number2 = Double.parseDouble(second_string);\n double result;\n if(current_char=='*') result = number1*number2;\n else result = number1/number2;\n // I'm using two ternary operations to decide on the sign of the result. If both before sign is a minus and the result is negative, I'm replacing it with result*-1\n line = line.substring(0, current_index-first_string.length()-1)+ ((result<0)?((before_sign=='-')?(\"+\"+(result*-1)):(result+\"\")):(before_sign+\"\"+result)) + line.substring(current_index+second_string.length()+1);\n }\n\n else{\n int number1 = Integer.parseInt(first_string);\n int number2 = Integer.parseInt(second_string);\n int result;\n if(current_char=='*') result = number1*number2;\n else result = number1/number2;\n // Same operation as I do in line 155\n line = line.substring(0, current_index-first_string.length()-1)+ ((result<0)?((before_sign=='-')?(\"+\"+(result*-1)):(result+\"\")):(before_sign+\"\"+result)) + line.substring(current_index+second_string.length()+1);\n\n }\n current_index= current_index-first_string.length();// I'm using index as a cursor and moving it a little left instead of making it zero because this is much faster\n }\n current_index++;\n if(!(line.contains(\"*\") || line.contains(\"/\"))) break;// Breaks the while loop if there are no multiplication or division left.\n }\n return line;\n}", "protected SyntaxNode simplify(SyntaxNode operand) {\n return snFactory_.makeSyntaxNode(operand);\n }", "private static boolean checkForUpdateUnaryExpression(MethodDeclaration user, MethodDeclaration recursive, Expression userExpression, Expression recursiveExpression) {\n UnaryExpr userUnary = retrieveUnaryExpression(userExpression);\n UnaryExpr recursiveUnary = retrieveUnaryExpression(recursiveExpression);\n if (compareUnaryOperator(userUnary, recursiveUnary)) {\n return true;\n }\n return !(compareElementContent(user, recursive,\n userUnary.getExpression().toString(), recursiveUnary.getExpression().toString()));\n }", "private Query getExpanded(String field, InnerQueryMaker inner) throws ParseException {\n if (log.isTraceEnabled()) {\n //noinspection DuplicateStringLiteralInspection\n log.trace(\"getExpanded(\" + field + \", \" + inner + \") called\");\n }\n if (field == null) {\n Collection<Query> subQueries = new ArrayList<>(10);\n for (String defaultField : descriptor.getDefaultFields()) {\n Query q = inner.getRecursiveQuery(defaultField);\n if (q != null) {\n subQueries.add(q);\n }\n }\n if (subQueries.isEmpty()) { // happens for stopwords\n return null;\n }\n return makeMulti(subQueries, disjunctDefaults);\n }\n IndexGroup<LuceneIndexField> group = descriptor.getGroup(field);\n if (group != null) {\n if (log.isTraceEnabled()) {\n log.trace(\"Expanding group '\" + group.getName() + \"'\");\n }\n List<Query> queries = new ArrayList<>(group.getFields().size());\n for (LuceneIndexField groupField: group.getFields()) {\n Query q = inner.getFinalQuery(groupField.getName());\n if (q != null) {\n queries.add(q);\n }\n }\n return makeMulti(queries, disjunctGroups);\n }\n LuceneIndexField resolvedField = descriptor.getField(field);\n if (resolvedField == null) {\n // TODO: The field is unknown in the descriptor but might be indexed\n return inner.getFinalQuery(field);\n }\n\n // Note: This was introduced to support dynamic fields. It _should_ not collide with existing usage\n for (IndexAlias alias: resolvedField.getAliases()) {\n if (alias.getName().equals(field)) {\n // It's an alias so we return the real name\n return inner.getFinalQuery(resolvedField.getName());\n }\n }\n return inner.getFinalQuery(field);\n //return inner.getFinalQuery(resolvedField.getName());\n }", "private double expr(boolean get){\n\t\t// compute the left argument which has to be a primary value or an expression with a higher priority than sums\n\t\tdouble left = term(get);\n\t\t// add all addends until the end of the sum is reached\n\t\tfor(;;){ \n\t\t\tswitch(curr_tok){\n\t\t\t\tcase PLUS:{\n\t\t\t\t\tleft += term(true);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase MINUS:{\n\t\t\t\t\tleft -= term(true);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tdefault:{\n\t\t\t\t\treturn left;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "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 }", "@Override\n\tpublic String visitExpr(MicroParser.ExprContext ctx) {\n\t\tString prefix = visit(ctx.expr_prefix());\n\t\tString expr = prefix + visit(ctx.term());\n\t\t\n\t\t//System.out.println(\"in visit expr: \"+expr);\n\t\t//System.out.println(\"in visit expr: prefix is: \"+prefix);\n\t\tif((prefix.contentEquals(\"\"))) return expr;\n\t\tString op1, op2, result;\n\t\tString type = currentType;\n\t\tString[] ids = expr.split(\"\\\\-|\\\\+\");\n\t List<String> operands = new ArrayList<String>();\n\t List<Character> addops = new ArrayList<Character>();\n\t \n\t for(int i=0;i<expr.length();i++) {\n\t \tif(expr.charAt(i)=='+' || expr.charAt(i)=='-')\n\t \t\taddops.add(expr.charAt(i));\n\t }\n\t //create a list of addops\n\t \n\t //create a list of operands \n\t for(String i:ids) \n\t \t operands.add(i);\n\t \n\t op1 = operands.get(0);\n\t op2 = operands.get(1);\n\t temp = new Temporary(type);\n\t result = temp.fullName;\n\t tempList.addT(temp);\n\t //System.out.println(\"in visit expr, ops are: \"+op1+\" \"+ op2);\n\t //System.out.println(\"in visit expr, result is: \"+ result);\n\t if(addops.get(0)=='+') {\n\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"ADD\", op1, op2, result));\n\t \toperands.remove(0); operands.remove(0); addops.remove(0);\n\t }\n\t \t\n\t else {\n\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"SUB\", op1, op2, result));\n\t \toperands.remove(0); operands.remove(0); addops.remove(0);\n\t }\n\t \n\t \t\n\t if(operands.size()==0) return result;\n\t \n\t for(int i=0; i<operands.size();i++) {\n\t \top1 = result;\n\t \top2 = operands.get(i);\n\t \ttemp = new Temporary(type);\n\t \tresult = temp.fullName;\n\t \ttempList.addT(temp);\n\t \tif(addops.get(0)=='+') {\n\t\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"ADD\", op1, op2, result));\n\t\t \taddops.remove(0);\n\t \t}\n\t\t \t\n\t\t else {\n\t\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"SUB\", op1, op2, result));\n\t\t \taddops.remove(0);\n\t\t }\n\t\t \t\n\t }\n\t return result; \n\t\t\n\t}", "public static void findUglyExpressions(String num, int startingPos, int numOfDigitsLeft) {\n\n //reached end of number\n if(numOfDigitsLeft == 1)\n return;\n\n String beforeOp = num.substring(0, startingPos);\n String afterOp = num.substring(startingPos);\n\n //append + in between num[i] and num[i+1]\n String add = beforeOp + \"+\" + afterOp;\n if(isUgly(parseStringToExpression(add)))\n uglyNumbers++;\n findUglyExpressions(add, startingPos + 2, numOfDigitsLeft - 1); // +2 to deal with \"+\" added in\n\n //append - in between\n String subtract = beforeOp + \"-\" + afterOp;\n if(isUgly(parseStringToExpression(subtract)))\n uglyNumbers++;\n findUglyExpressions(subtract, startingPos + 2, numOfDigitsLeft - 1);\n\n //don't do any operations in between\n findUglyExpressions(num, startingPos + 1, numOfDigitsLeft - 1);\n\n numOfDigitsLeft--;\n }", "@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }", "static boolean outerPattern(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"outerPattern\")) return false;\n boolean r;\n r = listPattern(b, l + 1);\n if (!r) r = mapPattern(b, l + 1);\n if (!r) r = recordPattern(b, l + 1);\n if (!r) r = parenthesizedPattern(b, l + 1);\n if (!r) r = objectPattern(b, l + 1);\n return r;\n }", "private static void doTransform(Tree t) {\n\n if (t.value().startsWith(\"QP\")) {\n //look at the children\n List<Tree> children = t.getChildrenAsList();\n if (children.size() >= 3 && children.get(0).isPreTerminal()) {\n //go through the children and check if they match the structure we want\n String child1 = children.get(0).value();\n String child2 = children.get(1).value();\n String child3 = children.get(2).value();\n if((child3.startsWith(\"CD\") || child3.startsWith(\"DT\")) &&\n (child1.startsWith(\"RB\") || child1.startsWith(\"JJ\") || child1.startsWith(\"IN\")) &&\n (child2.startsWith(\"IN\") || child2.startsWith(\"JJ\"))) {\n transformQP(t);\n }\n }\n /* --- to be written or deleted\n } else if (t.value().startsWith(\"NP\")) {\n //look at the children\n List<Tree> children = t.getChildrenAsList();\n if (children.size() >= 3) {\n\n }\n ---- */\n } else if (t.isPhrasal()) {\n for (Tree child : t.getChildrenAsList()) {\n doTransform(child);\n }\n }\n }", "public Expression preEvaluate(ExpressionVisitor visitor) throws XPathException {\n \treturn this;\n }", "private void consolidateValueTokens() {\n // this trick is not done in JSON\n if (flavor == ConfigSyntax.JSON)\n return;\n\n List<Token> values = null; // create only if we have value tokens\n TokenWithComments firstValueWithComments = null;\n TokenWithComments t = nextTokenIgnoringNewline(); // ignore a\n // newline up\n // front\n while (Tokens.isValue(t.token) || Tokens.isUnquotedText(t.token)\n || Tokens.isSubstitution(t.token)) {\n if (values == null) {\n values = new ArrayList<Token>();\n firstValueWithComments = t;\n }\n values.add(t.token);\n t = nextToken(); // but don't consolidate across a newline\n }\n // the last one wasn't a value token\n putBack(t);\n\n if (values == null)\n return;\n\n if (values.size() == 1 && Tokens.isValue(firstValueWithComments.token)) {\n // a single value token requires no consolidation\n putBack(firstValueWithComments);\n return;\n }\n\n // this will be a list of String and SubstitutionExpression\n List<Object> minimized = new ArrayList<Object>();\n\n // we have multiple value tokens or one unquoted text token;\n // collapse into a string token.\n StringBuilder sb = new StringBuilder();\n ConfigOrigin firstOrigin = null;\n for (Token valueToken : values) {\n if (Tokens.isValue(valueToken)) {\n AbstractConfigValue v = Tokens.getValue(valueToken);\n sb.append(v.transformToString());\n if (firstOrigin == null)\n firstOrigin = v.origin();\n } else if (Tokens.isUnquotedText(valueToken)) {\n String text = Tokens.getUnquotedText(valueToken);\n if (firstOrigin == null)\n firstOrigin = valueToken.origin();\n sb.append(text);\n } else if (Tokens.isSubstitution(valueToken)) {\n if (firstOrigin == null)\n firstOrigin = valueToken.origin();\n\n if (sb.length() > 0) {\n // save string so far\n minimized.add(sb.toString());\n sb.setLength(0);\n }\n // now save substitution\n List<Token> expression = Tokens\n .getSubstitutionPathExpression(valueToken);\n Path path = parsePathExpression(expression.iterator(), valueToken.origin());\n boolean optional = Tokens.getSubstitutionOptional(valueToken);\n\n minimized.add(new SubstitutionExpression(path, optional));\n } else {\n throw new ConfigException.BugOrBroken(\n \"should not be trying to consolidate token: \"\n + valueToken);\n }\n }\n\n if (sb.length() > 0) {\n // save string so far\n minimized.add(sb.toString());\n }\n\n if (minimized.isEmpty())\n throw new ConfigException.BugOrBroken(\n \"trying to consolidate values to nothing\");\n\n Token consolidated = null;\n\n if (minimized.size() == 1 && minimized.get(0) instanceof String) {\n consolidated = Tokens.newString(firstOrigin,\n (String) minimized.get(0));\n } else {\n // there's some substitution to do later (post-parse step)\n consolidated = Tokens.newValue(new ConfigSubstitution(\n firstOrigin, minimized));\n }\n\n putBack(new TokenWithComments(consolidated, firstValueWithComments.comments));\n }", "private ParseTree transformLeftHandSideExpression(ParseTree tree) {\n switch (tree.type) {\n case ARRAY_LITERAL_EXPRESSION:\n case OBJECT_LITERAL_EXPRESSION:\n resetScanner(tree);\n // If we fail to parse as an LeftHandSidePattern then\n // parseLeftHandSidePattern will take care reporting errors.\n return parseLeftHandSidePattern();\n default:\n return tree;\n }\n }", "public TreeStructure<String> optimiseTree() throws IllegalAccessException {\n\n canonicalTree.createStack(canonicalTree.getRootNode());\n TreeStructure.Node<String> popNode;\n TreeStructure.Node<String> whereNodeToDelete = null;\n Stack<TreeStructure.Node<String>> stack = canonicalTree.getStack();\n Stack<TreeStructure.Node<String>> optimizationStack = new Stack<>();\n\n boolean conditionAlready;\n while (!stack.empty()) {\n popNode = stack.pop();\n switch (popNode.getNodeStatus()) {\n case RELATION_NODE_STATUS:{\n conditionAlready = false;\n /*if there is a condition associated with that relation then call the method. and set set conditionAlready to TRue so that\n if a node is associated with more than one conditions all the associated conditions will be added to it's parent node.\n after every iteration of the loop the popNode is becoming the node that holds the condition if any so need to make pop node to hold the\n relation node again (if node has a child node-> avoid exception)!!!*/\n while(optimizedWhere.containsValue(new LinkedList<>(Collections.singleton(popNode.getData())))) {\n conditionAlready = relationNodeAction(popNode, conditionAlready);\n if(popNode.getChildren().size() == 1) popNode = popNode.getChildren().get(0);\n }\n associatedRelations = new LinkedList<>();\n break;\n }\n case CARTESIAN_NODE_STATUS: {\n\n cartesianNodeAction(popNode,(Stack<TreeStructure.Node<String>>) optimizationStack.clone());\n cartesianNodesIncludeCond(popNode);\n associatedRelations = new LinkedList<>();\n }\n case WHERE_NODE_STATUS:{\n whereNodeToDelete = popNode;\n break;\n }\n }\n optimizationStack.push(popNode);\n }\n //Delete node that holds the condition if any from the initial tree\n if(whereNodeToDelete!=null){\n /*The condition node will be removed so the root node level must become the condition node's level\n *Make the root node the parent of its child node so the whole tree won't be deleted when the node is deleted*/\n canonicalTree.getRootNode().setNodeLevel(whereNodeToDelete.getNodeLevel());\n whereNodeToDelete.getChildren().get(0).setParentNode(whereNodeToDelete.getParentNode());\n canonicalTree.deleteNode(whereNodeToDelete);\n }\n convertCartesianToJoin();\n\n\n return canonicalTree;\n }", "@Override\n public String toString() {\n Helpers f = new Helpers();\n Expression left = super.getLeft();\n Expression right = super.getRight();\n\n if (super.isBonus()) {\n // x * y -> xy\n if (left instanceof Var && right instanceof Var) {\n return \"(\" + left.toString() + \"\" + right.toString() + \")\";\n }\n // 4 * x -> 4x\n if (right instanceof Var) {\n return \"(\" + left.toString() + \"\" + right.toString() + \")\";\n }\n // x * 4 -> 4x\n if (left instanceof Var) {\n return \"(\" + right.toString() + \"\" + left.toString() + \")\";\n }\n // 4 * (x^2) -> 4(x^2)\n if (right instanceof Pow) {\n return \"(\" + left.toString() + \"\" + right.toString() + \")\";\n }\n // 4 * (xy) -> 4xy\n if (right instanceof Mult) {\n if (((Mult) right).getLeft() instanceof Var && ((Mult) right).getRight() instanceof Var) {\n return \"(\" + left.toString() + \"\" + f.removeOuterParentheses(right.toString()) + \")\";\n }\n }\n }\n return \"(\" + left.toString() + \" * \" + right.toString() + \")\";\n }", "private double processExpression() throws ParsingException {\n double result = processTerm();\n\n while (true) {\n if (tryCaptureChar('+')) {\n result += processTerm();\n } else if (tryCaptureChar('-')) {\n result -= processTerm();\n } else {\n break;\n }\n }\n return result;\n }", "public static String reverseRecursively(String str) {\n\t\t if (str.length() < 2) {\n\t\t return str;\n\t\t }\n\n\t\t return reverseRecursively(str.substring(1)) + str.charAt(0);\n\n\t\t }", "Unary expr(Expr e);", "public StatementParse addSubTransform(StatementParse node) {\n\n ArrayList<StatementParse> expanded = this.expandNode(node);\n expanded = this.nonConstantFirst(expanded);\n expanded = this.collapseExpression(expanded);\n expanded = this.positiveFirst(expanded);\n node = this.reconstructTree(expanded);\n return node;\n }", "@FunctionalInterface\npublic interface StepExpr extends Expr {\n\n /**\n * {@inheritDoc}\n *\n * @return evaluated XML node views\n */\n @Override\n <N extends Node> IterableNodeView<N> resolve(Navigator<N> navigator, NodeView<N> view, boolean greedy)\n throws XmlBuilderException;\n\n}", "private void infix(ExpressionNodes root, StringBuilder sb)\n\t {\t\n\t \t\n\t \tif (root.left != null) // if there is a left child\n\t \t{ \n\t \t\tinfix(root.left, sb); // run recursive method \n\t \t}\n\t \t\n\t \t// add the string of this node to the the string builder \n\t \tsb.append(root.data);\n\t \t\n\t \t// add a space in between nodes for clarity.\n\t \tsb.append(\" \");\n\t \t\n\t \t\n\t \tif (root.right != null) // if there is a right child\n\t \t{ \n\t \t\tinfix(root.right, sb); // run recursive method \n\t \t}\n\t \t\n\t }", "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 static int term()\r\n {\r\n //get the start state of this factor\r\n int r;\r\n int t1;\r\n t1=r=factor();\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 it is closure\r\n if(expression.charAt(index)=='*')\r\n {\r\n int f=state-1;\r\n //create a branch state and set its next1 and next2\r\n state st=new state(state,\"BR\",t1,state+1);\r\n stateList.add(st);\r\n\r\n //check if the expression is something like (abc)*\r\n //if so, update the corresponding state so both a* and (abc)* work\r\n if(expression.charAt(index-1)!=')')\r\n {\r\n if(stateList.get(f-1).getNext1()==stateList.get(f-1).getNext2())\r\n {\r\n stateList.get(f-1).setNext1(state);\r\n }\r\n stateList.get(f-1).setNext2(state);\r\n\r\n }\r\n\r\n index++;\r\n r=state;\r\n state++;\r\n\r\n }\r\n //preceding regexp can occur one or more times\r\n else if(expression.charAt(index)=='+')\r\n {\r\n int f=state-1;\r\n stateList.get(f).setNext1(t1);\r\n index++;\r\n\r\n }\r\n // preceding regexp can occur zero or one time\r\n else if(expression.charAt(index)=='?')\r\n {\r\n int f =state-1;\r\n //check if the expression is something like (abc)?\r\n //if so update corresponding state so both a? and (abc)? work\r\n if(expression.charAt(index-1)!=')')\r\n {\r\n //create a branch state and update the corresponding state\r\n state st=new state(state,\"BR\",t1,state+1);\r\n\r\n String previousChar=stateList.get(f).getCharacter();\r\n\r\n if(stateList.get(f).getAlter())\r\n {\r\n stateList.get(f).setAlter(false);\r\n st.setAlter(true);\r\n }\r\n\r\n stateList.get(f).setCharacter(\"BR\");\r\n stateList.get(f).setNext2(state+1);\r\n st.setCharacter(previousChar);\r\n st.setNext1(state+1);\r\n stateList.add(st);\r\n\r\n r=f;\r\n state++;\r\n index++;\r\n }\r\n else\r\n {\r\n //create a branch state and update the corresponding state\r\n if(stateList.get(f).getNext1()==stateList.get(f).getNext2())\r\n {\r\n stateList.get(f).setNext1(state+1);\r\n }\r\n stateList.get(f).setNext2(state+1);\r\n\r\n state st=new state(state,\"BR\",t1,state+1);\r\n stateList.add(st);\r\n\r\n r=state;\r\n state++;\r\n index++;\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n return r;\r\n }", "private void dfs(String s, int leftCount, int rightCount, int openCount, int index, StringBuilder sb, Set<String> res) {\n if (index == s.length()) {\n if (leftCount == 0 && rightCount == 0 && openCount == 0) res.add(sb.toString());\n return;\n }\n if (leftCount < 0 || rightCount < 0 || openCount < 0) return;\n int len = sb.length();\n if (s.charAt(index) == '(') {\n dfs(s, leftCount - 1, rightCount, openCount, index + 1, sb, res);\n dfs(s, leftCount, rightCount, openCount + 1, index + 1, sb.append('('), res);\n } else if (s.charAt(index) == ')') {\n dfs(s, leftCount, rightCount - 1, openCount, index + 1, sb, res);\n dfs(s, leftCount, rightCount, openCount - 1, index + 1, sb.append(')'), res);\n } else {\n dfs(s, leftCount, rightCount, openCount, index + 1, sb.append(s.charAt(index)), res);\n }\n sb.setLength(len);\n }", "private Expr mult(Expr x) throws Err {\n if (x instanceof ExprUnary) {\n ExprUnary y=(ExprUnary)x;\n if (y.op==ExprUnary.Op.SOME) return ExprUnary.Op.SOMEOF.make(y.pos, y.sub);\n if (y.op==ExprUnary.Op.LONE) return ExprUnary.Op.LONEOF.make(y.pos, y.sub);\n if (y.op==ExprUnary.Op.ONE) return ExprUnary.Op.ONEOF.make(y.pos, y.sub);\n }\n return x;\n }", "boolean getDoCommonSubexpressionElimination();", "private Object eval(SimpleExpr expr) {\n Object res = eval(expr.getExpr().get(0));\n\n for (int i = 1; i < expr.getExpr().size(); i++) {\n Object res2 = eval(expr.getExpr().get(i));\n String opt = expr.getOpt().get(i - 1);\n\n if (\"+\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res + (Double) res2;\n } else if (res instanceof Double && res2 instanceof String) {\n res = \"\" + res + res2;\n } else if (res instanceof Boolean && res2 instanceof String) {\n res = \"\" + res + res2;\n } else if (res instanceof String && res2 instanceof String) {\n res = \"\" + res + res2;\n } else if (res instanceof String && res2 instanceof Double) {\n res = \"\" + res + res2;\n } else if (res instanceof String && res2 instanceof Boolean) {\n res = \"\" + res + res2;\n } else {\n throw new RaydenScriptException(\"Expression error: SimpleExpr error\");\n }\n } else if (\"-\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res - (Double) res2;\n } else {\n throw new RaydenScriptException(\"Expression error: SimpleExpr error\");\n }\n } else {\n throw new RaydenScriptException(\"Expression error: Invalid operator '\" + opt + \"'.\");\n }\n }\n\n return res;\n }", "public ASTNode simplifyLoop(ASTNode astNode) throws Exception {\n ASTNode originalAST = astNode;\n ASTNode newAST = visit(originalAST);\n\n while (!originalAST.toString().equals(newAST.toString())){\n originalAST = newAST;\n newAST = visit(newAST);\n }\n return newAST;\n }", "@Test\n public void testNesting() {\n assertThat(regex(\n seq(\n e(\"0\"),\n or(\n e(\"1\"),\n seq(\n e(\"2\"),\n opt(e(\"3\"), e(\"4\")))),\n e(\"5\"), e(\"6\"))))\n .isEqualTo(\"0(?:1|2(?:3|4)?)56\");\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 }", "public double computeExpression(Expression exp, DataRow data) {\n\n //TODO all cases\n\n //------ net.sf.jsqlparser.expression.operators.* ---------\n if (exp instanceof Parenthesis) {\n return computeExpression(((Parenthesis) exp).getExpression(), data);\n }\n\n\n //------ net.sf.jsqlparser.expression.operators.conditional.* ---------\n if (exp instanceof AndExpression) {\n return computeAnd((AndExpression) exp, data);\n }\n if (exp instanceof OrExpression) {\n return computeOr((OrExpression) exp, data);\n }\n\n\n //------ net.sf.jsqlparser.expression.operators.relational.* ---------\n if(exp instanceof Between){\n return computeBetween((Between)exp, data);\n }\n if (exp instanceof ComparisonOperator) {\n // this deals with 6 subclasses:\n return computeComparisonOperator((ComparisonOperator) exp, data);\n }\n if(exp instanceof ExistsExpression){\n //TODO\n }\n if(exp instanceof ExpressionList){\n //TODO\n }\n if (exp instanceof InExpression) {\n return computeInExpression((InExpression) exp, data);\n }\n if (exp instanceof IsNullExpression) {\n return computeIsNull((IsNullExpression) exp, data);\n }\n if(exp instanceof JsonOperator){\n //TODO\n }\n if(exp instanceof LikeExpression){\n //TODO\n }\n if(exp instanceof Matches){\n //TODO\n }\n if(exp instanceof MultiExpressionList){\n //TODO\n }\n if(exp instanceof NamedExpressionList){\n //TODO\n }\n if(exp instanceof RegExpMatchOperator){\n //TODO\n }\n\n return cannotHandle(exp);\n }", "public static ExtractedExpression extractFunctionCalls(AbstractExpression exp) {\n\t\tExtractedExpression ee = new ExtractedExpression(exp);\n\t\tAbstractFunctionCall fc = exp.getEmbeddedFunctionCall();\n\t\twhile (fc != null) {\n\t\t\tString var = FreeVarNameProvider.getFreeVariable(\"subst\");\n\t\t\tee.rewrite(var, fc);\n\t\t\tfc = ee.getExpression().getEmbeddedFunctionCall();\n\t\t}\n\t\treturn ee;\n\t}", "public ArrayList<Predicate> expandInConjunctiveFormula(){\n\t\tArrayList<Predicate> formula = new ArrayList<Predicate>();\n\t\t\n\t\t// (x, (0,2)) (y,1) \n\t\t//holds positions of the vars\n\t\tHashtable<String,ArrayList<String>> pos = new Hashtable<String,ArrayList<String>>();\n\t\t//(const3, \"10\")\n\t\t//holds vars that have constants assigned\n\t\tHashtable<String,String> constants = new Hashtable<String,String>();\n\t\t\n\t\tRelationPredicate p = this.clone();\n\t\t//rename each term to a unique name\n\t\tfor(int i=0; i<p.terms.size(); i++){\n\t\t\tTerm t = p.terms.get(i);\n\t\t\tt.changeVarName(i);\n\n\t\t}\n\t\tformula.add(p);\n\n\t\tArrayList<String> attrsOld = getVarsAndConst();\n\t\tArrayList<String> attrsNew = p.getVarsAndConst();\n\n\t\t\n\t\tfor(int i=0; i<attrsOld.size(); i++){\n\t\t\tTerm t = terms.get(i);\n\t\t\tif(t instanceof ConstTerm){\n\t\t\t\t//get the constant value\n\t\t\t\tconstants.put(attrsNew.get(i),t.getVal());\n\t\t\t}\n\t\t\t\n\t\t\tArrayList<String> posVals = pos.get(attrsOld.get(i));\n\t\t\tif(posVals==null){\n\t\t\t\tposVals=new ArrayList<String>();\n\t\t\t\tpos.put(attrsOld.get(i),posVals);\n\t\t\t}\n\t\t\tposVals.add(String.valueOf(i));\n\n\t\t}\n\t\t\n\t\t//System.out.println(\"Position of attrs=\" + pos + \" Constants= \" + constants);\n\t\n\t\t//deal with var equality x0=x2\n\t\tIterator<String> it = pos.keySet().iterator();\n\t\twhile(it.hasNext()){\n\t\t\tString key = (String)it.next();\n\t\t\tArrayList<String> vals = pos.get(key);\n\t\t\tif(vals.size()>1){\n\t\t\t\t//add x0=x2 & x2=x9, etc\n\t\t\t\tfor(int i=1; i<vals.size(); i++){\n\t\t\t\t\tBuiltInPredicate p1 = new BuiltInPredicate(MediatorConstants.EQUALS);\n\t\t\t\t\t//p1.addTerm(new VarTerm(key+vals.get(i)));\n\t\t\t\t\t//p1.addTerm(new VarTerm(key+vals.get(i+1)));\n\t\t\t\t\tVarTerm v1 = new VarTerm(key);\n\t\t\t\t\tv1.changeVarName(Integer.valueOf(vals.get(i-1)).intValue());\n\t\t\t\t\tp1.addTerm(v1);\n\t\t\t\t\tVarTerm v2 = new VarTerm(key);\n\t\t\t\t\tv2.changeVarName(Integer.valueOf(vals.get(i)).intValue());\n\t\t\t\t\tp1.addTerm(v2);\n\t\t\t\t\tformula.add(p1);\n\t\t\t\t\t//i=i+1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//deal with constants\n\t\tit = constants.keySet().iterator();\n\t\twhile(it.hasNext()){\n\t\t\tString key = (String)it.next();\n\t\t\tString val = constants.get(key);\n\t\t\t//it's a constant\n\t\t\t//add const3=\"10\"\n\t\t\tBuiltInPredicate p1 = new BuiltInPredicate(MediatorConstants.EQUALS);\n\t\t\tp1.addTerm(new VarTerm(key));\n\t\t\tp1.addTerm(new ConstTerm(val));\n\t\t\tformula.add(p1);\n\t\t}\n\t\treturn formula;\n\t}", "@Override\n protected void visitFunctionNode(FunctionNode node) {\n // TODO(lukes): move this logic to run as part of ResolveExpressionsTypeVisitor (possibly\n // extracted into a helper class)\n SoyFunction function = node.getSoyFunction();\n if (function instanceof BuiltinFunction) {\n visitNonpluginFunction((BuiltinFunction) function, node);\n } else {\n visitFunction(function, node);\n }\n\n // Recurse to operands.\n visitChildren(node);\n }", "private String toReversePolishNotation(String expr) {\n\t\tString output = \"\";\n\t\tStack<String> operatorStack = new Stack<String>();\n\n\t\tfor(String token : expr.split(\"\\\\s+\")) {\n\t\t\tif(isNumber(token)) {\n\t\t\t\toutput += token + \" \";\n\t\t\t}\n\t\t\telse if(isMatrix(token)) {\n\t\t\t\toutput += token + \" \";\n\t\t\t}\n\t\t\telse if(isOperator(token)) {\n\t\t\t\tint precidenceToken = getPrecidence(token);\n\t\t\t\tint precidenceNext;\n\t\t\t\twhile(!operatorStack.isEmpty()) {\n\t\t\t\t\tprecidenceNext = getPrecidence(operatorStack.peek());\n\t\t\t\t\tif(precidenceNext >= precidenceToken) output += operatorStack.pop() + \" \";\n\t\t\t\t\telse break;\n\t\t\t\t}\n\t\t\t\toperatorStack.push(token);\n\t\t\t}\n\t\t\telse if(token.equals(\"(\")) {\n\t\t\t\toperatorStack.push(token);\n\t\t\t}\n\t\t\telse if(token.equals(\")\")) {\n\t\t\t\twhile(!operatorStack.peek().equals(\"(\")) output += operatorStack.pop() + \" \";\n\t\t\t\toperatorStack.pop();\n\t\t\t}\n\t\t\telse throw new IllegalArgumentException(INVALID_CHARACTER_MESSAGE);\n\t\t}\n\t\twhile(!operatorStack.isEmpty()) output += operatorStack.pop() + \" \";\n\n\t\treturn output;\n\t}", "private void postfix(ExpressionNodes root, StringBuilder sb)\n\t {\n\t \tif (root.left != null) // if there is a left child\n\t \t{ \n\t \t\tpostfix(root.left, sb); // run recursive method\n\t \t}\n\t \t\n\t \tif (root.right != null) // if there is a right child\n\t \t{ \n\t \t\tpostfix(root.right, sb); // run recursive method \n\t \t}\n\t \t\n\t \t// add the string of this node to the the string builder \n\t \tsb.append(root.data);\n\t \t\n\t \t// add a space in between nodes for clarity.\n\t \tsb.append(\" \");\n\t }", "public String convert(ArithmeticExpression expression)\n {\n String expressionString = expression.getExpression();\n String convertedExpression = \"\";\n Stack<String> OpStack = new Stack<>();\n\n int startIndex = 0;\n while(startIndex < expressionString.length())\n {\n if(isOperand(nextToken(expressionString,startIndex)))\n {\n convertedExpression += nextToken(expressionString,startIndex);\n convertedExpression += \" \";\n\n }\n if(Brackets.isLeftBracket(nextToken(expressionString,startIndex)))\n {\n OpStack.push(nextToken(expressionString,startIndex));\n }\n if(Brackets.isRightBracket(nextToken(expressionString,startIndex)))\n {\n String topOp = OpStack.pop();\n while(!Brackets.isLeftBracket(topOp))\n {\n convertedExpression += topOp;\n convertedExpression += \" \";\n topOp = OpStack.pop();\n }\n }\n if(Operator.isOperator(nextToken(expressionString,startIndex)))\n {\n Operator temp = Operator.of(nextToken(expressionString,startIndex));\n if(OpStack.isEmpty())\n {\n OpStack.push(nextToken(expressionString, startIndex));\n }\n else\n {\n Operator topOp = Operator.of(OpStack.peek());\n while (topOp.getRank() <= temp.getRank())\n {\n convertedExpression += OpStack.pop();\n convertedExpression += \" \";\n topOp = Operator.of(OpStack.peek());\n }\n OpStack.push(nextToken(expressionString, startIndex));\n\n }\n }\n if(isOperand(nextToken(expressionString,startIndex)))\n startIndex += nextToken(expressionString,startIndex).length();\n else\n startIndex++;\n }\n while(!OpStack.isEmpty())\n {\n convertedExpression += OpStack.pop();\n convertedExpression += \" \";\n }\n return convertedExpression;\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 String evaluate(ArrayList<String> expression)\n {\n Stack<String> Values = new Stack<String>(), Operations = new Stack<String>();\n\n for (int i = 0; i < expression.size(); i++)\n\t\t{\n\t\t\tif (expression.get(i).equals(\"(\"))\n Operations.push(expression.get(i));\n else if (expression.get(i).equals(\")\"))\n {\n while (Operations.peek().equals(\"(\"))\n Values.push(apply(Operations.pop(), Values.pop(), Values.pop()));\n Operations.pop();\n }\n else if (expression.get(i).equals(\"+\") || expression.get(i).equals(\"-\") || expression.get(i).equals(\"*\") || expression.get(i).equals(\"/\"))\n {\n while (!Operations.empty() && precedence(expression.get(i), Operations.peek()))\n Values.push(apply(Operations.pop(), Values.pop(), Values.pop()));\n Operations.push(expression.get(i));\n }\n\t\t\telse\n\t\t\t{\n\t\t\t\tValues.push(expression.get(i));\n\t\t\t}\n }\n while (!Operations.empty())\n Values.push(apply(Operations.pop(), Values.pop(), Values.pop()));\n return Values.pop();\n }" ]
[ "0.66081625", "0.657564", "0.64341855", "0.6111608", "0.60045964", "0.5999199", "0.5992951", "0.5905736", "0.5890786", "0.580762", "0.5723243", "0.56945556", "0.56097144", "0.5588585", "0.55388224", "0.55375326", "0.550765", "0.54733527", "0.5408962", "0.5402008", "0.53961986", "0.538757", "0.5379866", "0.5362984", "0.53608185", "0.5335587", "0.53341395", "0.53333616", "0.52878124", "0.52869356", "0.52528983", "0.5221381", "0.5203582", "0.5187039", "0.51841736", "0.5179189", "0.51715934", "0.5161641", "0.5149814", "0.51341736", "0.5132877", "0.5129428", "0.51198196", "0.51172847", "0.51148117", "0.5090607", "0.5089044", "0.50725454", "0.50524986", "0.5048338", "0.50299925", "0.50069827", "0.49931392", "0.49829832", "0.49769074", "0.49729937", "0.497224", "0.49660295", "0.49487144", "0.49439308", "0.49352485", "0.4931514", "0.49142262", "0.49068204", "0.49061525", "0.49029365", "0.4874851", "0.486661", "0.48548537", "0.4844306", "0.4839172", "0.4836075", "0.48273844", "0.48226798", "0.4805712", "0.48048797", "0.47915956", "0.4789876", "0.47800988", "0.47787678", "0.47765288", "0.4772958", "0.47725472", "0.47622007", "0.4761066", "0.47594875", "0.47563496", "0.47529635", "0.47501427", "0.47494465", "0.47454605", "0.47444132", "0.47435313", "0.47409987", "0.47319275", "0.47305802", "0.47240916", "0.47240496", "0.47184703", "0.47161022" ]
0.58073604
10
Shorthand for creating expressions
public ExpressionSearch or(Search srch) { return new ExpressionSearch(false).addOps(this, srch); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Expression createExpression();", "Expr createExpr();", "JavaExpression createJavaExpression();", "Expr expr();", "ExpOperand createExpOperand();", "FullExpression createFullExpression();", "public Object getExpression();", "Expression getExpression();", "Expression getExpression();", "Expression getExpression();", "Expression getExpression();", "Expression() { }", "Expression getExp();", "NumericExpression createNumericExpression();", "public abstract Expression generateExpression(GenerationContext context);", "private Expr expression() {\n return assignment();\n }", "XExpr createXExpr();", "public Stmt createEval(Expr expr) {\n return xnf.Eval(expr.position(), expr);\n }", "public Expression asExpression() {\n switch (TYPE) {\n case EXPRESSION:\n return EXPRESSION;\n case IDENTIFIER:\n return new Variable(VALUE);\n case LITERAL:\n if (VALUE.matches(\"\\\\d+\")) {\n return new LInteger(Integer.parseInt(VALUE));\n } else if (VALUE.equals(\"true\") || VALUE.equals(\"false\")) {\n return LBoolean.resolve(VALUE.equals(\"true\"));\n } else if (VALUE.equals(\"null\")) {\n return LNull.NULL;\n } else {\n return new LString(VALUE);\n }\n default:\n throw ErrorLog.get(\"Unexpected symbol '%s'\", VALUE);\n }\n }", "StringExpression createStringExpression();", "String getExpression();", "String getExpression();", "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 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 static JRDesignExpression createExpression(String text) {\n\t\treturn createExpression(text, (String) null);\n\t}", "Expr getExpr();", "@Override\n public String toString() {\n return \"Expression\";\n }", "DExpression getExpression();", "Operand createOperand();", "ParenthesisExpr createParenthesisExpr();", "com.google.type.Expr getCelExpression();", "public T expr(final String expr, final Object... values) {\r\n\t\treturn op(ConditionValueType.EXPRESSION, concatenate(expr, values));\r\n\t}", "VariableExp createVariableExp();", "LogicExpression getExpr();", "XExpression getExpression();", "public interface Expression {\n\t\n\t/**\n\t * Evaluates an arithmetic expression.\n\t * \n\t * @return the value to which this expression evaluates\n\t */\n\tdouble eval();\n\t\n\t/**\n\t * Creates a String representation of an arithmetic expression.\n\t * \n\t * @return this expression in standard form, suitable for inclusion\n\t * in a program or text document (e.g., \"(2 - 4 * (7 + 2))\"). Note\n\t * that the string can have \"unnecessary\" parentheses as this (toy)\n\t * system does not know about operator precedence. \n\t */\n\tString toString();\n\n}", "Operands createOperands();", "ExpressionInOcl createExpressionInOcl();", "public Object eval (Object expression);", "public static Expression getExpression(Object value) {\n\t\tif (isBool(value)) {\n\t\t\treturn IrFactory.eINSTANCE.createExprBool((Boolean) value);\n\t\t} else if (isFloat(value)) {\n\t\t\treturn IrFactory.eINSTANCE.createExprFloat((BigDecimal) value);\n\t\t} else if (isInt(value)) {\n\t\t\treturn IrFactory.eINSTANCE.createExprInt((BigInteger) value);\n\t\t} else if (isString(value)) {\n\t\t\treturn IrFactory.eINSTANCE.createExprString((String) value);\n\t\t} else if (isList(value)) {\n\t\t\tExprList list = IrFactory.eINSTANCE.createExprList();\n\t\t\tint length = Array.getLength(value);\n\t\t\tfor (int i = 0; i < length; i++) {\n\t\t\t\tlist.getValue().add(getExpression(Array.get(value, i)));\n\t\t\t}\n\t\t\treturn list;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "RealLiteralExp createRealLiteralExp();", "private Equation createEquation() throws MainApplicationException {\r\n\t\tEquation equation = new Equation(false,\r\n\t\t\t\t\"a+b=c\", \r\n\t\t\t\tfalse, \r\n\t\t\t\tnew Parametre(), \r\n\t\t\t\t\"Insérer Propriété\",\r\n\t\t\t\t\"Insérer commentaire\");\r\n\t\tequation.setIsModifiable(true);\r\n\t\treturn equation;\r\n\t}", "ExprRule createExprRule();", "Lexpr createLexpr();", "ConditionalExpression createConditionalExpression();", "private Clause make(Literal... e) {\n Clause c = new Clause();\n for (int i = 0; i < e.length; ++i) {\n c = c.add(e[i]);\n }\n return c;\n }", "private Expression toExpression() {\n Expression lhs = null, rhs = null;\n if (base instanceof DerefSymbol) {\n lhs = ((DerefSymbol)base).toExpression();\n } else if (base instanceof AccessSymbol) {\n lhs = ((AccessSymbol)base).toExpression();\n } else if (base instanceof Identifier) {\n lhs = new Identifier(base);\n } else {\n PrintTools.printlnStatus(0,\n \"[WARNING] Unexpected access expression type\");\n return null;\n }\n rhs = new Identifier(member);\n return new AccessExpression(lhs, AccessOperator.MEMBER_ACCESS, rhs);\n }", "Expression addExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = multExpression();\r\n\t\twhile(isKind(OP_PLUS, OP_MINUS)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = multExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "ActivationExpression createActivationExpression();", "private Expression createExpression(String weightAmplifier) {\n if(StringUtils.isNotBlank(weightAmplifier)) {\n JexlEngine jexl = new JexlEngine();\n return jexl.createExpression(weightAmplifier);\n }\n return null;\n }", "public interface Unary extends Expr \n{\n /** Unary expression operator. */\n public static enum Operator {\n BIT_NOT (\"~\", true),\n NEG (\"-\", true),\n POST_INC (\"++\", false),\n POST_DEC (\"--\", false),\n PRE_INC (\"++\", true),\n PRE_DEC (\"--\", true),\n POS (\"+\", true),\n NOT (\"!\", true),\n CARET (\"^\", true),\n BAR (\"|\", true),\n AMPERSAND(\"&\", true),\n STAR (\"*\", true),\n SLASH (\"/\", true),\n PERCENT (\"%\", true);\n\n protected boolean prefix;\n protected String name;\n\n private Operator(String name, boolean prefix) {\n this.name = name;\n this.prefix = prefix;\n }\n\n /** Returns true of the operator is a prefix operator, false if\n * postfix. */\n public boolean isPrefix() { return prefix; }\n\n @Override public String toString() { return name; }\n }\n\n public static final Operator BIT_NOT = Operator.BIT_NOT;\n public static final Operator NEG = Operator.NEG;\n public static final Operator POST_INC = Operator.POST_INC;\n public static final Operator POST_DEC = Operator.POST_DEC;\n public static final Operator PRE_INC = Operator.PRE_INC;\n public static final Operator PRE_DEC = Operator.PRE_DEC;\n public static final Operator POS = Operator.POS;\n public static final Operator NOT = Operator.NOT;\n public static final Operator CARET = Operator.CARET;\n public static final Operator BAR = Operator.BAR;\n public static final Operator AMPERSAND = Operator.AMPERSAND;\n public static final Operator STAR = Operator.STAR;\n public static final Operator SLASH = Operator.SLASH;\n public static final Operator PERCENT = Operator.PERCENT;\n\n /** The sub-expression on that to apply the operator. */\n Expr expr();\n /** Set the sub-expression on that to apply the operator. */\n Unary expr(Expr e);\n\n /** The operator to apply on the sub-expression. */\n Operator operator();\n /** Set the operator to apply on the sub-expression. */\n Unary operator(Operator o);\n}", "ExpressionCalculPrimary getExpr();", "public String toString() {\n return m_expression;\n }", "BooleanExpression createBooleanExpression();", "BooleanExpression createBooleanExpression();", "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}", "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 }", "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}", "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}", "@Override\n public Expression asExpression(TokenValue<?> token, Deque<Value<Expression>> next) {\n Additive op = token.getValue(); // + | -\n // + is always followed by an argument\n Expression arg = next.pollFirst().getTarget(); // b argument\n Term<Additive> term = new Term<>(op, arg);\n return term;\n }", "InteractionFlowExpression createInteractionFlowExpression();", "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}", "ColumnOperand createColumnOperand();", "public Stmt createAssignment(Assign expr) {\n return createEval(expr);\n }", "public PathExpressionIF createPathExpression();", "Expression getValue();", "Expression getValue();", "private TreatExpression() {\r\n }", "public abstract XPathExpression getExpression();", "public Expression(String expr) {\n this.expr = expr;\n scalars = null;\n arrays = null;\n openingBracketIndex = null;\n closingBracketIndex = null;\n }", "public Expr getExpression()\n {\n Parser.validateExpr(expression, analysis);\n return expression;\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 }", "private Operation expression(Scope scope, Vector queue)\r\n {\r\n Operation root = expression1(scope, queue);\r\n\r\n if (assign.contains(nextSymbol))\r\n {\r\n Operation op = new Operation();\r\n\r\n op.left = root;\r\n\r\n op.operator = assignmentOperator();\r\n op.right = expression(scope, queue);\r\n\r\n root = op;\r\n }\r\n\r\n return root;\r\n }", "EvaluationResult evalExpression(ValueExp expr) { return evalExpression(expr, true); }", "@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}", "<C> RealLiteralExp<C> createRealLiteralExp();", "public String evaluate(String expression);", "@Override\n public String toString() {\n return \"(\" + getExpression1() + \" - \" + getExpression2() + \")\";\n }", "SubQueryOperand createSubQueryOperand();", "Unary expr(Expr e);", "public boolean isExpression (Object value);", "public String getExpressionString ()\n {\n return toStringToken ((String) getValue ());\n }", "public default Object expression() {\n\t\treturn info().values().iterator().next();\n\t}", "EnsureExprsRule createEnsureExprsRule();", "protected Expression buildExpression(RestrictExpression restrictor,String pathSpec){\n\t\tverifyParameters(restrictor, pathSpec);\n\n\t\tObject value = valueTranslator(restrictor.getValue());\t//For most cases we will need this value\n\t\t//Check all known operators, try to handle them\n\t\tswitch (restrictor.getOperator()){\n\t\tcase EQUAL_TO:\n\t\t\treturn ExpressionFactory.matchExp(pathSpec, value);\n\t\tcase NOT_EQUAL_TO:\n\t\t\treturn ExpressionFactory.noMatchExp(pathSpec, value);\n\t\tcase LESS_THAN:\n\t\t\treturn ExpressionFactory.lessExp(pathSpec, value);\n\t\tcase GREATER_THAN:\n\t\t\treturn ExpressionFactory.greaterExp(pathSpec, value);\n\t\tcase LESS_THAN_EQUAL_TO:\n\t\t\treturn ExpressionFactory.lessOrEqualExp(pathSpec, value);\n\t\tcase GREATER_THAN_EQUAL_TO:\n\t\t\treturn ExpressionFactory.greaterOrEqualExp(pathSpec, value);\n\t\tcase BETWEEN:\n\t\t\tif (restrictor.getValues().size()==2){\n\t\t\t\tIterator<Object> iter = restrictor.getValues().iterator();\n\t\t\t\treturn ExpressionFactory.betweenExp(pathSpec, valueTranslator(iter.next()), valueTranslator(iter.next()));\n\t\t\t}\n\t\tcase IN:\n\t\t\treturn ExpressionFactory.inExp(pathSpec, translateValues(restrictor.getValues()));\n\t\tcase LIKE:\n\t\t\treturn ExpressionFactory.likeExp(pathSpec, value);\n\t\tdefault:\n\t\t\treturn ExpressionFactory.expFalse();\n\t\t}\n\t}", "public interface Expression {\n public boolean interpret(String context);\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 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 }", "OrExpr createOrExpr();", "public static JRDesignExpression createExpression(String text, Class valueClass) {\n\t\tString valueClassName = null;\n\t\tif (valueClass != null) {\n\t\t\tvalueClassName = valueClass.getName();\n\t\t\tif (valueClass.isArray())\n\t\t\t\tvalueClassName = null;\n\t\t\telse if (valueClass.isArray())\n\t\t\t\tvalueClassName = null;\n\t\t\telse if (valueClass.isPrimitive())\n\t\t\t\tvalueClassName = null;\n\t\t}\n\t\treturn createExpression(text, valueClassName);\n\t}", "Expression getExpression(long id);", "public void setExpression(Object expression);", "@Test\n\tpublic void testBuildExpressionWithThreeArguments() {\n\t\t\n\t\tWord wordA = new Word(\"apple\", 1);\n\t\tWord wordB = new Word(\"car\", 1);\n\t\tWord wordC = new Word(\"roof\", 2);\n\t\t\n\t\tExpressionBuilder<Word> builder = new ExpressionBuilder<>();\n\t\tbuilder.append(null, wordA);\n\t\tbuilder.append(new AndOperator<Word>(), wordB);\n\t\tbuilder.append(new OrOperator<Word>(), wordC);\n\t\t\n\t\tExpression<Word> resultExpression = builder.getExpression();\n\t\t\n\t\tString expectedResult = \"((apple [1] AND car [1]) OR roof [2])\";\n\t\t\n\t\tSystem.out.println(resultExpression.evaluate());\n\t\tassertEquals(expectedResult, resultExpression.toString());\n\t\t\n\t}", "private IExpressionElement createExpression() throws RodinDBException {\n\t\tfinal IMachineRoot mch = createMachine(\"mch\");\n\t\treturn mch.createChild(IVariant.ELEMENT_TYPE, null, null);\n\t}", "public interface IExpressionRuntime\n{\n Object evaluate();\n}", "TupleExpr createTupleExpr();", "public String getExpression() {\n return _expression;\n }", "public abstract Expression getInitialExpression();", "public Expression() {\r\n }", "OpFunctionArgOperand createOpFunctionArgOperand();", "@Override public JannotTreeJCExpression getLeftOperand()\n{\n return createTree(getNode().getLeftOperand()); \n}" ]
[ "0.836227", "0.77278554", "0.73525786", "0.7309297", "0.7150978", "0.7100401", "0.7068341", "0.69350326", "0.69350326", "0.69350326", "0.69350326", "0.6912968", "0.6820807", "0.67453295", "0.67327577", "0.67096615", "0.66633844", "0.6595602", "0.65906715", "0.6553662", "0.653397", "0.653397", "0.65289617", "0.6507422", "0.64948636", "0.64075536", "0.6403313", "0.6377898", "0.63699234", "0.63427794", "0.62668794", "0.6263724", "0.62538797", "0.6248443", "0.6223884", "0.6210383", "0.6198112", "0.61931366", "0.6184679", "0.61538804", "0.61469495", "0.6142925", "0.6138368", "0.610795", "0.6106881", "0.6056022", "0.6051889", "0.60370296", "0.60343355", "0.60246396", "0.59662104", "0.5962886", "0.593646", "0.5918426", "0.5918426", "0.5905918", "0.5904989", "0.59045696", "0.5904487", "0.5894172", "0.58827186", "0.5867449", "0.5852972", "0.5844825", "0.58114403", "0.5807966", "0.5807966", "0.57956666", "0.57801527", "0.5772495", "0.5746556", "0.5741929", "0.57274675", "0.57148343", "0.5711125", "0.5704597", "0.5704528", "0.57017916", "0.56992245", "0.569876", "0.56956166", "0.5682109", "0.5681296", "0.5677862", "0.56657094", "0.5664468", "0.56634164", "0.56613517", "0.5660635", "0.5657121", "0.5654114", "0.5651787", "0.5647538", "0.56404185", "0.56389695", "0.56256175", "0.5620855", "0.5614546", "0.56111425", "0.5608663", "0.5606566" ]
0.0
-1
Shorthand for creating expressions
public ExpressionSearch and(Search srch) { return new ExpressionSearch(true).addOps(this, srch); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Expression createExpression();", "Expr createExpr();", "JavaExpression createJavaExpression();", "Expr expr();", "ExpOperand createExpOperand();", "FullExpression createFullExpression();", "public Object getExpression();", "Expression getExpression();", "Expression getExpression();", "Expression getExpression();", "Expression getExpression();", "Expression() { }", "Expression getExp();", "NumericExpression createNumericExpression();", "public abstract Expression generateExpression(GenerationContext context);", "private Expr expression() {\n return assignment();\n }", "XExpr createXExpr();", "public Stmt createEval(Expr expr) {\n return xnf.Eval(expr.position(), expr);\n }", "public Expression asExpression() {\n switch (TYPE) {\n case EXPRESSION:\n return EXPRESSION;\n case IDENTIFIER:\n return new Variable(VALUE);\n case LITERAL:\n if (VALUE.matches(\"\\\\d+\")) {\n return new LInteger(Integer.parseInt(VALUE));\n } else if (VALUE.equals(\"true\") || VALUE.equals(\"false\")) {\n return LBoolean.resolve(VALUE.equals(\"true\"));\n } else if (VALUE.equals(\"null\")) {\n return LNull.NULL;\n } else {\n return new LString(VALUE);\n }\n default:\n throw ErrorLog.get(\"Unexpected symbol '%s'\", VALUE);\n }\n }", "StringExpression createStringExpression();", "String getExpression();", "String getExpression();", "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 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 static JRDesignExpression createExpression(String text) {\n\t\treturn createExpression(text, (String) null);\n\t}", "Expr getExpr();", "@Override\n public String toString() {\n return \"Expression\";\n }", "DExpression getExpression();", "Operand createOperand();", "ParenthesisExpr createParenthesisExpr();", "com.google.type.Expr getCelExpression();", "public T expr(final String expr, final Object... values) {\r\n\t\treturn op(ConditionValueType.EXPRESSION, concatenate(expr, values));\r\n\t}", "VariableExp createVariableExp();", "LogicExpression getExpr();", "XExpression getExpression();", "public interface Expression {\n\t\n\t/**\n\t * Evaluates an arithmetic expression.\n\t * \n\t * @return the value to which this expression evaluates\n\t */\n\tdouble eval();\n\t\n\t/**\n\t * Creates a String representation of an arithmetic expression.\n\t * \n\t * @return this expression in standard form, suitable for inclusion\n\t * in a program or text document (e.g., \"(2 - 4 * (7 + 2))\"). Note\n\t * that the string can have \"unnecessary\" parentheses as this (toy)\n\t * system does not know about operator precedence. \n\t */\n\tString toString();\n\n}", "Operands createOperands();", "ExpressionInOcl createExpressionInOcl();", "public Object eval (Object expression);", "public static Expression getExpression(Object value) {\n\t\tif (isBool(value)) {\n\t\t\treturn IrFactory.eINSTANCE.createExprBool((Boolean) value);\n\t\t} else if (isFloat(value)) {\n\t\t\treturn IrFactory.eINSTANCE.createExprFloat((BigDecimal) value);\n\t\t} else if (isInt(value)) {\n\t\t\treturn IrFactory.eINSTANCE.createExprInt((BigInteger) value);\n\t\t} else if (isString(value)) {\n\t\t\treturn IrFactory.eINSTANCE.createExprString((String) value);\n\t\t} else if (isList(value)) {\n\t\t\tExprList list = IrFactory.eINSTANCE.createExprList();\n\t\t\tint length = Array.getLength(value);\n\t\t\tfor (int i = 0; i < length; i++) {\n\t\t\t\tlist.getValue().add(getExpression(Array.get(value, i)));\n\t\t\t}\n\t\t\treturn list;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "RealLiteralExp createRealLiteralExp();", "private Equation createEquation() throws MainApplicationException {\r\n\t\tEquation equation = new Equation(false,\r\n\t\t\t\t\"a+b=c\", \r\n\t\t\t\tfalse, \r\n\t\t\t\tnew Parametre(), \r\n\t\t\t\t\"Insérer Propriété\",\r\n\t\t\t\t\"Insérer commentaire\");\r\n\t\tequation.setIsModifiable(true);\r\n\t\treturn equation;\r\n\t}", "ExprRule createExprRule();", "Lexpr createLexpr();", "ConditionalExpression createConditionalExpression();", "private Clause make(Literal... e) {\n Clause c = new Clause();\n for (int i = 0; i < e.length; ++i) {\n c = c.add(e[i]);\n }\n return c;\n }", "private Expression toExpression() {\n Expression lhs = null, rhs = null;\n if (base instanceof DerefSymbol) {\n lhs = ((DerefSymbol)base).toExpression();\n } else if (base instanceof AccessSymbol) {\n lhs = ((AccessSymbol)base).toExpression();\n } else if (base instanceof Identifier) {\n lhs = new Identifier(base);\n } else {\n PrintTools.printlnStatus(0,\n \"[WARNING] Unexpected access expression type\");\n return null;\n }\n rhs = new Identifier(member);\n return new AccessExpression(lhs, AccessOperator.MEMBER_ACCESS, rhs);\n }", "Expression addExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = multExpression();\r\n\t\twhile(isKind(OP_PLUS, OP_MINUS)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = multExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "ActivationExpression createActivationExpression();", "private Expression createExpression(String weightAmplifier) {\n if(StringUtils.isNotBlank(weightAmplifier)) {\n JexlEngine jexl = new JexlEngine();\n return jexl.createExpression(weightAmplifier);\n }\n return null;\n }", "public interface Unary extends Expr \n{\n /** Unary expression operator. */\n public static enum Operator {\n BIT_NOT (\"~\", true),\n NEG (\"-\", true),\n POST_INC (\"++\", false),\n POST_DEC (\"--\", false),\n PRE_INC (\"++\", true),\n PRE_DEC (\"--\", true),\n POS (\"+\", true),\n NOT (\"!\", true),\n CARET (\"^\", true),\n BAR (\"|\", true),\n AMPERSAND(\"&\", true),\n STAR (\"*\", true),\n SLASH (\"/\", true),\n PERCENT (\"%\", true);\n\n protected boolean prefix;\n protected String name;\n\n private Operator(String name, boolean prefix) {\n this.name = name;\n this.prefix = prefix;\n }\n\n /** Returns true of the operator is a prefix operator, false if\n * postfix. */\n public boolean isPrefix() { return prefix; }\n\n @Override public String toString() { return name; }\n }\n\n public static final Operator BIT_NOT = Operator.BIT_NOT;\n public static final Operator NEG = Operator.NEG;\n public static final Operator POST_INC = Operator.POST_INC;\n public static final Operator POST_DEC = Operator.POST_DEC;\n public static final Operator PRE_INC = Operator.PRE_INC;\n public static final Operator PRE_DEC = Operator.PRE_DEC;\n public static final Operator POS = Operator.POS;\n public static final Operator NOT = Operator.NOT;\n public static final Operator CARET = Operator.CARET;\n public static final Operator BAR = Operator.BAR;\n public static final Operator AMPERSAND = Operator.AMPERSAND;\n public static final Operator STAR = Operator.STAR;\n public static final Operator SLASH = Operator.SLASH;\n public static final Operator PERCENT = Operator.PERCENT;\n\n /** The sub-expression on that to apply the operator. */\n Expr expr();\n /** Set the sub-expression on that to apply the operator. */\n Unary expr(Expr e);\n\n /** The operator to apply on the sub-expression. */\n Operator operator();\n /** Set the operator to apply on the sub-expression. */\n Unary operator(Operator o);\n}", "ExpressionCalculPrimary getExpr();", "public String toString() {\n return m_expression;\n }", "BooleanExpression createBooleanExpression();", "BooleanExpression createBooleanExpression();", "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}", "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 }", "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}", "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}", "@Override\n public Expression asExpression(TokenValue<?> token, Deque<Value<Expression>> next) {\n Additive op = token.getValue(); // + | -\n // + is always followed by an argument\n Expression arg = next.pollFirst().getTarget(); // b argument\n Term<Additive> term = new Term<>(op, arg);\n return term;\n }", "InteractionFlowExpression createInteractionFlowExpression();", "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}", "ColumnOperand createColumnOperand();", "public Stmt createAssignment(Assign expr) {\n return createEval(expr);\n }", "public PathExpressionIF createPathExpression();", "Expression getValue();", "Expression getValue();", "private TreatExpression() {\r\n }", "public abstract XPathExpression getExpression();", "public Expression(String expr) {\n this.expr = expr;\n scalars = null;\n arrays = null;\n openingBracketIndex = null;\n closingBracketIndex = null;\n }", "public Expr getExpression()\n {\n Parser.validateExpr(expression, analysis);\n return expression;\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 }", "private Operation expression(Scope scope, Vector queue)\r\n {\r\n Operation root = expression1(scope, queue);\r\n\r\n if (assign.contains(nextSymbol))\r\n {\r\n Operation op = new Operation();\r\n\r\n op.left = root;\r\n\r\n op.operator = assignmentOperator();\r\n op.right = expression(scope, queue);\r\n\r\n root = op;\r\n }\r\n\r\n return root;\r\n }", "EvaluationResult evalExpression(ValueExp expr) { return evalExpression(expr, true); }", "@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}", "<C> RealLiteralExp<C> createRealLiteralExp();", "public String evaluate(String expression);", "@Override\n public String toString() {\n return \"(\" + getExpression1() + \" - \" + getExpression2() + \")\";\n }", "SubQueryOperand createSubQueryOperand();", "Unary expr(Expr e);", "public boolean isExpression (Object value);", "public String getExpressionString ()\n {\n return toStringToken ((String) getValue ());\n }", "public default Object expression() {\n\t\treturn info().values().iterator().next();\n\t}", "EnsureExprsRule createEnsureExprsRule();", "protected Expression buildExpression(RestrictExpression restrictor,String pathSpec){\n\t\tverifyParameters(restrictor, pathSpec);\n\n\t\tObject value = valueTranslator(restrictor.getValue());\t//For most cases we will need this value\n\t\t//Check all known operators, try to handle them\n\t\tswitch (restrictor.getOperator()){\n\t\tcase EQUAL_TO:\n\t\t\treturn ExpressionFactory.matchExp(pathSpec, value);\n\t\tcase NOT_EQUAL_TO:\n\t\t\treturn ExpressionFactory.noMatchExp(pathSpec, value);\n\t\tcase LESS_THAN:\n\t\t\treturn ExpressionFactory.lessExp(pathSpec, value);\n\t\tcase GREATER_THAN:\n\t\t\treturn ExpressionFactory.greaterExp(pathSpec, value);\n\t\tcase LESS_THAN_EQUAL_TO:\n\t\t\treturn ExpressionFactory.lessOrEqualExp(pathSpec, value);\n\t\tcase GREATER_THAN_EQUAL_TO:\n\t\t\treturn ExpressionFactory.greaterOrEqualExp(pathSpec, value);\n\t\tcase BETWEEN:\n\t\t\tif (restrictor.getValues().size()==2){\n\t\t\t\tIterator<Object> iter = restrictor.getValues().iterator();\n\t\t\t\treturn ExpressionFactory.betweenExp(pathSpec, valueTranslator(iter.next()), valueTranslator(iter.next()));\n\t\t\t}\n\t\tcase IN:\n\t\t\treturn ExpressionFactory.inExp(pathSpec, translateValues(restrictor.getValues()));\n\t\tcase LIKE:\n\t\t\treturn ExpressionFactory.likeExp(pathSpec, value);\n\t\tdefault:\n\t\t\treturn ExpressionFactory.expFalse();\n\t\t}\n\t}", "public interface Expression {\n public boolean interpret(String context);\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 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 }", "OrExpr createOrExpr();", "public static JRDesignExpression createExpression(String text, Class valueClass) {\n\t\tString valueClassName = null;\n\t\tif (valueClass != null) {\n\t\t\tvalueClassName = valueClass.getName();\n\t\t\tif (valueClass.isArray())\n\t\t\t\tvalueClassName = null;\n\t\t\telse if (valueClass.isArray())\n\t\t\t\tvalueClassName = null;\n\t\t\telse if (valueClass.isPrimitive())\n\t\t\t\tvalueClassName = null;\n\t\t}\n\t\treturn createExpression(text, valueClassName);\n\t}", "Expression getExpression(long id);", "public void setExpression(Object expression);", "@Test\n\tpublic void testBuildExpressionWithThreeArguments() {\n\t\t\n\t\tWord wordA = new Word(\"apple\", 1);\n\t\tWord wordB = new Word(\"car\", 1);\n\t\tWord wordC = new Word(\"roof\", 2);\n\t\t\n\t\tExpressionBuilder<Word> builder = new ExpressionBuilder<>();\n\t\tbuilder.append(null, wordA);\n\t\tbuilder.append(new AndOperator<Word>(), wordB);\n\t\tbuilder.append(new OrOperator<Word>(), wordC);\n\t\t\n\t\tExpression<Word> resultExpression = builder.getExpression();\n\t\t\n\t\tString expectedResult = \"((apple [1] AND car [1]) OR roof [2])\";\n\t\t\n\t\tSystem.out.println(resultExpression.evaluate());\n\t\tassertEquals(expectedResult, resultExpression.toString());\n\t\t\n\t}", "private IExpressionElement createExpression() throws RodinDBException {\n\t\tfinal IMachineRoot mch = createMachine(\"mch\");\n\t\treturn mch.createChild(IVariant.ELEMENT_TYPE, null, null);\n\t}", "public interface IExpressionRuntime\n{\n Object evaluate();\n}", "TupleExpr createTupleExpr();", "public String getExpression() {\n return _expression;\n }", "public abstract Expression getInitialExpression();", "public Expression() {\r\n }", "OpFunctionArgOperand createOpFunctionArgOperand();", "@Override public JannotTreeJCExpression getLeftOperand()\n{\n return createTree(getNode().getLeftOperand()); \n}" ]
[ "0.836227", "0.77278554", "0.73525786", "0.7309297", "0.7150978", "0.7100401", "0.7068341", "0.69350326", "0.69350326", "0.69350326", "0.69350326", "0.6912968", "0.6820807", "0.67453295", "0.67327577", "0.67096615", "0.66633844", "0.6595602", "0.65906715", "0.6553662", "0.653397", "0.653397", "0.65289617", "0.6507422", "0.64948636", "0.64075536", "0.6403313", "0.6377898", "0.63699234", "0.63427794", "0.62668794", "0.6263724", "0.62538797", "0.6248443", "0.6223884", "0.6210383", "0.6198112", "0.61931366", "0.6184679", "0.61538804", "0.61469495", "0.6142925", "0.6138368", "0.610795", "0.6106881", "0.6056022", "0.6051889", "0.60370296", "0.60343355", "0.60246396", "0.59662104", "0.5962886", "0.593646", "0.5918426", "0.5918426", "0.5905918", "0.5904989", "0.59045696", "0.5904487", "0.5894172", "0.58827186", "0.5867449", "0.5852972", "0.5844825", "0.58114403", "0.5807966", "0.5807966", "0.57956666", "0.57801527", "0.5772495", "0.5746556", "0.5741929", "0.57274675", "0.57148343", "0.5711125", "0.5704597", "0.5704528", "0.57017916", "0.56992245", "0.569876", "0.56956166", "0.5682109", "0.5681296", "0.5677862", "0.56657094", "0.5664468", "0.56634164", "0.56613517", "0.5660635", "0.5657121", "0.5654114", "0.5651787", "0.5647538", "0.56404185", "0.56389695", "0.56256175", "0.5620855", "0.5614546", "0.56111425", "0.5608663", "0.5606566" ]
0.0
-1
Compiles a search structure from a search string
public Search createSearch(String searchText) { StringBuilder sb = new StringBuilder(searchText); trim(sb); Search current = null; while(sb.length() > 0) { boolean not = false; if(sb.length() > 1 && lower(sb.charAt(0)) == 'o' && lower(sb.charAt(1)) == 'r') { // OR operator sb.delete(0, 2); ExpressionSearch exp = exp(false); exp.add(current); current = exp; trim(sb); continue; } else if(sb.length() > 2 && lower(sb.charAt(0)) == 'a' && lower(sb.charAt(1)) == 'n' && lower(sb.charAt(2)) == 'd') { sb.delete(0, 3); trim(sb); } else if(sb.length() > 1 && sb.charAt(0) == '!') { sb.delete(0, 1); trim(sb); not = true; } Search next; if(sb.charAt(0) == '(') { int c = goPastParen(sb, 0); String nextExpr = sb.substring(1, c).trim(); if(nextExpr.length() == 0) throw new IllegalArgumentException("Empty parenthetical expression"); next = createSearch(nextExpr); sb.delete(0, c + 1); } else next = parseNext(sb); if(not) { NotSearch notS = not(); notS.setOperand(next); next = notS; } if(current instanceof ExpressionSearch && ((ExpressionSearch) current).getOperandCount() == 1) ((ExpressionSearch) current).add(next); else if(current != null) { ExpressionSearch exp = exp(true); exp.addOps(current, next); current = exp; } else current = next; trim(sb); } if(current instanceof ExpressionSearch) ((ExpressionSearch) current).simplify(); return current; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Search create(String search, SearchBuilder builder);", "public MagicSearch createMagicSearch();", "public void parseQueryStringAndSearch(String searchString) {\n char[] chars = searchString.toCharArray();\n for (int i = 0; i < chars.length; i++) {\n Queue<Character> queue;\n int k;\n if (Character.isDigit(chars[i])) {\n k = Integer.parseInt(String.valueOf(chars[i]));\n i++;\n queue = new LinkedList<>();\n while (i < chars.length && chars[i] != ')') {\n queue.add(chars[i]);\n i++;\n }\n i++;\n String query = queryToString(queue);\n String[] terms = query.split(\" \");\n //System.out.println(query + \" and k: \" + k);\n positionIntersects(indexMap.get(analyzeTerm(terms[0])), indexMap.get(analyzeTerm(terms[1])), k);\n } else {\n queue = new LinkedList<>();\n while (i < chars.length && !Character.isDigit(chars[i])) {\n queue.add(chars[i]);\n i++;\n }\n i--;\n String query = queryToString(queue);\n String[] terms = query.trim().split(\" \");\n termQuerySearch(terms);\n }\n\n }\n\n }", "public List<Product> search(String searchString);", "public static interface SearchType\n\t{\n\t\t/**\n\t\t * Creates a search of this type with the given query\n\t\t * \n\t\t * @param search The search query\n\t\t * @param builder The search builder that is compiling the search\n\t\t * @return The compiled search object representing the given query\n\t\t */\n\t\tpublic abstract Search create(String search, SearchBuilder builder);\n\n\t\t/** @return All headers that may begin a search of this type */\n\t\tpublic abstract String [] getHeaders();\n\t}", "List<PilotContainer> Search(String cas, String word);", "List<DataTerm> search(String searchTerm);", "public abstract Search defaultSearch(StringBuilder sb);", "public BuildHeaderSearchString() { }", "@In String search();", "public String makeQuery(String searchTerms) {\n\t\tfinal StringBuffer query = new StringBuffer();\n\t\tfinal Matcher m = Pattern.compile(\"\\\\{([^}]*)\\\\}\").matcher(Template);\n\t\twhile (m.find()) {\n\t\t\tString name = m.group(1);\n\t\t\tif (name == null || name.length() == 0 || name.contains(\":\")) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tfinal boolean optional = name.endsWith(\"?\");\n\t\t\tif (optional) {\n\t\t\t\tname = name.substring(0, name.length() - 1);\n\t\t\t}\n\t\t\tname = name.intern();\n\t\t\tif (name == \"searchTerms\") {\n\t\t\t\tm.appendReplacement(query, searchTerms);\n\t\t\t} else if (name == \"count\") {\n\t\t\t\tm.appendReplacement(query, String.valueOf(ItemsPerPage));\n\t\t\t} else if (optional) {\n\t\t\t\tm.appendReplacement(query, \"\");\n\t\t\t} else if (name == \"startIndex\") {\n\t\t\t\tif (IndexOffset > 0) {\n\t\t\t\t\tm.appendReplacement(query, String.valueOf(IndexOffset));\n\t\t\t\t} else {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t} else if (name == \"startPage\") {\n\t\t\t\tif (PageOffset > 0) {\n\t\t\t\t\tm.appendReplacement(query, String.valueOf(PageOffset));\n\t\t\t\t} else {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t} else if (name == \"language\") {\n\t\t\t\tm.appendReplacement(query, \"*\");\n\t\t\t} else if (name == \"inputEncoding\" || name == \"outputEncoding\") {\n\t\t\t\tm.appendReplacement(query, \"UTF-8\");\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\tm.appendTail(query);\n\t\treturn query.toString();\n\t}", "public SearchResult search(String text, String subText);", "List<Block> search(String searchTerm);", "private Search() {}", "@Override\n public List<Document> search(String string)\n { \n ArrayList<ArrayList> data = new ArrayList<ArrayList>();\n data.add(new ArrayList<Document>()); //documents\n data.add(new ArrayList<Double>()); //relevance\n data.add(new ArrayList<Integer>()); //occurrence\n data.add(new ArrayList<Integer>()); //popularity\n \n ParseTree tree = new ParseTree(this);\n \n String inputarray[]= StringUtils.split(string); //Splits the query on \" \" \n if(inputarray.length == 0)\n {\n errorMsg();\n return null;\n }\n \n for(int i = 0; i<inputarray.length; i++) //Inserts the operators/operands in the parsetree.\n {\n tree.insert(inputarray[i]);\n }\n data = tree.execute(); //executes the parsetree (the difference operations\n //are executed and data is returned.\n this.infix = tree.getInfix(); //gets the infix-notation.\n\n if(data != null)\n {\n return data.get(0);\n }\n return null;\n }", "public List<Ve> searchVe(String maSearch);", "CampusSearchQuery generateQuery();", "public Search(String value) {\n this(value, false);\n }", "List<Card> search(String searchString) throws PersistenceCoreException;", "Search getSearch();", "public static String search(String obj) {\n\t\tMap<String, Object> map = objectMapper.parser().parseMap(obj);\n\t\tif (map.keySet().containsAll(reqQuery)){\n\t\t\treturn objectMapper.toJson(ValueIndexEngine.search(map));\n\t\t}\n\t\treturn badresp;\n\t}", "public Search parseNext(StringBuilder sb)\n\t\t{\n\t\t\tfor(SearchType type : getAllTypes())\n\t\t\t{\n\t\t\t\tfor(String header : type.getHeaders())\n\t\t\t\t{\n\t\t\t\t\tif(sb.length() < header.length())\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tboolean hasHeader = true;\n\t\t\t\t\tint c;\n\t\t\t\t\tfor(c = 0; c < header.length(); c++)\n\t\t\t\t\t\tif(lower(sb.charAt(c)) != header.charAt(c))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\thasHeader = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\tif(hasHeader)\n\t\t\t\t\t{\n\t\t\t\t\t\ttrim(sb);\n\t\t\t\t\t\tfor(; c < sb.length(); c++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(Character.isWhitespace(sb.charAt(c)))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\telse if(sb.charAt(c) == '\\\"')\n\t\t\t\t\t\t\t\tc = goPastQuote(sb, c);\n\t\t\t\t\t\t\telse if(sb.charAt(c) == '(')\n\t\t\t\t\t\t\t\tc = goPastParen(sb, c);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSearch ret = type.create(sb.substring(0, c), this);\n\t\t\t\t\t\tsb.delete(0, c + 1);\n\t\t\t\t\t\treturn ret;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn defaultSearch(sb);\n\t\t}", "public void buildPredicate(String s){\n\t\tint i = s.indexOf(\"(\");\n\t\tif(i>0){\n\t\t\tname = s.substring(0, i);\n\t\t\tStringTokenizer st = new StringTokenizer(s.substring(i),\"(),\");\n\t\t\twhile(st.hasMoreTokens()){\n\t\t\t\tString tok = st.nextToken();\n\t\t\t\tVarTerm vt = new VarTerm(tok);\n\t\t\t\taddTerm(vt);\n\t\t\t}\n\t\t}\n\t}", "List<Corretor> search(String query);", "@Override\n\tpublic String build(String input) {\n\t\tString station = input;\n\t\tstation = normalizeStationName(station);\n\n\t\t//build default result\n\t\tJSONObject itemResultJSON = new JSONObject();\n\t\t\tJSON.add(itemResultJSON, InterviewData.INPUT, input);\n\t\t\tJSON.add(itemResultJSON, InterviewData.VALUE, station);\n\t\t\tJSON.add(itemResultJSON, InterviewData.CACHE_ENTRY, (radioStationsMap.containsKey(station))? station : \"\");\n\t\t\t//TODO: we should make a real \"search\" inside the stations map via name parameter and fuzzy matching\n\t\t\n\t\tbuildSuccess = true;\n\t\treturn itemResultJSON.toJSONString();\n\t}", "void searchProbed (Search search);", "public void buildSearcher() throws IOException {\n IndexReader rdr = DirectoryReader.open(FSDirectory.open(new File(indexDir).toPath()));\n searcher = new IndexSearcher(rdr);\n parser = new QueryParser(\"text\", new StandardAnalyzer());\n }", "public abstract Solution<T> search(Searchable<T> s);", "public List search(String str) {\n List searchList = new ArrayList();\n try {\n //set the scanner to the entire bible file\n scan = new Scanner(new File(\"kjvdat.txt\"));\n //set the regex pattern with the search string\n Pattern p = Pattern.compile(\"(\" + str + \")\");\n //scan through the entire verses for the search parameter\n while (scan.hasNext()) {\n String txt = scan.nextLine();\n Matcher m = p.matcher(txt);\n if (m.find()) {\n //insert verses that are found into the searchlist\n searchList.add(txt.substring(0, txt.length() - 1));\n }\n }\n\n } catch (FileNotFoundException ex) {\n Logger.getLogger(Finder.class.getName()).log(Level.SEVERE, null, ex);\n }\n //return list of all verses found containing the search parameter\n scan.close();\n return searchList;\n }", "String printListSearch(String searchString);", "static String search(String sentence) {\r\n\t\tString result = null;\r\n\t\tif (sentence.contains(\"search\")) {\r\n\t\t\tint index = sentence.indexOf(\"search\");\r\n\t\t\tString search = sentence.substring(index + 6);\r\n\t\t\tresult = googleSearch(search);\r\n\t\t} else if (sentence.contains(\"find\")) {\r\n\t\t\tint index = sentence.indexOf(\"find\");\r\n\t\t\tString search = sentence.substring(index + 6);\r\n\t\t\tresult = googleSearch(search);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "void search();", "void search();", "private ReoFile<T> findComponent(String component) throws IOException {\n\t\t\n\t\tReoFile<T> prog = null;\n\t\t\n\t\tint k = component.lastIndexOf('.') + 1;\n\t\tString name = component.substring(k);\n\t\tString directory = component.substring(0, k).replace('.', File.separatorChar);\n\t\tString cp1 = directory + name + \".\" + semantics + \".treo\";\n\t\tString cp2 = directory + name + \".treo\";\n\t\n\tsearch:\n\t\tfor (String dir : dirs) {\n\t\t\t\n\t\t\t// Check if this directory contains a .zip file.\n\t\t\tFile folder = new File(dir);\n\t\t\tif (folder.exists() && folder.isDirectory()) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tFilenameFilter archiveFilter = new FilenameFilter() {\n\t\t\t\t\tpublic boolean accept(File dir, String name) {\n\t\t\t\t\t\treturn name.toLowerCase().endsWith(\".zip\");\n\t\t\t\t\t}\n\t\t\t\t};\t\n\t\t\t\t\n\t\t\t\tFile[] files = folder.listFiles(archiveFilter);\n\t\t\t\tfor (File file : files) {\t\t\t\n\t\t\t\t\tif (!file.isDirectory()) {\n\t\t\t\t\t ZipFile zipFile = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t zipFile = new ZipFile(file.getPath());\n\t\t\t\t\t\t ZipEntry entry1 = zipFile.getEntry(cp1);\n\t\t\t\t\t\t ZipEntry entry2 = zipFile.getEntry(cp2);\n\t\t\t\t\t\t if (entry1 != null) {\n\t\t\t\t\t\t \tInputStream input = zipFile.getInputStream(entry1);\n\t\t\t\t\t\t \tprog = parse(new ANTLRInputStream(input));\n\t\t\t\t\t\t\t\tbreak search;\n\t\t\t\t\t\t } else if (entry2 != null) {\n\t\t\t\t\t\t \tInputStream input = zipFile.getInputStream(entry2);\n\t\t\t\t\t\t \tprog = parse(new ANTLRInputStream(input));\n\t\t\t\t\t\t\t\tbreak search;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\ttry { if (zipFile != null) zipFile.close(); } catch(IOException e) { }\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\n\t\t\tFile f1 = new File(dir + File.separator + cp1);\n\t\t\tif (f1.exists() && !f1.isDirectory()) {\n\t\t\t\tprog = parse(new ANTLRFileStream(dir + File.separator + cp1));\n\t\t\t\tbreak search;\n\t\t\t}\n\n\t\t\tFile f2 = new File(dir + File.separator + cp2);\n\t\t\tif (f2.exists() && !f2.isDirectory()) {\n\t\t\t\tprog = parse(new ANTLRFileStream(dir + File.separator + cp2));\n\t\t\t\tbreak search;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn prog;\n\t}", "public interface Analyzer {\n\n Map<String, List<Integer>> search(StringBuffer text, String... pattern);\n}", "public void search(Map<String, String> searchParam);", "public String buildFilterString(SearchCriteria search){\n System.out.println(search);\n\n int i = 0;\n if(search.getTitle().equals(\"title\")){\n i++;\n }\n if(search.getAuthor().equals(\"author\")){\n i++;\n }\n if(search.getPublisher().equals(\"publisher\")){\n i++;\n }\n if(search.getLanguage().equals(\"language\")){\n i++;\n }\n if(search.getFormat().equals(\"format\")){\n i++;\n }\n if(search.getIsbn10().equals(\"isbn10\")){\n i++;\n }\n if(search.getIsbn13().equals(\"isbn13\")){\n i++;\n }\n\n String filter = \"SELECT * from testdb.book WHERE\";\n System.out.println(filter);\n System.out.println(\"number of filters \" + i);\n if(search.getTitle().equals(\"title\")){\n i--;\n System.out.println(filter);\n\n filter += \" title LIKE '%\" + search.getSearch() + \"%'\";\n if(i>0){\n\n filter += \" OR\";\n\n }\n }\n if(search.getAuthor().equals(\"author\")){\n i--;\n filter += \" author LIKE '%\" + search.getSearch() + \"%'\";\n if(i>0){\n\n filter += \" OR\";\n\n }\n }\n if(search.getPublisher().equals(\"publisher\")){\n i--;\n filter += \" publisher LIKE '%\" + search.getSearch() + \"%'\";\n if(i>0){\n filter +=\" OR\";\n\n }\n }\n if(search.getLanguage().equals(\"language\")){\n i--;\n filter += \" language LIKE '%\" + search.getSearch() + \"%'\";\n if(i>0){\n filter += \" OR\";\n }\n }\n if(search.getFormat().equals(\"format\")){\n i--;\n filter += \" format LIKE '%\" + search.getSearch() + \"%'\";\n if(i>0){\n filter += \" OR\";\n }\n }\n if(search.getIsbn10().equals(\"isbn10\")){\n i--;\n filter += \" isbn10 LIKE '%\" + search.getSearch() + \"%'\";\n if(i>0){\n filter += \" OR\";\n }\n }\n if(search.getIsbn13().equals(\"isbn13\")){\n\n filter += \" isbn13 LIKE '%\" + search.getSearch() + \"%'\";\n\n }\n System.out.println(\"END \" + filter);\n return filter;\n }", "private void constructSearchingQueryIfScanIsValid(){\n\t\t//todo: test roll back \n\t\t//String scanContent = scanningResult.getContents();\n\t\t//String scanFormat = scanningResult.getFormatName();\n\t\t\n\t\t//todo: test need delete\n\t\tString scanContent = \"9781430247883\";\n\t\tString scanFormat = \"EAN_13\";\n\t\tif(GoogleApiConverter.isScanFormatMatching(scanContent, scanFormat)){\n\t\t\tString bookSearchString = GoogleApiConverter.formateBookApiSearchQuery(scanContent);\n\t\t\tnew GetBookInfo().execute(bookSearchString);\n\t\t}\n\t\telse{\n\t\t\tToastExceptions.onShowException(this, \"Not a valid scan!\");\n\t\t}\n\t}", "public MyAnnotator(String name, Properties props){\r\n sch = props.getProperty(\"Search.string\",\"the\"); //gets search string if specified, else defaults to \"the\"\r\n }", "private void invoke(String searchStr) {\n String userInput = concatWithNewLineFeed(searchStr,replacementStr,srcFile.getAbsolutePath(),destFile.getAbsolutePath());\n System.setIn(new ByteArrayInputStream(userInput.getBytes()));\n FindAndReplace.main(null);\n }", "public search() {\n }", "public String SearchString(String search) {\n\t\tStringQueryDefinition query = queryMgr.newStringDefinition();\n\t\tquery.setCriteria(search);\n\n\t\t// create a handle for the search results\n\t\tStringHandle resultsHandle = new StringHandle();\n\n\t\t// run the search\n\t\tqueryMgr.search(query, resultsHandle);\n\n\t\t// release the client\n\t\tclient.release();\n\t\t\n\t\treturn resultsHandle.toString();\n\t}", "SearchResponse search(SearchRequest searchRequest) throws IOException;", "List<ResultDTO> search(String query);", "abstract public void search();", "public void search() {\n boolean validate = true;\n code = \"\";\n Node<Product> p = null;\n System.out.print(\"Product code to search: \");\n while (validate) {\n code = s.nextLine();\n if (Validation.validateString(code)) {\n p = tree.search(code);\n validate = false;\n } else {\n System.err.println(\"Code must be required!\");\n System.err.print(\"Enter product code again: \");\n\n }\n }\n if (p != null) {\n System.out.println(\"Information of product code \" + p.info.getCode());\n tree.visit(p);\n } else {\n System.err.println(\"The product code \" + code + \" is not exist!\");\n }\n }", "public abstract HashMap search(String keyword);", "TSearchResults createSearchResults(TSearchQuery searchQuery);", "public abstract List<CustomerType> findCustomerTypebyCustomerTypeNumber(String searchString);", "List<TypePatientPropertyCondition> search(String query);", "SearchResultCompany search(String keywords);", "List<Cemetery> search(String query);", "List<SearchResult> search(SearchQuery searchQuery);", "public Search(Connection con, String inpt) {\n index = 0;\n conn = con;\n results = new ArrayList<>();\n input = inpt;\n query(conn, input);\n }", "public SearchHandle SearchStringHandler(String search) {\n\t\tStringQueryDefinition query = queryMgr.newStringDefinition();\n\t\tquery.setCriteria(search);\n\n\t\t// create a handle for the search results\n\t\tSearchHandle resultsHandle = new SearchHandle();\n\n\t\t// run the search\n\t\tqueryMgr.search(query, resultsHandle);\n\n\t\t// release the client\n\t\tclient.release();\n\t\t\n\t\treturn resultsHandle;\n\t}", "public void doSearch(String searchText){\n }", "@Test\n\tvoid testAddAndSearchWordDataStructureDesign() {\n\t\tAddAndSearchWordDataStructureDesign dict = new AddAndSearchWordDataStructureDesign();\n\t\tdict.addWord(\"bad\");\n\t\tdict.addWord(\"dad\");\n\t\tdict.addWord(\"mad\");\n\t\tassertFalse(dict.search(\"pad\"));\n\t\tassertTrue(dict.search(\"bad\"));\n\t\tassertTrue(dict.search(\".ad\"));\n\t\tassertTrue(dict.search(\"b..\"));\n\t}", "TSearchQuery createSearchQuery(SearchQueryDefinitionAPI searchQueryDefinition);", "public interface ISearch {\n\n Object build();\n}", "public static void main (String ... args) {\n\n String titulo = \"simple\";\n String pattern = \"abc\";\n String source = \"avsfvasdfabcwefewafabc\";\n find(titulo, pattern, source);\n\n ////////////////////////\n titulo = \"Digitos...\";\n pattern = \"\\\\d\";\n source = \"9a8d70sd98f723708\";\n find(titulo, pattern, source);\n\n titulo = \"NO Digitos...\";\n pattern = \"\\\\D\";\n source = \"9a8d70sd98f723708\";\n find(titulo, pattern, source);\n\n titulo = \"\";\n pattern = \"a?\";\n source = \"aba\";\n find(titulo, pattern, source);\n\n titulo = \"dot methacharacter\";\n pattern = \"a.c\";\n source = \"ac abc a c\";\n find(titulo, pattern, source);\n\n titulo =\"Operator ^ carat\";\n pattern = \"proj1([^,])*\";\n source = \"proj3.txt,proj1sched.pdf,proj1,prof2,proj1.java\";\n find(titulo, pattern, source);\n\n }", "TSearchQuery prepareSearchQuery(SearchQueryDefinitionAPI searchQueryDefinition);", "public static void search(String searchInput)\n {\n if (!searchInput.isEmpty())\n {\n searchInput = searchInput.trim();\n if (mNameSymbol.containsKey(searchInput))\n {\n //Returns list of stock symbols associated with company name\n List<String> lstTickerSymbols = mNameSymbol.get(searchInput);\n displayResults(lstTickerSymbols, searchInput);\n }\n else\n {\n Set<String> setNames = mNameSymbol.keySet();\n Iterator iterator = setNames.iterator();\n boolean matchMade = false;\n while (iterator.hasNext())\n {\n String storedName = (String)iterator.next();\n Float normalizedMatch = fuzzyScore(storedName, searchInput);\n if (normalizedMatch >= MIN_MATCH) \n {\n //Returns list of stock symbols associated with company name\n List<String> lstTickerSymbols = mNameSymbol.get(storedName);\n displayResults(lstTickerSymbols, storedName);\n matchMade = true;\n }\n }\n if (matchMade == false)\n {\n displayNoResults();\n }\n }\n }\n else\n {\n displayNoResults();\n }\n }", "public abstract S getSearch();", "public static Expression compile(@NonNull final String s) {\n return new Expression(PARSER.parse(s));\n }", "public Algorithms.Search<State<E>,HeuristicNode<State<E>,Double>>.Result search(Signature<E> request){\n log.info(\"Initializing composition search problem...\");\n // Composition starts with the request:\n Stopwatch compositionWatch = Stopwatch.createStarted();\n // Build the initial match graph network (first pass)\n ServiceMatchNetwork<E, T> network = discoverer.search(request);\n // Apply optimizations\n Stopwatch optWatch = Stopwatch.createStarted();\n for(NetworkOptimizer<E,T> opt : optimizations){\n network = opt.optimize(network);\n }\n optWatch.stop();\n log.info(\"Graph optimizations done in {}\", optWatch);\n log.info(\"Starting search over a network with {} levels and {} operations\", network.numberOfLevels(), network.listOperations().size());\n // Run search over network\n Algorithms.Search<State<E>,HeuristicNode<State<E>,Double>>.Result searchResult = CompositSearch.create(network).search();\n log.info(\"Optimal composition search finished in {}\", searchResult.getStopwatch().toString());\n log.debug(\" Composition : {}\", searchResult.getOptimalPath());\n log.debug(\" Total iterations : {}\", searchResult.getIterations());\n log.info(\" Composition runpath : {}\", searchResult.getOptimalPath().size()-2);\n log.info(\" Composition services: {}\", searchResult.getGoalNode().getScore());\n log.info(\"Total composition time : {}\", compositionWatch.stop().toString());\n\n List<State<E>> states = searchResult.getOptimalPath();\n List<Set<Operation<E>>> ops = Lists.transform(states, new Function<State<E>, Set<Operation<E>>>() {\n @Override\n public Set<Operation<E>> apply(State<E> state) {\n return state.getStateOperations();\n }\n });\n return searchResult;\n }", "public PatternBuilderResult build(String specification) throws PatternBuilderException {\n StringBuilder patternStringBuilder = new StringBuilder();\n Matcher captureTokenMatcher = pattern.matcher(specification);\n List<String> locations = new ArrayList<>();\n\n int charLoc = 0;\n while(captureTokenMatcher.find()) {\n String match = captureTokenMatcher.group(1);\n\n String regexReplacement = genRegex(captureTokenMatcher.end(), match, specification);\n String literalReplacement = escapeLiteralRegexChars(specification.substring(charLoc, captureTokenMatcher.start()));\n\n patternStringBuilder\n .append(literalReplacement)\n .append(regexReplacement);\n\n locations.add(match);\n\n charLoc = captureTokenMatcher.end();\n\n\n }\n\n patternStringBuilder\n .append(escapeLiteralRegexChars(specification.substring(charLoc, specification.length())));\n\n return new PatternBuilderResult(\n compilePattern(patternStringBuilder.toString()),\n ensureUniqueIndex(locations));\n\n }", "public static Operator parse(StringBuilder sb, String search)\n\t\t{\n\t\t\tif(sb.charAt(0) == '<' || sb.charAt(0) == '>')\n\t\t\t{\n\t\t\t\tboolean gt = sb.charAt(0) == '>';\n\t\t\t\tsb.delete(0, 1);\n\t\t\t\tif(sb.charAt(0) == '=')\n\t\t\t\t{\n\t\t\t\t\tsb.delete(0, 1);\n\t\t\t\t\tif(gt)\n\t\t\t\t\t\treturn GTE;\n\t\t\t\t\telse\n\t\t\t\t\t\treturn LTE;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(gt)\n\t\t\t\t\t\treturn GT;\n\t\t\t\t\telse\n\t\t\t\t\t\treturn LT;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(sb.charAt(0) == '=')\n\t\t\t{\n\t\t\t\tsb.delete(0, 1);\n\t\t\t\tif(sb.charAt(0) == '=')\n\t\t\t\t\tsb.delete(0, 1);\n\t\t\t\treturn EQ;\n\t\t\t}\n\t\t\telse if(sb.charAt(0) == '!')\n\t\t\t{\n\t\t\t\tsb.delete(0, 1);\n\t\t\t\tif(sb.charAt(0) != '=')\n\t\t\t\t\tthrow new IllegalArgumentException(\"Illegal size expression: \" + search\n\t\t\t\t\t\t+ \"--operator unrecognized\");\n\t\t\t\tsb.delete(0, 1);\n\t\t\t\treturn NEQ;\n\t\t\t}\n\t\t\telse\n\t\t\t\t/* If a header is used with a parseable value right after, the operator is equality */\n\t\t\t\treturn EQ;\n\t\t}", "static Extractor byRegex(String format, Object... args) {\n\t\t\treturn byRegex(RegexUtil.compile(format, args));\n\t\t}", "public search()\n\t { b = new char[INC];\n\t i = 0;\n\t i_end = 0;\n\t }", "SearchResult<TimelineMeta> search(SearchParameter searchParameter);", "public ServiceMatchNetwork<E, T> searchComposition(Signature<E> request){\n ServiceMatchNetwork<E, T> network = discoverer.search(request);\n // Apply optimizations\n for(NetworkOptimizer<E,T> opt : optimizations){\n network = opt.optimize(network);\n }\n Algorithms.Search<State<E>,HeuristicNode<State<E>,Double>>.Result searchResult = CompositSearch.create(network).search();\n // Take the service operations from the optimal state path. We reverse the list because\n // the search was done backwards.\n List<State<E>> states = Lists.reverse(searchResult.getOptimalPath());\n List<Set<Operation<E>>> optimalServiceOps = Lists.transform(states, new Function<State<E>, Set<Operation<E>>>() {\n @Override\n public Set<Operation<E>> apply(State<E> state) {\n return state.getStateOperations();\n }\n });\n // Generate a new ServiceMatchNetwork composition with the optimal services.\n // To build the composition, we use the information of the previous network to build the match relations\n // between services among the optimal services.\n ServiceMatchNetwork<E, T> composition = new DirectedAcyclicSMN<E, T>(new HashLeveledServices<E>(optimalServiceOps), network);\n return composition;\n }", "public RankedSearch(CourseDataCache cache) {\n this.cache = cache;\n this.corpus = cache.getCorpus();\n\n\n setUpMappingsAndShortenings();\n this.whitespaceSuggestions = new HashMap<>();\n this.descriptionSearch = new DescriptionSearch(cache);\n this.courseCodeSearch = new CourseCodeSearch(cache);\n this.titleSearch = new TitleSearch(cache);\n this.smallWords = new HashSet<>();\n setUpSmallWords();\n }", "public String generate(AnimationPropertiesContainer props,\r\n Hashtable<String, Object> primitives) {\r\n String fullText = (String)primitives.get(\"text\");\r\n String toSearch = (String)primitives.get(\"searchFor\");\r\n FileHandler handler = new FileHandler(\"demo.asu\");\r\n AnimalTranslator animalTrans = new AnimalTranslator(handler);\r\n// boolean hideCode = ((Boolean)props.get(\"sourceCode\", \"hidden\")).booleanValue();\r\n BMStringSearch boyerMooreSearch = new BMStringSearch(animalTrans);\r\n boyerMooreSearch.initialize(fullText, toSearch);\r\n try {\r\n \tboyerMooreSearch.generateAnimation();\r\n } catch(Exception e) {\r\n System.err.println(e.getMessage());\r\n } \r\n return handler.getAnimationCode();\r\n }", "public Expression determine(String s);", "SpellResponse spellQuery(SearchRequest request, Map<SearchParam, String> params);", "private void search(String product) {\n // ..\n }", "private void search(String[] searchItem)\n {\n }", "public ChannelSearchResult doSearch(SearchCriteria searchCriteria) {\n try {\n String data = getData(searchCriteria);\n\n // Clean xml version for geotools parser for faster parse\n data = data.replace(RESPONSE_CLEAN, \"\");\n log.debug(\"DATA: \" + data);\n boolean exonym = false;\n if(hasParam(searchCriteria,PARAM_EXONYM)) exonym = searchCriteria.getParam(PARAM_EXONYM).toString().equals(\"true\");\n return elfParser.parse(data, searchCriteria.getSRS(), exonym);\n\n } catch (Exception e) {\n log.error(e, \"Failed to search locations from register of ELF GeoLocator\");\n return new ChannelSearchResult();\n }\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tString[] dict = {\"hello\",\"leetcode\"};\r\n\t\tMagicDictionary dictionary = new MagicDictionary();\r\n\t\tdictionary.buildDict(dict);\r\n\t\tSystem.out.println(dictionary.search(\"hello\"));\r\n\t\tSystem.out.println(dictionary.search(\"hhllo\"));\r\n\t\tSystem.out.println(dictionary.search(\"hell\"));\r\n\t\tSystem.out.println(dictionary.search(\"leetcoded\"));\r\n\t\t\r\n\t\tSystem.out.println();\r\n\r\n\t\tMagicDictionary1 dictionary1 = new MagicDictionary1();\r\n\t\tdictionary1.buildDict(dict);\r\n\t\tSystem.out.println(dictionary1.search(\"hello\"));\r\n\t\tSystem.out.println(dictionary1.search(\"hhllo\"));\r\n\t\tSystem.out.println(dictionary1.search(\"hell\"));\r\n\t\tSystem.out.println(dictionary1.search(\"leetcoded\"));\r\n\t\t\r\n\t\t\r\n\t\t//System.out.println(dictionary.search(\"abcabacbababdbadbfaejfoiawfjaojfaojefaowjfoawjzoawj\"));\r\n\t\t\r\n\t}", "List<Codebadge> search(String query);", "public List<Contact> searchContacts(Map<SearchTerm,String> criteria);", "protected abstract String createSnpSearchQueryStr(HashMap<String,String> paramMap);", "private JsonObject search(JsonObject request) {\n\t\t\tJsonObject result = new JsonObject();\n\t\t\tJsonArray artists = new JsonArray();\n\t\t\tJsonArray titles = new JsonArray();\n\t\t\tJsonArray tags = new JsonArray();\n\t\t\tJsonArray arSimilars = new JsonArray();\n\t\t\tJsonArray tiSimilars = new JsonArray();\n\t\t\tJsonArray taSimilars = new JsonArray();\n\t\t\t//Individually search by artist, by title and by tag. \n\t\t\tartists = request.getAsJsonArray(\"searchByArtist\");\n\t\t\ttitles = request.getAsJsonArray(\"searchByTitle\");\n\t\t\ttags = request.getAsJsonArray(\"searchByTag\");\n\t\t\t//If the request contains \"artist\", we search each artist's similar song, and add it to a JsonArray.\n\t\t\tif(artists != null && artists.size() >= 1) {\n\t\t\t\tfor(JsonElement artist: artists) {\n\t\t\t\t\tarSimilars.add(this.sl.searchByArtist(artist.getAsString()));\t\n\t\t\t\t}\n\t\t\t\t//We add the JsonArray to result, associated with \"searchByArtist\".\n\t\t\t\tresult.add(\"searchByArtist\", arSimilars);\n\t\t\t}\n\t\t\t//If the request contains \"tag\", we search each tag's similar song, and add it to a JsonArray.\n\t\t\tif(tags != null && tags.size() >= 1) {\n\t\t\t\tfor(JsonElement tag: tags) {\t\t\t\t\n\t\t\t\t\ttaSimilars.add(this.sl.searchByTag(tag.getAsString()));\t\t\t\t\n\t\t\t\t}\n\t\t\t\t//We add the JsonArray to result, associated with \"searchByTag\".\n\t\t\t\tresult.add(\"searchByTag\", taSimilars);\n\t\t\t}\t\t\n\t\t\t//If the request contains title, we search each title's similar song, and add it to a JsonArray\n\t\t\tif(titles != null && titles.size() >= 1) {\t\t\t\n\t\t\t\tfor(JsonElement title: titles) {\n\t\t\t\t\ttiSimilars.add(this.sl.searchByTitle(title.getAsString()));\n\t\t\t\t}\n\t\t\t\t//We add the JsonArray to result, associated with \"searchByTiltle\".\n\t\t\t\tresult.add(\"searchByTitle\", tiSimilars);\n\t\t\t}\n\t\t\treturn result;\n\t\t}", "List<SongVO> searchSong(String searchText) throws Exception;", "public StringSearch(String pattern, String target) {\n/* 190 */ super(null, null); throw new RuntimeException(\"Stub!\");\n/* */ }", "private void searchCode() {\n }", "public List<Contact> getSearch(String s){\n return contactsAndChildrenParser.getSearch(s);\n }", "@Test\n public void parse_validArgs_returnsSearchCommand() {\n SearchCommand expectedSearchCommand =\n new SearchCommand(new NamePhoneTagContainsKeywordsPredicate(Arrays.asList(\"Alice\", \"Bob\")));\n assertParseSuccess(parser, \"Alice Bob\", expectedSearchCommand);\n\n // multiple whitespaces between keywords\n assertParseSuccess(parser, \" \\n Alice \\n \\t Bob \\t\", expectedSearchCommand);\n }", "public CorpusSearch(Path searchRoot, MdCSearchQuery query) {\n try {\n this.searchRoot = searchRoot;\n this.query = query;\n extensions = new String[]{\n \".gly\", \".GLY\", \".hie\", \".HIE\"\n };\n fileIterator = Files\n .walk(searchRoot)\n .filter(this::isJSeshPath)\n .iterator();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "public static void main(String[] args)\r\n\t{\n\t\tSystem.out.print(\"enter string - \");\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tString whole = input.next();\r\n\t\tSystem.out.print(\"enter sub-string to be searched - \");\r\n\t\tString part = input.next();\r\n\t\tinput.close();\r\n\t\tImplementStrStr sample = new ImplementStrStr();\r\n\t\tString result = sample.findSubString(whole, part);\r\n\t\tif(result==null)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"SubString not present\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"SubString is present - \"+result);\r\n\t\t}\r\n\t}", "public SearchResponse search(SearchRequest request) throws SearchServiceException;", "public Builder setSearch(com.clarifai.grpc.api.Search value) {\n if (searchBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n inputSource_ = value;\n onChanged();\n } else {\n searchBuilder_.setMessage(value);\n }\n inputSourceCase_ = 10;\n return this;\n }", "public static SPARQLResult make(String str, Model model)\n {\n return new XMLInputSAX(str, model) ;\n }", "public static ResultModel search(String text, String pattern) {\n long startTime = System.nanoTime();\n ResultModel Result = new ResultModel();\n String positionText = \"\";\n int Count = 0;\n // Write your code here\n int M = pattern.length(); \n int N = text.length(); \n int i, j; \n int p = 0; // hash value for pattern \n int t = 0; // hash value for txt \n int h = 1; \n \n // The value of h would be \"pow(d, M-1)%q\" \n for (i = 0; i < M-1; i++) {\n h = (h*d)%q; \n }\n // Calculate the hash value of pattern and first \n // window of text \n for (i = 0; i < M; i++) \n { \n p = (d*p + pattern.charAt(i))%q; \n t = (d*t + text.charAt(i))%q; \n\n\n } \n \n \n // Slide the pattern over text one by one \n for (i = 0; i <= N - M; i++) \n { \n \n // Check the hash values of current window of text \n // and pattern. If the hash values match then only \n // check for characters on by one \n if ( p == t ) \n { \n /* Check for characters one by one */\n for (j = 0; j < M; j++) \n { \n if (text.charAt(i+j) != pattern.charAt(j)) \n break; \n } \n \n // if p == t and pat[0...M-1] = txt[i, i+1, ...i+M-1] \n if (j == M) { \n \tCount ++;\n\t // return i\n\t if(positionText == \"\") {\n\t positionText += (i+ 1) + \"th\";\n\t }else {\n\t positionText = positionText + \", \" + (i+1) + \"th\";\n\t }\n }\n } \n \n // Calculate hash value for next window of text: Remove \n // leading digit, add trailing digit \n if ( i < N-M ) \n { \n\n t = (d*(t - text.charAt(i)*h) + text.charAt(i+M))%q; \n \n // We might get negative value of t, converting it \n // to positive \n if (t < 0) {\n\n t = (t + q); \n }\n \n } \n \n } \n\n //End of code\n\n long endTime = System.nanoTime();\n long totalTime = endTime - startTime;\n\n Result.setExecutionTime(TimeUnit.NANOSECONDS.toMillis(totalTime));\n Result.setFoundCount(Count);\n Result.setPosition(positionText);\n return Result;\n }", "public static void StringFinder()\n {\n // String to be scanned to find the pattern.\n String TargetString = \"Find me in me this string me, test me\";\n String SearchExpression_literal = \"me\"; // Default Pattern (RegEx ) group\n\n // Create a Pattern object\n Pattern r = Pattern.compile(SearchExpression_literal);\n // Now create matcher object.\n Matcher m = r.matcher(TargetString);\n\n int SearchFindCounter = 0;\n /**\n * Matcher.find() Returns Boolean for every occurrence found\n */\n if (m.find())\n { \n \t System.out.println(\"Match Found\");\n }\n }", "public SearchConditionSB() {\r\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic JSONArray findMatches(String query){\n\t\t\n\t\t// Increment the search tasks counter\n\t\t++numOfSearchTasks;\n\t\t\n\t\t// Start the timer for this task\n\t\tTimer.start();\n\t\t\n\t\t// Number of needed matches\n\t\tresultsToBeFound = 10;\n\t\t\n\t\t// Clear the matches list\n\t\tsetForTypeahead.clear();\n\t\t\n\t\t// The returned JSON array\n\t\tJSONArray arrayObj = new JSONArray();\n\t\t\n\t\t// Search in all predicates\n\t\tfor(int i = 0; i < predicatesList.size(); ++i){\n\t\t\tif(predicatesList.get(i).toLowerCase().contains(query.toLowerCase())){\n\t\t\t\tarrayObj.add(predicatesList.get(i));\n\t\t\t}\n\t\t\tArrayList<String> semanticRelations = semanticRelationsMap.get(query.toLowerCase());\n\t\t\tif(semanticRelations != null) {\n\t\t\t\tfor(String s : semanticRelations) {\n\t\t\t\t\tif(predicatesList.get(i).toLowerCase().contains(s.toLowerCase())){\n\t\t\t\t\t\tarrayObj.add(predicatesList.get(i));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Start the timer for this task\n\t\tTimer.start();\n\t\t\n\t\t// Search in index first\n\t\tCollection<Integer> list = in.search(query.toLowerCase());\n\t\tHashSet<Integer> output = null;\n\t\tif(list.size() > 0) {\n\t\t\toutput = (HashSet<Integer>) list;\n\t\t}\n\t\telse {\n\t\t\toutput = new HashSet<Integer>();\n\t\t}\n\n\t\t// If found a match, that's a hit\n\t\tif(output.size() > 0) {\n\t\t\t++numOfIndexHits;\n\t\t}\n\t\t\n\t\tfor(Integer index : output) {\n\t\t\tarrayObj.add(frequentLiteralsList.get(index));\n \t\t--resultsToBeFound;\n \t}\n\t\tdouble tempStopTime;\n\t\t// If all results were found in suffix tree\n\t\tif(resultsToBeFound < 0) {\n\t\t\tTimer.stop();\n\t\t\tsuffixTreeTime += Timer.getTimeInSeconds();\n\t\t\ttotalTime += Timer.getTimeInSeconds();\n\t\t\twriteStatsToFile();\n\t\t\treturn arrayObj;\n\t\t}\n\t\t\n\t\tTimer.stop();\n\t\tsuffixTreeTime += Timer.getTimeInSeconds();\n\t\ttempStopTime = Timer.getTimeInSeconds();\n\t\tTimer.start();\n\t\t// In length bins\n\t\t// Search in bins with a minimum length of the query\n\t\t// and a maximum of the query length + 10\n\t\tint minLength = query.length()-1;\n\t\tint maxLength = query.length() + 9;\n\t\t\n\t\tint minIndex = Integer.MAX_VALUE;\n\t\tint maxIndex = -1;\n\t\t\n\t\t// Determine which indices of the literals array\n\t\t// to search within\n\t\tfor(int i = 0; i < lengths.size(); ++i){\n\t\t\tif(lengths.get(i) > maxLength) {\n\t\t\t\tmaxIndex = indexes.get(i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(minLength >= lengths.get(i)) {\n\t\t\t\tminIndex = indexes.get(i);\n\t\t\t}\n\t\t}\n\t\t\n\t\tpruningPercentage += 1 - (1.0 * (maxIndex - minIndex) / literalsList.size());\n\t\ttry{\n\t\tSystem.out.println(\"Searching for \" + query + \" between indeces: \" + minIndex + \n\t\t\t\t\" corresponding to length \" + (literalsList.get(minIndex).length()-5) +\n\t\t\t\t\" and \" + maxIndex + \" corresponding to length \" + \n\t\t\t\t(literalsList.get(maxIndex).length()-5));\n\t\t}\n\t\tcatch(IndexOutOfBoundsException e) {\n\t\t\tSystem.out.println(\"query = \" + query);\n\t\t\tSystem.out.println(\"minIndex = \" + minIndex);\n\t\t\tSystem.out.println(\"maxIndex = \" + maxIndex);\n\t\t}\n\t\t\n\t\t// Assign threads to search tasks\n\t\tint indexesPerThread = (maxIndex - minIndex) / (numOfCores);\n\t\t\n\t\t// Arraylist to keep track of threads\n\t\tArrayList<Thread> threads = new ArrayList<Thread>();\n\t\t\n\t\tfor(int i = minIndex; i < maxIndex; i += indexesPerThread) {\n\t\t\tthreads.add(new Thread(new SearchTask(i, i + indexesPerThread, query)));\n\t\t}\n\t\t\n\t\t// Start threads\n\t\tfor(int i = 0; i < threads.size(); ++i) {\n\t\t\tthreads.get(i).start();\n\t\t}\n\t\t\n\t\t// Join threads before continue\n\t\tfor(int i = 0; i < threads.size(); ++i) {\n\t\t\ttry {\n\t\t\t\tthreads.get(i).join();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Stop timer\n\t\tTimer.stop();\n\t\ttotalTime += tempStopTime + Timer.getTimeInSeconds();\n\t\t\n\t\t// Sort by length\n\t\tArrayList<String> tempList = new ArrayList<String>();\n\t\tfor(String string : setForTypeahead) {\n\t\t\tif(!arrayObj.contains(string))\n\t\t\t\ttempList.add(string);\n\t\t}\n\t\tjava.util.Collections.sort(tempList, new LengthComparator());\n\t\t\n\t\t// Fill the array\n\t\tfor(int i = 0; i < tempList.size() && resultsToBeFound > 0; ++i, --resultsToBeFound) {\n\t\t\tarrayObj.add(tempList.get(i));\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t// Update the stats file with number of tasks and hits\n\t\twriteStatsToFile();\n\t\t\n\t\treturn arrayObj;\n\t}", "public abstract String parse(String name, List<CodeLine> c, Cluster cluster, Map<String,String> subs, Assemble compiler);", "public static void main(String[] args) {\n\t\tSearch s = new Search();\n\t\ts.init();\n\t}", "public static void main(String[] args) {\n\n String input = \"\";\n String word = \"\";\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Please give me the string to search in: \");\n input = scanner.nextLine();\n System.out.println(\"Please give me the string to search for: \");\n word = scanner.nextLine();\n System.out.println(subStr(input, word));\n\n }" ]
[ "0.6060433", "0.5628018", "0.5532132", "0.5504151", "0.55001014", "0.54343784", "0.54274416", "0.5423049", "0.54128504", "0.536918", "0.53366524", "0.53256667", "0.5311504", "0.531132", "0.530132", "0.5245395", "0.52145886", "0.5183197", "0.5165408", "0.5142206", "0.5131451", "0.50917673", "0.50873804", "0.5079256", "0.50696933", "0.5030893", "0.50235355", "0.5012866", "0.50113904", "0.4995871", "0.49941137", "0.4947108", "0.4947108", "0.49461603", "0.49461195", "0.4941039", "0.49306247", "0.4930478", "0.49208423", "0.49141517", "0.49038386", "0.48968932", "0.48907357", "0.48878184", "0.48232877", "0.48213354", "0.48164505", "0.47960037", "0.47884926", "0.47659713", "0.47531632", "0.4737663", "0.47260448", "0.4724608", "0.47218582", "0.47202808", "0.4713144", "0.47118983", "0.47066486", "0.46937335", "0.46873778", "0.46684626", "0.4665609", "0.46636763", "0.46614358", "0.46588588", "0.46351367", "0.4604307", "0.46033517", "0.4599927", "0.45965642", "0.45925206", "0.45899794", "0.4584809", "0.4584445", "0.45835572", "0.45779502", "0.4560298", "0.45569772", "0.45547494", "0.4554278", "0.45378244", "0.4525781", "0.4523055", "0.45198086", "0.45127156", "0.45123172", "0.450835", "0.4506058", "0.45055786", "0.44938603", "0.44881037", "0.4483493", "0.44819704", "0.44814506", "0.4474624", "0.44743815", "0.4472313", "0.44696447", "0.44673383" ]
0.6366237
0
Creates an expression search for this builder
public ExpressionSearch exp(boolean and) { return new ExpressionSearch(and); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Search createSearch(String searchText)\n\t\t{\n\t\t\tStringBuilder sb = new StringBuilder(searchText);\n\t\t\ttrim(sb);\n\t\t\tSearch current = null;\n\t\t\twhile(sb.length() > 0)\n\t\t\t{\n\t\t\t\tboolean not = false;\n\t\t\t\tif(sb.length() > 1 && lower(sb.charAt(0)) == 'o' && lower(sb.charAt(1)) == 'r')\n\t\t\t\t{ // OR operator\n\t\t\t\t\tsb.delete(0, 2);\n\t\t\t\t\tExpressionSearch exp = exp(false);\n\t\t\t\t\texp.add(current);\n\t\t\t\t\tcurrent = exp;\n\t\t\t\t\ttrim(sb);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse if(sb.length() > 2 && lower(sb.charAt(0)) == 'a' && lower(sb.charAt(1)) == 'n'\n\t\t\t\t\t&& lower(sb.charAt(2)) == 'd')\n\t\t\t\t{\n\t\t\t\t\tsb.delete(0, 3);\n\t\t\t\t\ttrim(sb);\n\t\t\t\t}\n\t\t\t\telse if(sb.length() > 1 && sb.charAt(0) == '!')\n\t\t\t\t{\n\t\t\t\t\tsb.delete(0, 1);\n\t\t\t\t\ttrim(sb);\n\t\t\t\t\tnot = true;\n\t\t\t\t}\n\n\t\t\t\tSearch next;\n\t\t\t\tif(sb.charAt(0) == '(')\n\t\t\t\t{\n\t\t\t\t\tint c = goPastParen(sb, 0);\n\t\t\t\t\tString nextExpr = sb.substring(1, c).trim();\n\t\t\t\t\tif(nextExpr.length() == 0)\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"Empty parenthetical expression\");\n\t\t\t\t\tnext = createSearch(nextExpr);\n\t\t\t\t\tsb.delete(0, c + 1);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tnext = parseNext(sb);\n\t\t\t\tif(not)\n\t\t\t\t{\n\t\t\t\t\tNotSearch notS = not();\n\t\t\t\t\tnotS.setOperand(next);\n\t\t\t\t\tnext = notS;\n\t\t\t\t}\n\n\t\t\t\tif(current instanceof ExpressionSearch\n\t\t\t\t\t&& ((ExpressionSearch) current).getOperandCount() == 1)\n\t\t\t\t\t((ExpressionSearch) current).add(next);\n\t\t\t\telse if(current != null)\n\t\t\t\t{\n\t\t\t\t\tExpressionSearch exp = exp(true);\n\t\t\t\t\texp.addOps(current, next);\n\t\t\t\t\tcurrent = exp;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcurrent = next;\n\n\t\t\t\ttrim(sb);\n\t\t\t}\n\t\t\tif(current instanceof ExpressionSearch)\n\t\t\t\t((ExpressionSearch) current).simplify();\n\t\t\treturn current;\n\t\t}", "@NotNull\n String getSearchExpression();", "Expression createExpression();", "public abstract Search create(String search, SearchBuilder builder);", "public MagicSearch createMagicSearch();", "public static OrderSearchExistsExpressionBuilder builder() {\n return OrderSearchExistsExpressionBuilder.of();\n }", "public String buildSearchQuery() throws Exception\r\n { \r\n String query;\r\n \r\n searchContext.setText(getSearchString());\r\n \r\n if(!locations.isEmpty())\r\n {\r\n searchContext.setLocations(locations);\r\n }\r\n\r\n if (ext != null) {\r\n for (AdvancedSearchOptions option : ext.getAdvOptionsExtensions()) {\r\n option.setSearchParam(searchContext);\r\n }\r\n }\r\n \r\n // we always want to exclude CAT ignore & hidden rendition aspects\r\n searchContext.setAspectToExclude(VeloConstants.ASPECT_IGNORE);\r\n searchContext.setAspectToExclude(VeloConstants.ASPECT_HIDDEN_RENDITION);\r\n\r\n // we always want to exclude thumbnail types\r\n searchContext.addTypeToExclude(VeloConstants.TYPE_THUMBNAIL);\r\n \r\n query = searchContext.buildQuery(2);\r\n logger.debug(\"AdvancedSearchQuery:\" + query);\r\n \r\n return query;\r\n \r\n }", "FullExpression createFullExpression();", "public ExpressionSearch and(Search srch)\n\t{\n\t\treturn new ExpressionSearch(true).addOps(this, srch);\n\t}", "public Query(String expression) {\r\n\t\t_product = Product.class;\r\n\t\t_variable = \"p\";\r\n\t\t_expression = expression;\r\n\r\n\t}", "Expr createExpr();", "@Override\n public Object build() {\n return AggregationBuilders.filter(this.getName(),\n (org.opensearch.index.query.QueryBuilder)this.queryBuilder.seekRoot().query().filtered().filter().getCurrent().build());\n }", "public Query regEx(String key, Object value) {\n Preconditions.checkNotNull(key);\n builder.addFilter(builder.getOperator(QueryFilterBuilder.Operators.REGEX), key, value);\n return this;\n }", "IterateExp createIterateExp();", "Expression getExpression();", "Expression getExpression();", "Expression getExpression();", "Expression getExpression();", "protected Expression buildExpression(RestrictExpression restrictor,String pathSpec){\n\t\tverifyParameters(restrictor, pathSpec);\n\n\t\tObject value = valueTranslator(restrictor.getValue());\t//For most cases we will need this value\n\t\t//Check all known operators, try to handle them\n\t\tswitch (restrictor.getOperator()){\n\t\tcase EQUAL_TO:\n\t\t\treturn ExpressionFactory.matchExp(pathSpec, value);\n\t\tcase NOT_EQUAL_TO:\n\t\t\treturn ExpressionFactory.noMatchExp(pathSpec, value);\n\t\tcase LESS_THAN:\n\t\t\treturn ExpressionFactory.lessExp(pathSpec, value);\n\t\tcase GREATER_THAN:\n\t\t\treturn ExpressionFactory.greaterExp(pathSpec, value);\n\t\tcase LESS_THAN_EQUAL_TO:\n\t\t\treturn ExpressionFactory.lessOrEqualExp(pathSpec, value);\n\t\tcase GREATER_THAN_EQUAL_TO:\n\t\t\treturn ExpressionFactory.greaterOrEqualExp(pathSpec, value);\n\t\tcase BETWEEN:\n\t\t\tif (restrictor.getValues().size()==2){\n\t\t\t\tIterator<Object> iter = restrictor.getValues().iterator();\n\t\t\t\treturn ExpressionFactory.betweenExp(pathSpec, valueTranslator(iter.next()), valueTranslator(iter.next()));\n\t\t\t}\n\t\tcase IN:\n\t\t\treturn ExpressionFactory.inExp(pathSpec, translateValues(restrictor.getValues()));\n\t\tcase LIKE:\n\t\t\treturn ExpressionFactory.likeExp(pathSpec, value);\n\t\tdefault:\n\t\t\treturn ExpressionFactory.expFalse();\n\t\t}\n\t}", "public abstract XPathExpression getExpression();", "JavaExpression createJavaExpression();", "private DynamicForm createSearchBox() {\r\n\t\tfinal DynamicForm filterForm = new DynamicForm();\r\n\t\tfilterForm.setNumCols(4);\r\n\t\tfilterForm.setAlign(Alignment.LEFT);\r\n\t\tfilterForm.setAutoFocus(false);\r\n\t\tfilterForm.setWidth(\"59%\"); //make it line up with sort box\r\n\t\t\r\n\t\tfilterForm.setDataSource(SmartGWTRPCDataSource.getInstance());\r\n\t\tfilterForm.setOperator(OperatorId.OR);\r\n\t\t\r\n\t\t//Visible search box\r\n\t\tTextItem nameItem = new TextItem(\"name\", \"Search\");\r\n\t\tnameItem.setAlign(Alignment.LEFT);\r\n\t\tnameItem.setOperator(OperatorId.ICONTAINS); // case insensitive\r\n\t\t\r\n\t\t//The rest are hidden and populated with the contents of nameItem\r\n\t\tfinal HiddenItem companyItem = new HiddenItem(\"company\");\r\n\t\tcompanyItem.setOperator(OperatorId.ICONTAINS);\r\n\t\tfinal HiddenItem ownerItem = new HiddenItem(\"ownerNickName\");\r\n\t\townerItem.setOperator(OperatorId.ICONTAINS);\r\n\r\n\t\tfilterForm.setFields(nameItem,companyItem,ownerItem);\r\n\t\t\r\n\t\tfilterForm.addItemChangedHandler(new ItemChangedHandler() {\r\n\t\t\tpublic void onItemChanged(ItemChangedEvent event) {\r\n\t\t\t\tString searchTerm = filterForm.getValueAsString(\"name\");\r\n\t\t\t\tcompanyItem.setValue(searchTerm);\r\n\t\t\t\townerItem.setValue(searchTerm);\r\n\t\t\t\tif (searchTerm==null) {\r\n\t\t\t\t\titemsTileGrid.fetchData();\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tCriteria criteria = filterForm.getValuesAsCriteria();\r\n\t\t\t\t\titemsTileGrid.fetchData(criteria);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\treturn filterForm;\r\n\t}", "public io.dstore.values.StringValue.Builder getSearchValueBuilder() {\n \n onChanged();\n return getSearchValueFieldBuilder().getBuilder();\n }", "@CheckResult\n public Where where(@NonNull Expr expr) {\n return new Where(this, expr);\n }", "public void buildSearcher() throws IOException {\n IndexReader rdr = DirectoryReader.open(FSDirectory.open(new File(indexDir).toPath()));\n searcher = new IndexSearcher(rdr);\n parser = new QueryParser(\"text\", new StandardAnalyzer());\n }", "ExpOperand createExpOperand();", "Expression() { }", "String getExpression();", "String getExpression();", "TSearchQuery createSearchQuery(SearchQueryDefinitionAPI searchQueryDefinition);", "XExpression getExpression();", "public search() {\n }", "Search getSearch();", "public Query<T, R> build() {\n // if criteria.size == 0, rootCriterion = null\n Criterion rootCriterion = null;\n if (criteria.size() == 1) {\n rootCriterion = criteria.get(0);\n } else if (criteria.size() > 1) {\n rootCriterion = Restrictions.and(criteria\n .toArray(new Criterion[criteria.size()]));\n }\n return new QueryImpl<T, R>(entityClass, returnType, rootCriterion,\n orderings, maxResults, returnFields);\n }", "public void build(Tree t, TreeBuilder builder) throws TreeParsingException {\r\n if (t.getType() == JdbcGrammarParser.WHEREEXPRESSION) {\r\n this.tokenType = t.getType();\r\n this.tokenName = JdbcGrammarParser.tokenNames[this.tokenType];\r\n this.logger.debug(\"BUILDING \" + this.tokenName);\r\n \r\n for (int i = 0; i < t.getChildCount(); i++) {\r\n Tree child = t.getChild(i);\r\n switch (child.getType()) {\r\n case JdbcGrammarParser.DISJUNCTION:\r\n this.expression = (new Disjunction(child, builder,\r\n this, this.selectStatement));\r\n break;\r\n case JdbcGrammarParser.CONJUNCTION:\r\n logger.debug(\"BUILDING CONJUNCTION OR DISJUNCTION FROM CONJUNCTION\");\r\n Node built = Conjunction.buildFromConjunction(child, builder, this, selectStatement);\r\n if(built.getTokenType()==JdbcGrammarParser.CONJUNCTION){\r\n this.expression = (Conjunction.class.cast(built));\r\n logger.debug(\"CONJUNCTION BUILT AND ADDED TO WHEREEXPRESSION\");\r\n }\r\n else{\r\n this.expression = (Disjunction.class.cast(built));\r\n logger.debug(\"DISJUNCTION BUILT AND ADDED TO WHEREEXPRESSION\");\r\n } \r\n break;\r\n case JdbcGrammarParser.NEGATION:\r\n this.expression = (new Negation(child, builder, this,\r\n this.selectStatement));\r\n break;\r\n case JdbcGrammarParser.BOOLEANEXPRESSIONITEM:\r\n this.expression = (new BooleanExpressionItem(child,\r\n builder, this, this.selectStatement));\r\n break;\r\n default:\r\n break;\r\n }\r\n }\r\n \r\n }\r\n else {\r\n throw new TreeParsingException(\"This Tree is not a WHEREEXPRESSION\");\r\n }\r\n }", "@Override\n public Object build() {\n Map<String, org.opensearch.index.query.QueryBuilder> filterMap = new HashMap<>();\n for (FilterComposite filter : this.getChildren().stream()\n .filter(child -> FilterComposite.class.isAssignableFrom(child.getClass()))\n .map(child -> (FilterComposite) child).collect(Collectors.toList())) {\n\n org.opensearch.index.query.QueryBuilder filterBuilder = (org.opensearch.index.query.QueryBuilder)filter.queryBuilder.seekRoot().query().filtered().filter().getCurrent().build();\n filterMap.put(filter.getName(), filterBuilder);\n }\n\n FiltersAggregationBuilder filtersAggsBuilder = AggregationBuilders.filters(this.getName(),\n Stream.ofAll(filterMap.entrySet())\n .map(entry -> new FiltersAggregator.KeyedFilter(entry.getKey(), entry.getValue()))\n .toJavaArray(FiltersAggregator.KeyedFilter.class));\n\n for (Composite childComposite : this.getChildren().stream()\n .filter(child -> !FilterComposite.class.isAssignableFrom(child.getClass()) &&\n !ParamComposite.class.isAssignableFrom(child.getClass()) &&\n !HavingComposite.class.isAssignableFrom(child.getClass())).collect(Collectors.toList())) {\n\n applySubAggregationFromChild(filtersAggsBuilder, childComposite);\n }\n\n return filtersAggsBuilder;\n }", "CampusSearchQuery generateQuery();", "private Search() {}", "ExpressionInOcl createExpressionInOcl();", "public void searchPlain() throws InvalidExpressionException\n {\n search(null, getAccessor().getApplication().getLocalRelationSet(), Filldirection.NONE, null, null, true);\n }", "public Search(String srcExpr, String idxpath, int[] fieldArr) throws Exception {\r\n System.out.println(\"srcExpr: \" + srcExpr);\r\n\r\n /** Create the ISIS Search Language parser */\r\n SearchParser parser = new SearchParser(new Scanner(new StringReader(srcExpr)));\r\n\r\n /** Get a reference to the Intermediate Representation (IR) */\r\n result_ = (Expr) parser.parse().value;\r\n idxPath_ = idxpath;\r\n\r\n FieldList fl = result_.getFieldList();\r\n FieldList fieldList = new FieldList();\r\n String[] fields = new String[fieldArr.length];\r\n\r\n for (int i = 0; i < fieldArr.length; i++) {\r\n fieldList.add(new Integer(fieldArr[i])); // Tags\r\n }\r\n\r\n /** Translate IR into Lucene Query language */\r\n query_ = result_.toLucene(fieldList);\r\n\r\n System.out.println(\"Lucene query: \" + query_);\r\n }", "TSearchResults createSearchResults(TSearchQuery searchQuery);", "public static OrderSearchExistsExpressionBuilder builder(final OrderSearchExistsExpression template) {\n return OrderSearchExistsExpressionBuilder.of(template);\n }", "public WhereExpression(List<Node> nodeList, TreeBuilder treeBuilder,\r\n SelectStatement selectStatement) throws TreeParsingException {\r\n this.selectStatement = selectStatement;\r\n this.builder = treeBuilder;\r\n this.build(nodeList);\r\n }", "public static JRDesignExpression createExpression(String text) {\n\t\treturn createExpression(text, (String) null);\n\t}", "public ExpressionSearch or(Search srch)\n\t{\n\t\treturn new ExpressionSearch(false).addOps(this, srch);\n\t}", "StringExpression createStringExpression();", "public ATExpression base_indexExpression();", "public Expression() {\r\n }", "@In String search();", "public ZExpression getWhereExpression()\r\n\t{\r\n\t\treturn where;\r\n\t}", "private List<IndexExpression> filterToIndexExpressions(Expression expression) throws IOException\n {\n List<IndexExpression> indexExpressions = new ArrayList<IndexExpression>();\n Expression.BinaryExpression be = (Expression.BinaryExpression)expression;\n ByteBuffer name = ByteBuffer.wrap(be.getLhs().toString().getBytes());\n ByteBuffer value = ByteBuffer.wrap(be.getRhs().toString().getBytes());\n switch (expression.getOpType())\n {\n case OP_EQ:\n indexExpressions.add(new IndexExpression(name, IndexOperator.EQ, value));\n break;\n case OP_GE:\n indexExpressions.add(new IndexExpression(name, IndexOperator.GTE, value));\n break;\n case OP_GT:\n indexExpressions.add(new IndexExpression(name, IndexOperator.GT, value));\n break;\n case OP_LE:\n indexExpressions.add(new IndexExpression(name, IndexOperator.LTE, value));\n break;\n case OP_LT:\n indexExpressions.add(new IndexExpression(name, IndexOperator.LT, value));\n break;\n case OP_AND:\n indexExpressions.addAll(filterToIndexExpressions(be.getLhs()));\n indexExpressions.addAll(filterToIndexExpressions(be.getRhs()));\n break;\n default:\n throw new IOException(\"Unsupported expression type: \" + expression.getOpType().name());\n }\n return indexExpressions;\n }", "public Object getExpression();", "DExpression getExpression();", "@Test\n \tpublic void whereClauseForNodeSpanRegexp() {\n \t\tnode23.setSpannedText(\"regexp\", TextMatching.REGEXP_EQUAL);\n \t\tcheckWhereCondition(join(\"~\", \"_node23.span\", \"'^regexp$'\"));\n \t}", "public Builder setSearch(\n com.clarifai.grpc.api.Search.Builder builderForValue) {\n if (searchBuilder_ == null) {\n inputSource_ = builderForValue.build();\n onChanged();\n } else {\n searchBuilder_.setMessage(builderForValue.build());\n }\n inputSourceCase_ = 10;\n return this;\n }", "public SearchOptions(Edge[] edgesToSearch, Pattern regexPattern) {\n this.edgesToSearch = edgesToSearch;\n this.regexPattern = regexPattern;\n searchNodes = false;\n checkEdgesToSearch();\n }", "public FileFilter(String expression) {\n this.filterExpression = expression;\n }", "ExprRule createExprRule();", "public QbWhere where();", "public SearchOptions(Edge[] edgesToSearch, Pattern regexPattern, boolean onlyMatchWholeAttributeValue) {\n this.edgesToSearch = edgesToSearch;\n this.regexPattern = regexPattern;\n this.onlyMatchWholeAttributeValue = onlyMatchWholeAttributeValue;\n searchNodes = false;\n }", "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}", "@CrossOrigin()\r\n @PostMapping(\"/products/search\")\r\n List<ProductEntity> search(@RequestBody @Valid @NotNull String searchExpression) {\r\n System.out.println(searchExpression);\r\n return productRepository.findBySearch(searchExpression);\r\n }", "public Query(Class c, String expression) {\r\n\t\t_product = c;\r\n\t\t_variable = \"c\";\r\n\t\t_expression = expression;\r\n\r\n\t}", "public abstract S getSearch();", "public ExpressionSearch addOps(Search... ops)\n\t\t{\n\t\t\tfor(Search op : ops)\n\t\t\t\tadd(op);\n\t\t\treturn this;\n\t\t}", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n \tprivate <X, C extends Collection<E>, E> AbstractExpression<X> getExpression(CriteriaBuilderImpl cb, Object q, Tree exprDef, Class<X> javaType) {\n \t\tif ((exprDef.getType() == JpqlParser.Equals_Operator) //\n \t\t\t|| (exprDef.getType() == JpqlParser.Not_Equals_Operator) //\n \t\t\t|| (exprDef.getType() == JpqlParser.Greater_Than_Operator) //\n \t\t\t|| (exprDef.getType() == JpqlParser.Greater_Or_Equals_Operator) //\n \t\t\t|| (exprDef.getType() == JpqlParser.Less_Than_Operator) //\n \t\t\t|| (exprDef.getType() == JpqlParser.Less_Or_Equals_Operator) //\n \t\t\t|| (exprDef.getType() == JpqlParser.BETWEEN)) {\n \n \t\t\tfinal AbstractExpression<X> left;\n \t\t\tfinal AbstractExpression<X> right;\n \n \t\t\tif ((exprDef.getChild(0).getType() == JpqlParser.ST_SUBQUERY) || (exprDef.getChild(1).getType() == JpqlParser.ST_SUBQUERY)) {\n \t\t\t\t// left side is sub query\n \t\t\t\tif (exprDef.getChild(0).getType() == JpqlParser.ST_SUBQUERY) {\n \t\t\t\t\tright = this.getExpression(cb, q, exprDef.getChild(1), null);\n \t\t\t\t\tleft = (AbstractExpression<X>) this.constructSubquery(cb, q, exprDef.getChild(0), right.getJavaType());\n \n \t\t\t\t\t// right side is sub query\n \t\t\t\t}\n \t\t\t\telse if (exprDef.getChild(1).getType() == JpqlParser.ST_SUBQUERY) {\n \t\t\t\t\tleft = this.getExpression(cb, q, exprDef.getChild(0), null);\n \t\t\t\t\tright = (AbstractExpression<X>) this.constructSubquery(cb, q, exprDef.getChild(1), left.getJavaType());\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tthrow new PersistenceException(\"Both sides of the comparison cannot be sub query, line \" + exprDef.getLine() + \":\"\n \t\t\t\t\t\t+ exprDef.getCharPositionInLine());\n \t\t\t\t}\n \t\t\t}\n \t\t\telse {\n \t\t\t\tfinal Tree leftExpr = exprDef.getChild(0);\n \t\t\t\tfinal Tree rightExpr = exprDef.getChild(1);\n \n \t\t\t\tif ((leftExpr.getType() == JpqlParser.Named_Parameter) || (leftExpr.getType() == JpqlParser.Ordinal_Parameter)) {\n \t\t\t\t\tleft = (AbstractExpression<X>) this.getExpression(cb, q, rightExpr, null);\n \t\t\t\t\tright = (AbstractExpression<X>) this.getExpression(cb, q, leftExpr, left.getJavaType());\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tleft = this.getExpression(cb, q, leftExpr, null);\n \t\t\t\t\tright = (AbstractExpression<X>) this.getExpression(cb, q, rightExpr, left.getJavaType());\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tswitch (exprDef.getType()) {\n \t\t\t\tcase JpqlParser.Equals_Operator:\n \t\t\t\t\treturn (AbstractExpression<X>) cb.equal(left, right);\n \n \t\t\t\tcase JpqlParser.Not_Equals_Operator:\n \t\t\t\t\treturn (AbstractExpression<X>) cb.notEqual(left, right);\n \n \t\t\t\tcase JpqlParser.Greater_Than_Operator:\n \t\t\t\t\tif (Comparable.class.isAssignableFrom(left.getJavaType())) {\n \t\t\t\t\t\treturn (AbstractExpression<X>) cb.greaterThan((Expression<Comparable>) left, (Expression<Comparable>) right);\n \t\t\t\t\t}\n \t\t\t\t\telse {\n \t\t\t\t\t\treturn (AbstractExpression<X>) cb.gt((Expression<? extends Number>) left, (Expression<? extends Number>) right);\n \t\t\t\t\t}\n \n \t\t\t\tcase JpqlParser.Greater_Or_Equals_Operator:\n \t\t\t\t\tif (Comparable.class.isAssignableFrom(left.getJavaType())) {\n \t\t\t\t\t\treturn (AbstractExpression<X>) cb.greaterThanOrEqualTo((Expression<Comparable>) left, (Expression<Comparable>) right);\n \t\t\t\t\t}\n \t\t\t\t\telse {\n \t\t\t\t\t\treturn (AbstractExpression<X>) cb.ge((Expression<? extends Number>) left, (Expression<? extends Number>) right);\n \t\t\t\t\t}\n \n \t\t\t\tcase JpqlParser.Less_Than_Operator:\n \t\t\t\t\tif (Comparable.class.isAssignableFrom(left.getJavaType())) {\n \t\t\t\t\t\treturn (AbstractExpression<X>) cb.lessThan((Expression<Comparable>) left, (Expression<Comparable>) right);\n \t\t\t\t\t}\n \t\t\t\t\telse {\n \t\t\t\t\t\treturn (AbstractExpression<X>) cb.lt((Expression<? extends Number>) left, (Expression<? extends Number>) right);\n \t\t\t\t\t}\n \n \t\t\t\tcase JpqlParser.Less_Or_Equals_Operator:\n \t\t\t\t\tif (Comparable.class.isAssignableFrom(left.getJavaType())) {\n \t\t\t\t\t\treturn (AbstractExpression<X>) cb.lessThanOrEqualTo((Expression<Comparable>) left, (Expression<Comparable>) right);\n \t\t\t\t\t}\n \t\t\t\t\telse {\n \t\t\t\t\t\treturn (AbstractExpression<X>) cb.le((Expression<? extends Number>) left, (Expression<? extends Number>) right);\n \t\t\t\t\t}\n \t\t\t\tcase JpqlParser.BETWEEN:\n \t\t\t\t\tfinal AbstractExpression<?> right2 = this.getExpression(cb, q, exprDef.getChild(2), left.getJavaType());\n \n \t\t\t\t\tfinal PredicateImpl between = cb.between((AbstractExpression) left, (AbstractExpression) right, (AbstractExpression) right2);\n \t\t\t\t\tif (exprDef.getChildCount() == 4) {\n \t\t\t\t\t\treturn (AbstractExpression<X>) between.not();\n \t\t\t\t\t}\n \n \t\t\t\t\treturn (AbstractExpression<X>) between;\n \t\t\t}\n \t\t}\n \n \t\tif (exprDef.getType() == JpqlParser.LIKE) {\n \t\t\tfinal AbstractExpression<String> inner = this.getExpression(cb, q, exprDef.getChild(0), String.class);\n \t\t\tfinal AbstractExpression<String> pattern = this.getExpression(cb, q, exprDef.getChild(1), String.class);\n \n \t\t\tif ((exprDef.getChildCount() > 2) && (exprDef.getChild(2).getType() == JpqlParser.STRING_LITERAL)) {\n \t\t\t\tfinal Expression<Character> escape = this.getExpression(cb, q, exprDef.getChild(2), Character.class);\n \n \t\t\t\tif (exprDef.getChild(exprDef.getChildCount() - 1).getType() == JpqlParser.NOT) {\n \t\t\t\t\treturn (AbstractExpression<X>) cb.notLike(inner, pattern, escape);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\treturn (AbstractExpression<X>) cb.like(inner, pattern, escape);\n \t\t\t\t}\n \t\t\t}\n \t\t\telse {\n \t\t\t\tif (exprDef.getChild(exprDef.getChildCount() - 1).getType() == JpqlParser.NOT) {\n \t\t\t\t\treturn (AbstractExpression<X>) cb.notLike(inner, pattern);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\treturn (AbstractExpression<X>) cb.like(inner, pattern);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\tif (exprDef.getType() == JpqlParser.ST_IN) {\n \t\t\tAbstractExpression<X> left = null;\n \n \t\t\tif ((exprDef.getChild(0).getType() != JpqlParser.Named_Parameter) && (exprDef.getChild(0).getType() != JpqlParser.Ordinal_Parameter)) {\n \t\t\t\tleft = this.getExpression(cb, q, exprDef.getChild(0), null);\n \t\t\t}\n \n \t\t\tfinal List<AbstractExpression<X>> expressions = Lists.newArrayList();\n \n \t\t\tfinal Tree inDefs = exprDef.getChild(1);\n \t\t\tif ((inDefs.getType() == JpqlParser.Ordinal_Parameter) || (inDefs.getType() == JpqlParser.Ordinal_Parameter)) {\n \t\t\t\treturn (AbstractExpression<X>) left.in(this.getExpression(cb, q, inDefs, left.getJavaType()));\n \t\t\t}\n \n \t\t\tif (inDefs.getType() == JpqlParser.ST_SUBQUERY) {\n \t\t\t\tfinal SubqueryImpl<? extends X> subquery = this.constructSubquery(cb, q, inDefs, left.getJavaType());\n \n \t\t\t\treturn (AbstractExpression<X>) left.in(subquery);\n \t\t\t}\n \t\t\telse {\n \t\t\t\tfor (int i = 0; i < inDefs.getChildCount(); i++) {\n \t\t\t\t\texpressions.add((AbstractExpression<X>) this.getExpression(cb, q, inDefs.getChild(i), left != null ? left.getJavaType() : null));\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tif (left == null) {\n \t\t\t\tleft = (AbstractExpression<X>) this.getExpression(cb, q, exprDef.getChild(0), expressions.get(0).getJavaType());\n \t\t\t}\n \n \t\t\treturn (AbstractExpression<X>) left.in(expressions);\n \t\t}\n \n \t\tif (exprDef.getType() == JpqlParser.ST_NULL) {\n \t\t\tfinal AbstractExpression<Object> expr = this.getExpression(cb, q, exprDef.getChild(0), null);\n \n \t\t\tif (exprDef.getChildCount() == 2) {\n \t\t\t\treturn (AbstractExpression<X>) cb.isNotNull(expr);\n \t\t\t}\n \n \t\t\treturn (AbstractExpression<X>) cb.isNull(expr);\n \t\t}\n \n \t\t// identification variable\n \t\tif (exprDef.getType() == JpqlParser.ID) {\n \t\t\treturn (AbstractExpression<X>) this.getAliased(q, exprDef.getText());\n \t\t}\n \n \t\t// single valued state field expression\n \t\tif (exprDef.getType() == JpqlParser.ST_PARENTED) {\n \t\t\tAbstractSelection<?> expression = this.getAliased(q, exprDef.getChild(0).getText());\n \n \t\t\tfinal Qualified qualified = new Qualified(exprDef.getChild(1));\n \t\t\tfinal Iterator<String> i = qualified.getSegments().iterator();\n \t\t\twhile (i.hasNext()) {\n \t\t\t\tfinal String segment = i.next();\n \n \t\t\t\tif (expression instanceof ParentPath) {\n \t\t\t\t\texpression = ((ParentPath<?, ?>) expression).getExpression(segment);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tthrow new PersistenceException(\"Cannot dereference: \" + segment + \", line \" + exprDef.getLine() + \":\" + exprDef.getCharPositionInLine());\n \t\t\t\t}\n \n \t\t\t}\n \n \t\t\treturn (AbstractExpression<X>) expression;\n \t\t}\n \n \t\t// negation\n \t\tif (exprDef.getType() == JpqlParser.ST_NEGATION) {\n \t\t\treturn (AbstractExpression<X>) cb.neg(this.<Number, Collection<Object>, Object> getExpression(cb, q, exprDef.getChild(0), null));\n \t\t}\n \n \t\tif (exprDef.getType() == JpqlParser.Named_Parameter) {\n \t\t\treturn cb.parameter(javaType, exprDef.getText().substring(1));\n \t\t}\n \n \t\tif (exprDef.getType() == JpqlParser.Ordinal_Parameter) {\n \t\t\tfinal String strPos = exprDef.getText().substring(1);\n \n \t\t\ttry {\n \t\t\t\tfinal int position = Integer.parseInt(strPos);\n \n \t\t\t\tAbstractParameterExpressionImpl<X> parameter = null;\n \n \t\t\t\tObject q2 = q;\n \n \t\t\t\twhile (q2 instanceof SubqueryImpl) {\n \t\t\t\t\tq2 = ((SubqueryImpl<?>) q2).getParent();\n \t\t\t\t}\n \n \t\t\t\tif (q2 instanceof CriteriaQueryImpl) {\n \t\t\t\t\tparameter = (AbstractParameterExpressionImpl<X>) ((CriteriaQueryImpl<?>) q2).getParameter(position);\n \t\t\t\t}\n \t\t\t\telse if (q2 instanceof CriteriaDeleteImpl) {\n \t\t\t\t\tparameter = (AbstractParameterExpressionImpl<X>) ((CriteriaDeleteImpl<?>) q2).getParameter(position);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tparameter = (AbstractParameterExpressionImpl<X>) ((CriteriaUpdateImpl<?>) q2).getParameter(position);\n \t\t\t\t}\n \n \t\t\t\tif (parameter == null) {\n \t\t\t\t\tparameter = new ParameterExpressionImpl<X>((BaseQueryImpl<?>) q2, this.metamodel.type(javaType), javaType, position);\n \t\t\t\t}\n \n \t\t\t\treturn parameter;\n \n \t\t\t}\n \t\t\tcatch (final NumberFormatException e) {\n \t\t\t\tthrow new PersistenceException(\"Invalid ordinal query parameter declaration: \" + strPos);\n \t\t\t}\n \t\t}\n \n \t\t// arithmetic operation\n \t\tif ((exprDef.getType() == JpqlParser.Plus_Sign) //\n \t\t\t|| (exprDef.getType() == JpqlParser.Minus_Sign) //\n \t\t\t|| (exprDef.getType() == JpqlParser.Multiplication_Sign) //\n \t\t\t|| (exprDef.getType() == JpqlParser.Division_Sign)) {\n \n \t\t\tfinal AbstractExpression<Number> left = this.getExpression(cb, q, exprDef.getChild(0), Number.class);\n \t\t\tfinal AbstractExpression<? extends Number> right = this.getExpression(cb, q, exprDef.getChild(1), left.getJavaType());\n \n \t\t\tswitch (exprDef.getType()) {\n \t\t\t\tcase JpqlParser.Plus_Sign:\n \t\t\t\t\treturn (AbstractExpression<X>) cb.sum(left, right);\n \n \t\t\t\tcase JpqlParser.Minus_Sign:\n \t\t\t\t\treturn (AbstractExpression<X>) cb.diff(left, right);\n \n \t\t\t\tcase JpqlParser.Multiplication_Sign:\n \t\t\t\t\treturn (AbstractExpression<X>) cb.prod(left, right);\n \n \t\t\t\tcase JpqlParser.Division_Sign:\n \t\t\t\t\treturn (AbstractExpression<X>) cb.quot(left, right);\n \t\t\t}\n \t\t}\n \n \t\tif (exprDef.getType() == JpqlParser.ST_BOOLEAN) {\n \t\t\treturn (AbstractExpression<X>) this.getExpression(cb, q, exprDef, Boolean.class);\n \t\t}\n \n \t\tif (exprDef.getType() == JpqlParser.NUMERIC_LITERAL) {\n \t\t\treturn (AbstractExpression<X>) new SimpleConstantExpression<Long>(this.metamodel.createBasicType(Long.class), Long.valueOf(exprDef.getText()));\n \t\t}\n \n \t\t// string literal\n \t\tif (exprDef.getType() == JpqlParser.STRING_LITERAL) {\n \t\t\tif (javaType == Character.class) {\n \t\t\t\treturn (AbstractExpression<X>) new SimpleConstantExpression<Character>(this.metamodel.type(Character.class), //\n \t\t\t\t\texprDef.getText().substring(1, 2).toCharArray()[0]);\n \t\t\t}\n \n \t\t\treturn (AbstractExpression<X>) new SimpleConstantExpression<String>(this.metamodel.type(String.class), //\n \t\t\t\texprDef.getText().substring(1, exprDef.getText().length() - 1));\n \t\t}\n \n \t\t// functions returning string\n \t\tif ((exprDef.getType() == JpqlParser.UPPER) //\n \t\t\t|| (exprDef.getType() == JpqlParser.LOWER) //\n \t\t\t|| (exprDef.getType() == JpqlParser.SUBSTRING)) {\n \n \t\t\tfinal AbstractExpression<String> argument = this.getExpression(cb, q, exprDef.getChild(0), null);\n \n \t\t\tswitch (exprDef.getType()) {\n \t\t\t\tcase JpqlParser.UPPER:\n \t\t\t\t\treturn (AbstractExpression<X>) cb.upper(argument);\n \n \t\t\t\tcase JpqlParser.LOWER:\n \t\t\t\t\treturn (AbstractExpression<X>) cb.lower(argument);\n \n \t\t\t\tcase JpqlParser.SUBSTRING:\n \t\t\t\t\tfinal AbstractExpression<Integer> start = this.getExpression(cb, q, exprDef.getChild(1), Integer.class);\n \t\t\t\t\tfinal AbstractExpression<Integer> end = exprDef.getChildCount() == 3 ? //\n \t\t\t\t\t\tthis.getExpression(cb, q, exprDef.getChild(2), Integer.class) : null;\n \n \t\t\t\t\treturn (AbstractExpression<X>) new SubstringExpression(argument, start, end);\n \t\t\t}\n \t\t}\n \n \t\t// concat function\n \t\tif (exprDef.getType() == JpqlParser.CONCAT) {\n \t\t\tfinal List<Expression<String>> arguments = Lists.newArrayList();\n \t\t\tfor (int i = 0; i < exprDef.getChildCount(); i++) {\n \t\t\t\targuments.add(this.getExpression(cb, q, exprDef.getChild(i), String.class));\n \t\t\t}\n \n \t\t\treturn (AbstractExpression<X>) new ConcatExpression(arguments.toArray(new Expression[arguments.size()]));\n \t\t}\n \n \t\t// trim function\n \t\tif (exprDef.getType() == JpqlParser.TRIM) {\n \t\t\tTrimspec trimspec = null;\n \t\t\tExpression<Character> trimChar = null;\n \t\t\tExpression<String> inner = null;\n \n \t\t\tint i = 0;\n \t\t\tfinal int type = exprDef.getChild(i).getType();\n \n \t\t\t// trim spec\n \t\t\tif (type == JpqlParser.BOTH) {\n \t\t\t\ttrimspec = Trimspec.BOTH;\n \t\t\t\ti++;\n \t\t\t}\n \t\t\telse if (type == JpqlParser.LEADING) {\n \t\t\t\ttrimspec = Trimspec.LEADING;\n \t\t\t\ti++;\n \t\t\t}\n \t\t\telse if (type == JpqlParser.TRAILING) {\n \t\t\t\ttrimspec = Trimspec.TRAILING;\n \t\t\t\ti++;\n \t\t\t}\n \n \t\t\tif (exprDef.getChildCount() > (i + 1)) {\n \t\t\t\ttrimChar = this.getExpression(cb, q, exprDef.getChild(i), Character.class);\n \t\t\t\tinner = this.getExpression(cb, q, exprDef.getChild(i + 1), String.class);\n \t\t\t}\n \t\t\telse {\n \t\t\t\tinner = this.getExpression(cb, q, exprDef.getChild(i), String.class);\n \t\t\t}\n \n \t\t\treturn (AbstractExpression<X>) new TrimExpression(trimspec, trimChar, inner);\n \t\t}\n \n \t\t// type functions\n \t\tif ((exprDef.getType() == JpqlParser.TYPE) || (exprDef.getType() == JpqlParser.ST_ENTITY_TYPE)) {\n \t\t\tswitch (exprDef.getType()) {\n \t\t\t\tcase JpqlParser.TYPE:\n \t\t\t\t\tfinal AbstractExpression<?> inner = this.getExpression(cb, q, exprDef.getChild(0), null);\n \n \t\t\t\t\treturn (AbstractExpression<X>) ((AbstractPath<?>) inner).type();\n \n \t\t\t\tcase JpqlParser.ST_ENTITY_TYPE:\n \t\t\t\t\tfinal EntityTypeImpl<?> entity = this.getEntity(exprDef.getChild(0).getText());\n \t\t\t\t\tif (entity.getRootType().getInheritanceType() == null) {\n \t\t\t\t\t\tthrow new PersistenceException(\"Entity does not have inheritence: \" + entity.getName() + \", line \" + exprDef.getLine() + \":\"\n \t\t\t\t\t\t\t+ exprDef.getCharPositionInLine());\n \t\t\t\t\t}\n \n \t\t\t\t\treturn (AbstractExpression<X>) new SimpleConstantExpression<String>(null, entity.getDiscriminatorValue());\n \t\t\t}\n \t\t}\n \n \t\t// date time functions\n \t\tswitch (exprDef.getType()) {\n \t\t\tcase JpqlParser.CURRENT_DATE:\n \t\t\t\treturn (AbstractExpression<X>) cb.currentDate();\n \n \t\t\tcase JpqlParser.CURRENT_TIME:\n \t\t\t\treturn (AbstractExpression<X>) cb.currentTime();\n \n \t\t\tcase JpqlParser.CURRENT_TIMESTAMP:\n \t\t\t\treturn (AbstractExpression<X>) cb.currentTimestamp();\n \n \t\t\tcase JpqlParser.SECOND:\n \t\t\t\treturn (AbstractExpression<X>) cb.dateTimeExpression(DateTimeFunctionType.SECOND, this.getExpression(cb, q, exprDef.getChild(0), Date.class));\n \n \t\t\tcase JpqlParser.MINUTE:\n \t\t\t\treturn (AbstractExpression<X>) cb.dateTimeExpression(DateTimeFunctionType.MINUTE, this.getExpression(cb, q, exprDef.getChild(0), Date.class));\n \n \t\t\tcase JpqlParser.HOUR:\n \t\t\t\treturn (AbstractExpression<X>) cb.dateTimeExpression(DateTimeFunctionType.HOUR, this.getExpression(cb, q, exprDef.getChild(0), Date.class));\n \n \t\t\tcase JpqlParser.DAY:\n \t\t\tcase JpqlParser.DAYOFMONTH:\n \t\t\t\treturn (AbstractExpression<X>) cb.dateTimeExpression(DateTimeFunctionType.DAYOFMONTH,\n \t\t\t\t\tthis.getExpression(cb, q, exprDef.getChild(0), Date.class));\n \n \t\t\tcase JpqlParser.DAYOFWEEK:\n \t\t\t\treturn (AbstractExpression<X>) cb.dateTimeExpression(DateTimeFunctionType.DAYOFWEEK, this.getExpression(cb, q, exprDef.getChild(0), Date.class));\n \n \t\t\tcase JpqlParser.DAYOFYEAR:\n \t\t\t\treturn (AbstractExpression<X>) cb.dateTimeExpression(DateTimeFunctionType.DAYOFYEAR, this.getExpression(cb, q, exprDef.getChild(0), Date.class));\n \n \t\t\tcase JpqlParser.MONTH:\n \t\t\t\treturn (AbstractExpression<X>) cb.dateTimeExpression(DateTimeFunctionType.MONTH, this.getExpression(cb, q, exprDef.getChild(0), Date.class));\n \n \t\t\tcase JpqlParser.WEEK:\n \t\t\t\treturn (AbstractExpression<X>) cb.dateTimeExpression(DateTimeFunctionType.WEEK, this.getExpression(cb, q, exprDef.getChild(0), Date.class));\n \n \t\t\tcase JpqlParser.YEAR:\n \t\t\t\treturn (AbstractExpression<X>) cb.dateTimeExpression(DateTimeFunctionType.YEAR, this.getExpression(cb, q, exprDef.getChild(0), Date.class));\n \t\t}\n \n \t\t// arithmetic functions\n \t\tswitch (exprDef.getType()) {\n \t\t\tcase JpqlParser.ABS:\n \t\t\t\treturn (AbstractExpression<X>) cb.abs(this.getExpression(cb, q, exprDef.getChild(0), Number.class));\n \n \t\t\tcase JpqlParser.SQRT:\n \t\t\t\treturn (AbstractExpression<X>) cb.sqrt(this.getExpression(cb, q, exprDef.getChild(0), Number.class));\n \n \t\t\tcase JpqlParser.MOD:\n \t\t\t\treturn (AbstractExpression<X>) cb.mod(//\n \t\t\t\t\tthis.getExpression(cb, q, exprDef.getChild(0), Integer.class), //\n \t\t\t\t\tthis.getExpression(cb, q, exprDef.getChild(1), Integer.class));\n \n \t\t\tcase JpqlParser.LOCATE:\n \t\t\t\tif (exprDef.getChildCount() == 3) {\n \t\t\t\t\treturn (AbstractExpression<X>) cb.locate(//\n \t\t\t\t\t\tthis.getExpression(cb, q, exprDef.getChild(0), String.class), //\n \t\t\t\t\t\tthis.getExpression(cb, q, exprDef.getChild(1), String.class), //\n \t\t\t\t\t\tthis.getExpression(cb, q, exprDef, Integer.class));\n \t\t\t\t}\n \n \t\t\t\treturn (AbstractExpression<X>) cb.locate(//\n \t\t\t\t\tthis.getExpression(cb, q, exprDef.getChild(0), String.class), //\n \t\t\t\t\tthis.getExpression(cb, q, exprDef.getChild(1), String.class));\n \n \t\t\tcase JpqlParser.LENGTH:\n \t\t\t\treturn (AbstractExpression<X>) cb.length(this.getExpression(cb, q, exprDef.getChild(0), String.class));\n \t\t}\n \n \t\t// aggregate functions\n \t\tswitch (exprDef.getType()) {\n \t\t\tcase JpqlParser.AVG:\n \t\t\t\treturn (AbstractExpression<X>) cb.avg(this.getExpression(cb, q, exprDef.getChild(0), Number.class));\n \t\t\tcase JpqlParser.SUM:\n \t\t\t\treturn (AbstractExpression<X>) cb.sum(this.getExpression(cb, q, exprDef.getChild(0), Long.class));\n \t\t\tcase JpqlParser.MAX:\n \t\t\t\treturn (AbstractExpression<X>) cb.max(this.getExpression(cb, q, exprDef.getChild(0), Number.class));\n \t\t\tcase JpqlParser.MIN:\n \t\t\t\treturn (AbstractExpression<X>) cb.min(this.getExpression(cb, q, exprDef.getChild(0), Number.class));\n \t\t}\n \n \t\t// count function\n \t\tif (exprDef.getType() == JpqlParser.COUNT) {\n \t\t\tif (exprDef.getChildCount() == 2) {\n \t\t\t\treturn (AbstractExpression<X>) new CountExpression(this.getExpression(cb, q, exprDef.getChild(1), null), true);\n \t\t\t}\n \n \t\t\treturn (AbstractExpression<X>) new CountExpression(this.getExpression(cb, q, exprDef.getChild(0), null), false);\n \t\t}\n \n \t\t// all or any operator\n \t\tif (exprDef.getType() == JpqlParser.ST_ALL_OR_ANY) {\n \t\t\t// all, any, some expressions\n \t\t\tswitch (exprDef.getChild(0).getType()) {\n \t\t\t\tcase JpqlParser.ALL:\n \t\t\t\t\treturn new AllAnyExpression<X>(true, this.constructSubquery(cb, q, exprDef.getChild(1), javaType));\n \n \t\t\t\tcase JpqlParser.ANY:\n \t\t\t\tcase JpqlParser.SOME:\n \t\t\t\t\treturn new AllAnyExpression<X>(false, this.constructSubquery(cb, q, exprDef.getChild(1), javaType));\n \t\t\t}\n \t\t}\n \n \t\t// exists operator\n \t\tif (exprDef.getType() == JpqlParser.EXISTS) {\n \t\t\treturn (AbstractExpression<X>) new ExistsExpression(this.constructSubquery(cb, q, exprDef.getChild(0), javaType));\n \t\t}\n \n \t\t// not operator\n \t\tif (exprDef.getType() == JpqlParser.NOT) {\n \t\t\tfinal Tree innerExpression = exprDef.getChild(0);\n \n \t\t\tfinal AbstractExpression<Boolean> expression = innerExpression.getType() == JpqlParser.LOR ? this.constructJunction(cb, q, innerExpression)\n \t\t\t\t: this.getExpression(cb, q, innerExpression, Boolean.class);\n \n \t\t\treturn (AbstractExpression<X>) new PredicateImpl(true, BooleanOperator.AND, expression);\n \t\t}\n \n \t\t// general case\n \t\tif (exprDef.getType() == JpqlParser.ST_GENERAL_CASE) {\n \t\t\tfinal CaseImpl<Object> caseExpr = cb.selectCase();\n \n \t\t\tfor (int i = 0; i < exprDef.getChildCount(); i++) {\n \t\t\t\tfinal Tree caseDef = exprDef.getChild(i);\n \n \t\t\t\tif (caseDef.getType() == JpqlParser.WHEN) {\n \t\t\t\t\tcaseExpr.when(this.constructJunction(cb, q, caseDef.getChild(0)), this.getExpression(cb, q, caseDef.getChild(1), null));\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tcaseExpr.otherwise(this.getExpression(cb, q, caseDef, null));\n \t\t\t\t}\n \t\t\t}\n \n \t\t\treturn (AbstractExpression<X>) caseExpr;\n \t\t}\n \n \t\t// simple case\n \t\tif (exprDef.getType() == JpqlParser.CASE) {\n \t\t\tfinal AbstractExpression<X> expression = this.getExpression(cb, q, exprDef.getChild(0), null);\n \t\t\tfinal SimpleCaseImpl<X, Object> caseExpr = cb.selectCase(expression);\n \n \t\t\tfor (int i = 1; i < exprDef.getChildCount(); i++) {\n \t\t\t\tfinal Tree caseDef = exprDef.getChild(i);\n \n \t\t\t\tif (caseDef.getType() == JpqlParser.WHEN) {\n \t\t\t\t\tfinal AbstractExpression<Object> result = this.getExpression(cb, q, caseDef.getChild(1), null);\n \n \t\t\t\t\tfinal AbstractExpression<X> condition;\n \n \t\t\t\t\tif (exprDef.getChild(0).getType() == JpqlParser.TYPE) {\n \t\t\t\t\t\tfinal EntityTypeImpl<Object> entity = this.getEntity(caseDef.getChild(0).getText());\n \n \t\t\t\t\t\tif (entity.getRootType().getInheritanceType() == null) {\n \t\t\t\t\t\t\tthrow new PersistenceException(\"Entity does not have inheritence: \" + entity.getName() + \", line \" + exprDef.getLine() + \":\"\n \t\t\t\t\t\t\t\t+ exprDef.getCharPositionInLine());\n \t\t\t\t\t\t}\n \n \t\t\t\t\t\tcondition = (AbstractExpression<X>) new SimpleConstantExpression<String>(null, entity.getDiscriminatorValue());\n \t\t\t\t\t}\n \t\t\t\t\telse {\n \t\t\t\t\t\tcondition = this.getExpression(cb, q, caseDef.getChild(0), null);\n \t\t\t\t\t}\n \n \t\t\t\t\tcaseExpr.when(condition, result);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tcaseExpr.otherwise(this.getExpression(cb, q, caseDef, null));\n \t\t\t\t}\n \t\t\t}\n \n \t\t\treturn (AbstractExpression<X>) caseExpr;\n \t\t}\n \n \t\t// nullif function\n \t\tif (exprDef.getType() == JpqlParser.NULLIF) {\n \t\t\tfinal AbstractExpression<X> left = this.getExpression(cb, q, exprDef.getChild(0), null);\n \t\t\tfinal AbstractExpression<?> right = this.getExpression(cb, q, exprDef.getChild(1), null);\n \n \t\t\treturn new NullIfExpression<X>(left, right);\n \t\t}\n \n \t\t// coalesce function\n \t\tif (exprDef.getType() == JpqlParser.ST_COALESCE) {\n \t\t\tfinal CoalesceExpression<X> coalesce = cb.coalesce();\n \t\t\tfor (int i = 0; i < exprDef.getChildCount(); i++) {\n \t\t\t\tcoalesce.value(this.getExpression(cb, q, exprDef.getChild(i), javaType));\n \t\t\t}\n \n \t\t\treturn coalesce;\n \t\t}\n \n \t\t// db func\n \t\tif (exprDef.getType() == JpqlParser.FUNC) {\n \t\t\tfinal List<AbstractExpression<?>> arguments = Lists.newArrayList();\n \t\t\tfinal String function = exprDef.getChild(0).getText();\n \n \t\t\tfor (int i = 1; i < exprDef.getChildCount(); i++) {\n \t\t\t\targuments.add(this.getExpression(cb, q, exprDef.getChild(i), null));\n \t\t\t}\n \n \t\t\treturn new FunctionExpression<X>((Class<X>) (javaType != null ? javaType : Object.class), //\n \t\t\t\tfunction, arguments.toArray(new Expression<?>[arguments.size()]));\n \t\t}\n \n \t\t// index expression\n \t\tif (exprDef.getType() == JpqlParser.INDEX) {\n \t\t\tfinal AbstractExpression<Object> expression = this.getExpression(cb, q, exprDef.getChild(0), null);\n \n \t\t\tif (expression instanceof ListJoinImpl) {\n \t\t\t\treturn (AbstractExpression<X>) ((ListJoinImpl<?, ?>) expression).index();\n \t\t\t}\n \n \t\t\tthrow new PersistenceException(\"Reference is not a list join, line \" + exprDef.getLine() + \":\" + exprDef.getCharPositionInLine());\n \t\t}\n \n \t\t// empty operation\n \t\tif (exprDef.getType() == JpqlParser.ST_EMPTY) {\n \t\t\tAbstractExpression<?> expression = this.getExpression(cb, q, exprDef.getChild(0), null);\n \n \t\t\tif (expression instanceof MapExpression) {\n \t\t\t\texpression = ((MapExpression<Map<?, ?>, ?, ?>) expression).values();\n \t\t\t}\n \n \t\t\tif (!(expression instanceof CollectionExpression<?, ?>)) {\n \t\t\t\tthrow new PersistenceException(\"Reference is not a collection, line \" + exprDef.getLine() + \":\" + exprDef.getCharPositionInLine());\n \t\t\t}\n \n \t\t\tif (exprDef.getChildCount() == 2) {\n \t\t\t\treturn (AbstractExpression<X>) cb.isNotEmpty((Expression<Collection<?>>) expression);\n \t\t\t}\n \t\t\telse {\n \t\t\t\treturn (AbstractExpression<X>) cb.isEmpty((Expression<Collection<?>>) expression);\n \t\t\t}\n \t\t}\n \n \t\t// member of operation\n \t\tif (exprDef.getType() == JpqlParser.ST_MEMBER) {\n \t\t\tfinal AbstractExpression<?> expression = this.getExpression(cb, q, exprDef.getChild(1), null);\n \t\t\tif (!(expression instanceof CollectionExpression)) {\n \t\t\t\tthrow new PersistenceException(\"Member of expression must evaluate to a collection expression, \" + exprDef.getLine() + \":\"\n \t\t\t\t\t+ exprDef.getCharPositionInLine());\n \t\t\t}\n \n \t\t\tfinal CollectionExpression<C, E> collection = (CollectionExpression<C, E>) expression;\n \t\t\tfinal PluralAttributeImpl<?, C, E> attribute = (PluralAttributeImpl<?, C, E>) collection.getMapping().getAttribute();\n \n \t\t\tfinal AbstractExpression<E> elem = this.getExpression(cb, q, exprDef.getChild(0), attribute.getElementType().getJavaType());\n \n \t\t\tif (exprDef.getChildCount() == 3) {\n \t\t\t\treturn (AbstractExpression<X>) cb.isNotMember(elem, collection);\n \t\t\t}\n \t\t\telse {\n \t\t\t\treturn (AbstractExpression<X>) cb.isMember(elem, collection);\n \t\t\t}\n \t\t}\n \n \t\t// size operation\n \t\tif (exprDef.getType() == JpqlParser.SIZE) {\n \t\t\tfinal AbstractExpression<?> expression = this.getExpression(cb, q, exprDef.getChild(0), null);\n \t\t\tif (!(expression instanceof CollectionExpression)) {\n \t\t\t\tthrow new PersistenceException(\"Member of expression must evaluate to a collection expression, \" + exprDef.getLine() + \":\"\n \t\t\t\t\t+ exprDef.getCharPositionInLine());\n \t\t\t}\n \n \t\t\tfinal CollectionExpression<C, E> collection = (CollectionExpression<C, E>) expression;\n \n \t\t\treturn (AbstractExpression<X>) cb.size(collection);\n \t\t}\n \n \t\tif (exprDef.getType() == JpqlParser.CAST) {\n \t\t\tfinal AbstractExpression<?> left = this.getExpression(cb, q, exprDef.getChild(0), null);\n \t\t\tClass<?> clazz = null;\n \n \t\t\tswitch (exprDef.getChild(1).getType()) {\n \t\t\t\tcase JpqlParser.BYTE:\n \t\t\t\t\tclazz = Byte.class;\n \t\t\t\t\tbreak;\n \t\t\t\tcase JpqlParser.SHORT:\n \t\t\t\t\tclazz = Short.class;\n \t\t\t\t\tbreak;\n \t\t\t\tcase JpqlParser.INT:\n \t\t\t\tcase JpqlParser.INTEGER:\n \t\t\t\t\tclazz = Integer.class;\n \t\t\t\t\tbreak;\n \t\t\t\tcase JpqlParser.LONG:\n \t\t\t\t\tclazz = Long.class;\n \t\t\t\t\tbreak;\n \t\t\t\tcase JpqlParser.FLOAT:\n \t\t\t\t\tclazz = Float.class;\n \t\t\t\t\tbreak;\n \t\t\t\tcase JpqlParser.DOUBLE:\n \t\t\t\t\tclazz = Double.class;\n \t\t\t\t\tbreak;\n \t\t\t\tdefault:\n \t\t\t\t\tclazz = String.class;\n \t\t\t}\n \n \t\t\treturn (AbstractExpression<X>) cb.cast(left, clazz);\n \t\t}\n \n \t\tthrow new PersistenceException(\"Unhandled expression: \" + exprDef.toStringTree() + \", line \" + exprDef.getLine() + \":\"\n \t\t\t+ exprDef.getCharPositionInLine());\n \t}", "Expression getExp();", "protected Expression buildExpression() {\r\n ExpressionBuilder builder = new ExpressionBuilder();\r\n\r\n return builder.getField(getWriteLockField()).equal(builder.getParameter(getWriteLockField()));\r\n }", "List getExpressions();", "public Expression(String expr) {\n this.expr = expr;\n scalars = null;\n arrays = null;\n openingBracketIndex = null;\n closingBracketIndex = null;\n }", "public SearchOptions(Node[] nodesToSearch, Pattern regexPattern) {\n this.nodesToSearch = nodesToSearch;\n this.regexPattern = regexPattern;\n searchNodes = true;\n checkNodesToSearch();\n }", "public PathExpressionIF createPathExpression();", "XExpr createXExpr();", "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 }", "List<TypePatientPropertyCondition> search(String query);", "public Expression generateExpression(GenerationContext context) {\r\n Expression whereClause = getLeft().generateExpression(context);\r\n List arguments = getTheObjects();\r\n Node firstArg = (Node)arguments.get(0);\r\n if (firstArg.isSubqueryNode()) {\r\n SubqueryNode subqueryNode = (SubqueryNode)firstArg;\r\n ReportQuery reportQuery = subqueryNode.getReportQuery(context);\r\n if (notIndicated()) {\r\n whereClause = whereClause.notIn(reportQuery);\r\n }\r\n else {\r\n whereClause = whereClause.in(reportQuery);\r\n }\r\n } else if (isListParameterOrSubquery && firstArg.isParameterNode()) {\r\n if (notIndicated()) {\r\n whereClause = whereClause.notIn(firstArg.generateExpression(context));\r\n } else {\r\n whereClause = whereClause.in(firstArg.generateExpression(context));\r\n }\r\n } else {\r\n Vector inArguments = new Vector(arguments.size());\r\n for (Iterator iter = arguments.iterator(); iter.hasNext();) {\r\n Node nextNode = (Node)iter.next();\r\n inArguments.add(nextNode.generateExpression(context));\r\n }\r\n if (inArguments.size() > 0) {\r\n if (notIndicated()) {\r\n whereClause = whereClause.notIn(inArguments);\r\n } else {\r\n whereClause = whereClause.in(inArguments);\r\n }\r\n }\r\n }\r\n return whereClause;\r\n }", "LikeOperand createLikeOperand();", "public abstract Expression generateExpression(GenerationContext context);", "private SearchRequestBuilder createSearchBuilder(StoreURL storeURL, EsQuery esQuery) {\n SearchRequestBuilder searchBuilder = this.getClient(storeURL)\n .prepareSearch(esQuery.getGraph())\n .setQuery(RootBuilder.get(esQuery))\n .setFetchSource(true)\n .setFrom(esQuery.getPageNo())\n .setSize(esQuery.getPageSize());\n if(CollectionUtils.isNotEmpty(esQuery.getSchemas())){\n searchBuilder.setTypes(esQuery.getSchemas().toArray(new String[]{}));\n }\n this.addAggregations(esQuery, searchBuilder); // aggregation\n this.addSortFields(esQuery, searchBuilder); // sort\n this.addHighlightFields(esQuery, searchBuilder); // highlight\n return searchBuilder;\n }", "public Query(Class c, String variable, String expression) {\r\n\t\t_product = c;\r\n\t\t_variable = variable;\r\n\t\t_expression = expression;\r\n\r\n\t}", "Expr expr();", "protected StringBuilder generateQuery() {\n StringBuilder sb = new StringBuilder();\n sb.append(\" FROM \") \n .append(dao.getParameterClass(0).getName())\n .append(\" d WHERE (:incorrectEvent = '' OR d.incorrectEvent.id = :incorrectEvent) \")\n .append(\"AND (d.createDate BETWEEN :dateFrom AND :dateTo ) \")\n .append(\"AND ( ((:incorrectEvent ='' AND :incorrectEventName!='' AND UPPER(d.incorrectEvent.name) LIKE :incorrectEventName) \")\n .append(\" OR (:incorrectEvent ='' AND :incorrectEventName!='' AND UPPER(d.incorrectEvent.name) LIKE :incorrectEventName)) \")\n .append(\" OR (:search='' OR d.searchField LIKE :search) ) \");\n return sb;\n }", "public RegularExpression() {\n }", "private ExpressionTools(){\n\t\t\n\t}", "public SearchOptions(Node[] nodesToSearch, Pattern regexPattern, boolean onlyMatchWholeAttributeValue) {\n this.nodesToSearch = nodesToSearch;\n this.regexPattern = regexPattern;\n this.onlyMatchWholeAttributeValue = onlyMatchWholeAttributeValue;\n searchNodes = true;\n }", "NumericExpression createNumericExpression();", "public static Term createRegExp(Expression exp) {\r\n\t\tTerm term = Term.function(REGEX, exp);\r\n\t\treturn term;\r\n\t}", "public FindOperationEvaluator(boolean negate) {\r\n this.negate = negate;\r\n }", "default E find(String key, Object value) {\n\t\tSearchCritera searchCritera = new SearchCritera(key, value);\n\t\treturn find(() -> searchCritera);\n\t}", "public SQLQueryCompiler(FilterFactory<SQLConstraint> factory,\n EntityDescriptor descriptor,\n String query,\n List<QueryField> searchFields) {\n super(factory, descriptor, query, searchFields);\n }", "public Query(){\n this(new MongoQueryFilter.MongoQueryFilterBuilder());\n }", "public Expression(IExpressionPart expressionPart)\r\n\t{\r\n\t\tthis.expressionPart = expressionPart;\r\n\t}", "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}", "public static JRDesignExpression createExpression(String text, Class valueClass) {\n\t\tString valueClassName = null;\n\t\tif (valueClass != null) {\n\t\t\tvalueClassName = valueClass.getName();\n\t\t\tif (valueClass.isArray())\n\t\t\t\tvalueClassName = null;\n\t\t\telse if (valueClass.isArray())\n\t\t\t\tvalueClassName = null;\n\t\t\telse if (valueClass.isPrimitive())\n\t\t\t\tvalueClassName = null;\n\t\t}\n\t\treturn createExpression(text, valueClassName);\n\t}", "public com.clarifai.grpc.api.Search.Builder getSearchBuilder() {\n return getSearchFieldBuilder().getBuilder();\n }", "public ExpressionPatternModel() {\n }", "public String buildFilterString(SearchCriteria search){\n System.out.println(search);\n\n int i = 0;\n if(search.getTitle().equals(\"title\")){\n i++;\n }\n if(search.getAuthor().equals(\"author\")){\n i++;\n }\n if(search.getPublisher().equals(\"publisher\")){\n i++;\n }\n if(search.getLanguage().equals(\"language\")){\n i++;\n }\n if(search.getFormat().equals(\"format\")){\n i++;\n }\n if(search.getIsbn10().equals(\"isbn10\")){\n i++;\n }\n if(search.getIsbn13().equals(\"isbn13\")){\n i++;\n }\n\n String filter = \"SELECT * from testdb.book WHERE\";\n System.out.println(filter);\n System.out.println(\"number of filters \" + i);\n if(search.getTitle().equals(\"title\")){\n i--;\n System.out.println(filter);\n\n filter += \" title LIKE '%\" + search.getSearch() + \"%'\";\n if(i>0){\n\n filter += \" OR\";\n\n }\n }\n if(search.getAuthor().equals(\"author\")){\n i--;\n filter += \" author LIKE '%\" + search.getSearch() + \"%'\";\n if(i>0){\n\n filter += \" OR\";\n\n }\n }\n if(search.getPublisher().equals(\"publisher\")){\n i--;\n filter += \" publisher LIKE '%\" + search.getSearch() + \"%'\";\n if(i>0){\n filter +=\" OR\";\n\n }\n }\n if(search.getLanguage().equals(\"language\")){\n i--;\n filter += \" language LIKE '%\" + search.getSearch() + \"%'\";\n if(i>0){\n filter += \" OR\";\n }\n }\n if(search.getFormat().equals(\"format\")){\n i--;\n filter += \" format LIKE '%\" + search.getSearch() + \"%'\";\n if(i>0){\n filter += \" OR\";\n }\n }\n if(search.getIsbn10().equals(\"isbn10\")){\n i--;\n filter += \" isbn10 LIKE '%\" + search.getSearch() + \"%'\";\n if(i>0){\n filter += \" OR\";\n }\n }\n if(search.getIsbn13().equals(\"isbn13\")){\n\n filter += \" isbn13 LIKE '%\" + search.getSearch() + \"%'\";\n\n }\n System.out.println(\"END \" + filter);\n return filter;\n }", "public static QueryInterface createQuery() {\n return new XmlQuery();\n }", "private Equation createEquation() throws MainApplicationException {\r\n\t\tEquation equation = new Equation(false,\r\n\t\t\t\t\"a+b=c\", \r\n\t\t\t\tfalse, \r\n\t\t\t\tnew Parametre(), \r\n\t\t\t\t\"Insérer Propriété\",\r\n\t\t\t\t\"Insérer commentaire\");\r\n\t\tequation.setIsModifiable(true);\r\n\t\treturn equation;\r\n\t}" ]
[ "0.66162306", "0.6533307", "0.63051844", "0.59102786", "0.56820714", "0.5660278", "0.5589461", "0.5456623", "0.54412144", "0.53771573", "0.5356068", "0.5348414", "0.53476113", "0.53369296", "0.523009", "0.523009", "0.523009", "0.523009", "0.5219391", "0.52101254", "0.5209583", "0.5189701", "0.51781195", "0.5177032", "0.5167707", "0.5155323", "0.5137213", "0.5133869", "0.5133869", "0.5130556", "0.5120844", "0.509507", "0.50715375", "0.5069973", "0.50659966", "0.50589406", "0.505357", "0.50479704", "0.5040525", "0.5040102", "0.5039756", "0.50388706", "0.5029081", "0.50153184", "0.5013108", "0.50105065", "0.5009786", "0.5005938", "0.5005448", "0.50042045", "0.5001163", "0.4997735", "0.49796697", "0.49649552", "0.49416983", "0.4938858", "0.49361208", "0.49358833", "0.4912548", "0.49082735", "0.49076584", "0.4904423", "0.4902489", "0.48956072", "0.4879734", "0.48791677", "0.48716393", "0.48667887", "0.48626685", "0.48434424", "0.4842869", "0.48421532", "0.4838978", "0.48382276", "0.4828724", "0.4823139", "0.4814819", "0.48103794", "0.4802315", "0.4796487", "0.47962263", "0.47871995", "0.47843048", "0.47767112", "0.47605062", "0.47589377", "0.47527984", "0.47510937", "0.47411212", "0.47394073", "0.4731129", "0.47198072", "0.47173297", "0.47149178", "0.47097382", "0.47018555", "0.46980688", "0.4697623", "0.46965048", "0.46866497" ]
0.61577076
3
Creates a not search for this builder
public NotSearch not() { return new NotSearch(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NotSearch()\n\t\t{\n\t\t}", "public abstract Search create(String search, SearchBuilder builder);", "public MagicSearch createMagicSearch();", "private Search() {}", "public Search createSearch(String searchText)\n\t\t{\n\t\t\tStringBuilder sb = new StringBuilder(searchText);\n\t\t\ttrim(sb);\n\t\t\tSearch current = null;\n\t\t\twhile(sb.length() > 0)\n\t\t\t{\n\t\t\t\tboolean not = false;\n\t\t\t\tif(sb.length() > 1 && lower(sb.charAt(0)) == 'o' && lower(sb.charAt(1)) == 'r')\n\t\t\t\t{ // OR operator\n\t\t\t\t\tsb.delete(0, 2);\n\t\t\t\t\tExpressionSearch exp = exp(false);\n\t\t\t\t\texp.add(current);\n\t\t\t\t\tcurrent = exp;\n\t\t\t\t\ttrim(sb);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse if(sb.length() > 2 && lower(sb.charAt(0)) == 'a' && lower(sb.charAt(1)) == 'n'\n\t\t\t\t\t&& lower(sb.charAt(2)) == 'd')\n\t\t\t\t{\n\t\t\t\t\tsb.delete(0, 3);\n\t\t\t\t\ttrim(sb);\n\t\t\t\t}\n\t\t\t\telse if(sb.length() > 1 && sb.charAt(0) == '!')\n\t\t\t\t{\n\t\t\t\t\tsb.delete(0, 1);\n\t\t\t\t\ttrim(sb);\n\t\t\t\t\tnot = true;\n\t\t\t\t}\n\n\t\t\t\tSearch next;\n\t\t\t\tif(sb.charAt(0) == '(')\n\t\t\t\t{\n\t\t\t\t\tint c = goPastParen(sb, 0);\n\t\t\t\t\tString nextExpr = sb.substring(1, c).trim();\n\t\t\t\t\tif(nextExpr.length() == 0)\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"Empty parenthetical expression\");\n\t\t\t\t\tnext = createSearch(nextExpr);\n\t\t\t\t\tsb.delete(0, c + 1);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tnext = parseNext(sb);\n\t\t\t\tif(not)\n\t\t\t\t{\n\t\t\t\t\tNotSearch notS = not();\n\t\t\t\t\tnotS.setOperand(next);\n\t\t\t\t\tnext = notS;\n\t\t\t\t}\n\n\t\t\t\tif(current instanceof ExpressionSearch\n\t\t\t\t\t&& ((ExpressionSearch) current).getOperandCount() == 1)\n\t\t\t\t\t((ExpressionSearch) current).add(next);\n\t\t\t\telse if(current != null)\n\t\t\t\t{\n\t\t\t\t\tExpressionSearch exp = exp(true);\n\t\t\t\t\texp.addOps(current, next);\n\t\t\t\t\tcurrent = exp;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcurrent = next;\n\n\t\t\t\ttrim(sb);\n\t\t\t}\n\t\t\tif(current instanceof ExpressionSearch)\n\t\t\t\t((ExpressionSearch) current).simplify();\n\t\t\treturn current;\n\t\t}", "public Builder clearSearch() {\n if (searchBuilder_ == null) {\n if (inputSourceCase_ == 10) {\n inputSourceCase_ = 0;\n inputSource_ = null;\n onChanged();\n }\n } else {\n if (inputSourceCase_ == 10) {\n inputSourceCase_ = 0;\n inputSource_ = null;\n }\n searchBuilder_.clear();\n }\n return this;\n }", "@Override\n\tpublic boolean isSearching() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isSearching() {\n\t\treturn false;\n\t}", "public search() {\n }", "private SearchRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Query not() {\n builder.negateQuery();\n return this;\n }", "public Builder clearSearchValueNull() {\n \n searchValueNull_ = false;\n onChanged();\n return this;\n }", "public abstract Search defaultSearch(StringBuilder sb);", "private RejectEmailSearchBuilder() {\r\n // nothing\r\n }", "TSearchResults createSearchResults(TSearchQuery searchQuery);", "Q findFrom(C context, Description notFoundDescription);", "public Builder setSearchValueNull(boolean value) {\n \n searchValueNull_ = value;\n onChanged();\n return this;\n }", "public Builder clearSearchRequest() {\n if (searchRequestBuilder_ == null) {\n searchRequest_ = null;\n onChanged();\n } else {\n searchRequest_ = null;\n searchRequestBuilder_ = null;\n }\n\n return this;\n }", "public SearchDocument() {\n super();\n }", "public Builder clearSearchValue() {\n if (searchValueBuilder_ == null) {\n searchValue_ = null;\n onChanged();\n } else {\n searchValue_ = null;\n searchValueBuilder_ = null;\n }\n\n return this;\n }", "public Builder clearSearchPersonTypeIdNull() {\n \n searchPersonTypeIdNull_ = false;\n onChanged();\n return this;\n }", "private DynamicForm createSearchBox() {\r\n\t\tfinal DynamicForm filterForm = new DynamicForm();\r\n\t\tfilterForm.setNumCols(4);\r\n\t\tfilterForm.setAlign(Alignment.LEFT);\r\n\t\tfilterForm.setAutoFocus(false);\r\n\t\tfilterForm.setWidth(\"59%\"); //make it line up with sort box\r\n\t\t\r\n\t\tfilterForm.setDataSource(SmartGWTRPCDataSource.getInstance());\r\n\t\tfilterForm.setOperator(OperatorId.OR);\r\n\t\t\r\n\t\t//Visible search box\r\n\t\tTextItem nameItem = new TextItem(\"name\", \"Search\");\r\n\t\tnameItem.setAlign(Alignment.LEFT);\r\n\t\tnameItem.setOperator(OperatorId.ICONTAINS); // case insensitive\r\n\t\t\r\n\t\t//The rest are hidden and populated with the contents of nameItem\r\n\t\tfinal HiddenItem companyItem = new HiddenItem(\"company\");\r\n\t\tcompanyItem.setOperator(OperatorId.ICONTAINS);\r\n\t\tfinal HiddenItem ownerItem = new HiddenItem(\"ownerNickName\");\r\n\t\townerItem.setOperator(OperatorId.ICONTAINS);\r\n\r\n\t\tfilterForm.setFields(nameItem,companyItem,ownerItem);\r\n\t\t\r\n\t\tfilterForm.addItemChangedHandler(new ItemChangedHandler() {\r\n\t\t\tpublic void onItemChanged(ItemChangedEvent event) {\r\n\t\t\t\tString searchTerm = filterForm.getValueAsString(\"name\");\r\n\t\t\t\tcompanyItem.setValue(searchTerm);\r\n\t\t\t\townerItem.setValue(searchTerm);\r\n\t\t\t\tif (searchTerm==null) {\r\n\t\t\t\t\titemsTileGrid.fetchData();\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tCriteria criteria = filterForm.getValuesAsCriteria();\r\n\t\t\t\t\titemsTileGrid.fetchData(criteria);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\treturn filterForm;\r\n\t}", "public String conductUnRestrictedSearchForItem()\r\n\t{\r\n\t\tAdvancedSearch_Model query = new AdvancedSearch_Model();\r\n\t\t\r\n\t\tif (this.typeFilter.equals(\"Subject\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.CONTAIN, Constants.SEARCH_DOCUMENT_FIELD_CATEGORY,\r\n\t\t\t \"\\\"\" + this.selectedItem.getTerm() + \"\\\"\");\r\n\t\t}\r\n\t\tif (this.typeFilter.equals(\"Type\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.TERM_QUERY, Constants.SEARCH_DOCUMENT_FIELD_TYPE, this.selectedItem.getTerm());\r\n\t\t}\r\n\t\tif (this.typeFilter.equals(\"Creator\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.CONTAIN, Constants.SEARCH_DOCUMENT_FIELD_CREATOR,\r\n\t\t\t \"\\\"\" + this.selectedItem.getTerm() + \"\\\"\");\r\n\t\t}\r\n\t\tif (this.typeFilter.equals(\"Location\"))\r\n\t\t{\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.TERM_QUERY, Constants.SEARCH_DOCUMENT_FIELD_LOCATION,\r\n\t\t\t this.selectedItem.getTerm());\r\n\t\t\tquery.addSearchTerm(Requirement.MUST, QueryType.TERM_QUERY, Constants.SEARCH_DOCUMENT_FIELD_TYPE, this.selectedItem.getType());\r\n\t\t}\r\n\t\t\r\n\t\t// Set the AdvancedSearch_Model on the Search Backing Bean\r\n\t\tthis.searchBackingBean.setAdvancedQueryModel(query);\r\n\t\tthis.searchBackingBean.setSimpleOrAdvanced(SimpleOrAdvanced.ADVANCED);\r\n\t\tthis.searchBackingBean.setSearchType(\"all\");\r\n\t\tthis.searchBackingBean.autoSearch();\r\n\t\t\r\n\t\treturn \"search\";\r\n\t}", "public QueryResultBuilder<T> applySearch(Option<Search> search);", "public FindCommand(String searchTerms) {\n super(false);\n this.searchTerms = searchTerms;\n }", "public Builder clearSearchUserReq() {\n copyOnWrite();\n instance.clearSearchUserReq();\n return this;\n }", "public SeleniumQueryObject not(String selector) {\n\t\treturn NotFunction.not(this, this.elements, selector);\n\t}", "public final Nfa buildNoAccept() {\n return buildInternal();\n }", "public com.clarifai.grpc.api.Search.Builder getSearchBuilder() {\n return getSearchFieldBuilder().getBuilder();\n }", "public Search() {\n this.timestamp = System.currentTimeMillis();\n }", "public Builder clearSearchNodeCharacteristicIdsNull() {\n \n searchNodeCharacteristicIdsNull_ = false;\n onChanged();\n return this;\n }", "Search getSearch();", "TSearchQuery createSearchQuery(SearchQueryDefinitionAPI searchQueryDefinition);", "public Units whereNot(UnitSelector.BooleanSelector selector)\n\t{\n\t\tUnits result = new Units();\n\t\tfor (Unit unit : this)\n\t\t{\n\t\t\tif (!selector.isTrueFor(unit))\n\t\t\t{\n\t\t\t\tresult.add(unit);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "@Override\n\tpublic void search() {\n\t}", "public Builder clearMissingResults() {\n \n missingResults_ = false;\n onChanged();\n return this;\n }", "Not createNot();", "Not createNot();", "public io.dstore.values.StringValue.Builder getSearchValueBuilder() {\n \n onChanged();\n return getSearchValueFieldBuilder().getBuilder();\n }", "public void search() {\n }", "public static OrderSearchExistsExpressionBuilder builder() {\n return OrderSearchExistsExpressionBuilder.of();\n }", "@Override\r\n\tpublic void search() {\n\r\n\t}", "public void search() {\r\n \t\r\n }", "public Builder clearSearchPersonTypeId() {\n if (searchPersonTypeIdBuilder_ == null) {\n searchPersonTypeId_ = null;\n onChanged();\n } else {\n searchPersonTypeId_ = null;\n searchPersonTypeIdBuilder_ = null;\n }\n\n return this;\n }", "@Test\n public void testSearchFilter_WithoutQuery() {\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n\n BridgeRequest request = new BridgeRequest();\n request.setStructure(\"user\");\n request.setFields(fields);\n request.setQuery(\"\");\n\n RecordList list = null;\n BridgeError unexpectedError = null;\n try {\n list = getAdapter().search(request);\n } catch (BridgeError e) {\n unexpectedError = e;\n }\n\n assertNull(unexpectedError);\n assertTrue(list.getRecords().size() > 0);\n }", "public Builder clearLocalSearchRequest() {\n if (localSearchRequestBuilder_ == null) {\n localSearchRequest_ = null;\n onChanged();\n } else {\n localSearchRequest_ = null;\n localSearchRequestBuilder_ = null;\n }\n\n return this;\n }", "public interface ISearch {\n\n Object build();\n}", "public Builder setSearchPersonTypeIdNull(boolean value) {\n \n searchPersonTypeIdNull_ = value;\n onChanged();\n return this;\n }", "public SearchSettings() { }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> doesNotContain(String field, String propertyValue);", "public Builder clearExists() {\n bitField0_ = (bitField0_ & ~0x00000001);\n exists_ = false;\n onChanged();\n return this;\n }", "private LocalSearchRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "void searchProbed (Search search);", "private SearchResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public entities.Torrent.SearchRequest.Builder getSearchRequestBuilder() {\n\n onChanged();\n return getSearchRequestFieldBuilder().getBuilder();\n }", "public SearchBuilder(final SearchableRepository<T> repository) {\n\t\tthis.repository = repository;\n\t\torder = new ArrayList<Map.Entry<String, Boolean>>(1);\n\t}", "public abstract S getSearch();", "CampusSearchQuery generateQuery();", "void propertyViolated (Search search);", "public void searchPlain() throws InvalidExpressionException\n {\n search(null, getAccessor().getApplication().getLocalRelationSet(), Filldirection.NONE, null, null, true);\n }", "private NodeSearchResult(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Search<SolutionType> copy() throws CoreHunterException;", "public entities.Torrent.LocalSearchRequest.Builder getLocalSearchRequestBuilder() {\n\n onChanged();\n return getLocalSearchRequestFieldBuilder().getBuilder();\n }", "@SuppressWarnings(\"unchecked\")\n private void initSearch() {\n if (searchBasic != null) {\n return;\n }\n try {\n // get a search class instance\n if (searchRecordTypeDesc.getSearchClass() != null) {\n search = (SearchT) searchRecordTypeDesc.getSearchClass().newInstance();\n }\n\n // get a advanced search class instance and set 'savedSearchId' into it\n searchAdvanced = null;\n if (StringUtils.isNotEmpty(savedSearchId)) {\n if (searchRecordTypeDesc.getSearchAdvancedClass() != null) {\n searchAdvanced = (SearchT) searchRecordTypeDesc.getSearchAdvancedClass().newInstance();\n Beans.setProperty(searchAdvanced, SAVED_SEARCH_ID, savedSearchId);\n } else {\n throw new NetSuiteException(new NetSuiteErrorCode(NetSuiteErrorCode.OPERATION_NOT_SUPPORTED),\n i18n.advancedSearchNotAllowed(recordTypeName));\n }\n }\n\n // basic search class not found or supported\n if (searchRecordTypeDesc.getSearchBasicClass() == null) {\n throw new NetSuiteException(new NetSuiteErrorCode(NetSuiteErrorCode.OPERATION_NOT_SUPPORTED),\n i18n.searchNotAllowed(recordTypeName));\n }\n\n // get a basic search class instance\n searchBasic = (SearchT) searchRecordTypeDesc.getSearchBasicClass().newInstance();\n\n } catch (InstantiationException | IllegalAccessException e) {\n throw new NetSuiteException(new NetSuiteErrorCode(NetSuiteErrorCode.INTERNAL_ERROR), e.getMessage(), e);\n }\n }", "AggregationBuilder buildExcludeFilteredAggregation(Set<String> excludeNames);", "@Override\n public Data3DPlastic search() {\n return super.search();\n }", "public void clearSearch(){\n search.clear();\n }", "public SearchCriteria initSearchCriteria() throws Exception {\n\t\treturn null;\n\t}", "public void setIdxSearchNoHtml(boolean idxSearchNoHtml) {\n Preferences prefs = getPreferences();\n prefs.putBoolean(PROP_SEARCH_NO_HTML, idxSearchNoHtml);\n }", "public MatchNoneQueryBuilder(StreamInput in) throws IOException {\n super(in);\n }", "@Override\r\n\tpublic String popupSearch(String criteria) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String popupSearch(String criteria) {\n\t\treturn null;\r\n\t}", "public Builder clearSearchUserRes() {\n copyOnWrite();\n instance.clearSearchUserRes();\n return this;\n }", "private void createSampleSearch() {\n String userNameToFind = \"mweston\";\n CustomUser user = userService.findByUserName(userNameToFind);\n List<Search> searches = user.getSearches();\n long mwestonUserId = user.getId();\n\n /**\n * The below check is done because when using a Postgres database I will not be using the\n * create-drop but instead validate so I do not want to make too many sample API requests\n * (such as every time I start up this application).\n */\n if(searches.size() > 0) {\n return ;\n }\n\n Search search = searchService.createSearch(SpringJPABootstrap.SAMPLE_ADDRESS);\n searchService.saveSearch(search, mwestonUserId);\n\n Search secondSearch = searchService.createSearch(SpringJPABootstrap.SAMPLE_ADDRESS_TWO);\n searchService.saveSearch(secondSearch, mwestonUserId);\n\n searchService.createSearch(SpringJPABootstrap.STONERIDGE_MALL_RD_SAMPLE_ADDRESS);\n\n search = searchService.createSearch(SpringJPABootstrap.SAMPLE_ADDRESS);\n searchService.saveSearch(search, mwestonUserId);\n\n search = searchService.createSearch(SpringJPABootstrap.SAMPLE_ADDRESS);\n searchService.saveSearch(search, mwestonUserId);\n\n search = searchService.createSearch(SpringJPABootstrap.SAMPLE_ADDRESS);\n searchService.saveSearch(search, mwestonUserId);\n\n search = searchService.createSearch(SpringJPABootstrap.SAMPLE_ADDRESS);\n searchService.saveSearch(search, mwestonUserId);\n }", "@Override\n public PaymentP2007_03 whereNotExists(Select<?> select) {\n return where(DSL.notExists(select));\n }", "private SearchServiceFactory() {}", "@Test\n public void testSearchFilter_WithAddedSearchBase_NoQueryParens() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"OU=Users(samaccountname=mary.olowu)\");\n request.setParameters(parameters);\n\n BridgeError unexpectedError = null;\n RecordList list = null;\n try {\n list = getAdapter().search(request);\n } catch (BridgeError e) {\n unexpectedError = e;\n }\n\n assertNull(unexpectedError);\n assertTrue(list.getRecords().size() > 0);\n }", "private void emptySearchFields() {\n view.setMinPrice(-1);\n view.setMaxPrice(-1);\n view.setMinSQM(-1);\n view.setMaxSQM(-1);\n view.setBedrooms(-1);\n view.setBathrooms(-1);\n view.setFloor(-1);\n view.setHeating(false); //Is supposed to be a checkbox so even unchecked it is false not empty\n view.setLocation(\"Athens\"); //Is supposed to get a string from a dropdown so it wil never be empty\n }", "abstract public void search();", "public Search(String value) {\n this(value, false);\n }", "public SearchBuilder<T> skip(final int offset) {\n\t\tthis.offset = offset;\n\t\treturn this;\n\t}", "public Builder clearSearchNodeCharacteristicIds() {\n if (searchNodeCharacteristicIdsBuilder_ == null) {\n searchNodeCharacteristicIds_ = null;\n onChanged();\n } else {\n searchNodeCharacteristicIds_ = null;\n searchNodeCharacteristicIdsBuilder_ = null;\n }\n\n return this;\n }", "private void createSearch(boolean realSearch) {\n\n\t\tString sqlQuery = new String();\n\n\t\tif (useLucene.isSelected()) {\n\n\t\t\tif (datachoose.getSelectedIndex() == data_ABOVE) {\n\t\t\t\t// need to reference the above data.\n\t\t\t\tString usp = (String) winG.getSelectedUser();\n\t\t\t\tString dates[] = winG.getDateRange_toptoolbar();\n\t\t\t\tsqlQuery = \"select distinct mailref,dates from email where sender = '\" + usp + \"' or rcpt = '\" + usp\n\t\t\t\t\t\t+ \"' and dates BETWEEN '\" + dates[winGui.startDate] + \"' AND '\" + dates[winGui.endDate]\n\t\t\t\t\t\t+ \"' \";\n\n\t\t\t} else if (datachoose.getSelectedIndex() == data_ALL) {\n\t\t\t\tsqlQuery = \"select distinct mailref,dates from email where type like 'text%'\";\n\t\t\t} else {\n\t\t\t\t// need to pop up sql\n\t\t\t\tsqlQuery = \"select distinct mailref,dates from email \" + queryText.getText().trim();\n\t\t\t}\n\n\t\t\tString results[][];\n\t\t\t// actual fetch of data\n\t\t\ttry {\n\t\t\t\tsynchronized (DBConnect) {\n\t\t\t\t\tresults = DBConnect.getSQLData(sqlQuery);\n\t\t\t\t}\n\t\t\t} catch (SQLException sqle) {\n\t\t\t\tsqle.printStackTrace();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (!realSearch) {\n\n\t\t\t\tJOptionPane.showMessageDialog(SearchEMT.this, \"The number of returned mailrefs are: \" + results.length);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tBusyWindow bw = new BusyWindow(\"Search Engine Setup\", \"Running\",true);\n\t\t\tbw.setMax(results.length);\n\t\t\tbw.setVisible(true);\n\t\t\t// need to setup prefetch cache\n\t\t\ttry {\n\t\t\t\tPreparedStatement ps = DBConnect\n\t\t\t\t\t\t.prepareStatementHelper(\"select hash,filename,type,body from message where mailref=?\");\n\n\t\t\t\t// real search need to build index here\n\t\t\t\t// TODO: see about adding path between folder and name\n\t\t\t\tIndexWriter writer = null;\n\t\t\t\t// stopanalyzer\n\t\t\t\t//writer = new IndexWriter(indexfolder + indexName.getText().trim(), new StandardAnalyzer(), true);\n\t\t\t\twriter = new IndexWriter(getIndexFileName(indexName.getText()), analyzer, true);\n\n\t\t\t\tDate start = new Date();\n\t\t\t\tfor (int i = 0; i < results.length; i++) {\n\t\t\t\t\tbw.progress(i);\n\n\t\t\t\t\tps.setString(1, results[i][0]);\n\n\t\t\t\t\tResultSet rs = ps.executeQuery();\n\t\t\t\t\twhile (rs.next()) {\n\t\t\t\t\t\tString type = rs.getString(3).toLowerCase();\n\n\t\t\t\t\t\tif (type.startsWith(\"image\") || type.startsWith(\"video\") || type.startsWith(\"audio\")) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tString hash = rs.getString(1);\n\t\t\t\t\t\tString name = rs.getString(2);\n\n\t\t\t\t\t\t// make a new, empty document\n\t\t\t\t\t\tDocument doc = new Document();\n\n\t\t\t\t\t\t// Add the path of the file as a field named \"path\". Use\n\t\t\t\t\t\t// a Text field, so\n\t\t\t\t\t\t// that the index stores the path, and so that the path\n\t\t\t\t\t\t// is searchable\n\t\t\t\t\t\tdoc.add(new Field(\"path\", hash,Field.Store.YES, Field.Index.UN_TOKENIZED));\n\t\t\t\t\t\tdoc.add(new Field(\"Date\", results[i][1],Field.Store.YES, Field.Index.UN_TOKENIZED));\n\t\t\t\t\t\tdoc.add(new Field(\"Type\", type,Field.Store.YES, Field.Index.UN_TOKENIZED));\n\t\t\t\t\t\tdoc.add(new Field(\"Name\", name,Field.Store.YES, Field.Index.UN_TOKENIZED));\n\t\t\t\t\t\tdoc.add(new Field(\"Mailref\", new String(results[i][0]),Field.Store.YES, Field.Index.UN_TOKENIZED));\n\t\t\t\t\t\t// Add the last modified date of the file a field named\n\t\t\t\t\t\t// \"modified\". Use a\n\t\t\t\t\t\t// Keyword field, so that it's searchable, but so that\n\t\t\t\t\t\t// no attempt is made\n\t\t\t\t\t\t// to tokenize the field into words.\n\t\t\t\t\t\t// doc.add(Field.Keyword(\"modified\",\n\t\t\t\t\t\t// DateField.timeToString(f.lastModified())));\n\n\t\t\t\t\t\t// Add the contents of the file a field named\n\t\t\t\t\t\t// \"contents\". Use a Text\n\t\t\t\t\t\t// field, specifying a Reader, so that the text of the\n\t\t\t\t\t\t// file is tokenized.\n\t\t\t\t\t\t// ?? why doesn't FileReader work here ??\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tjava.sql.Blob blob = rs.getBlob(4);\n\t\t\t\t\t\t\tint c;\n\t\t\t\t\t\t\tbyte buf[] = new byte[512];//\n\n\t\t\t\t\t\t\tInputStream is = blob.getBinaryStream();\n\t\t\t\t\t\t\tStringBuffer small2 = new StringBuffer(256);\n\t\t\t\t\t\t\twhile ((c = is.read(buf)) != -1) {\n\t\t\t\t\t\t\t\tsmall2.append(new String(buf, 0, c));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tString bodytext = small2.toString();\n\n\t\t\t\t\t\t\tdoc.add(new Field(\"contents\", bodytext,Field.Store.YES, Field.Index.TOKENIZED));\n\n\t\t\t\t\t\t\t// now to insert this doc.\n\t\t\t\t\t\t\twriter.addDocument(doc);\n\t\t\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\t\t\tioe.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbw.setTitle(\"optimizing\");\n\t\t\t\twriter.optimize();\n\t\t\t\twriter.close();\n\n\t\t\t\tDate end = new Date();\n\n\t\t\t\tSystem.out.print(end.getTime() - start.getTime());\n\t\t\t\tSystem.out.println(\" total milliseconds\");\n\n\t\t\t\tbw.setVisible(false);\n\n\t\t\t} catch (SQLException se) {\n\t\t\t\tse.printStackTrace();\n\t\t\t\treturn;\n\t\t\t} catch (IOException eio) {\n\t\t\t\teio.printStackTrace();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t} else {\n\t\t\t// we use emt indexing\n\t\t\t// TODO: create code here\n\n\t\t}\n\t}", "SearchResultsType createSearchResultsType();", "public void clearSearch() {\n searchParam = \"\";\n lazyModel = null;\n listRemotoFake = null;\n first = 0;\n rows = 10;\n }", "TSearchQuery prepareSearchQuery(SearchQueryDefinitionAPI searchQueryDefinition);", "private void searchFunction() {\n\t\t\r\n\t}", "public AbstractSearchEngine() {}", "public LibrarySearch() {\n\t\titems = new ArrayList<Reference>();\n\t}", "public String buildSearchQuery() throws Exception\r\n { \r\n String query;\r\n \r\n searchContext.setText(getSearchString());\r\n \r\n if(!locations.isEmpty())\r\n {\r\n searchContext.setLocations(locations);\r\n }\r\n\r\n if (ext != null) {\r\n for (AdvancedSearchOptions option : ext.getAdvOptionsExtensions()) {\r\n option.setSearchParam(searchContext);\r\n }\r\n }\r\n \r\n // we always want to exclude CAT ignore & hidden rendition aspects\r\n searchContext.setAspectToExclude(VeloConstants.ASPECT_IGNORE);\r\n searchContext.setAspectToExclude(VeloConstants.ASPECT_HIDDEN_RENDITION);\r\n\r\n // we always want to exclude thumbnail types\r\n searchContext.addTypeToExclude(VeloConstants.TYPE_THUMBNAIL);\r\n \r\n query = searchContext.buildQuery(2);\r\n logger.debug(\"AdvancedSearchQuery:\" + query);\r\n \r\n return query;\r\n \r\n }", "default Filter<T> negate()\n {\n final Filter<T> parent = this;\n\n return new Filter<T>()\n {\n @Override\n public boolean isFiltered(final T element)\n {\n return !parent.isFiltered(element);\n }\n\n @Override\n public Filter<T> negate()\n {\n return parent;\n }\n };\n }", "@Test\n public void testSearchFilter_WithoutAddedSearchBase_WithoutParensInQuery_WithoutParensInParam() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"samaccountname=mary.olowu\");\n request.setParameters(parameters);\n\n BridgeError expectedError = null;\n RecordList list = null;\n try {\n list = getAdapter().search(request);\n } catch (BridgeError e) {\n expectedError = e;\n }\n\n assertNotNull(expectedError);\n }", "public SearchConditionSB() {\r\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER, AdsUtility.SELECTOR_FIELD})\n SelectorBuilderInterface<SelectorT> doesNotContain(EntityField field, String propertyValue);", "private SearchRequestBuilder createSearchBuilder(StoreURL storeURL, EsQuery esQuery) {\n SearchRequestBuilder searchBuilder = this.getClient(storeURL)\n .prepareSearch(esQuery.getGraph())\n .setQuery(RootBuilder.get(esQuery))\n .setFetchSource(true)\n .setFrom(esQuery.getPageNo())\n .setSize(esQuery.getPageSize());\n if(CollectionUtils.isNotEmpty(esQuery.getSchemas())){\n searchBuilder.setTypes(esQuery.getSchemas().toArray(new String[]{}));\n }\n this.addAggregations(esQuery, searchBuilder); // aggregation\n this.addSortFields(esQuery, searchBuilder); // sort\n this.addHighlightFields(esQuery, searchBuilder); // highlight\n return searchBuilder;\n }", "@In String search();", "public WikiSearch minus(WikiSearch that)\n\t{\n\t\tMap<String, Double> inter = new HashMap<String, Double>();\n Set<String> keys = map.keySet();\n for(String current: keys)\n {\n \tif(!(that.map.containsKey(current)))\n \t\tinter.put(current, totalRelevance(getRelevance(current), that.getRelevance(current)));\n }\n\n return new WikiSearch(inter);\n\t}", "public NotSearchableException() {\n }", "public void onShowPopupNoSearchCriteria() {\n int left = view.getSearchContent().getElement().getAbsoluteLeft();\n int top = view.getSearchContent().getElement().getAbsoluteTop() + 40;\n VerticalPanel vp = new VerticalPanel();\n vp.addStyleName(StyleResource.INSTANCE.modal().suggestModal());\n vp.add(new Label(Storage.MSGS.searchNoSearchingCriteria()));\n PopupPanel popup = new PopupPanel(true);\n popup.setWidget(vp);\n popup.setPopupPosition(left, top);\n popup.show();\n }", "public Builder clearSearchResponse() {\n if (searchResponseBuilder_ == null) {\n searchResponse_ = null;\n onChanged();\n } else {\n searchResponse_ = null;\n searchResponseBuilder_ = null;\n }\n\n return this;\n }" ]
[ "0.68257594", "0.6340282", "0.616327", "0.60043734", "0.5925314", "0.5869623", "0.58521223", "0.58521223", "0.57369906", "0.57272834", "0.5689624", "0.56885546", "0.5585592", "0.5576851", "0.5558408", "0.5539035", "0.5509793", "0.5503715", "0.5455325", "0.5421824", "0.54041445", "0.5385032", "0.53723603", "0.53712606", "0.5345748", "0.53433764", "0.5327147", "0.52952254", "0.5261172", "0.5247588", "0.5235198", "0.52346283", "0.5233541", "0.5231698", "0.5224204", "0.52169776", "0.5195348", "0.5195348", "0.51937354", "0.5193257", "0.51911473", "0.51903474", "0.5178745", "0.51645356", "0.5153631", "0.5150085", "0.51294285", "0.51276344", "0.51054484", "0.50974315", "0.50891864", "0.5087363", "0.5083172", "0.50762784", "0.5072774", "0.5070149", "0.5066202", "0.5063964", "0.5059908", "0.503756", "0.50324595", "0.5020055", "0.5017123", "0.5011511", "0.50032", "0.49934617", "0.4978112", "0.49773037", "0.49560556", "0.4954288", "0.49533275", "0.49533275", "0.49452868", "0.49431285", "0.49428007", "0.4931135", "0.49231175", "0.4920433", "0.49147475", "0.49119902", "0.49058363", "0.4905045", "0.4904015", "0.49016663", "0.4901394", "0.48887432", "0.48879814", "0.48842317", "0.48666036", "0.48581776", "0.4857756", "0.48482493", "0.48464826", "0.48423627", "0.48402354", "0.4831367", "0.48301318", "0.48240277", "0.4818306", "0.48154986" ]
0.7408461
0
Parses the next nonexpression search
public Search parseNext(StringBuilder sb) { for(SearchType type : getAllTypes()) { for(String header : type.getHeaders()) { if(sb.length() < header.length()) continue; boolean hasHeader = true; int c; for(c = 0; c < header.length(); c++) if(lower(sb.charAt(c)) != header.charAt(c)) { hasHeader = false; break; } if(hasHeader) { trim(sb); for(; c < sb.length(); c++) { if(Character.isWhitespace(sb.charAt(c))) break; else if(sb.charAt(c) == '\"') c = goPastQuote(sb, c); else if(sb.charAt(c) == '(') c = goPastParen(sb, c); } Search ret = type.create(sb.substring(0, c), this); sb.delete(0, c + 1); return ret; } } } return defaultSearch(sb); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<ScannedToken> parse() {\n TokenType prev = null;\n TokenType curr = null;\n TokenType next = null;\n\n List<ScannedToken> properlyParsedExpression = new ArrayList<>();\n\n List<TokenType> types = expression.stream().map(ScannedToken::type).collect(Collectors.toList());\n List<Integer> indexes = new ArrayList<>();\n List<ScannedToken> negativeValues = new ArrayList<>();\n\n for (int i = 0; i < types.size() - 1; i++) {\n prev = i == 0 ? null : types.get(i - 1);\n curr = types.get(i);\n next = types.get(i + 1);\n if (prev == null && curr == TokenType.SUB && next == TokenType.VALUE) {\n ScannedToken negativeValue =\n new ScannedToken(\"\" + (-1 * Double.parseDouble(expression.get(i + 1).expression())),\n TokenType.VALUE);\n System.out.println(\"new token at index \" + i);\n indexes.add(i);\n negativeValues.add(negativeValue);\n\n } else if (prev == TokenType.LPAR && curr == TokenType.SUB && next == TokenType.VALUE) {\n ScannedToken negativeValue =\n new ScannedToken(\"\" + (-1 * Double.parseDouble(expression.get(i + 1).expression())),\n TokenType.VALUE);\n System.out.println(\"new token at index \" + i);\n indexes.add(i);\n negativeValues.add(negativeValue);\n }\n }\n\n int maxIterations = expression.size();\n int i = 0;\n int j = 0;\n while (i < maxIterations) {\n if (indexes.contains(i) && j < negativeValues.size()) {\n properlyParsedExpression.add(negativeValues.get(j));\n j++;\n i++;\n }\n else {\n properlyParsedExpression.add(expression.get(i));\n }\n i++;\n }\n System.out.println(properlyParsedExpression);\n return properlyParsedExpression;\n }", "static void skipStatement() {\r\n // Add first identifier to the intermediate stack\r\n if(!token.equals(\"IF\")) {\r\n //stack.add(lexeme);\r\n //index++;\r\n\r\n // Add assignment operator to the intermediate stack\r\n lex();\r\n //stack.add(lexeme);\r\n //index++;\r\n\r\n lex();\r\n while (!token.equals(\"END\")) {\r\n\r\n if (lexeme.equals(\"(\")) {\r\n skipParen();\r\n } else if (token.equals(\"PLUS\") || token.equals(\"MINUS\") || token.equals(\"STAR\") || token.equals(\"DIVOP\") || token.equals(\"MOD\")) {\r\n //stack.add(index, lexeme);\r\n //index++;\r\n\r\n lex();\r\n if (lexeme.equals(\"(\")) {\r\n skipParen();\r\n } else {\r\n //index--;\r\n //stack.add(index, lexeme);\r\n //index++;\r\n //index++;\r\n }\r\n } else {\r\n //index--;\r\n //stack.add(index, lexeme);\r\n //index++;\r\n }\r\n\r\n lex();\r\n\r\n if (token.equals(\"END\"))\r\n break;\r\n\r\n if (token.equals(\"IDENTIFIER\")) {\r\n //index++;\r\n break;\r\n }\r\n\r\n if (token.equals(\"IF\")) {\r\n //index++;\r\n break;\r\n }\r\n }\r\n\r\n if (!token.equals(\"END\")) {\r\n translate();\r\n }\r\n }\r\n\r\n // IF STATEMENTS\r\n else {\r\n if(skipIF())\r\n translate();\r\n else\r\n skipStatement();\r\n }\r\n }", "public static void parse()\r\n {\r\n int initial;\r\n initial=expression();\r\n stateList.get(0).setNext1(initial);\r\n stateList.get(0).setNext2(initial);\r\n if(index<=expression.length()-1)\r\n {\r\n error();\r\n }\r\n else\r\n {\r\n state st=new state(state,\"END\",-1,-1);\r\n stateList.add(st);\r\n }\r\n }", "abstract protected void parseNextToken();", "protected void noMatch() {\n Token[] tokens = m_errorHandler.noMatch(m_current, m_prev);\n m_current = tokens[0];\n m_prev = tokens[1];\n }", "public Search createSearch(String searchText)\n\t\t{\n\t\t\tStringBuilder sb = new StringBuilder(searchText);\n\t\t\ttrim(sb);\n\t\t\tSearch current = null;\n\t\t\twhile(sb.length() > 0)\n\t\t\t{\n\t\t\t\tboolean not = false;\n\t\t\t\tif(sb.length() > 1 && lower(sb.charAt(0)) == 'o' && lower(sb.charAt(1)) == 'r')\n\t\t\t\t{ // OR operator\n\t\t\t\t\tsb.delete(0, 2);\n\t\t\t\t\tExpressionSearch exp = exp(false);\n\t\t\t\t\texp.add(current);\n\t\t\t\t\tcurrent = exp;\n\t\t\t\t\ttrim(sb);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse if(sb.length() > 2 && lower(sb.charAt(0)) == 'a' && lower(sb.charAt(1)) == 'n'\n\t\t\t\t\t&& lower(sb.charAt(2)) == 'd')\n\t\t\t\t{\n\t\t\t\t\tsb.delete(0, 3);\n\t\t\t\t\ttrim(sb);\n\t\t\t\t}\n\t\t\t\telse if(sb.length() > 1 && sb.charAt(0) == '!')\n\t\t\t\t{\n\t\t\t\t\tsb.delete(0, 1);\n\t\t\t\t\ttrim(sb);\n\t\t\t\t\tnot = true;\n\t\t\t\t}\n\n\t\t\t\tSearch next;\n\t\t\t\tif(sb.charAt(0) == '(')\n\t\t\t\t{\n\t\t\t\t\tint c = goPastParen(sb, 0);\n\t\t\t\t\tString nextExpr = sb.substring(1, c).trim();\n\t\t\t\t\tif(nextExpr.length() == 0)\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"Empty parenthetical expression\");\n\t\t\t\t\tnext = createSearch(nextExpr);\n\t\t\t\t\tsb.delete(0, c + 1);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tnext = parseNext(sb);\n\t\t\t\tif(not)\n\t\t\t\t{\n\t\t\t\t\tNotSearch notS = not();\n\t\t\t\t\tnotS.setOperand(next);\n\t\t\t\t\tnext = notS;\n\t\t\t\t}\n\n\t\t\t\tif(current instanceof ExpressionSearch\n\t\t\t\t\t&& ((ExpressionSearch) current).getOperandCount() == 1)\n\t\t\t\t\t((ExpressionSearch) current).add(next);\n\t\t\t\telse if(current != null)\n\t\t\t\t{\n\t\t\t\t\tExpressionSearch exp = exp(true);\n\t\t\t\t\texp.addOps(current, next);\n\t\t\t\t\tcurrent = exp;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcurrent = next;\n\n\t\t\t\ttrim(sb);\n\t\t\t}\n\t\t\tif(current instanceof ExpressionSearch)\n\t\t\t\t((ExpressionSearch) current).simplify();\n\t\t\treturn current;\n\t\t}", "private List<CSSParser.Selector> nextPseudoNotParam() throws CSSParseException\n {\n if (empty())\n return null;\n\n int start = position;\n\n if (!consume('('))\n return null;\n skipWhitespace();\n\n // Parse the parameter contents\n List<CSSParser.Selector> result = nextSelectorGroup();\n\n if (result == null) {\n position = start;\n return null;\n }\n\n if (!consume(')')) {\n position = start;\n return null;\n }\n\n // Nesting a :not() pseudo class within a :not() is not allowed.\n for (CSSParser.Selector selector: result) {\n if (selector.simpleSelectors == null)\n break;\n for (CSSParser.SimpleSelector simpleSelector: selector.simpleSelectors) {\n if (simpleSelector.pseudos == null)\n break;\n for (CSSParser.PseudoClass pseudo: simpleSelector.pseudos) {\n if (pseudo instanceof CSSParser.PseudoClassNot)\n return null;\n }\n }\n }\n\n return result;\n }", "@Override\n\tprotected Token findNextToken() {\n\t\tLocatedChar ch = nextNonWhitespaceChar();\n\t\tif(isCommentStart(ch)) {\n\t\t\tscanComment(ch);\n\t\t\treturn findNextToken();\n\t\t}\n\t\tif(ch.isDigit()) {\n\t\t\treturn scanNumber(ch);\n\t\t}\n\t\telse if(isIdentifierStart(ch)) {\n\t\t\treturn scanIdentifier(ch);\n\t\t}\n\t\telse if(isPunctuatorStart(ch)) {\n\t\t\treturn PunctuatorScanner.scan(ch, input);\n\t\t}\n\t\telse if(isCharStart(ch)) {\n\t\t\treturn scanChar(ch);\n\t\t}\n\t\telse if(isStrStart(ch)) {\n\t\t\treturn scanString(ch);\n\t\t}\n\t\telse if(isEndOfInput(ch)) {\n\t\t\treturn NullToken.make(ch);\n\t\t}\n\t\telse {\n\t\t\tlexicalError(ch);\n\t\t\treturn findNextToken();\n\t\t}\n\t}", "static boolean skipIF() {\n index++;\r\n lex();\r\n\r\n //Skip adding \"(\" to stack\r\n lex();\r\n\r\n while (!lexeme.equals(\")\")) {\r\n\r\n if (lexeme.equals(\"(\")) {\r\n skipParen();\r\n } else if (token.equals(\"PLUS\") || token.equals(\"MINUS\") || token.equals(\"STAR\") || token.equals(\"DIVOP\") || token.equals(\"MOD\") ||\r\n token.equals(\"GREATER_THAN\") || token.equals(\"LESS_THAN\") || token.equals(\"EQUALS\") || token.equals(\"LESS_OR_EQUAL\") ||\r\n token.equals(\"GRETER_OR_EQUAL\") || token.equals(\"NOT_EQUAL\")) {\r\n //stack.add(index, lexeme);\r\n //index++;\r\n\r\n lex();\r\n if (lexeme.equals(\"(\")) {\r\n skipParen();\r\n } else {\r\n //index--;\r\n //stack.add(index, lexeme);\r\n //index++;\r\n //index++;\r\n }\r\n } else {\r\n //index--;\r\n //stack.add(index, lexeme);\r\n //index++;\r\n }\r\n\r\n lex();\r\n\r\n if (token.equals(\"END\"))\r\n break;\r\n\r\n if (token.equals(\"IDENTIFIER\")) {\r\n //index++;\r\n break;\r\n }\r\n }\r\n\r\n //Skip the \")\"\r\n lex();\r\n\r\n return false;\r\n }", "public String visit(NotExpression n, String s) {\n n.f1.accept(this, null);\n return null;\n }", "private Object parseExpr() throws IOException, FSException{\n\n ETreeNode curNode=null;\n boolean end=false;\n Object val;\n boolean negate=false; //flag for unary minus\n boolean not=false;//flag for unary not.\n boolean prevOp=true;//flag - true if previous value was an operator\n\n while (!end){\n\n switch (tok.ttype) {\n\n\n //the various possible 'values'\n case LexAnn.TT_INTEGER:\n case LexAnn.TT_DOUBLE:\n case LexAnn.TT_STRING:\n case LexAnn.TT_WORD:\n case LexAnn.TT_FUNC:\n case LexAnn.TT_NULL:\n case LexAnn.TT_ARRAY:{\n\n if (!prevOp){\n parseError(\"Expected Operator\");\n } else {\n\n val=null;\n ETreeNode node=new ETreeNode();\n node.type=ETreeNode.E_VAL;\n\n switch (tok.ttype){\n //numbers - just get them\n case LexAnn.TT_INTEGER:{\n val=tok.value;\n break;\n }\n case LexAnn.TT_DOUBLE:{\n val=tok.value;\n break;\n }\n //functions - evaluate them\n case LexAnn.TT_FUNC:{\n String name=(String)tok.value;\n getNextToken();\n val=parseCallFunc(name);\n break;\n }\n //arrays - evaluate them\n case LexAnn.TT_ARRAY:{\n String name=(String)tok.value;\n getNextToken(); //should be a '['\n getNextToken(); //should be the index\n Object index=parseExpr();\n try {\n val=host.getVarEntry(name,index);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n break;\n }\n //variables - resolve them\n case LexAnn.TT_WORD:{\n if (hasVar((String)tok.value)) {\n val=getVar((String)tok.value);\n } else {\n try {\n val=host.getVarEntry((String)tok.value,null);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n }\n break;\n }\n //strings - just get again\n case LexAnn.TT_STRING:{\n val=tok.value;\n break;\n }\n //null\n case LexAnn.TT_NULL:{\n val=new FSObject(null);\n break;\n }\n }\n\n //unary not\n if (not){\n if (val instanceof Integer){\n if (((Integer)val).intValue()==0){\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n not=false;\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Boolean) {\n if (((FSObject)val).getObject().equals(Boolean.FALSE)) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Integer) {\n if (((Integer)((FSObject)val).getObject()).intValue()==0) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else {\n String msg=val.getClass().getName();\n if (val instanceof FSObject) msg=\"FSObject with \"+((FSObject)val).getNullClass().getName();\n parseError(\"Type mismatch for ! \"+msg);\n }\n }\n\n //unary minus\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n node.value=val;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n\n prevOp=false;\n }\n break;\n }\n /*operators - have to be more carefull with these.\n We build an expression tree - inserting the nodes at the right\n points to get a reasonable approximation to correct operator\n precidence*/\n case LexAnn.TT_LEQ:\n case LexAnn.TT_LNEQ:\n case LexAnn.TT_MULT:\n case LexAnn.TT_DIV:\n case LexAnn.TT_MOD:\n case LexAnn.TT_PLUS:\n case LexAnn.TT_MINUS:\n case LexAnn.TT_LGR:\n case LexAnn.TT_LGRE:\n case LexAnn.TT_LLSE:\n case LexAnn.TT_LLS:\n case LexAnn.TT_NOT:\n case LexAnn.TT_LAND:\n case LexAnn.TT_LOR: {\n if (prevOp){\n if (tok.ttype==LexAnn.TT_MINUS){\n negate=true;\n } else if (tok.ttype==LexAnn.TT_NOT){\n not=true;\n } else {\n parseError(\"Expected Expression\");\n }\n } else {\n\n ETreeNode node=new ETreeNode();\n\n node.type=ETreeNode.E_OP;\n node.value=new Integer(tok.ttype);\n\n if (curNode.parent!=null){\n\n int curPrio=getPrio(tok.ttype);\n int parPrio=\n getPrio(((Integer)curNode.parent.value).intValue());\n\n if (curPrio<=parPrio){\n //this nodes parent is the current nodes grandparent\n node.parent=curNode.parent.parent;\n //our nodes left leg is now linked into the current nodes\n //parent\n node.left=curNode.parent;\n //hook into grandparent\n if (curNode.parent.parent!=null){\n curNode.parent.parent.right=node;\n }\n\n //the current nodes parent is now us (because of above)\n curNode.parent=node;\n //set the current node.\n curNode=node;\n } else {\n //current node's parent's right is now us.\n curNode.parent.right=node;\n //our nodes left is the current node.\n node.left=curNode;\n //our nodes parent is the current node's parent.\n node.parent=curNode.parent;\n //curent nodes parent is now us.\n curNode.parent=node;\n //set the current node.\n curNode=node;\n }\n } else {\n //our node's left is the current node\n node.left=curNode;\n //current node's parent is us now\n //we don't have to set our parent, as it is null.\n curNode.parent=node;\n //set current node\n curNode=node;\n }\n prevOp=true;\n }\n break;\n }\n case '(':\n //start of an bracketed expression, recursively call ourself\n //to get a value\n {\n getNextToken();\n val=parseExpr();\n\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n ETreeNode node=new ETreeNode();\n node.value=val;\n node.type=ETreeNode.E_VAL;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n prevOp=false;\n break;\n }\n\n default: {\n end=true;\n }\n\n }\n if (!end){\n tok.nextToken();\n }\n }\n\n //find the top of the tree we just built.\n if (curNode==null) parseError(\"Missing Expression\");\n while(curNode.parent!=null){\n curNode=curNode.parent;\n }\n\n\n return evalETree(curNode);\n\n }", "private NFA regEx() {\n NFA term = term();\n\n //If the regex requires a union operation\n if (more() && peek() == '|') {\n\n eat('|');\n NFA regex = regEx();\n return union(term, regex);\n //If no union is needed, just return the NFA\n } else {\n return term;\n }\n }", "@Test(timeout = 4000)\n public void test156() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"II%oBQL*c\");\n Token token0 = xPathLexer0.not();\n assertEquals(23, token0.getTokenType());\n assertEquals(\"I\", token0.getTokenText());\n \n Token token1 = xPathLexer0.star();\n assertEquals(\"I\", token1.getTokenText());\n assertEquals(20, token1.getTokenType());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"%oBQL*c\", token2.getTokenText());\n assertEquals((-1), token2.getTokenType());\n }", "private void extendedNext() {\n\t\twhile (currentIndex < data.length\n\t\t\t\t&& Character.isWhitespace(data[currentIndex])) {\n\t\t\tcurrentIndex++;\n\t\t\tcontinue;\n\t\t} // we arw now on first non wmpty space\n\t\tif (data.length <= currentIndex) {\n\t\t\ttoken = new Token(TokenType.EOF, null); // null reference\n\t\t\treturn;\n\t\t}\n\t\tstart = currentIndex;\n\t\t// System.out.print(data);\n\t\t// System.out.println(\" \"+data[start]);;\n\t\tswitch (data[currentIndex]) {\n\t\tcase '@':\n\t\t\tcurrentIndex++;\n\t\t\tcreateFunctName();\n\t\t\treturn;\n\t\tcase '\"':// string\n\t\t\tcreateString();// \"\" are left\n\t\t\treturn;\n\t\tcase '*':\n\t\tcase '+':\n\t\tcase '/':\n\t\tcase '^':\n\t\t\ttoken = new Token(TokenType.Operator, data[currentIndex++]);\n\t\t\tbreak;\n\t\tcase '$':\n\t\t\tString value = \"\";\n\t\t\tif (currentIndex + 1 < data.length && data[currentIndex] == '$'\n\t\t\t\t\t&& data[currentIndex + 1] == '}') {\n\t\t\t\tvalue += data[currentIndex++];\n\t\t\t\tvalue += data[currentIndex++];\n\t\t\t\ttoken = new Token(TokenType.WORD, value);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase '=':\n\t\t\ttoken = new Token(TokenType.Name,\n\t\t\t\t\tString.valueOf(data[currentIndex++]));\n\t\t\treturn;\n\t\tcase '-':\n\t\t\tif (currentIndex + 1 >= data.length\n\t\t\t\t\t|| !Character.isDigit(data[currentIndex + 1])) {\n\t\t\t\ttoken = new Token(TokenType.Operator, data[currentIndex++]);\n\t\t\t\tbreak;\n\t\t\t}\n\t\tdefault:\n\t\t\t// if we get here,after - is definitely a number\n\t\t\tif (data[currentIndex] == '-'\n\t\t\t\t\t|| Character.isDigit(data[currentIndex])) {\n\t\t\t\t// if its decimal number ,it must starts with 0\n\t\t\t\tcreateNumber();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (Character.isLetter(data[currentIndex])) {\n\t\t\t\tvalue = name();\n\t\t\t\ttoken = new Token(TokenType.Name, value);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthrow new LexerException(\n\t\t\t\t\t\"No miningful tag starts with \" + data[currentIndex]);\n\t\t\t// createWord();\n\n\t\t}\n\t}", "@Override\n\tpublic void visit(NotExpression arg0) {\n\t\t\n\t}", "@Test(timeout = 4000)\n public void test069() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.nextToken();\n xPathLexer0.setXPath(\"y]jad[mR3w=N\");\n xPathLexer0.leftParen();\n xPathLexer0.doubleColon();\n xPathLexer0.pipe();\n xPathLexer0.consume();\n xPathLexer0.minus();\n Token token0 = xPathLexer0.identifierOrOperatorName();\n assertNull(token0);\n }", "protected void scanNoSkip() throws TableFunctionMalformedException {\r\n\t\t\t\r\n\t\tint kw;\r\n\t\t\r\n\t\tgetName();\r\n\t\t\r\n\t\tkw = lookup(value);\r\n\t\tif (kw == -1)\r\n\t\t\ttoken = 'x';\r\n\t\telse\r\n\t\t\ttoken = kwcode[kw];\r\n\t\t// Debug.println(\"\\n!!!Value = \" + value);\r\n\t}", "@Override\n\tpublic void parse() throws Exception {\n\t\tLogger.log(\"Parsing expression: \" + getWords().toString(), 4);\n\t\tint wordsSize= getWords().size();\n\t\tString word;\n\t\tint lastSplitIndex = 0;\n\t\tFExpressionSide fExpSide;\n\t\tfExpSideList = new LinkedList<FExpressionSide>();\n\t\tfor(int i=0; i < wordsSize; i++){\n\t\t\tword = getWords().get(i);\n\t\t\t\n\t\t\tif(Operators.INFIX_OPS.contains(word)){\n\t\t\t\tfExpSide = new FExpressionSide(this);\n\t\t\t\tfExpSide.setWords(getWords().subList(lastSplitIndex, i));\n\t\t\t\tfExpSide.setOperator(word);\n\t\t\t\t\n\t\t\t\tlastSplitIndex = i +1;\n\t\t\t\tfExpSideList.add(fExpSide);\n\t\t\t}\n\t\t}\n\t\tfExpSide = new FExpressionSide(this);\n\t\tfExpSide.setWords(getWords().subList(lastSplitIndex, wordsSize));\n\t\tfExpSideList.add(fExpSide);\n\t\t\n\t\tfor(FExpressionSide f : fExpSideList){\n\t\t\tf.parse();\n\t\t}\n\t\t\n\t\t\n\t}", "@Test(timeout = 4000)\n public void test143() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\">6_XdrPl\");\n Token token0 = xPathLexer0.not();\n assertEquals(\">\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"6\", token1.getTokenText());\n assertEquals(30, token1.getTokenType());\n \n Token token2 = xPathLexer0.at();\n assertEquals(\"_\", token2.getTokenText());\n assertEquals(16, token2.getTokenType());\n \n Token token3 = xPathLexer0.not();\n assertEquals(23, token3.getTokenType());\n \n Token token4 = xPathLexer0.nextToken();\n assertEquals((-1), token4.getTokenType());\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n Token token0 = xPathLexer0.getPreviousToken();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"com.werken.saxpath.XPathLexer\");\n xPathLexer0.setXPath(\"r1p%9otIqOp|?D[\");\n Token token0 = xPathLexer0.notEquals();\n assertEquals(22, token0.getTokenType());\n assertEquals(\"r1\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"p\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test142() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"a/7J\");\n Token token0 = xPathLexer0.dollar();\n assertEquals(\"a\", token0.getTokenText());\n assertEquals(26, token0.getTokenType());\n \n Token token1 = xPathLexer0.not();\n assertEquals(23, token1.getTokenType());\n assertEquals(\"/\", token1.getTokenText());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"7\", token2.getTokenText());\n assertEquals(30, token2.getTokenType());\n }", "@Override\n\tpublic Void visit(Negate neg) {\n\t\tprintIndent(\"~\");\n\t\tindent++;\n\t\tneg.expr.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "@Test(timeout = 4000)\n public void test121() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"#OPh7\");\n Token token0 = xPathLexer0.not();\n assertEquals(\"#\", token0.getTokenText());\n assertEquals(23, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"OPh7\", token1.getTokenText());\n }", "private void processOperator() {\r\n\t\tif (expression[currentIndex] == '*') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.AND_STRING);\r\n\t\t} else if (expression[currentIndex] == '+') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.OR_STRING);\r\n\t\t} else if (expression[currentIndex] == '!') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.NOT_STRING);\r\n\t\t} else {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.XOR_STRING);\r\n\t\t\t// xor operator has 2 characters more than any other operator.\r\n\t\t\tcurrentIndex += 2;\r\n\t\t}\r\n\r\n\t\tcurrentIndex++;\r\n\t}", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n xPathLexer0.not();\n xPathLexer0.nextToken();\n xPathLexer0.leftParen();\n xPathLexer0.whitespace();\n xPathLexer0.plus();\n Token token0 = xPathLexer0.or();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.notEquals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(\") \", token0.getTokenText());\n assertEquals(22, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "private Term parseImpl() throws ParseException {\n final Term expr = parseTerm(false);\n final int tt = _tokenizer.next();\n if (tt != Tokenizer.TT_EOS) {\n reportError(\"Incomplete expression.\"); /*I18N*/\n }\n return expr;\n }", "static void parse() {\r\n i = 0;\r\n j = 0;\r\n k = 0;\r\n varList.add(\"0\");\r\n\r\n // Find the first lexeme\r\n lex();\r\n\r\n // Check if the tokens form a statement\r\n if(checkStatement()) {\r\n System.out.println(\"\\nGRAMMAR IS CORRECT!\");\r\n //System.out.println(grammar);\r\n }\r\n else\r\n System.out.println(\"\\nERROR - UNEXPECTED LEXEME: \\\"\" + lexeme + \"\\\"\");\r\n\r\n i = 0;\r\n j = 0;\r\n k = 0;\r\n index = 0;\r\n lex();\r\n translate();\r\n }", "@Test(timeout = 4000)\n public void test071() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"com.werken.saxpath.XPathLexer\");\n xPathLexer0.pipe();\n xPathLexer0.slashes();\n xPathLexer0.minus();\n Token token0 = xPathLexer0.number();\n xPathLexer0.setPreviousToken(token0);\n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertNull(token1);\n }", "public Token getNextToken() \n{\n Token specialToken = null;\n Token matchedToken;\n int curPos = 0;\n\n EOFLoop :\n for (;;)\n {\n try\n {\n curChar = input_stream.BeginToken();\n }\n catch(java.io.IOException e)\n {\n jjmatchedKind = 0;\n matchedToken = jjFillToken();\n matchedToken.specialToken = specialToken;\n return matchedToken;\n }\n image = jjimage;\n image.setLength(0);\n jjimageLen = 0;\n\n for (;;)\n {\n switch(curLexState)\n {\n case 0:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_0();\n if (jjmatchedPos == 0 && jjmatchedKind > 121)\n {\n jjmatchedKind = 121;\n }\n break;\n case 1:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_1();\n break;\n case 2:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_2();\n if (jjmatchedPos == 0 && jjmatchedKind > 9)\n {\n jjmatchedKind = 9;\n }\n break;\n case 3:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_3();\n if (jjmatchedPos == 0 && jjmatchedKind > 9)\n {\n jjmatchedKind = 9;\n }\n break;\n }\n if (jjmatchedKind != 0x7fffffff)\n {\n if (jjmatchedPos + 1 < curPos)\n input_stream.backup(curPos - jjmatchedPos - 1);\n if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n {\n matchedToken = jjFillToken();\n matchedToken.specialToken = specialToken;\n TokenLexicalActions(matchedToken);\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n return matchedToken;\n }\n else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n {\n if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n {\n matchedToken = jjFillToken();\n if (specialToken == null)\n specialToken = matchedToken;\n else\n {\n matchedToken.specialToken = specialToken;\n specialToken = (specialToken.next = matchedToken);\n }\n SkipLexicalActions(matchedToken);\n }\n else\n SkipLexicalActions(null);\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n continue EOFLoop;\n }\n MoreLexicalActions();\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n curPos = 0;\n jjmatchedKind = 0x7fffffff;\n try {\n curChar = input_stream.readChar();\n continue;\n }\n catch (java.io.IOException e1) { }\n }\n int error_line = input_stream.getEndLine();\n int error_column = input_stream.getEndColumn();\n String error_after = null;\n boolean EOFSeen = false;\n try { input_stream.readChar(); input_stream.backup(1); }\n catch (java.io.IOException e1) {\n EOFSeen = true;\n error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n if (curChar == '\\n' || curChar == '\\r') {\n error_line++;\n error_column = 0;\n }\n else\n error_column++;\n }\n if (!EOFSeen) {\n input_stream.backup(1);\n error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n }\n throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);\n }\n }\n}", "@Override\n\tpublic Void visit(Not nott) {\n\t\tprintIndent(\"not\");\n\t\tindent++;\n\t\tnott.expr.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "private boolean findNextToken() {\r\n boolean foundToken = matcher.find();\r\n if (foundToken) {\r\n int begin = matcher.start();\r\n int end = matcher.end();\r\n String text = matcher.group();\r\n // System.out.println(\"[\" + text + \"](\" + begin + \",\" + end + \")\");\r\n currentTextItem = new TextItem(begin, end, text);\r\n } else {\r\n currentTextItem = null;\r\n }\r\n return foundToken;\r\n }", "public Snippet visit(NotExpression n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t n.nodeToken.accept(this, argu);\n\t Snippet f1 = n.identifier.accept(this, argu);\n\t _ret.returnTemp = \"! \"+f1.returnTemp;\n\t return _ret;\n\t }", "public void processWildcardsNext() {\n ws = new WildcardSegment();\n WildcardSegment next;\n int sw,mw; //Single Wildcard, Multi-Wildcard\n //currIndex = jta.getSelectionStart();\n int ci = -1;\n Highlighter h = jta.getHighlighter();\n h.removeAllHighlights();\n String text = jtfFind.getText();\n \n String jText = jta.getText();\n if (text.equals(\"\")) {\n jtfFind.setBackground(Color.WHITE);\n }\n else {\n if (hasWildcards(text)) {\n int index = 0;\n int currIndex_w = currIndex;\n boolean tryAgain = false;\n text = processEscapeChars_w(text);\n text = validateWildcards(text);\n \n ws.setStart(0);\n next = ws.next;\n \n text = text.replace(\"^^\",\"~!~\");\n \n do {\n sw = text.indexOf(\"^#\");\n mw = text.indexOf(\"^*\");\n \n if ((sw != -1) && (mw != -1)) {\n if (sw < mw) {\n text = text.replaceFirst(\"\\\\Q^#\\\\E\",\"`#\");\n if (sw == 0) {\n ws.type = 1;\n }\n else {\n next.setStart(sw,1);\n index = next.start;\n next = next.next;\n }\n }\n else {\n text = text.replaceFirst(\"\\\\Q^*\\\\E\",\"`*\");\n if (mw == 0) {\n ws.type = 2;\n }\n else {\n next.setStart(mw,2);\n index = next.start;\n next = next.next;\n }\n }\n }\n else if (sw != -1) {\n text = text.replaceFirst(\"\\\\Q^#\\\\E\",\"`#\");\n if (sw == 0) {\n ws.type = 1;\n }\n else {\n next.setStart(sw,1);\n index = next.start;\n next = next.next;\n }\n }\n else {\n text = text.replaceFirst(\"\\\\Q^*\\\\E\",\"`*\");\n if (mw == 0) {\n ws.type = 2;\n }\n else {\n next.setStart(mw,2);\n index = next.start;\n next = next.next;\n }\n }\n \n sw = text.indexOf(\"^#\");\n mw = text.indexOf(\"^*\");\n if ((index != text.length() - 2) && (sw != (index + 2)) && (mw != (index + 2))) {\n next.setStart(index+2);\n index = next.start;\n next = next.next;\n }\n }\n while ((sw != -1) || (mw != -1));\n \n next = ws;\n while(next.start != -1) {\n switch (next.type) {\n case 0:\n if (next.next.type == -1) {\n next.seg = text.substring(next.start);\n }\n else {\n next.seg = text.substring(next.start,next.next.start);\n }\n break;\n case 1:\n next.seg = \"~`~\";\n break;\n case 2:\n next.seg = \"`~`\";\n break;\n default:\n //Do nothing\n break;\n }\n next = next.next;\n }\n //text = text.replace(\"~!~\",\"^\");\n next = ws;\n boolean keepLooking = true;\n int bSpace,bTab,bNewline,bIndex;\n while(next.start != -1) {\n switch (next.type) {\n case 0:\n index = jText.toLowerCase().indexOf(next.seg.toLowerCase(),currIndex_w);\n if (index == -1) {\n keepLooking = false;\n }\n else {\n if (next.start == 0) {\n if (ci == -1) {\n ci = index + 1;\n }\n }\n \n if (next.next.start != -1) {\n currIndex_w = index + next.seg.length();\n }\n else {\n currIndex_w = index + 1;\n }\n }\n break;\n case 1:\n //index = jText.toLowerCase().indexOf(next.seg.toLowerCase(),currIndex_w);\n if (currIndex_w != jText.length()) {\n index = currIndex_w;\n }\n else {\n index = -1;\n }\n if (index == -1) {\n keepLooking = false;\n }\n else {\n if (next.start == 0) {\n if (ci == -1) {\n ci = index + 1;\n }\n }\n if (ci == -1) {\n ci = index + 1;\n }\n if (next.next.start != -1) {\n next.seg = String.valueOf(jText.charAt(currIndex_w));\n currIndex_w = index + next.seg.length();\n }\n else {\n next.seg = String.valueOf(jText.charAt(currIndex_w));\n currIndex_w = index + 1;\n }\n }\n break;\n case 2:\n \n if (next.next.start != -1) {\n bIndex = jText.toLowerCase().indexOf(next.next.seg.toLowerCase(),currIndex_w);\n bSpace = jText.toLowerCase().indexOf(StringUtil.ASPACE,currIndex_w);\n bTab = jText.toLowerCase().indexOf(StringUtil.ATAB,currIndex_w);\n bNewline = jText.toLowerCase().indexOf(\"\\n\",currIndex_w);\n if ((bSpace != -1) && ((bSpace < bIndex) || (bIndex == -1))) {\n bIndex = -1;\n }\n \n if ((bTab != -1) && ((bTab < bIndex) || (bIndex == -1))) {\n bIndex = -1;\n }\n if ((bNewline != -1) && ((bNewline < bIndex) || (bIndex == -1))) {\n bIndex = -1;\n }\n index = bIndex;\n if ((currIndex_w != jText.length()) && (index == -1)) {\n tryAgain = true;\n }\n }\n else {\n bSpace = jText.toLowerCase().indexOf(StringUtil.ASPACE,currIndex_w);\n bTab = jText.toLowerCase().indexOf(StringUtil.ATAB,currIndex_w);\n bNewline = jText.toLowerCase().indexOf(\"\\n\",currIndex_w);\n \n bIndex = bSpace;\n if ((bTab != -1) && ((bTab < bIndex) || (bIndex == -1))) {\n bIndex = bTab;\n }\n if ((bNewline != -1) && ((bNewline < bIndex) || (bIndex == -1))) {\n bIndex = bNewline;\n }\n index = bIndex;\n if (currIndex_w != jText.length()) {\n index = jText.length();\n }\n }\n \n if (index == -1) {\n keepLooking = false;\n }\n else {\n next.seg = jText.substring(currIndex_w,index);\n if (next.start == 0) {\n \n }\n if (ci == -1) {\n ci = index + 1;\n }\n if (next.next.start != -1) {\n currIndex_w = index + next.seg.length();\n }\n else {\n currIndex_w = index + next.seg.length();\n }\n }\n break;\n default:\n //Do nothing\n break;\n }\n if (keepLooking) {\n next = next.next;\n }\n else {\n if (tryAgain) {\n next = ws;\n tryAgain = false;\n keepLooking = true;\n }\n else {\n break;\n }\n }\n }\n TestInfo.testWriteLn(\"Find String: \" + ws.makeFindString());\n TestInfo.testWriteLn(\"Find Type: \" + ws.makeFindType());\n TestInfo.testWriteLn(\"Find Start: \" + ws.makeFindStart());\n if (keepLooking) {\n TestInfo.testWriteLn(\"String Found!\");\n }\n else {\n TestInfo.testWriteLn(\"String Not Found!\");\n }\n \n //Do search\n text = ws.makeFindString();\n index = jText.toLowerCase().indexOf(text.toLowerCase(),currIndex);\n if (index == -1) {\n jtfFind.setBackground(Color.RED);\n currIndex = 0;\n }\n else {\n try {\n currIndex = ci;\n // An instance of the private subclass of the default highlight painter\n Highlighter.HighlightPainter myHighlightPainter = new MyHighlightPainter(Color.YELLOW);\n oldHighlightPainter = myHighlightPainter;\n h.addHighlight(index,index+text.length(),myHighlightPainter);\n jtfFind.setBackground(Color.WHITE);\n jta.setSelectionColor(Color.CYAN);\n //jta.selectAll();\n jta.select(index,index+text.length());\n lastHighlight[0] = index;\n lastHighlight[1] = index + text.length();\n //jta.setSelectionEnd(index + text.length());\n }\n catch (BadLocationException e) {\n //Do nothing\n }\n }\n }\n else {\n text = processEscapeChars(text);\n \n int index = jText.toLowerCase().indexOf(text.toLowerCase(),currIndex);\n if (index == -1) {\n jtfFind.setBackground(Color.RED);\n }\n else {\n try {\n currIndex = index + 1;\n // An instance of the private subclass of the default highlight painter\n Highlighter.HighlightPainter myHighlightPainter = new MyHighlightPainter(Color.YELLOW);\n oldHighlightPainter = myHighlightPainter;\n h.addHighlight(index,index+text.length(),myHighlightPainter);\n jtfFind.setBackground(Color.WHITE);\n jta.setSelectionColor(Color.CYAN);\n //jta.selectAll();\n jta.select(index,index+text.length());\n lastHighlight[0] = index;\n lastHighlight[1] = index + text.length();\n //jta.setSelectionEnd(index + text.length());\n }\n catch (BadLocationException e) {\n //Do nothing\n }\n }\n }\n }\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"#OPh7\");\n Token token0 = xPathLexer0.whitespace();\n assertEquals((-2), token0.getTokenType());\n assertEquals(\"\", token0.getTokenText());\n \n Token token1 = xPathLexer0.not();\n assertEquals(\"O\", token1.getTokenText());\n assertEquals(23, token1.getTokenType());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"Ph7\", token2.getTokenText());\n assertEquals(15, token2.getTokenType());\n }", "@Test\r\n\tpublic void test3() throws IOException, LexerException, ParserException {\r\n\t\tStringReader ex = new StringReader(\"(lam^s f.\\n\\t(lam^s x.x) (f 1))\\n(lam^c y.\\n\\t(lam^s z.z) y)\");\r\n\r\n\t\tParser parser = new Parser();\r\n\t\tTerm result = parser.Parsing(ex);\r\n\t}", "private Literal findNextLiteral(String subquery, int startIndex) {\n\n\t\tint subLength = subquery.length();\n\t\tint lengthOut;\n\n\t\t// Skip past white space.\n\t\twhile (subquery.charAt(startIndex) == ' ') {\n\t\t\t++startIndex;\n\t\t}\n\n\t\t//determine if a phrase literal is next\n\t\tif (subquery.charAt(startIndex) == '\\\"') {\n\t\t\tstartIndex++;//skip first \\\"\n\t\t\tint phraseEnd = subquery.indexOf('\\\"', startIndex+1);//phrase ending\n\t\t\tif (phraseEnd >= 0) {\n\t\t\t\tlengthOut = phraseEnd - startIndex;\n\n\t\t\t\t//split up the terms within the phrase\n\t\t\t\tString[] splitPhrase = subquery.substring(startIndex, startIndex + lengthOut).split(\" \");\n\t\t\t\tList<Query> phraseTerms = new ArrayList<>();\n\t\t\t\tfor (int i = 0; i < splitPhrase.length; i++) {\n\t\t\t\t\t//locate a wildcard within the term\n\t\t\t\t\tint wildCard = splitPhrase[i].indexOf('*');\n\t\t\t\t\tif (wildCard >= 0) {\n\t\t\t\t\t\tphraseTerms.add(new WildcardLiteral(splitPhrase[i]));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tphraseTerms.add(new TermLiteral(splitPhrase[i]));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// This is a phrase literal containing multiple terms.\n\t\t\t\treturn new Literal(\n\t\t\t\t\t\tnew StringBounds(startIndex, lengthOut),\n\t\t\t\t\t\tnew PhraseLiteral(phraseTerms));\n\n\t\t\t}\n\n\t\t}\n\n\t\t// determine if a NEAR literal is next\n\t\t// ex. [baseball NEAR/2 angels]\n\t\tif (subquery.charAt(startIndex) == '[') {\n\t\t\tstartIndex++; // skip initial '['\n\t\t\tint nearEnd = subquery.indexOf(']', startIndex+1);\n\t\t\tif (nearEnd >= 0) {\n\t\t\t\tlengthOut = nearEnd - startIndex;\n\n\t\t\t\t// split literal into [ firstTerm, NEAR/k, secondTerm ]\n\t\t\t\tString[] splitNEAR = subquery.substring(startIndex, startIndex + lengthOut).split(\" \");\n\t\t\t\tList<Query> nearTerms = new ArrayList<>();\n\t\t\t\tint k = 0;\n\t\t\t\tfor (int i = 0; i < splitNEAR.length; i++) {\n\t\t\t\t\tif(i == 1){\n\t\t\t\t\t\t// second term is the NEAR/k, extract k\n\t\t\t\t\t\tk = Integer.parseInt(splitNEAR[i].substring(5));\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// check for wildcard\n\t\t\t\t\t\tint wildCard = splitNEAR[i].indexOf('*');\n\t\t\t\t\t\tif(wildCard >= 0) {\n\t\t\t\t\t\t\t// wildcard literal\n\t\t\t\t\t\t\tnearTerms.add(new WildcardLiteral(splitNEAR[i]));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// term literal\n\t\t\t\t\t\t\tnearTerms.add(new TermLiteral(splitNEAR[i]));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\treturn new Literal(\n\t\t\t\t\t\tnew StringBounds(startIndex, lengthOut),\n\t\t\t\t\t\tnew NearLiteral(nearTerms,k));\n\t\t\t}\n\n\t\t}\n\n\t\t// Locate the next space to find the end of this literal.\n\t\tint nextSpace = subquery.indexOf(' ', startIndex);\n\t\tif (nextSpace < 0) {\n\t\t\t// No more literals in this subquery.\n\t\t\tlengthOut = subLength - startIndex;\n\t\t}\n\t\telse {\n\t\t\tlengthOut = nextSpace - startIndex;\n\t\t}\n\n\t\t//locate a wildcard within the term\n\t\tint wildCard = subquery.substring(startIndex, startIndex + lengthOut).indexOf('*');\n\t\tif (wildCard >= 0) {\n\t\t\t// This is a term literal containing a single term.\n\t\t\treturn new Literal(\n\t\t\t\t\tnew StringBounds(startIndex, lengthOut),\n\t\t\t\t\tnew WildcardLiteral(subquery.substring(startIndex, startIndex + lengthOut)));\n\t\t}\n\n\t\t// This is a term literal containing a single term.\n\t\treturn new Literal(\n\t\t\t\tnew StringBounds(startIndex, lengthOut),\n\t\t\t\tnew TermLiteral(subquery.substring(startIndex, startIndex + lengthOut)));\n\n\t\t/*\n\t\tDone:\n\t\tInstead of assuming that we only have single-term literals, modify this method so it will create a PhraseLiteral\n\t\tobject if the first non-space character you find is a double-quote (\"). In this case, the literal is not ended\n\t\tby the next space character, but by the next double-quote character.\n\t\t */\n\n\t}", "@Test(timeout = 4000)\n public void test148() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\")o/f0*4=P~Q{S\");\n Token token0 = xPathLexer0.dollar();\n assertEquals(26, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.at();\n assertEquals(\"o\", token1.getTokenText());\n assertEquals(16, token1.getTokenType());\n \n xPathLexer0.not();\n Token token2 = xPathLexer0.not();\n assertEquals(\"f\", token2.getTokenText());\n assertEquals(23, token2.getTokenType());\n \n Token token3 = xPathLexer0.nextToken();\n assertEquals(30, token3.getTokenType());\n assertEquals(\"0\", token3.getTokenText());\n }", "public void skipToken() {\t\t\n\t\t//remove token from line\n\t\tif (token != null)\n\t\t{\n\t\t\tline = line.substring(token.length());\n\t\t}\n\t\t//check if new token in line\n\t\tint pos = findFirstNotWhitespace(line.toCharArray());\n\t\t\n\t\t//read line until next token found\n\t\twhile (pos == -1 && s.hasNextLine())\n\t\t{\n\t\t\t//read next line\n\t\t\tline = s.nextLine();\n\t\t\t//check for start of token\n\t\t\tpos = findFirstNotWhitespace(line.toCharArray());\n\t\t}\n\t\t\n\t\t//no token found till eof\n\t\tif (pos == -1)\n\t\t{\n\t\t\t//set EOF tag\n\t\t\tline = null;\n\t\t}\n\t\t//reset token values\n\t\ttoken = null;\n\t\ttType = null;\n\t}", "@Test(timeout = 4000)\n public void test149() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"m6l-dKX`qghFq8(,{\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(2, token0.getTokenType());\n assertEquals(\"m\", token0.getTokenText());\n \n Token token1 = xPathLexer0.notEquals();\n assertEquals(\"6l\", token1.getTokenText());\n assertEquals(22, token1.getTokenType());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"-\", token2.getTokenText());\n assertEquals(6, token2.getTokenType());\n }", "private CalculatableNode nextNode() throws IOException {\n\t\tint ttype;\n\t\tttype = tokenizer.nextToken();\n\t\tif (ttype == StreamTokenizer.TT_NUMBER) {\n\t\t\treturn new NumericalNode((int) tokenizer.nval);\n\t\t}\n\t\tif (ttype >= 0) {\n\t\t\t// sign character such as +-*/()\n\t\t\tchar sign = (char) tokenizer.ttype;\n\t\t\tif (sign == '(') {\n\t\t\t\tCalculatableNode node = parseNode();\n\t\t\t\treturn node;\n\t\t\t}\n\t\t}\n\t\tthrow new IllegalFormulaException(\"数式が不正です\");\n\t}", "void gobble() {\n while( level > 0 &&\n !is(TK.LPAREN) &&\n !is(TK.ID) &&\n !is(TK.NUM) &&\n !is(TK.EOF) ) {\n scan();\n }\n }", "private void skipSpaces() {\r\n\t\twhile (currentIndex < expression.length && (expression[currentIndex] == ' ' || expression[currentIndex] == '\\t'\r\n\t\t\t\t|| expression[currentIndex] == '\\n' || expression[currentIndex] == '\\r')) {\r\n\t\t\tcurrentIndex++;\r\n\t\t}\r\n\t}", "@Test(timeout = 4000)\n public void test003() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n Token token0 = xPathLexer0.and();\n assertNull(token0);\n }", "public Token getNextToken() \n{\n Token specialToken = null;\n Token matchedToken;\n int curPos = 0;\n\n EOFLoop :\n for (;;)\n {\n try\n {\n curChar = input_stream.BeginToken();\n }\n catch(java.io.IOException e)\n {\n jjmatchedKind = 0;\n jjmatchedPos = -1;\n matchedToken = jjFillToken();\n matchedToken.specialToken = specialToken;\n return matchedToken;\n }\n image = jjimage;\n image.setLength(0);\n jjimageLen = 0;\n\n for (;;)\n {\n switch(curLexState)\n {\n case 0:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_0();\n if (jjmatchedPos == 0 && jjmatchedKind > 204)\n {\n jjmatchedKind = 204;\n }\n break;\n case 1:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_1();\n if (jjmatchedPos == 0 && jjmatchedKind > 12)\n {\n jjmatchedKind = 12;\n }\n break;\n case 2:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_2();\n if (jjmatchedPos == 0 && jjmatchedKind > 12)\n {\n jjmatchedKind = 12;\n }\n break;\n case 3:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_3();\n if (jjmatchedPos == 0 && jjmatchedKind > 12)\n {\n jjmatchedKind = 12;\n }\n break;\n }\n if (jjmatchedKind != 0x7fffffff)\n {\n if (jjmatchedPos + 1 < curPos)\n input_stream.backup(curPos - jjmatchedPos - 1);\n if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n {\n matchedToken = jjFillToken();\n matchedToken.specialToken = specialToken;\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n return matchedToken;\n }\n else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n {\n if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n {\n matchedToken = jjFillToken();\n if (specialToken == null)\n specialToken = matchedToken;\n else\n {\n matchedToken.specialToken = specialToken;\n specialToken = (specialToken.next = matchedToken);\n }\n SkipLexicalActions(matchedToken);\n }\n else\n SkipLexicalActions(null);\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n continue EOFLoop;\n }\n MoreLexicalActions();\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n curPos = 0;\n jjmatchedKind = 0x7fffffff;\n try {\n curChar = input_stream.readChar();\n continue;\n }\n catch (java.io.IOException e1) { }\n }\n int error_line = input_stream.getEndLine();\n int error_column = input_stream.getEndColumn();\n String error_after = null;\n boolean EOFSeen = false;\n try { input_stream.readChar(); input_stream.backup(1); }\n catch (java.io.IOException e1) {\n EOFSeen = true;\n error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n if (curChar == '\\n' || curChar == '\\r') {\n error_line++;\n error_column = 0;\n }\n else\n error_column++;\n }\n if (!EOFSeen) {\n input_stream.backup(1);\n error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n }\n throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);\n }\n }\n}", "private void parseBackward() {\r\n \t\tELOperandToken token;\r\n \t\tfState = STATE_INITIAL;\r\n \t\twhile ((token = getNextToken()) != ELOperandToken.EOF) {\r\n \t\t\tif (token.type == ELOperandToken.EL_VARIABLE_NAME_TOKEN ||\r\n \t\t\t\t\ttoken.type == ELOperandToken.EL_PROPERTY_NAME_TOKEN ||\r\n \t\t\t\t\ttoken.type == ELOperandToken.EL_METHOD_TOKEN ||\r\n \t\t\t\t\ttoken.type == ELOperandToken.EL_SEPARATOR_TOKEN) {\r\n \r\n \t\t\t\tfTokens.add(0, token);\r\n \t\t\t}\r\n \t\t}\r\n \t\t// set first token as variable\r\n \t\tfor (int i=0; i<fTokens.size(); i++) {\r\n \t\t\ttoken = fTokens.get(i);\r\n \t\t\tif(token.isNameToken()) {\r\n \t\t\t\ttoken.type = ELOperandToken.EL_VARIABLE_NAME_TOKEN;\r\n \t\t\t\tbreak;\r\n \t\t\t}\r\n \t\t}\r\n \t}", "private Token nextRawToken() throws NoSuchElementException {\n\t\t// Location of the char after the current projected token.\n\t\tint sLoc = 0;\n\n\t\twhile (latestLine.trim().isEmpty()) {\n\t\t\tlatestLine = fileScanner.nextLine();\n\t\t}\n\n\t\t// Find the next end segment\n\t\twhile (latestLine.length() != sLoc + 1\n\t\t\t\t&& latestLine.charAt(sLoc + 1) != ' ') {\n\t\t\t// && getType(document.substring(0, sLoc + 1)) == TokenType.INVALID)\n\t\t\t// {\n\t\t\tsLoc++;\n\t\t}\n\n\t\t// End indices of the token, inclusive.\n\t\tint endTestToken = sLoc;\n\n\t\t/*\n\t\t * Determine the longest sub-token by starting from the end and working\n\t\t * backwards.\n\t\t */\n\t\tboolean valid = false;\n\t\tfor (int i = endTestToken; i >= 0; i--) {\n\t\t\tString testToken = latestLine.substring(0, i + 1);\n\t\t\tif (getType(testToken) != TokenType.INVALID) {\n\t\t\t\tsLoc = i;\n\t\t\t\tvalid = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (!valid) {\n\t\t\tsLoc = 0;\n\t\t}\n\n\t\tString token = latestLine.substring(0, sLoc + 1);\n\n\t\tToken t = new Token(token, getType(token));\n\t\trunDiagnostic(t);\n\n\t\t// Consume the token form the document\n\t\tlatestLine = latestLine.substring(sLoc + 1).trim();\n\n\t\treturn t;\n\t}", "public Arginfo visit(NotExpression n, Arginfo argu) {\n Arginfo _ret=null;\n int a=prectr++;\n int l1=labelctr++;\n int l2=labelctr++;\n System.out.println(\"BEGIN\\nCJUMP \");\n n.f0.accept(this, argu);\n n.f1.accept(this, argu);\n System.out.println(\" L\"+l1+\" \");\n System.out.println(\"MOVE TEMP \"+a+\" 0\\nJUMP L\"+l2+\" \");\n System.out.println(\"L\"+l1+\" \");\n System.out.println(\"MOVE TEMP \"+a+\" 1\\nJUMP L\"+l2+\" \");\n System.out.println(\"L\"+l2+\" NOOP\\n RETURN TEMP \"+a+\"\\nEND\\n\");\n return _ret;\n }", "private LiteralToken nextRegularExpressionLiteralToken() {\n LiteralToken token = scanner.nextRegularExpressionLiteralToken();\n lastSourcePosition = token.location.end;\n return token;\n }", "@Test(timeout = 4000)\n public void test073() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"zO=t1k%z[\");\n Token token0 = xPathLexer0.star();\n assertEquals(20, token0.getTokenType());\n assertEquals(\"z\", token0.getTokenText());\n \n Token token1 = xPathLexer0.dollar();\n xPathLexer0.setPreviousToken(token1);\n assertEquals(\"\", token1.getTokenText());\n assertEquals(26, token1.getTokenType());\n \n Token token2 = xPathLexer0.at();\n assertEquals(\"O\", token2.getTokenText());\n assertEquals(16, token2.getTokenType());\n \n Token token3 = xPathLexer0.not();\n assertEquals(\"=\", token3.getTokenText());\n assertEquals(23, token3.getTokenType());\n \n Token token4 = xPathLexer0.nextToken();\n assertEquals(15, token4.getTokenType());\n assertEquals(\"t1k\", token4.getTokenText());\n }", "private XMLTreeNNExpressionEvaluator() {\n }", "private void SolveCondition() {\n Pattern pt = Pattern.compile(\"(?<!\\\")\\\\[(.*?)\\\\](?<!\\\")\");\n //another greedy matching will be \\[([^}]+)\\]\n Matcher ma = pt.matcher(Input);\n while(ma.find()) {\n if(ma.groupCount()>0){\n System.out.println(ma.group(1));\n }\n }\n\n }", "public Snippet visit(NonEqualsExpression n, Snippet argu) {\n\t\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t Snippet f0 = n.identifier.accept(this, argu);\n\t n.nodeToken.accept(this, argu);\n\t Snippet f2 = n.identifier1.accept(this, argu);\n\t _ret.returnTemp = f0.returnTemp+\" != \"+f2.returnTemp;\n\t return _ret;\n\t }", "public Arginfo visit(neqExpression n, Arginfo argu) {\n\t\t Arginfo _ret=null;\n\t int num1=labelctr++;\n\t int num2=labelctr++;\n\t int var=prectr++;\n\t System.out.println(\"BEGIN\\n CJUMP NE \");\n\t n.f0.accept(this, argu);\n\t n.f1.accept(this, argu);\n\t n.f2.accept(this, argu);\n\t \n\t \n\t System.out.println(\" L\"+num1);\n\t System.out.println(\"\\nMOVE TEMP \"+var+\" 1\\nJUMP L\"+num2+\" \");\n\t System.out.println(\"L\"+num1+\"\\nMOVE TEMP \"+var+\" 0\\nJUMP L\"+num2+\" \"+\"L\"+num2+\"\\nNOOP\\nRETURN TEMP \"+var+\"\\nEND\\n\");\n\t return _ret;\n }", "private static int skipSub(AnalyzedTokenReadings[] tokens, int n, int to) {\n String gender = getGender(tokens[n]);\n for(int i = n + 1; i < to; i++) {\n if(tokens[i].matchesPosTagRegex(\"(SUB|EIG):.*\" + gender + \".*\")) {\n return i;\n }\n }\n return -1;\n }", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.equals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(21, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test070() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.nextToken();\n xPathLexer0.setXPath(\"y]jad[mR3w=N\");\n xPathLexer0.leftParen();\n xPathLexer0.doubleColon();\n Token token0 = xPathLexer0.identifierOrOperatorName();\n assertNull(token0);\n }", "public Token getNextToken() \n{\n Token specialToken = null;\n Token matchedToken;\n int curPos = 0;\n\n EOFLoop :\n for (;;)\n {\n try\n {\n curChar = input_stream.BeginToken();\n }\n catch(java.io.IOException e)\n {\n jjmatchedKind = 0;\n matchedToken = jjFillToken();\n matchedToken.specialToken = specialToken;\n return matchedToken;\n }\n image = jjimage;\n image.setLength(0);\n jjimageLen = 0;\n\n try { input_stream.backup(0);\n while (curChar <= 12 && (0x1000L & (1L << curChar)) != 0L)\n curChar = input_stream.BeginToken();\n }\n catch (java.io.IOException e1) { continue EOFLoop; }\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_0();\n if (jjmatchedKind != 0x7fffffff)\n {\n if (jjmatchedPos + 1 < curPos)\n input_stream.backup(curPos - jjmatchedPos - 1);\n if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n {\n matchedToken = jjFillToken();\n matchedToken.specialToken = specialToken;\n TokenLexicalActions(matchedToken);\n return matchedToken;\n }\n else\n {\n if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n {\n matchedToken = jjFillToken();\n if (specialToken == null)\n specialToken = matchedToken;\n else\n {\n matchedToken.specialToken = specialToken;\n specialToken = (specialToken.next = matchedToken);\n }\n SkipLexicalActions(matchedToken);\n }\n else\n SkipLexicalActions(null);\n continue EOFLoop;\n }\n }\n int error_line = input_stream.getEndLine();\n int error_column = input_stream.getEndColumn();\n String error_after = null;\n boolean EOFSeen = false;\n try { input_stream.readChar(); input_stream.backup(1); }\n catch (java.io.IOException e1) {\n EOFSeen = true;\n error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n if (curChar == '\\n' || curChar == '\\r') {\n error_line++;\n error_column = 0;\n }\n else\n error_column++;\n }\n if (!EOFSeen) {\n input_stream.backup(1);\n error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n }\n throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);\n }\n}", "public ParseExpression(){\n expression = null;\n }", "private String genNonGreedyRegex(int charloc,\n String specification,\n String eolcapture,\n String nonGreedyCapture) {\n\n return (charloc == specification.length()) ? eolcapture : nonGreedyCapture;\n }", "public NFA parse() throws ParseException;", "public Token nextToken() throws TokenStreamException\r\n {\r\n Token token = null;\r\n int type;\r\n\r\n int returnCount = 0;\r\n /*\r\n * First skip over whitespace/comments\r\n */\r\n do {\r\n token = getNextToken();\r\n type = token.getType();\r\n\r\n if (type == MExprANTLRParserTokenTypes.WHITESPACE) {\r\n if (\"\\n\".equals(token.getText()))\r\n returnCount++;\r\n }\r\n \r\n \r\n } while ((!tokenIndexStore_ && type == MExprANTLRParserTokenTypes.COMMENT)\r\n || type == MExprANTLRParserTokenTypes.WHITESPACE \r\n || fTypesetParse && whiteSpaceTypeset(token));\r\n\r\n /*\r\n * Now check for semi as the last token.\r\n */\r\n if (lastExprToken != null\r\n && lastExprToken.getType() == MExprANTLRParserTokenTypes.SEMI)\r\n token = fixSEMI(token, returnCount > 0 && nestingLevel == 0);\r\n\r\n boolean incrementNestingLevel = false;\r\n int lastNestingLevel = nestingLevel;\r\n /*\r\n * Now fix up individual tokens.\r\n */\r\n switch (token.getType()) {\r\n \tcase MExprANTLRParserTokenTypes.LONGNAME:\r\n \t\ttoken = fixLongName( token);\r\n \t\tbreak;\r\n \r\n case MExprANTLRParserTokenTypes.MINUS:\r\n if (!tokenCanEnd(lastExprToken) || tokenIsPrefix(lastExprToken))\r\n token.setType(MExprANTLRParserTokenTypes.UNARYMINUS);\r\n break;\r\n\r\n case MExprANTLRParserTokenTypes.PLUS:\r\n if (!tokenCanEnd(lastExprToken) || tokenIsPrefix(lastExprToken))\r\n token.setType(MExprANTLRParserTokenTypes.UNARYPLUS);\r\n break;\r\n\r\n case MExprANTLRParserTokenTypes.AMP:\r\n token = fixPostfix(\"AMPXX\", MExprANTLRParserTokenTypes.AMPINFIX,\r\n token);\r\n break;\r\n\r\n case MExprANTLRParserTokenTypes.DERIVATIVE:\r\n token = fixPostfix(\"DERIVATIVEXX\", MExprANTLRParserTokenTypes.DERIVATIVEINFIX,\r\n token);\r\n break;\r\n\r\n case MExprANTLRParserTokenTypes.SET:\r\n token = fixSET(token);\r\n break;\r\n\r\n case MExprANTLRParserTokenTypes.REPEATED:\r\n token = fixPostfix(\"REPEATEDXX\", MExprANTLRParserTokenTypes.REPEATEDINFIX,\r\n token);\r\n break;\r\n\r\n case MExprANTLRParserTokenTypes.REPEATEDNULL:\r\n token = fixPostfix(\"REPEATEDNULLXX\", MExprANTLRParserTokenTypes.REPEATEDNULLINFIX,\r\n token);\r\n break;\r\n\r\n\t/*\r\n\t * Convert EXCLAM into prefix NOT or postfix FACTORIAL.\r\n\t * \r\n\t * Turns into NOT if lastToken is an infix or a prefix.\r\n\t * If lastToken can end or is not a prefix becomes NOT\r\n\t * a + !b, + ! a, \r\n\t * \r\n * Also if last token can end and we have returnCount/lastNestingLevel\r\n * set then we will be inserting a PACKAGE token and this will become \r\n * NOT, so the real test is (a + b) || !a || !c which equals b || !a || !c\r\n */\r\n case MExprANTLRParserTokenTypes.EXCLAM:\r\n if ((returnCount > 0 && lastNestingLevel <= 0) || !tokenCanEnd(lastExprToken) || tokenIsPrefix( lastExprToken)) {\r\n token.setType(MExprANTLRParserTokenTypes.NOT);\r\n }\r\n else {\r\n \ttoken = fixPostfix(\"EXCLAM\", MExprANTLRParserTokenTypes.NOTINFIX,\r\n token);\r\n }\r\n break;\r\n \r\n /*\r\n * See EXCLAM\r\n */\r\n case MExprANTLRParserTokenTypes.EXCLAM2:\r\n if ((returnCount > 0 && lastNestingLevel <= 0) || !tokenCanEnd(lastExprToken) || tokenIsPrefix(lastExprToken)) {\r\n token.setType(MExprANTLRParserTokenTypes.NOTNOT);\r\n }\r\n else {\r\n \ttoken = fixPostfix(\"EXCLAM2\", MExprANTLRParserTokenTypes.NOTNOTINFIX,\r\n token);\r\n }\r\n break;\r\n \r\n\r\n case MExprANTLRParserTokenTypes.PLUSPLUS:\r\n if (tokenCanEnd(lastExprToken) && !tokenIsPrefix(lastExprToken))\r\n token = fixPostfix(\"PLUSPLUSXX\", MExprANTLRParserTokenTypes.PLUSPLUSINFIX,\r\n token);\r\n break;\r\n \r\n case MExprANTLRParserTokenTypes.MINUSMINUS:\r\n if (tokenCanEnd(lastExprToken) && !tokenIsPrefix(lastExprToken))\r\n token = fixPostfix(\"MINUSMINUSXX\", MExprANTLRParserTokenTypes.MINUSMINUSINFIX,\r\n token);\r\n break;\r\n\r\n case MExprANTLRParserTokenTypes.COMMA:\r\n token = fixThisComma(token);\r\n break;\r\n\r\n\r\n case MExprANTLRParserTokenTypes.LPAREN:\r\n case MExprANTLRParserTokenTypes.LBRACE:\r\n case MExprANTLRParserTokenTypes.LBRACKET:\r\n \tincrementNestingLevel = true;\r\n break;\r\n\r\n \r\n case MExprANTLRParserTokenTypes.RPAREN:\r\n nestingLevel--;\r\n \tbreak;\r\n\r\n case MExprANTLRParserTokenTypes.RBRACE:\r\n case MExprANTLRParserTokenTypes.RBRACKET:\r\n \ttoken = fixLastComma( token);\r\n \tif ( token.getType() != MExprANTLRParserTokenTypes.NULLID)\r\n \t\tnestingLevel--;\r\n \t\tbreak;\r\n \r\n case MExprANTLRParserTokenTypes.ID:\r\n token = fixID( token);\r\n \tbreak;\r\n \r\n case MExprANTLRParserTokenTypes.BLANK1:\r\n case MExprANTLRParserTokenTypes.BLANK2:\r\n case MExprANTLRParserTokenTypes.BLANK3:\r\n token = fixBLANK( token);\r\n \tbreak;\r\n\r\n case MExprANTLRParserTokenTypes.EQUALEXCLAM:\r\n \ttoken = fixEQUALEXCLAM( token);\r\n \tbreak;\r\n\r\n case MExprANTLRParserTokenTypes.TYPESETOPEN:\r\n token = fixTypesetOpen(token);\r\n break;\r\n\r\n case MExprANTLRParserTokenTypes.TYPESETSPACE:\r\n return nextToken();\r\n\r\n }\r\n\r\n /*\r\n * The test for Comment is here because tokenCanStart does not \r\n * return True for Comment (this would mess up all sorts of \r\n * other things).\r\n * \r\n * If this changes see EXCLAM\r\n */\r\n if (returnCount > 0 && lastNestingLevel <= 0 && tokenCanEnd(lastExprToken)\r\n //&& (tokenCanStart(token) || \r\n //\t\ttoken.getType() == MExprANTLRParserTokenTypes.COMMENT)\r\n ) {\r\n pushToken(token);\r\n int lim = getLimit( lastExprToken, token);\r\n token = makeToken(MExprANTLRParserTokenTypes.PACKAGE, \"Package\", lastExprToken);\r\n setLimit( token, lim);\r\n nestingLevel = 0;\r\n }\r\n else if ( incrementNestingLevel) {\r\n \tnestingLevel++;\r\n }\r\n \r\n if ( token.getType() != MExprANTLRParserTokenTypes.COMMENT) {\r\n \tlastExprToken = token;\r\n }\r\n \r\n//\t\t// LOCATION: added this\r\n // this must happen here instead of the ExprLexer because this TokenStream\r\n // changes the token count;\r\n if ( tokenIndexStore_)\r\n \t((MExprToken)token).tokenIndex_ = currTokenIndex_++;\r\n else\r\n \t((MExprToken)token).tokenIndex_ = -1;\r\n return token;\r\n }", "public void parseExpression() {\n String regex = \"[ ]\";\n //\"?<=[-+*/()ep])|(?=[-+*/()ei]\";\n String[] splitString = infix.split(regex);\n infixList.addAll(Arrays.asList(splitString));\n }", "public static Token getNextToken() {\n Token matchedToken;\n int curPos = 0;\n\n EOFLoop:\n for (; ; ) {\n try {\n curChar = input_stream.BeginToken();\n } catch (java.io.IOException e) {\n jjmatchedKind = 0;\n jjmatchedPos = -1;\n matchedToken = jjFillToken();\n return matchedToken;\n }\n\n for (; ; ) {\n switch (curLexState) {\n case 0:\n try {\n input_stream.backup(0);\n while (curChar <= 32 && (0x100002600L & (1L << curChar)) != 0L)\n curChar = input_stream.BeginToken();\n } catch (java.io.IOException e1) {\n continue EOFLoop;\n }\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_0();\n break;\n case 1:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_1();\n if (jjmatchedPos == 0 && jjmatchedKind > 10) {\n jjmatchedKind = 10;\n }\n break;\n }\n if (jjmatchedKind != 0x7fffffff) {\n if (jjmatchedPos + 1 < curPos)\n input_stream.backup(curPos - jjmatchedPos - 1);\n if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) {\n matchedToken = jjFillToken();\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n return matchedToken;\n } else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) {\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n continue EOFLoop;\n }\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n curPos = 0;\n jjmatchedKind = 0x7fffffff;\n try {\n curChar = input_stream.readChar();\n continue;\n } catch (java.io.IOException e1) {\n }\n }\n int error_line = input_stream.getEndLine();\n int error_column = input_stream.getEndColumn();\n String error_after = null;\n boolean EOFSeen = false;\n try {\n input_stream.readChar();\n input_stream.backup(1);\n } catch (java.io.IOException e1) {\n EOFSeen = true;\n error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n if (curChar == '\\n' || curChar == '\\r') {\n error_line++;\n error_column = 0;\n } else\n error_column++;\n }\n if (!EOFSeen) {\n input_stream.backup(1);\n error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n }\n throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);\n }\n }\n }", "public void Mini_Parser(){\n Lista_ER Nuevo=null;\n String Nombre=\"\";\n String Contenido=\"\";\n ArrayList<String> tem = new ArrayList<String>();\n //este boleano sirve para concatenar la expresion regular\n int Estado=0;\n for (int x = 0; x < L_Tokens.size(); x++) {\n switch(Estado){\n //ESTADO 0\n case 0:\n //Conjuntos\n if(L_Tokens.get(x).getLexema().equals(\"CONJ\")){\n if(L_Tokens.get(x+1).getLexema().equals(\":\")){\n if(L_Tokens.get(x+2).getDescripcion().equals(\"Identificador\")){\n //Son conjuntos \n Nombre=L_Tokens.get(x+2).getLexema();\n Estado=1;\n x=x+4;\n }\n }\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Identificador\")){\n //pasaa estado de expresion regular\n Nombre=L_Tokens.get(x).getLexema();\n Estado=2;\n }\n break;\n \n case 1:\n //ESTADO 1\n //Concatena los conjuntos\n if(L_Tokens.get(x).getDescripcion().equals(\"Identificador\")){\n if(L_Tokens.get(x+1).getDescripcion().equals(\"Tilde\")){\n Contenido=L_Tokens.get(x).getLexema()+L_Tokens.get(x+1).getLexema()+L_Tokens.get(x+2).getLexema();\n L_Tokens_Conj.add(new Lista_Conjuntos(Nombre, Contenido));\n x=x+2;\n Estado=0;\n }\n \n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Digito\")){\n if(L_Tokens.get(x+1).getDescripcion().equals(\"Tilde\")){\n Contenido=L_Tokens.get(x).getLexema()+L_Tokens.get(x+1).getLexema()+L_Tokens.get(x+2).getLexema();\n L_Tokens_Conj.add(new Lista_Conjuntos(Nombre, Contenido));\n x=x+2;\n Estado=0;\n }\n \n }\n for(int i=6;i<=37;i++){\n if(L_Tokens.get(x).getID()==i){\n if(L_Tokens.get(x+1).getDescripcion().equals(\"Tilde\")){\n Contenido=L_Tokens.get(x).getLexema()+L_Tokens.get(x+1).getLexema()+L_Tokens.get(x+2).getLexema();\n L_Tokens_Conj.add(new Lista_Conjuntos(Nombre, Contenido));\n x=x+2;\n Estado=0;\n }\n \n }\n }\n //conjunto sin llaves\n if(L_Tokens.get(x).getLexema().equals(\";\")){\n if(L_Tokens.get(x-1).getLexema().equals(\",\")){\n }else{\n L_Tokens_Conj.add(new Lista_Conjuntos(Nombre, Contenido));\n Estado=0;\n Contenido=\"\";\n\n }\n }else{\n Contenido+=L_Tokens.get(x).getLexema();\n }\n \n\n break;\n case 2:\n //ESTADO 2\n if(L_Tokens.get(x).getLexema().equals(\"-\")){\n if(L_Tokens.get(x+1).getLexema().equals(\">\")){\n //se mira que es expresion regular\n \n Lista_ER nuevo=new Lista_ER(L_Tokens.get(x-1).getLexema());\n Nuevo=nuevo;\n L_Tokens_ER.add(nuevo);\n x++;\n Estado=3;\n }\n }\n if(L_Tokens.get(x).getLexema().equals(\":\")){\n //se mira que es lexema\n Estado=4;\n }\n break;\n case 3: \n //ESTADO 3\n //Concatenacion de Expresion Regular\n \n //System.out.println(\"---------------------------------\"+ L_Tokens.get(x).getLexema());\n if(L_Tokens.get(x).getDescripcion().equals(\"Punto\")){\n Nuevo.setER(L_Tokens.get(x).getLexema());\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Barra Vetical\")){\n Nuevo.setER(L_Tokens.get(x).getLexema());\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Interrogacion\")){\n Nuevo.setER(L_Tokens.get(x).getLexema());\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Asterisco\")){\n Nuevo.setER(L_Tokens.get(x).getLexema());\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Signo Mas\")){\n Nuevo.setER(L_Tokens.get(x).getLexema());\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Lexema de Entrada\")){ \n String tem1='\"'+L_Tokens.get(x).getLexema()+'\"';\n Nuevo.setER(tem1);\n \n }\n if(L_Tokens.get(x).getLexema().equals(\"{\")){ \n String tem1=\"\";\n if(L_Tokens.get(x+2).getLexema().equals(\"}\")){\n tem1=L_Tokens.get(x).getLexema()+L_Tokens.get(x+1).getLexema()+L_Tokens.get(x+2).getLexema();\n Nuevo.setER(tem1);\n }\n }\n if(L_Tokens.get(x).getLexema().equals(\";\")){\n Estado=0;\n }\n break;\n case 4:\n// System.out.println(L_Tokens.get(x).getLexema());\n Contenido=L_Tokens.get(x+1).getLexema();\n L_Tokens_Lex.add(new Lista_LexemasE(L_Tokens.get(x-2).getLexema(), Contenido));\n Estado=0;\n \n break;\n }//fin switch\n }//Fin for\n }", "public boolean next() {\n\t\tif (done())\n\t\t\treturn false;\n\t\tmany(whitespace);\n\t\tString c=program.charAt(pos)+\"\";\n\t\tif (digits.contains(c))\n\t\t\tnextNumber();\n\t\telse if (letters.contains(c))\n\t\t\tnextKwId();\n\t\telse if (operators.contains(c))\n\t\t\tnextOp();\n\t\telse if (c.equals(\"#\")){\n\t\t\t//this is a comment, move past the first hashtag\n\t\t\tpast('#');\n\t\t\t//move past the second hastag, ignoring everything in between\n\t\t\tpast('#');\n\t\t\treturn next();\n\t\t} else {\n\t\t\tSystem.err.println(\"illegal character at position \"+pos);\n\t\t\tpos++;\n\t\t\treturn next();\n\t\t}\n\t\treturn true;\n }", "public java_cup.runtime.Symbol scan()\n throws java.lang.Exception\n {\n return s.next_token(); \n }", "@Test(timeout = 4000)\n public void test061() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.whitespace();\n assertEquals(\"\", token0.getTokenText());\n assertEquals((-2), token0.getTokenType());\n }", "public static void parse (Iterator it, Map<Character, Num> value,Map<String, String> expression,Map.Entry me ){\n\t\t\n\t\twhile(me!=null){\n\t\t\tString lineNum = (String) me.getKey();\n\t\t\tString expr = (String) me.getValue();\n\t\t\t\n\t\t\tif(expr.equals(\";\")){\n\t\t\t\t//Num lastValue; // = value.get(value.size() - 1);\n\t\t\t\tSet set1 = value.entrySet();\n\t\t\t\tIterator it1 = set1.iterator();\n\t\t\t\tMap.Entry me1 = null;\n\t\t\t\tMap.Entry me2 = null;\n\t\t\t\twhile(it1.hasNext())\n\t\t\t\t{\n\t\t\t\t//\tme2 = me1;\n\t\t\t\t\t\n\t\t\t\t\tme1 = (Map.Entry)it1.next();\n\t\t\t\t}\n\t\t\t\tNum lastValue = (Num) me1.getValue();\n\t\t\t\tString str = new String(strbuilder);\n\t\t\t\tSystem.out.println(str);\n\t\t\t\tif(lastValue!=null) {\n\t\t\t\t System.out.println(lastValue.toString());\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"Program Terminated\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tPattern p = Pattern.compile(\"[a-zA-Z]\");\n\t\t\t\tPattern oper = Pattern.compile(\"[-+*/|^%]\");\n\t\t\t\tPattern goTo = Pattern.compile(\"[?]\");\n\t\t\t\tPattern goTonext = Pattern.compile(\"[:]\");\n\t\t\t\tMatcher m = p.matcher(lineNum);\n\t\t\t\tif(!m.find()){\n\t\t\t\t\t//\tString nextWord = in.nextLine();\n\t\t\t\t\tMatcher m0 = goTonext.matcher(expr);\n\t\t\t\t\tMatcher m1 = goTo.matcher(expr);\n\t\t\t\t\tMatcher m2 = oper.matcher(expr);\n\t\t\t\t\tif(m1.find()){\n\t\t\t\t\t\tif(!m0.find()){\n\t\t\t\t\t\tint midIndex = expr.indexOf('?');\n\t\t\t\t\t\tint endIndex = expr.indexOf(';');\n\t\t\t\t\t\tString temp = expr.substring(0,midIndex).trim();\n\t\t\t\t\t\tchar var = temp.charAt(0);\n\t\t\t\t\t\tNum val = value.get(var);\n\t\t\t\t\t\tString whereToGo = expr.substring(midIndex + 1, endIndex).trim();\n\t\t\t\t\t\tNum zero = new Num(\"0\");\n\t\t\t\t\t\t//\tSet set = expression.entrySet();\n\t\t\t\t\t\tif(val.compareTo(zero)!=0){\n\t\t\t\t\t\t\tgotoFn(value,expression,lineNum,expr,whereToGo,var);\n\t\t\t\t\t\t return;}\n\t\t\t\t\t\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\n\t\t\t\t\t\t\tint startIndex = expr.indexOf('?');\n\t\t\t\t\t\t\tint midIndex = expr.indexOf(':');\n\t\t\t\t\t\t\tint endIndex = expr.indexOf(';');\n\t\t\t\t\t\t\tString temp = expr.substring(0,midIndex).trim();\n\t\t\t\t\t\t\tchar var = temp.charAt(0);\n\t\t\t\t\t\t\tString whereToGo1 = expr.substring(startIndex + 1, midIndex).trim();\n\t\t\t\t\t\t\tString whereToGo2 = expr.substring(midIndex + 1, endIndex).trim();\n\t\t\t\t\t\t\tNum zero = new Num(\"0\");\n\t\t\t\t\t\t\tNum val = value.get(var);\n\t\t\t\t\t\t\tif(val.compareTo(zero)!=0){\n\t\t\t\t\t\t\t\tgotoFn(value,expression,lineNum,expr,whereToGo1,var);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tgotoFn(value,expression,lineNum,expr,whereToGo2,var);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse if(m2.find())\n\t\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\t\tstoreAssigment(expr,value,expression,lineNum);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tint startIndex = expr.indexOf('=');\n\t\t\t\t\t\tint endIndex = expr.indexOf(';');\n\t\t\t\t\t\tString varString = expr.substring(0, startIndex).trim();\n\t\t\t\t\t\tchar variable = varString.charAt(0);\n\t\t\t\t\t\tString e = expr.substring(startIndex + 1, endIndex).trim();\n\t\t\t\t\t\tNum num;\n\t\t\t\t\t\tif(value.containsKey(e.charAt(0)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tnum = value.get(e.charAt(0));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tnum = new Num (e);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvalue.put(variable,num);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse{\n\t\t\t\t\t\n\t\t\t\t\tString comma = \";\";\n\t\t\t\t\tif(expr.length()==1 && expr.compareTo(comma)==0)\n\t\t\t\t\t{\n\t\t\t\t\t\tNum lastValue = value.get(value.size() - 1);\n\t\t\t\t\t\tif(lastValue!=null)\n\t\t\t\t\t\t\tlastValue.printList();\n\t\t\t\t\t\tString str = new String(strbuilder);\n\t\t\t\t\t\tSystem.out.println(str);\n\t\t\t\t\t\tSystem.out.print(\"Program Terminated\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse if(expr.length()==2)\n\t\t\t\t\t{\n\t\t\t\t\t\tchar key = expr.charAt(0);\n\t\t\t\t\t\tstrbuilder.append(value.get(key).toString());\n\t\t\t\t\t\tstrbuilder.append('\\n');\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tstoreAssigment(expr,value,expression,lineNum);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tme = (Map.Entry)it.next();\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test163() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n Token token0 = xPathLexer0.equals();\n assertEquals(21, token0.getTokenType());\n assertEquals(\"h\", token0.getTokenText());\n \n xPathLexer0.dollar();\n xPathLexer0.not();\n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"SM\", token1.getTokenText());\n \n Token token2 = xPathLexer0.leftParen();\n assertEquals(\"~\", token2.getTokenText());\n \n Token token3 = xPathLexer0.number();\n assertEquals(\"8\", token3.getTokenText());\n assertEquals(30, token3.getTokenType());\n \n Token token4 = xPathLexer0.dollar();\n assertEquals(26, token4.getTokenType());\n \n Token token5 = xPathLexer0.not();\n assertEquals(\"x\", token5.getTokenText());\n \n Token token6 = xPathLexer0.at();\n assertEquals(16, token6.getTokenType());\n assertEquals(\"(\", token6.getTokenText());\n \n Token token7 = xPathLexer0.not();\n assertEquals(23, token7.getTokenType());\n \n Token token8 = xPathLexer0.nextToken();\n assertEquals(\"B\", token8.getTokenText());\n assertEquals((-1), token8.getTokenType());\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}", "@Test(timeout = 4000)\n public void test153() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(\")\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n }", "private static boolean je_operator(String regex, int index) {\n int count = 0;\n\n while (index - 1 >= 0 && regex.charAt(index - 1) == '\\\\') {\n count++;\n index--;\n }\n\n return count % 2 == 0;\n }", "public static Object pregexpReadPattern(Object s, Object i, Object n) {\n if (Scheme.numGEq.apply2(i, n) != Boolean.FALSE) {\n return LList.list2(LList.list2(Lit4, LList.list1(Lit5)), i);\n }\n Object obj = LList.Empty;\n while (true) {\n Object apply2 = Scheme.numGEq.apply2(i, n);\n try {\n boolean x = ((Boolean) apply2).booleanValue();\n if (x) {\n if (x) {\n break;\n }\n try {\n try {\n if (!characters.isChar$Eq(Char.make(strings.stringRef((CharSequence) s, ((Number) i).intValue())), Lit7)) {\n i = AddOp.$Pl.apply2(i, Lit8);\n }\n Object vv = pregexpReadBranch(s, i, n);\n obj = lists.cons(lists.car.apply1(vv), obj);\n i = lists.cadr.apply1(vv);\n } catch (ClassCastException e) {\n throw new WrongType(e, \"string-ref\", 2, i);\n }\n } catch (ClassCastException e2) {\n throw new WrongType(e2, \"string-ref\", 1, s);\n }\n } else {\n try {\n try {\n if (characters.isChar$Eq(Char.make(strings.stringRef((CharSequence) s, ((Number) i).intValue())), Lit6)) {\n break;\n }\n if (!characters.isChar$Eq(Char.make(strings.stringRef((CharSequence) s, ((Number) i).intValue())), Lit7)) {\n }\n Object vv2 = pregexpReadBranch(s, i, n);\n obj = lists.cons(lists.car.apply1(vv2), obj);\n i = lists.cadr.apply1(vv2);\n } catch (ClassCastException e3) {\n throw new WrongType(e3, \"string-ref\", 2, i);\n }\n } catch (ClassCastException e4) {\n throw new WrongType(e4, \"string-ref\", 1, s);\n }\n }\n } catch (ClassCastException e5) {\n throw new WrongType(e5, \"x\", -2, apply2);\n }\n }\n return LList.list2(lists.cons(Lit4, pregexpReverse$Ex(obj)), i);\n }", "public NonTerminal getNextNonTerminal() {\n\t\tif (marker < getRhs().length && getRhs()[marker] instanceof NonTerminal)\n\t\t\treturn (NonTerminal) getRhs()[marker];\n\t\telse\n\t\t\treturn null;\n\t}", "@Test(timeout = 4000)\n public void test135() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"d>%NV0\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"d\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\">\", token1.getTokenText());\n assertEquals(9, token1.getTokenType());\n \n Token token2 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token2.getTokenType());\n assertEquals(\"\", token2.getTokenText());\n }", "private boolean isNumberAhead() {\r\n\t\treturn Character.isDigit(expression[currentIndex]);\r\n\t}", "@Override\n public R visit(RegexExpression n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n n.expression.accept(this, argu);\n n.nodeToken2.accept(this, argu);\n n.expression1.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n n.nodeToken3.accept(this, argu);\n return _ret;\n }", "private void skip(XmlPullParser parser) throws XmlPullParserException, IOException {\n\t\tif (parser.getEventType() != XmlPullParser.START_TAG) {\n\t\t\tthrow new IllegalStateException();\n\t\t}\n\t\tint depth = 1;\n\t\twhile (depth != 0) {\n\t\t\tswitch (parser.next()) {\n\t\t\tcase XmlPullParser.END_TAG:\n\t\t\t\tdepth--;\n\t\t\t\tbreak;\n\t\t\tcase XmlPullParser.START_TAG:\n\t\t\t\tdepth++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public interface RecursiveDescentParser\n{\n\n /**\n * Parses a regular expression and returns an NFA that describes that regular expression.\n * @return an NFA describing the regular expression that was parsed\n * @throws ParseException\n */\n public NFA parse() throws ParseException;\n\n}", "@Override\n\tpublic Object visit(ASTFilterNot node, Object data) {\n\t\tSystem.out.print(\"not \");\n\t\tnode.childrenAccept(this, data);\n\t\treturn null;\n\t}", "private int ignore(int nextVal) throws java.io.IOException {\n\t\tboolean end = false;\n\n\t\twhile (!end) {\n\t\t\tif (isComment(nextVal)) {\n\t\t\t\tnextVal = ignoreComment(nextVal);\n\t\t\t} else if (isIgnoredCharacter(nextVal)){\n\t\t\t\tnextVal = ignoreCharacters(nextVal);\n\t\t\t} else {\n\t\t\t\tend = true;\n\t\t\t}\n\t\t}\n\t\treturn nextVal;\n\t}", "private static int skipToSub(String gender, AnalyzedTokenReadings[] tokens, int n, int to) {\n if(tokens[n+1].matchesPosTagRegex(\"PA[12]:.*\" + gender + \".*\")) {\n return n+1;\n }\n for(int i = n + 1; i < to; i++) {\n if(tokens[i].matchesPosTagRegex(\"(ADJ|PA[12]):.*\" + gender + \".*\") || tokens[i].isPosTagUnknown()) {\n return i;\n }\n if(tokens[i].hasPosTagStartingWith(\"ART\")) {\n i = skipSub(tokens, i, to);\n if (i < 0) {\n return i;\n }\n }\n }\n return -1;\n }", "private void match(TokenType tokType) {\r\n if(tokens.get(position).returnType() != tokType) {\r\n \t\tSystem.out.println(position);\r\n parseError();\r\n }\r\n position++;\r\n }", "@Test(timeout = 4000)\n public void test014() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.nextToken();\n Token token0 = xPathLexer0.getPreviousToken();\n assertEquals((-1), token0.getTokenType());\n }", "public Snippet visit(DotIsLast n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t _ret = n.identifier.accept(this, argu);\n\t n.nodeToken.accept(this, argu);\n\t n.nodeToken1.accept(this, argu);\n\t n.nodeToken2.accept(this, argu);\n\t n.nodeToken3.accept(this, argu);\n\t //return new Snippet(\"\", _ret.returnTemp+\".isLast()\", new X10Boolean(), false);\n\t return new Snippet(\"\", \"false\", new X10Boolean(), false);\n\t }", "protected Evaluable parseFactor() throws ParsingException {\n if (_token == null) {\n throw makeException(\"Expecting something more at end of expression\");\n }\n\n Evaluable eval = null;\n\n if (_token.type == TokenType.String) {\n eval = new LiteralExpr(_token.text);\n next(false);\n } else if (_token.type == TokenType.Regex) {\n RegexToken t = (RegexToken) _token;\n\n try {\n Pattern pattern = Pattern.compile(_token.text, t.caseInsensitive ? Pattern.CASE_INSENSITIVE : 0);\n eval = new LiteralExpr(pattern);\n next(false);\n } catch (Exception e) {\n throw makeException(\"Bad regular expression (\" + e.getMessage() + \")\");\n }\n } else if (_token.type == TokenType.Number) {\n eval = new LiteralExpr(((NumberToken)_token).value);\n next(false);\n } else if (_token.type == TokenType.Operator && _token.text.equals(\"-\")) { // unary minus?\n next(true);\n\n if (_token != null && _token.type == TokenType.Number) {\n Number n = ((NumberToken)_token).value;\n\n eval = new LiteralExpr(n instanceof Long ? -n.longValue() : -n.doubleValue());\n\n next(false);\n } else {\n throw makeException(\"Bad negative number\");\n }\n } else if (_token.type == TokenType.Identifier) {\n String text = _token.text;\n next(false);\n\n if (_token == null || _token.type != TokenType.Delimiter || !_token.text.equals(\"(\")) {\n eval = \"null\".equals(text) ? new LiteralExpr(null) : new VariableExpr(text);\n } else if( \"PI\".equals(text) ) {\n eval = new LiteralExpr(Math.PI);\n next(false);\n } else {\n Function f = ControlFunctionRegistry.getFunction(text);\n Control c = ControlFunctionRegistry.getControl(text);\n if (f == null && c == null) {\n throw makeException(\"Unknown function or control named \" + text);\n }\n\n next(true); // swallow (\n\n List<Evaluable> args = parseExpressionList(\")\");\n\n if (c != null) {\n Evaluable[] argsA = makeArray(args);\n String errorMessage = c.checkArguments(argsA);\n if (errorMessage != null) {\n throw makeException(errorMessage);\n }\n eval = new ControlCallExpr(argsA, c);\n } else {\n eval = new FunctionCallExpr(makeArray(args), f);\n }\n }\n } else if (_token.type == TokenType.Delimiter && _token.text.equals(\"(\")) {\n next(true);\n\n eval = parseExpression();\n\n if (_token != null && _token.type == TokenType.Delimiter && _token.text.equals(\")\")) {\n next(false);\n } else {\n throw makeException(\"Missing )\");\n }\n } else if (_token.type == TokenType.Delimiter && _token.text.equals(\"[\")) { // [ ... ] array\n next(true); // swallow [\n\n List<Evaluable> args = parseExpressionList(\"]\");\n\n eval = new FunctionCallExpr(makeArray(args), new ArgsToArray());\n } else {\n throw makeException(\"Missing number, string, identifier, regex, or parenthesized expression\");\n }\n\n while (_token != null) {\n if (_token.type == TokenType.Operator && _token.text.equals(\".\")) {\n next(false); // swallow .\n\n if (_token == null || _token.type != TokenType.Identifier) {\n throw makeException(\"Missing function name\");\n }\n\n String identifier = _token.text;\n next(false);\n\n if (_token != null && _token.type == TokenType.Delimiter && _token.text.equals(\"(\")) {\n next(true); // swallow (\n\n Function f = ControlFunctionRegistry.getFunction(identifier);\n if (f == null) {\n throw makeException(\"Unknown function \" + identifier);\n }\n\n List<Evaluable> args = parseExpressionList(\")\");\n args.add(0, eval);\n\n eval = new FunctionCallExpr(makeArray(args), f);\n } else {\n eval = new FieldAccessorExpr(eval, identifier);\n }\n } else if (_token.type == TokenType.Delimiter && _token.text.equals(\"[\")) {\n next(true); // swallow [\n\n List<Evaluable> args = parseExpressionList(\"]\");\n args.add(0, eval);\n\n eval = new FunctionCallExpr(makeArray(args), ControlFunctionRegistry.getFunction(\"get\"));\n } else {\n break;\n }\n }\n\n return eval;\n }", "public static Token getNextToken()\n{\n Token matchedToken;\n int curPos = 0;\n\n EOFLoop :\n for (;;)\n {\n try\n {\n curChar = input_stream.BeginToken();\n }\n catch(java.io.IOException e)\n {\n jjmatchedKind = 0;\n jjmatchedPos = -1;\n matchedToken = jjFillToken();\n return matchedToken;\n }\n image = jjimage;\n image.setLength(0);\n jjimageLen = 0;\n\n switch(curLexState)\n {\n case 0:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_0();\n break;\n case 1:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_1();\n if (jjmatchedPos == 0 && jjmatchedKind > 8)\n {\n jjmatchedKind = 8;\n }\n break;\n case 2:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_2();\n if (jjmatchedPos == 0 && jjmatchedKind > 8)\n {\n jjmatchedKind = 8;\n }\n break;\n }\n if (jjmatchedKind != 0x7fffffff)\n {\n if (jjmatchedPos + 1 < curPos)\n input_stream.backup(curPos - jjmatchedPos - 1);\n if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n {\n matchedToken = jjFillToken();\n TokenLexicalActions(matchedToken);\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n return matchedToken;\n }\n else\n {\n SkipLexicalActions(null);\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n continue EOFLoop;\n }\n }\n int error_line = input_stream.getEndLine();\n int error_column = input_stream.getEndColumn();\n String error_after = null;\n boolean EOFSeen = false;\n try { input_stream.readChar(); input_stream.backup(1); }\n catch (java.io.IOException e1) {\n EOFSeen = true;\n error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n if (curChar == '\\n' || curChar == '\\r') {\n error_line++;\n error_column = 0;\n }\n else\n error_column++;\n }\n if (!EOFSeen) {\n input_stream.backup(1);\n error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n }\n throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);\n }\n}", "double parseExpression() {\n double x = parseTerm();\n for (;;) {\n if (eat('+')) x += parseTerm(); // addition\n else if (eat('-')) x -= parseTerm(); // subtraction\n else return x;\n }\n }", "double parseExpression() {\n double x = parseTerm();\n for (;;) {\n if (eat('+')) x += parseTerm(); // addition\n else if (eat('-')) x -= parseTerm(); // subtraction\n else return x;\n }\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"oofT'b.HnXtsd.\");\n Token token0 = xPathLexer0.notEquals();\n assertEquals(\"oo\", token0.getTokenText());\n assertEquals(22, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"fT\", token1.getTokenText());\n }", "public double parse(){\n token = lexer.getNextToken();\n\t\tdouble value = parseExpression();\n\t\tif (token.getType().equals(Token.Type.END)&&parenCount==0){\n\t\t\treturn value;\n\t\t}else{\n\t\t\treturn Double.NaN;\n\t\t}\n\t}", "public boolean match( DataExp p ) { return false; }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"!9'|l*JR\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(23, token0.getTokenType());\n assertEquals(\"!\", token0.getTokenText());\n }", "@Test(timeout = 4000)\n public void test004() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"d>%NV0\");\n Token token0 = xPathLexer0.operatorName();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test145() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\">3C%Yk\");\n Token token0 = xPathLexer0.not();\n assertEquals(\">\", token0.getTokenText());\n assertEquals(23, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(30, token1.getTokenType());\n assertEquals(\"3\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"LW>$p??\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"L\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"W\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test039() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"[ (\");\n xPathLexer0.consume((-663));\n // Undeclared exception!\n try { \n xPathLexer0.operatorName();\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }", "@Test(timeout = 4000)\n public void test002() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"/a\");\n xPathLexer0.dollar();\n Token token0 = xPathLexer0.and();\n assertNull(token0);\n }" ]
[ "0.58637285", "0.5792848", "0.57500356", "0.5684686", "0.55092514", "0.54894686", "0.5485771", "0.54538983", "0.54392505", "0.5417181", "0.5391255", "0.53685856", "0.5362835", "0.5356374", "0.5346564", "0.5341821", "0.5317721", "0.5300089", "0.52811897", "0.52773833", "0.52469677", "0.52255774", "0.522509", "0.5203309", "0.5203213", "0.5200558", "0.5191586", "0.51821595", "0.51727587", "0.516696", "0.51651907", "0.5164883", "0.51541585", "0.5151744", "0.51508486", "0.5129363", "0.51288396", "0.5128838", "0.51213723", "0.51202327", "0.5109444", "0.5091191", "0.5087663", "0.50852984", "0.5080841", "0.507183", "0.50643575", "0.5063779", "0.5063744", "0.505399", "0.50499713", "0.50472856", "0.50416696", "0.5034771", "0.50287", "0.5017012", "0.5015683", "0.5012468", "0.50003743", "0.49970388", "0.49950033", "0.4992334", "0.49892023", "0.4983546", "0.4977964", "0.49740186", "0.49735084", "0.4957073", "0.49531463", "0.49503478", "0.49455485", "0.49454877", "0.49438792", "0.49396932", "0.4934344", "0.49324915", "0.49259323", "0.49249208", "0.49234253", "0.49191645", "0.49182403", "0.49179628", "0.49087933", "0.49085435", "0.49039438", "0.49019137", "0.49007174", "0.48980188", "0.48938304", "0.48934427", "0.48934427", "0.489243", "0.48900044", "0.48873997", "0.4885516", "0.48854277", "0.48816022", "0.48728666", "0.48720828", "0.48718572" ]
0.5116566
40
Parses a search without a header
public abstract Search defaultSearch(StringBuilder sb);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SearchResponse search(SearchRequest searchRequest) throws IOException;", "Search getSearch();", "private Search() {}", "void search();", "void search();", "void searchProbed (Search search);", "@Override\n\tpublic NodeIterator search(String queryString) throws Exception {\n\t\treturn null;\n\t}", "abstract public void search();", "List<SearchResult> search(SearchQuery searchQuery);", "public Search parseNext(StringBuilder sb)\n\t\t{\n\t\t\tfor(SearchType type : getAllTypes())\n\t\t\t{\n\t\t\t\tfor(String header : type.getHeaders())\n\t\t\t\t{\n\t\t\t\t\tif(sb.length() < header.length())\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tboolean hasHeader = true;\n\t\t\t\t\tint c;\n\t\t\t\t\tfor(c = 0; c < header.length(); c++)\n\t\t\t\t\t\tif(lower(sb.charAt(c)) != header.charAt(c))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\thasHeader = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\tif(hasHeader)\n\t\t\t\t\t{\n\t\t\t\t\t\ttrim(sb);\n\t\t\t\t\t\tfor(; c < sb.length(); c++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(Character.isWhitespace(sb.charAt(c)))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\telse if(sb.charAt(c) == '\\\"')\n\t\t\t\t\t\t\t\tc = goPastQuote(sb, c);\n\t\t\t\t\t\t\telse if(sb.charAt(c) == '(')\n\t\t\t\t\t\t\t\tc = goPastParen(sb, c);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSearch ret = type.create(sb.substring(0, c), this);\n\t\t\t\t\t\tsb.delete(0, c + 1);\n\t\t\t\t\t\treturn ret;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn defaultSearch(sb);\n\t\t}", "public BuildHeaderSearchString() { }", "List<ShipmentInfoPODDTO> search(String query);", "public void search() {\r\n \t\r\n }", "private JsonObject search(JsonObject request) {\n\t\t\tJsonObject result = new JsonObject();\n\t\t\tJsonArray artists = new JsonArray();\n\t\t\tJsonArray titles = new JsonArray();\n\t\t\tJsonArray tags = new JsonArray();\n\t\t\tJsonArray arSimilars = new JsonArray();\n\t\t\tJsonArray tiSimilars = new JsonArray();\n\t\t\tJsonArray taSimilars = new JsonArray();\n\t\t\t//Individually search by artist, by title and by tag. \n\t\t\tartists = request.getAsJsonArray(\"searchByArtist\");\n\t\t\ttitles = request.getAsJsonArray(\"searchByTitle\");\n\t\t\ttags = request.getAsJsonArray(\"searchByTag\");\n\t\t\t//If the request contains \"artist\", we search each artist's similar song, and add it to a JsonArray.\n\t\t\tif(artists != null && artists.size() >= 1) {\n\t\t\t\tfor(JsonElement artist: artists) {\n\t\t\t\t\tarSimilars.add(this.sl.searchByArtist(artist.getAsString()));\t\n\t\t\t\t}\n\t\t\t\t//We add the JsonArray to result, associated with \"searchByArtist\".\n\t\t\t\tresult.add(\"searchByArtist\", arSimilars);\n\t\t\t}\n\t\t\t//If the request contains \"tag\", we search each tag's similar song, and add it to a JsonArray.\n\t\t\tif(tags != null && tags.size() >= 1) {\n\t\t\t\tfor(JsonElement tag: tags) {\t\t\t\t\n\t\t\t\t\ttaSimilars.add(this.sl.searchByTag(tag.getAsString()));\t\t\t\t\n\t\t\t\t}\n\t\t\t\t//We add the JsonArray to result, associated with \"searchByTag\".\n\t\t\t\tresult.add(\"searchByTag\", taSimilars);\n\t\t\t}\t\t\n\t\t\t//If the request contains title, we search each title's similar song, and add it to a JsonArray\n\t\t\tif(titles != null && titles.size() >= 1) {\t\t\t\n\t\t\t\tfor(JsonElement title: titles) {\n\t\t\t\t\ttiSimilars.add(this.sl.searchByTitle(title.getAsString()));\n\t\t\t\t}\n\t\t\t\t//We add the JsonArray to result, associated with \"searchByTiltle\".\n\t\t\t\tresult.add(\"searchByTitle\", tiSimilars);\n\t\t\t}\n\t\t\treturn result;\n\t\t}", "SearchResult<TimelineMeta> search(SearchParameter searchParameter);", "SearchResult<TimelineMeta> search(SearchQuery searchQuery);", "public abstract S getSearch();", "public void search() {\n }", "public search() {\n }", "public void searchIndex(Directory index) throws Exception{\n\t\tString searchString = getSearchString();\n\t\t\n\t\tSystem.out.println(\"Searching for '\" + searchString + \"'\");\n\n\t\tIndexReader indexReader = DirectoryReader.open(index);\n\t\tIndexSearcher indexSearcher = new IndexSearcher(indexReader);\n\n\t\tAnalyzer analyzer = new StandardAnalyzer();\n\t\t\n\t\tString query_string = \"title:\" + searchString + \" OR content:\" + searchString + \"OR important:\" + searchString + \"OR h1:\" + searchString +\n\t\t\t\t\"OR h2:\" + searchString + \"OR h3:\" + searchString + \"OR h4:\" + searchString + \"OR h5:\" + searchString + \"OR h6:\" + searchString;\n\t\tQueryParser queryParser = new QueryParser(\"title\", analyzer);\n\t\t\n\t\tTopDocs docs = indexSearcher.search(queryParser.parse(query_string), 10);\n\t\t\n\t\t\n//\t\tString[] fields = {\"content\", \"title\", \"important\", \"h1\", \"h2\", \"h3\", \"h4\", \"h5\", \"h6\"};\n//\t\tBooleanClause.Occur[] flags = \n//\t\t{\n//\t\t\tBooleanClause.Occur.SHOULD,\n//\t\t\tBooleanClause.Occur.SHOULD,\n//\t\t\tBooleanClause.Occur.SHOULD,\n//\t\t\tBooleanClause.Occur.SHOULD,\n//\t\t\tBooleanClause.Occur.SHOULD,\n//\t\t\tBooleanClause.Occur.SHOULD,\n//\t\t\tBooleanClause.Occur.SHOULD,\n//\t\t\tBooleanClause.Occur.SHOULD,\n//\t\t\tBooleanClause.Occur.SHOULD,\n// };\n//\t\t\n//\t\tTopDocs docs = indexSearcher.search(MultiFieldQueryParser.parse(searchString, fields, flags, analyzer), 10);\n\n\t\tScoreDoc[] hits = docs.scoreDocs;\n\n\t System.out.println(\"Found \" + hits.length + \" hits.\");\n\t for(int i=0;i<hits.length;++i) {\n\t \tint docId = hits[i].doc;\n\t Document d = indexSearcher.doc(docId);\n\t System.out.println((i + 1) + \". \" + d.get(\"title\") + \"\\t\" + d.get(\"url\") + \"\\t\" + hits[i].score);\n\t }\n\t}", "@In String search();", "List<Corretor> search(String query);", "List<Block> search(String searchTerm);", "private void searchFunction() {\n\t\t\r\n\t}", "private void search(SearchRequest request) {\r\n\t\tif(request == null)return;\r\n\t\tList<Record> results = handler.search(request);\r\n\t\tlist.show(results);\r\n\t\tpanInfo.setNumRec(results.size());\r\n\t\tpanInfo.setTotalAmt(Record.sumBalance(results));\r\n\t}", "@Override\n\tpublic void search() {\n\t}", "public SearchResponse search(SearchRequest request) throws SearchServiceException;", "TSearchQuery prepareSearchQuery(SearchQueryDefinitionAPI searchQueryDefinition);", "List<PurchaseOrderHeader> searchPurchaseOrderHeaders(GeneralSearchForm searchForm);", "@Override\r\n\tpublic void search() {\n\r\n\t}", "public static interface SearchType\n\t{\n\t\t/**\n\t\t * Creates a search of this type with the given query\n\t\t * \n\t\t * @param search The search query\n\t\t * @param builder The search builder that is compiling the search\n\t\t * @return The compiled search object representing the given query\n\t\t */\n\t\tpublic abstract Search create(String search, SearchBuilder builder);\n\n\t\t/** @return All headers that may begin a search of this type */\n\t\tpublic abstract String [] getHeaders();\n\t}", "List<DataTerm> search(String searchTerm);", "public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }", "public MagicSearch createMagicSearch();", "public Search createSearch(String searchText)\n\t\t{\n\t\t\tStringBuilder sb = new StringBuilder(searchText);\n\t\t\ttrim(sb);\n\t\t\tSearch current = null;\n\t\t\twhile(sb.length() > 0)\n\t\t\t{\n\t\t\t\tboolean not = false;\n\t\t\t\tif(sb.length() > 1 && lower(sb.charAt(0)) == 'o' && lower(sb.charAt(1)) == 'r')\n\t\t\t\t{ // OR operator\n\t\t\t\t\tsb.delete(0, 2);\n\t\t\t\t\tExpressionSearch exp = exp(false);\n\t\t\t\t\texp.add(current);\n\t\t\t\t\tcurrent = exp;\n\t\t\t\t\ttrim(sb);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse if(sb.length() > 2 && lower(sb.charAt(0)) == 'a' && lower(sb.charAt(1)) == 'n'\n\t\t\t\t\t&& lower(sb.charAt(2)) == 'd')\n\t\t\t\t{\n\t\t\t\t\tsb.delete(0, 3);\n\t\t\t\t\ttrim(sb);\n\t\t\t\t}\n\t\t\t\telse if(sb.length() > 1 && sb.charAt(0) == '!')\n\t\t\t\t{\n\t\t\t\t\tsb.delete(0, 1);\n\t\t\t\t\ttrim(sb);\n\t\t\t\t\tnot = true;\n\t\t\t\t}\n\n\t\t\t\tSearch next;\n\t\t\t\tif(sb.charAt(0) == '(')\n\t\t\t\t{\n\t\t\t\t\tint c = goPastParen(sb, 0);\n\t\t\t\t\tString nextExpr = sb.substring(1, c).trim();\n\t\t\t\t\tif(nextExpr.length() == 0)\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"Empty parenthetical expression\");\n\t\t\t\t\tnext = createSearch(nextExpr);\n\t\t\t\t\tsb.delete(0, c + 1);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tnext = parseNext(sb);\n\t\t\t\tif(not)\n\t\t\t\t{\n\t\t\t\t\tNotSearch notS = not();\n\t\t\t\t\tnotS.setOperand(next);\n\t\t\t\t\tnext = notS;\n\t\t\t\t}\n\n\t\t\t\tif(current instanceof ExpressionSearch\n\t\t\t\t\t&& ((ExpressionSearch) current).getOperandCount() == 1)\n\t\t\t\t\t((ExpressionSearch) current).add(next);\n\t\t\t\telse if(current != null)\n\t\t\t\t{\n\t\t\t\t\tExpressionSearch exp = exp(true);\n\t\t\t\t\texp.addOps(current, next);\n\t\t\t\t\tcurrent = exp;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcurrent = next;\n\n\t\t\t\ttrim(sb);\n\t\t\t}\n\t\t\tif(current instanceof ExpressionSearch)\n\t\t\t\t((ExpressionSearch) current).simplify();\n\t\t\treturn current;\n\t\t}", "void searchStarted (Search search);", "@Test\n public void testSearchFilter_WithoutQuery() {\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n\n BridgeRequest request = new BridgeRequest();\n request.setStructure(\"user\");\n request.setFields(fields);\n request.setQuery(\"\");\n\n RecordList list = null;\n BridgeError unexpectedError = null;\n try {\n list = getAdapter().search(request);\n } catch (BridgeError e) {\n unexpectedError = e;\n }\n\n assertNull(unexpectedError);\n assertTrue(list.getRecords().size() > 0);\n }", "List<Revenue> search(String query);", "public SearchResult[] basicSearch(final String query, final int numResultsToSkip, \n final int numResultsToReturn) {\n final LinkedList<SearchResult> results = new LinkedList<SearchResult>();\n try {\n final SearchEngine se = new SearchEngine();\n final TopDocs topDocs = se.performSearch(query);\n final ScoreDoc[] hits = topDocs.scoreDocs;\n int total = numResultsToReturn+numResultsToSkip;\n \n //Return everything if requested results is 0 or total results if its smaller than calculated\n if (numResultsToReturn == 0 || hits.length < total) {\n total = hits.length;\n }\n \n //Check if requested skip amount is greater than number of hits\n if (hits.length < numResultsToSkip) {\n System.err.println(\"Number of requested to skip is greater than total results returned!\");\n System.exit(2);\n }\n\n //Add each search result to the array\n for (int i=numResultsToSkip; i < total; i++) {\n Document doc = se.getDocument(hits[i].doc);\n results.add(new SearchResult(doc.get(\"item_id\"), doc.get(\"name\")));\n }\n return results.toArray(new SearchResult[results.size()]);\n } catch (IOException | ParseException ex) {\n ex.printStackTrace();\n System.exit(2);\n return null;\n }\n }", "List<ResultDTO> search(String query);", "java.lang.String getSearchValue();", "@java.lang.Override\n public com.clarifai.grpc.api.Search getSearch() {\n if (inputSourceCase_ == 10) {\n return (com.clarifai.grpc.api.Search) inputSource_;\n }\n return com.clarifai.grpc.api.Search.getDefaultInstance();\n }", "void searchFinished (Search search);", "@Override\n\tpublic ArrayList<SearchItem> search(String key) {\n\t\treturn null;\n\t}", "List<Card> search(String searchString) throws PersistenceCoreException;", "@Override\n public SearchResult search_hunter(String keyword, int page, int rows ,int search_type) throws Exception{\n\n return null;\n }", "@Test\n public void testSearchFilter_WithoutAddedSearchBase_WithoutParensInQuery_WithoutParensInParam() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"samaccountname=mary.olowu\");\n request.setParameters(parameters);\n\n BridgeError expectedError = null;\n RecordList list = null;\n try {\n list = getAdapter().search(request);\n } catch (BridgeError e) {\n expectedError = e;\n }\n\n assertNotNull(expectedError);\n }", "List<Cemetery> search(String query);", "void compareSearch();", "@Test\n public void testSearchFilter_WithAddedSearchBase_NoQueryParens() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"OU=Users(samaccountname=mary.olowu)\");\n request.setParameters(parameters);\n\n BridgeError unexpectedError = null;\n RecordList list = null;\n try {\n list = getAdapter().search(request);\n } catch (BridgeError e) {\n unexpectedError = e;\n }\n\n assertNull(unexpectedError);\n assertTrue(list.getRecords().size() > 0);\n }", "private void search() {\n String result = \"<body bgcolor=\\\"black\\\"> \" +\n \"<font color=\\\"#009933\\\"\";\n gs.setQueryString(txtQueury.getText());\n try {\n gsr = gs.doSearch();\n txtCountRes.setText(\"\" + gsr.getEstimatedTotalResultsCount());\n gsre = gsr.getResultElements();\n\n for (int i = 0; i < gsre.length; i++) {\n if (googleTitle.isSelected()) {\n result +=\n \"<font color=\\\"red\\\"><u><b>Title: </u></b><a href=\\\"\" +\n gsre[i].getURL() + \"\\\">\"\n + gsre[i].getTitle() + \"</a><br>\" +\n \"<br><b>URL: \" +\n gsre[i].getHostName() + gsre[i].getURL() +\n \"</b></font><br>\";\n }\n if (googleSummary.isSelected()) {\n result += \"<u><b>Summary: </u></b>\" +\n gsre[i].getSummary() +\n \"<br>\";\n }\n if (googleSnippet.isSelected()) {\n result += \"<u><b>Snippet: </u></b>\" +\n gsre[i].getSnippet() +\n \"<br>\";\n }\n if (googleHostName.isSelected()) {\n result += \"<u><b>Host: </u></b>\" + gsre[i].getHostName() +\n \"<br>\";\n }\n if (googleDirectoryTitle.isSelected()) {\n result += \"<u><b>Directory Title: </u></b>\" +\n gsre[i].getDirectoryTitle() + \"<br>\";\n }\n if (googleCachedSize.isSelected()) {\n result += \"<u><>Cached Size: </u></b>\" +\n gsre[i].getCachedSize() + \"<br>\";\n }\n result += \"<br>\";\n }\n } catch (GoogleSearchFault e) {\n msg(\"Erreur d'exécution \" + e.getMessage(), \"Error\",\n JOptionPane.ERROR_MESSAGE);\n }\n\n //affichage de la recherche\n editor.setText(result);\n }", "final void searchPage(DataInputStream dis,String url)\r\n {\r\n try\r\n\t{\r\n String input; // Raw line read in.\r\n\t String upperCaseInput; // Upper case version of the above\r\n\t String link; // HTML link found\r\n\t String temp; \r\n\t String title=\"\"; // Page Title;\r\n\r\n\t // Read a line at a time.\r\n\t while((input=dis.readLine())!=null)\r\n\t {\r\n\t // Convert to Upper case (makes comparisions easier)\r\n\t\tupperCaseInput=input.toUpperCase();\r\n\t\t// Check for document title\r\n\t\ttemp=parseForTitle(input,upperCaseInput,dis);\r\n\t\t// If a title has been found then remember it. So, that it can displayed on the list box.\r\n\t\tif(temp!=null && temp.length()>0)\r\n\t\t title=temp;\r\n\t //Check for match after title has been found (Don't bother Searching the title though)\r\n\t\tif(title.length()>0 && temp==null)\r\n\t\t checkMatch(input,url,title);\r\n \r\n\t\t// Check to see if this line contains a link\r\n\t\tlink=parseForLink(upperCaseInput,input);\r\n\t\tif(link!=null)\r\n\t\t{\r\n\t\t // Check if the maximum number of pages to search has been reached.\r\n\t\t if(app.getTotalPages()>=maxPages)\r\n\t\t return;\r\n if(topLevelSearch==FIND_TOP_LEVEL_PAGES)\r\n\t\t topLevelPages.addElement(link);\r\n else if(topLevelSearch==SEARCH_TOP_LEVEL_PAGES)\r\n\t\t nextLevelPages.addElement(link);\r\n\t\t else checkLink(link);\t \r\n\t\t}\r\n\t }\r\n }\r\n\tcatch(IOException e){ }\r\n }", "@Override\n public String doSearchResult() {\n return null;\n }", "public NotSearch()\n\t\t{\n\t\t}", "@Override\n\tpublic Etape find(String search) {\n\t\treturn null;\n\t}", "private void constructSearchingQueryIfScanIsValid(){\n\t\t//todo: test roll back \n\t\t//String scanContent = scanningResult.getContents();\n\t\t//String scanFormat = scanningResult.getFormatName();\n\t\t\n\t\t//todo: test need delete\n\t\tString scanContent = \"9781430247883\";\n\t\tString scanFormat = \"EAN_13\";\n\t\tif(GoogleApiConverter.isScanFormatMatching(scanContent, scanFormat)){\n\t\t\tString bookSearchString = GoogleApiConverter.formateBookApiSearchQuery(scanContent);\n\t\t\tnew GetBookInfo().execute(bookSearchString);\n\t\t}\n\t\telse{\n\t\t\tToastExceptions.onShowException(this, \"Not a valid scan!\");\n\t\t}\n\t}", "@java.lang.Override\n public com.clarifai.grpc.api.SearchOrBuilder getSearchOrBuilder() {\n if (inputSourceCase_ == 10) {\n return (com.clarifai.grpc.api.Search) inputSource_;\n }\n return com.clarifai.grpc.api.Search.getDefaultInstance();\n }", "List<Codebadge> search(String query);", "@Override\n public Data3DPlastic search() {\n return super.search();\n }", "List<SongVO> searchSong(String searchText) throws Exception;", "TSearchResults createSearchResults(TSearchQuery searchQuery);", "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}", "List<AlbumVO> searchAlbum(String searchText) throws Exception;", "@Override\r\n\t\t\tpublic List<ScoredDocument> search(Query query) {\n\t\t\t\treturn null;\r\n\t\t\t}", "public List search(Veranstaltung veranstatung) throws RuntimeException;", "public Map<String, String> directQuoteSearch (String q, String contentOrTitle) throws IOException, ParseException{\n\n\t\t\n\t\tif (contentOrTitle.equals(\"content\")){\n\t\t\tcontentOrTitle=field;\n\t\t} else if (contentOrTitle.equals(\"title\")){\n\t\t\tcontentOrTitle=title;\n\t\t}\n\t\t\n\t\tIndexReader reader = DirectoryReader.open(FSDirectory.open(Paths.get(index)));\n\t\tIndexSearcher searcher = new IndexSearcher(reader);\n\t\tboolean raw = false;\n\t\tint repeat = 0;\n\n\t\tfinal List<String> stopWords = Arrays.asList();\n\t\tfinal CharArraySet stopSet = new CharArraySet(stopWords, true);\n\n\t\tAnalyzer analyzer = new StandardAnalyzer(stopSet);\n\t\tAnalyzingQueryParser parser = new AnalyzingQueryParser(contentOrTitle, analyzer);\n\t\t\n\n\t\t\n\t\tString[] items = q.split(\" \");\n\t\tList<String> itemList = Arrays.asList(items);\n\t\tQuery query=null;\n\t\t\n\t\t\n\t\tif (q.equals(\"\")){\n\t\t\tSystem.out.println(\"no input\");\n\t\t\t\n\t\t} else {\n\t\t\tquery = parser.parse(q);\n\n\t\t}\n\n\t\t\n\t\t\n\t\tBufferedReader in = null;\n\t\tin = new BufferedReader(new InputStreamReader(System.in, StandardCharsets.UTF_8));\n\n\t\tif (repeat > 0) { // repeat & time as benchmark\n\t\t\tDate start = new Date();\n\t\t\tfor (int i = 0; i < repeat; i++) {\n\t\t\t\tsearcher.search(query, 100);\n\t\t\t}\n\t\t\tDate end = new Date();\n\t\t\tSystem.out.println(\"Time: \"+(end.getTime()-start.getTime())+\"ms\");\n\t\t}\n\n\t\treturn doPagingSearch(in, searcher, query, hitsPerPage, raw, true);\n\t}", "entities.Torrent.SearchRequestOrBuilder getSearchRequestOrBuilder();", "public List<Ve> searchVe(String maSearch);", "void loadSearch(UserSearch search);", "private void getBySearch(HttpServletRequest request, HttpServletResponse response, ArticleService artService) {\n\t\tString search = request.getParameter(\"search\");\n\t\tList<Article> list = new ArrayList<Article>();\n\t\tlist = artService.getAll(\"atitle\", search);\n\t\trequest.setAttribute(\"list\", list);\n\t\ttry {\n\t\t\trequest.getRequestDispatcher(\"/essay/other_essay.jsp\").forward(request, response);\n\t\t} catch (ServletException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "SearchResultCompany search(String keywords);", "ReagentSearch getReagentSearch();", "@java.lang.Override\n public com.clarifai.grpc.api.Search getSearch() {\n if (searchBuilder_ == null) {\n if (inputSourceCase_ == 10) {\n return (com.clarifai.grpc.api.Search) inputSource_;\n }\n return com.clarifai.grpc.api.Search.getDefaultInstance();\n } else {\n if (inputSourceCase_ == 10) {\n return searchBuilder_.getMessage();\n }\n return com.clarifai.grpc.api.Search.getDefaultInstance();\n }\n }", "@Override\n public SearchResult search_item(String keyword, int page, int rows , int search_type) throws Exception{\n return null;\n }", "CampusSearchQuery generateQuery();", "private void startSearch()\n {\n model.clear();\n ArrayList<String> result;\n if (orRadio.isSelected())\n {\n SearchEngine.search(highTerms.getText(), lowTerms.getText());\n result = SearchEngine.getShortForm();\n }\n else\n {\n SearchEngine.searchAnd(highTerms.getText(), lowTerms.getText());\n result = SearchEngine.getShortForm();\n }\n for (String s : result)\n {\n model.addElement(s);\n }\n int paragraphsRetrieved = result.size();\n reviewedField.setText(\" Retrieved \" + paragraphsRetrieved + \" paragraphs\");\n }", "private Collection<Record> getResults(SimpleSurnameAndPostcodeQuery query) {\n\t\treturn search(query);\n\t}", "entities.Torrent.SearchRequest getSearchRequest();", "public SearchResult search(String text, String subText);", "public String extractresult(String search) {\n\t\tfd.findElement(By.id(\"sb_form_q\")).sendKeys(search);\r\n\t\tfd.findElement(By.id(\"sb_form_go\")).click();\r\n\t\t\r\n\t\treturn fd.findElement(By.className(\"sb_count\")).getText();\t\r\n\t}", "@java.lang.Override\n public com.clarifai.grpc.api.SearchOrBuilder getSearchOrBuilder() {\n if ((inputSourceCase_ == 10) && (searchBuilder_ != null)) {\n return searchBuilder_.getMessageOrBuilder();\n } else {\n if (inputSourceCase_ == 10) {\n return (com.clarifai.grpc.api.Search) inputSource_;\n }\n return com.clarifai.grpc.api.Search.getDefaultInstance();\n }\n }", "private Element traverse_search(Element element) {\n \ttry {\n\t \tString userid = profile.getAttributeValue(\"personal\", \"id\");\n\t \tString course = profile.getAttributeValue(\"personal\", \"course\");\n\t \tString context = WOWStatic.config.Get(\"CONTEXTPATH\");\n\n\t \tElement a = doc.createElement(\"a\");\n\t \ta.setAttribute(\"href\", context + \"/Get?wndName=Search\");\n\t \ta.setAttribute(\"target\", userid + \"$\" + course);\n\t \ta.appendChild(doc.createTextNode(\"Search\"));\n\t \treturn (Element)replaceNode(element, a);\n \t}\n \tcatch(Throwable e) {\n \t\te.printStackTrace();\n \t\treturn (Element)replaceNode(element, createErrorElement(\"Error!\"));\n \t}\n }", "@Override\n\tpublic void searchByName() {\n\t\tcount = 0;\n\t\tif (UtilityClinic.patFile == null) {\n\t\t\ttry {\n\t\t\t\tutil.accessExistingPatJson();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"File not found\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tutil.readFromPatJson(UtilityClinic.patFile);\n\t\tSystem.out.println(\"Enter search.....\");\n\t\tString search = UtilityClinic.readString();\n\t\tSystem.out.println(\"Showing search result(s).......\");\n\t\tfor (int i = 0; i < UtilityClinic.patJson.size(); i++) {\n\t\t\tJSONObject jsnobj = (JSONObject) UtilityClinic.patJson.get(i);\n\t\t\tif (jsnobj.get(\"Patient's name\").toString().equals(search))\n\t\t\t\tSystem.out.print(\n\t\t\t\t\t\t++count + \" Name:\" + jsnobj.get(\"Patient's name\") + \" ID:\" + jsnobj.get(\"Patient's ID\")\n\t\t\t\t\t\t\t\t+ \" Mobile:\" + jsnobj.get(\"Mobile\") + \" Age:\" + jsnobj.get(\"Age\"));\n\t\t}\n\t\tif (count == 0) {\n\t\t\tSystem.out.println(\"No results found.....\");\n\t\t}\n\t}", "private void readRunSearchSummary(XMLStreamReader reader) throws XMLStreamException, DataProviderException {\n String value = reader.getAttributeValue(null,\"search_engine\");\n if(value != null) {\n this.searchProgram = PepXmlUtils.parseProgram(value);\n }\n value = reader.getAttributeValue(null,\"precursor_mass_type\");\n if(value != null) {\n Param param = new ParamBean(\"precursor_mass_type\", value);\n searchParams.add(param);\n }\n \n value = reader.getAttributeValue(null,\"fragment_mass_type\");\n if(value != null) {\n Param param = new ParamBean(\"fragment_mass_type\", value);\n searchParams.add(param);\n }\n \n // read other interesting elements within the search_summary element\n while(reader.hasNext()) {\n \n int evtType = reader.next();\n \n if (evtType == XMLStreamReader.END_ELEMENT && reader.getLocalName().equalsIgnoreCase(\"search_summary\")) {\n return;\n }\n \n else if(evtType == XMLStreamReader.START_ELEMENT) {\n if(reader.getLocalName().equalsIgnoreCase(\"search_database\")) {\n this.searchDatabase = new SearchDatabase();\n searchDatabase.setServerPath(reader.getAttributeValue(null, \"local_path\"));\n }\n else if(reader.getLocalName().equalsIgnoreCase(\"enzymatic_search_constraint\")) {\n readMaxNumInternalCleavages(reader);\n readMinEnzymaticTermini(reader);\n }\n else if (reader.getLocalName().equalsIgnoreCase(\"aminoacid_modification\")) {\n readResidueModification(reader);\n }\n else if (reader.getLocalName().equalsIgnoreCase(\"terminal_modification\")) {\n readTerminalModification(reader);\n }\n else if (reader.getLocalName().equalsIgnoreCase(\"parameter\")) {\n readParameters(reader);\n }\n }\n }\n }", "public void doSearch(BufferedReader in, IndexSearcher searcher, Query query, \n int hitsPerPage, boolean raw, boolean interactive) throws IOException {\n TopDocs results = searcher.search(query, 5 * hitsPerPage);\n ScoreDoc[] hits = results.scoreDocs;\n \n int numTotalHits = results.totalHits;\n System.out.println(numTotalHits + \" total matching documents\");\n\n int start = 0;\n int end = Math.min(numTotalHits, hitsPerPage);\n \n for (int i = start; i < end; i++) \n {\n Document doc = searcher.doc(hits[i].doc);\n String id = doc.get(\"id\");\n String author=doc.get(\"author\");\n String price=doc.get(\"price\");\n String category=doc.get(\"category\");\n String bookname=doc.get(\"bookname\");\n System.out.println(id+author+price+category+bookname);\n }\n }", "List<PilotContainer> Search(String cas, String word);", "@Test\n public void testSearchFilter_WithoutAddedSearchBase_WithParens() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"(<%=parameter[\\\"Search String\\\"]%>)\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"samaccountname=mary.olowu\");\n request.setParameters(parameters);\n\n BridgeError unexpectedError = null;\n RecordList list = null;\n try {\n list = getAdapter().search(request);\n } catch (BridgeError e) {\n unexpectedError = e;\n }\n\n assertNull(unexpectedError);\n assertTrue(list.getRecords().size() > 0);\n }", "public AddressBook search(String query)\n {\n Integer count = 0;\n Integer size = addressEntryList.size();\n AddressBook ab = new AddressBook();\n int indexes[] = new int[size];\n //For loop, iterating through our entire list of Address Entries\n for (int i = 0; i < addressEntryList.size(); i++)\n {\n //If the lastname is the search query\n if(addressEntryList.get(i).getLastName().contains(query))\n {\n indexes[count] = i;\n count++;\n }\n }\n //If we found anything\n if (count > 0)\n {\n //Add entries found\n for (int i = 0; i < count; i++)\n {\n ab.addressEntryList.add(addressEntryList.get(indexes[i]));\n }\n }\n //No entries were found\n else {\n System.out.println(\"No entries were found.\");\n }\n\n return ab;\n\n }", "public static AccSearch parse(\r\n javax.xml.stream.XMLStreamReader reader)\r\n throws java.lang.Exception {\r\n AccSearch object = new AccSearch();\r\n\r\n int event;\r\n javax.xml.namespace.QName currentQName = null;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix = \"\";\r\n java.lang.String namespaceuri = \"\";\r\n\r\n try {\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n currentQName = reader.getName();\r\n\r\n if (reader.getAttributeValue(\r\n \"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\") != null) {\r\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\");\r\n\r\n if (fullTypeName != null) {\r\n java.lang.String nsPrefix = null;\r\n\r\n if (fullTypeName.indexOf(\":\") > -1) {\r\n nsPrefix = fullTypeName.substring(0,\r\n fullTypeName.indexOf(\":\"));\r\n }\r\n\r\n nsPrefix = (nsPrefix == null) ? \"\" : nsPrefix;\r\n\r\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\r\n \":\") + 1);\r\n\r\n if (!\"AccSearch\".equals(type)) {\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext()\r\n .getNamespaceURI(nsPrefix);\r\n\r\n return (AccSearch) ExtensionMapper.getTypeObject(nsUri,\r\n type, reader);\r\n }\r\n }\r\n }\r\n\r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.Vector handledAttributes = new java.util.Vector();\r\n\r\n reader.next();\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"request\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"request\").equals(\r\n reader.getName())) {\r\n object.setRequest(Request.Factory.parse(reader));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if (reader.isStartElement()) {\r\n // 2 - A start element we are not expecting indicates a trailing invalid property\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"Unexpected subelement \" + reader.getName());\r\n }\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }", "abstract public boolean performSearch();", "public static void search(){\n\t\tfor (Page p:heap){\n\t\t\tfor(Building b:p.buildings){\n\t\t\t\t\n\t\t\t\t//System.out.println(b.buildingName);\n\t\t\t\tif(b.getBuildingName()!=null) {\n\t\t\t\t\tif(b.getBuildingName().contains(searchQuery)){\n\t\t\t\t\t\tSystem.out.println(\"======================================================\");\n\t\t\t\t\t\tSystem.out.println(\"Building Name: \" + b.getBuildingName());\n\t\t\t\t\t\tSystem.out.println(\"Property ID: \" + b.getPropID());\n\t\t\t\t\t\tSystem.out.println(\"Census year: \" + b.getCensusYear());\n\t\t\t\t\t\tSystem.out.println(\"======================================================\");\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tbuildingsFound++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tpagesSearched++;\n\t\t}\n\t}", "@Override\n public SearchResultInfo search(SearchRequestInfo searchRequest) {\n try\n {\n SearchResultInfo searchResult = searchDispatcher.search(searchRequest, ContextUtils.getContextInfo());\n List<SearchParamInfo> params = searchRequest.getParams();\n if (params != null && params.size() > 0) {\n SearchParamInfo firstParam = params.get(0);\n if (firstParam.getKey().equals(\"lu.queryParam.cluVersionIndId\")) {//FIXME can this special case be handled after this call?\n doIdTranslation(searchResult);\n }\n }\n return searchResult;\n } catch (Exception ex) {\n // Log exception \n ex.printStackTrace();\n throw new RuntimeException(ex);\n }\n }", "List<String> getDocumentTitles(String query) throws SearcherException;", "@Test\n public void executeEmptySearch_noResults() {\n emptySearchFields();\n\n //Even with empty fields, the search should be created and executed\n presenter.doSearch();\n\n //However, with all the search fields empty no results will be found\n Assert.assertFalse(presenter.hasNextResult());\n }", "private void search(String querySearch) {\n searchResult = new ArrayList<>();\n for (MonitoringModel item : searchList) {\n if (item.getPROG_ID().toLowerCase().contains(querySearch) || item.getPROG_ID().contains(querySearch) ||\n item.getKEPUTUSAN().toLowerCase().contains(querySearch) || item.getKEPUTUSAN().contains(querySearch) ||\n Common.formatTgl(item.getTGL_TARGET()).toLowerCase().contains(querySearch) || Common.formatTgl(item.getTGL_TARGET()).contains(querySearch) ||\n Common.formatStatusMonitoringToString(item.getLAST_STATUS()).toLowerCase().contains(querySearch) || Common.formatStatusMonitoringToString(item.getLAST_STATUS()).contains(querySearch)) {\n searchResult.add(item);\n }\n }\n if (searchResult.isEmpty())\n tvEmptySearch.setText(\"No results found for '\" + querySearch + \"'\");\n else\n tvEmptySearch.setText(\"\");\n\n searchAdapter = new ListAdapter(getContext(), searchResult);\n rvList.setAdapter(searchAdapter);\n }", "void parseParams(Map<String, List<String>> params) throws IOException {\n String pageParam = getSingleParam(params, \"page\", null);resultsPerPage=Integer.parseInt(getSingleParam(params, \"resultsPerPage\", \"15\"));\n if (pageParam != null) {\n int page = Integer.parseInt(pageParam);\n start = (page - 1) * resultsPerPage;\n }\n sortOrder = ArticleSearchQuery.SolrSortOrder.RELEVANCE;\n String sortOrderParam = getSingleParam(params, \"sortOrder\", null);\n if (!Strings.isNullOrEmpty(sortOrderParam)) {\n sortOrder = ArticleSearchQuery.SolrSortOrder.valueOf(sortOrderParam);\n }\n dateRange = parseDateRange(getSingleParam(params, \"dateRange\", null),\n getDateParam(params, \"filterStartDate\"), getDateParam(params, \"filterEndDate\"));\n List<String> allJournalKeys = SearchController.isNullOrEmpty(params.get(\"filterJournals\"))\n ? new ArrayList<>() : params.get(\"filterJournals\");\n\n filterJournalNames = new HashSet<>();\n // will have only valid journal keys\n journalKeys = new ArrayList<>();\n for (String journalKey : allJournalKeys) {\n try {\n String journalName = siteSet.getJournalNameFromKey(journalKey);\n journalKeys.add(journalKey);\n filterJournalNames.add(journalName);\n } catch (UnmatchedSiteException umse) {\n log.info(\"Search on an invalid journal key: %s\".format(journalKey));\n }\n }\n startDate = getDateParam(params, \"filterStartDate\");\n endDate = getDateParam(params, \"filterEndDate\");\n\n if (startDate == null && endDate != null) {\n startDate = DEFAULT_START_DATE;\n } else if (startDate != null && endDate == null) {\n endDate = LocalDate.now();\n }\n\n subjectList = parseSubjects(getSingleParam(params, \"subject\", null), params.get(\"filterSubjects\"));\n articleTypes = params.get(\"filterArticleTypes\");\n articleTypes = articleTypes == null ? new ArrayList<String>() : articleTypes;\n authors = SearchController.isNullOrEmpty(params.get(\"filterAuthors\"))\n ? new ArrayList<String>() : params.get(\"filterAuthors\");\n sections = SearchController.isNullOrEmpty(params.get(\"filterSections\"))\n ? new ArrayList<String>() : params.get(\"filterSections\");\n\n isFiltered = !filterJournalNames.isEmpty() || !subjectList.isEmpty() || !articleTypes.isEmpty()\n || dateRange != ArticleSearchQuery.SolrEnumeratedDateRange.ALL_TIME || !authors.isEmpty()\n || startDate != null || endDate != null || !sections.isEmpty();\n }", "@Override\r\n\tpublic String searchPoster(String searchPoster) throws Exception {\n\t\treturn null;\r\n\t}", "public void doSearch(String searchText){\n }", "@Override\n\tpublic boolean isSearching() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isSearching() {\n\t\treturn false;\n\t}" ]
[ "0.6410327", "0.6392733", "0.61010987", "0.6011681", "0.6011681", "0.5969058", "0.59454465", "0.59096724", "0.57768756", "0.5761041", "0.5747324", "0.5733837", "0.5693943", "0.56864053", "0.56617105", "0.56599605", "0.5657048", "0.5642906", "0.56404364", "0.5544309", "0.55419004", "0.5539328", "0.5534363", "0.5518796", "0.5509064", "0.5502608", "0.5497356", "0.54554844", "0.5431314", "0.5424588", "0.5403655", "0.53978103", "0.5381628", "0.53620154", "0.5343315", "0.5327657", "0.53089285", "0.5275144", "0.52728784", "0.52686673", "0.52621955", "0.52618587", "0.52529156", "0.52521783", "0.52503395", "0.52499837", "0.52490145", "0.52489656", "0.5248178", "0.522802", "0.5210407", "0.5205875", "0.5201363", "0.5199737", "0.51896715", "0.51894546", "0.5187709", "0.5187416", "0.51845723", "0.5165557", "0.5150047", "0.51405025", "0.5139177", "0.5138915", "0.5134634", "0.51333266", "0.5123754", "0.5114705", "0.5112488", "0.51054054", "0.5102991", "0.50797766", "0.5072837", "0.5062906", "0.5060262", "0.5054637", "0.50540936", "0.5052854", "0.5034367", "0.502897", "0.50233287", "0.5015987", "0.50071895", "0.50031734", "0.5000617", "0.4995555", "0.49899575", "0.49891898", "0.49880403", "0.49757457", "0.49753273", "0.49686593", "0.4965805", "0.49650675", "0.49640647", "0.49614736", "0.49612644", "0.49610344", "0.4956776", "0.4956776" ]
0.5543595
20
Gets the position of the close parenthesis matching the open parenthesis at the given index
public int goPastParen(StringBuilder sb, int c) { boolean esc = false; int depth = 1; for(c++; c < sb.length(); c++) { if(!esc) { if(sb.charAt(c) == '(') depth++; else if(sb.charAt(c) == ')') { depth--; if(depth == 0) break; } else if(sb.charAt(c) == '\\') esc = true; } else esc = false; } if(depth == 0) return c; else throw new IllegalArgumentException("Unclosed parenthesis!"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int findBracket(String find) {\n /* State variable ensures that the corresponding closing bracket is found not\n \t\tthe first found closing bracket */\n int state = 0;\n for (int i = 0; i < find.length(); i++) {\n if (find.charAt(i) == '(') {\n state++;\n } else if (find.charAt(i) == ')' && state == 0) {\n return i + 1;\n } else if (find.charAt(i) == ')' && state != 0) {\n state--;\n }\n }\n return 1;\n }", "private static int getClosingParenPosition(MethodInvocationTree tree, VisitorState state) {\n int startPosition = ASTHelpers.getStartPosition(tree);\n if (startPosition == Position.NOPOS) {\n return Position.NOPOS;\n }\n\n return Streams.findLast(\n ErrorProneTokens.getTokens(state.getSourceForNode(tree), state.context).stream()\n .filter(t -> t.kind() == RPAREN))\n .map(token -> startPosition + token.pos())\n .orElse(Position.NOPOS);\n }", "public int parensIndex(int i) {\n return (int) this.parens[i];\n }", "private int findExpression(List<Operator> ops, int offset, int length) {\n \n Operator op = ops.get(offset);\n if (op instanceof BinaryOperator) {\n \n // Invalid\n throw new RuntimeException(\"Expression must not start with binary operator\");\n } else if (op instanceof UnaryOperator) {\n \n // Just a unary operator\n return 1;\n \n } else if (op instanceof PrecedenceOperator) {\n \n PrecedenceOperator pop = (PrecedenceOperator)op;\n \n if (!pop.begin) {\n \n // Invalid\n throw new RuntimeException(\"Invalid paranthesis\");\n \n } else {\n \n // Find closing bracket\n int open = 1;\n for (int i=offset+1; i<length; i++){\n if (ops.get(i) instanceof PrecedenceOperator){\n pop = (PrecedenceOperator)ops.get(i);\n if (pop.begin) open++;\n else open--;\n if (open == 0){\n return i-offset+1;\n }\n }\n }\n // Invalid\n throw new RuntimeException(\"Missing closing paranthesis\");\n }\n } else {\n \n // Invalid\n throw new RuntimeException(\"Unknown operator\");\n }\n }", "public int getPosition(int index);", "Expression getIndexExpr();", "@Override\n public int getPositionFirstOperand() {\n return position + 1;\n }", "public int getIndex(int position);", "private static int getRight(int index) {\n\t\treturn getLeft(index) + 1;\n\t}", "private int getLeftOf(int index) {\n // TODO: YOUR CODE HERE\n return index * 2;\n }", "private static int getLeft(int index) {\n\t\treturn (index + 1) * 2 - 1;\n\t}", "@Override\n public int getPositionSecondOperand() {\n return position + 2;\n }", "private int getRightOf(int index) {\n // TODO: YOUR CODE HERE\n return index * 2 + 1;\n }", "private int rightChild(int index) {\n return index * 2 + 1;\n }", "private static int getSquarePosition(int index) {\n return (((index/3)%3)+1)+3*(((index/9)/3)+1);\n }", "private static int rightChildIndex(int index) {\n\t\treturn (index * 2) + 2;\n\t}", "private int locate(String str, String substr, int pos) {\n if (substr.length() == 0) {\n if (pos <= (str.length() + 1)) {\n return pos;\n }\n else {\n return 0;\n }\n }\n int idx = StringUtils.indexOf(str, substr, pos - 1);\n if (idx == -1) {\n return 0;\n }\n return idx + 1;\n }", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "private int getRightIdx(int pos) {\n return 2 * pos + 2;\n }", "private int left(int index) {\r\n\t\treturn 2 * index + 1;\r\n\t}", "private int right(int index) {\r\n\t\treturn 2 * index + 2;\r\n\t}", "int getGroupIndex(int position);", "private void processBracket() {\r\n\t\tif (expression[currentIndex] == '(') {\r\n\t\t\ttoken = new Token(TokenType.OPEN_BRACKET, expression[currentIndex]);\r\n\t\t} else {\r\n\t\t\ttoken = new Token(TokenType.CLOSED_BRACKET, expression[currentIndex]);\r\n\t\t}\r\n\r\n\t\tcurrentIndex++;\r\n\t}", "public static int longestValidParentheses2(String str) {\n\t\tint max = 0;\n\t\tStack<Integer> stack = new Stack<Integer>();\n\t\tstack.push(-1);//先前最远的不可匹配的位置,\n\t\tint i = -1;\n// for(int i = 0;i < str.length();i++){\n\t\tfor (int j = 0; j < str.length(); j++) {\n\t\t\tchar ch = str.charAt(j);\n\t\t\tif (ch == ' ') {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tif (ch == '(') {\n\t\t\t\tstack.push(i);//不进行匹配,那么它就是先前最远的不可匹配的位置,\n\t\t\t} else {\n\t\t\t\tstack.pop();//闭起眼睛,匹配先前不可匹配的字符,\n\t\t\t\tif (stack.empty()) {\n\t\t\t\t\tstack.push(i);//如果栈为空,说明其实没有什么可以进行匹配的,所以当前就是新的最近的不可匹配的位置\n\t\t\t\t} else {\n\t\t\t\t\t//如果栈不为空,说明有可以进行匹配的,并且匹配完成,那么匹配的字符串长度为 i-stack.peek()\n\t\t\t\t\tif (i - stack.peek() > max) {\n\t\t\t\t\t\tSystem.out.printf(\"start:end %d:%d \\n\", stack.peek() + 1, i);\n\t\t\t\t\t}\n\t\t\t\t\tmax = Math.max(i - stack.peek(), max);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn max;\n\t}", "public int getPos(int index) {\r\n return pos[index];\r\n }", "public static int longestValidParentheses3(String str) {\n\t\tint max = 0;\n\t\tStack<Integer> stack = new Stack<Integer>();\n\t\tstack.push(-1);//先前最远的不可匹配的位置,\n\t\tint i = -1;\n// for(int i = 0;i < str.length();i++){\n\t\tfor (int j = 0; j < str.length(); j++) {\n\t\t\tchar ch = str.charAt(j);\n\t\t\tif (ch != '(' && ch != ')') {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tif (ch == '(') {\n\t\t\t\tstack.push(i);//不进行匹配,那么它就是先前最远的不可匹配的位置,\n\t\t\t} else {\n\t\t\t\tstack.pop();//闭起眼睛,匹配先前不可匹配的字符,\n\t\t\t\tif (stack.empty()) {\n\t\t\t\t\tstack.push(i);//如果栈为空,说明其实没有什么可以进行匹配的,所以当前就是新的最近的不可匹配的位置\n\t\t\t\t} else {\n\t\t\t\t\t//如果栈不为空,说明有可以进行匹配的,并且匹配完成,那么匹配的字符串长度为 i-stack.peek()\n\t\t\t\t\tif (i - stack.peek() > max) {\n\t\t\t\t\t\tSystem.out.printf(\"start:end %d:%d \\n\", stack.peek() + 1, i);\n\t\t\t\t\t}\n\t\t\t\t\tmax = Math.max(i - stack.peek(), max);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn max;\n\t}", "public Integer getPosition();", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "String getFirstIndex();", "public int getScopeOpen(){\r\n\t\tint i = getCaretPosition();\r\n\t\tint rtn = 0;\r\n\t\tString str = \"\";\r\n\t\ttry{\r\n\t\t\tstr = doc.getText(0,i);\r\n\t\t}catch(BadLocationException a){};\r\n\t\tfor(i-=1; i>0; i--) {\r\n\t\t\tif(str.charAt(i) == '{') rtn += 1;\r\n\t\t\tif(str.charAt(i) == '}') rtn -= 1;\r\n\t\t}\r\n\t\tif(rtn <0)rtn = 0;\r\n\t\treturn rtn;\r\n\t}", "private int scanBrace(String s, int startIndex, char braceTypeOpen,\n char braceTypeClose){\n int numL = 1;\n for (int i = startIndex; i < s.length(); i++){\n char c = s.charAt(i);\n numL += c == braceTypeOpen ? 1 : c == braceTypeClose ? -1 : 0;\n if (numL == 0) return i;\n }\n return -1;\n }", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "private int leftChild(int index) {\n return index * 2;\n }", "public static int nextIndexOf(String string, String characters, int index) {\n int retInd = string.length();\n int auxIndex = -1;\n \n for (int i = 0; i < characters.length(); i++) {\n auxIndex = string.substring(index + 1).indexOf(characters.charAt(i));\n if ((auxIndex > -1) && (auxIndex + index + 1 < retInd)) {\n retInd = auxIndex + index + 1;\n }\n }\n return retInd;\n }", "public int getPosition();", "public int longestValidParentheses(String s) {\n\t\tint max_len = 0, last = -1; \n\t\t// keep track of the positions of non-matching '('s\n\t\tStack<Integer> lefts = new Stack<Integer>(); \n\t\tfor (int i = 0; i < s.length(); ++i) {\n\t\t\tif (s.charAt(i) == '(') {\n\t\t\t\tlefts.push(i);\n\t\t\t} else {\n\t\t\t\tif (lefts.empty()) {\n\t\t\t\t\t// no matching left\n\t\t\t\t\tlast = i;\n\t\t\t\t} else {\n\t\t\t\t\t// find a matching pair\n\t\t\t\t\tlefts.pop();\n\t\t\t\t\tif (lefts.empty()) {\n\t\t\t\t\t\tmax_len = Math.max(max_len, i - last);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmax_len = Math.max(max_len, i - lefts.peek());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn max_len;\n\t}", "private int getParentOf(int index) {\n // TODO: YOUR CODE HERE\n return index / 2;\n }", "private int findOperator(String sql, int end) {\n String opChars = \"=!?\";\n int pos = end - 1;\n char c;\n \n while (pos >= 0) {\n c = sql.charAt(pos);\n if (!Character.isWhitespace(c) && opChars.indexOf(c) < 0) {\n pos++;\n break;\n }\n pos--;\n }\n if (sql.substring(pos, end).trim().length() > 0) {\n return pos;\n } else {\n return -1;\n }\n }", "static int computeTheLongestSubstringWithMatchingParens(String string) {\n Deque<Integer> stack = new ArrayDeque<>();\n\n int length = 0;\n int endIndex = -1;\n\n for (int i = 0; i < string.length(); i++) {\n if (string.charAt(i) == '(') stack.push(i);\n else {\n if (stack.isEmpty()) {\n endIndex = i;\n } else {\n stack.pop();\n\n int start = stack.isEmpty() ? endIndex : stack.peek();\n length = Math.max(length, i - start);\n }\n }\n }\n\n return length;\n }", "private static Integer getMultiplicationOrDivisionPosition(String[] formulaArray){\n for (Integer i=0;i<formulaArray.length;i++) {\n if(formulaArray[i].equals(\"*\") || formulaArray[i].equals(\"/\")){\n return i;\n }\n }\n return -1;\n }", "Index getIndex(String symbol);", "private static int leftChildIndex(int index) {\n\t\treturn (index * 2) + 1;\n\t}", "private int getLeftIdx(int pos) {\n return 2 * pos + 1;\n }", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "private int parent(int index) {\n return index / 2;\n }", "private int parent(int index) {\n return index / 2;\n }", "public int position() {\n return pos;\n }", "private static Integer getAdditionOrSubtractionPosition(String[] formulaArray){\n for (Integer i=0;i<formulaArray.length;i++) {\n if(formulaArray[i].equals(\"+\") || formulaArray[i].equals(\"-\")){\n return i;\n }\n }\n return -1;\n }", "public int findMatchingBracket(\n final IDocument document,\n final int offset,\n boolean exact)\n {\n if (exact) bracketMatcher.setViewer(null);\n try\n {\n final int[] ret = new int[1];\n \n IRegion matchRegion = bracketMatcher.match(document, offset);\n \n if (matchRegion == null) ret[0] = -1;\n else ret[0] =\n matchRegion.getOffset() == offset - 1\n ? matchRegion.getOffset() + matchRegion.getLength() - 1\n : matchRegion.getOffset();\n \n return ret[0];\n }\n finally\n {\n if (exact) bracketMatcher.setViewer(sourceViewer);\n }\n }", "int toIndex(Position pos);", "public static int finder(String line){\n for (int i = 0; i < line.length(); i++) {//i is the current index \n char current_char = line.charAt(i);\n if(current_char == '+' || current_char == '-' || current_char == '*' || current_char == '/' ){\n return i;\n }\n }\n return line.length();\n}", "private boolean isOutsideOfBracket(String expr, int pos) {\r\n int level = 0;\r\n \r\n for (int i = 0; i < expr.length(); i++) {\r\n char c = expr.charAt(i);\r\n \r\n if (c == BRACKET_OPEN) {\r\n level++;\r\n } else if (c == BRACKET_CLOSE) {\r\n level--;\r\n }\r\n \r\n if (i == pos) {\r\n return level == 0;\r\n }\r\n }\r\n \r\n return true;\r\n }", "public int nextIndexOf(List<Token> delimiters){\n Token token;\n int tempCurrentToken = currentToken, result;\n\n nextTokenOf(delimiters);\n result = currentToken;\n currentToken = tempCurrentToken;\n return result;\n }", "private int findIndex(String str){\n for(int i=size()-1;i>=0;i--){\n if(str.compareTo(get(i))>0){\n return i+1;\n }\n }\n return 0;\n }", "public int getMainSqlIndex()\n\t{\n\t\tif (m_sql == null)\n\t\t\treturn -1;\n\t\telse if (m_sql.length == 1)\n\t\t\treturn 0;\n\t\tfor (int i = m_sql.length-1; i >= 0; i--)\n\t\t{\n\t\t\tif (m_sql[i].charAt(0) != '(')\n\t\t\t\treturn i;\n\t\t}\n\t\treturn -1;\n\t}", "private int getIndexOfEnd(String document) {\n int indexOfEnd = -1;\n indexOfEnd = document.indexOf(\"</span> °C\");\n return indexOfEnd;\n }", "public int longestValidParentheses(String s) {\n Stack<Integer> stack = new Stack<>();\n int start = 0;\n int maxLength = 0;\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if (c == '(') {\n stack.push(i);\n } else if (c == ')') {\n if (stack.empty()) {\n start = i + 1;\n } else {\n stack.pop();\n maxLength = stack.empty() ? Math.max(maxLength, i - start + 1) : Math.max(maxLength, i - stack.peek());\n }\n }\n }\n\n return maxLength;\n }", "public static int nthIndexOf(String str, String substr, int n) {\n int pos = -1;\n while (n > 0) {\n if (pos >= str.length()) {\n return -1;\n }\n if ((pos = str.indexOf(substr, pos + 1)) == -1) {\n break;\n }\n n--;\n }\n return pos;\n }", "private int getParentIdx(int pos) {\n return (pos - 1) / 2;\n }", "public int lastIndexOf(String str)\n\t{\n\t\tint indexOf = recursiveLastIndexOf(firstC, length, 0, -1, str);\n\t\treturn indexOf;\n\t}", "public final int getPos() { return i; }", "public static int longestValidParentheses_stack(String s) {\n if (s == null || s.length() <= 1) {\n return 0;\n }\n\n int max = 0;\n int len = s.length();\n Stack<Integer> stack = new Stack<>();\n stack.push(-1);\n for (int i = 0; i < len; i++) {\n char ch = s.charAt(i);\n if (ch == '(') {\n stack.push(i);\n } else {\n stack.pop();\n if (stack.empty()) {\n stack.push(i);\n } else {\n max = Math.max(max, i - stack.peek());\n }\n }\n }\n\n return max;\n }", "public int getPos();", "public int getPos();", "public int lastIndexOf(String str) {\n/* 590 */ return this.m_str.lastIndexOf(str);\n/* */ }", "public int maxLengthOfValidParenthesesStack(String s) {\n if (s == null || s.length() == 0) return 0;\n int n = s.length(), p = -1, max = 0;\n int [] st = new int[n + 1];\n st[++p] = -1;\n\n for (int i = 0; i < n; ++i) {\n if (st[p] != -1 && s.charAt(st[p]) == '(' && s.charAt(i) == ')') {\n --p;\n max = Math.max(max, i - st[p]);\n } else st[++p] = i;\n }\n return max;\n }", "private static int parentIndex(int index) {\n\t\treturn (index - 1) / 2;\n\t}", "public static int ordinalIndexOf(String str, String substr, int index) {\n\n if (str == null || substr == null || index <= 0) {\n return -1;\n }\n\n if (str.equals(substr) && index > 1) {\n return -1;\n }\n\n int pos = str.indexOf(substr);\n\n int position = index;\n while (--position > 0 && pos != -1) {\n pos = str.indexOf(substr, pos + 1);\n }\n\n return pos;\n }", "public int getIndex();", "public int getIndex();", "public int getIndex();", "public NodeExpr index()\n\t{\n\t\treturn _index;\n\t}", "ParenthesisExpr createParenthesisExpr();", "public int getCharaterPositionWithName(String s){\n int i;\n for(i = 0; i<alCharacter.size(); i++){\n String nameNextChar = alCharacter.get(i).getName();\n if(s.equals(nameNextChar)){\n break;\n }\n }\n return i;\n }", "private void dfs(String s, int leftCount, int rightCount, int openCount, int index, StringBuilder sb, Set<String> res) {\n if (index == s.length()) {\n if (leftCount == 0 && rightCount == 0 && openCount == 0) res.add(sb.toString());\n return;\n }\n if (leftCount < 0 || rightCount < 0 || openCount < 0) return;\n int len = sb.length();\n if (s.charAt(index) == '(') {\n dfs(s, leftCount - 1, rightCount, openCount, index + 1, sb, res);\n dfs(s, leftCount, rightCount, openCount + 1, index + 1, sb.append('('), res);\n } else if (s.charAt(index) == ')') {\n dfs(s, leftCount, rightCount - 1, openCount, index + 1, sb, res);\n dfs(s, leftCount, rightCount, openCount - 1, index + 1, sb.append(')'), res);\n } else {\n dfs(s, leftCount, rightCount, openCount, index + 1, sb.append(s.charAt(index)), res);\n }\n sb.setLength(len);\n }", "int getPosition() {\n\n for (int i = 0; i < numbers.length; i++) {\n\n if (numbers[i] == \"0\") {\n\n Toast.makeText(getApplicationContext(), (CharSequence) (\"Position: \" + new Integer(i).toString()), Toast.LENGTH_SHORT).show();\n return i;\n }\n }\n return 0;\n }", "public abstract int lastIndexOf(E e);", "public int indexOf(XMLString str) {\n/* 536 */ return this.m_str.indexOf(str.toString());\n/* */ }", "public int getPosition(){\n return -1;\n }", "public int nextSplitIndex() throws IOException {\n int e = -1; // =unknown\n int e0 = -1; // =unknown\n char first;\n int tt;\n tt = tok.nextToken();\n if (tt == '|') {\n if (debug) {\n logger.debug(\"split index\");\n }\n tt = tok.nextToken();\n if (tt == StreamTokenizer.TT_EOF) {\n return e;\n } else if (tok.sval != null) {\n first = tok.sval.charAt(0);\n if (digit(first)) {\n e = Integer.parseInt(tok.sval);\n //System.out.println(\"w: \" + i);\n }\n tt = tok.nextToken();\n if (tt != '|') {\n tok.pushBack();\n }\n }\n } else if (tt == '[') {\n if (debug) {\n logger.debug(\"split index\");\n }\n tt = tok.nextToken();\n if (tt == StreamTokenizer.TT_EOF) {\n return e;\n }\n if (tok.sval != null) {\n first = tok.sval.charAt(0);\n if (digit(first)) {\n e0 = Integer.parseInt(tok.sval);\n //System.out.println(\"w: \" + i);\n }\n tt = tok.nextToken();\n if (tt == ',') {\n tt = tok.nextToken();\n if (tt == StreamTokenizer.TT_EOF) {\n return e0; // ??\n }\n if (tok.sval != null) {\n first = tok.sval.charAt(0);\n if (digit(first)) {\n e = Integer.parseInt(tok.sval);\n //System.out.println(\"w: \" + i);\n }\n }\n if (tt != ']') {\n tok.pushBack();\n }\n }\n }\n } else {\n tok.pushBack();\n }\n return e;\n }", "private int getParentIndex(int index){\n return (index-1) >> 1;\n }", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "public int getIndex()\n/* */ {\n/* 46 */ return this.index;\n/* */ }", "private int getParent(int index) {\r\n return (index - 1) / 2;\r\n }", "protected Point getOperatorPosition(String predStr, int start, int end) {\n\t\t\tint i = start;\n\t\t\tint x = start;\n\t\t\tint y;\n\t\t\tboolean letter = false;\n\t\t\twhile (i < end) {\n\t\t\t\tchar c = predStr.charAt(i);\n\t\t\t\tif (letter == false && !isSpaceOrBracket(c)) {\n\t\t\t\t\tx = i;\n\t\t\t\t\tletter = true;\n\t\t\t\t} else if (letter == true && isSpaceOrBracket(c)) {\n\t\t\t\t\ty = i;\n\t\t\t\t\treturn new Point(x, y);\n\t\t\t\t}\n\t\t\t\t++i;\n\t\t\t}\n\t\t\tif (letter == true)\n\t\t\t\treturn new Point(x, end);\n\t\t\telse\n\t\t\t\treturn new Point(start, end);\n\t\t}", "public int lastIndexOf(Object elem, int index);", "public Expression getIndex()\n {\n return index;\n }", "private int doCheckBrackets(String text) {\n int countLeftBracket = 0;\n int countRightBracket = 0;\n\n String[] members = text.split(\"\");\n for (int i = 0; i < members.length; i++){\n if (members[i].equals(\"(\")){\n countLeftBracket++;\n }else if (members[i].equals(\")\")){\n countRightBracket++;\n }\n }\n\n return countLeftBracket - countRightBracket;\n }" ]
[ "0.68013453", "0.66144854", "0.6500261", "0.62838084", "0.60200936", "0.5943197", "0.5823318", "0.57968813", "0.5710592", "0.5707521", "0.5668902", "0.5661495", "0.56098145", "0.5595443", "0.55810237", "0.5575906", "0.5564264", "0.55481964", "0.5536165", "0.55233425", "0.5509529", "0.5503874", "0.5495505", "0.5489387", "0.5474606", "0.5440386", "0.54182124", "0.5416355", "0.5390676", "0.53718036", "0.5371533", "0.53615123", "0.53509843", "0.5349688", "0.5335377", "0.5330607", "0.5325689", "0.5299267", "0.5291748", "0.52901417", "0.52789444", "0.52781165", "0.5252591", "0.5250337", "0.5250337", "0.5250337", "0.5250337", "0.5250337", "0.5250337", "0.5250337", "0.5250337", "0.5250337", "0.5250337", "0.5250337", "0.5250337", "0.5250337", "0.5247897", "0.5247897", "0.5238677", "0.52348155", "0.5214619", "0.52070934", "0.5205162", "0.52034694", "0.5188288", "0.5187441", "0.5185983", "0.5181004", "0.51717025", "0.51676476", "0.5167173", "0.51621974", "0.5160064", "0.51564205", "0.51555145", "0.51555145", "0.51446027", "0.51381433", "0.5117639", "0.5116791", "0.5114209", "0.5114209", "0.5114209", "0.51086044", "0.5098433", "0.5092964", "0.50920886", "0.5090517", "0.50893074", "0.5088233", "0.50836027", "0.5061389", "0.50554484", "0.5052436", "0.50396067", "0.5034409", "0.50276875", "0.5026224", "0.5024816", "0.50153416" ]
0.55423146
18
Gets the position of the closing quote matching the open quote at the given index
public int goPastQuote(StringBuilder sb, int c) { boolean esc = false; for(c++; c < sb.length(); c++) { if(!esc && sb.charAt(c) == '"') break; else if(!esc && sb.charAt(c) == '\\') esc = true; else esc = false; } if(!esc && sb.charAt(c) == '\"') return c; else throw new IllegalArgumentException("Unterminated end quote"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int searchQuotationEnd(String s, int index) {\r\n\t\tint quotePos = s.indexOf(\"\\\"\", index);\r\n\r\n\t\twhile (s.charAt(quotePos - 1) == '\\\\') {\r\n\t\t\tint even = 1;\r\n\t\t\tfor (int i = quotePos - 2; s.charAt(i) == '\\\\'; i--)\r\n\t\t\t\teven++;\r\n\t\t\tif (even % 2 == 0) return quotePos;\r\n\r\n\t\t\tquotePos = s.indexOf(\"\\\"\", quotePos + 1);\r\n\t\t}\r\n\r\n\t\treturn quotePos;\r\n\t}", "private int getIndexOfEnd(String document) {\n int indexOfEnd = -1;\n indexOfEnd = document.indexOf(\"</span> °C\");\n return indexOfEnd;\n }", "private int findBracket(String find) {\n /* State variable ensures that the corresponding closing bracket is found not\n \t\tthe first found closing bracket */\n int state = 0;\n for (int i = 0; i < find.length(); i++) {\n if (find.charAt(i) == '(') {\n state++;\n } else if (find.charAt(i) == ')' && state == 0) {\n return i + 1;\n } else if (find.charAt(i) == ')' && state != 0) {\n state--;\n }\n }\n return 1;\n }", "int getEndCharIndex();", "private int readCharBackward() {\r\n \t\tif (--index < 0 || \r\n \t\t\t\tdocumentContent == null ||\r\n \t\t\t\tdocumentContent.length() <= index)\r\n \t\t\treturn -1;\r\n \r\n \t\ttry {\r\n \t\t\treturn documentContent.charAt(index);\r\n \t\t} catch (StringIndexOutOfBoundsException e) {\r\n \t\t\treturn -1;\r\n \t\t}\r\n \t}", "public int getTagEnd (int tagIndex) {\n int tagCount = -1;\n int i = 0;\n int start = 0;\n int end = 0;\n while (i < tags.length() && tagCount < tagIndex) {\n start = indexOfNextWordStart (tags, i, slashToSeparate);\n end = indexOfNextSeparator (tags, start, false, true, slashToSeparate);\n tagCount++;\n if (tagCount < tagIndex) {\n i = end + 1;\n }\n }\n return end;\n }", "public static int lastIndexOf(StringBuffer buf, String find)\r\n {\r\n return lastIndexOf(buf, find, buf.length() - 1);\r\n }", "public int getIndex(int position);", "Optional<String> endDelimiter(int index) {\r\n\t\treturn delimiters.get(index).end();\r\n\t}", "public int getWordEnd (int wordIndex) {\n int wordCount = -1;\n int i = 0;\n int start = 0;\n int end = 0;\n while (i < tags.length() && wordCount < wordIndex) {\n start = indexOfNextWordStart (tags, i, slashToSeparate);\n end = indexOfNextSeparator (tags, start, true, true, slashToSeparate);\n wordCount++;\n if (wordCount < wordIndex) {\n i = end + 1;\n }\n }\n return end;\n }", "public int getPosition(int index);", "public int lastIndexOf(String str)\n\t{\n\t\tint indexOf = recursiveLastIndexOf(firstC, length, 0, -1, str);\n\t\treturn indexOf;\n\t}", "public int lastIndexOf(String str) {\n/* 590 */ return this.m_str.lastIndexOf(str);\n/* */ }", "public int lastIndexOf(int ch, int fromIndex) {\n/* 492 */ return this.m_str.lastIndexOf(ch, fromIndex);\n/* */ }", "private String getItemAt(String s, int index) {\n\t\tString temp = new String();\n\t\tStringTokenizer st = new StringTokenizer(s);\n\t\t\n\t\tif(index > st.countTokens()) {\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\t\n\t\tfor(int j = 1; j<=index; j++) {\n\t\t\ttemp = st.nextToken();\n\t\t}\n\t\t\n\t\treturn temp;\n\t}", "public abstract int lastIndexOf(E e);", "private static int findTheLastIndexInString(String s, char x){\n\n\t\tfor(int i=s.length()-1 ; i>=0; i--){\n\t\t\t\n\t\t\tif(s.charAt(i) == x)\n\t\t\t\treturn i;\n\t\t}\n\t\treturn -1;\n\t}", "public static int ordinalIndexOf(String str, String substr, int index) {\n\n if (str == null || substr == null || index <= 0) {\n return -1;\n }\n\n if (str.equals(substr) && index > 1) {\n return -1;\n }\n\n int pos = str.indexOf(substr);\n\n int position = index;\n while (--position > 0 && pos != -1) {\n pos = str.indexOf(substr, pos + 1);\n }\n\n return pos;\n }", "private int getExclusiveBottomIndexEndOffset() {\n \n \t\tif (fTextWidget != null && !fTextWidget.isDisposed()) {\n \t\t\tint bottom= fSourceViewer.getBottomIndex();\n \t\t\tif (((fTextWidget.getTopPixel() + fTextWidget.getClientArea().height) % fTextWidget.getLineHeight()) != 0)\n \t\t\t\tbottom++;\n \t\t\ttry {\n \t\t\t\tIDocument document= fSourceViewer.getDocument();\n \n \t\t\t\tif (bottom >= document.getNumberOfLines())\n \t\t\t\t\tbottom= document.getNumberOfLines() - 1;\n \n \t\t\t\treturn document.getLineOffset(bottom) + document.getLineLength(bottom);\n \t\t\t} catch (BadLocationException x) {\n \t\t\t}\n \t\t}\n \n \t\treturn -1;\n \t}", "public int lastIndexOf(int ch) {\n/* 464 */ return this.m_str.lastIndexOf(ch);\n/* */ }", "public int lastIndexOf(String str, int fromIndex) {\n/* 615 */ return this.m_str.lastIndexOf(str, fromIndex);\n/* */ }", "private int findIndex(String str){\n for(int i=size()-1;i>=0;i--){\n if(str.compareTo(get(i))>0){\n return i+1;\n }\n }\n return 0;\n }", "private String getCharacter(final int index) {\n String s = null;\n try {\n s = document.getText(index, 1);\n } catch (final BadLocationException e) {\n }\n return s;\n }", "public int getIndex() {\r\n\t\ttry {\r\n\t\t\treturn (int)(index * ((float)this.originalTextLength / (float)this.text.length));\r\n\t\t} catch (Exception e) {\r\n\t\t\t// maybe there were a division by zero\r\n\t\t\treturn index;\r\n\t\t}\r\n\t}", "public int getEnd() {\n switch(getType()) {\n case Insertion:\n case SNP:\n case InterDup:\n case TandemDup:\n case TransDup:\n return pos;\n default:\n return pos + maxLen() - 1;\n }\n }", "public int getPos(int index) {\r\n return pos[index];\r\n }", "private int getRightOf(int index) {\n // TODO: YOUR CODE HERE\n return index * 2 + 1;\n }", "private static int getRight(int index) {\n\t\treturn getLeft(index) + 1;\n\t}", "public int lastIndexOf(Object elem, int index);", "public static int lastIndexOf (TextFragment textFragment,\r\n \t\tString findWhat)\r\n \t{\r\n \t\tif (textFragment == null)\r\n \t\t\treturn -1;\r\n \t\tif (Util.isEmpty(findWhat))\r\n \t\t\treturn -1;\r\n \t\tif (Util.isEmpty(textFragment.getCodedText()))\r\n \t\t\treturn -1;\r\n \r\n \t\treturn (textFragment.getCodedText()).lastIndexOf(findWhat);\r\n \t}", "public native int indexOf(Record record, int pos, int endPos) /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n return self.indexOf([email protected]::getJsObj()(), pos, endPos);\r\n }-*/;", "private String findCurrentTag(String text, int pos) throws ParseException {\n int lessThan = text.lastIndexOf(\"<\", pos);\n if (lessThan == -1 || text.length() <= lessThan + 1) {\n throw new ParseException(\"Cannot find last tag in html.\", pos);\n }\n // If captured the ending tag then skip the slash but find the tag name\n if (text.charAt(lessThan+1) == '/') {\n lessThan++;\n }\n\n Pair<Integer, String> result = indexOfFirstOccurance(text, lessThan, \" \", \">\");\n if (result == null) {\n throw new ParseException(\"Cannot find last tag in html.\", pos);\n }\n return text.substring(lessThan + 1, result.first);\n }", "Index getIndex(String symbol);", "private int locate(String str, String substr, int pos) {\n if (substr.length() == 0) {\n if (pos <= (str.length() + 1)) {\n return pos;\n }\n else {\n return 0;\n }\n }\n int idx = StringUtils.indexOf(str, substr, pos - 1);\n if (idx == -1) {\n return 0;\n }\n return idx + 1;\n }", "public TACQuote getAuctionQuote(int gameTimeSeconds, int auctionIndex) {\n TACQuote[] quotes = auctionQuotes[auctionIndex];\n if (quotes != null) {\n long time = startTime + gameTimeSeconds * 1000;\n for (int i = 0, n = quotes.length; i < n; i++) {\n\tTACQuote q = quotes[i];\n\tif (q == null) {\n\t // End of quotes was found\n\t break;\n\t} else if (q.getLastUpdated() >= time) {\n\t return q;\n\t}\n }\n // Return the last quote if no quote was found after the specified time\n for (int i = quotes.length - 1; i >= 0; i--) {\n\tif (quotes[i] != null) {\n\t return quotes[i];\n\t}\n }\n }\n return null;\n }", "private int right(int index) {\r\n\t\treturn 2 * index + 2;\r\n\t}", "public int getIndex()\n/* */ {\n/* 46 */ return this.index;\n/* */ }", "org.mojolang.mojo.lang.Position getEndPosition();", "public static Integer lastIndexOf(ByteBuffer buff1,ByteBuffer buff2) throws UnsupportedEncodingException {\n\t\tint index = -1;\n\t\tint matchCount = 0;\n\t\tfor(int i = buff1.position() - buff2.position();i > 0;i--) {\n\t\t\tfor(int j = 0;j < buff2.position();j++) {\n\t\t\t\tif(buff2.get(j) == buff1.get(i + j)) {\n\t\t\t\t\tmatchCount ++;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(matchCount == buff2.position()) {\n\t\t\t\tindex = i;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tmatchCount = 0;\n\t\t\t}\n\t\t\tif(index != -1)\n\t\t\t\tbreak;\n\t\t}\n\t\treturn index;\n\t}", "protected int handleQuotedField(String s, StringBuffer sb, int i)\n {\n int j;\n int len = s.length();\n\n for (j = i; j < len; j++)\n {\n if ((s.charAt(j) == textQualifier) && (j + 1 < len))\n {\n if (s.charAt(j + 1) == textQualifier)\n {\n j++; // skip escape char\n }\n else if (s.charAt(j + 1) == fieldSeparator)\n {\n // next delimiter\n j++; // skip end quotes\n break;\n }\n }\n else if ((s.charAt(j) == textQualifier) && (j + 1 == len))\n {\n // end quotes at end of line\n break; // done\n }\n\n sb.append(s.charAt(j)); // regular character\n }\n\n return j;\n }", "public static int lastIndexOf(StringBuffer buf, String find, int from)\r\n {\r\n if (from > buf.length() - 1)\r\n from = buf.length() - 1;\r\n \r\n int mlen = find.length() - 1;\r\n int k;\r\n for (int n = from; n >= mlen; n--)\r\n {\r\n for (k = mlen; k >= 0; k--)\r\n {\r\n if (buf.charAt(n + k - mlen) != find.charAt(k))\r\n break;\r\n }\r\n \r\n // Found!\r\n if (k < 0)\r\n return n;\r\n }\r\n return -1;\r\n }", "@Override\n public int getPositionSecondOperand() {\n return position + 2;\n }", "public int findColumn(String sql, int end) {\n String extraChars = \"'`\\\".\";\n int pos = end - 1;\n char c;\n \n while (pos >= 0) {\n c = sql.charAt(pos);\n if (!Character.isJavaIdentifierPart(c) && extraChars.indexOf(c) < 0) {\n pos++;\n break;\n }\n pos--;\n }\n if (pos < end) {\n return pos;\n } else {\n return -1;\n }\n }", "private int alwaysMoreOpen(int start, int end, String s){\n int diff=0, temp=0, res=0;\n for(int i=end; i>start;i--){\n if(s.charAt(i)==')') diff++;\n else {\n if(diff>0){\n diff--;\n temp+=2;\n }\n else{\n res=Math.max(temp,res);\n temp=0;\n }\n }\n }\n return Math.max(temp,res);\n}", "Expression getIndexExpr();", "private static int getClosingParenPosition(MethodInvocationTree tree, VisitorState state) {\n int startPosition = ASTHelpers.getStartPosition(tree);\n if (startPosition == Position.NOPOS) {\n return Position.NOPOS;\n }\n\n return Streams.findLast(\n ErrorProneTokens.getTokens(state.getSourceForNode(tree), state.context).stream()\n .filter(t -> t.kind() == RPAREN))\n .map(token -> startPosition + token.pos())\n .orElse(Position.NOPOS);\n }", "private int getIndexOfStart(String document, int indexOfEnd) {\n int indexOfStart = -1;\n // iterate the document backwards until '>' is found\n for (int i = indexOfEnd; i >= 0 ; i--) {\n char c = document.charAt(i);\n if (c == '>') {\n indexOfStart = i + 1;\n break;\n }\n }\n return indexOfStart;\n }", "int getEndPosition();", "public int getIndex() {\r\n return textIndex;\r\n }", "protected int scanQuotedString () throws HTMLParseException {\r\n int endindex = -1;\r\n int startindex = index - 1;\r\n byte start = pagepart[startindex];\r\n while (index < length) {\r\n if (pagepart[index++] == start) {\r\n endindex = index;\r\n break;\r\n }\r\n }\r\n if (endindex == -1) {\r\n block.setRest (lastTagStart);\r\n return END;\r\n }\r\n int l = (endindex < length ? endindex : length) - startindex;\r\n try {\r\n// stringValue = new String (pagepart, startindex, l, \"ISO-8859-1\");\r\n // Tag Value 값을 저장할때 한글이 깨지기 때문에 String 을 생성 할때 UTF-8 로 생성\r\n stringValue = new String (pagepart, startindex, l, UTF8_ENCODE);\r\n } catch (Exception e) {\r\n throw new HTMLParseException (\"doh: \" + e);\r\n }\r\n switch (start) {\r\n case (int)'\\'':\r\n return SQSTRING;\r\n case (int)'\"':\r\n return DQSTRING;\r\n default:\r\n return UNKNOWN;\r\n }\r\n }", "public abstract String getPos();", "private int getRealIndex()\r\n\t{\r\n\t\treturn index - 1;\r\n\t}", "int toIndex(Position pos);", "private static int checkQuotation(String s) {\r\n\t\tint equalsPos = s.indexOf(\"=\");\r\n\t\tint quotePos = s.indexOf(\"\\\"\");\r\n\t\treturn (equalsPos + 1 == quotePos ? quotePos : 0);\r\n\t}", "int getCommentEndOffset(CharSequence commentText);", "public final int getPos() { return i; }", "public static int getValueAt(char[] parleValues, char index) {\t\n\t\treturn parleValues[binarySearchLeft(parleValues, index)+2];\n\t}", "public static int lastIndexOf(char c, CharSequence seq) {\n int max = seq.length() - 1;\n for (int i = max; i >= 0; i--) {\n if (c == seq.charAt(i)) {\n return i;\n }\n }\n return -1;\n }", "public int getEndOffset(int childViewIndex);", "public int lastIndexOf(Object elem);", "public abstract int getEndIndex();", "private static int rightChildIndex(int index) {\n\t\treturn (index * 2) + 2;\n\t}", "public static void main(String[] args) {\n\t\tString s = \"String -Hello, my name is algoritmia - \";\n\t\t\n\t\tint pos1 = s.indexOf(\"Hello\");\n\t\tint pos2 = s.lastIndexOf(\"my\");\n\t\tSystem.out.println(pos1);\n\t\tSystem.out.println(pos2);\n\t}", "private int lastIndexOfSupplementary(int ch, int fromIndex) {\n\t\tif (Character.isValidCodePoint(ch)) {\n\t\t\tfinal char[] value = this.value;\n\t\t\tchar hi = Character.highSurrogate(ch);\n\t\t\tchar lo = Character.lowSurrogate(ch);\n\t\t\tint i = Math.min(fromIndex, value.length - 2);\n\t\t\tfor (; i >= 0; i--) {\n\t\t\t\tif (value[i] == hi && value[i + 1] == lo) {\n\t\t\t\t\treturn i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "String getFirstIndex();", "public String p_extractStaticSegment(ParsePosition currentIndex, String template) {\n String segment;\n\n if (currentIndex.getIndex() >= template.length()) {\n return \"\";\n }\n\n int quoteStartIndex = template.indexOf(QUOTE_START_CHAR, currentIndex.getIndex());\n\n if (quoteStartIndex == -1) {\n // if QUOTE_START is not found\n segment = template.substring(currentIndex.getIndex());\n currentIndex.setIndex(template.length());\n } else if (quoteStartIndex != 0 && template.charAt(quoteStartIndex - 1) == ESCAPE_CHAR) {\n // if the QUOTE_START char is ESCAPED\n // look for the next QUOTE_START\n // extract everything before the ESCAPE_CHAR\n String part = template.substring(currentIndex.getIndex(), quoteStartIndex - 1);\n\n // increment index to skip the current QUOTE_START\n currentIndex.setIndex(quoteStartIndex + QUOTE_START_CHAR.length());\n String remaining = p_extractStaticSegment(currentIndex, template);\n segment = part + QUOTE_START_CHAR + remaining;\n\n //current index should be set by the recursive calls\n } else {\n // if QUOTE_START is found\n segment = template.substring(currentIndex.getIndex(), quoteStartIndex);\n currentIndex.setIndex(quoteStartIndex);\n }\n\n return segment;\n }", "public int getScopeOpen(){\r\n\t\tint i = getCaretPosition();\r\n\t\tint rtn = 0;\r\n\t\tString str = \"\";\r\n\t\ttry{\r\n\t\t\tstr = doc.getText(0,i);\r\n\t\t}catch(BadLocationException a){};\r\n\t\tfor(i-=1; i>0; i--) {\r\n\t\t\tif(str.charAt(i) == '{') rtn += 1;\r\n\t\t\tif(str.charAt(i) == '}') rtn -= 1;\r\n\t\t}\r\n\t\tif(rtn <0)rtn = 0;\r\n\t\treturn rtn;\r\n\t}", "private String getLine(final int index) {\n Element elem = TextUtils.getParagraphElement(document, index);\n if (elem == null) {\n return null;\n }\n int start = elem.getStartOffset();\n int length = elem.getEndOffset() - start;\n String result = null;\n try {\n result = document.getText(start, length);\n } catch (final BadLocationException e) {\n }\n return result;\n }", "private int scanBrace(String s, int startIndex, char braceTypeOpen,\n char braceTypeClose){\n int numL = 1;\n for (int i = startIndex; i < s.length(); i++){\n char c = s.charAt(i);\n numL += c == braceTypeOpen ? 1 : c == braceTypeClose ? -1 : 0;\n if (numL == 0) return i;\n }\n return -1;\n }", "public static int nextIndexOf(String string, String characters, int index) {\n int retInd = string.length();\n int auxIndex = -1;\n \n for (int i = 0; i < characters.length(); i++) {\n auxIndex = string.substring(index + 1).indexOf(characters.charAt(i));\n if ((auxIndex > -1) && (auxIndex + index + 1 < retInd)) {\n retInd = auxIndex + index + 1;\n }\n }\n return retInd;\n }", "public char closeQuote() {\n \t\treturn '\"';\n \t}", "private int getSpanEnd(int i,List<Span> spans) {\n return (i + 1 == spans.size() ? mText.length() : spans.get(i + 1).startIndex);\n }", "private static int getSquarePosition(int index) {\n return (((index/3)%3)+1)+3*(((index/9)/3)+1);\n }", "public int parensIndex(int i) {\n return (int) this.parens[i];\n }", "public int position() {\n return pos;\n }", "public static int nthIndexOf(String str, String substr, int n) {\n int pos = -1;\n while (n > 0) {\n if (pos >= str.length()) {\n return -1;\n }\n if ((pos = str.indexOf(substr, pos + 1)) == -1) {\n break;\n }\n n--;\n }\n return pos;\n }", "private int getRightIdx(int pos) {\n return 2 * pos + 2;\n }", "public int getIteratorByIndex(int index) {\n int current = 0;\n for (int j = 0; j < numberOfBlocks; ++j) {\n if (current + endOfBlock[j] - (len * j << 1) > index) {\n int indexInData = (len * j << 1) + (index - current);\n return indexInData;\n } else current += endOfBlock[j] - (len * j << 1);\n }\n return NO_ELEMENT;\n }", "public int getBlockIndex() {\n return mCursorPosition;\n }", "public int getIndex(String qName) {\n/* 244 */ for (int i = this.m_attrs.getLength() - 1; i >= 0; i--) {\n/* */ \n/* 246 */ Node a = this.m_attrs.item(i);\n/* 247 */ if (a.getNodeName().equals(qName))\n/* 248 */ return i; \n/* */ } \n/* 250 */ return -1;\n/* */ }", "public Integer getPosition();", "private int findItem(String searchItem){\n return myGrocery.indexOf(searchItem);\n }", "public int findMatchingSemicolon(int listIndex) {\r\n\r\n List<Integer> indexesOfSemicolons = new ArrayList<Integer>();\r\n\r\n int i = listIndex;\r\n boolean _continue = true;\r\n\r\n while (i < parser.rawLines.size() && _continue) {\r\n\r\n String currentLine = parser.rawLines.get(i);\r\n currentLine = currentLine.trim();\r\n\r\n if (parser.is(currentLine, syntax.ifCondition) || parser.is(currentLine, syntax.whileLoop) || parser.is(currentLine, syntax.voidSyntax)) {\r\n _continue = false;\r\n }\r\n\r\n if (currentLine.equals(\";\")) {\r\n indexesOfSemicolons.add(i);\r\n }\r\n\r\n i++;\r\n }\r\n\r\n Collections.sort(indexesOfSemicolons);\r\n return indexesOfSemicolons.get(indexesOfSemicolons.size() - 1);\r\n }", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "public static int indexOfOutOfString(String string, char find) {\r\n\t\tboolean inJavaString = false;\r\n\t\tint numBackSlashes = 0;\r\n\t\tfor (int i = 0; i < string.length(); i++) {\r\n\t\t\tchar cur = string.charAt(i);\r\n\t\t\tif (!inJavaString) {\r\n\t\t\t\tif (cur == find) {\r\n\t\t\t\t\treturn i;\r\n\t\t\t\t}\r\n\t\t\t\tif (cur == '\\\"') {\r\n\t\t\t\t\tinJavaString = true;\r\n\t\t\t\t\tnumBackSlashes = 0;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif (cur == '\\\\') {\r\n\t\t\t\t\tnumBackSlashes++;\r\n\t\t\t\t}\r\n\t\t\t\tif (cur == '\\\"' && numBackSlashes % 2 == 0) {\r\n\t\t\t\t\tinJavaString = false;\r\n\t\t\t\t\tif (cur == find) {\r\n\t\t\t\t\t\treturn 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\treturn -1;\r\n\t}", "public void testPosition() {\n System.out.println(\"position\");\n BufferedCharSequence instance = null;\n int expResult = 0;\n int result = instance.position();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public int getEndIndex() {\n return start + length - 1;\n }", "public int getIndex();" ]
[ "0.7355033", "0.6200443", "0.58829683", "0.5693456", "0.5625666", "0.56095064", "0.5583162", "0.5472817", "0.53692716", "0.53553665", "0.5352583", "0.53222823", "0.53115773", "0.5309899", "0.5302504", "0.528028", "0.5261377", "0.5229132", "0.5204038", "0.5182821", "0.5173427", "0.5159239", "0.51431847", "0.5136192", "0.51347303", "0.5120662", "0.5102543", "0.5100136", "0.50924003", "0.5074324", "0.5073733", "0.5061627", "0.50581115", "0.505667", "0.50184417", "0.49974635", "0.49835986", "0.49615878", "0.49327472", "0.49321663", "0.4931565", "0.49305063", "0.49292845", "0.4927357", "0.49262217", "0.4915373", "0.49121663", "0.49043673", "0.48977566", "0.48970422", "0.48937124", "0.48922998", "0.48827547", "0.4873824", "0.48680186", "0.48543236", "0.48500353", "0.4849462", "0.48490235", "0.48447686", "0.48266628", "0.48154742", "0.48111242", "0.48079076", "0.48047635", "0.48033285", "0.47953305", "0.47927582", "0.47720376", "0.47718537", "0.4764462", "0.47643012", "0.47506684", "0.47464743", "0.4741641", "0.4739527", "0.47323743", "0.47266594", "0.47183466", "0.47144347", "0.4701565", "0.46942896", "0.46921274", "0.46890515", "0.46890515", "0.46890515", "0.46890515", "0.46890515", "0.46890515", "0.46890515", "0.46890515", "0.46890515", "0.46890515", "0.46890515", "0.46890515", "0.46890515", "0.4680891", "0.46803877", "0.46768954", "0.46761987" ]
0.56302744
4
Forces a character to be lowercase
public static char lower(char c) { if(c >= 'A' && c <= 'Z') return (char) (c - 'A' + 'a'); else return c; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static char toLowerCase(char c) {\r\n\r\n\t\tif (isLowerCase(c)) {\r\n\t\t\treturn c;\r\n\t\t} else {\r\n\t\t\treturn (char) (c + 32);\r\n\t\t}\r\n\t}", "public void toLower() {\n ArrayList<Character> newSeq = new ArrayList<Character>();\n for (char c : seq) {\n newSeq.add(Character.toLowerCase(c));\n }\n seq = newSeq;\n }", "private void switchToLowerCase() {\n for (int i = 0; i < mLetterButtons.length; i++) {\n mLetterButtons[i].setText((mQWERTYWithDot.charAt(i) + \"\").toLowerCase());\n }\n mIsShiftPressed = false;\n }", "private CharSequence toLowercase(CharSequence chs) {\n final int length = chs.length();\n scratch.setLength(length);\n scratch.grow(length);\n\n char[] buffer = scratch.chars();\n for (int i = 0; i < length; ) {\n i += Character.toChars(Character.toLowerCase(Character.codePointAt(chs, i)), buffer, i);\n }\n\n return scratch.get();\n }", "private void toLower() {\n System.out.print(\"ToLower(\");\n text.print();\n System.out.print(\")\");\n }", "public ICase retourneLaCase() ;", "public void makeLowerCase () {\n tags = new StringBuilder (tags.toString().toLowerCase());\n }", "public static void printLowerCase()\n {\n for(char i = 'a'; i <= 'z'; i++){\n System.out.print(i + \" \");\n }\n System.out.println();\n }", "public String getLowercaseFunction() {\n \t\treturn \"lower\";\n \t}", "public static String lowerCaseFirstChar(String str){\r\n\t\treturn str.substring(0, 1).toLowerCase() + str.substring(1); \r\n\t}", "public static String toLower(String s) {\n if(s.length() <= 1) {\n return s.toLowerCase();\n }\n char first = s.charAt(0);\n if((first == 'n' || first == 't') && isIrishUpperVowel(s.charAt(1))) {\n return first + \"-\" + s.substring(1).toLowerCase();\n } else {\n return s.toLowerCase();\n }\n }", "public static char getRandomLowerCaseLetter(){\n\t\treturn getRandomCharacter('a','z');\n\t}", "public XMLString toLowerCase() {\n/* 702 */ return new XMLStringDefault(this.m_str.toLowerCase());\n/* */ }", "private static String cup(String str) {\n\t\treturn str.substring(0,1).toLowerCase() + str.substring(1); \n\t}", "public static boolean isAsciiAlphaLower(char ch) {\n/* 498 */ return (ch >= 'a' && ch <= 'z');\n/* */ }", "public String convertLowercase(String str)\r\n {\r\n return str.toLowerCase();\r\n }", "public static final String lowercase(String s) {\n StringBuffer n = new StringBuffer(s);\n for (int i = 0; i < s.length(); ++i) {\n if (!Character.isLetterOrDigit(n.charAt(i))) \n\tn.setCharAt(i, '_');\n else\n\tn.setCharAt(i, Character.toLowerCase(n.charAt(i)));\n }\n return n.toString();\n }", "public String getLowerCaseName() {\n\t\treturn getName().toLowerCase();\n\t}", "public static void main(String[] args) {\nString s = \"HElLo WoRlD WelCOMe To JaVa\";\nSystem.out.println(s.toLowerCase());\n\t}", "int lower();", "public static String lowerCase(String s){\n\t\tString lower= \" \";\n\t\tfor (int i=0; i<s.length(); i++){\n\t\t\tString letter=s.substring(i, i+1);\n\t\t\tif (Constants.UPPER_CASE.indexOf(letter)!= -1){\n\t\t\t\tint indexLetter=Constants.UPPER_CASE.indexOf(letter);\n\t\t\t\tString lowerLetter= Constants.UPPER_CASE.substring(indexLetter, indexLetter+1);\n\t\t\t\tlower=lower+lowerLetter;\n\t\t\t} else {\n\t\t\t\tlower=lower+letter;\n\t\t\t}\n\t\t}\n\t\treturn lower;\n\t}", "char caseconverter(int k,int k1)\n{\nif(k>=65 && k<=90)\n{\nk1=k1+32;\n}\nelse\nif(k>=97 && k<=122)\n{\nk1=k1-32;\n}\nreturn((char)k1);\n}", "public ArrayList<Character> charToLower(ArrayList<Character> list){\n ArrayList<Character> lower = new ArrayList<>();\n for(Character x: list){\n x = Character.toLowerCase(x);\n lower.add(x);\n }\n return lower;\n }", "Alphabet(String chars) {\n _chars = sanitizeChars(chars);\n }", "private static char normalize(char input) {\n if (input == ' ') {\n return input;\n }\n\n if (input < 'a') {\n return 'a';\n }\n if (input > 'z') {\n return 'z';\n }\n\n return input;\n }", "private String validateAndGetLowerCaseKey(String key) {\n Strings.requireNonNullAndNotEmpty(key);\n return key.toLowerCase(Locale.ROOT);\n }", "protected String normalize(String text) {\r\n\t\tString normalized = text.toLowerCase();\r\n\t\treturn normalized;\r\n\t}", "public void firstToUpperCase() {\n \n }", "public static String lcase(String s) {\n return xcase(s, Character::toLowerCase);\n }", "protected String alterCase(String value) {\n\t\tswitch (getCase()) {\n\t\tcase UPPERCASE:\n\t\t\treturn value.toUpperCase();\n\t\tcase LOWERCASE:\n\t\t\treturn value.toLowerCase();\n\t\tdefault:\n\t\t\treturn value;\n\t\t}\n\t}", "private String fixupCase(String s) {\r\n boolean nextIsUpper = true;\r\n StringBuffer sb = new StringBuffer();\r\n\r\n for (int i = 0; i < s.length(); i++) {\r\n char c = s.charAt(i);\r\n if (nextIsUpper) {\r\n c = Character.toUpperCase(c);\r\n } else {\r\n c = Character.toLowerCase(c);\r\n }\r\n sb.append(c);\r\n nextIsUpper = Character.isWhitespace(c);\r\n }\r\n return sb.toString();\r\n }", "private String toLowerCyrillic(String word) {\n StringBuilder stringBuilder = new StringBuilder();\n for (int i = 0; i < word.length(); i++) {\n char curChar = word.charAt(i);\n if (curChar >= 'А' && curChar <= 'Я') {\n curChar += 0x20;\n } else if (curChar == 'Ё') {\n curChar = 'ё';\n }\n stringBuilder.append(curChar);\n }\n return stringBuilder.toString();\n }", "public void print() {\n toLower();\n }", "protected char tryReduceChar(char letter) {\n int comp = (letter < 97) ? Character.toLowerCase(letter) : letter;\n return (Integer.compare(comp, 97) > 0) ? (char) (letter - 1) : letter;\n }", "private String upFirstLetter(){\n\t\tString firstLetter = nameField.substring(0,1);\n\t\tfirstLetter = firstLetter.toUpperCase();\n\t\treturn firstLetter + nameField.substring(1,nameField.length());\n\t}", "public static String toggleCase(String str){\n\t\tStringBuilder sb = new StringBuilder(str);\n\t\tfor(int i=0;i<str.length() ;i++ ){\n\t\t char ch = str.charAt(i);\n\t\t if(ch>='a' && ch<='z')\n\t\t {\n\t\t char upr = (char)('A'+ch-'a');\n\t\t sb.setCharAt(i,upr);\n\t\t }\n\t\t else if(ch>='A' && ch<='Z')\n\t\t {\n\t\t char upr = (char)('a'+ch-'A');\n\t\t sb.setCharAt(i,upr);\n\t\t }\n\t\t}\n\t\t\n\n\t\treturn sb.toString();\n\t}", "public final void mLOWER() throws RecognitionException {\n\t\ttry {\n\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:311:16: ( ( 'a' .. 'z' ) )\n\t\t\t// /Users/probst/workspace/MiniJava_A6/src/compiler/Frontend/MiniJava.g:\n\t\t\t{\n\t\t\tif ( (input.LA(1) >= 'a' && input.LA(1) <= 'z') ) {\n\t\t\t\tinput.consume();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tMismatchedSetException mse = new MismatchedSetException(null,input);\n\t\t\t\trecover(mse);\n\t\t\t\tthrow mse;\n\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "public static String lcfirst(String input) {\n return withFirst(input, first -> String.valueOf(Character.toLowerCase(first)));\n }", "public static String firstLowerCase(String value) {\n\t\tif (value == null || value.length() == 0) {\n\t return value;\n\t }\n\t\tchar[] c = value.toCharArray();\n\t\tc[0] += 32;\n\t\treturn new String(c);\n\t}", "public void AddLowercase(Locale culture)\n\t{\n\t\tint i;\n\t\tint origSize;\n\t\tSingleRange range;\n\n\t\t_canonical = false;\n\n\t\tfor (i = 0, origSize = _rangelist.size(); i < origSize; i++)\n\t\t{\n\t\t\trange = _rangelist.get(i);\n\t\t\tif (range._first == range._last)\n\t\t\t{\n\t\t\t\trange._first = range._last = Character.toLowerCase(range._first);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tAddLowercaseRange(range._first, range._last, culture);\n\t\t\t}\n\t\t}\n\t}", "private boolean isLowerCase(final String message) {\n\t\treturn message.contains(\"variable should be in lower case\"); //$NON-NLS-1$\n\t}", "public XMLString toLowerCase(Locale locale) {\n/* 687 */ return new XMLStringDefault(this.m_str.toLowerCase(locale));\n/* */ }", "public static boolean isAllLower(String word) {\n \tfor(int iChar = 0; iChar < word.length(); iChar++)\n \t\tif(!Character.isLowerCase(word.charAt(iChar)))\n \t\t\treturn false;\n \t\n \treturn true;\n }", "private final static String toTitleCase( String s ) {\n\n char[] ca = s.toCharArray();\n\n boolean changed = false;\n boolean capitalise = true;\n\n for ( int i=0; i<ca.length; i++ ) {\n char oldLetter = ca[i];\n if ( oldLetter <= '/'\n || ':' <= oldLetter && oldLetter <= '?'\n || ']' <= oldLetter && oldLetter <= '`' ) {\n /* whitespace, control chars or punctuation */\n /* Next normal char should be capitalized */\n capitalise = true;\n } else {\n char newLetter = capitalise\n ? Character.toUpperCase(oldLetter)\n : Character.toLowerCase(oldLetter);\n ca[i] = newLetter;\n changed |= (newLetter != oldLetter);\n capitalise = false;\n }\n } // end for\n\n return new String (ca);\n\n }", "public static String initLower(final String value) {\n if (value == null) {\n return null;\n\n } else if (value.length() <= 1) {\n return value.toLowerCase();\n\n } else {\n return value.substring(0, 1).toLowerCase() + value.substring(1);\n }\n }", "String getCaseSensitive();", "Rule Letter() {\n // No effect on value stack\n return FirstOf(\n CharRange('a', 'z'),\n CharRange('A', 'Z'));\n }", "private static String xcase(String s, Function<Character, Character> f) {\n if (s == null || s.length() == 0) {\n return s;\n }\n return f.apply(s.charAt(0)) + (s.length() > 1 ? s.substring(1) : \"\");\n }", "private void useCapitalLettersFromType(String type, StringBuffer buffer) {\r\n for (int ndx = 0; ndx < type.length(); ndx++) {\r\n char ch = type.charAt(ndx);\r\n if (Character.isUpperCase(ch)) {\r\n buffer.append(Character.toLowerCase(ch));\r\n }\r\n }\r\n }", "public static String lowerFirst(String value) {\r\n\t\tif(value == null || value.length() == 0) {\r\n\t\t\treturn value;\r\n\t\t}\r\n\t\tif(value.length() == 1) {\r\n\t\t\treturn value.toLowerCase();\r\n\t\t}\r\n\t\treturn Character.toLowerCase(value.charAt(0)) + value.substring(1); \r\n\t}", "public static void main(String[] args) {\n String S1=\"THE QUICK BROWN FOR JUMPS OVER THE LAZY DOG.\";//convert into lowercase\n String result = S1.toLowerCase();//formula to convert\n System.out.println(result);//print the outcome\n }", "@Override\n int lower() {\n return lower;\n }", "@Override\n public void write(char[] cbuf, int off, int len) throws IOException {\n for (int i = 0; i < cbuf.length; ++i)\n cbuf[i] = Character.toUpperCase(cbuf[i]);\n \n super.write(cbuf, off, len);\n \n }", "private int sanitizeCharacter(char value)\n\t{\n\t\tint returnValue = -1;\n\n\t\t// make sure only 'A' through 'Z' are acceptable.\n\t\tif (((value >= 'A') && (value <= 'Z')) || ((value >= 'a') && (value <= 'z')))\n\t\t{\n\t\t\treturnValue = Character.toUpperCase(value);\n\t\t}\n\n\t\treturn returnValue;\n\t}", "public boolean isUrgentLetter() {\n\t\treturn false;\n\t}", "private boolean letter() {\r\n return CATS(Lu, Ll, Lt, Lm, Lo);\r\n }", "public void setLowerCaseLettersCount(long value) {\n this.lowerCaseLettersCount = value;\n }", "private String getLowerToken(char[] characters) \n\t{\n\t\t//current token to be returned.\n\t\tString currentToken = \"\";\n\t\t\n\t\t//look at each character\n\t\tfor (char ch: characters)\n\t\t{\n\t\t\t//check if whitespace\n\t\t\tboolean ws = Character.isWhitespace(ch);\n\t\t\t//check type\n\t\t\tString type = getType(ch);\n\t\t\t//check if token is valid\n\t\t\tboolean currIsValid = core.containsKey(currentToken);\n\t\t\t\n\t\t\t//not whitespace and new ch is lowercase.\n\t\t\tif (!ws && Objects.equals(type, \"lowercase\"))\n\t\t\t{\n\t\t\t\tcurrentToken = currentToken.concat(String.valueOf(ch));\n\t\t\t}\n\t\t\t//not whitespace and special ch, token found, must be valid token\n\t\t\telse if (!ws && Objects.equals(type, \"special\") && currIsValid )\n\t\t\t{\n\t\t\t\treturn currentToken;\n\t\t\t}\n\t\t\t//whitespace found, and token is a valid token\n\t\t\telse if ( ws && currIsValid )\n\t\t\t{\n\t\t\t\treturn currentToken;\n\t\t\t}\n\t\t\telse if ( ws )// token was not valid \n\t\t\t{\n\t\t\t\tSystem.out.println(\"\\n\"+currentToken+\"is not a valid reserved word!\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tSystem.out.println(\"\\n lower: \"+currentToken+ch+\": does not have a valid ending\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t\t//ran out of tokens to process (end of line)\n\t\treturn currentToken;\n\t}", "public static String recaseMWE(String s) {\n return recase.get(s.toLowerCase());\n }", "public void setWordSearchedLower(String wordSearched){\r\n wordSearched = wordSearched.toLowerCase();\r\n this.wordSearched = wordSearched;\r\n }", "public boolean getCaseSesitive() {\n\t\treturn this.caseSensitive;\n\t}", "public boolean checkLowerCase(String password) {\n return password.matches(\".*[a-z].*\");\n }", "public static String cap(String w) {\n if (w.toLowerCase().equals(w)){ //if there are no capitals\n return w; // //then just return the word as is\n }\n else{\n // for (int i=0; i<w.length(); i++) {\n \n return w.substring(0,1).toUpperCase() + w.substring(1).toLowerCase(); //if there is a capital then make the first only the first letter capital and the rest lowercase\n }\n }", "private static String capName(String name) { return name.substring(0, 1).toUpperCase() + name.substring(1); }", "void unsetCapital();", "public String toString() {return name().charAt(0) + name().substring(1).toLowerCase();}", "@Override\n\tpublic void keyPressed(KeyEvent arg0) {\n\t\tk.keyPress(KeyEvent.getKeyText(arg0.getKeyCode()).toLowerCase());\n\t}", "public static String capitaliseFirstLetter(String input) {\n\n\t\t// Check if 1st char is already Uppercase\n\t\tif (!Character.isUpperCase(input.charAt(0))) {\n\t\t\tinput = input.substring(0, 1).toUpperCase() + input.substring(1).toLowerCase();\n\t\t}\n\t\treturn input;\n\t}", "public static String formatter(String s) {\n return s.replaceAll(\"[^a-zA-Z]\", \"\").toLowerCase();\n }", "public static String changeCase(String element) {\n if (element == null) {\n return null;\n }\n if (WWNUtility.isValidWWN(element)) {\n return element.toUpperCase();\n } else {\n return element.toLowerCase();\n }\n }", "Alphabet() {\n this(\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\");\n }", "Alphabet() {\n this(\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\");\n }", "Alphabet() {\n this(\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\");\n }", "public char encrypt(char ch) {\n \n char chUC = Character.toUpperCase(ch);\n int cInd = ALPHABET.indexOf(chUC);\n \n // do not translate non letters\n if (cInd==-1) return ch;\n \n // index of encoded character\n int enInd = (cInd+key)%26;\n // encoded character\n char enCh = ALPHABET.charAt(enInd);\n \n // check the case of character and return appropriate\n if (Character.isUpperCase(ch)) return enCh;\n else return Character.toLowerCase(enCh);\n \n }", "int getCaseSensitive();", "void setCaseSensitive(int value);", "public static boolean inWord(String s, char c) {\r\n\t\tfor (int i = 0; i < s.length(); i++) {\r\n\t\t\tif (s.charAt(i) == Character.toLowerCase(c)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "static String cleanString(String s) {\n return s.replaceAll(\"[^a-zA-Z ]\", \"\").toLowerCase();\n }", "static String cleanString(String s) {\n return s.replaceAll(\"[^a-zA-Z ]\", \"\").toLowerCase();\n }", "static String cleanString(String s) {\n return s.replaceAll(\"[^a-zA-Z ]\", \"\").toLowerCase();\n }", "public void setLetter(char letter){\r\n\t\tthis.letter = letter;\r\n\t}", "public static boolean hasLowerAlpha(String password) throws NoLowerAlphaException\r\n {\r\n Pattern pattern = Pattern.compile(\".*[a-z].*\");\r\n Matcher matcher = pattern.matcher(password);\r\n if (!matcher.matches())\r\n throw new NoLowerAlphaException();\r\n return true;\r\n }", "private static char changeLamAlef(char ch) {\n switch(ch) {\n case '\\u0622': return '\\u065C';\n case '\\u0623': return '\\u065D';\n case '\\u0625': return '\\u065E';\n case '\\u0627': return '\\u065F';\n default: return '\\u0000'; // not a lamalef\n }\n }", "public void conversionTest(){\n String test = \"ABCDEFabcdef123!#\";\n for(int k=0; k < test.length(); k++){\n char ch = test.charAt(k);\n char uch = Character.toUpperCase(ch);\n char lch = Character.toLowerCase(ch);\n System.out.println(ch+\" \"+uch+\" \"+lch);\n }\n }", "public ToLowerCaseTextDecorator(Text text) {\n super(text);\n }", "private static String convertToLatin(String word)\n {\n return word.substring(1) + word.substring(0,1) + \"ay\";\n }", "public static String randLower(){\n int n = rand.nextInt(26)*2 + 1;\n return String.valueOf(KEYBOARD.charAt(n));\n }", "@RequiresApi(api = Build.VERSION_CODES.KITKAT)\n private char encryptLetter(char keyLetter, char plaintextLetter) {\n\n //if not alpha, return unchanged\n if(!Character.isAlphabetic(plaintextLetter)){\n return plaintextLetter;\n }\n\n //convert to upper case for case-insensitivity while looking\n //up in the table\n keyLetter = Character.toUpperCase(keyLetter);\n char plaintextLetterToUpper = Character.toUpperCase(plaintextLetter);\n\n //to leave case unchanged\n if(Character.isUpperCase(plaintextLetter)) {\n return tabulaRecta[keyLetter-65][plaintextLetter-65];\n }\n\n return Character.toLowerCase(tabulaRecta[keyLetter-65][plaintextLetterToUpper-65]);\n }", "static String toMixedCase(String name) {\r\n\t\tStringBuilder sb = new StringBuilder(name.toLowerCase());\r\n\t\tsb.replace(0, 1, sb.substring(0, 1).toUpperCase());\r\n\t\treturn sb.toString();\r\n\r\n\t}", "private static void alphabetize() {\r\n Collections.sort(kwicIndex, String.CASE_INSENSITIVE_ORDER);\r\n }", "public static String normalise(String value) {\n return value.toLowerCase(Locale.ENGLISH);\n }", "@Test\n\tpublic void caseNameWithSpecialChar() {\n\t\tString caseName = \"le@d\";\n\t\ttry {\n\t\t\tCaseManagerValidator.isCharAllowed(caseName);\n\t\t} catch (ValidationException e) {\n\t\t}\n\t}", "private String filter(String line) {\n return line.toLowerCase().replaceAll(\"[^a-z]\", \"\");\n }", "@Override\n public String encrypt(String word, int cipher) {\n String result = \"\";\n int postcipher = 0;\n boolean wasUpper = false;\n for(int i = 0; i < word.length(); i++)\n {\n char c = word.charAt(i);\n postcipher = c;\n if(Character.isLetter(c)) {\n if (c < ASCII_LOWER_BEGIN) { //change to lowercase\n c += ASCII_DIFF;\n wasUpper = true;\n }\n postcipher = ((c + cipher - ASCII_LOWER_BEGIN) % NUM_ALPHABET + ASCII_LOWER_BEGIN); //shift by cipher amount\n if (wasUpper)\n postcipher -= ASCII_DIFF; //turn back into uppercase if it was uppercase\n wasUpper = false;\n }\n result += (char)postcipher; //add letter by letter into string\n }\n return result;\n }", "private void switchToUpperCase() {\n for (int i = 0; i < mLetterButtons.length; i++) {\n mLetterButtons[i].setText((mQWERTYWithDot.charAt(i) + \"\").toUpperCase());\n }\n mIsShiftPressed = true;\n\n }", "public boolean isCaseSensitive() {\n\t\treturn false;\n\t}", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\r\n\t\tchar a=sc.next().charAt(0);\r\n\t\t\r\n\t\tif(Character.isLowerCase(a))\r\n\t\t{\r\n\t\t\tSystem.out.println(Character.toUpperCase(a));\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(Character.toLowerCase(a));\r\n\t\t}\r\n\r\n\t}", "public static String capFirstChar(String word) {\n \tif(word == null || word.length() == 0)\n \t\treturn word;\n\n \tword = word.toLowerCase().replace('_', ' ');\n\t\treturn Character.valueOf(Character.toUpperCase(word.charAt(0))).toString() + word.substring(1);\n }", "@In Boolean caseSensitive();", "private String makeFirstLetterCapital(String str) {\n\t\tchar ch[] = str.toCharArray();\r\n\t\tfor (int i = 0; i < str.length(); i++) {\r\n\r\n\t\t\t// If first character of a word is found\r\n\t\t\tif (i == 0 && ch[i] != ' ' || ch[i] != ' ' && ch[i - 1] == ' ') {\r\n\r\n\t\t\t\t// If it is in lower-case\r\n\t\t\t\tif (ch[i] >= 'a' && ch[i] <= 'z') {\r\n\r\n\t\t\t\t\t// Convert into Upper-case\r\n\t\t\t\t\tch[i] = (char) (ch[i] - 'a' + 'A');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// If apart from first character\r\n\t\t\t// Any one is in Upper-case\r\n\t\t\telse if (ch[i] >= 'A' && ch[i] <= 'Z')\r\n\r\n\t\t\t\t// Convert into Lower-Case\r\n\t\t\t\tch[i] = (char) (ch[i] + 'a' - 'A');\r\n\t\t} \r\n\r\n\t\t// Convert the char array to equivalent String\r\n\t\tString st = new String(ch);\r\n\t\treturn st;\r\n\r\n\t\t// return sb.toString();\r\n\t}" ]
[ "0.75482637", "0.75063306", "0.7265309", "0.70741814", "0.69449675", "0.69265527", "0.684834", "0.67695045", "0.67364913", "0.67176765", "0.67028147", "0.6698674", "0.6627169", "0.6570133", "0.6532741", "0.65297455", "0.6523802", "0.6515727", "0.6512885", "0.64545995", "0.6454226", "0.6449998", "0.6376504", "0.6344768", "0.6339816", "0.6331915", "0.6321416", "0.62843823", "0.6281457", "0.6265901", "0.62217706", "0.6214519", "0.6198949", "0.6179684", "0.6171366", "0.6157494", "0.6127091", "0.61207443", "0.6102999", "0.60881025", "0.60709953", "0.6052378", "0.604672", "0.5986515", "0.5958208", "0.59582067", "0.59550595", "0.5947084", "0.5943823", "0.5920442", "0.5915794", "0.5909627", "0.5901225", "0.58985716", "0.5885067", "0.5882437", "0.5873905", "0.5850753", "0.58477783", "0.58426565", "0.5825592", "0.58157194", "0.5798293", "0.57916987", "0.57734555", "0.57725066", "0.57715833", "0.5771201", "0.5765905", "0.57644784", "0.574822", "0.574822", "0.574822", "0.57465875", "0.5745213", "0.57309824", "0.5712677", "0.57048976", "0.57048976", "0.57048976", "0.5693769", "0.56936616", "0.5678076", "0.5663013", "0.56604564", "0.5650929", "0.56486565", "0.56418073", "0.56380886", "0.56162685", "0.56150943", "0.56055266", "0.5584478", "0.5582825", "0.5579258", "0.5578458", "0.55714667", "0.55711234", "0.55657846", "0.55649126" ]
0.74870974
2
Trims white space off of a string builder on both ends
public static void trim(StringBuilder sb) { int i; for(i = 0; i < sb.length() && Character.isWhitespace(sb.charAt(i)); i++); if(i > 0) sb.delete(0, i); for(i = sb.length() - 1; i >= 0 && Character.isWhitespace(sb.charAt(i)); i--); if(i < sb.length() - 1) sb.delete(i + 1, sb.length()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String trimSolution(StringBuilder sb) {\n return sb.toString().replace(\"[\", \"\").replace(\"]\",\"\").trim();\n }", "public XMLString fixWhiteSpace(boolean trimHead, boolean trimTail, boolean doublePunctuationSpaces) {\n/* 92 */ return new XMLStringDefault(this.m_str.trim());\n/* */ }", "private static String removeWhitespace(String str)\n {\n // A string buffer to build the result in.\n StringBuffer res;\n\n // Create the result string buffer.\n res = new StringBuffer(str.length());\n\n // Iterate through the input string, appending chars to the\n // result if they are not white space.\n for (int iChar = 0; iChar < str.length(); iChar++) {\n if (!Character.isWhitespace(str.charAt(iChar))) {\n res.append(str.charAt(iChar));\n }\n }\n\n return res.toString();\n }", "private String trimIgnoreChars(StringBuilder tokenBuilder) {\n\t\t\tint lastCharacterIdx = tokenBuilder.length()-1;\n\t\t\twhile(tokenBuilder.length()>0 && \n\t\t\t\t\tIGNORE_CHARS.contains(Character.valueOf(tokenBuilder.charAt(lastCharacterIdx)))) {\n\t\t\t\ttokenBuilder.deleteCharAt(lastCharacterIdx);\n\t\t\t\tlastCharacterIdx--;\n\t\t\t}\n\t\t\n\t\t\twhile(tokenBuilder.length()>0 && \n\t\t\t\t\tIGNORE_CHARS.contains(Character.valueOf(tokenBuilder.charAt(0))))\n\t\t\t\ttokenBuilder.deleteCharAt(0);\n\t\t\t\n\t\t\treturn tokenBuilder.toString();\n\t\t}", "private static String clearSpaces(final String old) {\n return old.replace(\" \", \"\").replace(\"\\n\", \"\");\n }", "public XMLString trim() {\n/* 780 */ return new XMLStringDefault(this.m_str.trim());\n/* */ }", "static String trimStart(String s) {\n StringBuilder sb = new StringBuilder(s);\n while(sb.length() > 0 && (sb.charAt(0) == '\\u005cr'\n || sb.charAt(0) == '\\u005cn'\n || sb.charAt(0) == '\\u005ct'\n || sb.charAt(0) == ' ')) {\n sb.deleteCharAt(0);\n }\n return sb.toString();\n }", "public static String clearLongWhitespaces(String str) {\r\n\r\n if (str == null) {\r\n str = \"\";\r\n }\r\n String result = \"\";\r\n StringTokenizer st = new StringTokenizer(str);\r\n while (st.hasMoreTokens()) {\r\n String s = st.nextToken();\r\n if (s != null) {\r\n result += s.trim();\r\n }\r\n }\r\n return result.trim();\r\n }", "public void trimDuplicatedNewline() {\n Utils.limitNewline(builder, 1);\n }", "protected static String trimWhitespace(String s) {\n int len = s.length();\n StringBuffer buf = new StringBuffer(len);\n for (int ii = 0; ii < len; ii++) {\n char c = s.charAt(ii);\n if (!Character.isWhitespace(c)) {\n buf.append(c);\n }\n }\n return buf.toString();\n }", "private String removeLeadingWhitespace(String input) {\n for (int index = 0; index < input.length(); index++) {\n if (!Character.isWhitespace(input.charAt(index))) {\n return input.substring(index);\n }\n }\n return input;\n }", "private static String trim(String s) {\n return s.replace(\" \", \"\");\n }", "private String removeWhitespace(String lineToFormat) {\n StringBuilder lineWithoutWhitespace = new StringBuilder();\n StringBuilder buffer = new StringBuilder();\n boolean isString = false;\n char prevChar = '\\0';\n\n for (int i = 0; i < lineToFormat.length(); i++) {\n // check if the current char is a whitespace char\n if (AssemblyConstants.isWhitespace(lineToFormat.charAt(i))) {\n if (buffer.length() > 0) {\n // add everything from buffer in-between\n lineWithoutWhitespace.append(buffer).append(\" \");\n buffer.setLength(0);\n }\n } else {\n // add all non-whitespace chars found to the buffer\n char charToAdd = lineToFormat.charAt(i);\n // check if the char is a part of a string (check if it's not an escaped string separator as well)\n if (charToAdd == AssemblyConstants.STRING_SEPARATOR && prevChar != AssemblyConstants.ESCAPE_SEQUENCE)\n isString = !isString;\n\n // if the char is not a part of a string, make it lowercase if it's a letter\n if (!isString)\n buffer.append((charToAdd < 'A' || charToAdd > 'Z')\n ? charToAdd\n : (char) (charToAdd + 0x20));\n else\n // if the char is a part of a string, just add it as it is\n buffer.append(charToAdd);\n }\n\n prevChar = lineToFormat.charAt(i);\n }\n\n if (isString)\n throw new WrongAssemblyLineException(\"\\nWrong assembly line found:\\n\"\n + \"'\" + lineToFormat + \"' contains too many string separators\");\n\n // add the rest found in buffer\n return buffer.length() > 0\n ? lineWithoutWhitespace.append(buffer).toString().trim()\n : lineWithoutWhitespace.toString().trim();\n }", "public String quitaespacios (String str) {\n\n str = repNull(str);\n str = str.trim();\n str = rep(str, \"[ ]{2,}\", \" \");\n\n return str;\n }", "public static String squeezeWhitespace (String input){\r\n return Whitespace.matcher(input).replaceAll(\" \").trim();\r\n }", "public static String fromNullToSpace(String a) {\r\n\t\tif (a == null || \"\".equals(a)) {\r\n\t\t\treturn \" \";\r\n\t\t} else {\r\n\t\t\treturn a;\r\n\t\t}\r\n\t}", "private StringBuilder stripWhitespace(String description)\n/* */ {\n/* 1650 */ StringBuilder result = new StringBuilder();\n/* */ \n/* */ \n/* 1653 */ int start = 0;\n/* 1654 */ while ((start != -1) && (start < description.length()))\n/* */ {\n/* */ \n/* 1657 */ while ((start < description.length()) && (PatternProps.isWhiteSpace(description.charAt(start)))) {\n/* 1658 */ start++;\n/* */ }\n/* */ \n/* */ \n/* 1662 */ if ((start < description.length()) && (description.charAt(start) == ';')) {\n/* 1663 */ start++;\n/* */ \n/* */ \n/* */ }\n/* */ else\n/* */ {\n/* */ \n/* 1670 */ int p = description.indexOf(';', start);\n/* 1671 */ if (p == -1)\n/* */ {\n/* */ \n/* 1674 */ result.append(description.substring(start));\n/* 1675 */ start = -1;\n/* */ }\n/* 1677 */ else if (p < description.length()) {\n/* 1678 */ result.append(description.substring(start, p + 1));\n/* 1679 */ start = p + 1;\n/* */ \n/* */ \n/* */ }\n/* */ else\n/* */ {\n/* */ \n/* */ \n/* 1687 */ start = -1;\n/* */ }\n/* */ } }\n/* 1690 */ return result;\n/* */ }", "private static String trimWhiteSpace(String sentence) {\n\t\tsentence = sentence.replaceAll(\"[^a-zA-Z]\", \" \");\n//\t\tsentence = sentence.replaceAll(\"\\n\", \" \");\n//\t\tsentence = sentence.replaceAll(\"\\t\", \" \");\n// sentence = sentence.replaceAll(\"\\\\.\", \" \");\n// sentence = sentence.replaceAll(\",\", \" \");\n \n//\t\tint length;\n//\t\tdo {\n//\t\t\tlength = sentence.length();\n//\t\t\tsentence = sentence.replaceAll(\" \", \" \");\n//\n//\t\t} while (sentence.length() < length);\n\t\treturn sentence;\n\t}", "public static String trimer (String text){\n\t\treturn text.replaceAll(\"\\\\s+\", \" \");\n\t}", "@Override\n public String trim(final String toTrim) {\n return replaceAll(toTrim, \"\\u00A0\", \" \").trim();\n }", "public static String addSpace(Object o)\r\n/* 100: */ {\r\n/* 101: 96 */ String s = o.toString().trim();\r\n/* 102: 97 */ if (s.isEmpty()) {\r\n/* 103: 98 */ return \"\";\r\n/* 104: */ }\r\n/* 105:100 */ char last = s.charAt(s.length() - 1);\r\n/* 106:101 */ if (\">\".indexOf(last) >= 0) {\r\n/* 107:102 */ return s;\r\n/* 108: */ }\r\n/* 109:104 */ if (\":\".indexOf(last) >= 0) {\r\n/* 110:105 */ return s.trim() + \" \";\r\n/* 111: */ }\r\n/* 112:107 */ if (\".?!\".indexOf(last) >= 0) {\r\n/* 113:108 */ return s + \" \";\r\n/* 114: */ }\r\n/* 115:111 */ return s + \" \";\r\n/* 116: */ }", "default HtmlFormatter trimTo(int len) {\n return andThen(str -> trimTo(\n str,\n len\n ));\n }", "private String toNormalizedString(final char[] ch, final int start, final int length) {\n\t\tfor (int index = start; index < length; index++) {\r\n\t\t\tif (ch[index] == NON_BREAKING_SPACE) {\r\n\t\t\t\tch[index] = ' ';\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn new String(ch, start, length);\r\n\t}", "private String trimSponsorName( String sponsorName ){\r\n String dispSponsorName = sponsorName ;\r\n if( dispSponsorName == null ){\r\n dispSponsorName = \"\";\r\n //Modified for case#3341 - Sponsor Code Validation - start \r\n }else if( dispSponsorName.length() > 80 ){\r\n dispSponsorName = dispSponsorName.substring( 0, 80 ) + \"...\" ;\r\n }\r\n dispSponsorName = \" \"+dispSponsorName;\r\n //Modified for case#3341 - Sponsor Code Validation - end\r\n return dispSponsorName;\r\n }", "private String getTrimmedValue(String value) {\n\t\treturn value == null ? \"\" : value.trim();\n\t}", "private String trim(StringBuilder formattedString) {\n int maxWidth;\n int cols = consoleMetaData.getCols();\n if (cols > 0) {\n maxWidth = cols - 1;\n } else {\n // Assume 80 wide. This is to minimize wrapping on console where we don't know the width (eg mintty)\n // It's not intended to be a correct solution, simply a work around\n maxWidth = 79;\n }\n if (maxWidth < formattedString.length()) {\n return formattedString.substring(0, maxWidth);\n }\n return formattedString.toString();\n }", "private String mergeStrings(String s1, String s2) {\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tif (!s1.isEmpty()) {\n\t\t\tsb.append(s1);\n\t\t}\n\t\tif (!s2.isEmpty() && !s2.equalsIgnoreCase(s1)) {\n\t\t\tif (sb.toString().isEmpty()) sb.append(\" \");\n\t\t\tsb.append(s2);\n\t\t}\n\t\treturn sb.toString();\n\t}", "static void trimNL(String s) {\n StringBuilder sb = new StringBuilder(s);\n while(sb.length() > 0 && (sb.charAt(sb.length() - 1) == '\\u005cr' || sb.charAt(sb.length() - 1) == '\\u005cn'))\n sb.deleteCharAt(sb.length() - 1);\n }", "@Override\n\tpublic String spaceRemover(String input) {\n\t\treturn input.replaceAll(\"\\\\s+\",\"\");\n\n\t}", "public String trim(String str) {\n\n return str.replaceFirst(\" \", \"\");\n\n }", "private String normalizeSpace(final String arg) {\n return arg.replaceAll(Constants.SPACE_PATTERN, Constants.SPACE);\n }", "private String trimRight(String string) {\n String newString = \"\";\n for (int i = 0; i < string.length(); i++) {\n if (string.charAt(i) != ' ') {\n newString = string.substring(0, i) + string.trim();\n break;\n }\n }\n return newString;\n }", "static String super_reduced_string(String s) {\n if (s.equals(\"\")) return \"Empty String\";\n\n StringBuffer buffer = new StringBuffer(s);\n for (int i = 1; i < buffer.length(); i++) {\n if (buffer.charAt(i) == buffer.charAt(i - 1)) {\n // Delete both if they are the same\n buffer.delete(i - 1, i + 1);\n i = 0;\n }\n\n if (buffer.length() == 0) {\n return \"Empty String\";\n }\n }\n\n return buffer.toString();\n }", "public static String trimSpace(String oldString)\r\n\t{\r\n\t\tif (null == oldString)\r\n\t\t\treturn null;\r\n\t\tif (0 == oldString.length())\r\n\t\t\treturn \"\";\r\n\t\tStringBuffer sbuf = new StringBuffer();\r\n\t\tint oldLen = oldString.length();\r\n\t\tfor (int i = 0; i < oldLen; i++)\r\n\t\t{\r\n\t\t\tif (' ' != oldString.charAt(i))\r\n\t\t\t\tsbuf.append(oldString.charAt(i));\r\n\t\t}\r\n\t\tString returnString = sbuf.toString();\r\n\t\tsbuf = null;\r\n\t\treturn returnString;\r\n\t}", "@Override\n\tpublic String clean(String input) {\n\t\tinput = input.replaceAll(removeCommonWords.toString(), \" \");\n\t\t//input = input.replaceAll(removeSingleCharacterOrOnlyDigits.toString(), \" \");\n\t\t//input = input.replaceAll(removeTime.toString(), \" \");\n\t\t//input = input.replaceAll(\"(\\\\s+>+\\\\s+)+\", \" \");\n\t\treturn input;\n\t}", "public static String combineTextWithSpace(String... text) {\r\n return Arrays.asList(text).stream()\r\n .map(content -> content.strip())\r\n .collect(Collectors.joining(SPACE));\r\n }", "private static String _stripWhitespace(String str)\n {\n if (str == null)\n return null;\n\n int length = str.length();\n int startIndex = 0;\n\n while (startIndex < length)\n {\n if (Character.isWhitespace(str.charAt(startIndex)))\n startIndex++;\n else\n break;\n }\n\n int endIndex = length;\n while (endIndex > 0)\n {\n if (Character.isWhitespace(str.charAt(endIndex - 1)))\n endIndex--;\n else\n break;\n }\n\n if ((startIndex == 0) && (endIndex == length))\n return str;\n\n return str.substring(startIndex, endIndex);\n }", "public static String cleanString(String s) {\n\t\ts = s.trim();\n\t\tString newStr = \"\";\n\t\tboolean lastWasSpace = false;\n\t\tfor(int i = 0; i < s.length(); i++) {\n\t\t\tchar c = s.charAt(i);\n\t\t\tif(c == ' ' && lastWasSpace) {\n\t\t\t\t//Ignore\n\t\t\t} else if (c == ' ' && !lastWasSpace) {\n\t\t\t\tnewStr+=c;\n\t\t\t\tlastWasSpace = true;\n\t\t\t} else {\n\t\t\t\tnewStr+=c;\n\t\t\t\tlastWasSpace = false;\n\t\t\t}\n\t\t}\n\t\ts = newStr;\n\t\treturn s;\n\t}", "static void trim() {\n if (a.size() == 0)\n return;\n Object o = a.get(a.size() - 1);\n StringBuilder sb = new StringBuilder();\n if (o instanceof Token)\n sb.append( ((Token)o).image );\n else\n sb.append((String)o);\n while(sb.length() > 0 && sb.charAt(sb.length() - 1) == ' ')\n sb.deleteCharAt(sb.length() - 1);\n a.set(a.size() - 1, sb.toString() );\n }", "private String whiteSpace(String sum, String num)\n {\n\tString space = \"\";\n\tfor(int i = 0; i < sum.length() - num.length(); i++)\n\t space += \" \";\n\treturn space;\n }", "private static String makeCorrectSize(String s, int length){\n\t\tStringBuilder sb = new StringBuilder(s); \n\t\tfor(int i = sb.length(); i<length; i++){\n sb.append(\" \");\n }\n\t\treturn sb.toString(); \n\n\t}", "private String stringShortener(String str) {\n if (str.length() <= 5) {\n return str;\n }\n str = str.substring(0, 5);\n str = str + \"...\";\n return str;\n }", "private String trimString(String input) {\n final int maxWidth = 16; // Scoreboard string length is 16.\n\n // Check to see if the input length is greater than the maxWidth of characters.\n if (input.length() > maxWidth) {\n int amountOver = input.length() - maxWidth;\n return input.substring(0, input.length() - amountOver);\n } else {\n // The input is less than 15 characters so it does not need to be trimmed.\n return input;\n }\n }", "public String trim(String value) {\r\n return (value == null) ? value : nullable(value.trim());\r\n }", "private final static String stripA( String s ) {\n\n char[] ca = s.toCharArray();\n char[] ca2 = new char [ca.length - 1];\n\n\n for ( int i=0; i<ca2.length; i++ ) {\n ca2[i] = ca[i];\n } // end for\n\n return new String (ca2);\n\n }", "static void trimNL() {\n if(outputBuffer.length() > 0 && outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005cn')\n outputBuffer.deleteCharAt(outputBuffer.length() - 1);\n if(outputBuffer.length() > 0 && outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005cr')\n outputBuffer.deleteCharAt(outputBuffer.length() - 1);\n }", "private String formatString(String s, int len){\n if(len<=s.length()){\n return s.substring(0,len);\n }\n StringBuilder sb = new StringBuilder(s);\n for(int i=s.length(); i<len; ++i){\n sb.append(\" \");\n }\n return sb.toString();\n }", "static void trimWhitespace() {\n for (int i = a.size() - 1; i >= 0; i-- ) {\n Object o = a.get(i);\n StringBuilder sb = new StringBuilder();\n if (o instanceof Token)\n sb.append( ((Token)o).image );\n else\n sb.append((String)o);\n while(sb.length() > 0 && (sb.charAt(sb.length() - 1) == '\\u005cr'\n || sb.charAt(sb.length() - 1) == '\\u005cn'\n || sb.charAt(sb.length() - 1) == '\\u005ct'\n || sb.charAt(sb.length() - 1) == ' ')) {\n sb.deleteCharAt(sb.length() - 1);\n }\n if (sb.length() == 0) {\n a.remove(i);\n }\n else {\n a.set(i, sb.toString());\n break;\n }\n }\n if (a.size() == 0) {\n while(outputBuffer.length() > 0 && (outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005cr'\n || outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005cn'\n || outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005ct'\n || outputBuffer.charAt(outputBuffer.length() - 1) == ' ')) {\n outputBuffer.deleteCharAt(outputBuffer.length() - 1);\n }\n }\n }", "public static void main(String[] args) {\n\t\tString str=\"Sneha is a good girl\";\n\t\tString finalStr=\"\";\n\t\tString str1=str;\n\t\tString str2=str.replace(\" \", \"\");\n\t\t\n\t\tSystem.out.println(\"Final string is \"+str2);\n\n\t}", "private String trim(String attribute) {\n if (attribute.length() > 20) {\n return attribute.substring(0, 20) + \"...\";\n } else {\n return attribute;\n }\n }", "static String trimTo(String text, int length) {\n if (text.length() < length) {\n return text;\n } else {\n return text.substring(\n 0,\n length\n ) + \"...\";\n }\n }", "public static String normalize(CharSequence value) {\n if (value == null) {\n return null;\n }\n return WHITESPACE_PATTERN.matcher(value).replaceAll(\" \");\n }", "public String removeSpace(String oldString)\n\t{\n\t\tString str = new String();\n\t\tString[] newString = oldString.split(\" \");\n\t\tfor(int i = 0; i < newString.length; i++)\n\t\t{\n\t\t\tstr += newString[i];\n\t\t}\n\t\treturn str;\n\t}", "public static String noSpaces(String strIn){\n String result = \"\";\n\n if (strIn.length() != 0){\n\n String[] segs = strIn.split(\" \");\n\n for (String s: segs){\n result += s;\n }\n }\n\n return result;\n }", "public static CharSequence trimTrailingWhitespace(CharSequence source) {\n\n if(source == null)\n return \"\";\n\n int i = source.length();\n\n // loop back to the first non-whitespace character\n while(--i >= 0 && Character.isWhitespace(source.charAt(i))) {\n }\n\n return source.subSequence(0, i+1);\n }", "public static void main(String[] args) {\n\t\tStringJoiner joiner=new StringJoiner(\" and \",\"{\",\"}\");\n\t\tjoiner.add(\"python\");\n\t\tjoiner.add(\"java\");\n\t\tjoiner.add(\"c\");\n\t\tjoiner.add(\"c++\").add(\"html\").add(\"css\").add(\"js\");\n\t\tString s=joiner.toString();\n\t\tSystem.out.println(s);\n\t\tString s1=\"asd ad ad vxczvz\";\n\t\tSystem.out.println(s1.lastIndexOf(\" \"));\n\t\tSystem.out.println(s1.substring(s1.lastIndexOf(\" \")));\n\t\t\n\t\tStringJoiner joiner1=new StringJoiner(\" and \",\"[\",\"]\");\n\t\tjoiner1.add(\"asdsa\").add(\"rgrg\").add(\"grger\");\n\t\tSystem.out.println(joiner1);\n\t\tjoiner.merge(joiner1);\n\t\tSystem.out.println(joiner);\n\t}", "public static String condense(String str){\n Matcher matcher = condensePattern.matcher(str);\n return matcher.replaceAll(\" \");\n }", "private static Object Stringbuilder() {\n\t\treturn null;\n\t}", "public static String removeSpace(String a){\n String b = \" \"; //STRING TO MAKE PALINDROME TEST\n for(int i =0; i<a.length();i++){ //WORK FOR MORE CASES\n if((int)a.charAt(i)==(int)b.charAt(0))\n a=a.substring(0,i)+a.substring(i+1);\n }\n return a;\n }", "public static String trim(String s) {\r\n\t\treturn Escape.collapseWhitespace(Escape.forDoubleQuotedString(s, true).trim());\r\n\t}", "private void createString(){\n for(int i=0;i<this.textPalindrome.length;i++){\n this.joinedTextPalindrome=this.joinedTextPalindrome.concat(this.textPalindrome[i]);\n }\n }", "static String hideString(String input) {\n if (input == null || input.isEmpty()) {\n return input;\n }\n if (input.length() <= 2) {\n return Strings.repeat(\"X\", input.length());\n }\n\n return new StringBuilder(input).replace(1, input.length() - 1,\n Strings.repeat(\"X\", input.length() - 2))\n .toString();\n }", "public String extraFront(String str) {\n\t\tString result=\"\";\r\n\t\t\r\n\t\t//only store result if string has at least 2 characters\r\n\t\t//else if string has less than 2 characters concatenate what there is\r\n\t\tif(str.length()>1) result = str.substring(0, 2) + str.substring(0, 2)\r\n\t\t\t+str.substring(0, 2);\r\n\t\telse result = str+str+str;\r\n\t\treturn result;\r\n\t}", "public static String trim(String str) {\n\n\n str = str.replace(\"_IN_\", \"\");\n str = str.replace(\"_In_\", \"\");\n str = str.replace(\"__in\", \"\");\n str = str.replace(\"_Out_\", \"\");\n str = str.replace(\"__out\", \"\");\n str = str.replace(\"_Inout_\", \"\");\n str = str.replace(\"opt_\", \"\"); // this method is to remove _In_opt_\n str = str.replace(\"<span style=\\\"color:Blue;\\\">\", \"\");\n str = str.replace(\"</span>\", \"\");\n str = str.replace(\"WINAPI\", \"\");\n str = str.replace(\"_Inout_\", \"\");\n str = str.replaceAll(\"&nbsp;\", \"\");\n str = str.replaceAll(String.valueOf((char)160), \"\");\n str = str.replaceAll(\" \", \" \");\n str = str.replaceAll(\"CALLBACK \", \"\");\n str = str.replaceAll(\"const\", \"\");\n str = str.replaceAll(\"\\\\( \", \"\\\\(\");\n str = str.trim();\n str = str.substring(0, str.length() - 1);\n\n\n // System.out.println(\"AFTER TRIM \" + this.syntax);\n\n return str;\n\n\n }", "public static void main(String[] args) {1. Create a String that will hold a sentence.\n\t\t// Write a program to get a new String without any spaces.\n\t\t//\n\t\tString str=\"Welcome my freind\";\n\t\tstr.replace(\" \",\"\");\n\t\tSystem.out.println(str.replace(\" \",\"\"));\n\t\t\t\t\n\n\t}", "String trimLeft( String txt ){\r\n // trim\r\n int start = 0;\r\n WHITESPACE: for( int i=0; i < txt.length(); i++ ){\r\n char ch = txt.charAt(i);\r\n if( Character.isWhitespace(ch)){\r\n continue;\r\n }\r\n else {\r\n start = i;\r\n break WHITESPACE;\r\n }\r\n }\r\n return txt.substring(start); \r\n }", "static String superReducedString(String s) {\n StringBuffer buff = new StringBuffer(s);\n for(int i = buff.length() - 1; i >= 0; i--){\n int j = i + 1;\n if(j >= buff.length()) continue;\n\n if(buff.charAt(i) == buff.charAt(j)) {\n buff.delete(i, j + 1);\n }\n }\n\n if(buff.length() == 0) return \"Empty String\";\n return String.valueOf(buff);\n }", "public static String cutSpaces(String s){\n\t\tString res = s;\n\t\t\n\t\twhile ((res.startsWith(\" \")||(res.startsWith(\"\\n\")))&& res.length()>0) {\n\t\t\tres=res.substring(1);\n\t\t}\n\t\treturn res;\n\t}", "protected static String trimmed(String value) {\n return (value != null) ? value.trim() : null;\n }", "public String trimOne(String str) {\n return trim(str, 1);\n }", "private String replaceSpaces(String value) {\r\n\t\treturn value.replace(\" \", \"_\");\r\n\t}", "public static String removeWhiteSpace(String input) {\r\n if (input == null || input.isEmpty()) {\r\n return \"\";\r\n }\r\n StringBuilder sb = new StringBuilder();\r\n for (int i = 0; i < input.length(); i++) {\r\n char c = input.charAt(i);\r\n if (!Character.isWhitespace(c)) {\r\n sb.append(c);\r\n }\r\n }\r\n return sb.toString();\r\n }", "static String trim(String s) {\n return s.substring(0, s.length() - 1);\n }", "public static void main(String[] args) {\n\n String str = \"Angelsa MIilovski\";\n StringBuilder bulid = new StringBuilder(str);\n bulid.deleteCharAt(6); // Shift the positions front.\n bulid.deleteCharAt(6 - 1);\n bulid.deleteCharAt(8 - 1);\n System.out.println(\"Name is : \" + bulid);\n\n// StringBuffer buffer = new StringBuffer(str);\n// buffer.replace(1, 2, \"\"); // Shift the positions front.\n// buffer.replace(7, 8, \"\");\n// buffer.replace(13, 14, \"\");\n// System.out.println(\"Buffer : \"+buffer);\n\n// char[] c = str.toCharArray();\n// String new_Str = \"\";\n// for (int i = 0; i < c.length; i++) {\n// if (!(i == 1 || i == 8 || i == 15))\n// new_Str += c[i];\n// }\n// System.out.println(\"Char Array : \"+new_Str);\n\n// public String removeChar(String str, Integer n) {\n// String front = str.substring(0, n);\n// String back = str.substring(n+1, str.length());\n// return front + back;\n// }\n\n// String str = \"Angel%Milovski\";\n// str = str.replaceFirst(String.valueOf(str.charAt(5)), \" \");//'l' will replace with \"\"\n// System.out.println(str);//output: wecome\n\n }", "private static String trimLeadingCommaAndSpaces(String fragment) {\n\t\tif ( fragment.length() > 0 && fragment.charAt( 0 ) == ',' ) {\n\t\t\tfragment = fragment.substring( 1 );\n\t\t}\n\t\tfragment = fragment.trim();\n\t\treturn fragment.trim();\n\t}", "public static void main(String[] args) {\n\t\tString str = \"Harmohan Is Mad Person\";\n\t\tString newString = str.replaceAll(\" \", \"\");\n\t\tSystem.out.println(newString);\n\t\t\n\n\t}", "public static String trimToEmpty(String str) {\n\t\treturn str == null ? EMPTY : str.trim();\n\t}", "public String removeComplexWhiteSpaces(@NotNull String rawText) {\n return rawText.replaceAll(\"(\\\\s)?\\n\\n(\\\\s)?\", \"\\n\").trim();\n }", "@Test\n\tpublic void testTrimmingWhiteSpaces() {\n\t\t// Setup\n\t\tString file = \" file.name \";\n\n\t\t// Exercise\n\t\tLine line = new Line(\"5\", \"5\", file);\n\n\t\t// Verify\n\t\tassertEquals(\"file.name\", line.toString());\n\t}", "@Test\n void StringBuffer() {\n StringBuilder builder = new StringBuilder();\n for (int i = 0; i < 10; i++) {\n builder.append(i).append(\" \");\n }\n assertThat(builder.toString()).isEqualTo(\"0 1 2 3 4 5 6 7 8 9 \");\n }", "public static void main(String[] args) {\r\n\t\t\r\n\t\tString str = \"!This is Yogesh\";\r\n\t\tString s =\"\";\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\t\r\n\t\tString arr[] = str.split(\" \");\r\n\t\t\r\n\t\tfor(int i=arr.length-1;i>=0;i--){\r\n\t\t\t//s = s + arr[i];\r\n\t\t\tsb = sb.append(arr[i]);\r\n\t\t\t\r\n\t\t\tif((arr.length) != 0){\r\n\t\t\t\tsb = sb.append(\" \");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(sb.toString());\r\n\t\t\r\n\r\n\t\t\r\n\t}", "private static String formattingWhitespace(String string) {\n // Splitting the String.\n String[] stringSplits = string.split(\" \");\n\n StringBuilder formattedString = new StringBuilder();\n for (int word = 0; word < stringSplits.length; word++) {\n // If the element is not an empty String.\n if (!stringSplits[word].isEmpty()) {\n // Checking if the word is not the last word of the sentence.\n if (word < stringSplits.length - 1) {\n // Adding a space after the word.\n formattedString.append(stringSplits[word]).append(\" \");\n }\n // If last word of the sentence.\n else {\n // Last word does not have a space after it.\n formattedString.append(stringSplits[word]);\n }\n }\n }\n // Returning a formatted String.\n return formattedString.toString();\n }", "private String spacing(String line) {\n \n \t\t/* Remove redundant spaces (keep only one space between two words) */\n \t\tint limit = 0;\n \t\tMatcher matcher = patternSpaces.matcher(line);\n \n \t\tString oldLine = line;\n \n \t\tremSpaces: while (matcher.find()) {\n \n \t\t\tint offset = matcher.start();\n \n \t\t\t// do not remove spaces at the beginning of a line\n \t\t\tif (line.substring(0, offset).trim().equals(\"\"))\n \t\t\t\tcontinue;\n \n \t\t\t/*\n \t\t\t * if the spaces (or tabs) are at the beginning of a line or before a comment, then we keep them\n \t\t\t */\n \t\t\t/*\n \t\t\t * Matcher matcherSpacesBeforeComment = patternSpacesBeforeComment.matcher(line); if\n \t\t\t * (matcherSpacesBeforeComment.find()) { if (offset < matcherSpacesBeforeComment.end()) continue\n \t\t\t * remSpaces; }\n \t\t\t */\n \n \t\t\t// if the spaces are before a comment, then we keep them\n \t\t\tString afterSpaces = line.substring(matcher.end());\n \t\t\tif (afterSpaces.startsWith(\"(*\"))\n \t\t\t\tcontinue remSpaces;\n \n \t\t\t// If we are inside a string, then we skip this replacing\n \t\t\tMatcher matcherString = patternString.matcher(line);\n \t\t\twhile (matcherString.find()) {\n \t\t\t\tif (matcherString.start() <= offset && offset < matcherString.end())\n \t\t\t\t\tcontinue remSpaces;\n \t\t\t}\n \n \t\t\t// If we are inside a comment, then we skip this replacing\n \t\t\tMatcher matcherComment = patternComment.matcher(line);\n \t\t\twhile (matcherComment.find()) {\n \t\t\t\tif (matcherComment.start() <= offset && offset < matcherComment.end())\n \t\t\t\t\tcontinue remSpaces;\n \t\t\t}\n \n \t\t\tline = line.substring(0, offset) + \" \" + line.substring(matcher.end());\n \n \t\t\t// we have to reset the matcher, because we modified the line\n \t\t\tmatcher = patternSpaces.matcher(line);\n \n \t\t\t// we put a limit, just in case we would get into an infinite loop\n \t\t\tif (limit++ > 10000) {\n \t\t\t\tOcamlPlugin.logError(\"Infinite loop detected in formatter during spacing (1): <<\" + oldLine\n \t\t\t\t\t\t+ \">>\");\n \t\t\t\tbreak;\n \t\t\t}\n \n \t\t}\n \n \t\t// remove spaces before commas\n \t\t//line = line.replaceAll(\" ,\", \",\");\n \t\t// remove spaces before semicolons\n \t\t//line = line.replaceAll(\" ;\", \";\");\n \n \t\tfor (int nPattern = 0; nPattern <= 1; nPattern++) {\n \t\t\tPattern patternSpacing;\n \t\t\tif (nPattern == 0)\n \t\t\t\tpatternSpacing = patternSpacingRight;\n \t\t\telse\n \t\t\t\tpatternSpacing = patternSpacingLeft;\n \n \t\t\t/*\n \t\t\t * We put a limit to the number of replacements, just in case we would get into an infinite loop\n \t\t\t */\n \t\t\tlimit = 0;\n \t\t\t// add spaces before some characters\n \t\t\tmatcher = patternSpacing.matcher(line);\n \n \t\t\toldLine = line;\n \n \t\t\taddSpaces: while (matcher.find()) {\n \n \t\t\t\tint offset = matcher.start() + 1;\n \t\t\t\tif (offset > line.length() - 1 || offset < 0) {\n \t\t\t\t\tocaml.OcamlPlugin.logError(\"OcamlIndenter:format : invalid position\");\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \n \t\t\t\t// if we are inside a string, then we skip this replacement\n \t\t\t\tMatcher matcherString = patternString.matcher(line);\n \t\t\t\twhile (matcherString.find()) {\n \t\t\t\t\tif (matcherString.start() <= offset && offset < matcherString.end())\n \t\t\t\t\t\tcontinue addSpaces;\n \t\t\t\t}\n \n \t\t\t\t// Skip replacement if in comment\n \t\t\t\tMatcher matcherComment = patternComment.matcher(line);\n \t\t\t\twhile (matcherComment.find()) {\n \t\t\t\t\tif (matcherComment.start() <= offset && offset < matcherComment.end())\n \t\t\t\t\t\tcontinue addSpaces;\n \t\t\t\t}\n \n \t\t\t\tline = line.substring(0, offset) + \" \" + line.substring(offset);\n \n \t\t\t\t// we have to reset the matcher, because we modified the line\n \t\t\t\tmatcher = patternSpacing.matcher(line);\n \t\t\t\tif (limit++ > 10000) {\n \t\t\t\t\tOcamlPlugin.logError(\"Infinite loop detected in formatter during spacing (2): <<\"\n \t\t\t\t\t\t\t+ oldLine + \">>\");\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\treturn line;\n \n \t}", "public String addEmptySpace(int spaces) {\n\n String stringOfEmptySpace = \"\";\n\n for (int i = 0; i < spaces; i++)\n stringOfEmptySpace += \" \";\n\n return stringOfEmptySpace;\n }", "private String normalize(String text) {\n final String nbsp = new String(new char[] {(char) 160});\n return text.replaceAll(\"\\\\s+(\" + nbsp + \")+\\\\s+\", \"$1\")\n .replace((char) 160, ' ')\n .replaceAll(\n \"\\n+\", \"\\n\")\n .replaceAll(\"\\r|\\t\", \"\")\n .trim();\n }", "public String buildWord() {\n\t\tStringBuilder word = new StringBuilder();\n\t\t\n\t\tfor(int i = 0; i < letters.size(); i++) {\n\t\t\tLetter tempLetter = letters.get(i);\n\t\t\t\n\t\t\tif(!(letters.get(i).getLetter() >= 'A' && letters.get(i).getLetter() <= 'Z') || tempLetter.getStatus())\n\t\t\t\tif(letters.get(i).getLetter() != ' ')\n\t\t\t\t\tword.append(tempLetter.getLetter());\n\t\t\t\telse\n\t\t\t\t\tword.append(\" \");\n\t\t\telse\n\t\t\t\tif (i == letters.size()-1) word.append(\"_\");\n\t\t\t\telse word.append(\"_ \");\n\t\t}\n\t\treturn word.toString();\n\t}", "private String finishBuild(StringBuilder strBuilder) {\n if (location != null && !location.isEmpty()) {\n strBuilder.append(\" LOCATION '\")\n .append(location)\n .append(\"'\");\n }\n\n // table properties is never empty because of required cdap properties\n strBuilder.append(\" TBLPROPERTIES \");\n appendMap(strBuilder, tableProperties);\n return strBuilder.toString();\n }", "public static String replaceAllWhiteWithOne(String sInput) {\n\t\tString strTmp = sInput.trim();\n\t\tString strResult = \"\";\n\t\tfor (int i = 0; i < strTmp.length(); i++) {\n\t\t\tchar ch = strTmp.charAt(i);\n\t\t\tif (ch == ' ') {\n\t\t\t\tfor (int j = i; j < strTmp.length(); j++) {\n\t\t\t\t\tchar ch2 = strTmp.charAt(j);\n\t\t\t\t\tif (ch2 != ' ') {\n\t\t\t\t\t\ti = j;\n\t\t\t\t\t\tstrResult = strResult + ' ' + ch2;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tstrResult = strResult + ch;\n\t\t\t}\n\t\t}\n\t\treturn strResult;\n\t}", "public static String replaceAllWhiteWithOne(String sInput) {\n\t\tString strTmp = sInput.trim();\n\t\tString strResult = \"\";\n\t\tfor (int i = 0; i < strTmp.length(); i++) {\n\t\t\tchar ch = strTmp.charAt(i);\n\t\t\tif (ch == ' ') {\n\t\t\t\tfor (int j = i; j < strTmp.length(); j++) {\n\t\t\t\t\tchar ch2 = strTmp.charAt(j);\n\t\t\t\t\tif (ch2 != ' ') {\n\t\t\t\t\t\ti = j;\n\t\t\t\t\t\tstrResult = strResult + ' ' + ch2;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tstrResult = strResult + ch;\n\t\t\t}\n\t\t}\n\t\treturn strResult;\n\t}", "private static String cutTextAtLastSpace(String lastTxt) {\n\t\tint idx = lastTxt.lastIndexOf(\" \");\n\t\t// if no space is found, cut on length\n\t\tif (idx > 0) {\n\t\t\tlastTxt = lastTxt.substring(0, idx);\n\t\t}\n\t\treturn lastTxt;\n\t}", "static public String pad(String str, int len)\n {\n int curlen = str.length();\n StringBuffer sb = new StringBuffer(len);\n \n for (int i=0; i<(len-curlen); i++)\n {\n sb.append(\" \");\n }\n sb.append(str);\n \n //System.out.println(\"Str len= \" + curlen + \" new len= \" + len);\n return sb.toString();\n }", "public static String removeWhiteSpace(String value) {\n return value.replaceAll(\"\\\\s\", \"\");\n }", "public static void main(String[] args) {\n String s = \"hello boy\";\n String result = replaceBlankToOther(s);\n System.out.println(result);\n }", "private void collapse(StringBuffer result, String text) {\n \n }", "public static String cleanName(String firstOrLastName) {\n return firstOrLastName.trim().replaceAll(\"\\\\s+\", \" \");\n }", "protected Pair<JilExpr,List<JilStmt>> doStringConcat(Expr.BinOp bop){\n \t\tString builderLab = \"$builder\" + stringbuilder_label++;\r\n \t\tPair<JilExpr,List<JilStmt>> lhs = doExpression(bop.lhs());\r\n \t\tPair<JilExpr,List<JilStmt>> rhs = doExpression(bop.rhs());\r\n \t\t\r\n \t\tList<JilStmt> stmts = lhs.second();\r\n \t\tstmts.addAll(lhs.second());\r\n \t\tstmts.addAll(rhs.second());\r\n \t\t\r\n \t\tType.Clazz builder = new Type.Clazz(\"java.lang\",\r\n \t\t\t\t\"StringBuilder\");\r\n \t\t\t\t\t\t\r\n \t\tstmts.add(new JilStmt.Assign(new JilExpr.Variable(builderLab, builder),\r\n \t\t\t\tnew JilExpr.New(builder, new ArrayList<JilExpr>(),\r\n \t\t\t\t\t\tnew Type.Function(T_VOID), bop.attributes())));\t\t\t\t\t\r\n \t\t\r\n \t\tType lhs_t = lhs.first().type(); \r\n \t\tif(lhs_t instanceof Type.Primitive || isString(lhs_t)) {\r\n \t\t\tArrayList<JilExpr> params = new ArrayList<JilExpr>();\r\n \t\t\tparams.add(lhs.first());\r\n \t\t\tstmts.add(new JilExpr.Invoke(new JilExpr.Variable(builderLab, builder), \"append\",\r\n \t\t\t\t\tparams, new Type.Function(new Type.Clazz(\"java.lang\",\r\n \t\t\t\t\t\"StringBuilder\"), lhs.first().type()), new Type.Clazz(\r\n \t\t\t\t\t\t\t\"java.lang\", \"StringBuilder\")));\r\n \t\t} else {\r\n \t\t\tArrayList<JilExpr> params = new ArrayList<JilExpr>();\r\n \t\t\tparams.add(lhs.first());\r\n \t\t\tstmts.add(new JilExpr.Invoke(new JilExpr.Variable(builderLab, builder),\r\n \t\t\t\t\t\"append\", params, new Type.Function(new Type.Clazz(\r\n \t\t\t\t\t\t\t\"java.lang\", \"StringBuilder\"),\r\n \t\t\t\t\tJAVA_LANG_OBJECT), new Type.Clazz(\"java.lang\",\r\n \t\t\t\t\t\"StringBuilder\")));\t\r\n \t\t}\r\n \r\n \t\t// Now, do the right hand side\r\n \t\tJilExpr r;\r\n \t\tType rhs_t = rhs.first().type(); \r\n \t\tif(rhs_t instanceof Type.Primitive || isString(rhs_t)) {\r\n \t\t\tArrayList<JilExpr> params = new ArrayList<JilExpr>();\r\n \t\t\tparams.add(rhs.first());\r\n \t\t\tr = new JilExpr.Invoke(new JilExpr.Variable(builderLab, builder), \"append\",\r\n \t\t\t\t\tparams, new Type.Function(new Type.Clazz(\"java.lang\",\r\n \t\t\t\t\t\"StringBuilder\"), rhs_t), new Type.Clazz(\r\n \t\t\t\t\t\t\t\"java.lang\", \"StringBuilder\"));\r\n \t\t} else {\r\n \t\t\tArrayList<JilExpr> params = new ArrayList<JilExpr>();\r\n \t\t\tparams.add(rhs.first());\r\n \t\t\tr = new JilExpr.Invoke(new JilExpr.Variable(builderLab, builder),\r\n \t\t\t\t\t\"append\", params, new Type.Function(new Type.Clazz(\r\n \t\t\t\t\t\t\t\"java.lang\", \"StringBuilder\"), JAVA_LANG_OBJECT),\r\n \t\t\t\t\tnew Type.Clazz(\"java.lang\", \"StringBuilder\"));\r\n \t\t}\r\n \r\n \t\tr = new JilExpr.Invoke(r, \"toString\", new ArrayList<JilExpr>(),\r\n \t\t\t\tnew Type.Function(JAVA_LANG_STRING), JAVA_LANG_STRING);\r\n \t\t\r\n \t\treturn new Pair<JilExpr,List<JilStmt>>(r,stmts);\r\n \t}", "public static String trimHorizontalSpace(String str) {\n String horizontalSpace = \"\\\\h\";\n str = str.replaceAll(\"(^\" + horizontalSpace + \"*)|(\" + horizontalSpace + \"*$)\", \"\");\n return str;\n }", "public Builder clearCsStr() {\n bitField0_ = (bitField0_ & ~0x00000001);\n csStr_ = getDefaultInstance().getCsStr();\n onChanged();\n return this;\n }", "public static void main(String[] args) {\n\t\tString str=\" 45wraf54 \";\n\t\tSystem.out.println(\"字符串str的长度是:\"+str.length());\n\t\tSystem.out.println(\"去掉首位空格后字符串str:\"+str.trim());\n\t\tSystem.out.println(\"字符串str的长度是:\"+str.trim().length());\n\t}", "static String emptyToNull(String value) {\n if (value == null || value.trim().isEmpty())\n return null;\n return value.trim();\n }" ]
[ "0.6464441", "0.6275202", "0.625365", "0.62328947", "0.6142587", "0.5981471", "0.59728426", "0.5936044", "0.59324116", "0.5904569", "0.586039", "0.58472246", "0.58142114", "0.5809843", "0.57867825", "0.5783602", "0.5744378", "0.57385874", "0.5731494", "0.5722368", "0.56990546", "0.56936044", "0.56914824", "0.5686385", "0.5680354", "0.5650097", "0.5645539", "0.5621462", "0.5598455", "0.55761325", "0.55617297", "0.5558407", "0.5547507", "0.5539061", "0.5512806", "0.55096775", "0.55027395", "0.54878694", "0.54791236", "0.54684615", "0.5452106", "0.54468346", "0.5444969", "0.5425557", "0.5416327", "0.54127276", "0.5404401", "0.5388024", "0.5386885", "0.53862375", "0.5370155", "0.53625745", "0.53601027", "0.5358419", "0.535565", "0.53474295", "0.5334129", "0.53303814", "0.5327981", "0.5323142", "0.5322681", "0.5315797", "0.5304184", "0.52952725", "0.52907103", "0.529022", "0.52791977", "0.52746046", "0.5261396", "0.52592087", "0.525124", "0.5243356", "0.52340037", "0.5229758", "0.52112836", "0.5209817", "0.5207795", "0.52026093", "0.52002966", "0.5200012", "0.5193937", "0.51598275", "0.51595956", "0.51545644", "0.51527566", "0.51522505", "0.5150021", "0.51447004", "0.51447004", "0.5143893", "0.5136298", "0.51342875", "0.5128043", "0.5125579", "0.51140916", "0.5105939", "0.51028764", "0.5084028", "0.50692624", "0.50627226" ]
0.5850736
11
Get all the kontrachents.
@Override @Transactional(readOnly = true) public Page<Kontrachent> findAll(Pageable pageable) { log.debug("Request to get all Kontrachents"); return kontrachentRepository.findAll(pageable); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Kind> findAll() {\n\t\tString hql=\"from Kind k order by k.id\";\n\t\tList<Kind> kinds = sessionFactory.getCurrentSession().createQuery(hql,Kind.class).getResultList();\n\t\treturn kinds;\n\t}", "public Iterable<String> nouns()\n {\n return h.navigableKeySet();\n }", "@Override\n\tpublic List<Kind> findAll() {\n\t\treturn kindDao.findAll();\n\n\t}", "@Override\r\n\tpublic List<Ngo> getAll() {\n\t\treturn null;\r\n\t}", "@GetMapping(\"/all\")\n\tpublic ResponseEntity<RootDTO> fetchAllCharacters() {\n\t\treturn ResponseEntity.ok(characterService.fetchAllCharacters());\n\t}", "public List<Korisnici> findAll(){\n\t\treturn korisniciRepository.findAll();\n\t}", "public Traverson allIngredientsTraverson() {\n Traverson traverson = new Traverson(URI.create(INGREDIENTS_URI), MediaTypes.HAL_JSON);\n return traverson;\n }", "@Override\n @Transactional(readOnly = true)\n public List<WilayaDTO> findAll() {\n log.debug(\"Request to get all Wilayas\");\n return wilayaRepository.findAll().stream()\n .map(wilayaMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "@RequestMapping(value = \"/allCharite\")\n\tpublic List<Charite> getAllCharite() {\n\t\treturn chariteDAO.getAllChariteList();\n\t}", "public List<TbNode> getAll() {\n return qureyNodeList(new NodeParam());\n }", "public Iterable<String> nouns() {\n return data.keySet();\n }", "@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)\n public List<Category> getCategoryFindAll() {\n return em.createNamedQuery(\"Category.findAll\", Category.class).getResultList();\n }", "@Transactional(readOnly = true)\n public List<NextOfKinDTO> findAll() {\n log.debug(\"Request to get all NextOfKins\");\n return nextOfKinRepository.findAll().stream()\n .map(nextOfKinMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "Map<String, Collection<String>> getConnectedEntities();", "public List<T> getAll() {\n\t\treturn this.getAll(new ArrayList<String>(), false);\n\t}", "public Iterable<String> nouns() {\n\t\treturn nouns.keySet();\n\t}", "public List<NeonKey> getKeys();", "@Override\n\tpublic List<Cat> getAll() {\n\t\treturn catRepository.findAll();\n\t}", "public List findAll() {\n\t\treturn null;\r\n\t}", "public Iterable<String> nouns() {\n return nounMap.keySet();\n }", "public Iterable<String> nouns() {\n return synsetList.keySet();\n }", "@Override\n\tpublic List findAll() {\n\t\treturn getSession().createCriteria(DirectTalentAdvertBean.class).list();\n\t}", "public Collection<TapKey> findAllKeys();", "public List<Category> findAll() {\n\t\treturn categoryMapper.selectAll();\n\t}", "public Iterable<String> nouns() {\n return nounsMap.keySet();\n }", "@Override\n\tpublic Iterable<Oglas> findAll() {\n\t\treturn repository.findAll();\n\t}", "public Iterator<String> listAllandAnonClasses()\r\n\t{\r\n\t\treturn new ToStringIterator<String>(ONT_MODEL.listClasses());\r\n\t}", "public Iterable<String> nouns()\n {\n return synsetHash.keySet();\n }", "@Override\n\tpublic ArrayList<Representation> getALL() {\n\t\treturn null;\n\t}", "public Set<String> nouns() {\n return wnetsi.keySet();\n }", "@Override\n\tpublic Collection<CentreVisite> getAll() {\n\t\treturn CR.findAll();\n\t}", "public List<T> findAll() {\n\t Query q = getEntityManager().createQuery(\"select u from \" + getEntityClass().getSimpleName() + \" u\");\n\t return q.getResultList();\n\t }", "public List<CategoriaEntity> findAll() {\n LOGGER.log(Level.INFO, \"Consultando todas las categorias\");\n // Se crea un query para buscar todas las categorias en la base de datos.\n TypedQuery query = em.createQuery(\"select u from CategoriaEntity u\", CategoriaEntity.class);\n // Note que en el query se hace uso del método getResultList() que obtiene una lista de categorias.\n return query.getResultList();\n }", "public List<AlternateConf> listAll(){\n\t\treturn altRepo.findAll();\n\t}", "@RequestMapping(value = \"/charitys\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Charity> getAll() {\n log.debug(\"REST request to get all Charitys\");\n return charityRepository.findAll();\n }", "public List<Entity> getAll() {\n return entities;\n }", "@Nonnull\n public List<C> getConstituents() {\n return constituents;\n }", "public String getAllLayersAsList() {\n\t\treturn null;\n\t}", "public Cursor fetchAllHotels() {\r\n\r\n return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TYPE,\r\n KEY_NAME, KEY_DESC, KEY_ADDR, KEY_MINS, KEY_RATE, KEY_PHONE, KEY_WEB }, null, null, null, null, null, null);\r\n }", "public Collection findAll() {\n\t\treturn null;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<Encuesta> getEncuestas() {\n\t\t// Retrieve session from Hibernate\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t// Create a Hibernate query (HQL)\n\t\tQuery query = session.createQuery(\"FROM Encuesta\");\n\t\t// Retrieve all\n\t\treturn query.list();\n\t}", "public List<Termek> getAllTermek() {\r\n return Termeks;\r\n }", "@GetMapping(\"/listAll\")\n\tpublic ResponseEntity<?> findAll(){\n\t\treturn new ResponseEntity<>(catService.listAll(),HttpStatus.OK);\n\t}", "@Override\n\tpublic Iterable<Map<String, Object>> findAll() {\n\t\treturn null;\n\t}", "public List<Container> findAll() {\n\t\tSession currentSession = em.unwrap(Session.class);\n\t\t\n\t\t//create the query\n\t\tQuery<Container> query = currentSession.createQuery(\"from Container\", Container.class);\n\t\t\n\t\t//execute query and get result list\n\t\tList<Container> containers = query.getResultList();\n\t\t//System.out.println(containers);\n\t\t//return the results\n\t\treturn containers;\n\t}", "public void listNens() {\n\t\t\tEntityManager em = emf.createEntityManager();\n\t\t\tem.getTransaction().begin();\n\t\t\tList<Nen> result = em.createQuery(\"from nen\", Nen.class)\n\t\t\t\t\t.getResultList();\n\t\t\tfor (Nen a : result) {\n\t\t\t\tSystem.out.println(a.toString());\n\t\t\t}\n\t\t\tem.getTransaction().commit();\n\t\t\tem.close();\t\n\t\t}", "public List<IntentionCriminelle> findAll() {\n return em.createQuery(\"from IntentionCriminelle ic\").getResultList();\n }", "@GetMapping(path=\"/getall\")\r\n\tpublic @ResponseBody Iterable<MyClass> getAllAdmins() {\n\t\treturn classRepository.findAll();\r\n\t}", "public List<T> findAll() {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Tags> getlist() {\n\t\treturn TagsRes.findAll();\n\t}", "@Override\n public Collection<Character> getAll() {\n return characters;\n }", "@Override\n\tpublic Iterable<Chitietdonhang> findAll() {\n\t\treturn chiTietDonHangRepository.findAll();\n\t}", "public Iterator<String> listRootClasses()\r\n\t{\r\n\t\treturn new ToStringIterator<String>(ONT_MODEL.listHierarchyRootClasses().filterDrop( new Filter() {\r\n public boolean accept( Object o ) {\r\n return ((Resource) o).isAnon();\r\n }} )\r\n );\t\t\r\n\t}", "List<Keystroke> findAll();", "@Override\n public String[] listAll() {\n return list();\n }", "public abstract Collection<Turtle> getAllTurtles();", "public Iterable<String> nouns() {\n Stack<String> iter = new Stack<>();\n for (String ss : synsetsStrToNum.keySet())\n iter.push(ss);\n return iter;\n }", "@RequestMapping(value = \"/countries\", method = RequestMethod.GET)\n public List<Country> countries() {\n return dictionaryService.findAllCountries();\n }", "@Override\n\tpublic String showAll() {\n\t\treturn null;\n\t}", "public List<Long> getAlleKontonummern() {\n return new LinkedList<>(kontoMap.keySet());\n }", "public ArrayList<String> getListOfContinents() {\n return new ArrayList<>(gameMap.getContinentHashMap().keySet());\n }", "@Override\r\n\tpublic List<Trainee> getAll() {\n\t\treturn dao.getAll();\r\n\t}", "public Iterable<String> nouns() {\n\t\treturn nounToId.keySet();\n\t}", "public static List<CauHinhThuTienTet> findAll() {\n\t\treturn getPersistence().findAll();\n\t}", "public Iterator getShowings(){\n return super.iterator();\n }", "@Override\n public List<CategoryDTO> listAll() {\n List<CategoryDTO> result = new ArrayList<>();\n List<Category> listCategory = categoryRepository.findAll();\n for (Category category: listCategory){\n result.add(categoryConverter.toDTO(category));\n }\n return result;\n }", "public List findAll() {\n\t\treturn dao.findAll();\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<TagMapping> findAll() {\n\t\tList<TagMapping> tagMap = list(namedQuery(\"com.wpff.core.TagMapping.findAll\"));\n\t\treturn tagMap;\n\t}", "@Override\r\n\tpublic List<Category> findAll() {\n\t\treturn(List<Category>) em.createNamedQuery(\"findAllCategories\").getResultList();\r\n\t}", "@GetMapping(\"/act-kodus\")\n @Timed\n public List<ActKodu> getAllActKodus() {\n log.debug(\"REST request to get all ActKodus\");\n return actKoduRepository.findAll();\n }", "@Override\n\tpublic Set<OWLEntity> getAllConcepts() {\n\t\tSet<OWLEntity> result = new HashSet<OWLEntity>();\n\t\tresult.addAll(ontology.getClassesInSignature());\n\t\tresult.addAll(ontology.getIndividualsInSignature());\n\t\treturn result;\n\t}", "public List<Medico> findAll() {\n\t\treturn medicoMapper.findAll();\n\t}", "public ResourceSet getAllResources() {\n return getAllResourcesExcept(null);\n }", "@Override\n @Transactional(readOnly = true)\n public List<ConferenceDTO> findAll() {\n log.debug(\"Request to get all Conferences\");\n return conferenceRepository.findAll().stream()\n .map(conferenceMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "List<Chofer> findAll();", "public SortedSet<WVnfInstance> getAllVnfInstances ()\n\t{\n\t\treturn n.getResources().stream().filter(r->!r.getType().contains(WNetConstants.LISTSEPARATORANDINVALIDNAMECHARACTER)).map(r->new WVnfInstance(r)).collect(Collectors.toCollection(TreeSet::new));\n\t}", "@Override\r\n\tpublic List<T> findAll() {\n\t\treturn getSession().createQuery(\r\n\t\t\t\t\"FROM \"+clazz.getSimpleName())\r\n\t\t\t\t.list();\r\n\t}", "@Override\r\n\tpublic List<?> getAll() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic List<Trainee> getAll() {\n\t\tQuery q=em.createQuery(\"select m from Trainee m\");\n\t\tList<Trainee> l=q.getResultList();\n\t\treturn l;\n\t}", "@Override\n\tpublic List<Category> getAllCategory() {\n\t\treturn category.selectAllCategory();\n\t}", "@Override\n\tpublic List<Category> list() {\n\t\tList<Category> list=(List<Category>)\n\t\tsessionFactory.getCurrentSession().createCriteria(Category.class).setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY).list();\n\t\treturn list;\n\t}", "public List<Categoria> findAll(EntityManager entityManager) {\n Query query = entityManager.createNamedQuery(\"Categoria.findAll\");\r\n categoriaList = query.getResultList();\r\n return categoriaList;\r\n }", "@Transactional(readOnly = true)\n public List<ChocolateDTO> findAll() {\n log.debug(\"Request to get all Chocolates\");\n return chocolateRepository.findAll().stream()\n .map(chocolateMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "java.util.List<KeySpace>\n getKeyspacesList();", "@Override\n @Transactional(readOnly = true)\n public List<MuseumDTO> findAll() {\n log.debug(\"Request to get all Museums\");\n return museumRepository.findAll().stream()\n .map(museumMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "public Iterable<String> nouns(){\n return this.nounToIdMap.keySet();\n }", "public Collection<Kynamic> getAllKynamic() {\n\t\treturn this.kynamicDao.getAllEntry();\r\n\t}", "public List<ConsejoEntity> findAll() {\r\n Query q = em.createQuery(\"select u from ConsejoEntity u\");\r\n return q.getResultList();\r\n }", "public List<Tag> findAll() {\n\t\treturn tagRepository.findAll();\n\t}", "@GetMapping\n\t public List<Categories> touslescategories() {\n\t\treturn catsociete.findAll();}", "@Override\n public List<R> getAll() {\n return onFindForList(getSession().createCriteria(entityClass).list());\n }", "public Iterator<String> listAllClasses()\r\n\t{\r\n\t\treturn new ToStringIterator<String>(ONT_MODEL.listClasses().filterDrop( new Filter() {\r\n public boolean accept( Object o ) {\r\n return ((Resource) o).isAnon();\r\n }} )\r\n );\r\n\t}", "@Override\n\tpublic List findAll()\n\t{\n\t\treturn teataskMapper.findAll();\n\t}", "public static List<Category> findAll() {\n List<Category> categories = categoryFinder.findList();\n if(categories.isEmpty()){\n categories = new ArrayList<>();\n }\n return categories;\n }", "public String showAllNhanvien();", "@Override\n @Transactional(readOnly = true)\n public List<ModeDTO> findAll() {\n log.debug(\"Request to get all Modes\");\n return modeRepository.findAll().stream()\n .map(modeMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "public List findAll() {\n\t\ttry {\n\t\t\tString queryString = \"from Procurator\";\n\t\t\tQuery queryObject = getSession().createQuery(queryString);\n\t\t\treturn queryObject.list();\n\t\t} catch (RuntimeException re) {\n\t\t\tthrow re;\n\t\t}\n\t}", "@Override\n\t\tpublic List<Carrera> getAll() {\n\t\t\t\treturn null;\n\t\t}", "@Override\n\tpublic String findAll() {\n\t\treturn null;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<DbLotniskoEntity> getAll() {\n \tList<DbLotniskoEntity> airports = (List<DbLotniskoEntity>)getSession().createQuery(\"from kiwi.models.DbLotniskoEntity\").list();\n\n \treturn airports;\n }" ]
[ "0.6263728", "0.62472236", "0.6220474", "0.605504", "0.59708637", "0.59623235", "0.59190524", "0.5831715", "0.58177805", "0.5817537", "0.58168167", "0.57600266", "0.57477", "0.57392263", "0.57269925", "0.5726234", "0.5722215", "0.5715583", "0.5711407", "0.5710914", "0.57010573", "0.56784385", "0.5676927", "0.56715274", "0.5671164", "0.56508917", "0.56451005", "0.5625981", "0.5606454", "0.56016606", "0.559504", "0.55942595", "0.5587241", "0.5580313", "0.5575215", "0.5569112", "0.55616504", "0.5552031", "0.5550609", "0.55316484", "0.5528778", "0.5526842", "0.5515049", "0.5503078", "0.549453", "0.54928905", "0.5483569", "0.54771495", "0.5476107", "0.5472105", "0.5467897", "0.54667485", "0.546182", "0.5459755", "0.5451061", "0.5450704", "0.54452884", "0.54326785", "0.5432327", "0.5432164", "0.54311836", "0.5429692", "0.54146874", "0.5414481", "0.5408841", "0.5404451", "0.5404003", "0.5403929", "0.5401789", "0.53979355", "0.5397255", "0.53933185", "0.53900963", "0.5385957", "0.5383853", "0.5382967", "0.5382558", "0.53821164", "0.5378558", "0.53720737", "0.5370726", "0.5368007", "0.5365555", "0.53654593", "0.53633183", "0.53631145", "0.5361578", "0.53592867", "0.53591913", "0.53568393", "0.5354568", "0.5352565", "0.53460187", "0.5344675", "0.5340809", "0.53400767", "0.533952", "0.5337885", "0.53370225", "0.5335158" ]
0.6092631
3
Get one kontrachent by id.
@Override @Transactional(readOnly = true) public Optional<Kontrachent> findOne(Long id) { log.debug("Request to get Kontrachent : {}", id); return kontrachentRepository.findById(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Karton findOne(Integer id) {\n\t\treturn kartonRepository.findById(id).orElseGet(null);\n\t}", "@Override\n public Lekar findOne(Long id) {\n return lekarRepozitorijum.getOne(id);\n }", "D getById(K id);", "@Transactional(propagation = Propagation.MANDATORY)\n\tpublic default E getOne(K id) {\n\t\treturn getRepository().getOne(id);\n\t}", "@Override\n public ModeloCuestionario findOne(Integer id) {\n return modeloCuestionarioRepository.findOne(id);\n }", "Corretor findOne(Long id);", "@Override\n @Transactional(readOnly = true)\n public WilayaDTO findOne(Long id) {\n log.debug(\"Request to get Wilaya : {}\", id);\n Wilaya wilaya = wilayaRepository.findOne(id);\n return wilayaMapper.toDto(wilaya);\n }", "@Override\n\tpublic KomisyonModel get(String id) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic ConsigMetalDt findOne(int id) {\n\t\treturn consigMetalDtRepository.findOne(id);\r\n\t}", "@Transactional(readOnly = true) \n public ShortLink findOne(Long id) {\n log.debug(\"Request to get ShortLink : {}\", id);\n ShortLink shortLink = shortLinkRepository.findOne(id);\n return shortLink;\n }", "Chofer findOne(Long id);", "T findOne(Long id);", "@Transactional(readOnly = true)\n public Optional<KohnegiDTO> findOne(Long id) {\n log.debug(\"Request to get Kohnegi : {}\", id);\n return kohnegiRepository.findById(id)\n .map(kohnegiMapper::toDto);\n }", "T findOne(I id);", "public Product get(String id);", "public CyPoj findById(Integer id) {\n\t\treturn d.findById(id);\r\n\t}", "T get(PK id);", "public Device getById(String id) {\n\n try {\n return deviceRepository.findOne(id);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return null;\n }", "@Override\r\n\tpublic Product showOne(int id) throws Exception {\n\t\treturn this.dao.showOne(id);\r\n\t}", "public Matiere findById(Integer id){\n return matiereRepository.getOne(id);\n }", "public ClanPaket findById(Long id) {\n\r\n\t\tClanPaket clanPaket = clanPaketDao.findById(id)\r\n\t\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"ClanPaket\", \"id\", id));\r\n\r\n\t\treturn clanPaket;\r\n\r\n\t}", "public Voto find(int id ) { \n\t\treturn em.find(Voto.class, id);\n\t}", "T getById(PK id);", "public T get( final int id )\n\t{\n\t\treturn this.dao.findById( id ).get();\n\t}", "public abstract T findOne(int id);", "@Override\n\tpublic Cat getById(Integer id) {\n\t\tOptional<Cat> cat = catRepository.findById(id);\n\t\tif(cat.isPresent()) {\n\t\t\treturn cat.get();\n\t\t} else {\n\t\t\tthrow new CatNotFoundException();\n\t\t}\n\t}", "@Override\n @Transactional(readOnly = true)\n public JeuDTO findOne(Long id) {\n log.debug(\"Request to get Jeu : {}\", id);\n Jeu jeu = jeuRepository.findOne(id);\n return jeuMapper.toDto(jeu);\n }", "T get(Integer id);", "@Override\n @Transactional(readOnly = true)\n public Optional<KeyConfigDTO> findOne(Long id) {\n log.debug(\"Request to get KeyConfig : {}\", id);\n return keyConfigRepository.findById(id)\n .map(keyConfigMapper::toDto);\n }", "T getById(int id);", "String get(String id);", "public Conge find( Integer idConge ) ;", "@Override\n @Transactional(readOnly = true)\n public ModeDTO findOne(Long id) {\n log.debug(\"Request to get Mode : {}\", id);\n Mode mode = modeRepository.findOne(id);\n return modeMapper.toDto(mode);\n }", "T getbyId(I id);", "LevelElementDTO findOne(Long id);", "@Override\n @Transactional(readOnly = true)\n public MechanicDTO findOne(Long id) {\n log.debug(\"Request to get Mechanic : {}\", id);\n Mechanic mechanic = mechanicRepository.findOne(id);\n return mechanicMapper.toDto(mechanic);\n }", "T get(ID id);", "public Usinas findOne(String id) {\n log.debug(\"Request to get Usinas : {}\", id);\n return usinasRepository.findOne(id);\n }", "Optional<T> findOne(K id);", "@Override\n public T findById(Long id) {\n return manager.find(elementClass, id);\n }", "@Override\r\n\tpublic Candidat findOne(String id) {\n\t\treturn null;\r\n\t}", "T getById(ID id);", "Categorie findOne(Long id);", "@Transactional(readOnly = true)\n public Optional<NextOfKinDTO> findOne(Long id) {\n log.debug(\"Request to get NextOfKin : {}\", id);\n return nextOfKinRepository.findById(id)\n .map(nextOfKinMapper::toDto);\n }", "public TEntity getById(int id){\n String whereClause = String.format(\"Id = %1$s\", id);\n Cursor cursor = db.query(tableName, columns, whereClause, null, null, null, null);\n\n if (cursor.getCount() == 1) {\n cursor.moveToFirst();\n return fromCursor(cursor);\n }\n return null;\n }", "@Transactional(readOnly = true)\n public Optional<DRkDTO> findOne(Long id) {\n log.debug(\"Request to get DRk : {}\", id);\n return dRkRepository.findById(id).map(dRkMapper::toDto);\n }", "@Override\n @Transactional(readOnly = true)\n @Cacheable\n public Category findOne(Long id) {\n log.debug(\"Request to get Category : {}\", id);\n return categoryRepository.findOne(id);\n }", "RiceCooker getById(long id);", "public Pessoa find(Long id){\n\t\treturn db.findOne(id);\n\t}", "@GetMapping(\"projekat/{id}\")\n\tprivate Projekat getProjekat(@PathVariable(\"id\") Integer id) {\n\t\treturn projekatRepository.getOne(id);\n\t}", "E findById(K id);", "V get(K id);", "@Override\n public SideDishEntity findOne(Long id) throws IllegalArgumentException {\n return null;\n }", "@Override\r\n\tpublic Strumento getById(int id) throws StrumentoNotFoundException {\n\t\treturn strumentoRepository.getOne(id);\r\n\t}", "@Override\n\tpublic T get(ID id) {\n\t\tOptional<T> obj = getDao().findById(id);\n\t\tif (obj.isPresent()) {\n\t\t\treturn obj.get();\n\t\t}\t\t\n\t\treturn null;\n\t}", "@Override\n @Transactional(readOnly = true)\n public AdChoiseDTO findOne(Long id) {\n log.debug(\"Request to get AdChoise : {}\", id);\n AdChoise adChoise = adChoiseRepository.findOne(id);\n return adChoiseMapper.toDto(adChoise);\n }", "@Override\n public Country findOne(Integer id) {\n\n return countryRepository.findById(id).get();\n }", "@Override\n public Optional<Container> findOne(String id) {\n log.debug(\"Request to get Container : {}\", id);\n return containerRepository.findById(id);\n }", "@Override\n\tpublic Object findByID(Serializable id) {\n\t\treturn getSession().get(DirectTalentAdvertBean.class, id);\n\t}", "@Transactional(readOnly = true)\n public TipoSituacao findOne(Long id) {\n log.debug(\"Request to get TipoSituacao : {}\", id);\n return tipoSituacaoRepository.findOne(id);\n }", "public AsxDataVO findOne(String id) {\n\t\t return (AsxDataVO) mongoTemplate.findOne(new Query(Criteria.where(\"id\").is(id)), AsxDataVO.class); \r\n\t}", "@Transactional(readOnly = true) \n public Clinic findOne(Long id) {\n log.debug(\"Request to get Clinic : {}\", id);\n Clinic clinic = clinicRepository.findOne(id);\n return clinic;\n }", "@Override\n\tpublic Editore getOneById(int id) {\n\t\treturn null;\n\t}", "public T findById(int id) {\n\t\tConnection connection = null;\n\t\tPreparedStatement st = null;\n\t\tResultSet rs = null;\n\t\tString query = createSelectQuery(\"id\");\n\t\ttry {\n\t\t\tconnection = ConnectionFactory.createCon();\n\t\t\tst = connection.prepareStatement(query);\n\t\t\tst.setInt(1, id);\n\t\t\trs = st.executeQuery();\n\t\t\t\n\t\t\treturn createObjects(rs).get(0);\n\t\t}catch(SQLException e) {\n\t\t\tLOGGER.fine(type.getName() + \"DAO:findBy\" + e.getMessage());\n\t\t}\n\t\treturn null;\n\t}", "@Override\n public AlunoDTO findOne(String id) {\n log.debug(\"Request to get Aluno : {}\", id);\n Aluno aluno = alunoRepository.findOne(id);\n return alunoMapper.toDto(aluno);\n }", "public New getObject(long id);", "@Transactional(readOnly = true) \n public Product findOne(Long id) {\n log.debug(\"Request to get Product : {}\", id);\n Product product = productRepository.findOne(id);\n return product;\n }", "@Override\r\n\tpublic Amigo getById(int id) {\n\t\treturn null;\r\n\t}", "public Etudiant getById(int id) {\n\t\treturn dao.getById(id);\r\n\t}", "@Override\n\tpublic car getById(int id) {\n\t\ttry{\n\t\t\tcar so=carDataRepository.getById(id);\n\t\t\t\n\t\t\treturn so;\n\t\t\t}\n\t\t\tcatch(Exception ex)\n\t\t\t{\n\t\t\t\tex.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t}", "@Override\n @Transactional(readOnly = true)\n public CostoDTO findOne(Long id) {\n log.debug(\"Request to get Costo : {}\", id);\n Costo costo = costoRepository.findOne(id);\n return costoMapper.toDto(costo);\n }", "@Transactional(readOnly = true)\n public Optional<Currency> findOne(Long id) {\n log.debug(\"Request to get Currency : {}\", id);\n return currencyRepository.findById(id);\n }", "public T getByID(int id) {\n\t\treturn this.data.get(id);\n\t}", "@Override\n\tpublic Propisi findOne(Long id) {\n\t\treturn null;\n\t}", "Clothes getById(int id);", "@Transactional(readOnly = true)\n public CategoriaDTO findOne(Long id) {\n log.debug(\"Request to get Categoria : {}\", id);\n Categoria categoria = categoriaRepository.findOne(id);\n return categoriaMapper.toDto(categoria);\n }", "public Device findById(Long id) throws Exception;", "@Override\n\tpublic KomponenNilai getById(UUID idKomp) {\n\t\treturn (KomponenNilai) sessionFactory.getCurrentSession().get(KomponenNilai.class, idKomp);\n\t}", "public T find(int id) {\n\t \treturn getEntityManager().find(getEntityClass(), id);\n\t }", "Instance getInstance(String id);", "@Override\n @Transactional(readOnly = true)\n public PermisoDTO findOne(Long id) {\n log.debug(\"Request to get Permiso : {}\", id);\n Permiso permiso = permisoRepository.findOne(id);\n PermisoDTO permisoDTO = permisoMapper.permisoToPermisoDTO(permiso);\n return permisoDTO;\n }", "public Client find(int id) throws DataAccessLayerException {\n try {\n Subject.doAs(LoginController.getLoginContext().getSubject(), new MyPrivilegedAction(\"CLIENT\", Permission.READ));\n return (Client) super.find(Client.class, id);\n } catch (AccessControlException e) {\n e.printStackTrace();\n }\n return null;\n }", "T getById(Long id);", "@Override\r\n\tpublic Botany show(int id) {\n\t\treturn dao.show(id);\r\n\t}", "@Transactional(readOnly = true)\n public DeviceDTO findOne(Long id) {\n log.debug(\"Request to get Device : {}\", id);\n Device device = deviceRepository.findOne(id);\n DeviceDTO deviceDTO = deviceMapper.deviceToDeviceDTO(device);\n return deviceDTO;\n }", "Cemetery findOne(Long id);", "public T get(int id) {\n return this.session.get(this.type, id);\n }", "@Override\n\t\tpublic KinderGarten getkindergartenById(int id) {\n\t\t\tKinderGarten k = kindergartenRepo.findById(id).get();\n\t\t\tif(k==null) return null;\n\t\t\t\n\t\t\treturn k;\n\t\t}", "@Override\n\tpublic PI findById(Long id) throws NotFoundException {\n\t\treturn null;\n\t}", "E getById(long id);", "Tag findById(int id);", "@Transactional(readOnly = true)\n public SubCategory findOne(Long id) {\n log.debug(\"Request to get SubCategory : {}\", id);\n SubCategory subCategory = subCategoryRepository.findOne(id);\n return subCategory;\n }", "@Override\n @Transactional(readOnly = true)\n public ProductDTO findOne(Long id) {\n log.debug(\"Request to get Product : {}\", id);\n Product product = productRepository.findOneWithEagerRelationships(id);\n return productMapper.toDto(product);\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic T findOne(final int id) {\r\n\t\tEntityManager manager = factory.createEntityManager();\r\n\t\tEntityTransaction transaction = manager.getTransaction();\r\n\t Object obj = null;\r\n\t \r\n\t try {\r\n\t \t transaction.begin();\r\n\t obj = (T) manager.find(genericClass, id);\r\n\t transaction.commit();\r\n\t } catch (HibernateException e) {\r\n\t \t if(transaction != null)\r\n\t \t\t transaction.rollback();\r\n\t e.printStackTrace(); \r\n\t } finally {\r\n\t manager.close(); \r\n\t }\r\n\t\treturn (T) obj;\r\n\t}", "@Transactional(readOnly = true)\n public Optional<Zhaopin> findOne(Long id) {\n log.debug(\"Request to get Zhaopin : {}\", id);\n return zhaopinRepository.findById(id);\n }", "public Cat findById(int id) {\n\t\tString HQL = \"FROM Animal WHERE id = :id\";\n\t\t\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tCat result = (Cat) session.createQuery(HQL)\n\t\t\t.setParameter(\"id\", id)\n\t\t\t.setMaxResults(1)\n\t\t\t.getSingleResult();\t\t\n\t\treturn result;\n\t}", "public o selectById(long id);", "@Override\n\tpublic ProductVo selectOne(String id) {\n\t\treturn sqlSession.selectOne(\"product.selectOne\", id);\n\t}", "@Transactional(readOnly = true)\n public Optional<ItemInstance> findOne(Long id) {\n log.debug(\"Request to get ItemInstance : {}\", id);\n return itemInstanceRepository.findById(id);\n }", "@Override\n\t@Transactional\n\tpublic T getById(Integer id) {\n\t\tif (id == null) {\n\t\t\treturn null;\n\t\t}\n\t\tObject result = hibernateTemplate.getSessionFactory().getCurrentSession()\n\t\t\t\t.createCriteria(getGenericClass())\n\t\t\t\t.add(Restrictions.idEq(id))\n\t\t\t\t.uniqueResult();\n\t\treturn initialize(checkType(result));\n\t}" ]
[ "0.7758209", "0.7085493", "0.698655", "0.6784454", "0.6772731", "0.67633843", "0.6750581", "0.67490375", "0.6736973", "0.67369574", "0.67183524", "0.67023647", "0.668299", "0.6678462", "0.66757756", "0.66659206", "0.66632044", "0.66565853", "0.66260815", "0.6623474", "0.6612805", "0.6596023", "0.6592467", "0.6570269", "0.6565756", "0.65641314", "0.6554835", "0.65531576", "0.654695", "0.6536227", "0.653362", "0.6519602", "0.65171427", "0.650387", "0.65016717", "0.6497789", "0.6495745", "0.6495501", "0.64947397", "0.64897555", "0.6483116", "0.64801353", "0.647859", "0.6476713", "0.6475388", "0.6462589", "0.6459455", "0.6457668", "0.6454634", "0.64457786", "0.64437765", "0.6440589", "0.64371336", "0.6432537", "0.642978", "0.6427604", "0.6423417", "0.6419299", "0.6417476", "0.6413253", "0.641313", "0.6410893", "0.6405673", "0.6405123", "0.640344", "0.6401573", "0.63955575", "0.63833195", "0.6379378", "0.63726676", "0.63699025", "0.6369244", "0.6367723", "0.63624275", "0.6359423", "0.63391864", "0.63331497", "0.63330334", "0.63323563", "0.6328433", "0.6311784", "0.6309345", "0.6308809", "0.63087744", "0.63080585", "0.63077134", "0.63049644", "0.6296184", "0.6295851", "0.6295159", "0.6290876", "0.62907284", "0.62892973", "0.6284196", "0.628019", "0.6275183", "0.6274886", "0.6272434", "0.6269507", "0.6268983" ]
0.7814526
0
Delete the kontrachent by id.
@Override public void delete(Long id) { log.debug("Request to delete Kontrachent : {}", id); kontrachentRepository.deleteById(id); kontrachentSearchRepository.deleteById(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(K id);", "public void deleteById(String id);", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Wilaya : {}\", id);\n wilayaRepository.delete(id);\n }", "public void delete(Long id) {\n log.debug(\"Request to delete Kohnegi : {}\", id);\n kohnegiRepository.deleteById(id);\n }", "@Override\r\n\tpublic void delete(String id) {\n\t\t\r\n\t}", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "@Override\n\tpublic void deleteById(String id) {\n\t\t\n\t}", "public void delete(Integer id);", "public void delete(Integer id);", "public void delete(Integer id);", "public void delete(int id);", "@Override\n\tpublic void delete(String id) {\n\n\t}", "@Override\n\tpublic void delete(String id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(String id) {\n\t\t\n\t}", "@Override\r\n\tpublic void delete(String id) {\n\r\n\t}", "@Override\n public void delete(int id) {\n repr.delete(id);\n }", "@Override\n\tpublic void deleteById(int id) {\n\t\t\n\t}", "@Override\r\n\tpublic void delete(int id) {\n\t\t\r\n\t}", "public void delete(int id) {\n\n\t}", "void deleteById(final String id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "void delete(String id);", "void delete(String id);", "void delete(String id);", "void delete(String id);", "void delete(String id);", "void delete(String id);", "@Override\r\n\tpublic void delete(Long id) {\n\t\t\r\n\t}", "public boolean delete(String id);", "public boolean delete(String id);", "@Override\n\tpublic void deleteById(Long id) {\n\n\t}", "public void delete(Long id) {\n\r\n\t}", "public boolean deleteById(Object id);", "public boolean deleteById(Object id);", "void delete( Integer id );", "public void delete(Integer id) {\n\r\n\t}", "public void deleteById(Integer id) {\n\n\t}", "@Override\n\tpublic void deleteById(Integer id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(Long id) {\n\n\t}", "@Override\n\tpublic void delete(Long id) {\n\n\t}", "@Override\n\tpublic void deleteById(String id) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void delete(Long id) {\n\t}", "public void deleteById(Long id);", "void deleteById(int id);", "@Override\n\tpublic void delete(Integer id) {\n\n\t}", "public void delete(Long id) {\n log.debug(\"Request to delete NextOfKin : {}\", id);\n nextOfKinRepository.deleteById(id);\n }", "void deleteById(Integer id);", "void deleteById(Integer id);", "public void delete(Long id) {\n log.debug(\"Request to delete AdamKhesaratSarneshin : {}\", id); adamKhesaratSarneshinRepository.deleteById(id);\n }", "public void delete(int id) {\n\t \t\n\t T entity = getEntityManager().find(getEntityClass(), id);\n\t System.out.print(\"------ \" + ((Conexion)entity).getCamposConexion().size()+ \" - - - - - \");\n\t getEntityManager().getTransaction().begin();\n\t getEntityManager().remove(entity);\n\t getEntityManager().getTransaction().commit();\n\t }", "@Override\n\tpublic void delete(String id) throws Exception {\n\n\t}", "public void deleteById(long id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(Integer id) {\n\t\t\n\t}", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Sintoma : {}\", id);\n sintomaRepository.delete(id);\n }", "void delete(final Long id);", "@Override\n\tpublic void delete(Serializable id) {\n\n\t}", "public void deleteObject(String id) {\n\t\t\n\t}", "@Override\n\tpublic int delete(String id) {\n\t\treturn st.delete(\"couplens.delete\",id);\n\t}", "@Override\r\n\tpublic void delete(Integer id) {\n\r\n\t}", "void delete( Long id );", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Jeu : {}\", id);\n jeuRepository.delete(id);\n jeuSearchRepository.delete(id);\n }", "@Override\n\tpublic void delete(int id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(int id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(int id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(int id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(int id) {\n\t}", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete PomocniMaterijal : {}\", id);\n pomocniMaterijalRepository.deleteById(id);\n }", "public void deleteById(long id) {\n\n\t}", "@Override\n\tpublic void delete(Serializable id) {\n\t\t\n\t}", "@Override\n\tpublic void deletebyid(Integer id) {\n\t\t\n\t}", "void deleteById(Long id);", "void deleteById(Long id);", "void deleteById(Long id);", "void deleteById(Long id);", "void delete(Integer id);", "void delete(Integer id);", "@Override\n\tpublic void del(Object id) {\n\n\t}", "@Override\r\n\tpublic void del(Integer id) {\n\t\t\r\n\t}", "@Override\n public void delete(int id) {\n }", "void deleteMataKuliah (int id);", "@Override\n public void delete(Long id) throws Exception {\n\n }", "public static void delete(int id) {\r\n\t\ttry {\r\n\t\t\tDatabase.connect();\r\n\t\t\tDatabase.deleteRecord(\"utente\", \"utente.id=\"+id);\r\n\t\t\tDatabase.close();\r\n\t\t}catch(NamingException e) {\r\n \t\tSystem.out.println(\"namingException \" +e);\r\n }catch (SQLException e) {\r\n \tSystem.out.println(\"sqlException \" +e);\r\n }catch (Exception ex) {\r\n \tSystem.out.println(\"Exception \" + ex);\r\n }\r\n\t}" ]
[ "0.7720936", "0.7720936", "0.7720936", "0.7720936", "0.7720936", "0.76725173", "0.76622325", "0.7635778", "0.76251864", "0.75943077", "0.7567436", "0.7567436", "0.7567436", "0.7567436", "0.7567436", "0.7567436", "0.7567436", "0.7567436", "0.7567436", "0.7567436", "0.7554081", "0.7505464", "0.7505464", "0.7505464", "0.7489693", "0.7484806", "0.7451685", "0.7451685", "0.74287", "0.7423354", "0.7417536", "0.7410771", "0.7407709", "0.7406369", "0.7403732", "0.7403732", "0.7403732", "0.7403732", "0.7403732", "0.7403444", "0.7403444", "0.7403444", "0.7403444", "0.7403444", "0.7403444", "0.74016666", "0.73897123", "0.73897123", "0.73817635", "0.73749745", "0.7372817", "0.7372817", "0.7369877", "0.7368745", "0.7364109", "0.73509187", "0.73497707", "0.73497707", "0.7338186", "0.7330252", "0.7317554", "0.7315221", "0.7310791", "0.7309111", "0.73061", "0.73061", "0.729942", "0.72951716", "0.72864306", "0.7272192", "0.72719735", "0.7270514", "0.727002", "0.72658366", "0.7264228", "0.7257292", "0.7256234", "0.7245947", "0.7243671", "0.7243109", "0.7243109", "0.7243109", "0.7243109", "0.7242896", "0.7240404", "0.723429", "0.7222756", "0.7219747", "0.7200272", "0.7200272", "0.7200272", "0.7200272", "0.71967304", "0.71967304", "0.7194748", "0.7189342", "0.7189027", "0.718461", "0.7183302", "0.71769863" ]
0.8044562
0
Search for the kontrachent corresponding to the query.
@Override @Transactional(readOnly = true) public Page<Kontrachent> search(String query, Pageable pageable) { log.debug("Request to search for a page of Kontrachents for query {}", query); return kontrachentSearchRepository.search(queryStringQuery(query), pageable); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }", "@Override\n public Data3DPlastic search() {\n return super.search();\n }", "Search getSearch();", "public abstract S getSearch();", "public void search() {\r\n \t\r\n }", "@In String search();", "abstract public void search();", "List<Corretor> search(String query);", "public void search() {\n }", "@Override\n\tpublic NodeIterator search(String queryString) throws Exception {\n\t\treturn null;\n\t}", "public QueryInfoSearch getQueryInfoSearch() {\n if (queryInfoSearch != null) return queryInfoSearch;\n queryInfoSearch = new QueryInfoSearch();\n return queryInfoSearch;\n }", "@Override\n\tpublic void search() {\n\t}", "@Override\r\n\tpublic void search() {\n\r\n\t}", "@ActionTrigger(action=\"KEY-ENTQRY\", function=KeyFunction.SEARCH)\n\t\tpublic void spriden_Search()\n\t\t{\n\t\t\t\n\t\t\t\texecuteAction(\"QUERY\");\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t}", "public Utwor search2(String query) {\n for (Utwor utwor : utwory) {\n if (utwor.getTitle().equals(query)) {\n return utwor;\n }\n }\n return null;\n }", "void search();", "void search();", "public NsSearchResult<RecT> search() {\n Object searchRecord = toNativeQuery();\n NsSearchResult<RecT> result = clientService.search(searchRecord);\n if (!result.isSuccess()) {\n NetSuiteClientService.checkError(result.getStatus());\n }\n return result;\n }", "List<OwnerOperatorDTO> search(String query);", "@Override\r\n\t\t\tpublic List<ScoredDocument> search(Query query) {\n\t\t\t\treturn null;\r\n\t\t\t}", "List<Cemetery> search(String query);", "private void searchCharacter(String query) {\n String filter = this.characterFilter.getValue();\n String sort = this.sort.getValue();\n \n // Get the user defined comparator\n Comparator<Character> c = getCharacterComparator(filter, sort);\n\n // Create a character used for comparison\n Character character = createCharacterForQuery(filter, query);\n \n // Find all matches\n GenericList<Character> results = DashboardController.library.getCharacterTable().findAll(character, c);\n\n // Cast results to an array\n Character[] characterResults = characterResultsToArray(results, c);\n\n // Load the results in a new scene\n this.loadCharacterResultsView(characterResults);\n }", "Customer search(String login);", "public V search(K key);", "@java.lang.Override\n public com.clarifai.grpc.api.Search getSearch() {\n if (inputSourceCase_ == 10) {\n return (com.clarifai.grpc.api.Search) inputSource_;\n }\n return com.clarifai.grpc.api.Search.getDefaultInstance();\n }", "Page<Tbc_analises_componente> search(String query, Pageable pageable);", "ArtistCommunitySearch getArtistSearch();", "@Action\r\n public String search() {\n ServiceFunctions.clearCache();\r\n\r\n if (isAdmin()) {\r\n return adminSearch();\r\n }\r\n\r\n return publicSearch();\r\n }", "public MagicSearch createMagicSearch();", "List<ShipmentInfoPODDTO> search(String query);", "private void search(String product) {\n // ..\n }", "interface FindByQueryWithQuery<T> extends TerminatingFindByQuery<T> {\n\n\t\t/**\n\t\t * Set the filter query to be used.\n\t\t *\n\t\t * @param query must not be {@literal null}.\n\t\t * @return new instance of {@link TerminatingFindByQuery}.\n\t\t * @throws IllegalArgumentException if query is {@literal null}.\n\t\t */\n\t\tTerminatingFindByQuery<T> matching(Query query);\n\n\t}", "public Show search(String title){\n return super.search(title);\n }", "List<SearchResult> search(SearchQuery searchQuery);", "public ResultMap<BaseNode> findNodes(ObjectNode query, String searchTerm, ObjectNode traverse);", "private void searchFunction() {\n\t\t\r\n\t}", "List<DataTerm> search(String searchTerm);", "List<Codebadge> search(String query);", "public void search(String query) {\n Log.i(TAG, \"search: \" + query);\n artistInteractor.searchInItunes(query, this);\n }", "public List search() {\n\t\tSessionFactory sf = new Configuration().configure()\n\t\t\t\t.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\tQuery q = s.createQuery(\"from cat_vo\");\n\t\tList ls = q.list();\n\t\treturn ls;\n\t}", "SearchResult<TimelineMeta> search(SearchQuery searchQuery);", "@Override\n\tpublic List queryfind(String type, String query)\n\t{\n\t\treturn teataskMapper.queryfind(type, query);\n\t}", "@Override\r\n\tpublic Set<Article> search(String keyworkds) {\n\t\treturn null;\r\n\t}", "public OrderedPair search(String key) {\n return getRoot().search(key.toLowerCase());\n }", "private void searchWord()\n {\n String inputWord = searchField.getText();\n \n if(inputWord.isEmpty())\n queryResult = null;\n \n else\n {\n char firstLetter = inputWord.toUpperCase().charAt(0);\n \n for(int i = 0 ; i < lexiNodeTrees.size() ; i++)\n {\n if(lexiNodeTrees.get(i).getCurrentCharacter() == firstLetter)\n {\n queryResult = lexiNodeTrees.get(i).searchWord(inputWord, false);\n i = lexiNodeTrees.size(); // escape the loop\n }\n }\n }\n \n // update the list on the GUI\n if(queryResult != null)\n {\n ArrayList<String> words = new ArrayList<>();\n for(WordDefinition word : queryResult)\n {\n words.add(word.getWord());\n }\n \n // sort the list of words alphabetically \n Collections.sort(words);\n \n // display the list of wordsin the UI\n DefaultListModel model = new DefaultListModel();\n for(String word : words)\n {\n model.addElement(word);\n }\n\n this.getSearchSuggestionList().setModel(model);\n }\n \n else\n this.getSearchSuggestionList().setModel( new DefaultListModel() );\n }", "ArtistCommunitySearch searchConnectedArtist(ArtistCommunitySelectableIdentity selectedIdentity);", "List<Card> search(String searchString) throws PersistenceCoreException;", "SearchResult<TimelineMeta> search(SearchParameter searchParameter);", "public String search(String query){\n Receipt receipt = receipts.get(query);\n String message;\n if(receipt != null)\n message = receipt.toString();\n else\n message = \"Receipt not found.\";\n return message;\n }", "public Search(Connection con, String inpt) {\n index = 0;\n conn = con;\n results = new ArrayList<>();\n input = inpt;\n query(conn, input);\n }", "public List<Product> search(String searchString);", "private void search(Object value)\r\n\t\t{\n\r\n\t\t}", "@Override\r\n\tpublic List<Product> search(String key) {\n\tProductExample example = new ProductExample();\r\n\texample.createCriteria().andNameLike(\"%\"+key+\"%\");\r\n\texample.setOrderByClause(\"id desc\");\r\n\tList<Product> list = productMapper.selectByExample(example);\r\n\tsetAll(list);\r\n\treturn list;\r\n\t\t}", "@Override\r\n\tpublic Customer search(String name) {\n\t\treturn null;\r\n\t}", "CampusSearchQuery generateQuery();", "public SearchResults search(String queryString) {\n\n Timer.Context ctx = m_searchTimer.time();\n\n SearchResults searchResults = new SearchResults();\n\n for (String term : s_tokenSplitter.splitToList(queryString)) {\n\n Term t = Term.parse(term);\n\n Statement searchQuery = select(Constants.Schema.C_TERMS_RESOURCE).from(Constants.Schema.T_TERMS)\n .where(eq(Constants.Schema.C_TERMS_CONTEXT, Context.DEFAULT_CONTEXT.getId()))\n .and( eq(Constants.Schema.C_TERMS_FIELD, t.getField()))\n .and( eq(Constants.Schema.C_TERMS_VALUE, t.getValue()));\n\n // TODO: Use async DB calls; Get attrs and metrics concurrently\n for (Row row : m_session.execute(searchQuery.toString())) { // FIXME: toString()?\n String id = row.getString(Constants.Schema.C_TERMS_RESOURCE);\n Optional<Map<String, String>> attrs = fetchResourceAttributes(Context.DEFAULT_CONTEXT, id);\n Collection<String> metrics = fetchMetricNames(Context.DEFAULT_CONTEXT, id);\n\n searchResults.addResult(new Resource(id, attrs), metrics);\n }\n }\n\n try {\n return searchResults;\n }\n finally {\n ctx.stop();\n }\n }", "@RequestMapping(value = \"search\")\n \tpublic String search(@RequestParam String q) {\n \t\tLong incidentId = Long.valueOf(q);\n \t\treturn \"forward:/incident/\" + incidentId;\n \t}", "public void search() {\n try {\n for(int i = 0; i < this.queries.size(); i++){\n search(i);\n // in case of error stop\n if(!this.searchOK(i)){\n System.out.println(\"\\t\" + new Date().toString() + \" \" + db + \" Search for rest queries cancelled, because failed for query \" + i + \" : \" + this.queries.get(i));\n break;\n }\n }\n } catch (UnsupportedEncodingException ex) {\n Logger.getLogger(EntrezSearcher.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "entities.Torrent.SearchRequest getSearchRequest();", "void searchProbed (Search search);", "public abstract HashMap search(String keyword);", "SearchResponse query(SearchRequest request, Map<SearchParam, String> params);", "private Search() {}", "private void search()\n {\n JTextField searchField = (currentSearchView.equals(SEARCH_PANE_VIEW))? searchBar : resultsSearchBar;\n String searchTerm = searchField.getText();\n \n showTransition(2000);\n \n currentPage = 1;\n showResultsView(true);\n paginate(1, getResultsPerPage());\n\n if(searchWeb) showResultsTableView(WEB_RESULTS_PANE);\n else showResultsTableView(IMAGE_RESULTS_PANE);\n\n \n showSearchView(RESULTS_PANE_VIEW);\n resultsSearchBar.setText(searchTerm);\n }", "public search() {\n }", "Page<TypeBonDTO> search(String query, Pageable pageable);", "@java.lang.Override\n public com.clarifai.grpc.api.SearchOrBuilder getSearchOrBuilder() {\n if (inputSourceCase_ == 10) {\n return (com.clarifai.grpc.api.Search) inputSource_;\n }\n return com.clarifai.grpc.api.Search.getDefaultInstance();\n }", "@java.lang.Override\n public com.clarifai.grpc.api.Search getSearch() {\n if (searchBuilder_ == null) {\n if (inputSourceCase_ == 10) {\n return (com.clarifai.grpc.api.Search) inputSource_;\n }\n return com.clarifai.grpc.api.Search.getDefaultInstance();\n } else {\n if (inputSourceCase_ == 10) {\n return searchBuilder_.getMessage();\n }\n return com.clarifai.grpc.api.Search.getDefaultInstance();\n }\n }", "List<ResultDTO> search(String query);", "public PostingsList search( Query query, int queryType, int rankingType, int structureType ) {\r\n switch(queryType){\r\n case Index.INTERSECTION_QUERY : \r\n return searchIntersection( query, rankingType, structureType);\r\n\r\n case Index.PHRASE_QUERY :\r\n return searchPhrase( query, rankingType, structureType);\r\n default:\r\n break;\r\n }\r\n\r\n return null;\r\n }", "public void search() throws SQLException;", "public void performSearch() {\n OASelect<QueryInfo> sel = getQueryInfoSearch().getSelect();\n sel.setSearchHub(getSearchFromHub());\n sel.setFinder(getFinder());\n getHub().select(sel);\n }", "List<TypePatientPropertyCondition> search(String query);", "public boolean search(String key){\n DataPair dp = getDataPair(key);\n BTNode out=null;\n if (dp != null)\n out = search(dp);\n return out != null;\n }", "@Override\r\n\tpublic ResponseWrapper searchMedia(RequestWrapper request ) {\r\n\r\n\t\tIHandler handler = HandlerFactory.getHandler(request.getcategoryType());\r\n\t\t\t\t\t\t\r\n\t\tResponseWrapper response = handler.search(request);\r\n\t\treturn response;\r\n\t}", "public void search(Map<String, String> searchParam);", "public abstract Solution<T> search(Searchable<T> s);", "SearchResponse search(SearchRequest searchRequest) throws IOException;", "public Search() throws Exception {\n sesion = Controller.getSession();\n fullTextSesion = org.hibernate.search.Search.getFullTextSession(sesion);\n }", "List<Revenue> search(String query);", "@Override\n @Transactional(readOnly = true)\n public List<Goods> search(String query) {\n log.debug(\"Request to search Goods for query {}\", query);\n return StreamSupport\n .stream(goodsSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n }", "default E find(String key, Object value) {\n\t\tSearchCritera searchCritera = new SearchCritera(key, value);\n\t\treturn find(() -> searchCritera);\n\t}", "public void searchByAlbum()\n {\n String input = JOptionPane.showInputDialog(null,\"Enter the album you'd like to search for:\");\n input = input.replaceAll(\" \", \"_\").toUpperCase();\n \n Collections.sort(catalog);\n int index = Collections.binarySearch(catalog, new Album(\"\",input,null), null);\n if(index >= 0)\n System.out.println(\"Album:\\t\" + catalog.get(index).getAlbum()\n + \"\\nArtist: \" + catalog.get(index).getArtist()+\"\\n\");\n else System.err.println(\"Album '\" + input + \"' not found!\\n\"); \n }", "public List<ImgDescriptor> search(ImgDescriptor queryF, int k) {\n\t\tfor (int i = 0; i < descriptors.size(); i++) {\n\t\t\tdescriptors.get(i).distance(queryF);\n\t\t}\n\t\tCollections.sort(descriptors);\n\t\t\n\t\treturn descriptors.subList(0, k);\n\t}", "@Override\n\tprotected void executeSearch(String term) {\n\t\t\n\t}", "@Override\n\tpublic boolean isSearching() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isSearching() {\n\t\treturn false;\n\t}", "public Result search (SpanQuery query) {\n final Krill krill = new Krill(query);\n krill.getMeta().setSnippets(true);\n return this.search(krill);\n }", "public ServiceInstance queryInstanceByKey(ServiceInstanceQuery query);", "public interface SearchQuerySet extends QuerySet\n{\n\n // for AbstractSearch\n public static final int STAT_MODELS = 1;\n public static final int STAT_CLUSTERS = 2;\n public static final int STAT_GENOMES = 4;\n public static final int STAT_MODEL_CLUSTERS = 8;\n\n public String getStatsById(Collection data);\n public String getStatsByQuery(String query);\n public String getStatsById(Collection data,int stats);\n public String getStatsByQuery(String query,int stats);\n \n // for BlastSearch\n public String getBlastSearchQuery(Collection dbNames, Collection keys, KeyTypeUser.KeyType keyType);\n \n //for ClusterIDSearch\n public String getClusterIDSearchQuery(Collection input, int limit, int[] DBs, KeyTypeUser.KeyType keyType);\n \n // for ClusterNameSearch\n public String getClusterNameSearchQuery(Collection input, int limit, int[] DBs, KeyTypeUser.KeyType keyType);\n \n // for DescriptionSearch\n public String getDescriptionSearchQuery(Collection input, int limit, int[] DBs, KeyTypeUser.KeyType keyType);\n \n // for GoSearch \n public String getGoSearchQuery(Collection input, int limit, KeyTypeUser.KeyType keyType);\n \n // for GoTextSearch\n public String getGoTextSearchQuery(Collection input, int limit, KeyTypeUser.KeyType keyType);\n \n // for IdSearch\n public String getIdSearchQuery(Collection input, int limit, int[] DBs, KeyTypeUser.KeyType keyType);\n \n // for QueryCompSearch\n public String getQueryCompSearchQuery(String comp_id, String status, KeyTypeUser.KeyType keyType);\n \n // for QuerySearch\n public String getQuerySearchQuery(String queries_id, KeyTypeUser.KeyType keyType); \n \n // for SeqModelSearch\n public String getSeqModelSearchQuery(Collection model_ids, KeyTypeUser.KeyType keyType);\n \n // for UnknowclusterIdSearch\n public String getUnknownClusterIdSearchQuery(int cluster_id, KeyTypeUser.KeyType keyType);\n \n // for ProbeSetSearch\n public String getProbeSetSearchQuery(Collection input, int limit, KeyTypeUser.KeyType keyType);\n \n // for ProbeSetKeySearch\n public String getProbeSetKeySearchQuery(Collection input, int limit, KeyTypeUser.KeyType keyType);\n \n // for QueryTestSearch\n public String getQueryTestSearchQuery(String query_id, String version, String genome_id);\n \n // for QueryStatsSearch\n public String getQueryStatsSearchQuery(List query_ids,List DBs);\n \n // for PskClusterSearch\n public String getPskClusterSearchQuery(int cluster_id,KeyTypeUser.KeyType keyType);\n \n // for ClusterCorrSearch\n public String getClusterCorrSearchQuery(int cluster_id, int psk_id, KeyTypeUser.KeyType keyType);\n \n // for UnknownGenesSearch\n public String getUnknownGenesSearchQuery(Collection sources, KeyTypeUser.KeyType keyType);\n \n}", "private void searchExec(){\r\n\t\tString key=jComboBox1.getSelectedItem().toString();\r\n\t\tkey=NameConverter.convertViewName2PhysicName(\"Discount\", key);\r\n\t\tString valueLike=searchTxtArea.getText();\r\n\t\tList<DiscountBean>searchResult=discountService.searchDiscountByKey(key, valueLike);\r\n\t\tjTable1.setModel(ViewUtil.transferBeanList2DefaultTableModel(searchResult,\"Discount\"));\r\n\t}", "entities.Torrent.LocalSearchRequest getLocalSearchRequest();", "private void searchBook(String query) {\n String filter = this.bookFilter.getValue();\n String sort = this.sort.getValue();\n \n // Get the user defined comparator\n Comparator<Book> c = getBookComparator(filter, sort);\n\n // Create a book used for comparison\n Book book = createBookForQuery(filter, query);\n \n // Find all matches\n GenericList<Book> results = DashboardController.library.getBookTable().findAll(book, c);\n\n // Cast results to an array\n Book[] bookResults = bookResultsToArray(results, c);\n\n // Load the results in a new scene\n this.loadBookResultsView(bookResults);\n }", "public Person searchPerson(String k, char c) {\n\t\t\n\t\tPerson personR ;\n\n\t\tif(c == DataBase.TREE_NAME) {\n\t\t\tpersonR = treeName.searchE(k);\n\t\t}else if(c == DataBase.TREE_LASTNAME) {\n\t\t\tpersonR = treeLastname.searchE(k);\n\t\t}else if(c == DataBase.TREE_FULLNAME) {\n\t\t\tpersonR = treeFullName.searchE(k);\n\t\t}else {\n\t\t\tpersonR = treeCode.searchE(k);\n\t\t}\n\t\t\n\t\treturn personR;\n\t\t\n\t}", "public interface ActorRepository extends Neo4jRepository<Actor, Long> {\n\n\t\n\t@Query(\"MATCH (p:Actor) WHERE lower(p.name) CONTAINS lower($name) or lower(p.fullName) CONTAINS lower($name) RETURN p ORDER BY p.name\")\n\tCollection<Actor> findByNameLike(@Param(\"name\") String name);\n\n\t\n\t\n}", "List<LectureDTO> search(String query);", "@Transactional(readOnly = true)\n public List<Patient> search(String query) {\n log.debug(\"Request to search Patients for query {}\", query);\n List<Patient> result = StreamSupport\n .stream(patientSearchRepository.search(wrapperQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n return result;\n }", "public interface Queryable {\n\n /**\n * Query structure by Dewey key. This method returns a pointer to the item located by following\n * the Dewey key given as an argument. The search is relative, i.e., treats the root of this\n * structure as the overall root.\n * @param path\n * the key to search for, represented in [@link DeweyKey} array form\n * @return a pointer accessed through the key, or <code>null</code> if the structure does not\n * contain the argument path\n */\n Pointer query(int[] path);\n\n}", "public void searchTest() {\n\t\ttry {\n\t\t\tString keyword = \"操作道具\";\n\t\t\t// 使用IKQueryParser查询分析器构造Query对象\n\t\t\tQuery query = IKQueryParser.parse(LogsEntry.INDEX_FILED_CONTENT, keyword);\n\n\t\t\t// 搜索相似度最高的5条记录\n\t\t\tint querySize = 5;\n\t\t\tTopDocs topDocs = isearcher.search(query, null, querySize, sort);\n\t\t\tlogger.info(\"命中:{}\", topDocs.totalHits);\n\t\t\t// 输出结果\n\t\t\tScoreDoc[] scoreDocs = topDocs.scoreDocs;\n\t\t\tfor (int i = 0; i < scoreDocs.length; i++) {\n\t\t\t\tDocument targetDoc = isearcher.doc(scoreDocs[i].doc);\n\t\t\t\tlogger.info(\"内容:{}\", targetDoc.toString());\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}", "public Inventory inventorySearch (TheGroceryStore g, String searchKey);" ]
[ "0.65963745", "0.65350497", "0.6460849", "0.6368373", "0.62321293", "0.6196971", "0.6103736", "0.6097956", "0.6086325", "0.607171", "0.6005717", "0.6002434", "0.59956723", "0.59903085", "0.5983164", "0.59141695", "0.59141695", "0.5912129", "0.5894773", "0.5888606", "0.5885466", "0.5849899", "0.5832055", "0.58283305", "0.5783725", "0.57744443", "0.57456464", "0.57453984", "0.57431835", "0.573126", "0.57183236", "0.5707983", "0.57053745", "0.56626534", "0.56205195", "0.5612989", "0.5609786", "0.55969316", "0.55940396", "0.55930674", "0.55846155", "0.5573891", "0.5565015", "0.55642897", "0.5559418", "0.5557226", "0.555268", "0.55430835", "0.5540247", "0.55378705", "0.552987", "0.55295986", "0.5508216", "0.5504619", "0.550289", "0.54981387", "0.54851604", "0.54837596", "0.54698193", "0.54662436", "0.5458826", "0.5454069", "0.5451512", "0.5449925", "0.54442096", "0.5440375", "0.5430805", "0.5429533", "0.54243743", "0.54234123", "0.5420015", "0.5415412", "0.54115474", "0.5408865", "0.540521", "0.54029137", "0.53974015", "0.5396555", "0.5382733", "0.53764963", "0.5373364", "0.5362833", "0.53627354", "0.5361372", "0.53611654", "0.5358934", "0.5358934", "0.5333901", "0.5325616", "0.5318046", "0.531743", "0.5317222", "0.5315642", "0.5315342", "0.53128695", "0.5312833", "0.5311238", "0.53107196", "0.5307895", "0.5307394" ]
0.65804726
1
does nothing in a demo
public void execute(ProcessInstance processInstance, NMC context, Map<String, String> map) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void demo() {\n\t\tlab_2_2_5();\n\n\t}", "public static void thisDemo() {\n\t}", "@Override\n public void setup() {\n }", "@Override\n public void setup() {\n }", "private stendhal() {\n\t}", "@Override\n public void setup() {\n\n }", "public Demo() {\n\t\t\n\t}", "protected static void demoMethod( ) {\n System.out.println(\"demoMethod for singleton\");\n }", "public void doNothing(){\n\t}", "private void test() {\n\n\t}", "@Override\n protected void setup() {\n }", "public void furyo ()\t{\n }", "void pramitiTechTutorials() {\n\t\n}", "public static void doNothing(){\n\t}", "public void setup()\n {\n }", "public void mo4359a() {\n }", "public void mo38117a() {\n }", "private void Nice(){\n }", "Sample start();", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tno();\n\t\t\t\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "void test() {\r\n\t\tSystem.out.println(\"test - DemoTest\");\r\n\t}", "Petunia() {\r\n\t\t}", "@Override\r\n\tvoid makeNoise() {\n\t\tSystem.out.println(\"Moo\");\r\n\t}", "public void test( ){\n\t\t\tSystem.out.println(\"test method\"); //no input, no output\n\t\t}", "public void setup() {\n }", "public static void example1() {\n // moved to edu.jas.application.Examples\n }", "public void setup() {\r\n\r\n\t}", "public static void show() {\n\t\t\n\t}", "public DemoPanel() {\n }", "public static void dummyTest(){}", "public static void dummyTest(){}", "public static void main(String[] args) {demo6();\r\n\t\t\r\n\t}", "private test5() {\r\n\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void lab() {\n\t\t\n\t}", "private DungeonBotsMain() {\n\t\t// Does nothing.\n\t}", "public void working()\n {\n \n \n }", "public void gored() {\n\t\t\n\t}", "public Demo3() {}", "public void init() {\r\n // nothing to do\r\n }", "public void smell() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\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 }", "public void test() {\n\t\tSystem.out.println(\"Still here, keep going dude.\");\n\t}", "default void show1() {\n\t\t\n\t\t\n\t}", "private ThoseMain()\n {\n // Do nothing\n }", "private PrintUtilities()\n {\n // Do nothing.\n }", "@Override\n public void perish() {\n \n }", "private static void oneUserExample()\t{\n\t}", "public void hello(){\n\t\t\r\n \t\r\n\t\t\r\n\t}", "@Override\n\tpublic void intro() {\n\t\t\n\t}", "public static void hvitetest1w(){\r\n\t}", "public void startDemo() {\n // Welcoming display\n this.view.displayMenu();\n\n // State of the inventory and the users\n this.view.displaySystem(this.system);\n\n this.view.displayExampleMessage();\n\n // Example with a student\n Student s = this.system.getStudents().get(0);\n\n Calendar startDate = Calendar.getInstance();\n Calendar endDate = Calendar.getInstance();\n endDate.setTimeInMillis(endDate.getTimeInMillis() + 6*24*60*60*1000);\n\n Loan l = s.book(Model.IPAD3, new Period(startDate, endDate));\n this.system.checkLoan(l);\n\n this.view.displayBorrow(s, l);\n this.system.putAway(l);\n this.view.displayReturn(s, l);\n\n // Example with a teacher\n\n Teacher t = this.system.getTeachers().get(0);\n\n Loan l2 = s.book(Model.XPERIAZ, new Period(startDate, endDate));\n this.system.checkLoan(l2);\n\n this.view.displayBorrow(t, l2);\n this.system.putAway(l2);\n this.view.displayReturn(t, l2);\n\n }", "public static void show() {\n\n\t}", "@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}", "public void mo12930a() {\n }", "public void mo55254a() {\n }", "public void mo97908d() {\n }", "public void startup()\n\t{\n\t\t; // do nothing\n\t}", "@Override\n public void test() {\n \n }", "public Fun_yet_extremely_useless()\n {\n\n }", "@Override\n\tpublic void init() {\n\t\t// Nothing to do in this example\n\t}", "public final void mo51373a() {\n }", "public void sampleOperation() {\n\t}", "@Override\n public String describe() {\n return null;\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\tpublic void view() {\n\t\t\n\t}", "@Override\n\tpublic void sampleNode() {\n\n\t}", "@Override\n\t\t\tpublic String run() {\n\t\t\t\treturn null;\n\t\t\t}", "public static void objectDemo() {\n\t}", "public void render() {\n\t\t// do nothing... as we should\n\t}", "public static void main(String[] args) {\n demo5();\n }", "public void mo21877s() {\n }", "@Override\n public void makeNoise() {\n System.out.println(getName()+ \" Oink Oink\");\n }", "@Override\r\n\tpublic void display() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void display() {\n\t\t\r\n\t}", "public void mo21825b() {\n }", "public void mo9848a() {\n }", "protected void setup() {\r\n }", "public void doit() {\n // Do nothing\n }", "public void testDummy() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "void mo17013d();", "public static void initial(){\n\t}", "private final void i() {\n }", "void berechneFlaeche() {\n\t}", "public void test(){//no input no output\n System.out.println(\"test method\");\n\n }", "private void presentShowcaseSequence() {\n }", "@Override\n\tpublic void makeNoise() {\n\t\tSystem.out.println(\"Dog goes bark!!! \");\n\n}", "public void makeNoise() {\n\t\tSystem.out.println(toString() + \" grunted\");\n\t}", "protected void display() {\n\r\n\t}", "public void test() {\n\t}" ]
[ "0.68579745", "0.6791555", "0.63562196", "0.63562196", "0.6308156", "0.6298465", "0.6289347", "0.6174535", "0.6174432", "0.61587614", "0.615207", "0.6151343", "0.61457914", "0.6135589", "0.61004746", "0.60628283", "0.60287917", "0.60206497", "0.6015875", "0.600717", "0.6000389", "0.5984085", "0.59799767", "0.59782356", "0.5929675", "0.59294873", "0.5920795", "0.59191483", "0.5907759", "0.5901545", "0.5897361", "0.5897361", "0.58857656", "0.58693", "0.5863541", "0.58538604", "0.5850672", "0.58315027", "0.58292156", "0.5827328", "0.5819127", "0.58156", "0.5813136", "0.5808295", "0.5808295", "0.5808295", "0.5808295", "0.5808295", "0.5808295", "0.5808295", "0.5805904", "0.57987237", "0.5796319", "0.57931477", "0.5778718", "0.57780045", "0.57771504", "0.5776594", "0.57761353", "0.57636", "0.574113", "0.573948", "0.57378936", "0.5730892", "0.5730644", "0.5729761", "0.5728", "0.57221794", "0.5709895", "0.57094187", "0.5701775", "0.5701314", "0.5699709", "0.5699427", "0.56969154", "0.56958896", "0.56855565", "0.5673213", "0.56717056", "0.56652427", "0.5664332", "0.56506926", "0.56506926", "0.5649844", "0.56484985", "0.56431425", "0.56420976", "0.56417733", "0.56409496", "0.56409496", "0.56365603", "0.5636435", "0.56359", "0.5631682", "0.5631563", "0.5628662", "0.56262636", "0.5625968", "0.56214297", "0.56207514", "0.5619953" ]
0.0
-1
Overridden to include exception ID.
@Override public String toString() { String localizedMessage = getLocalizedMessage(); return getClass().getName() + ": [" + id.code() + "] " + (localizedMessage == null ? "" : localizedMessage); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "BasicException.Parameter getIdParameter();", "public int getExceptionNumber(\n ) {return (0);}", "@Override\n protected String handleGetExceptionKey()\n {\n\n final String type = this.getExceptionType();\n final int dotIndex = type.lastIndexOf(\".\");\n\n // the dot may not be the last character\n return StringUtilsHelper.toResourceMessageKey((dotIndex < (type.length() - 1)) ? type.substring(dotIndex + 1) : type);\n\n }", "public IDException(int id)\r\n\t{\r\n\t\tsuper(\"An error occured. You cannot have the ID Number be 0 or lower. The number you entered is \" + id + \".\");\r\n\t}", "String getCauseException();", "public String toString()\n {\n StringBuffer buf = new StringBuffer(\"EASOutOfBandExceptionSourceId\");\n buf.append(\": sourceId=0x\").append(Integer.toHexString(this.exception_OOB_source_ID));\n return buf.toString();\n }", "public ItemNotFoundException(String e){\r\n super(e+\" was not found!\");\r\n }", "String getException();", "String getException();", "public IndividualRequestNotFoundException(Long requestId) {\n super(ResourceBundle.getBundle(RESOURCE_STRING_PATH)\n .getString(INDIVIDUAL_REQUEST_NOT_FOUND_EXCEPTION_KEY) + requestId);\n }", "public Integer geteId() {\n return eId;\n }", "public Integer geteId() {\n return eId;\n }", "public long getExceptionCodeAsLong() {\r\n\t\treturn this.exceptionCode_;\r\n\t}", "public int getExceptionIndex() {\n/* 412 */ return (this.value & 0xFFFF00) >> 8;\n/* */ }", "public RecordNotFoundException() {\n super();\n }", "public void scemess() {\n\t\tUserExcep ue = new UserExcep();\n\t\t\n\t\ttry {\n\t\t\t\tthrow new UserExcep(\"Try different ID\");\n\t\t\t\t\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}", "public DuplicateIDException(String id) {\n\t\tsuper(\"Duplicate id: %s\" + id);\n\t}", "public ItemNotFoundException() {\n super();\n }", "public void seteId(Integer eId) {\n this.eId = eId;\n }", "public void seteId(Integer eId) {\n this.eId = eId;\n }", "EntryNotFoundException() {\n super();\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn \"Exception is..\" + msg;\r\n\t}", "public SureBetNotFoundException(Exception exception) {\r\n\t\tsuper(exception);\r\n\t}", "public Integer getEid() {\n\t\treturn eid;\n\t}", "public String toString ()\n {\n if (exception != null) {\n return exception.toString();\n } else {\n return super.toString();\n }\n }", "public String getExceptioninfo() {\n return exceptioninfo;\n }", "@Override\r\n\tpublic Long getEventId() {\n\t\treturn null;\r\n\t}", "public int getEid() {\r\n\treturn eid;\r\n\t}", "public abstract java.lang.Integer getEspe_id();", "public ReviewEntityNotFoundException(String message, ExceptionData data, long id) {\n super(message, data);\n\n this.id = id;\n }", "public String getExceptionType() {\n return this.excType;\n }", "public IDNotContainException(String message)\n\t {\n\t super(message);\n\t }", "public ReviewEntityNotFoundException(String message, Throwable cause, long id) {\n super(message, cause);\n\n this.id = id;\n }", "public Exception getException ()\n {\n return exception;\n }", "public ReviewEntityNotFoundException(String message, Throwable cause, ExceptionData data, long id) {\n super(message, cause, data);\n\n this.id = id;\n }", "public InvoiceNotFoundException(int invoice_input)\n {\n super(\"Invoice ID: \");\n invoice_error = invoice_input;\n }", "public Exception getException ()\r\n {\r\n return exception_;\r\n }", "public long getEventId() {\n return eventId;\n }", "String getOnExceptionBegin(OnException onException, long row);", "String getOnExceptionEnd();", "@Override\r\n\tpublic String toString() {\n\t\treturn \"com.cg.Exercise4Exception\"+super.getMessage();\r\n\t}", "public Exception getException() {\r\n return exception;\r\n }", "public Throwable getOriginalException()\n/* 28: */ {\n/* 29:56 */ return this.originalE;\n/* 30: */ }", "public Integer getEventid() {\n return eventid;\n }", "@ExceptionHandler\n\tpublic final ResponseEntity<Object> handleTourIdException(TourIdException ex, WebRequest request){\n\t\tTourIdExceptionRes exceptionResponse = new TourIdExceptionRes(ex.getMessage());\n\t\t\treturn new ResponseEntity(exceptionResponse,HttpStatus.BAD_REQUEST);\n\t}", "protected void getEventIDs() throws Throwable\n {\n _eventID = _helper.getProperties().getRetrievePendingEventId();\n _ackEventID = _helper.getProperties().getRetrievePendingAckEventId();\n }", "public Exception getException()\n {\n return exception;\n }", "public InvalidItemIDException (String message){\n super(message);\n }", "public String getEid() {\n return eid;\n }", "public EmployeeNotFoundException() {\n super();\n }", "public ExceptionInfo getExceptionInfo() {\n return exceptionInfo;\n }", "@Override\n\tprotected Respond exceptHandle(Exception e) {\n\t\treturn SqlTool.normalExceptionDeal(new RspSingleRow(), e);\n\t}", "public Exception getException()\n\t{\n\t\treturn exception;\n\t}", "public ErrorStatusException(String message, String id) {\n super(message);\n this.id = id;\n }", "public EmployeeNotFoundException(String message) {\n super(message);\n }", "protected abstract int getErrorTokenId();", "UsedExceptions getExceptions();", "public AccountIDNotRecognisedException() {\n\t\tsuper(\"Not found an ID corresponding to any account on the system\");\n\t}", "public Exception getException() {\n return exception;\n }", "public Long getEventID()\n/* */ {\n/* 111 */ return this.eventID;\n/* */ }", "@JsonProperty(\"exception\")\n public ExceptionInfo getException() {\n return exception;\n }", "@Override\r\n\tpublic void doException() {\n\r\n\t}", "public EASOutOfBandExceptionSourceId(final int exception_OOB_source_ID)\n {\n this.exception_OOB_source_ID = exception_OOB_source_ID & 0xFFFF;\n }", "public Exception getException() {\n return exception;\n }", "public UserIDNotAvailableException(){\r\n super();\r\n }", "public TeWeinigGeldException(Exception e) {this.e = e;}", "public ObjectNotFoundException() {\r\n super(\"ObjectNotFound Exception\");\r\n }", "public DuplicateEntryException(String message, Object identifier) {\n super(message);\n this.identifier = identifier;\n }", "public java.lang.String getErrorId() {\n return errorId;\n }", "public java.lang.String getException() {\n return exception;\n }", "public java.lang.String getErrorId() {\n return errorId;\n }", "public InvalidIDException(String msg) {\n super(msg);\n }", "public Exception() {\n\t\t\tsuper();\n\t\t}", "public String toString()\n {\n StringBuffer buf = new StringBuffer(\"EASInBandExceptionDescriptor\");\n buf.append(\": rfChannel=\").append(this.exception_RF_channel & 0xFF);\n buf.append(\"; qamFrequency=\").append(this.m_exceptionFrequency / 1000000);\n buf.append(\"; programNumber=0x\").append(Integer.toHexString(this.exception_program_number));\n return buf.toString();\n }", "public Long getEid() {\n return eid;\n }", "public Long getEid() {\n return eid;\n }", "public ProductNotFoundException(String productId) {\n super();\n this.productId = productId;\n }", "public ReviewEntityNotFoundException(String message, long id) {\n super(message);\n\n this.id = id;\n }", "public String getID() {\n\t\treturn iReason;\n\t}", "public String getOrderexcuteidentifier() {\n\t\treturn orderexcuteidentifier;\n\t}", "public int getEventID()\n {\n return eventID;\n }", "public BusinessObjectException(Exception e) {\r\n super( \"\" + e );\r\n }", "public int getEventID() {\r\n return eventID;\r\n }", "ResolvedType getSpecifiedException(int index);", "public ImageIcon getExceptionIcon() {\r\n\t\treturn exceptionIcon;\r\n\t}", "private PtTlsErrorCauseEnum(final int id) {\n this.id = id;\n }", "private void log(IndexObjectException e) {\n\t\t\r\n\t}", "@Test(groups = {\"All\"})\n\tpublic void R2267_TC91417_Validate_VisitExceptionID() throws InterruptedException, java.text.ParseException,\n\t\t\tIOException, ParseException, SQLException, ClassNotFoundException\n\t{\n\n\t\t// logger = extent.startTest(\"R2267_TC91417_Validate_VisitExceptionID\");\n\t\tlogger.log(LogStatus.INFO, \"Validating_VisitExceptionID\"); \n\n\t\tJSONArray jsonArrayVisit=GenerateUniqueParam.VisitParams_AltEVV();\n\t\tJSONObject jsonObjectVisit = (JSONObject) jsonArrayVisit.get(0);\n\n\t\tJSONArray jsonArrayVisitException = (JSONArray) jsonObjectVisit.get(\"VisitExceptionAcknowledgement\");\n\t\tJSONObject jsonObjectVisitException = (JSONObject) jsonArrayVisitException.get(0);\n\n\t\tjsonObjectVisitException.put(globalVariables.ExceptionAcknowledgedjson, true);\n\t\tjsonObjectVisitException.put(globalVariables.ExceptionIDjson, CommonMethods.generateRandomNumberOfFixLength(2));\n\t\t\t\t\n\t\tCommonMethods.validateResponse(jsonArrayVisit,\n\t\t\t\t\tCommonMethods.propertyfileReader(globalVariables.altevv_visit));\n\n\t}", "public Exception getException()\n {\n return m_exception;\n }", "@Override\n public Throwable getCause() {\n return ex;\n }", "void mo57276a(Exception exc);", "public int hashCode()\n {\n return 37 * 17 + this.exception_OOB_source_ID;\n }", "public java.lang.String getEventId() {\n return eventId;\n }", "public DuplicateItemException() {\r\n super();\r\n }", "private static Exception method_7085(Exception var0) {\r\n return var0;\r\n }", "void queryError(String queryId, Exception e);", "public IllegalArgumentException(int id) {\n\tsuper(\"IllegalArgumentException with id=\" + id);\n }", "public java.lang.String getEventId() {\n return eventId;\n }", "public HealthInformationExchangeException(Exception cause)\n\t{\n\t\tsuper(cause);\n\t}", "protected void raiseRequestError(Exception e) {\n\t\tmThrowedExceptions.add(e);\n\t}", "long getEncounterId();" ]
[ "0.65344214", "0.632069", "0.6215705", "0.6199855", "0.61706406", "0.6130655", "0.6119836", "0.6040654", "0.6040654", "0.60391897", "0.5922437", "0.5922437", "0.592118", "0.58797485", "0.5878518", "0.5869744", "0.5835687", "0.5834707", "0.5821093", "0.5821093", "0.5820846", "0.58076966", "0.5805439", "0.5791029", "0.57815295", "0.5755529", "0.5741606", "0.5730253", "0.5704386", "0.5697713", "0.569612", "0.56833756", "0.56750816", "0.56660414", "0.5645257", "0.5640129", "0.56338817", "0.5630089", "0.5628473", "0.56054085", "0.5605041", "0.5602658", "0.55932784", "0.5588443", "0.55875295", "0.55841", "0.5581508", "0.5580184", "0.5566419", "0.55620944", "0.5561805", "0.5560998", "0.555267", "0.5551984", "0.55493915", "0.55435914", "0.55422676", "0.5537763", "0.55368316", "0.55314904", "0.5530298", "0.55285126", "0.5526862", "0.5520356", "0.5519933", "0.5513358", "0.5494081", "0.5490226", "0.54884213", "0.5486709", "0.5484742", "0.5483057", "0.547717", "0.5475161", "0.5469157", "0.5469157", "0.5466911", "0.5451548", "0.54508907", "0.5447651", "0.5446456", "0.5435387", "0.5434924", "0.54289246", "0.54204243", "0.5406173", "0.5403791", "0.5402094", "0.5400982", "0.5399341", "0.539862", "0.53921145", "0.5390088", "0.5384456", "0.538054", "0.53787607", "0.53680104", "0.53666675", "0.53627086", "0.5361382", "0.53585553" ]
0.0
-1
Overridden to support args.
@Override public String getMessage() { String thisMessage = super.getMessage(); if (thisMessage != null && args != null && args.length > 0) { return MessageFormatter.arrayFormat(thisMessage, args).getMessage(); } return thisMessage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void run(String... args) {\n\t}", "@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }", "@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }", "@Override public void run(ApplicationArguments args) {\n }", "@Override\n public void run(ApplicationArguments args) {\n }", "@Override\n public void execute(String[] args) {\n\n }", "public static void main(String[] args)\r\t{", "public static void main(String[] args) {\n\t\t\tmeth(args);\r\n\t\t\targument_test:meth(args);\r\n\t}", "@Override\n public void run(String... args) throws Exception {\n }", "@Override\r\n\tpublic void run(String... args) throws Exception {\n\t\t\r\n\t}", "@Override\n public int getNumberArguments() {\n return 1;\n }", "@Override\n\tpublic void run(String... args) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void run(String... args) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void run(String... args) throws Exception {\n\t\t\n\t}", "public static void main(String[] args) {\n\n\t\t\n\t\t\n\t}", "@Override\n public void run(String... args) throws Exception {\n\n }", "public abstract String run(String args);", "public static void main(String[] args) {\n\t \t\n\t \t\n\t }", "public static void main(String[] args) {\n \n \n \n\t}", "public static void main(String[] args) {\n \n\t\t}", "Object[] args();", "public static void main(String[] args) {\n\t\t\r\n\t\t\r\n\r\n\t}", "@Override\n public void run(String... args) throws Exception {\n\n }", "private Main(String... arguments) {\n this.operations = new ArrayDeque<>(List.of(arguments));\n }", "public static void main(String[] args) {\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\r\n\t}", "@Override\n\t public void run(ApplicationArguments args) throws Exception {\n\n\t }", "@Override\n\tpublic void implementionEight(String[] args) throws Exception {\n\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\t\n\n\t}", "public static void main(String[] args){\n\t\t\r\n\t}", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \r\n\t}", "public static void main(String[] args) {\n \n \n }", "public static void main(String[] args) {\n \n \n }", "@Override\n\tpublic void run(String... args) throws Exception {\n\n\t}", "@Override\n\tpublic void run(String... args) throws Exception {\n\n\t}", "public static void main(String[] args) {\n \n \n \n \n }", "public static void main(String[] args) {\n\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\n\t\t\n\t}", "public static void main(String Args[]) {\r\n\t\r\n\t}", "public static void main(String[] args) {\n \n\t}", "public static void main(String[] args) {\n\n }", "public static void main(String[] args) {\n\n }", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "@Override\n public void run(String... args) throws Exception {\n }", "@Override\n public void run(String... args) throws Exception {\n }", "@Override\n public void run(String... args) throws Exception {\n }", "public static void main(String[] args) throws Exception {\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t}", "public static void main(String[] args) {\n\t\t\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\t\n\n\t}", "@Override\n\tpublic void run(String... args) throws Exception {\n }", "public static void main(String args[])\r\n {\n }", "public static void main(String[] args) {\n\t \t\n\t \t\n\t}", "public static void main(String[] args) {\t\n\t\t\n\t}", "public Object[] getArguments() { return args;}", "public static void main(String[] args) {\t\t\n\n\t}", "public static void main (String[] args) {\r\n\t\t \r\n\t\t}", "public static void main(String[] args) {\n\t\t\n\n\t}", "public static void main(String[] args) {\n\t\t\n\n\t}", "public static void main(String[] args) {\n\t\t\n\n\t}", "public static void main(String[] args) {\n\t\t\n\n\t}", "public static void main(String[] args) {\n\t\t\n\n\t}", "public static void main(String[] args) {\n\t\t\n\n\t}", "public static void main(String[] args) {\n\t\t\n\n\t}", "public static void main(String[] args) {\n\t\t\t\t\n\t}", "@Override\n public void run(String... args) throws Exception {\n\n //do something\n\n }", "public static void main(String args[]){\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main (String args[]) {\n\t\t\n }", "public static void main(String[] args){\n\t\t\n\t\t\n \t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t}" ]
[ "0.6747847", "0.6631279", "0.6631279", "0.66055244", "0.6580914", "0.6547172", "0.6532662", "0.64666134", "0.64197046", "0.6395926", "0.6368419", "0.63424224", "0.63424224", "0.63424224", "0.63331807", "0.63308465", "0.6328004", "0.63248396", "0.63186187", "0.63108796", "0.6289254", "0.6284868", "0.62686896", "0.6263713", "0.6256868", "0.6256868", "0.6256868", "0.6256868", "0.62556744", "0.62536293", "0.62536013", "0.62536013", "0.62536013", "0.62536013", "0.62536013", "0.62536013", "0.62536013", "0.62536013", "0.62536013", "0.6252655", "0.62522924", "0.6249797", "0.6249797", "0.6249797", "0.6249797", "0.6249797", "0.6249797", "0.62483597", "0.6242842", "0.6242842", "0.6242731", "0.6242731", "0.6240476", "0.62265205", "0.62205434", "0.62205434", "0.62205434", "0.62205434", "0.6211248", "0.62090886", "0.62035894", "0.62006867", "0.62006867", "0.61944664", "0.61924523", "0.61924523", "0.61924523", "0.6191605", "0.6177729", "0.61773956", "0.6174218", "0.61706704", "0.6164927", "0.6160718", "0.61439955", "0.614095", "0.6138808", "0.61384195", "0.61384195", "0.61384195", "0.61384195", "0.61384195", "0.61384195", "0.61384195", "0.61320156", "0.6131567", "0.6130942", "0.6130862", "0.6130862", "0.6129554", "0.61264205", "0.6125353", "0.6125353", "0.6125353", "0.6125353", "0.6125353", "0.6125353", "0.6125353", "0.6125353", "0.6125353", "0.6125353" ]
0.0
-1
for our internal exceptions we have and ExceptionId for identifying exception place!
@Override public synchronized Throwable fillInStackTrace() { return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected String handleGetExceptionKey()\n {\n\n final String type = this.getExceptionType();\n final int dotIndex = type.lastIndexOf(\".\");\n\n // the dot may not be the last character\n return StringUtilsHelper.toResourceMessageKey((dotIndex < (type.length() - 1)) ? type.substring(dotIndex + 1) : type);\n\n }", "public int getExceptionNumber(\n ) {return (0);}", "String getCauseException();", "public interface ExceptionContext {\n\n String DEFUALT_EX_MSG =\"网络异常\";//默认异常信息\n\n String DEFUALT_EX_CODE =\"500\";//默认异常状态码\n\n String UNKNOW_EX_MSG =\"未知异常\";//未知异常信息\n\n}", "BasicException.Parameter getIdParameter();", "public int getExceptionIndex() {\n/* 412 */ return (this.value & 0xFFFF00) >> 8;\n/* */ }", "public interface ViewDetailsExceptionCodes extends BaseExceptionCodes {\r\n /**\r\n * <p>\r\n * Exception code for TransactionAssessmentViewDetailsManagerException.\r\n * </p>\r\n */\r\n public final long FMS_WEB_07_ERR_0020 = 700020;\r\n\r\n /**\r\n * <p>\r\n * Exception code for TransactionAssessmentViewDetailsConfigurationException.\r\n * </p>\r\n */\r\n public final long FMS_WEB_07_ERR_0021 = 700021;\r\n\r\n /**\r\n * <p>\r\n * Exception code for TransactionAssessmentViewDetailsDaoException.\r\n * </p>\r\n */\r\n public final long FMS_WEB_07_ERR_0022 = 700022;\r\n}", "private static Exception method_7085(Exception var0) {\r\n return var0;\r\n }", "public EASOutOfBandExceptionSourceId(final int exception_OOB_source_ID)\n {\n this.exception_OOB_source_ID = exception_OOB_source_ID & 0xFFFF;\n }", "UsedExceptions getExceptions();", "public String toString()\n {\n StringBuffer buf = new StringBuffer(\"EASOutOfBandExceptionSourceId\");\n buf.append(\": sourceId=0x\").append(Integer.toHexString(this.exception_OOB_source_ID));\n return buf.toString();\n }", "String getException();", "String getException();", "public IDException(int id)\r\n\t{\r\n\t\tsuper(\"An error occured. You cannot have the ID Number be 0 or lower. The number you entered is \" + id + \".\");\r\n\t}", "private void log(IndexObjectException e) {\n\t\t\r\n\t}", "void mo57276a(Exception exc);", "public BusinessObjectException(Exception e) {\r\n super( \"\" + e );\r\n }", "public HealthInformationExchangeException(Exception cause)\n\t{\n\t\tsuper(cause);\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn \"Exception is..\" + msg;\r\n\t}", "public ItemNotFoundException(String e){\r\n super(e+\" was not found!\");\r\n }", "public int hashCode()\n {\n return 37 * 17 + this.exception_OOB_source_ID;\n }", "public Throwable getOriginalException()\n/* 28: */ {\n/* 29:56 */ return this.originalE;\n/* 30: */ }", "public DuplicateIDException(String id) {\n\t\tsuper(\"Duplicate id: %s\" + id);\n\t}", "public long getExceptionCodeAsLong() {\r\n\t\treturn this.exceptionCode_;\r\n\t}", "public DuplicateItemException() {\r\n super();\r\n }", "public RecordNotFoundException() {\n super();\n }", "public Exception() {\n\t\t\tsuper();\n\t\t}", "protected String getCause(Exception e) throws RuntimeException {\n\t\tString className = \"\";\n\t\tObject theClass = null;\n\t\tString errorCode;\n\t\tString msg = \"error.general.sistema\";\n\n\t\t// Establecemos la Excepcion que se ha producido\n\t\tif (e.getCause() != null) {\n\t\t\tclassName = e.getCause().getClass().getName();\n\t\t\ttheClass = e.getCause();\n\t\t\tif (className.equals(\"java.rmi.RemoteException\")) {\n\t\t\t\tif (e.getCause().getCause() != null) {\n\t\t\t\t\tclassName = e.getCause().getCause().getClass().getName();\n\t\t\t\t\ttheClass = e.getCause().getCause();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (theClass instanceof JDBCException) {\n\t\t\tif (((org.hibernate.JDBCException) theClass).getSQLException()\n\t\t\t\t\t.getNextException() != null) {\n\t\t\t\terrorCode = ((org.hibernate.JDBCException) theClass)\n\t\t\t\t\t\t.getSQLException().getNextException().getSQLState();\n\t\t\t} else {\n\t\t\t\terrorCode = ((org.hibernate.JDBCException) theClass)\n\t\t\t\t\t\t.getSQLException().getSQLState();\n\t\t\t}\n\t\t} else {\n\t\t\terrorCode = \"\";\n\t\t}\n\n\t\t// Obtenemos el codigo de error\n\n\t\t// Establecemos el mensaje de error en funcion la Excepcion que hemos\n\t\t// propagado\n\t\tif (!className.equals(\"\")) {\n\t\t\tif (className.equals(\"org.hibernate.StaleObjectStateException\")) {\n\t\t\t\tmsg = \"error.message.modify\";\n\t\t\t} else if (className.equals(\"org.hibernate.ObjectDeletedException\")) {\n\t\t\t\tmsg = \"error.message.delete\";\n\t\t\t} else if (className\n\t\t\t\t\t.equals(\"org.hibernate.ObjectNotFoundException\")) {\n\t\t\t\tmsg = \"error.message.notFound\";\n\t\t\t} else if (className.equals(\"org.hibernate.QueryException\")) {\n\t\t\t\tmsg = \"error.message.query\";\n\t\t\t} else if (className\n\t\t\t\t\t.equals(\"org.hibernate.NonUniqueObjectException\")) {\n\t\t\t\tmsg = \"error.message.nonUniqueObject\";\n\t\t\t} else if (className\n\t\t\t\t\t.equals(\"org.hibernate.NonUniqueResultException\")) {\n\t\t\t\tmsg = \"error.message.nonUniqueResult\";\n\t\t\t} else if (className\n\t\t\t\t\t.equals(\"org.hibernate.PropertyNotFoundException\")) {\n\t\t\t\tmsg = \"error.message.propertyNotFound\";\n\t\t\t} else if (className.equals(\"org.hibernate.PropertyValueException\")) {\n\t\t\t\tmsg = \"error.message.propertyValue\";\n\t\t\t} else if (className\n\t\t\t\t\t.equals(\"org.hibernate.QueryParameterException\")) {\n\t\t\t\tmsg = \"error.message.queryParameter\";\n\t\t\t} else if (className.equals(\"org.hibernate.WrongClassException\")) {\n\t\t\t\tmsg = \"error.message.wrongClass\";\n\t\t\t} else if (className\n\t\t\t\t\t.equals(\"org.hibernate.LazyInitializationException\")) {\n\t\t\t\tmsg = \"error.message.lazyInitialization\";\n\t\t\t} else if (className\n\t\t\t\t\t.equals(\"org.hibernate.exception.ConstraintViolationException\")) {\n\t\t\t\tif (errorCode.equalsIgnoreCase(UNIQUE_VIOLATION_CODE)) {\n\t\t\t\t\tmsg = \"error.message.constraintViolationUnique\";\n\t\t\t\t} else if (errorCode.equalsIgnoreCase(DELETE_VIOLATION_CODE)) {\n\t\t\t\t\tmsg = \"error.message.constraintViolationDelete\";\n\t\t\t\t}\n\t\t\t} else if (className\n\t\t\t\t\t.equals(\"org.hibernate.exception.JDBCConnectionException\")) {\n\t\t\t\tmsg = \"error.message.JDBCConection\";\n\t\t\t} else if (className\n\t\t\t\t\t.equals(\"org.hibernate.exception.SQLGrammarException\")) {\n\t\t\t\tmsg = \"error.message.SQLGrammar\";\n\t\t\t} else if (className\n\t\t\t\t\t.equals(\"org.hibernate.hql.ast.QuerySyntaxException\")) {\n\t\t\t\tmsg = \"error.message.malformedQuery\";\n\t\t\t} else if (className.equals(\"java.sql.BatchUpdateException\")) {\n\t\t\t\tmsg = \"error.message.metodoTransaccional\";\n\t\t\t} else {\n\t\t\t\tmsg = \"error.general.sistema\";\n\t\t\t}\n\t\t} else {\n\t\t\tmsg = \"error.general.sistema\";\n\t\t}\n\t\treturn msg;\n\t}", "public ItemNotFoundException() {\n super();\n }", "void storeSiteSpecificTrackingException(StoreSiteSpecificExceptionsInformation args);", "public SureBetNotFoundException(Exception exception) {\r\n\t\tsuper(exception);\r\n\t}", "public ImagingMigratorException(int exceptionCode) {\n this.errorCode = exceptionCode;\n }", "public ObjectNotFoundException() {\r\n super(\"ObjectNotFound Exception\");\r\n }", "public AccountIDNotRecognisedException() {\n\t\tsuper(\"Not found an ID corresponding to any account on the system\");\n\t}", "protected abstract int getErrorTokenId();", "public String getExceptionType() {\n return this.excType;\n }", "public String getSystemExceptionLabel() {\n\t\treturn systemExceptionLabel;\n\t}", "@Override\n protected int matchErrorState(Map<Integer,Set<String>> errorStates, SQLException ex) {\n String errorState = \"\"+ex.getErrorCode();\n for (Map.Entry<Integer,Set<String>> states : errorStates.entrySet()) {\n if (states.getValue().contains(errorState))\n return states.getKey();\n }\n return ExceptionInfo.GENERAL;\n }", "public UserIDNotAvailableException(){\r\n super();\r\n }", "com.palantir.paxos.persistence.generated.PaxosPersistence.ExceptionProto getException();", "public ExceptionBase( ExceptionType exceptionType ) {\n\t\tsuper();\n\t\texceptionsCatching( exceptionType );\n\t}", "protected abstract void exceptionsCatching( ExceptionType exceptionType );", "public void scemess() {\n\t\tUserExcep ue = new UserExcep();\n\t\t\n\t\ttry {\n\t\t\t\tthrow new UserExcep(\"Try different ID\");\n\t\t\t\t\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}", "public ErrorStatusException(String message, String id) {\n super(message);\n this.id = id;\n }", "public IndividualRequestNotFoundException(Long requestId) {\n super(ResourceBundle.getBundle(RESOURCE_STRING_PATH)\n .getString(INDIVIDUAL_REQUEST_NOT_FOUND_EXCEPTION_KEY) + requestId);\n }", "public TeWeinigGeldException(Exception e) {this.e = e;}", "public DuplicateRecordException(String msg){\n\t\tsuper(msg);\n\t}", "EntryNotFoundException() {\n super();\n }", "protected int getErrorCode(CmisBaseException ex) {\n if (ex instanceof CmisConstraintException) {\n return 409;\n } else if (ex instanceof CmisContentAlreadyExistsException) {\n return 409;\n } else if (ex instanceof CmisFilterNotValidException) {\n return 400;\n } else if (ex instanceof CmisInvalidArgumentException) {\n return 400;\n } else if (ex instanceof CmisNameConstraintViolationException) {\n return 409;\n } else if (ex instanceof CmisNotSupportedException) {\n return 405;\n } else if (ex instanceof CmisObjectNotFoundException) {\n return 404;\n } else if (ex instanceof CmisPermissionDeniedException) {\n return 403;\n } else if (ex instanceof CmisStorageException) {\n return 500;\n } else if (ex instanceof CmisStreamNotSupportedException) {\n return 403;\n } else if (ex instanceof CmisUpdateConflictException) {\n return 409;\n } else if (ex instanceof CmisVersioningException) {\n return 409;\n }\n\n return 500;\n }", "void storeWebWideTrackingException(StoreExceptionsInformation args);", "public InterfaceException(Throwable e, MessageKey key) {\n super(e, key);\n }", "public Throwable method_8075() {\r\n return this.field_7865;\r\n }", "public Exception() {\n\tsuper();\n }", "Throwable cause();", "public EntityAlreadyExistsException() {\n\t\tsuper(\"exception.entity.already.exists\");\n\t}", "private void mapAndThrow(Exception e) {\n int status = HttpStatus.INTERNAL_SERVER_ERROR_500;\n String code = \"INTERNAL_SERVER_ERROR\";\n\n // Resolve and map standard exceptions\n if (e.getClass().isAssignableFrom(MockingjayDataAccessException.class) ||\n e.getClass().isAssignableFrom(MockingjayGenericException.class) ||\n e.getClass().isAssignableFrom(FileWriterException.class)) {\n status = HttpStatus.INTERNAL_SERVER_ERROR_500;\n code = \"INTERNAL_SERVER_ERROR\";\n } else if (e.getClass().isAssignableFrom(JsonTransformationException.class)) {\n status = HttpStatus.BAD_REQUEST_400;\n code = \"BAD_REQUEST\";\n } else if (e.getClass().isAssignableFrom(FileNotFoundException.class)) {\n status = HttpStatus.NOT_FOUND_404;\n code = \"RESOURCE_NOT_FOUND\";\n } else if (e.getClass().isAssignableFrom(FileStorageException.class)) {\n status = HttpStatus.INSUFFICIENT_STORAGE_507;\n code = \"INSUFFICIENT_STORAGE\";\n }\n\n // Throw resource exception\n throw new ResourceException(e, status, code);\n }", "@Override\n public void onError(int id, Exception e) {\n Log.e(\"LocAdoc\", \"onError: \" + id, e);\n }", "public IllegalArgumentException(int id) {\n\tsuper(\"IllegalArgumentException with id=\" + id);\n }", "public Exception getException ()\r\n {\r\n return exception_;\r\n }", "public OpenXdataDataAccessException() {\r\n \tsuper(\"A Data Base Access Exception occurred.\");\r\n }", "public Exception getException ()\n {\n return exception;\n }", "private static String getXmlParseExceptionErrorMessage(Throwable jenaExc) {\n\t\tif ( ! (jenaExc instanceof JenaException ) ) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tThrowable cause = jenaExc.getCause();\n\t\tif ( ! (cause instanceof SAXParseException ) ) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tSAXParseException spe = (SAXParseException) cause;\n\t\tString errorMessage = spe.getMessage() +\n\t\t\t\"\\n Line number: \" + spe.getLineNumber()+\" Column number: \" +spe.getColumnNumber()\n//\t\t\t+(spe.getPublicId() != null ? \"\\n Public ID: \" + spe.getPublicId() : \"\" )\n//\t\t\t+(spe.getSystemId() != null ? \"\\n System ID: \" + spe.getSystemId() : \"\" )\n\t\t;\n\n\t\treturn errorMessage;\n\t\t\t\n\t}", "private static String getXmlParseExceptionErrorMessage(Throwable jenaExc) {\n if ( ! (jenaExc instanceof JenaException) ) {\n return null;\n }\n\n Throwable cause = jenaExc.getCause();\n if ( ! (cause instanceof SAXParseException) ) {\n return null;\n }\n\n SAXParseException spe = (SAXParseException) cause;\n return spe.getMessage() +\n \"\\n Line number: \" + spe.getLineNumber()+\" Column number: \" +spe.getColumnNumber()\n\t\t\t //+(spe.getSystemId() != null ? \"\\n System ID: \" + spe.getSystemId() : \"\" )\n\t\t\t //+(spe.getPublicId() != null ? \"\\n Public ID: \" + spe.getPublicId() : \"\" )\n ;\n }", "private RuntimeException getSqlException(HiveSQLException e) throws ExploreException, SQLException {\n if (e.getSQLState() != null) {\n throw e;\n }\n throw new ExploreException(e);\n }", "public ReviewEntityNotFoundException(String message, Throwable cause, long id) {\n super(message, cause);\n\n this.id = id;\n }", "public static TypeReference newExceptionReference(int exceptionIndex) {\n/* 282 */ return new TypeReference(0x17000000 | exceptionIndex << 8);\n/* */ }", "public InterfaceException(MessageKey key) {\n super(key);\n }", "public EmailException()\n {\n super();\n }", "@Override\n\t\tpublic void onException(Exception arg0) {\n\t\t\t\n\t\t}", "public void rethrowException2(String exceptionName) throws FirstException, SecondException {//rethrow FirstException, SecondException\n\t\t\ttry {\n\t\t\t\t\tif (exceptionName.equals(\"First\")) {\n\t\t\t\t\t\t\tthrow new FirstException();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthrow new SecondException();\n\t\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\t\t//This analysis is disabled if the catch parameter is assigned to another value in the catch block.\n\t\t\t\t\t//e = new FirstException();//If you add this line, Compile Error: Unhandled exception type Exception\n\t\t\t\t\tthrow e;\n\t\t\t}\n\t}", "public ExceptionInfo getExceptionInfo() {\n return exceptionInfo;\n }", "public BusinessObjectException() {\r\n super();\r\n }", "public ConfigProcessNameAlreadyDefinedException()\n {\n }", "String getOnExceptionBegin(OnException onException, long row);", "private V e() throws com.amap.api.col.n3.gh {\n /*\n r6 = this;\n r0 = 0\n r1 = 0\n L_0x0002:\n int r2 = r6.b\n if (r1 >= r2) goto L_0x00cd\n com.amap.api.col.n3.ki r2 = com.amap.api.col.n3.ki.c() // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n android.content.Context r3 = r6.d // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.net.Proxy r3 = com.amap.api.col.n3.ik.a(r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n r6.a((java.net.Proxy) r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n byte[] r2 = r2.a((com.amap.api.col.n3.kj) r6) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.lang.Object r2 = r6.a((byte[]) r2) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n int r0 = r6.b // Catch:{ ic -> 0x0025, gh -> 0x0020, Throwable -> 0x002a }\n r1 = r0\n r0 = r2\n goto L_0x0002\n L_0x0020:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0033\n L_0x0025:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0044\n L_0x002a:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"未知错误\"\n r0.<init>(r1)\n throw r0\n L_0x0032:\n r2 = move-exception\n L_0x0033:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 < r3) goto L_0x0002\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0043:\n r2 = move-exception\n L_0x0044:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 >= r3) goto L_0x008a\n int r3 = r6.e // Catch:{ InterruptedException -> 0x0053 }\n int r3 = r3 * 1000\n long r3 = (long) r3 // Catch:{ InterruptedException -> 0x0053 }\n java.lang.Thread.sleep(r3) // Catch:{ InterruptedException -> 0x0053 }\n goto L_0x0002\n L_0x0053:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x0078\n goto L_0x0082\n L_0x0078:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0082:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x008a:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"未知的错误\"\n java.lang.String r1 = r2.a()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x00bb\n goto L_0x00c5\n L_0x00bb:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x00c5:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x00cd:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.api.col.n3.gi.e():java.lang.Object\");\n }", "public DataAccessorServiceException(String msg) {\n super(msg);\n }", "private void buildBasicStructure( Exception e )\r\n {\r\n m_rootID = addElement(0, m_Document_TypeID, DTM.NULL, DTM.NULL);\r\n m_extErrorID = addElement(1, m_ErrorExt_TypeID, m_rootID, DTM.NULL);\r\n m_MainMessageID = addElementWithData\r\n (e != null ? e.getLocalizedMessage() : \"SQLWarning\", 2, m_Message_TypeID, m_extErrorID, DTM.NULL);\r\n }", "protected void getEventIDs() throws Throwable\n {\n _eventID = _helper.getProperties().getRetrievePendingEventId();\n _ackEventID = _helper.getProperties().getRetrievePendingAckEventId();\n }", "@Override\n\t\t\tpublic void onException(Exception arg0) {\n\n\t\t\t}", "public ProductNotFoundException(String productId) {\n super();\n this.productId = productId;\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn \"com.cg.Exercise4Exception\"+super.getMessage();\r\n\t}", "public ReviewEntityNotFoundException(String message, Throwable cause, ExceptionData data, long id) {\n super(message, cause, data);\n\n this.id = id;\n }", "public DuplicateEntryException(String message, Object identifier) {\n super(message);\n this.identifier = identifier;\n }", "public static int getSqlErrorCode(Exception e) {\n if (e instanceof SQLException) {\n return ((SQLException) e).getErrorCode();\n } else {\n return -1;\n }\n }", "public EmployeeNotFoundException() {\n super();\n }", "public InvalidItemIDException (String message){\n super(message);\n }", "public OperationFailedException(String message, Exception causeOfException){\n super(message, causeOfException);\n }", "public UnmatchedException(){\r\n\r\n\t}", "public ContextElementFinderException(Throwable th)\r\n {\r\n super(th);\r\n }", "public ObjectNotFoundException(String s) {\r\n super(s);\r\n }", "public exceptiona(Throwable cause)\n {\n String Message = \" not in number system\";\n }", "public ItemNotFoundException(String itemName) {\n super(String.format(\"Item %s was not found\", itemName));\n }", "ResolvedType getSpecifiedException(int index);", "public ParameterNotFoundException()\n\t{\n\t\tsuper();\n\t}", "public EmployeeNotFoundException(String message) {\n super(message);\n }", "private PtTlsErrorCauseEnum(final int id) {\n this.id = id;\n }", "private int getErrorId(final String message) {\n\t\tif (isLowerCase(message)) {\n\t\t\treturn ERROR_LOWER_CASE;\n\t\t} else if (isUnunsedMacro(message)) {\n\t\t\treturn ERROR_UNUSED_MACRO;\n\t\t} else if (isUnunsedVariable(message)) {\n\t\t\treturn ERROR_UNUSED_VARIABLE;\n\t\t} else if (isEndLineSpace(message) || isNoSpace(message)) {\n\t\t\treturn ERROR_NO_SPACE;\n\t\t} else if (isOneSpace(message)) {\n\t\t\treturn ERROR_ONE_SPACE;\n\t\t} else {\n\t\t\treturn ERROR_INVALID;\n\t\t}\n\t}", "protected abstract String defaultExceptionMessage(TransactionCommand transactionCommand);", "public ReviewEntityNotFoundException(String message, ExceptionData data, long id) {\n super(message, data);\n\n this.id = id;\n }", "public ExcelImportException() {\r\n\t\tsuper();\r\n\t}", "public InvalidIDException(String msg) {\n super(msg);\n }" ]
[ "0.6303885", "0.6264262", "0.62626606", "0.6142371", "0.6095618", "0.6041569", "0.6004844", "0.59847826", "0.5956491", "0.59313554", "0.58717394", "0.5866401", "0.5866401", "0.58413565", "0.5818192", "0.57691795", "0.5763649", "0.5732063", "0.57142293", "0.569144", "0.5678406", "0.5653472", "0.5650967", "0.56376934", "0.562731", "0.5603706", "0.5602504", "0.5599707", "0.5598262", "0.5589267", "0.5586804", "0.5579836", "0.5579356", "0.55764997", "0.55676496", "0.5566919", "0.55631274", "0.5560457", "0.5559454", "0.5532806", "0.5532104", "0.55264914", "0.55264384", "0.5522902", "0.5509594", "0.55039495", "0.5502487", "0.55014443", "0.550067", "0.55004877", "0.5493839", "0.5477922", "0.5477514", "0.54636115", "0.54508877", "0.54481995", "0.54409397", "0.54398215", "0.54379255", "0.54374295", "0.54340446", "0.5425714", "0.54247946", "0.54209286", "0.54182535", "0.5399368", "0.5398481", "0.53947806", "0.53845894", "0.53774244", "0.53757626", "0.5374727", "0.53746146", "0.53737944", "0.53711015", "0.5370632", "0.5369107", "0.536503", "0.53598833", "0.53518647", "0.5351443", "0.53463477", "0.5342628", "0.53362435", "0.5332422", "0.53300345", "0.53260195", "0.5321555", "0.53167427", "0.5310534", "0.531022", "0.5309754", "0.53008324", "0.5293374", "0.52907866", "0.528563", "0.5283717", "0.5278236", "0.52733284", "0.52664196", "0.52647257" ]
0.0
-1
for presenting information to external users about exceptions, we should use cause exception
@Override public StackTraceElement[] getStackTrace() { return getCause() == null ? super.getStackTrace() : getCause().getStackTrace(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Throwable cause();", "String getCauseException();", "public exceptiona(Throwable cause)\n {\n String Message = \" not in number system\";\n }", "public SucheException(Throwable cause) {\n super(cause);\n // TODO Auto-generated constructor stub\n }", "@Override\n public Throwable getCause() {\n return ex;\n }", "@Override\n public Exception getCause()\n {\n return this.cause;\n }", "public void setCause(Throwable cause) {\n this.cause = cause;\n }", "public TechnicalException(Throwable cause) {\r\n super(cause);\r\n }", "public OLMSException(Throwable cause) {\r\n super(cause);\r\n }", "void exceptionCaught(Throwable cause) throws Exception;", "void exceptionCaught(Throwable cause) throws Exception;", "public AgentException(String cause) {\n this.cause = cause;\n }", "public WorkflowException(Exception cause) {\n super(cause);\n }", "public RenderingException(Throwable cause) {\r\n\t\tsuper(cause);\r\n\t}", "public ExcelImportException(Throwable cause) {\r\n\t\tsuper(cause);\r\n\t}", "@Override\r\n\tpublic void doException() {\n\r\n\t}", "public HealthInformationExchangeException(Exception cause)\n\t{\n\t\tsuper(cause);\n\t}", "public Exception(Throwable cause) {\n\t\t\tsuper(cause);\n\t\t}", "public String getCause() {\n return cause;\n }", "public TDLProException(Throwable cause)\n {\n super(cause);\n }", "public void setCause(String cause) {\n this.cause = cause;\n }", "public void toss(Exception e);", "public void handleException(int cause) {\n\tProcessor processor = Machine.processor();\n\n\tswitch (cause) {\n\tcase Processor.exceptionSyscall:\n\t int result = handleSyscall(processor.readRegister(Processor.regV0),\n\t\t\t\t processor.readRegister(Processor.regA0),\n\t\t\t\t processor.readRegister(Processor.regA1),\n\t\t\t\t processor.readRegister(Processor.regA2),\n\t\t\t\t processor.readRegister(Processor.regA3)\n\t\t\t\t );\n\t processor.writeRegister(Processor.regV0, result);\n\t processor.advancePC();\n\t break;\t\t\t\t \n\t\t\t\t \n\tdefault:\n\t Lib.debug(dbgProcess, \"Unexpected exception: \" +\n\t\t Processor.exceptionNames[cause]);\n\t Lib.assertNotReached(\"Unexpected exception\");\n\t}\n }", "public ProgramInvocationException(Throwable cause) {\n\t\tsuper(cause);\n\t}", "void innerError(Throwable ex) {\r\n\t\t\t\t\t\terror(ex);\r\n\t\t\t\t\t}", "void innerError(Throwable ex) {\r\n\t\t\t\t\t\terror(ex);\r\n\t\t\t\t\t}", "@Override\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {\n LogUtils.e(mTag, \"exceptionCaught, case\" + cause.toString());\n\n StackTraceElement[] stackElements = cause.getStackTrace();\n if (stackElements != null) {\n for (int i = 0; i < stackElements.length; i++) {\n LogUtils.e(mTag, \" \" + stackElements[i]);\n }\n }\n }", "public Throwable getCause () {\n\t\treturn ex;\n\t}", "public Throwable getCause() {\n/* 85 */ return this.runtimeException;\n/* */ }", "public SucheException(String message, Throwable cause) {\n super(message, cause);\n // TODO Auto-generated constructor stub\n }", "void innerError(@Nonnull Throwable ex) {\r\n\t\t\t\t\t\terror(ex);\r\n\t\t\t\t\t}", "void innerError(@Nonnull Throwable ex) {\r\n\t\t\t\t\t\terror(ex);\r\n\t\t\t\t\t}", "public void setCause(String cause) {\r\n\t\tthis.cause = cause;\r\n\t}", "public Throwable getCause()\r\n {\r\n return m_cause;\r\n }", "String getException();", "String getException();", "public NEOLoggerException(Throwable cause)\n {\n super(cause);\n }", "public KineticException(Throwable cause) {\n\t\tsuper(cause);\n\t}", "public Throwable cause()\r\n/* 88: */ {\r\n/* 89:124 */ Object result = this.result;\r\n/* 90:125 */ if ((result instanceof CauseHolder)) {\r\n/* 91:126 */ return ((CauseHolder)result).cause;\r\n/* 92: */ }\r\n/* 93:128 */ return null;\r\n/* 94: */ }", "public Throwable getCause(){\n\t\treturn status.getException();\n\t}", "public ArithmeticaException (String message, Throwable cause) {\n super(message, cause);\n }", "public String toString() {\n return (\"AgentException occurred with cause: \" + cause);\n }", "public CustomException(Throwable cause) {\n super(cause == null ? null : cause.toString(), cause);\n }", "public TwoDAReadException(String message, Throwable cause){ super(message, cause); }", "public OperationException(Throwable cause) {\n super(cause);\n }", "public ResourceTagNotAssignedException(Throwable cause) {\n\t\tsuper(cause);\n\t}", "@Override\n\t\tpublic Throwable getCause() {\n\t\t\treturn super.getCause();\n\t\t}", "public Throwable getCause() {\n return cause;\n }", "public Throwable getCause() {\n return cause;\n }", "public Throwable getCause() {\n return cause;\n }", "public QueryException(Throwable cause) {\n super(cause);\n }", "public IOExceptionWithCause(Throwable cause) {\n/* 63 */ super(cause);\n/* */ }", "public Throwable getCause() {\n return cause;\n }", "public TrafficspacesAPIException(Throwable cause, String reason) {\n super(reason);\n rootCause = cause;\n }", "public MyCustomException( Throwable cause )\n {\n\n\t// Why are we doing this??\n super( cause );\n }", "public SyscallException(Throwable cause) {\n\t\tsuper(cause);\n\t}", "void mo57276a(Exception exc);", "private static Throwable handle(final Throwable e) {\r\n\t\te.printStackTrace();\r\n\r\n\t\tif (e.getCause() != null) {\r\n\t\t\te.getCause().printStackTrace();\r\n\t\t}\r\n\t\tif (e instanceof SAXException) {\r\n\t\t\t((SAXException) e).getException().printStackTrace();\r\n\t\t}\r\n\t\treturn e;\r\n\t}", "public ExcelImportException(String message, Throwable cause) {\r\n\t\tsuper(message, cause);\r\n\t}", "public void exceptionEncountered(IOException ioe) {}", "public void handleException(int cause) {\n\t\tProcessor processor = Machine.processor();\n\t\t\n\t\tswitch (cause) {\n\t\tcase Processor.exceptionPageFault:\n\t\t\t//System.out.println(\"exception cause: \" + cause);\n\t\t\tint result = handlePageFault(processor.readRegister(Processor.regBadVAddr));\n\t\t\t//processor.writeRegister(Processor.regV0, result);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t//System.out.println(\"exception cause: \" + cause);\n\t\t\tsuper.handleException(cause);\n\t\t\tbreak;\n\t\t}\n\t}", "public OutputQueueException(Throwable cause)\n {\n super(cause);\n }", "public MetricsException(Throwable cause) {\n\n super(cause);\n }", "public void setException(Exception e){\r\n //build message\r\n String dialog = e+\"\\n\\n\";\r\n StackTraceElement[] trace = e.getStackTrace();\r\n for(int i=0;i<trace.length;i++)\r\n dialog += \" \" + trace[i] + \"\\n\";\r\n //dialog\r\n setMessage(\"Internal error caught.\", dialog);\r\n }", "private void exceptionCaught(Throwable cause) {\n log.debug(\"Caught exception\", cause);\n closeConnection(cause);\n Handler<Throwable> exceptionHandler = this.exceptionHandler;\n if (exceptionHandler != null) {\n exceptionHandler.handle(cause);\n }\n }", "public CoderException(Throwable cause) {\n super(cause);\n }", "private void sendOldError(Exception e) {\n }", "protected String manage(DriverException e) {\r\n // Debug\r\n Logger.getLogger(Service.class.getName()).log(Level.SEVERE, \"Driver exception !\", e);\r\n \r\n // Display\r\n String data = \"\";\r\n Throwable buff = e;\r\n do {\r\n if (buff instanceof DriverException) {\r\n DriverException de = (DriverException) buff;\r\n data += \"<error id=\\\"1\\\">\" +\r\n \"<parameter name=\\\"driver\\\">\" + de.getThrower().getDriverName() + \"</parameter>\" +\r\n \"<parameter name=\\\"message\\\">\" + de.getMessage() + \"</parameter>\" +\r\n \"</error>\";\r\n } else if (buff instanceof WorkflowException) {\r\n data += \"<error id=\\\"2\\\">\" +\r\n \"<parameter name=\\\"message\\\">\" + buff.getMessage() + \"</parameter>\" +\r\n \"</error>\"; \r\n } else {\r\n data += \"<error id=\\\"3\\\">\" +\r\n \"<parameter name=\\\"message\\\">\" + buff.getMessage() + \"</parameter>\" +\r\n \"</error>\";\r\n }\r\n buff = buff.getCause();\r\n } while (buff != null);\r\n \r\n return data;\r\n }", "public JiraServiceException(Throwable cause) {\r\n super(cause);\r\n }", "public CommunicationException(Throwable cause) {\r\n\t\tsuper(cause);\r\n\r\n\t}", "public void onException(Exception ex) \n {\n ex.printStackTrace();\n }", "@Override\n\t\t\t\t\tpublic void accept(Throwable throwable) throws Exception {\n\t\t\t\t\t\tToast.makeText(SignActivity.this, \"出错:\" + throwable.getMessage(),\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\tthrowable.printStackTrace();\n\t\t\t\t\t}", "private static void throwException() throws Exception {\n\t\tthrow new Exception();\r\n\t}", "public XMLParseException(Throwable cause) { super(defaultMessage,cause); }", "public void buildException(String message, Throwable cause) {\n\n // lanca a exception\n if (cause != null) {\n\n // mostra o stactrace\n cause.printStackTrace();\n throw new BuildException(message, cause);\n\n } else {\n\n // nao possui throwable\n throw new BuildException(message);\n }\n }", "public OLMSException(String message, Throwable cause) {\r\n super(message, cause);\r\n }", "public TechnicalException(String message, Throwable cause) {\r\n super(message, cause);\r\n }", "public ConceptPersistException( Exception cause )\r\n {\r\n super( cause );\r\n }", "public RenderingException(String message, Throwable cause) {\r\n\t\tsuper(message, cause);\r\n\t}", "public Throwable getCause()\n\t{\n\t\treturn m_Cause;\n\t}", "public YardException(String reason, Throwable cause) {\n super(reason, cause);\n }", "private void handleException(java.lang.Throwable exception) {\n\t\tSystem.out.println(\"--------- UNCAUGHT EXCEPTION ---------\");\n\t\texception.printStackTrace(System.out);\n\t}", "public ToolbarMenu_ArquitectureException(String message, Throwable cause) {\n super(message, cause);\n }", "public JavaException(@Nullable Throwable cause)\r\n\t{\r\n\t\tsuper(cause);\r\n\t}", "com.google.cloud.networkmanagement.v1.AbortInfo.Cause getCause();", "public StreamException(Throwable cause) {\n super(cause);\n }", "protected String getCause(Exception e) throws RuntimeException {\n\t\tString className = \"\";\n\t\tObject theClass = null;\n\t\tString errorCode;\n\t\tString msg = \"error.general.sistema\";\n\n\t\t// Establecemos la Excepcion que se ha producido\n\t\tif (e.getCause() != null) {\n\t\t\tclassName = e.getCause().getClass().getName();\n\t\t\ttheClass = e.getCause();\n\t\t\tif (className.equals(\"java.rmi.RemoteException\")) {\n\t\t\t\tif (e.getCause().getCause() != null) {\n\t\t\t\t\tclassName = e.getCause().getCause().getClass().getName();\n\t\t\t\t\ttheClass = e.getCause().getCause();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (theClass instanceof JDBCException) {\n\t\t\tif (((org.hibernate.JDBCException) theClass).getSQLException()\n\t\t\t\t\t.getNextException() != null) {\n\t\t\t\terrorCode = ((org.hibernate.JDBCException) theClass)\n\t\t\t\t\t\t.getSQLException().getNextException().getSQLState();\n\t\t\t} else {\n\t\t\t\terrorCode = ((org.hibernate.JDBCException) theClass)\n\t\t\t\t\t\t.getSQLException().getSQLState();\n\t\t\t}\n\t\t} else {\n\t\t\terrorCode = \"\";\n\t\t}\n\n\t\t// Obtenemos el codigo de error\n\n\t\t// Establecemos el mensaje de error en funcion la Excepcion que hemos\n\t\t// propagado\n\t\tif (!className.equals(\"\")) {\n\t\t\tif (className.equals(\"org.hibernate.StaleObjectStateException\")) {\n\t\t\t\tmsg = \"error.message.modify\";\n\t\t\t} else if (className.equals(\"org.hibernate.ObjectDeletedException\")) {\n\t\t\t\tmsg = \"error.message.delete\";\n\t\t\t} else if (className\n\t\t\t\t\t.equals(\"org.hibernate.ObjectNotFoundException\")) {\n\t\t\t\tmsg = \"error.message.notFound\";\n\t\t\t} else if (className.equals(\"org.hibernate.QueryException\")) {\n\t\t\t\tmsg = \"error.message.query\";\n\t\t\t} else if (className\n\t\t\t\t\t.equals(\"org.hibernate.NonUniqueObjectException\")) {\n\t\t\t\tmsg = \"error.message.nonUniqueObject\";\n\t\t\t} else if (className\n\t\t\t\t\t.equals(\"org.hibernate.NonUniqueResultException\")) {\n\t\t\t\tmsg = \"error.message.nonUniqueResult\";\n\t\t\t} else if (className\n\t\t\t\t\t.equals(\"org.hibernate.PropertyNotFoundException\")) {\n\t\t\t\tmsg = \"error.message.propertyNotFound\";\n\t\t\t} else if (className.equals(\"org.hibernate.PropertyValueException\")) {\n\t\t\t\tmsg = \"error.message.propertyValue\";\n\t\t\t} else if (className\n\t\t\t\t\t.equals(\"org.hibernate.QueryParameterException\")) {\n\t\t\t\tmsg = \"error.message.queryParameter\";\n\t\t\t} else if (className.equals(\"org.hibernate.WrongClassException\")) {\n\t\t\t\tmsg = \"error.message.wrongClass\";\n\t\t\t} else if (className\n\t\t\t\t\t.equals(\"org.hibernate.LazyInitializationException\")) {\n\t\t\t\tmsg = \"error.message.lazyInitialization\";\n\t\t\t} else if (className\n\t\t\t\t\t.equals(\"org.hibernate.exception.ConstraintViolationException\")) {\n\t\t\t\tif (errorCode.equalsIgnoreCase(UNIQUE_VIOLATION_CODE)) {\n\t\t\t\t\tmsg = \"error.message.constraintViolationUnique\";\n\t\t\t\t} else if (errorCode.equalsIgnoreCase(DELETE_VIOLATION_CODE)) {\n\t\t\t\t\tmsg = \"error.message.constraintViolationDelete\";\n\t\t\t\t}\n\t\t\t} else if (className\n\t\t\t\t\t.equals(\"org.hibernate.exception.JDBCConnectionException\")) {\n\t\t\t\tmsg = \"error.message.JDBCConection\";\n\t\t\t} else if (className\n\t\t\t\t\t.equals(\"org.hibernate.exception.SQLGrammarException\")) {\n\t\t\t\tmsg = \"error.message.SQLGrammar\";\n\t\t\t} else if (className\n\t\t\t\t\t.equals(\"org.hibernate.hql.ast.QuerySyntaxException\")) {\n\t\t\t\tmsg = \"error.message.malformedQuery\";\n\t\t\t} else if (className.equals(\"java.sql.BatchUpdateException\")) {\n\t\t\t\tmsg = \"error.message.metodoTransaccional\";\n\t\t\t} else {\n\t\t\t\tmsg = \"error.general.sistema\";\n\t\t\t}\n\t\t} else {\n\t\t\tmsg = \"error.general.sistema\";\n\t\t}\n\t\treturn msg;\n\t}", "public DataAccessLayerException(final Throwable cause) {\n super(cause);\n }", "private void sqlException(SQLException e) {\n System.err.println(\"SQLException: \" + e.getMessage());\n System.err.println(\"SQLState: \" + e.getSQLState());\n System.err.println(\"VendorError: \" + e.getErrorCode());\n e.printStackTrace();\n// System.exit(-1);\n }", "@Override\n\tpublic synchronized Throwable getCause() {\n\t\treturn super.getCause();\n\t}", "@Override\n\t\tpublic void onException(Exception arg0) {\n\t\t\t\n\t\t}", "public void falschesSpiel(SpielException e);", "public TDLProException(String message, Throwable cause)\n {\n super(message, cause);\n }", "public InvalidUsage(String cause){\n super(\" InvalidUsage \", cause);\n }", "public notHumanBeingException(String message){// Message parameted created\n super(message);\n \n }", "public CacheException(Throwable cause) {\r\n\t\tsuper(cause);\r\n\t}", "public Throwable getReason() { return err; }", "public void handleException(int cause) \n\t{\n\t\tProcessor processor = Machine.processor();\n\n\t\tswitch (cause) \n\t\t{\n\t\t\tcase Processor.exceptionPageFault:\n\t\t\t\tVMKernel.m_lock.acquire();\n\t\t\t\thandlePageFault(processor.readRegister(Processor.regBadVAddr));\n\t\t\t\tVMKernel.m_lock.release();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tsuper.handleException(cause);\n\t\t\t\tbreak;\n\t\t}\n\t}", "public final Throwable getCause() {\n return cause;\n }", "@Override\n\tpublic void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {\n\t\tLog.i(\"exceptionCaught\", cause.getMessage());\n\t\tsuper.exceptionCaught(ctx, cause);\n\t}", "public ReportDataAccessException(String message, Throwable cause) {\n super(message, cause);\n }" ]
[ "0.81509775", "0.75396967", "0.7378183", "0.6941752", "0.689952", "0.6887287", "0.6858238", "0.68094224", "0.6806589", "0.67974514", "0.67974514", "0.6776621", "0.67742074", "0.6773063", "0.6743524", "0.6735456", "0.6731731", "0.670367", "0.6696148", "0.66863436", "0.6616905", "0.6615587", "0.6605563", "0.65939134", "0.65811914", "0.65811914", "0.65667164", "0.65435076", "0.6539377", "0.65358573", "0.6522768", "0.6522768", "0.6515106", "0.65141475", "0.6513729", "0.6513729", "0.65125805", "0.6500985", "0.6491175", "0.64781636", "0.64723647", "0.6465189", "0.64503", "0.6435387", "0.6424728", "0.64105046", "0.6400006", "0.639903", "0.639903", "0.639903", "0.639771", "0.6359004", "0.635601", "0.6352839", "0.63470364", "0.6341405", "0.63331217", "0.6319229", "0.631841", "0.63168216", "0.6308404", "0.63059735", "0.629332", "0.62912697", "0.6290721", "0.6271643", "0.6271425", "0.62616694", "0.62558526", "0.62553006", "0.6249881", "0.6244662", "0.62403834", "0.62391186", "0.62348044", "0.62216824", "0.621781", "0.62164825", "0.6204418", "0.62029314", "0.620249", "0.6201901", "0.6198094", "0.6197268", "0.61971986", "0.61941725", "0.6189852", "0.6174628", "0.6171843", "0.61613405", "0.61587673", "0.6146587", "0.61444443", "0.6142933", "0.61426413", "0.6138746", "0.61329013", "0.61319417", "0.61310023", "0.6129456", "0.6121402" ]
0.0
-1
This method gets the information from the "GetTestCaseInformation()" method. The information contains the class and method names to run from excel The information also contains the TestNG configuration information from the excel It creates the TestNG.xml file based on the information gathered Finally it triggers the execution through TestNG
public void ExecuteTests() throws IOException{ AutomationSuiteRunnerImpl testcaseinfo = new AutomationSuiteRunnerImpl(); testcaseinfo.GetTestCaseInformation(); TestsBrowserList = testcaseinfo.getTestsBrowserList(); TestsClassesList = testcaseinfo.getTestsClassesList(); ClassesMethodList = testcaseinfo.getClassesMethodList(); TestsParamList = testcaseinfo.getTestsParamList(); TestNGConfig = testcaseinfo.getTestNGConfig(); List<XmlSuite> suites = new ArrayList<XmlSuite>(); logger.info("Generating TestNG.xml file"); /** * The below code creates testNG xmlSuite and sets the configuration */ XmlSuite suite = new XmlSuite(); suite.setName(TestNGConfig.get("AutomationSuiteName")); if(TestNGConfig.get("ParallelMode").toString().equalsIgnoreCase("True")) { suite.setParallel(XmlSuite.ParallelMode.TESTS); suite.setThreadCount(Integer.parseInt(TestNGConfig.get("ThreadCount"))); } else { suite.setParallel(XmlSuite.ParallelMode.NONE); } suite.setVerbose(Integer.parseInt(TestNGConfig.get("Verbose"))); if(TestNGConfig.get("PreserveOrder").toString().equalsIgnoreCase("True")) suite.setPreserveOrder(Boolean.TRUE); else suite.setPreserveOrder(Boolean.FALSE); //suite.addListener("frameworkcore.ReportingClass.ListenersImpl"); /** * The below code assigns the Test classes/mathods/parameters to the TestNG Suite */ for (String key : TestsBrowserList.keySet()){ ArrayList<XmlClass> classes = new ArrayList<XmlClass>(); XmlTest test = new XmlTest(suite); test.setName(key.toString()); HashMap<String,String> browserinfo = new HashMap<String,String>(); browserinfo.put("BrowserName", TestsBrowserList.get(key).toString()); test.setParameters(browserinfo); SetParameters(test); Collection<String> classvalues = TestsClassesList.get(key); for(String testclass : classvalues){ XmlClass testClass = new XmlClass(); testClass.setName(testclass); Collection<String> methodvalues = ClassesMethodList.get(testclass); ArrayList<XmlInclude> methodsToRun = new ArrayList<XmlInclude>(); for(String method: methodvalues){ if(method.toLowerCase().contains("tag")||method.toLowerCase().contains("ignore")) logger.info("Method " + method + " will not run" ); else methodsToRun.add(new XmlInclude(method)); } testClass.setIncludedMethods(methodsToRun); classes.add(testClass); } test.setXmlClasses(classes); } suites.add(suite); /** * Writing the TestNG.xml information to a file */ FileWriter writer; File TestNGFile = new File("TestNG.xml"); if(TestNGFile.exists()) // Delete TestNG if exists TestNGFile.delete(); writer = new FileWriter(TestNGFile); writer.write(suite.toXml()); writer.flush(); writer.close(); logger.info("TestNG file Generated Successfully"); TestNG tng = new TestNG(); tng.setXmlSuites(suites); tng.run(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startTest() throws Throwable\n {\n ExcelFileUtil excel= new ExcelFileUtil();\n // iterate all row in masterTestCases sheet\n\n for(int i=1;i<=excel.rowCount(\"MasterTestCases\");i++)\n {\n String ModuleStatus=\"\";\n if(excel.getData(\"MasterTestCases\", i, 2).equalsIgnoreCase(\"Y\"))\n {\n //store module name to TCModule\n String TCModule =excel.getData(\"MasterTestCases\", i, 1);\n report=new ExtentReports(\"./Reports/\"+TCModule+Muvi_Functions.generateDate()+\".html\");\n //iterate all rows in TCModule\n for(int j=1;j<=excel.rowCount(TCModule);j++)\n {\n test=report.startTest(TCModule);\n //read al the columns from TCMocule\n String Description=excel.getData(TCModule, j, 0);\n String Object_Type=excel.getData(TCModule, j, 1);\n String Locator_Type=excel.getData(TCModule, j, 2);\n String Locator_Value=excel.getData(TCModule, j, 3);\n String Test_Data=excel.getData(TCModule, j, 4);\n //System.out.println(Description+\" \"+Object_Type);\n //calling the method from function library\n try{\n if(Object_Type.equalsIgnoreCase(\"startBrowser\"))\n {\n System.out.println(\"Executing startBroswer\");\n driver= Muvi_Functions.startBrowser(driver);\n System.out.println(\"Executing startBroswer\");\n }else if (Object_Type.equalsIgnoreCase(\"openApplication\"))\n {\n Muvi_Functions.openApplication(driver);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing openApplication\");\n }else if (Object_Type.equalsIgnoreCase(\"waitForElement\"))\n {\n Muvi_Functions.waitForElement(driver, Locator_Type, Locator_Value, Test_Data);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing waitForElement\");\n }else if (Object_Type.equalsIgnoreCase(\"typeAction\"))\n {\n Muvi_Functions.typeAction(driver, Locator_Type, Locator_Value, Test_Data);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing typeAction\");\n }else if (Object_Type.equalsIgnoreCase(\"clickAction\"))\n {\n Muvi_Functions.clickAction(driver, Locator_Type, Locator_Value);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing clickAction\");\n }else if (Object_Type.equalsIgnoreCase(\"selectAction\"))\n {\n Muvi_Functions.selectAction(driver, Locator_Type, Locator_Value);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing selectAction\");\n } else if (Object_Type.equalsIgnoreCase(\"selectStartDate\"))\n {\n Muvi_Functions.selectStartDate(driver, Locator_Type, Locator_Value);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing selectStartDate\");\n }\n else if (Object_Type.equalsIgnoreCase(\"switchWindow\"))\n {\n Muvi_Functions.switchWindow(driver);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing switchWindow\");\n }else if (Object_Type.equalsIgnoreCase(\"isElementVisible\"))\n {\n Muvi_Functions.isElementVisible(driver, Locator_Type, Locator_Value);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing isElementVisible\");\n }else if (Object_Type.equalsIgnoreCase(\"hoverOver\"))\n {\n Muvi_Functions.hoverOver(driver, Locator_Type, Locator_Value);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing hoverOver\");\n }else if (Object_Type.equalsIgnoreCase(\"uploadTopBanner\"))\n {\n Muvi_Functions.uploadTopBanner(driver);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing uploadTopBanner\");\n }\n else if (Object_Type.equalsIgnoreCase(\"uploadPoster\"))\n {\n Muvi_Functions.uploadPoster(driver);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing uploadPoster\");\n }\n else if (Object_Type.equalsIgnoreCase(\"profilePicture\"))\n {\n Muvi_Functions.profilePicture(driver);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing profilePicture\");\n }\n else if (Object_Type.equalsIgnoreCase(\"uploadVideo\"))\n {\n Muvi_Functions.uploadVideo(driver);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing uploadVideo\");\n }\n else if (Object_Type.equalsIgnoreCase(\"verifyUpload\"))\n {\n Muvi_Functions.verifyUpload(driver);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing verifyUpload\");\n }\n\n else if (Object_Type.equalsIgnoreCase(\"closeBrowser\"))\n {\n Muvi_Functions.closeBrowser(driver);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing closeBrowser\");\n }\n\n\n //write as pass into status column\n excel.setCellData(TCModule, j, 5, \"PASS\");\n test.log(LogStatus.PASS, Description);\n ScreenShot.Takescreen(driver,Description);\n ModuleStatus=\"TRUE\";\n\n }\n catch(Exception e)\n {\n excel.setCellData(TCModule, j, 5, \"FAIL\");\n ModuleStatus=\"FALSE\";\n if(ModuleStatus.equalsIgnoreCase(\"FALSE\"))\n {\n excel.setCellData(\"MasterTestCases\", i, 3, \"FAIL\");\n Thread.sleep(2000);\n test.log(LogStatus.FAIL, \"Test Fail\");\n ScreenShot.Takescreen(driver,Description);\n }\n System.out.println(e.getMessage());\n break;\n }\n if(ModuleStatus.equalsIgnoreCase(\"TRUE\"))\n {\n excel.setCellData(\"MasterTestCases\", i, 3, \"PASS\");\n }\n report.flush();//push reports to html\n report.endTest(test);\n }\n\n }\n else\n {\n //write as not executed in master testcases in status coulmn for flag N\n excel.setCellData(\"MasterTestCases\", i,3, \"Not Executed\");\n\n }\n }\n }", "@AfterMethod\n\tpublic void getResult(ITestResult result) throws IOException {\n\t\tString cellContent = this.getClass().getSimpleName();\n\t\tSystem.out.println(cellContent);\n\t\t// Searches for the Class name in Excel and return step name\n\t\tString StepName = ts.GetStepName(fileName, cellContent, i, 7);\n\t\t// Searches for the Class name in Excel and returns description of step\n\t\tString StepDescrip = ts.GetStepName(fileName, cellContent, i, 8);\n\t\t// Here we merge the step and description to be put in word\n\t\tString merged = StepName + \": \" + StepDescrip;\n\t\tSystem.out.println(merged);\n\t\ti++;\n\n\t\tSystem.out.println(\"In After method\");\n\t\tSystem.out.println(result.getMethod().getConstructorOrMethod().getMethod().getName());\n\n\t\t// First get the Step Name and Description name in here\n\n\t\t// System.out.println(this.getClass().getSimpleName());\n\t\t// test=\n\t\t// extent.createTest(result.getMethod().getConstructorOrMethod().getMethod().getName());\n\t\tif (result.getStatus() == ITestResult.FAILURE) {\n\t\t\tSystem.out.println(\"Test failed entering in Report\");\n\t\t\ttest.log(Status.FAIL, MarkupHelper.createLabel(result.getName() + StepDescrip + \" Test case FAILED due to below issues:\",\n\t\t\t\t\tExtentColor.RED));\n\t\t\tString issueDescription = result.getThrowable().getMessage();\n\t\t\tissueDescription.concat(ExceptionUtils.getFullStackTrace(result.getThrowable()));\n\t\t\ttest.fail(issueDescription);\n\t\t} else if (result.getStatus() == ITestResult.SUCCESS) {\n\t\t\tSystem.out.println(\"Test passed entering in report\");\n\t\t\ttest.log(Status.PASS, MarkupHelper.createLabel(result.getName() + StepDescrip + \" Test Case PASSED\", ExtentColor.GREEN));\n\t\t} else {\n\t\t\ttest.log(Status.SKIP,\n\t\t\t\t\tMarkupHelper.createLabel(result.getName() + StepDescrip + \" Test Case SKIPPED\", ExtentColor.ORANGE));\n\t\t\ttest.skip(result.getThrowable());\n\t\t}\n\t\tSystem.out.println(\"At end of after method\");\n\t}", "private void generateTestExecution(ITestResult result) throws IOException{\r\n\t\t//create the html file with current running class and test name\r\n\t\tfout = createRequiredFile(result.getName());\r\n\t\t\r\n\t\t//Write initial html codes neccessary for report\r\n\t\tstartHtmlPage(fout,result);\r\n\t\t\r\n\t\t//get all the attributes set during the test execution\r\n\t\tObject[] array = result.getAttributeNames().toArray();\r\n\t\t\r\n\t\t//Above got values are not in sort. So, Sorting that based on time\r\n\t\tArrays.sort(array);\r\n\t\t\r\n\t\t//Iterating the array value to generate report\r\n \tfor(Object name : array){\r\n \t\t\t\r\n \t\t\t//Each and every array value contains, All the info about the particular action\r\n \t\t\t//And Values combined using deliminator. So, split using deliminator\r\n\t \t\tString temp[] = result.getAttribute((String) name).toString().split(\"####\");\r\n\t \t\t\r\n\t \t\t//After split up, If the third array value contains 'Fail' means that step failed \r\n\t \t\tif(temp[3].toLowerCase().contains(\"fail\")){\r\n\t \t\t\t//If Fail create '<tr>' tag with 'status_failed' class(Which is used for create 'red' background color for failed cases)\r\n\t \t\t\tfout.println(\"<tr class=\\\"status_failed\\\" title=\\\"\\\" alt=\\\"\\\">\");\r\n\t \t\t\t\r\n\t \t\t\t//create the screenshot path\r\n\t \t\t\tString pathToScreenshot = \"../Failure_Screenshot/\"+temp[5]+\".jpg\";\r\n\t \t\t\t\r\n\t \t\t\t//creating mapping for failed step(Link to screen shot and embed the screenshot in that step)\r\n\t \t\t\ttemp[4] = \"<a href=\\'\" + pathToScreenshot + \"\\'> <img src=\\'\" + pathToScreenshot + \"\\' height=\\\"100\\\" width=\\\"100\\\"> </a>\";\r\n\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//After split up, If the third array value contains 'title' means that is title\r\n\t \t\telse if(temp[3].toLowerCase().contains(\"title\")){\r\n\t \t\t\t//So, If it is a title then create '<tr>' tag with class name 'title'\r\n\t \t\t\tfout.println(\"<tr class=\\\"title\\\" title=\\\"\\\" alt=\\\"\\\">\");\r\n\t \t\t\tfout.println(\"<td colspan=\\\"6\\\">\"+ temp[0] + \"</td>\");\r\n\t \t\t\tfout.println(\"</tr>\");\r\n\t \t\t\tcontinue;\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//Else status is passed\r\n\t \t\telse{\r\n\t \t\t\tfout.println(\"<tr class=\\\"status_passed\\\" title=\\\"\\\" alt=\\\"\\\">\");\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//this will create separate '<td>' for messages inside the action\r\n\t \t\tfor(String temp1 : temp){\r\n\t \t\t\t\tfout.println(\"<td>\"+ temp1 + \"</td>\");\r\n\r\n\t \t\t}\r\n\t \t//end up '<tr>' tag\t\r\n\t \tfout.println(\"</tr>\");\r\n \t}\r\n \t\r\n \t//this used for write some end up html tags\r\n \tonFinish();\r\n \t\r\n\t}", "@Test(groups={\"it\"})\r\n\tpublic void testReportDetailsAllConfigurationSteps() throws Exception {\r\n\t\t\r\n\t\texecuteSubTest(new String[] {\"com.seleniumtests.it.stubclasses.StubTestClassForListener1\"}); \r\n\t\t\r\n\t\tString detailedReportContent = readTestMethodResultFile(\"test1Listener1\");\r\n\t\t\r\n\t\tAssert.assertTrue(detailedReportContent.contains(\"</i></button><span class=\\\"step-title\\\"> Pre test step: beforeMethod -\"));\r\n\t\tAssert.assertTrue(detailedReportContent.contains(\"</i></button><span class=\\\"step-title\\\"> Pre test step: beforeTest -\"));\r\n\t\tAssert.assertTrue(detailedReportContent.contains(\"</i></button><span class=\\\"step-title\\\"> Pre test step: beforeClass -\"));\r\n\t\tAssert.assertTrue(detailedReportContent.contains(\"</i></button><span class=\\\"step-title\\\"> Post test step: afterMethod -\"));\r\n\t\tAssert.assertTrue(detailedReportContent.contains(\"</i></button><span class=\\\"step-title\\\"> Post test step: afterClass -\"));\r\n\t\tAssert.assertTrue(detailedReportContent.contains(\"</i></button><span class=\\\"step-title\\\"> Post test step: afterTest -\"));\r\n\t\t\r\n\t\t// check reference to configuration methods for class / test / method are in both results (some are common)\r\n\t\tString detailedReportContent2 = readTestMethodResultFile(\"test2Listener1\");\r\n\t\t\r\n\t\tAssert.assertTrue(detailedReportContent2.contains(\"</i></button><span class=\\\"step-title\\\"> Pre test step: beforeMethod -\"));\r\n\t\tAssert.assertTrue(detailedReportContent2.contains(\"</i></button><span class=\\\"step-title\\\"> Pre test step: beforeTest -\"));\r\n\t\tAssert.assertTrue(detailedReportContent2.contains(\"</i></button><span class=\\\"step-title\\\"> Pre test step: beforeClass -\"));\r\n\t\tAssert.assertTrue(detailedReportContent2.contains(\"</i></button><span class=\\\"step-title\\\"> Post test step: afterMethod -\"));\r\n\t\tAssert.assertTrue(detailedReportContent2.contains(\"</i></button><span class=\\\"step-title\\\"> Post test step: afterClass -\"));\r\n\t\tAssert.assertTrue(detailedReportContent2.contains(\"</i></button><span class=\\\"step-title\\\"> Post test step: afterTest -\"));\r\n\t}", "public void runIndividualSpreadsheetTests() {\r\n\r\n\t\t// Make a list of files to be analyzed\r\n\t\tString[] inputFiles = new String[] {\r\n//\t\t\t\t\"salesforecast_TC_IBB.xml\",\r\n//\t\t\t\t\"salesforecast_TC_2Faults.xml\",\r\n//\t\t\t\t\t\t\t\"salesforecast_TC_2FaultsHeavy.xml\",\r\n\t\t\t\t\"SemUnitEx1_DJ.xml\",\r\n\t\t\t\t\"SemUnitEx2_1fault.xml\",\r\n\t\t\t\t\"SemUnitEx2_2fault.xml\",\r\n//\t\t\t\t\"VDEPPreserve_1fault.xml\",\r\n//\t\t\t\t\"VDEPPreserve_2fault.xml\",\r\n//\t\t\t\t\t\t\t\"VDEPPreserve_3fault.xml\",\r\n//\t\t\t\t\"AZA4.xml\",\r\n//\t\t\t\t\"Consultant_form.xml\",\r\n//\t\t\t\t\"Hospital_Payment_Calculation.xml\",\r\n//\t\t\t\t\"Hospital_Payment_Calculation_v2.xml\",\r\n//\t\t\t\t\"Hospital_Payment_Calculation_C3.xml\",\r\n//\t\t\t\t\"11_or_12_diagnoses.xml\",\r\n//\t\t\t\t\"choco_loop.xml\",\r\n//\t\t\t\t\"Paper2.xml\",\r\n//\t\t\t\t\"Test_If.xml\",\r\n//\t\t\t\t\"Test_If2.xml\",\r\n\r\n\t\t};\r\n\r\n\t\tscenarios.add(new Scenario(executionMode.singlethreaded, pruningMode.on, PARALLEL_THREADS, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.levelparallel, pruningMode.on, 2, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.fullparallel, pruningMode.on, 1, CHOCO3));\r\n\t\tscenarios.add(new Scenario(executionMode.fullparallel, pruningMode.on, 2, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.fullparallel, pruningMode.on, 4, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.heuristic, pruningMode.on, 1, CHOCO3));\r\n\t\tscenarios.add(new Scenario(executionMode.heuristic, pruningMode.on, 2, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.heuristic, pruningMode.on, 4, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.heuristic, pruningMode.on, PARALLEL_THREADS, true));\r\n//\t\tscenarios.add(new Scenario(executionMode.hybrid, pruningMode.on, 1, CHOCO3));\r\n\t\tscenarios.add(new Scenario(executionMode.hybrid, pruningMode.on, 2, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.hybrid, pruningMode.on, 4, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.levelparallel, pruningMode.on, PARALLEL_THREADS, false));\r\n//\t\tscenarios.add(new Scenario(executionMode.fullparallel, pruningMode.on, PARALLEL_THREADS, false));\r\n//\t\tscenarios.add(new Scenario(executionMode.fullparallel, pruningMode.on, PARALLEL_THREADS, false));\r\n//\t\tscenarios.add(new Scenario(executionMode.heuristic,pruningMode.on,PARALLEL_THREADS*2));\r\n//\t\tscenarios.add(new Scenario(executionMode.heuristic,pruningMode.on,0));\r\n\r\n//\t\tinputFiles = new String[]{\"VDEPPreserve_3fault.xml\"};\r\n\r\n\r\n\t\t// Go through the files and run them in different scenarios\r\n\t\tfor (String inputfilename : inputFiles) {\r\n\t\t\trunScenarios(inputFileDirectory, inputfilename, logFileDirectory, scenarios);\r\n\t\t}\r\n\t}", "@Test(groups={\"it\"})\r\n\tpublic void testReportDetailsOnlyTestConfigurationSteps() throws Exception {\r\n\t\texecuteSubTest(1, new String[] {\"com.seleniumtests.it.stubclasses.StubTestClass\"}, ParallelMode.METHODS, new String[] {\"testAndSubActions\", \"testInError\", \"testWithException\"});\r\n\t\t\r\n\t\tString detailedReportContent = readTestMethodResultFile(\"testAndSubActions\");\r\n\t\tAssert.assertEquals(StringUtils.countMatches(detailedReportContent, \"</i></button><span class=\\\"step-title\\\"> Pre test step: set -\"), 1);\r\n\t\t\r\n\t\tString detailedReportContent2 = readTestMethodResultFile(\"testInError\");\r\n\t\tAssert.assertEquals(StringUtils.countMatches(detailedReportContent2, \"</i></button><span class=\\\"step-title\\\"> Pre test step: set -\"), 1);\r\n\t\t\r\n\t\t// check that when test is KO, error cause is displayed\r\n\t\tAssert.assertTrue(detailedReportContent2.contains(\"[main] ScenarioLogger: Test is KO with error: class java.lang.AssertionError: error\"));\r\n\t\t\r\n\t\tString detailedReportContent3 = readTestMethodResultFile(\"testWithException\");\r\n\t\tAssert.assertEquals(StringUtils.countMatches(detailedReportContent3, \"</i></button><span class=\\\"step-title\\\"> Pre test step: set -\"), 1);\r\n\t\tAssert.assertEquals(StringUtils.countMatches(detailedReportContent3, \"</i></button><span class=\\\"step-title\\\"> Post test step: reset -\"), 1);\r\n\t\t\r\n\t\t// in case of test method error, it is retried so each Before/After method is also replayed. Check it's the last one we have\r\n\t\tAssert.assertTrue(detailedReportContent3.contains(\"<div class=\\\"message-info\\\">before count: 2</div>\"));\r\n\t\tAssert.assertTrue(detailedReportContent3.contains(\"<div class=\\\"message-info\\\">after count: 3</div>\"));\r\n\t}", "private String generateTestNGTestCasesSkeletonCode(List<TestCaseList> testCases, ProductMaster product, String packageName, String refClassName, String destinationDirectory, int nameSource, String testExecutionEngine, String testStepOption) {\n\t\tJCodeModel codeModel = new JCodeModel();\r\n\t\tString message = null;\r\n\t\ttry {\r\n\t\t\tif (testExecutionEngine == null)\r\n\t\t\t\ttestExecutionEngine = TAFConstants.TESTENGINE_SEETEST;\r\n\t\t\tlog.info(\"Test Execution Engine : \" + testExecutionEngine);\r\n\t\t\t\t\r\n\t\t\tJClass testNGAfterMethodReference = null;\r\n\t\t\tJClass testNGBeforeMethodReference = null;\r\n\t\t\tJClass testNGTestReference = null;\r\n\t\t\ttestNGAfterMethodReference = codeModel.ref(\"org.testng.annotations.AfterMethod\");\r\n\t\t\ttestNGBeforeMethodReference = codeModel.ref(\"org.testng.annotations.BeforeMethod\");\r\n\t\t\ttestNGTestReference = codeModel.ref(\"org.testng.annotations.Test\");\r\n\r\n\t\t\tfor (TestCaseList testCase : testCases) {\r\n\r\n\t\t\t\t// 1. Create the class for the test case\r\n\t\t\t\t//String testCaseName = getTestCaseClassName(testCase, nameSource);\r\n\t\t\t\t//String testCaseName = null;\r\n\t\t\t\tString testCaseName = null;\r\n\t\t\t\tString classPackageName = null;\r\n\t\t\t\tif (testCase.getTestCaseScriptFileName() == null || testCase.getTestCaseScriptFileName().trim().isEmpty()) {\r\n\t\t\t\t\ttestCaseName = ScriptGeneratorUtilities.getTestCaseClassName(testCase.getTestCaseName(), testCase.getTestCaseId(), testCase.getTestCaseCode(), nameSource);\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttestCaseName = testCase.getTestCaseScriptFileName();\r\n\t\t\t\t\tif(testCaseName.contains(\".java\")){\r\n\t\t\t\t\t\ttestCaseName = testCaseName.replace(testCaseName.substring(testCaseName.lastIndexOf(\".\")),\"\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (testCase.getTestCaseScriptQualifiedName() == null || testCase.getTestCaseScriptQualifiedName().trim().isEmpty()) {\r\n\t\t\t\t\tclassPackageName = packageName;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tclassPackageName = testCase.getTestCaseScriptQualifiedName();\r\n\t\t\t\t}\r\n\t\t\t\tJDefinedClass testCaseClass = codeModel._class(classPackageName + \".\" + testCaseName);\r\n\t\t\t\tJDocComment classComment = testCaseClass.javadoc();\r\n\t\t\t\tString javadocCommentClass = \"Automation Script for Testcase : \" + testCase.getTestCaseName()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Product : \" + product.getProductDescription()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Testcase ID \t\t: \" + testCase.getTestCaseId()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Testcase Code\t\t: \" + testCase.getTestCaseCode()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Description \t\t: \" + testCase.getTestCaseDescription()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Test case type \t: \" + testCase.getTestCaseType()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Script Type \t\t: \" + TAFConstants.TESTSCRIPT_TYPE_TESTNG\r\n\t\t\t\t\t\t+ \"\\n\" + \"Test Execution Engine \t: \" + testExecutionEngine\r\n\t\t\t\t\t\t+ \"\\n\" + \"Code generated by TAF on \t: \" + new Date(System.currentTimeMillis());\r\n\t\t\t\tclassComment.append(javadocCommentClass);\r\n\t\t\t\t\r\n\t\t\t\ttestCaseClass = addClassVariablesForTestCaseClass(codeModel, testCaseClass, testExecutionEngine);\r\n\t\t\t\t\r\n\t\t\t\t// 4.a Add the setup method\r\n\t\t\t\tJMethod setUpMethod = testCaseClass.method(JMod.PUBLIC, void.class, \"setUp\");\r\n\t\t\t\tJDocComment methodComment1 = setUpMethod.javadoc();\r\n\t\t\t\tString commentString = \"Setup method for testcase\";\r\n\t\t\t\tmethodComment1.append(commentString);\r\n\t\t\t\tsetUpMethod = constructSetUpMethodForTestCase(setUpMethod, testExecutionEngine, refClassName, testCaseName);\r\n\t\t\t\tsetUpMethod.annotate(testNGBeforeMethodReference);\r\n\t\t\t\t\r\n\t\t\t\tJMethod tearDownMethod = testCaseClass.method(JMod.PUBLIC, void.class, \"tearDown\");\r\n\t\t\t\tJDocComment methodComment2 = tearDownMethod.javadoc();\r\n\t\t\t\tcommentString = \"Teardown method for the testcase\";\r\n\t\t\t\tmethodComment2.append(commentString);\r\n\t\t\t\ttearDownMethod = constructTearDownMethodForTestCase(setUpMethod, testExecutionEngine);\r\n\t\t\t\ttearDownMethod.annotate(testNGAfterMethodReference);\r\n\t\t\t\t\r\n\t\t\t\tif (testStepOption == null)\r\n\t\t\t\t\ttestStepOption = \"SINGLE_METHOD\";\r\n\t\t\t\tList<TestCaseStepsList> testSteps = testCaseService.listTestCaseSteps(testCase.getTestCaseId());\r\n\t\t\t\tif (testSteps == null || testSteps.isEmpty()) {\r\n\t\t\t\t\tlog.debug(\"No steps in the testcase : \" + testCaseName);\r\n\t\t\t\t\tJMethod testCaseMethod = testCaseClass.method(JMod.PUBLIC, void.class, testCaseName + \"_Test\");\r\n\t\t\t\t\ttestCaseMethod.annotate(testNGTestReference);\r\n\t\t\t\t\ttestCaseMethod = constructDefaultTestCaseMethodForTestCase(testCaseMethod, testExecutionEngine, testCase);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif(testStepOption.contains(\"SEPARATE_METHOD\")) {\r\n\t\t\t\t\t\tfor (TestCaseStepsList testStep : testSteps) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tString testStepName = ScriptGeneratorUtilities.getTestStepMethodName(testCaseName, testStep.getTestStepName(), testStep.getTestStepId(), testStep.getTestStepCode(), 1 );\r\n\t\t\t\t\t\t\tJMethod testStepMethod = testCaseClass.method(JMod.PUBLIC, void.class, testStepName);\r\n\t\t\t\t\t\t\ttestStepMethod.annotate(testNGTestReference);\r\n\t\t\t\t\t\t\ttestStepMethod = constructTestStepMethodForTestCase(testStepMethod, testExecutionEngine, refClassName, testCaseName, testStepName, testStep);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tJMethod singleTestStepMethod = testCaseClass.method(JMod.PUBLIC, void.class, testCaseName + \"_Test\");\r\n\t\t\t\t\t\tsingleTestStepMethod.annotate(testNGTestReference);\r\n\t\t\t\t\t\tfor (TestCaseStepsList testStep : testSteps) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tString testStepName = ScriptGeneratorUtilities.getTestStepMethodName(testCaseName, testStep.getTestStepName(), testStep.getTestStepId(), testStep.getTestStepCode(), 1 );\r\n\t\t\t\t\t\t\tsingleTestStepMethod = addTestStepForSingleTestStepMethodForTestCase(singleTestStepMethod, testExecutionEngine, refClassName, testCaseName, testStepName, testStep);\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\tFile sourceFile = new File(destinationDirectory);\r\n\t\t\t\tif (!sourceFile.exists()) {\r\n\t\t\t\t\tlog.info(\"Created Directory for source code generation : \" + destinationDirectory);\r\n\t\t\t\t\tsourceFile.mkdirs();\r\n\t\t\t\t}\r\n\t\t\t\tcodeModel.build(sourceFile);\r\n\t\t\t\tmessage = sourceFile.getAbsolutePath() + DEFAULT_PACKAGE_NAME_FOLDER + File.separator + testCaseName + \".java\";\r\n\t\t\t}\r\n\t\t} catch (JClassAlreadyExistsException e) {\r\n\t\t\tlog.error(\"Unable to generate testcase ref source code class\", e);\r\n\t\t\tmessage = \"Failed : Unable to generate testcase ref source code class\";\r\n\t\t} catch (IOException io) {\r\n\t\t\tlog.error(\"Unable to create file in file system\", io);\r\n\t\t\tmessage = \"Failed : Unable to create file in file system\";\r\n\t\t}\r\n\t\t\r\n\t\tlog.debug(\"Success : Generated Testcases source code framework.\" );\r\n\t\treturn message;\r\n\r\n\t}", "public static void startTestCase(String testCase) throws Exception\n\t{\n\t\tint currentSuiteID;\n\t\tint currentTestCaseID;\n\t\tString currentTestSuite;\n\t\tString currentTestCaseName;\n\t\tXls_Reader currentTestSuiteXLS;\n\t\tXls_Reader Wb = new Xls_Reader(System.getProperty(\"user.dir\")+\"\\\\src\\\\main\\\\java\\\\com\\\\test\\\\automation\\\\uIAutomation\\\\data\\\\Controller.xlsx\");\n\t\tString TestURL = VerifyLoginWithValidCredentials.CONFIG.getProperty(\"TestURL\");\n\t\tfor (currentSuiteID = 2; currentSuiteID <= Wb.getRowCount(ObjectRepository.TEST_SUITE_SHEET); currentSuiteID++)\n\t\t{\n\t\t\tcurrentTestSuite = Wb.getCellData(ObjectRepository.TEST_SUITE_SHEET, ObjectRepository.Test_Suite_ID, currentSuiteID);\n\t if(Wb.getCellData(ObjectRepository.TEST_SUITE_SHEET, ObjectRepository.RUNMODE, currentSuiteID).equals(ObjectRepository.RUNMODE_YES))\n\t \t\t{\n\t\t\t\tcurrentTestSuiteXLS = new Xls_Reader(\"src/config/\" + currentTestSuite + \".xlsx\");\n\t\t\t\tfor (currentTestCaseID = 2; currentTestCaseID <= currentTestSuiteXLS.getRowCount(ObjectRepository.TEST_CASES_SHEET); currentTestCaseID++) \n\t\t\t\t{\n\t\t\t\t\tcurrentTestCaseName = currentTestSuiteXLS.getCellData(ObjectRepository.TEST_CASES_SHEET, ObjectRepository.Test_Case_ID, currentTestCaseID);\n\t\t\t\t\tif (currentTestCaseName.equals(testCase))\n\t {\n\t\t\t\t\t\tString desc = currentTestSuiteXLS.getCellData(ObjectRepository.TEST_CASES_SHEET, \"Description\", currentTestCaseID);\n\t\t\t\t\t\tString subModule = currentTestSuiteXLS.getCellData(ObjectRepository.TEST_CASES_SHEET, \"Sub Module\", currentTestCaseID);\n\t\t\t\t\t\tLog.test = Log.extent.startTest(currentTestCaseName, desc).assignCategory(currentTestSuite + \" Module\", subModule + \" Sub-Module\");\n\t\t\t\t\t\tLog.test.log(LogStatus.INFO, \"Testing on URL : \" + TestURL);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private String generateTestNGMainClass(ProductMaster product, String testExecutionEngine, String packageName, String destinationDirectory, int nameSource) {\n\t\tJCodeModel codeModel = new JCodeModel();\r\n\t\tString message = null;\r\n\t\ttry {\r\n\t\t\tif (testExecutionEngine == null)\r\n\t\t\t\ttestExecutionEngine = TAFConstants.TESTENGINE_SEETEST;\r\n\t\t\tlog.info(\"Test Execution Engine : \" + testExecutionEngine);\r\n\t\t\t\t\r\n\t\t\tJClass testNGAfterSuiteReference = null;\r\n\t\t\tJClass testNGBeforeSuiteReference = null;\r\n\t\t\ttestNGAfterSuiteReference = codeModel.ref(\"org.testng.annotations.AfterSuite\");\r\n\t\t\ttestNGBeforeSuiteReference = codeModel.ref(\"org.testng.annotations.BeforeSuite\");\r\n\r\n\r\n\t\t\t// 1. Create the class for the main class\r\n\t\t\tJDefinedClass mainClass = codeModel._class(packageName + \".\" + \"Main\");\r\n\t\t\tJDocComment classComment = mainClass.javadoc();\r\n\t\t\tString javadocCommentClass = \"Main driver class for integration of scripts with TAF\"\r\n\t\t\t\t\t\t+ \"\\n\" + \"Product : \" + product.getProductDescription()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Script Type \t\t: \" + TAFConstants.TESTSCRIPT_TYPE_TESTNG\r\n\t\t\t\t\t\t+ \"\\n\" + \"Test Execution Engine \t: \" + testExecutionEngine\r\n\t\t\t\t\t\t+ \"\\n\" + \"Code generated by TAF on \t: \" + new Date(System.currentTimeMillis());\r\n\t\t\tclassComment.append(javadocCommentClass);\r\n\r\n\t\t\t//Add the class variables\r\n\t\t\tmainClass = addClassVariablesForMainClass(codeModel, mainClass, testExecutionEngine);\r\n\t\t\r\n\t\t\t//Add the setup method\r\n\t\t\tJMethod setUpMethod = mainClass.method(JMod.PUBLIC, void.class, \"setUp\");\r\n\t\t\tJDocComment methodComment1 = setUpMethod.javadoc();\r\n\t\t\tString commentString = \"Setup method for the TestSuite/TestRun\";\r\n\t\t\tmethodComment1.append(commentString);\r\n\t\t\tsetUpMethod = constructSetUpMethodForMain(setUpMethod, testExecutionEngine);\r\n\t\t\tsetUpMethod.annotate(testNGBeforeSuiteReference);\r\n\t\t\t\t\r\n\t\t\t//Add the SeeTest Initialization method\r\n\t\t\tif (testExecutionEngine.equals(TAFConstants.TESTENGINE_SEETEST)) {\r\n\t\t\t\tJMethod initSeeTestClientMethod = mainClass.method(JMod.PUBLIC, codeModel.ref(com.experitest.client.Client.class), \"initSeeTestClient\");\r\n\t\t\t\tinitSeeTestClientMethod = constructSeeTestInitMethodForMain(initSeeTestClientMethod, testExecutionEngine, product);\r\n\t\t\t}\r\n\r\n\t\t\t//Add the teardown method\r\n\t\t\tJMethod tearDownMethod = mainClass.method(JMod.PUBLIC, void.class, \"tearDown\");\r\n\t\t\tJDocComment methodComment2 = tearDownMethod.javadoc();\r\n\t\t\tcommentString = \"Teardown method for the TestSuite/TestRun\";\r\n\t\t\tmethodComment2.append(commentString);\r\n\t\t\ttearDownMethod = constructTearDownMethodForMain(tearDownMethod, testExecutionEngine, product);\r\n\t\t\ttearDownMethod.annotate(testNGAfterSuiteReference);\r\n\t\t\t\t\r\n\t\t\t// Add accessor methods\t\t\t\r\n\t\t\tmainClass = constructAccessorMethodsForMain(codeModel, mainClass, testExecutionEngine, product);\r\n\t\t\t\r\n\t\t\tFile sourceFile = new File(destinationDirectory);\r\n\t\t\tif (!sourceFile.exists()) {\r\n\t\t\t\tlog.info(\"Created Directory for source code generation : \" + destinationDirectory);\r\n\t\t\t\tsourceFile.mkdirs();\r\n\t\t\t}\r\n\t\t\tcodeModel.build(sourceFile);\r\n\t\t\tmessage = sourceFile.getAbsolutePath() + MAIN_PACKAGE_NAME_FOLDER + File.separator +\"Main.java\";\r\n\r\n\t\t} catch (JClassAlreadyExistsException e) {\r\n\t\t\tlog.error(\"Unable to generate testcase ref source code class\", e);\r\n\t\t\tmessage = \"Failed : Unable to generate testcase ref source code class\";\r\n\t\t} catch (IOException io) {\r\n\t\t\tlog.error(\"Unable to create file in file system\", io);\r\n\t\t\tmessage = \"Failed : Unable to create file in file system\";\r\n\t\t}\r\n\t\t\r\n\t\tlog.info(\"Success : Generated Main class source code\" + message);\r\n\t\treturn message;\r\n\t}", "private static void tests_to_run(String testcase, XSSFWorkbook workbook) {\n\t\tXSSFSheet sheet=workbook.getSheet(\"Test_Cases\");\r\n\t\t\r\n\t\tfor(int i=1;i<=sheet.getLastRowNum();i++) {\r\n\t\t\t\r\n\t\t\tString test_case=sheet.getRow(i).getCell(0).getStringCellValue();\r\n\t\t\t\r\n\t\t\tif(test_case.equalsIgnoreCase(testcase)) {\r\n\t\t\t\ttry {keyword=sheet.getRow(i).getCell(2).getStringCellValue();\r\n\t\t\t\txpath=sheet.getRow(i).getCell(3).getStringCellValue();\r\n\t\t\t\ttest_data=sheet.getRow(i).getCell(4).getStringCellValue();}catch(Exception e) {}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tswitch(keyword) {\r\n\t\t\t\tcase \"launchbrowser\":System.setProperty(\"webdriver.chrome.driver\", \"chromedriver_version_75.exe\");\r\n\t\t\t\t\t\t\t\t\tchrome=new ChromeDriver();\r\n\t\t\t\t\t\t\t\t\tchrome.get(test_data);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase \"login\": chrome.findElement(By.xpath(xpath)).click();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase \"enter_email\": chrome.findElement(By.xpath(xpath)).sendKeys(test_data);\r\n\t\t\t\t\t\t\t\t\tver=test_data;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase \"enter_password\": chrome.findElement(By.xpath(xpath)).sendKeys(test_data);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase \"click_login\": chrome.findElement(By.xpath(xpath)).click();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase \"verify\": String ver1=chrome.findElement(By.xpath(xpath)).getText();\r\n\t\t\t\t\t\t\t\tif(ver1.equalsIgnoreCase(ver)) {\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Verified\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tdefault:System.out.println(\"WASTED\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}", "ExperimentExecutionDetailsPropertiesRunInformation runInformation();", "public static void testISPIssuesPlanMetrics(){\r\n\t\ttry {\r\n\t\t\tLogFunctions.generateLogsDirectory();\t\r\n\t\t\t\r\n\t\t\tGlobalVariables.steps = 0;\r\n\t\t\tGlobalVariables.testCaseId = \"REST004_ISPIssuesPlanMetrics\";\r\n\t\t\t\r\n\t\t\t// Create Log Files\r\n\t\t\tGlobalVariables.testResultLogFile = LogFunctions.generateLogFile(GlobalVariables.logFile + \"_\"+ GlobalVariables.testCaseId + \".log\");\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Test Case : REST004_ISPIssuesPlanMetrics Execution Started\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") REST004_ISPIssuesPlanMetrics Execution Started\");\r\n\t\t\t\r\n\t\t\t// For managing SSL connections\r\n\t\t\tConfigurations.validateTrustManager();\r\n\t\t\t\r\n\t\t\t// Reading input data from CSV File\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tConfigurations.getTestData(\"REST004_ISPIssues.csv\");\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Reading Data From CSV File\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Reading Data From CSV File\");\r\n\r\n\t\t\t// Send Request\r\n\t\t\tString data =GlobalVariables.testData.get(\"api\")+\"/version/\"+GlobalVariables.testData.get(\"versionNumber\")+\"/issues\";\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tConfigurations.sendRequest(data);\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Sending Request\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Request Sent\");\r\n\t\t\t\r\n\t\t\t// Receive Response in XML File (response.xml)\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tConfigurations.getResponse();\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Getting Response\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Response Received\");\r\n\t\t\t\r\n\t\t\t// Assertion: Verify that Plan Metrics\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tboolean planAgentResult;\r\n\t\t\t// Verify Count Name\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"count\",\"type\",GlobalVariables.testData.get(\"countType\"));\t\r\n\t\t\tAssert.assertEquals(\"Count type is\",true,planAgentResult);\r\n\t\t\t// Verify Count Value\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"count\",\"value\",GlobalVariables.testData.get(\"countValue\"));\t\r\n\t\t\tAssert.assertEquals(\"Count Value is\",true,planAgentResult);\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Plan Summary Assertion Pass\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Assertion Pass\");\r\n\t\t\t\r\n\t\t\t// Execution Completed\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Test Case : REST004_ISPIssuesPlanMetrics Execution Completed\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps+ \") Test Case : REST004_ISPIssuesPlanMetrics Execution Completed\");\r\n\t\t\t\r\n\t\t}catch (AssertionError ar) {\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\")Assertion Failed : \");\r\n\t\t\tar.printStackTrace();\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Assertion Failed\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogFunctions.logException(e.getMessage());\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\t\n\tXls_Reader reader = new Xls_Reader(\"F:\\\\Vishal_Offc Work\\\\Workspace\\\\SeleniumBasics\\\\src\\\\com\\\\testdata\\\\NewToursRegTestData.xlsx\");\n\t\n\tString FirstName = reader.getCellData(\"RegTestData\", \"FirstName\", 2);\n\tSystem.out.println(FirstName);\n\t\n\tString LastName = reader.getCellData(\"RegTestData\", \"LastName\", 2);\n\tSystem.out.println(LastName);\n\t\n\tString Phone = reader.getCellData(\"RegTestData\", \"Phone\", 2);\n\tSystem.out.println(Phone);\n\t\n\tString Email = reader.getCellData(\"RegTestData\", \"Email\", 2);\n\tSystem.out.println(Email);\n\t\n\tString Address1 = reader.getCellData(\"RegTestData\", \"Address1\", 2);\n\tSystem.out.println(Address1);\n\t\n\tString Address2 = reader.getCellData(\"RegTestData\", \"Address2\", 2);\n\tSystem.out.println(Address2);\n\t\n\tString City = reader.getCellData(\"RegTestData\", \"City\", 2);\n\tSystem.out.println(City);\n\t\n\tString State = reader.getCellData(\"RegTestData\", \"State\", 2);\n\tSystem.out.println(State);\n\t\n\tString PostalCode = reader.getCellData(\"RegTestData\", \"PostalCode\", 2);\n\tSystem.out.println(PostalCode);\n\t\n\tString Country = reader.getCellData(\"RegTestData\", \"Country\", 2);\n\tSystem.out.println(Country);\n\t\n\t//WebDriver code\n\tSystem.setProperty(\"webdriver.chrome.driver\",\"F:\\\\Drivers\\\\chromedriver_win32\\\\chromedriver.exe\");\n\tWebDriver driver = new ChromeDriver();\n\t\n\tdriver.get(\"http://newtours.demoaut.com/\");\n\t\n\tdriver.manage().window().maximize();\n\tdriver.manage().deleteAllCookies();\n\t\n\tdriver.manage().timeouts().pageLoadTimeout(40, TimeUnit.SECONDS);\n\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t\n\tdriver.findElement(By.linkText(\"REGISTER\")).click();\t\n\tdriver.findElement(By.xpath(\"//input[@name = 'firstName']\")).sendKeys(FirstName);\n\tdriver.findElement(By.xpath(\"//input[@name = 'lastName']\")).sendKeys(LastName);\n\tdriver.findElement(By.xpath(\"//input[@name = 'phone']\")).sendKeys(Phone);\n\tdriver.findElement(By.xpath(\"//input[@id = 'userName']\")).sendKeys(Email);\n\tdriver.findElement(By.xpath(\"//input[@name = 'address1']\")).sendKeys(Address1);\n\tdriver.findElement(By.xpath(\"//input[@name = 'address2']\")).sendKeys(Address2);\n\tdriver.findElement(By.xpath(\"//input[@name = 'city']\")).sendKeys(City);\n\tdriver.findElement(By.xpath(\"//input[@name = 'state']\")).sendKeys(State);\n\tdriver.findElement(By.xpath(\"//input[@name = 'postalCode']\")).sendKeys(PostalCode);\n\t\n\tSelect select = new Select(driver.findElement(By.xpath(\"//*[@name = 'country']\")));\n\tselect.selectByVisibleText(Country);\n\t\n\t/*driver.findElement(By.xpath(\"//input[@id = 'email']\")).sendKeys(FirstName);\n\tdriver.findElement(By.xpath(\"//input[@type = 'password']\")).sendKeys(FirstName);\n\tdriver.findElement(By.xpath(\"//input[@name = 'confirmPassword']\")).sendKeys(FirstName);*/\n\t\n\t\n\t\t\n\n\t}", "@Test(groups={\"it\"})\r\n\tpublic void testReportDetailsWithBeforeConfigurationError() throws Exception {\r\n\t\t\r\n\t\texecuteSubTest(new String[] {\"com.seleniumtests.it.stubclasses.StubTestClassForConfigurationError1\"}); \r\n\t\t\r\n\t\tString mainReportContent = readSummaryFile();\r\n\t\t\r\n\t\t// check main result is skipped with step failed indicated as a link\r\n\t\tAssert.assertTrue(mainReportContent.contains(\"<td name=\\\"stepsTotal-1\\\">3<sup><a href=\\\"#\\\" data-toggle=\\\"tooltip\\\" class=\\\"failedStepsTooltip\\\" title=\\\"2 step(s) failed\\\">*</a></sup></td>\"));\r\n\t\t\r\n\t\t\r\n\t\tString detailedReportContent = readTestMethodResultFile(\"testWithABeforeMethodError\");\r\n\r\n\t\t// check test is skipped as before method failed\r\n\t\tAssert.assertTrue(detailedReportContent.contains(\"<header class='main-header header-skipped'>\"));\r\n\t\t\r\n\t\t// Check details of the configuration error is displayed in report (this behaviour is controled by TestNG which adds exception from BeforeXXX to test method throwable)\r\n\t\tAssert.assertTrue(detailedReportContent.contains(\"<div>class com.seleniumtests.customexception.ConfigurationException: Some error before method</div>\"));\r\n\t\t\r\n\t\t// check we have a step for BeforeMethod and it's marked as failed\r\n\t\tAssert.assertTrue(detailedReportContent.contains(\"<div class=\\\"box collapsed-box failed\\\"><div class=\\\"box-header with-border\\\"><button type=\\\"button\\\" class=\\\"btn btn-box-tool\\\" data-widget=\\\"collapse\\\"><i class=\\\"fas fa-plus\\\"></i></button><span class=\\\"step-title\\\"> Pre test step: beforeMethod\"));\r\n\t\t\r\n\t\t// Check details of the configuration error is displayed in report\r\n\t\tAssert.assertTrue(detailedReportContent.matches(\".*<div class=\\\"message-error\\\">\\\\s+class com.seleniumtests.customexception.ConfigurationException: Some error before method.*\"));\r\n\r\n\t\t// check that when test is skipped, a message on test status is displayed\r\n\t\tAssert.assertTrue(detailedReportContent.contains(\"[main] ScenarioLogger: Test has not started or has been skipped</div>\"));\r\n\t\t\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tList<String> productionIssues = AllTestMethodNames.getTestSuiteProductionIssuesMethods(product);\n\t\tList<String> obsolete = AllTestMethodNames.getTestSuiteObsoleteMethods(product);\n\t\tproductionIssues.addAll(obsolete);\n\t\tList<String> productionIssuesAndObsoleteTestCases = productionIssues;\n\n\t\tList<String> logNew;\n\t\tList<String> logOld;\n\t\tLogAnalyzer tool;\n\n\t\tinitializeToolPaths();\n\t\tlogNew = LogAnalyzerReader.readJenkinsLogFromFile(LOG_ANALYZER_LOG_NEW);\n\t\tlogOld = LogAnalyzerReader.readJenkinsLogFromFile(LOG_ANALYZER_LOG_OLD);\n\t\ttool = new LogAnalyzer(logNew);\n\t\tcreateFullReport(tool, logOld, productionIssuesAndObsoleteTestCases);\n\n\t\t// generate xml file with test cases which were started during an automation run but never finished\n\t\t// createXMLWithUnfinishedTestCases(tool, productionIssuesAndObsoleteTestCases);\n\n\t\t// generate xml file with test cases which were not started at all because for instance test run failed before finishing. (eg Java Heap)\n\t\t// Place log contents of complete full recent run into C:\\Automation_artifacts\\LogAnalyzer\\LogAnalyzer-LogOld.log\n\t\t// createXMLWithTestCasesThatNeverStartedFromLog(tool, logOld, productionIssuesAndObsoleteTestCases);\n\n\t\t// Change to which group test cases belong to.\n\t\t// Options below will add additional group to the @Test(groups = {\"\"}) the test cases belong to or if non exist then it will add a new one. This will make the change in the\n\t\t// source code.\n\t\t// In the test case file each test case is separated by a new line, 2 test case file would be ex:\n\t\t// c158643\n\t\t// c256486\n\t\t// Uncomment the option you want below. Place testCaseList.txt file containing test cases needing update in C:\\Automation_artifacts\\LogAnalyzer\\ directory.\n\t\t// Update the product variable value above if its different than cpm\n\n\t\t// AllTestMethodNames.addTestCaseToObsoleteTestCasesGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.addTestCaseToProductionIssuesGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.addTestCaseToExternalExecGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.addTestCaseToDateTimeChangeGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\",product);\n\t\t// AllTestMethodNames.addTestCaseToCustomGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", \"EnterCustomGroupNameHere\", product); // enter your custom group name as the 2nd parameter.\n\n\t\t// Remove to which group test cases belong to.\n\t\t// AllTestMethodNames.removeTestCaseFromObsoleteTestCasesGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.removeTestCaseFromProductionIssuesGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.removeTestCaseFromExternalExecGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.removeTestCaseFromDateTimeChangeGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.removeTestCaseFromCustomGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\",\"EnterCustomGroupNameHere\", product ); // enter your custom group name as the 2nd parameter.\n\n\t}", "public static void main(String[] args) throws Exception {\n\t\t\tfor (int k = 1; k<= 8; k++) \r\n\t\t\t{\r\n\t\t\t\tAVIS.CommonFunctions.ReadWriteExcel rw = new AVIS.CommonFunctions.ReadWriteExcel(\"C:\\\\Downloads\\\\Selenium\\\\AVIS\\\\TestData\\\\AVIS_GUIDelayed_CheckOut.xlsx\");\r\n\t\t\t\tString TestExecute = rw.getCellData(\"Avis_GUI\", k ,2);\r\n\t\t\t\r\n\t\t\t\tif (TestExecute.equals(\"Y\"))\r\n\t\t\t\t{\t\r\n\t\t\t\tString Testcasename =rw.getCellData(\"Avis_GUI\", k, 4);\r\n\t\t\t\tString TestUrl = rw.getCellData(\"Avis_GUI\", k, 7);\r\n\t\t\t\tString TestStn = rw.getCellData(\"Avis_GUI\", k, 8);\r\n\t\t\t\tString Testqauser = rw.getCellData(\"Avis_GUI\", k, 9);\r\n\t\t\t\tString Testqapwd = rw.getCellData(\"Avis_GUI\", k, 10);\r\n\t\t\t\tString LastName = rw.getCellData(\"Avis_GUI\", k, 11);\r\n\t\t\t\tString FirstName = rw.getCellData(\"Avis_GUI\", k, 12);\r\n\t\t\t\tString CheckOutDate = rw.getCellData(\"Avis_GUI\", k, 13);\r\n\t\t\t\tString CheckOutTime = rw.getCellData(\"Avis_GUI\", k, 14);\r\n\t\t\t\tString InStation = rw.getCellData(\"Avis_GUI\", k, 15);\r\n\t\t\t\tString CheckInDate = rw.getCellData(\"Avis_GUI\", k, 16);\r\n\t\t\t\tString CheckInTime = rw.getCellData(\"Avis_GUI\", k, 17);\r\n\t\t\t\tString CarGroup = rw.getCellData(\"Avis_GUI\", k, 18);\r\n\t\t\t\tString Awd = rw.getCellData(\"Avis_GUI\", k, 19);\r\n\t\t\t\tString CreditDeb_Card = rw.getCellData(\"Avis_GUI\", k, 20);\r\n\t\t\t\tString CardNumber = rw.getCellData(\"Avis_GUI\", k, 21);\r\n\t\t\t\tString Month = rw.getCellData(\"Avis_GUI\", k, 22);\r\n\t\t\t\tString Year = rw.getCellData(\"Avis_GUI\", k, 23);\r\n\t\t\t\tString Reason = rw.getCellData(\"Avis_GUI\", k, 24);\r\n\t\t\t\tString Insurance = rw.getCellData(\"Avis_GUI\", k, 25);\r\n\t\t\t\tString Counterproduct = rw.getCellData(\"Avis_GUI\", k, 26);\r\n\r\n\t\t\t//System.out.println(\"Test case name is :\" +TestCaseName);\r\n\t\t\tThread.sleep(5000);\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Downloads\\\\Selenium\\\\chromedriver.exe\");\r\n\t\t\tChromeOptions options = new ChromeOptions(); \r\n\t\t\toptions.addArguments(\"disable-infobars\"); \r\n\t\t\tWebDriver driver=new ChromeDriver(options);\r\n\t\t\t//String TestUrlEnd = TestUrl+TestStn;\r\n\t\t\tdriver.get(\"https://uat.ccrgservices.com/wizardgui/ui/wizard.jsf?mnemonic=jfk\");\r\n\t\t\tdriver.manage().window().maximize();\r\n\t\t\tAVIS.CommonFunctions.GUIFunctions functions = new AVIS.CommonFunctions.GUIFunctions(driver);\r\n\t\t\t//functions.link(tokenURL, thinClient);\r\n\t\t\t/* Login */\r\n\t\t\tfunctions.login(Testqauser, Testqapwd);\r\n\t\t\t//functions.login(\"qa.user\", \"Avis2018#\");\r\n\t\t\tdriver.navigate().refresh();\r\n\t\t\t\r\n\t\t\r\n\t\t\tThread.sleep(5000);\r\n\t\t\tdriver.findElement(By.xpath(\"//input[@id='searchString']\")).sendKeys(\"0988-6083-US-4\");\r\n\t\t\tThread.sleep(5000);\r\n\t\t\tdriver.findElement(By.xpath(\"//input[@id='searchCommandLink']\")).click();\r\n\t\t\tThread.sleep(5000);\r\n\t\t\tdriver.findElement(By.xpath(\"//span[@id='delayBtn']\")).click();\r\n\t\t\t//Ra number\r\n\t\t\t//\r\n\t\t\t//701215944\r\n\t\t\tdriver.findElement(By.xpath(\"//input[@id='menulist:checkoutContainer:checkoutForm:raNo']\")).sendKeys(\"701215933\");\r\n\t\t\t//agent Id\r\n\t\t\tdriver.findElement(By.xpath(\"//input[@id='menulist:checkoutContainer:checkoutForm:agentId']\")).sendKeys(\"12345\");\r\n\t\t\t//outdate\r\n\t\t\t//input[@id='menulist:checkoutContainer:checkoutForm:outdate1_hid']\r\n\t\t\t//checkoutdate\r\n\t\t\tdriver.findElement(By.xpath(\"//input[@id='menulist:checkoutContainer:checkoutForm:outdate1_hid']\")).sendKeys(\"10/07/18\");\r\n\t\t\t//checkintime\r\n\t\t\tdriver.findElement(By.xpath(\"//input[@id='menulist:checkoutContainer:checkoutForm:outdate2']\")).sendKeys(\"10:00 AM\");\r\n\t\t\t//MVA number\r\n\t\t\tdriver.findElement(By.xpath(\"//div[@ng-show='!isOffline']//input[@id='menulist:checkoutContainer:checkoutForm:mvaOrParkingSpace']\")).sendKeys(\"\");\r\n\t\t\t//mileage\r\n\t\t\tdriver.findElement(By.xpath(\"//input[@id='menulist:checkoutContainer:checkoutForm:mileage']\")).sendKeys(\"\");\r\n\t\t\t\r\n\t\t\t//div[@id='ajaxStatusPanel']//div[@class='modal-body']\r\n\t\t\t//click on delay continue\r\n\t\t\tdriver.findElement(By.xpath(\"//input[@id='footerForm:continueVehicleDelayButton']\")).click();\r\n\t\t\tdriver.findElement(By.xpath(\"//div[@ng-show='!isOffline']//input[@id='menulist:checkoutContainer:checkoutForm:mvaOrParkingSpace']\")).sendKeys(\"64459010\");\r\n\t driver.findElement(By.xpath(\"//input[@id='menulist:checkoutContainer:checkoutForm:mileage']\")).click();\r\n\t driver.findElement(By.xpath(\"//input[@id='menulist:checkoutContainer:checkoutForm:mileage']\")).clear();\r\n\t driver.findElement(By.xpath(\"//input[@id='menulist:checkoutContainer:checkoutForm:mileage']\")).sendKeys(\"1200\");\r\n\t \r\n\t\t\t}\r\n\t\t }\r\n\t\t}", "@Test(groups={\"it\"})\r\n\tpublic void testReportDetailsWithAfterConfigurationError() throws Exception {\r\n\t\t\r\n\t\texecuteSubTest(1, new String[] {\"com.seleniumtests.it.stubclasses.StubTestClassForConfigurationError2\"}, ParallelMode.NONE, new String[] {\"testWithAfterMethodError\"}); \r\n\t\t\r\n\t\tString mainReportContent = readSummaryFile();\r\n\t\t\r\n\t\t// check main result is skipped with step failed in red\r\n\t\tAssert.assertTrue(mainReportContent.contains(\"<td name=\\\"stepsTotal-1\\\">5<sup><a href=\\\"#\\\" data-toggle=\\\"tooltip\\\" class=\\\"failedStepsTooltip\\\" title=\\\"1 step(s) failed\\\">*</a></sup></td>\"));\r\n\t\t\r\n\t\tString detailedReportContent = readTestMethodResultFile(\"testWithAfterMethodError\");\r\n\t\t\r\n\t\t// Check details of the configuration error is displayed in report\r\n\t\tAssert.assertTrue(detailedReportContent.matches(\".*<div class=\\\"message-error\\\">\\\\s+class com.seleniumtests.customexception.ConfigurationException: Some error after method.*\"));\r\n\t\t\r\n\t\t// check test is still OK as only after method failed\r\n\t\tAssert.assertTrue(detailedReportContent.contains(\"<header class='main-header header-success'>\"));\r\n\t\t\r\n\t\t// check execution log does not contain our post configuration step\r\n\t\tAssert.assertFalse(detailedReportContent.contains(\"<div>class com.seleniumtests.customexception.ConfigurationException: Some error after method</div>\"));\r\n\t\t\r\n\t\t// check we have a step for AfterMethod and it's marked as failed\r\n\t\tAssert.assertTrue(detailedReportContent.contains(\"<div class=\\\"box collapsed-box failed\\\"><div class=\\\"box-header with-border\\\"><button type=\\\"button\\\" class=\\\"btn btn-box-tool\\\" data-widget=\\\"collapse\\\"><i class=\\\"fas fa-plus\\\"></i></button><span class=\\\"step-title\\\"> Post test step: afterMethod\"));\r\n\t\t\r\n\t\t// check logs written in @AfterXXX are present in execution logs\r\n\t\tAssert.assertTrue(detailedReportContent.contains(\"[main] ScenarioLogger: some warning</div>\"));\r\n\t\t\r\n\t\t// check that when test is OK, a message on test status is displayed\r\n\t\tAssert.assertTrue(detailedReportContent.contains(\"[main] ScenarioLogger: Test is OK\"));\r\n\t\t\r\n\t}", "@Test(dataProviderClass = DataProviderUtils.class, dataProvider = \"excelDataReader\", groups = {\"PageTitle\"}, \r\n\t\t\tdescription = \"Verify the page title field for Script value\")\r\n\tpublic void TC_38635_1(HashMap<String,String> dataValues, String driverType) throws Exception {\r\n\r\n\t\tdriver = null; ConfigurationPage configPage = null; ConcurrentHashMap <String, String> dataPool = null;\r\n\r\n\t\ttry {\r\n\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\t\t\t//Step-1 : Login to MFiles Configuration Webpage\r\n\t\t\t//----------------------------------------------\r\n\t\t\tdataPool = new ConcurrentHashMap <String, String>(dataValues);\r\n\t\t\tconfigPage = LoginPage.launchDriverAndLoginToConfig(driver, true);//Launch the Configruation page\r\n\r\n\t\t\tLog.message(\"1. Logged into the configuration webpage\", driver);\r\n\r\n\t\t\t//Step-2 : Navigate to the General settings\r\n\t\t\t//-----------------------------------------\r\n\t\t\tconfigPage.treeView.clickTreeViewItem(\"General\");//Clicks the General settings in the configuration web page\r\n\r\n\t\t\tLog.message(\"2. Navigated to the General settings in the configuration webpage\", driver);\r\n\r\n\t\t\t//Step-3: Set the Page title in the configuration web page\r\n\t\t\t//--------------------------------------------------------\r\n\t\t\tconfigPage.configurationPanel.setPageTitle(dataPool.get(\"PageTitle\").replace(\"\\\"\", \"\"));//Enters the page title value in the configuration webpage\r\n\r\n\t\t\tLog.message(\"3. '\"+ (dataPool.get(\"PageTitle\").replace(\"\\\"\", \"\").replaceAll(\"<\", \"{\")).replaceAll(\">\", \"}\") +\"' is set in the page title field in the configuration webpage.\", driver);\r\n\r\n\t\t\t//Step-4: Save the changes\r\n\t\t\t//------------------------------------------------------------------------------------------\r\n\t\t\tconfigPage.configurationPanel.setAutoLogin(false);//Sets the auto login off in the configuration webpage\r\n\t\t\tconfigPage.saveSettings();//Clicks the save button in the configuration webpage\r\n\r\n\t\t\tif (!MFilesDialog.exists(driver))//Checks if MFiles dialog is displayed or not\r\n\t\t\t\tthrow new Exception(\"Warning dialog is not displayed while saving blank value in the Page title field\");\r\n\r\n\t\t\tMFilesDialog mfDialog = new MFilesDialog(driver);//Instantiates the MFiles Dialog\r\n\r\n\t\t\tString actualMsg = mfDialog.getMessage();//Gets the message from MFiles Dialog\r\n\r\n\t\t\tif (!actualMsg.contains(dataPool.get(\"SaveSuccessMsg\")))\r\n\t\t\t\tthrow new Exception(\"Save success warning dialog is not displayed\");\r\n\r\n\t\t\tLog.message(\"4. Script value is saved in the Configuration web page in the Page title field\", driver);\r\n\r\n\t\t\t//Verification: If Script value is displayed in the page title field\r\n\t\t\t//--------------------------------------------------------------------\r\n\t\t\tdriver.navigate().refresh();//Refresh the configuration webpage\r\n\r\n\t\t\tif (driver.getTitle().equalsIgnoreCase(dataPool.get(\"PageTitle\")))\r\n\t\t\t\tLog.pass(\"Test case passed. Script value(\"+ (dataPool.get(\"PageTitle\").replaceAll(\"<\", \"{\")).replaceAll(\">\", \"}\") +\") is displayed as expected in the page title.\", driver);\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test case failed. Script value(\"+ (dataPool.get(\"PageTitle\").replaceAll(\"<\", \"{\")).replaceAll(\">\", \"}\") +\") is not displayed as expected in the page title. [Actual page title : \"+driver.getTitle()+\"]\", driver);\r\n\r\n\t\t}//End try\r\n\t\tcatch (Exception e) {\r\n\t\t\tLog.exception(e, driver);\r\n\t\t}//End catch\r\n\t\tfinally {\r\n\t\t\tif (driver != null)\r\n\t\t\t{\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tconfigPage.treeView.clickTreeViewItem(\"General\");//Clicks the General settings in the configuration web page\r\n\t\t\t\t\tconfigPage.configurationPanel.setPageTitle(dataPool.get(\"DefaultPageTitle\").replace(\"\\\"\", \"\"));//Enters the page title value in the configuration webpage\r\n\t\t\t\t\tconfigPage.saveSettings();//Clicks the save button in the configuration webpage\r\n\t\t\t\t\tMFilesDialog.closeMFilesDialog(driver);//Closes the MFiles confirmation dialog\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e0)\r\n\t\t\t\t{\r\n\t\t\t\t\tLog.exception(e0, driver);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t}//End finally\r\n\r\n\t}", "@DataProvider\n\tpublic Object[][] Authentication() throws Exception {\n\t\tExcelUtils_3.setExcelFile(\"D:/Projects/Java Project/ActiTime_Project/src/TestNG_Example_15/TestData.xlsx\",\"Sheet1\");\t\t\n\t\tsTestCaseName = this.toString();\n\t\tSystem.out.println(\"sTestCaseName \" + sTestCaseName );\n\t\t// From above method we get long test case name including package and\n\t\t// class name etc.\n\n\t\t// The below method will refine your test case name, exactly the name\n\t\t// use have used\n\n\t\tsTestCaseName = ExcelUtils_3.getTestCaseName(sTestCaseName);\n\n\t\t// Fetching the Test Case row number from the Test Data Sheet\n\t\t// Getting the Test Case name to get the TestCase row from the Test Data\n\t\t// Excel sheet\n\n\t\tiTestCaseRow = ExcelUtils_3.getRowContains(sTestCaseName, 0);\n\n\t\tObject[][] testObjArray = ExcelUtils_3.getTableArray(\"D:/Projects/Java Project/ActiTime_Project/src/TestNG_Example_15/TestData.xlsx\",\"Sheet1\", iTestCaseRow);\n\n\t\treturn (testObjArray);\n\n\t}", "@Test (priority=1)\n\t\tpublic static void QuestionType1 () throws InterruptedException, IOException {\t\n\t\t SoftAssert assertion1 = new SoftAssert();\n\t\t FileInputStream finput = new FileInputStream(src);\n\t workbook = new HSSFWorkbook(finput);\n\t sheet= workbook.getSheetAt(0); //preview sheet\n\t for(int i=2; i<=sheet.getLastRowNum(); i++)\n\t {\t\n\t \tLogin();\t \t\n\t\t\t \tdriver.findElement(By.xpath(\"//*[@id=\\\"batch\\\"]\")).click(); //click new batch icon\n\t\t\t\tdriver.findElement(By.xpath(\"//*[contains(text(),'New Master')]\")).click(); //Click master batch icon\n\t\t\t//Fill basic details\n\t\t\t\tcell = sheet.getRow(i).getCell(1);\n\t\t cell.setCellType(Cell.CELL_TYPE_STRING);\n\t\t\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"type_name\\\"]\")).sendKeys(cell.getStringCellValue());\n\t\t\t\tcell = sheet.getRow(i).getCell(2);\n\t\t cell.setCellType(Cell.CELL_TYPE_STRING);\n\t\t\t\tSelect templateCategory =new Select(driver.findElement(By.xpath(\"//*[@id=\\\"type_category\\\"]\")));\n\t\t\t\ttemplateCategory.selectByVisibleText(cell.getStringCellValue());\n\t\t\t\tcell = sheet.getRow(i).getCell(3);\n\t\t cell.setCellType(Cell.CELL_TYPE_STRING);\n\t\t\t\tSelect templateType =new Select(driver.findElement(By.xpath(\"//*[@id=\\\"template_type\\\"]\")));\n\t\t\t\ttemplateType.selectByVisibleText(cell.getStringCellValue());\n\t\t\t\tcell = sheet.getRow(i).getCell(4);\n\t\t cell.setCellType(Cell.CELL_TYPE_STRING);\n\t\t\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"type_purpose\\\"]\")).clear();\n\t\t\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"type_purpose\\\"]\")).sendKeys(cell.getStringCellValue());\n\t\t\t\tcell = sheet.getRow(i).getCell(5);\n\t\t cell.setCellType(Cell.CELL_TYPE_STRING);\n\t\t\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"type_document\\\"]\")).clear();\n\t\t\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"type_document\\\"]\")).sendKeys(cell.getStringCellValue());\n\t\t\t\t//save\n\t\t\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"masterSave\\\"]\")).click();\n\t\t\t\t//upload assert\n\t\t\t\tcell = sheet.getRow(i).getCell(6);\n\t\t cell.setCellType(Cell.CELL_TYPE_STRING);\n\t\t\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"type_name1\\\"]\")).sendKeys(cell.getStringCellValue()); //enter assert master record name\n\t\t\t\tThread.sleep(5000);\n\t\t\t\t\n\t\t\t\tString file = \"//home//s4cchinpc105//Desktop//ZImage//download1.jpeg\";\n\t\t\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"asset_files\\\"]\")).sendKeys(file); //upload file\n\t\t\t\tThread.sleep(3000);\n\t\t\t\tWebElement uploadedfile1 = driver.findElement(By.xpath(\"//*[@id=\\\"assetTable\\\"]/tr[1]/td/label\"));\n\t\t\t\tString uploadedfile1text = uploadedfile1.getText();\n\t\t\t\tString expectuploadedfile1text = \"download1.jpeg\";\n\t\t\t\t//assertion1.assertEquals(expectuploadedfile1text, uploadedfile1text); \n\t\t\t\tThread.sleep(3000);\n\t\t \t\tdriver.findElement(By.xpath(\"//*[@id=\\\"fileSave\\\"]\")).click(); // click continue\n\t\t \t\tThread.sleep(3000);\n\t\t\t \t\t\n\t\t\t\t//Form Builder - single input\n\t\t\t driver.findElement(By.xpath(\"//img[contains(@src,'/Survey-portlet/images/Add question icon.svg')]\")).click();\n\t\t\t Thread.sleep(5000);\n\t\t\t driver.findElement(By.xpath(\"//*[@class=\\\"svd_toolbox_item svd-light-border-color svdToolboxItem svd_toolbox_item_icon-text\\\"]\")).click(); //single input\n\t\t\t Thread.sleep(5000);\n\t\t\t driver.findElement(By.xpath(\"//*[@class=\\\"sv_qstn question_actions svd_question svd-dark-bg-color svd_q_design_border svd_q_selected svd-main-border-color\\\"]/div[3]/question-actions/div/span\")).click(); //click properties icon \n\t\t\t Thread.sleep(6000);\n\t ((JavascriptExecutor)driver).executeScript(\"arguments[0].scrollIntoView();\", driver.findElement(By.xpath(\"//span[contains(text(), 'Title')]/parent::td/parent::tr/td[2]/div/div[2]/input\")));\n\t cell = sheet.getRow(i).getCell(7);\n\t\t cell.setCellType(Cell.CELL_TYPE_STRING);\n\t\t\t driver.findElement(By.xpath(\"//span[contains(text(), 'Title')]/parent::td/parent::tr/td[2]/div/div[2]/input\")).sendKeys(cell.getStringCellValue());\n\t\t\t \n\t\t\t //Form Builder - dropdown\n\t\t\t driver.findElement(By.xpath(\"//img[contains(@src,'/Survey-portlet/images/Add question icon.svg')]\")).click();\n\t\t\t Thread.sleep(5000);\n\t\t\t driver.findElement(By.xpath(\"//span[contains(text(),'Dropdown')]\")).click(); //Dropdown\n\t\t\t Thread.sleep(5000);\n\t\t\t driver.findElement(By.xpath(\"//*[@class=\\\"sv_qstn question_actions svd_question svd-dark-bg-color svd_q_design_border svd_q_selected svd-main-border-color\\\"]/div[3]/question-actions/div/span\")).click(); //click properties icon \n\t\t\t Thread.sleep(6000);\n\t ((JavascriptExecutor)driver).executeScript(\"arguments[0].scrollIntoView();\", driver.findElement(By.xpath(\"//span[contains(text(), 'Title')]/parent::td/parent::tr/td[2]/div/div[2]/input\")));\n\t cell = sheet.getRow(i).getCell(8);\n\t\t cell.setCellType(Cell.CELL_TYPE_STRING);\n\t\t\t driver.findElement(By.xpath(\"//span[contains(text(), 'Title')]/parent::td/parent::tr/td[2]/div/div[2]/input\")).sendKeys(cell.getStringCellValue());\n\t\t\t Thread.sleep(5000);\n\n\t\t\t //Form Builder - dynamic matrix\n\t \t\tdriver.findElement(By.xpath(\"//img[contains(@src,'/Survey-portlet/images/Add question icon.svg')]\")).click();\n\t \t\tThread.sleep(5000);\n\t \t\tdriver.findElement(By.xpath(\"//span[contains(text(),'Matrix (dynamic rows)')]\")).click(); //Matrix (dynamic rows)\n\t\t\t Thread.sleep(5000);\n\t \t\tdriver.findElement(By.xpath(\"//*[@class=\\\"sv_qstn question_actions svd_question svd-dark-bg-color svd_q_design_border svd_q_selected svd-main-border-color\\\"]/div[3]/question-actions/div/span[1]/img\")).click(); //click properties icon\n\t \t\t((JavascriptExecutor)driver).executeScript(\"arguments[0].scrollIntoView();\", driver.findElement(By.xpath(\"//span[contains(text(), 'Title')]/parent::td/parent::tr/td[2]/div/div[2]/input\")));\n\t cell = sheet.getRow(i).getCell(9);\n\t\t cell.setCellType(Cell.CELL_TYPE_STRING);\n\t\t\t driver.findElement(By.xpath(\"//span[contains(text(), 'Title')]/parent::td/parent::tr/td[2]/div/div[2]/input\")).sendKeys(cell.getStringCellValue());\n\t\t\t Thread.sleep(5000);\n\n\t\t\t //Add second page\n\t\t\t driver.findElement(By.xpath(\"//*[@title=\\\"Add New Page\\\"]\")).click(); \n\t\t\t\t\n\t\t\t//Form Builder - rating\n\t\t \tdriver.findElement(By.xpath(\"//img[contains(@src,'/Survey-portlet/images/Add question icon.svg')]\")).click();\n\t\t \tThread.sleep(5000);\n\t\t \tdriver.findElement(By.xpath(\"//span[contains(text(),'Rating')]\")).click(); //Rating\t\t\n\t\t \tThread.sleep(5000);\n\t\t \tdriver.findElement(By.xpath(\"//*[@class=\\\"sv_qstn question_actions svd_question svd-dark-bg-color svd_q_design_border svd_q_selected svd-main-border-color\\\"]/div[3]/question-actions/div/span\")).click(); //click properties icon\n\t\t \t((JavascriptExecutor)driver).executeScript(\"arguments[0].scrollIntoView();\", driver.findElement(By.xpath(\"//span[contains(text(), 'Title')]/parent::td/parent::tr/td[2]/div/div[2]/input\")));\n\t cell = sheet.getRow(i).getCell(10);\n\t\t cell.setCellType(Cell.CELL_TYPE_STRING);\n\t\t\t driver.findElement(By.xpath(\"//span[contains(text(), 'Title')]/parent::td/parent::tr/td[2]/div/div[2]/input\")).sendKeys(cell.getStringCellValue());\n\t\t\t Thread.sleep(5000);\n\n\t\t\t//Form Builder - matrix single choice\n\t\t \tdriver.findElement(By.xpath(\"//img[contains(@src,'/Survey-portlet/images/Add question icon.svg')]\")).click();\n\t\t \tThread.sleep(5000);\n\t\t \tdriver.findElement(By.xpath(\"//*[@class=\\\"svd_toolbox_item svd-light-border-color svdToolboxItem svd_toolbox_item_icon-matrix\\\"]/span[2]\")).click(); //single choice\n\t\t\t Thread.sleep(5000);\n\t\t \tdriver.findElement(By.xpath(\"//*[@class=\\\"sv_qstn question_actions svd_question svd-dark-bg-color svd_q_design_border svd_q_selected svd-main-border-color\\\"]/div[3]/question-actions/div/span\")).click(); //click properties icon\n\t\t \t((JavascriptExecutor)driver).executeScript(\"arguments[0].scrollIntoView();\", driver.findElement(By.xpath(\"//span[contains(text(), 'Title')]/parent::td/parent::tr/td[2]/div/div[2]/input\")));\n\t cell = sheet.getRow(i).getCell(11);\n\t\t cell.setCellType(Cell.CELL_TYPE_STRING);\n\t\t\t driver.findElement(By.xpath(\"//span[contains(text(), 'Title')]/parent::td/parent::tr/td[2]/div/div[2]/input\")).sendKeys(cell.getStringCellValue());\n\t\t\t Thread.sleep(5000);\n\n\t\t\t driver.findElement(By.xpath(\"//*[@id=\\\"saveSurvey\\\"]\")).click(); //save\n\t \tThread.sleep(5000); \n\t \t\n\t\t ((JavascriptExecutor)driver).executeScript(\"arguments[0].scrollIntoView();\", driver.findElement(By.xpath(\"//*[contains(text(), 'Complete')]\"))); \n\t\t\t driver.findElement(By.xpath(\"//*[contains(text(), 'Complete')]\")).click(); //complete\n\t\t\t Thread.sleep(5000);\n\t\t\n\t\t\t String thirdques = driver.findElement(By.xpath(\"//*[@class=\\\"sv_p_root\\\"]/div[4]/div/div/h5/span[3]\")).getText();\n\t\t String expectthirdques = \"Dynamic Matrix Question\";\n\t\t AssertJUnit.assertEquals(expectthirdques, thirdques); \n\t\t\n\t\t Thread.sleep(6000);\n\t\t ((JavascriptExecutor)driver).executeScript(\"arguments[0].scrollIntoView();\", driver.findElement(By.xpath(\"//*[@id=\\\"surveyElement\\\"]/div/form/div[2]/div/div[4]/input[2]\")));\n\t \n\t\t driver.findElement(By.xpath(\"//*[@id=\\\"surveyElement\\\"]/div/form/div[2]/div/div[4]/input[2]\")).click(); //click next\n\t\t Thread.sleep(5000);\n\t\t String fifthques = driver.findElement(By.xpath(\"//*[@class=\\\"sv_p_root\\\"]/div[3]/div/div/h5/span[3]\")).getText();\n\t\t String expectfifthques = \"Single Matrix Question\";\n\t\t AssertJUnit.assertEquals(expectfifthques, fifthques); \n\t\t assertion1.assertAll();\n\t\t \t\t\n\t\t driver.findElement(By.xpath(\"//*[@id=\\\"surveyElement\\\"]/div/form/div[2]/div/div[4]/input\")).click(); //click previous\n\t\t \tThread.sleep(2000);\n\t\t \tClose();\n\t }\n\t }", "public UnitTestInfo unitTest() throws IOException\r\n\t{\r\n\t\tUnitTestInfo res = new UnitTestInfo();\r\n\t\t\r\n\t\tres.fileExtension = this.getFormat().name().toLowerCase();\r\n\t\tWorkbook workbook = new CoreGeneratorService().getFichierExcel(this); \r\n\t\t\r\n\t\tres.baos = new ByteArrayOutputStream();\r\n\t\tworkbook.write(res.baos);\r\n\t\t\r\n\t\treturn res;\r\n\t}", "public static void main(String[] args) throws InterruptedException {\n\t\tXls_Reader excel = new Xls_Reader(Constants.TestSuitePath);\n\t\t\n\t\t//Selected suite\n\t\tConstants.SelectedSuite=excel.getCellData(Constants.TestSuiteSheetname, 1, 3);\n\t\t\n\t\t//Generate Run ID and add Test cases flagged yes\n\t\tflaggedTestCases();\n\t\t//System.out.println(\"Suite Name \"+Constants.SelectedSuite);\n\t\t\n\t\t//get the value for IE browser\n\t\tConstants.IE = excel.getCellData(Constants.TestSuiteSheetname, 1, 2);\n\t\t//get the value for Chrome browser\n\t\tConstants.Chrome =excel.getCellData(Constants.TestSuiteSheetname, 2, 2);\n\t\t//get the value for Firefox browser\n\t\tConstants.Firefox =excel.getCellData(Constants.TestSuiteSheetname, 3, 2);\t\t\n\t\t//Safari browser\n\t\tConstants.Safari =excel.getCellData(Constants.TestSuiteSheetname, 5, 2);\t\t\n\t\t//get the value for Firefox browser\n\t\tConstants.Mobile =excel.getCellData(Constants.TestSuiteSheetname, 4, 2);\n\t\t//get the type of framework selected\n\t\tConstants.SelectedFramework =excel.getCellData(Constants.TestSuiteSheetname, 2, 3);\n\t\t\n\t\t//Get all the objects from Excel and store it an array\n\t\tOR.storeObjects();\n\t\t\n\t\t//Start the browser instance based on selected options.\n\t\texecute(Constants.IE,Constants.Chrome,Constants.Firefox, Constants.Safari, Constants.Mobile);\n\t\t\n\t}", "public static void main(String[] args) throws Exception {\n\t\tLogger.getRootLogger().setLevel(Level.OFF);\n\t\tConfigurationLib configLib = new ConfigurationLib();\n\t\tString binPath = configLib.getTestSuitePath();\n\t\tTestNG testng = new TestNG();\n\t\tList<XmlSuite> suites = new ArrayList<XmlSuite>();\n\t\tXmlSuite mySuite = new XmlSuite();\n\t\tList<XmlClass> xmlClasses = new ArrayList<XmlClass>();\n\t\tXmlTest test = null;\n\t\tString className = null;\n\t\tbinPath = binPath.replace(\"null\", \"\");\n\n\t\tFile dir = new File(binPath);\n\t\tList<File> files = (List<File>) FileUtils.listFiles(dir, TrueFileFilter.INSTANCE, TrueFileFilter.INSTANCE);\n\t\tfor (File f : files) {\n\t\t\ttest = new XmlTest(mySuite);\n\t\t\tclassName = ((f.getCanonicalPath().replace(configLib.getBinaryPath(), \"\")).replace(\"\\\\\", \".\"));\n\t\t\tclassName = StringUtils.removeEnd(className, \".class\");\n\t\t\ttest.setName(className);\n\t\t\txmlClasses.add(new XmlClass(Class.forName(className)));\n\t\t}\n\n\t\ttest.setXmlClasses(xmlClasses);\n\t\tAnnotationTransformerImpl myTransformer = new AnnotationTransformerImpl();\n\t\ttestng.addListener(myTransformer);\n\t\tAlterSuiteImpl alterSuite = new AlterSuiteImpl();\n\t\ttestng.addListener(alterSuite);\n\t\tsuites.add(mySuite);\n\t\ttestng.setXmlSuites(suites);\n\t\tsuiteExec = true;\n\t\ttestng.run();\n\t}", "@Test\n public void baseCommandTests_part1() throws Exception {\n ExecutionSummary executionSummary = testViaExcel(\"unitTest_base_part1.xlsx\");\n assertPassFail(executionSummary, \"base_showcase\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"function_projectfile\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"function_array\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"function_count\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"function_date\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"actual_in_output\", TestOutcomeStats.allPassed());\n }", "public static void getData() throws Exception {\n\t\tString filepath = \"F:\\\\Selenium Practice\\\\Framework\\\\TestData\\\\TestData.xlsx\";\n\t\tFile f = new File(filepath);\n\t\tFileInputStream str = new FileInputStream(f);\n\t\tWorkbook w = new XSSFWorkbook(str);\n\t\tSheet sh = w.getSheet(\"TestData\");\n\t\tfor (int i = 0; i < sh.getPhysicalNumberOfRows(); i++) {\n\t\t\tRow r = sh.getRow(i);\n\t\t\tfor (int j = 0; j < r.getPhysicalNumberOfCells(); j++) {\n\t\t\t\tCell c = r.getCell(j);\n\t\t\t\tint ct = c.getCellType();\n\t\t\t\tString name = \"\";\n\t\t\t\tswitch (ct) {\n\t\t\t\tcase Cell.CELL_TYPE_NUMERIC:\n\t\t\t\t\tif (ct == 0) {\n\t\t\t\t\t\tif (DateUtil.isCellDateFormatted(c)) {\n\t\t\t\t\t\t\tSimpleDateFormat form = new SimpleDateFormat(\"dd-MMM-yy\");\n\t\t\t\t\t\t\tname = form.format(c.getDateCellValue());\n\t\t\t\t\t\t\tSystem.out.println(name);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tdouble d = c.getNumericCellValue();\n\t\t\t\t\t\t\tlong l = (long) d;\n\t\t\t\t\t\t\tname = String.valueOf(l);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase Cell.CELL_TYPE_STRING:\n\t\t\t\t\tif (ct == 1) {\n\t\t\t\t\t\tname = c.getStringCellValue();\n\t\t\t\t\t\tSystem.out.println(name);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "@Override\n\tpublic void onTestSuccess(ITestResult result) {\n\t\ttry {\n\t\t\tapitest = new ExcelAPI(obj.filepath);\n\t\t\tobj = (TestNGDataExlProvider) result.getInstance();\n\t\t\tXSSFCell cell = apitest.setCellData(obj.sheetName, \"Results\", obj.k, \"Pass\");\n\t\t\tapitest.setupFont(cell, HSSFColor.GREEN.index);\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}", "public void generateReport(List<XmlSuite> xmlSuites, List<ISuite>suites, \r\n\t\tString outputDirectory){//creating a method that takes three arguments,\r\n\t//to generate a report, arguments list requirements, \r\n\t//using a mechanism called List, which gets the array input\r\n\t//script will go back to xml suites, and look for \"suites\" which are the classes we created\r\n\t//we will create an xml file to contain all the classes within our test cases\r\n\t//PASS, FAIL, or SKIP will be string outputs; String outputDirectory\r\n\t//XML Suite: big time testing based on testing type\r\n\t//ISuite: pages we are working on; classes created to perform action; under test folder\r\n\t\r\n\textent = new ExtentReports(outputDirectory + File.separator\r\n\t\t\t+ \"Extent.html\", true);\r\n\t//creating an object for extent report, creating a virtual object to save all output to save all results\r\n\t//as a string, file seperator is not needed, it doesn't matter how u received the result\r\n\t//seperate them and consolidate the results\r\n\t//telling you how to save the file name, html is easy to open on any device and lightweight\r\n\t//outputDirectory: SKIP, PASS, FAIL\r\n\t//the reason for boolean option: if yu receive results, generate report//if yu dont then dont generate\r\n\tfor(ISuite suite : suites){//for loop is created\r\n\t\t//map obtains a key value, not duplicate, and then maps it to one location, which is the\r\n\t\t//extent report\r\n\t\t//an interface in java, between key value and location (between status and extent report)\r\n\t\t//will make sure how to map and seperate results under each class\r\n\t\tMap<String, ISuiteResult>result = suite.getResults();\r\n\t\r\n\tfor(ISuiteResult r : result.values()){\r\n\t\tITestContext context =r.getTestContext();//for each of the classes, create log status\r\n\t\t//test context: script that we are running, results from it\r\n\t\t//: is a conditional operator, which lists the conditions, which lists out the conditions\r\n\t\t//script should be able to run \r\n\t\t//one suite, or multiple suites in one shot\r\n\t\t//making context\r\n\t\t\r\n\t\t\r\n\t\tbuildTestNo(context.getPassedTests(), LogStatus.PASS);\r\n\t\tbuildTestNo(context.getFailedTests(), LogStatus.FAIL);\r\n\t\t//retrieving status using results/context\r\n\t\tbuildTestNo(context.getSkippedTests(), LogStatus.SKIP);\r\n\t\t\t\r\n\t}\r\n}\r\nextent.flush();//take results and place on html file\r\nextent.close();\r\n\r\n}", "@Test(dataProviderClass = DataProviderUtils.class, dataProvider = \"excelDataReader\",testName=\"Test1_6_4\",description=\"Test1_6_3 : State transition prompt \")\r\n\tpublic void Test1_6_4(HashMap<String,String> dataValues,String currentDriver,ITestContext context) throws Exception {\r\n\r\n\t\t//Variable Declaration\r\n\t\tdriver = WebDriverUtils.getDriver();\r\n\t\t\r\n\r\n\t\tConcurrentHashMap <String, String> testData = new ConcurrentHashMap <String, String>(dataValues);\r\n\t\tLoginPage loginPage=null;\r\n\r\n\t\tConfigurationPage configPage=null;\r\n\t\tHomePage homepage=null;\r\n\t\ttry {\r\n\r\n\t\t\t//Step-1: Login to Configuration Page\r\n\t\t\tloginPage=new LoginPage(driver);\r\n\t\t\tloginPage.navigateToApplication(configSite,userName,password,\"\");\t\r\n\t\t\tLog.message(\"1. Logged in to Configuration Page\", driver);\r\n\r\n\t\t\t//Step-2: Click Vault from left panel of Configuration Page\r\n\t\t\tconfigPage=new ConfigurationPage(driver);\r\n\t\t\tconfigPage.clickVaultFolder(testData.get(\"VaultName\"));\r\n\t\t\tLog.message(\"2. Select 'Sample vault' from left panel of Configuration Page\", driver);\r\n\r\n\r\n\t\t\t//Step-3 : Set value for Maximum number of search results\r\n\r\n\t\t\tif (!configPage.configurationPanel.getVaultAccess()) {\r\n\t\t\t\tconfigPage.configurationPanel.setVaultAccess(true); //Allows access to this vault\r\n\t\t\t}\r\n\r\n\t\t\tconfigPage.expandVaultFolder(documentVault);\r\n\t\t\tLog.message(\"3. Clicked '\"+documentVault+\"' from left panel of Configuration Page\", driver);\r\n\r\n\t\t\t//Step-4 : Set the control values\r\n\r\n\t\t\tconfigPage.setUTCdate(true); \r\n\t\t\tconfigPage.clickSaveButton();\r\n\t\t\t// Check any warning dialog displayed\r\n\t\t\tif(configPage.isWarningDialogDisplayed())\r\n\t\t\t{\r\n\t\t\t\tconfigPage.clickResetButton();\r\n\t\t\t\tconfigPage.setUTCdate(true); \r\n\t\t\t\tconfigPage.clickSaveButton();\r\n\t\t\t\tconfigPage.clickOKBtnOnSaveDialog(); \r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tconfigPage.clickOKBtnOnSaveDialog();\r\n\r\n\t\t\tLog.message(\"4. UTC date option is enabled and settings are saved.\", driver);\r\n\t\t\t//Step-3 : Login to the vault\r\n\t\t\tconfigPage.clickLogOut(); //Logs out from the Configuration page\r\n\t\t\tLog.message(\"5. LoggedOut from configuration page.\", driver);\r\n\r\n\t\t\t//Step-5: Login to Web Access Vault\r\n\t\t\tloginPage.navigateToApplication(webSite,userName,password,testData.get(\"VaultName\"));\r\n\t\t\tUtils.waitForPageLoad(driver);\r\n\t\t\thomepage=new HomePage(driver);\r\n\r\n\t\t\tif (!homepage.isLoggedIn(userName))\r\n\t\t\t\tthrow new Exception(\"Some Error encountered while logging..check testdata..\");\r\n\t\t\tLog.message(\"6. Logged in to the vault (\" + testData.get(\"VaultName\") + \").\", driver);\r\n\r\n\t\t\t//Step-6 : To perform all object search\r\n\t\t\t//---------------------------------------\r\n\t\t\tSearchPanel searchpanel = new SearchPanel(driver);\r\n\t\t\tsearchpanel.clickSearchBtn(driver);\r\n\r\n\t\t\tLog.message(\"7. Perform all object search.\", driver); \r\n\r\n\t\t\t//Step-7 : Select any existing object\r\n\t\t\t//-------------------------------------\r\n\t\t\thomepage.listView.clickItemByIndex(0);\r\n\t\t\tUtils.fluentWait(driver);\r\n\t\t\tString selecteddocument = homepage.listView.getItemNameByItemIndex(0);\r\n\t\t\tUtils.fluentWait(driver);\r\n\t\t\tLog.message(\"8. Select any existing object.\" + selecteddocument, driver);\r\n\r\n\t\t\t//Step-8 : Click workflow option from task pane area\r\n\t\t\t//------------------------------------------\r\n\r\n\t\t\tMetadataCard metadata = new MetadataCard(driver, true);\r\n\t\t\tString createddate = metadata.getCreatedDate();\r\n\r\n\t\t\t//Step-9: Verify number of objects displayed in listing view\r\n\t\t\tif (createddate.contains(\"GMT\"))\r\n\t\t\t\tLog.pass(\"Test Passed. Created date displayed in UTC format.\");\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test Failed. Created date is not displayed in UTC format.\", driver);\r\n\r\n\t\t} //End try\r\n\r\n\t\tcatch (Exception e) {\r\n\t\t\tLog.exception(e, driver);\r\n\t\t} //End catch\r\n\r\n\t\tfinally {\r\n\r\n\t\t\tdriver.quit();\t\r\n\t\t} //End finally\r\n\t}", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\tFileInputStream input=new FileInputStream(file);\r\n\t\t\t@SuppressWarnings(\"resource\")\r\n\t\t\tXSSFWorkbook workbook=new XSSFWorkbook(input);\r\n\t\t\tXSSFSheet sheet=workbook.getSheet(\"Test_Runner\");\r\n\t\t\tString testcase;\r\n\t\t\t\r\n\t\t\tfor(int i=1;i<=sheet.getLastRowNum();i++) {\r\n\t\t\t\tXSSFRow row=sheet.getRow(i);\r\n\t\t\t\tXSSFCell cell=row.getCell(0);\r\n\t\t\t\tXSSFCell cell1=row.getCell(1);\r\n\t\t\t\t\r\n\t\t\t\ttestcase=cell.getStringCellValue();\r\n\t\t\t\tString flag=cell1.getStringCellValue();\r\n\t\t\t\tif(flag.equalsIgnoreCase(\"Y\")) {\r\n\t\t\t\t\ttests_to_run(testcase,workbook);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Test(dataProviderClass = DataProviderUtils.class, dataProvider = \"excelDataReader\",testName=\"Test_42213\",description=\"Check if default page is displayed while launch the default.aspx when automatic login enabled with valid credentials\")\r\n\tpublic void Test_42213_4(HashMap<String,String> dataValues,String currentDriver,ITestContext context) throws Exception {\r\n\r\n\t\t//Variable Declaration\r\n\t\tWebDriver driver= null;\r\n\t\t\r\n\t\tConcurrentHashMap <String, String> testData=new ConcurrentHashMap <String, String>(dataValues);\r\n\t\tLoginPage loginPage=null;\r\n\t\tConfigurationPage configPage = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\t//Step-1: Launch configuration page\r\n\t\t\t//---------------------------------\r\n\t\t\tdriver = WebDriverUtils.getDriver(currentDriver,2);\r\n\t\t\tdriver.get(configSite);\r\n\t\t\tloginPage=new LoginPage(driver);//Instantiate Login page\r\n\t\t\tloginPage.loginToConfigurationUI(userName,password);//login with admin credentials\r\n\r\n\t\t\tLog.message(\"1. Logged in to the Configuration page with admin credentials.\", driver);\r\n\r\n\t\t\t//Verify if Login failed\r\n\t\t\tif (!loginPage.getErrorMessage().isEmpty())//Verify if error message is displayed\r\n\t\t\t\tthrow new Exception(\"Unable to login to Configuration Page, with Error :\"+loginPage.getErrorMessage());\r\n\r\n\t\t\t//Step-2: Navigated to the General page in Web Access Configuration.\r\n\t\t\t//-------------------------------------------------------------------\r\n\t\t\tconfigPage = new ConfigurationPage(driver);\r\n\t\t\tconfigPage.clickTreeViewItem(testData.get(\"GeneralSettings\")); //Selects General in the tree view of configuration page\r\n\r\n\t\t\tLog.message(\"2. Navigated to the General settings in Web Access Configuration.\", driver);\r\n\r\n\t\t\t//Step-3 : Set the automatic login credentials\r\n\t\t\t//--------------------------------------------\r\n\t\t\tconfigPage.configurationPanel.setAutoLogin(true);//Select the auto login in configuration page\r\n\r\n\t\t\tif (testData.get(\"AuthenticationType\").contains(\"Windows\"))\r\n\t\t\t{\r\n\t\t\t\tconfigPage.configurationPanel.setDefaultAuthType(testData.get(\"AuthenticationType\")+\" user\");//Sets the default authentication type as Windows user\r\n\t\t\t\tconfigPage.configurationPanel.setAutoLoginUserName(windowsUserName);//Sets the Windows user name\r\n\t\t\t\tconfigPage.configurationPanel.setAutoLoginPassword(windowsPassword);//Sets the Windows user password\r\n\t\t\t\tconfigPage.configurationPanel.setAutoLoginDomain(windowsUserDomain);//Sets the Windows user domain\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tconfigPage.configurationPanel.setDefaultAuthType(testData.get(\"AuthenticationType\")+\" user\");//Sets the default authentication type as M-Files user\r\n\t\t\t\tconfigPage.configurationPanel.setAutoLoginUserName(userName);//Sets the M-Files user name\r\n\t\t\t\tconfigPage.configurationPanel.setAutoLoginPassword(password);//Sets the M-Files user password\r\n\t\t\t}\r\n\r\n\t\t\tLog.message(\"3. Automatic login credentials are set for \"+testData.get(\"AuthenticationType\")+\" authentication type in the configuration page.\", driver);\r\n\r\n\t\t\t//Step-4 : Save the settings in configuration page\r\n\t\t\t//------------------------------------------------\r\n\t\t\tconfigPage.clickSaveButton();//Click the save button\r\n\r\n\t\t\tif (!MFilesDialog.exists(driver))\r\n\t\t\t\tthrow new Exception(\"Error while saving changes\");\r\n\r\n\t\t\tLog.message(\"4. Clicked the save button in configuration page.\", driver);\r\n\r\n\t\t\t//Step-5 : Logout from the configuration page\r\n\t\t\t//-------------------------------------------\r\n\t\t\tMFilesDialog.closeMFilesDialog(driver);//Closes the M-Files dialog in the view\r\n\t\t\tconfigPage.clickLogOut(); //Logs out from the Configuration page\r\n\r\n\t\t\tLog.message(\"5. Logged out from the configuration page.\", driver);\r\n\r\n\t\t\t//Step-8 : select the vault list in the login page\r\n\t\t\t//------------------------------------------------\r\n\t\t\tdriver.get(defaultSite);\r\n\t\t\tint snooze = 0;\r\n\r\n\t\t\twhile (snooze < 10 && !driver.getCurrentUrl().toUpperCase().contains(\"LOGIN.ASPX\") && !driver.getCurrentUrl().toUpperCase().contains(\"DEFAULT.ASPX\"))\r\n\t\t\t{\r\n\t\t\t\tThread.sleep(500);\r\n\t\t\t\tsnooze++;\r\n\t\t\t}\r\n\r\n\t\t\tString result = \"\";\r\n\r\n\t\t\tif (driver.getCurrentUrl().toUpperCase().contains(\"LOGIN.ASPX\"))\r\n\t\t\t{\r\n\t\t\t\tloginPage = new LoginPage(driver);\r\n\t\t\t\tif (loginPage.isVaultListDisplayed())\r\n\t\t\t\t\tresult = \"\";\r\n\t\t\t\telse\r\n\t\t\t\t\tresult = \"Automatic login is not success.\";\r\n\t\t\t}\r\n\t\t\telse if (driver.getCurrentUrl().toUpperCase().contains(\"DEFAULT.ASPX\") || !driver.getCurrentUrl().toUpperCase().contains(\"LOGIN.ASPX\"))\r\n\t\t\t\tresult = \"\";\r\n\t\t\telse\r\n\t\t\t\tresult = \"Automatic login is not success.\";\r\n\r\n\r\n\t\t\tif(result.equals(\"\"))\r\n\t\t\t\tLog.pass(\"Test case passed. Automatic login is working as expected for \"+testData.get(\"AuthenticationType\")+\" user.\", driver);\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test case failed. Automatic login is not working as expected for \"+testData.get(\"AuthenticationType\")+\" user.\", driver);\r\n\r\n\r\n\t\t}//End try\r\n\t\tcatch (Exception e) {\r\n\t\t\tLog.exception(e, driver);\r\n\t\t} //End catch\r\n\t\tfinally {\r\n\t\t\tif (driver != null)\r\n\t\t\t{\r\n\t\t\t\tdriver.quit();\r\n\t\t\t\tdriver = WebDriverUtils.getDriver(currentDriver,2);\r\n\t\t\t\tdriver.get(configSite);\r\n\t\t\t\tloginPage=new LoginPage(driver);//Instantiate Login page\r\n\t\t\t\tloginPage.loginToConfigurationUI(userName,password);//login with admin credentials\r\n\t\t\t\tconfigPage = new ConfigurationPage(driver);\r\n\t\t\t\tconfigPage.clickTreeViewItem(testData.get(\"GeneralSettings\")); //Selects General in the tree view of configuration page\r\n\t\t\t\tconfigPage.configurationPanel.setAutoLogin(false);//Select the auto login in configuration page\r\n\t\t\t\tconfigPage.clickSaveButton();//Click the save button\r\n\t\t\t\tMFilesDialog.closeMFilesDialog(driver);//Closes the M-Files dialog in the view\r\n\t\t\t\tconfigPage.clickLogOut(); //Logs out from the Configuration page\r\n\t\t\t}\r\n\t\t\tUtility.quitDriver(driver);\r\n\r\n\t\t}\r\n\t}", "public static void rep_WriteResults(String strTemplatePath, String strOutputPath) {\n String strStatus;\n strStatus = \"Pass\";\n intPassCount = 0;\n intFailCount = 0;\n intInfoCount = 0;\n try {\n String reportIn = new String(Files.readAllBytes(Paths.get(strTemplatePath)));\n for (int i = 0; i < details.size(); i++) {\n //if statement to prevent duplication of test step numbers in the report\n if (i == 0) {\n\n\n if (details.get(i).getResult().equals(\"Pass\")) {\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n details.get(i).getintTestStep() + \"</td><td align=center width=100><font color=\\\"green\\\">\" + details.get(i).getResult() + \"</font></td><td align=left width=1040>\" +\n details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intPassCount++;\n } else if (details.get(i).getResult().equals(\"Fail\")) {\n strStatus = \"Fail\";\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n details.get(i).getintTestStep() + \"</td><td align=center width=100><font color=\\\"red\\\">\" + details.get(i).getResult() + \"</font></td><td>\" +\n details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intFailCount++;\n } else if (details.get(i).getResult().equals(\"Step\")) {\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n details.get(i).getintTestStep() + \"</td><td align=left width=100><font color=\\\"blue\\\">\" + details.get(i).getResult() + \"</font></td><td><font color=\\\"blue\\\">\" +\n details.get(i).getResultText() + \"</font></td></tr>\" + resultPlaceholder);\n\n } else {\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n details.get(i).getintTestStep() + \"</td><td align=center width=100><font color=\\\"black\\\">\" + details.get(i).getResult() + \"</font></td><td>\" + details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intInfoCount++;\n }\n\n\n } else if (details.get(i).getintTestStep() == details.get(i - 1).getintTestStep()) {\n if (details.get(i).getResult().equals(\"Pass\")) {\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n \"\" + \"</td><td align=center width=100><font color=\\\"green\\\">\" + details.get(i).getResult() + \"</font></td><td align=left width=1040>\" +\n details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intPassCount++;\n } else if (details.get(i).getResult().equals(\"Fail\")) {\n strStatus = \"Fail\";\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n \"\" + \"</td><td align=center width=100><font color=\\\"red\\\">\" + details.get(i).getResult() + \"</font></td><td>\" +\n details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intFailCount++;\n } else {\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n \"\" + \"</td><td align=center width=100><font color=\\\"black\\\">\" + details.get(i).getResult() + \"</font></td><td>\" + details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intInfoCount++;\n }\n } else {\n if (details.get(i).getResult().equals(\"Pass\")) {\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n details.get(i).getintTestStep() + \"</td><td align=center width=100><font color=\\\"green\\\">\" + details.get(i).getResult() + \"</font></td><td align=left width=1040>\" +\n details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intPassCount++;\n } else if (details.get(i).getResult().equals(\"Fail\")) {\n strStatus = \"Fail\";\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n details.get(i).getintTestStep() + \"</td><td align=center width=100><font color=\\\"red\\\">\" + details.get(i).getResult() + \"</font></td><td>\" +\n details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intFailCount++;\n } else if (details.get(i).getResult().equals(\"Step\")) {\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n details.get(i).getintTestStep() + \"</td><td align=left width=100><font color=\\\"blue\\\">\" + details.get(i).getResult() + \"</font></td><td><font color=\\\"blue\\\">\" +\n details.get(i).getResultText() + \"</font></td></tr>\" + resultPlaceholder);\n } else {\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</td><td align=center width=60>\" +\n details.get(i).getintTestStep() + \"</td><td align=center width=100><font color=\\\"black\\\">\" + details.get(i).getResult() + \"</font></td><td>\" + details.get(i).getResultText() + \"</td></tr>\" + resultPlaceholder);\n intInfoCount++;\n }\n }\n\n }\n reportIn = reportIn.replaceFirst(resultPlaceholder, \"</table>\");\n String currentDate = new SimpleDateFormat(\"dd-MM-yyyy\").format(new Date());\n\n\n String currentTime = CommonFunctionTest.com_CurrentTime();\n String reportPath = strOutputPath + \"\\\\report_\" + currentDate + \"_\" + currentTime + \"_\" + strStatus + \".html\";\n\n Files.write(Paths.get(reportPath), reportIn.getBytes(), StandardOpenOption.CREATE);\n\n } catch (Exception e) {\n System.out.println(\"Error when writing report file:\\n\" + e.toString());\n }\n }", "public static void testISPIssues(){\r\n\t\ttry {\r\n\t\t\tLogFunctions.generateLogsDirectory();\t\r\n\t\t\tGlobalVariables.steps = 0;\r\n\t\t\tGlobalVariables.testCaseId = \"REST004_ISPIssues\";\r\n\t\t\t\r\n\t\t\t// Create Log Files\r\n\t\t\tGlobalVariables.testResultLogFile = LogFunctions.generateLogFile(GlobalVariables.logFile + \"_\"+ GlobalVariables.testCaseId + \".log\");\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Test Case : REST004_ISPIssues Execution Started\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") REST004_ISPIssues Execution Started\");\r\n\t\t\t\r\n\t\t\t// For managing SSL connections\r\n\t\t\tConfigurations.validateTrustManager();\r\n\t\t\t\r\n\t\t\t// Reading input data from CSV File\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tConfigurations.getTestData(\"REST004_ISPIssues.csv\");\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Reading Data From CSV File\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Reading Data From CSV File\");\r\n\r\n\t\t\t// Send Request\r\n\t\t\tString data =GlobalVariables.testData.get(\"api\").concat(\"/version/\"+GlobalVariables.testData.get(\"versionNumber\")+\"/issues\");\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tConfigurations.sendRequest(data);\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Sending Request\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Request Sent\");\r\n\t\t\t\r\n\t\t\t// Receive Response in XML File (response.xml)\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tConfigurations.getResponse();\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Getting Response\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Response Received\");\r\n\t\t\t\r\n\t\t\t// Assertion: verify that Issue.\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tboolean planIdentifierResult;\r\n\t\t\t// Verify About Id\r\n\t\t\tplanIdentifierResult=Configurations.parseResponse(\"about\",\"id\",GlobalVariables.testData.get(\"aboutId\"));\t\r\n\t\t\tAssert.assertEquals(\"About Id is\",true,planIdentifierResult);\r\n\t\t\t// Verify About Type\r\n\t\t\tplanIdentifierResult=Configurations.parseResponse(\"about\",\"type\",GlobalVariables.testData.get(\"aboutType\"));\t\r\n\t\t\tAssert.assertEquals(\"About Type is\",true,planIdentifierResult);\r\n\t\t\t// Verify About name\r\n\t\t\tplanIdentifierResult=Configurations.parseResponse(\"about\",\"name\",GlobalVariables.testData.get(\"aboutName\"));\r\n\t\t\tAssert.assertEquals(\"About name is\",true,planIdentifierResult);\r\n\t\t\t// Verify About Description\r\n\t\t\tplanIdentifierResult=Configurations.parseResponse(\"about\",\"description\",GlobalVariables.testData.get(\"aboutDescription\"));\r\n\t\t\tAssert.assertEquals(\"About Description is\",true,planIdentifierResult);\r\n\t\t\t// Verify Issue Detected\r\n\t\t\tplanIdentifierResult=Configurations.parseResponse(\"issue\",\"detected\",GlobalVariables.testData.get(\"issueDetected\"));\r\n\t\t\tAssert.assertEquals(\"Issue Detected is\",true,planIdentifierResult);\t\t\t\r\n\t\t\t// Verify Issue Type\r\n//\t\t\tplanIdentifierResult=Configurations.parseResponse(\"issue\",\"type\",GlobalVariables.testData.get(\"issueType\"));\r\n//\t\t\tAssert.assertEquals(\"Issue Type is\",planIdentifierResultissueType\")));\t\t\t\r\n\t\t\t// Verify Issue kind\r\n\t\t\tplanIdentifierResult=Configurations.parseResponse(\"issue\",\"kind\",GlobalVariables.testData.get(\"issueKind\"));\r\n\t\t\tAssert.assertEquals(\"Issue kind is\",true,planIdentifierResult);\t\t\t\r\n\t\t\t// Verify Issue waived\r\n\t\t\tplanIdentifierResult=Configurations.parseResponse(\"issue\",\"waived\",GlobalVariables.testData.get(\"issueWaived\"));\r\n\t\t\tAssert.assertEquals(\"Issue waived is\",true,planIdentifierResult);\t\t\t\r\n//\t\t\t// Verify Issue description\r\n//\t\t\tplanIdentifierResult=Configurations.parseResponse(\"issue\",\"description\",GlobalVariables.testData.get(\"issueDescription\"));\r\n//\t\t\tAssert.assertEquals(\"Issue description is\",planIdentifierResultissueDescription\")));\t\t\t\r\n\t\t\t// Verify Issue remediation\r\n\t\t\tplanIdentifierResult=Configurations.parseResponse(\"issue\",\"remediation\",GlobalVariables.testData.get(\"issueRemediation\"));\r\n\t\t\tAssert.assertEquals(\"Issue remediation is\",true,planIdentifierResult);\t\t\t\r\n\t\t\t// Verify Issue severity\r\n\t\t\tplanIdentifierResult=Configurations.parseResponse(\"issue\",\"severity\",GlobalVariables.testData.get(\"issueSeverity\"));\r\n\t\t\tAssert.assertEquals(\"Issue severity is\",true,planIdentifierResult);\t\t\t\r\n\t\t\t// Verify Issue reportedBy\r\n\t\t\tplanIdentifierResult=Configurations.parseResponse(\"issue\",\"reportedBy\",GlobalVariables.testData.get(\"issueReportedBy\"));\r\n\t\t\tAssert.assertEquals(\"Issue reportedBy is\",true,planIdentifierResult);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Plan Summary Assertion Pass\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Assertion Pass\");\r\n\t\t\t\t\t\t\r\n \t// Execution Completed\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Test Case : REST004_ISPIssues Execution Completed\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps+ \") Test Case : ISP001 Execution Completed\");\r\n\t\t\t\r\n\t\t}catch (AssertionError ar) {\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\")Assertion Failed : \");\r\n\t\t\tar.printStackTrace();\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Assertion Failed\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogFunctions.logException(e.getMessage());\r\n\t\t}\r\n\t}", "@Test(dataProviderClass = DataProviderUtils.class, dataProvider = \"excelDataReader\",testName=\"Test1_6_1\",description=\"Test1_6_1: Maximum number of search results\")\r\n\tpublic void Test1_6_1(HashMap<String,String> dataValues,String currentDriver,ITestContext context) throws Exception {\r\n\r\n\t\t//Variable Declaration\r\n\t\tdriver = WebDriverUtils.getDriver();\r\n\t\t\r\n\r\n\t\tConcurrentHashMap <String, String> testData = new ConcurrentHashMap <String, String>(dataValues);\r\n\t\tLoginPage loginPage=null;\r\n\r\n\t\tConfigurationPage configPage=null;\r\n\t\tHomePage homepage=null;\r\n\t\ttry {\r\n\r\n\t\t\t//Step-1: Login to Configuration Page\r\n\t\t\tloginPage=new LoginPage(driver);\r\n\t\t\tloginPage.navigateToApplication(configSite,userName,password,\"\");\t\r\n\t\t\tLog.message(\"1. Logged in to Configuration Page\", driver);\r\n\r\n\t\t\t//Step-2: Click Vault from left panel of Configuration Page\r\n\t\t\tconfigPage=new ConfigurationPage(driver);\r\n\t\t\tconfigPage.clickVaultFolder(testData.get(\"VaultName\"));\r\n\t\t\tLog.message(\"2. Clicked 'Sample vault' from left panel of Configuration Page\", driver);\r\n\r\n\r\n\t\t\t//Step-3 : Set value for Maximum number of search results\r\n\r\n\t\t\tif (!configPage.configurationPanel.getVaultAccess()) {\r\n\t\t\t\tconfigPage.configurationPanel.setVaultAccess(true); //Allows access to this vault\r\n\t\t\t}\r\n\r\n\t\t\tconfigPage.configurationPanel.setValueSearchmaximumResult(testData.get(\"Maximum search results\"));\r\n\t\t\tconfigPage.clickSaveButton();\r\n\r\n\t\t\t// Check any warning dialog displayed\r\n\t\t\tif(configPage.isWarningDialogDisplayed())\r\n\t\t\t{\r\n\t\t\t\tconfigPage.clickResetButton();\r\n\t\t\t\tconfigPage.configurationPanel.setValueSearchmaximumResult(testData.get(\"Maximum search results\"));\r\n\t\t\t\tconfigPage.clickSaveButton();\r\n\t\t\t\tconfigPage.clickOKBtnOnSaveDialog(); \r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tconfigPage.clickOKBtnOnSaveDialog();\r\n\r\n\t\t\tLog.message(\"3. Value set for Maximum number of search results\", driver);\r\n\r\n\t\t\t//Step-4: LogOut of configurationpage\r\n\t\t\tconfigPage.clickLogOut(); //Logs out from the Configuration page\r\n\t\t\tLog.message(\"4. Logged Out of configuration Page.\", driver);\r\n\r\n\t\t\t//Step-5: Login to Web Access Vault\r\n\t\t\tloginPage.navigateToApplication(webSite,userName,password,testData.get(\"VaultName\"));\r\n\t\t\tUtils.waitForPageLoad(driver);\r\n\t\t\thomepage=new HomePage(driver);\r\n\r\n\t\t\tif (!homepage.isLoggedIn(userName))\r\n\t\t\t\tthrow new Exception(\"Some Error encountered while logging..check testdata..\");\r\n\t\t\tLog.message(\"5. Logged in to the vault (\" + testData.get(\"VaultName\") + \").\", driver);\r\n\r\n\t\t\t//Step-6: Select Advanced Search Options\r\n\t\t\tSearchPanel.searchOrNavigatetoView(driver, testData.get(\"SearchType\"), \"\");\r\n\r\n\t\t\t//Step-7: Verify number of objects displayed in listing view\r\n\t\t\tif (homepage.listView.itemCount() == Integer.parseInt(testData.get(\"Maximum search results\")))\r\n\t\t\t\tLog.pass(\"Test Passed. Search results display less than or equal to Maximum number of search results value.\");\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test Failed. Search results display greater than to Maximum number of search results value.\", driver);\r\n\r\n\t\t} //End try\r\n\r\n\t\tcatch (Exception e) {\r\n\t\t\tLog.exception(e, driver);\r\n\t\t} //End catch\r\n\r\n\t\tfinally {\r\n\r\n\t\t\tdriver.quit();\t\r\n\t\t} //End finally\r\n\t}", "public Integer call() throws IOException {\n \t\t\tint ret=90;\n \t\t\ttestCases = new ArrayList<String>();\n \t\t\trealIds = new ArrayList<String>();\n \t \tString path = \"./workspace/\"+jobname;\n\t\t\t\tlistener.getLogger().println(\"IL PATH DEL TESTRUN E' \"+path);\n \t\t\t/* folders = listFilesForFolder(new File(path),listener);\n \t\t\t// cerco il TestRun nell'svn di Polarion\n \tcheck:\tfor(String folder : folders){\n \t \tlistener.getLogger().println(\"confronto: \"+testrunid+\" - \"+folder);\n \t\t\t\tif(testrunid.equals(folder)){ \t\t\t\t\t\n \t\t\t\t\t// prelevo i TestCase relativi al TestRun\n \t\t\t\t\t */\n \t\t\t\t\ttestCases = getTestCases(path,listener);\n \t\t\t\t\tString nometestrun = \"Executed - \"+testrunid+\".xml\";\n \t\t\t\t\tif(!testCases.isEmpty()){\n \t\t\t\t\t\t// prelevo l'ID vero dei Test Case\n\t\t\t\t\t\t\trealIds = getRealTestCaseIdFromPolarion(listener,testCases);\n\t\t\t\t\t\t\tif(type.equals(\"TestMTP\")){ // ESECUZIONE SU MTP\n\t\t\t\t\t\t\t\tlistener.getLogger().println(\"eseguo MTP\");\n\t\t\t\t\t\t\t\tfor(String realId : realIds){\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/* Per l'esecuzione con lo stub (va messa fuori il for per funzionare)\n\t\t \t\t\t\t\tCreaXMLStub stub = new CreaXMLStub(testCases);\n\t\t\t\t\t\t\t\tstub.doTest(\"C:/JenkinsSlave/workspace/\"+jobname+\"/Temp/\"+nometestrun,listener);*/\n\t\t\t\t\t\t\t}else if(type.equals(\"TestMX\")){ // ESECUZIONE SU MICROMAX\n\t\t\t\t\t\t\t\tif(!scenario){\n\t\t\t\t\t\t\t\t\tArrayList<Integer> returnCodes = new ArrayList<Integer>();\n\t\t\t\t\t\t\t\t\tfor(String realId : realIds){\n\t\t\t\t\t\t\t\t\t\t// stampo il realId del test case\n\t\t\t\t\t\t\t \tlistener.getLogger().println(\"TC: \"+realId);\n\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(\"eseguo MX\");\n\t\t\t\t\t\t\t\t\t\tString[] parameters = realId.split(\",\");\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tProcessBuilder builder = new ProcessBuilder(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"MxVGUI\", \"/n\", \"/r\", mxpath+File.separator+parameters[0]+File.separator+parameters[1]+\".mxp\", mxpath+File.separator+parameters[0]+\"/ScenariosAndTestCases/\"+parameters[2]); \n\t\t\t\t\t\t\t\t\t\t\tbuilder.redirectErrorStream(true); \n\t\t\t\t\t\t\t\t\t\t\tProcess p = builder.start();\n\t\t\t\t\t\t\t\t\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t\t\t\t\t\t\t\t\t\tString line;\n\t\t\t\t\t\t\t\t\t\t\twhile ((line = reader.readLine()) != null)\n\t\t\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(\"tasklist: \" + line);\n\t\t\t\t\t\t\t\t\t\t\tret=p.waitFor();\n\t\t\t\t\t\t\t\t\t\t\treturnCodes.add(ret);\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(\"eseguito MX \"+ret);\n\t\t\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\t\t\tContactPolarion(listener);\n\t\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(e.getMessage());\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//Scrive i risultati in base al valore di ritorno di MxVDEV\n\t\t\t\t\t\t\t\t\twriteTestResults(\"C:/JenkinsSlave/Results/\"+nometestrun, testCases, returnCodes);\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t//Converto tutti i risultati nel formato desiderato leggendo i log\n\t\t\t\t\t\t\t\t//convertTestCaseResults(realIds, \"C:/JenkinsSlave/workspace/\"+jobname+\"/Temp/\"+nometestrun, testCases);\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t//convertScenarioResults(testCases, new ArrayList<String>(), mxpath+File.separator+parameters[0]+\"/ScenariosAndTestCases/\"+testrunid ,testrunid);\n\t\t\t\t\t\t\t\t\tString[] parameters = realIds.get(0).split(\",\");\n\t\t\t\t\t\t\t\t\tScenario scenario = new Scenario(testrunid,realIds,mxpath+File.separator+parameters[0]+\"/ScenariosAndTestCases/\");\n\t\t\t\t\t\t\t\t\tif(scenario.createScenario()){\n\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(\"Scenario creato\");\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tProcessBuilder builder = new ProcessBuilder(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"MxVGUI\", \"/n\", \"/r\", mxpath+File.separator+parameters[0]+File.separator+parameters[1]+\".mxp\", mxpath+File.separator+parameters[0]+\"/ScenariosAndTestCases/\"+testrunid+\".mxs\"); \n\t\t\t\t\t\t\t\t\t\t\tbuilder.redirectErrorStream(true); \n\t\t\t\t\t\t\t\t\t\t\tProcess p = builder.start();\n\t\t\t\t\t\t\t\t\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t\t\t\t\t\t\t\t\t\tString line;\n\t\t\t\t\t\t\t\t\t\t\twhile ((line = reader.readLine()) != null)\n\t\t\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(\"tasklist: \" + line);\n\t\t\t\t\t\t\t\t\t\t\tret=p.waitFor();\n\t\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(\"eseguito MX \"+ret);\n\t\t\t\t\t\t\t\t\t\t\tconvertScenarioResults(testCases, new ArrayList<String>(), mxpath+File.separator+parameters[0]+\"/ScenariosAndTestCases/\"+testrunid ,testrunid);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\tContactPolarion(listener);\n\t\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(e.getMessage());\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(\"creazione dello scenario non riuscita\");\n\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\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}else{ // CONDIZIONE EVENTUALI ERRORI\n\t\t\t\t\t\t\t\tContactPolarion(listener);\n\t\t\t\t\t\t\t\tlistener.getLogger().println(\"condizione inaspettata\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tpublishTest(\"C:/JenkinsSlave/Results/\",sharedpasswd,shareduser,nometestrun, listener, projectname);\n\t\t\t\t\t \t}else{\n\t\t\t\t\t \t\tContactPolarion(listener);\n\t\t\t\t\t \t\tlistener.getLogger().println(\"Nessun tc impostato. Setto tr a open\");\n\t\t\t\t\t \t//}\n\t\t\t\t\t \t//break check;\n \t\t\t\t//}\n \t\t\t}\n \t\t\treturn ret; \t\n \t\t}", "@Test(dataProviderClass = DataProviderUtils.class, dataProvider = \"excelDataReader\",testName=\"Test_42213_3\",description=\"Test_42213_3 : Check if default page is displayed while launch the default.aspx for the valid crednetials saved\")\r\n\tpublic void Test_42213_3(HashMap<String,String> dataValues,String currentDriver,ITestContext context) throws Exception {\r\n\r\n\t\t//Variable Declaration\r\n\t\tWebDriver driver= null;\r\n\t\t\r\n\t\tConcurrentHashMap <String, String> testData=new ConcurrentHashMap <String, String>(dataValues);\r\n\t\tLoginPage loginPage=null;\r\n\t\tConfigurationPage configPage = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\t//Step-1: Launch configuration page\r\n\t\t\t//---------------------------------\r\n\t\t\tdriver = WebDriverUtils.getDriver(currentDriver,2);\r\n\t\t\tdriver.get(configSite);\r\n\t\t\tloginPage=new LoginPage(driver);//Instantiate Login page\r\n\t\t\tloginPage.loginToConfigurationUI(userName,password);//login with admin credentials\r\n\r\n\t\t\tLog.message(\"1. Logged in to the Configuration page with admin credentials.\", driver);\r\n\r\n\t\t\t//Verify if Login failed\r\n\t\t\tif (!loginPage.getErrorMessage().isEmpty())//Verify if error message is displayed\r\n\t\t\t\tthrow new Exception(\"Unable to login to Configuration Page, with Error :\"+loginPage.getErrorMessage());\r\n\r\n\t\t\t//Step-2: Navigated to the General page in Web Access Configuration.\r\n\t\t\t//-------------------------------------------------------------------\r\n\t\t\tconfigPage = new ConfigurationPage(driver);\r\n\t\t\tconfigPage.clickTreeViewItem(testData.get(\"GeneralSettings\")); //Selects General in the tree view of configuration page\r\n\r\n\t\t\tLog.message(\"2. Navigated to the General settings in Web Access Configuration.\", driver);\r\n\r\n\t\t\t//Step-3 : Set the automatic login credentials\r\n\t\t\t//--------------------------------------------\r\n\t\t\tconfigPage.configurationPanel.setDefaultAuthType(testData.get(\"AuthenticationType\")+\" user\");//Sets the default authentication type as Windows/M-Files user\r\n\r\n\t\t\tconfigPage.configurationPanel.setAutoLogin(true);//Select the auto login in configuration page\r\n\r\n\t\t\tLog.message(\"3. Automatic login is enabled for \"+testData.get(\"AuthenticationType\")+\" authentication type in the configuration page.\", driver);\r\n\r\n\t\t\t//Step-4: Sets the Invalid credentials and selects the vault\r\n\t\t\t//----------------------------------------------------------\r\n\t\t\tif (testData.get(\"AuthenticationType\").contains(\"Windows\"))\r\n\t\t\t{\r\n\t\t\t\tconfigPage.configurationPanel.setDefaultAuthType(testData.get(\"AuthenticationType\")+\" user\");//Sets the default authentication type as Windows user\r\n\t\t\t\tconfigPage.configurationPanel.setAutoLoginUserName(windowsUserName);//Sets the Windows user name\r\n\t\t\t\tconfigPage.configurationPanel.setAutoLoginPassword(windowsPassword);//Sets the Windows user password\r\n\t\t\t\tconfigPage.configurationPanel.setAutoLoginDomain(windowsUserDomain);//Sets the Windows user domain\r\n\t\t\t\tconfigPage.configurationPanel.setAutoLoginVault(documentVault);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tconfigPage.configurationPanel.setDefaultAuthType(testData.get(\"AuthenticationType\")+\" user\");//Sets the default authentication type as M-Files user\r\n\t\t\t\tconfigPage.configurationPanel.setAutoLoginUserName(userName);//Sets the M-Files user name\r\n\t\t\t\tconfigPage.configurationPanel.setAutoLoginPassword(password);//Sets the M-Files user password\r\n\t\t\t\tconfigPage.configurationPanel.setAutoLoginVault(documentVault);\r\n\t\t\t}\r\n\r\n\t\t\tLog.message(\"4. Valid credentials are set and vault is selected in the configuration webpage.\", driver);\r\n\r\n\t\t\t//Step-5: Save the changes\r\n\t\t\t//-------------------------\r\n\t\t\tconfigPage.saveSettings();//Clicks the save the button\r\n\r\n\t\t\tif (!MFilesDialog.exists(driver))//Checks if MFiles dialog is displayed or not\r\n\t\t\t\tthrow new Exception(\"Warning dialog is not displayed while saving invalid credentials.\");\r\n\r\n\t\t\tLog.message(\"5. Saved the changes.\", driver);\r\n\r\n\t\t\t//Step-6: Logout from Web Access\r\n\t\t\t//-------------------------------\r\n\t\t\tMFilesDialog.closeMFilesDialog(driver);//Closes the MFiles Dialog\r\n\r\n\t\t\tconfigPage.logOut();//Logs out from Configuration webpage\r\n\r\n\t\t\tLog.message(\"6. Logged out from Configuration Webpage.\", driver);\r\n\r\n\t\t\t//Verification IF login page is displayed for invalid credentials\r\n\t\t\t//---------------------------------------------------------------\r\n\t\t\tdriver.get(defaultSite);\r\n\t\t\tint snooze = 0;\r\n\r\n\t\t\twhile (snooze < 10 && !driver.getCurrentUrl().toUpperCase().contains(\"LOGIN.ASPX\") && !driver.getCurrentUrl().toUpperCase().contains(\"DEFAULT.ASPX\"))\r\n\t\t\t{\r\n\t\t\t\tThread.sleep(500);\r\n\t\t\t\tsnooze++;\r\n\t\t\t}\r\n\r\n\t\t\tif(!driver.getCurrentUrl().toUpperCase().contains(\"LOGIN.ASPX\"))\r\n\t\t\t\tLog.pass(\"Test case passed. Default page is displayed while launching the default url with valid credentials saved for auto login in the configuration webpage.\", driver);\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test case failed. Default page is not displayed while launching the default url with valid credentials saved for auto login in the configuration webpage.\", driver);\r\n\r\n\t\t}//End try\r\n\t\tcatch (Exception e) {\r\n\t\t\tLog.exception(e, driver);\r\n\t\t} //End catch\r\n\t\tfinally {\r\n\t\t\tif (driver != null)\r\n\t\t\t{\r\n\t\t\t\tUtility.logOut(driver);\r\n\t\t\t\tdriver.get(configSite);\r\n\t\t\t\tloginPage=new LoginPage(driver);//Instantiate Login page\r\n\t\t\t\tloginPage.loginToConfigurationUI(userName,password);//login with admin credentials\r\n\t\t\t\tconfigPage = new ConfigurationPage(driver);\r\n\t\t\t\tconfigPage.clickTreeViewItem(testData.get(\"GeneralSettings\")); //Selects General in the tree view of configuration page\r\n\t\t\t\tconfigPage.configurationPanel.setAutoLogin(false);//Select the auto login in configuration page\r\n\t\t\t\tconfigPage.saveSettings();//Click the save button\r\n\t\t\t\tMFilesDialog.closeMFilesDialog(driver);//Closes the M-Files dialog in the view\r\n\t\t\t\tconfigPage.clickLogOut(); //Logs out from the Configuration page\r\n\t\t\t}\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t} //End Finally\r\n\t}", "public static void main(String[] args) throws IOException {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"/Users/fvargas/Selenium/SeleniumDrivers/chromedriver\");\n\t\tChromeDriver driver = new ChromeDriver();\n\t\t\n\t\tdriver.get(\"http://demo.automationtesting.in/Register.html\");\n\t\tdriver.manage().window().maximize();\n\t\t\n\t\t/*\n\t\t * Excel Steering\n\t\t */\n\t\t\n\t\tFileInputStream file = new FileInputStream(\"//Users//fvargas//eclipse-workspace//MySeleniumProject1//XLSTestFile.xlsx\");\n\t\t\n\t\tXSSFWorkbook workbook = new XSSFWorkbook(file);\n\t\t\n\t\tXSSFSheet sheet = workbook.getSheet(\"MySecondSheet\");\n\t\t\n\t\tint rowsCount = sheet.getLastRowNum();\n\t\t\n\t\tfor(int i = 1; i <= rowsCount; i++) {\n\t\t\tXSSFRow currentRow = sheet.getRow(i);\n\t\t\t\n\t\t\tString xlsFirstName = currentRow.getCell(0).toString();\n\t\t\tString xlsLastName = currentRow.getCell(1).toString();\n\t\t\tString xlsAddress = currentRow.getCell(2).toString();\n\t\t\tString xlsEmail = currentRow.getCell(3).toString();\n\t\t\tString xlsPhone = currentRow.getCell(4).toString();\n\t\t\tString xlsHobbies = currentRow.getCell(5).toString();\n\t\t\tString xlsLanguage = currentRow.getCell(6).toString();\n\t\t\tString xlsSkills = currentRow.getCell(7).toString();\n\t\t\tString xlsCountry = currentRow.getCell(8).toString();\n\t\t\tString xlsDOB = currentRow.getCell(9).toString();\n\t\t\tString xlsPassword = currentRow.getCell(10).toString();\n\t\t\t\n\t\t\t// entering values into AUT\n\t\t\t\n\t\t\tdriver.findElement(By.cssSelector(\"*[ng-model='FirstName']\")).sendKeys(xlsFirstName);\n\t\t\tdriver.findElement(By.cssSelector(\"*[ng-model='LastName']\")).sendKeys(xlsLastName);\n\t\t\tdriver.findElement(By.cssSelector(\"*[ng-model='Adress']\")).sendKeys(xlsAddress);\n\t\t\tdriver.findElement(By.cssSelector(\"*[ng-model='EmailAdress']\")).sendKeys(xlsEmail);\n\t\t\tdriver.findElement(By.cssSelector(\"*[ng-model='Phone']\")).sendKeys(xlsPhone);\n\t\t\t\n\t\t\tdriver.findElement(By.cssSelector(\"*[type='radio'][value='Male']\")).click();\n\t\t\t\n\t\t\t// starts hobbies logic\n\t\t\t\n\t\t\tString checkboxID = \"\";\n\t\t\tswitch(xlsHobbies.toLowerCase()) {\n\t\t\tcase \"cricket\":\n\t\t\t\tcheckboxID = \"checkbox1\";\n\t\t\t\tbreak;\n\t\t\tcase \"movies\":\n\t\t\t\tcheckboxID = \"checkbox2\";\n\t\t\t\tbreak;\n\t\t\tcase \"hockey\":\n\t\t\t\tcheckboxID = \"checkbox3\";\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Hobby not in list\");\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tdriver.findElement(By.id(checkboxID)).click();\n\t\t\t// ends hobbies logic\n\t\t\t\n\t\t\tdriver.findElement(By.id(\"msdd\")).click();\n\t\t\tdriver.findElement(By.linkText(xlsLanguage)).click();\n\t\t\t\n\t\t\tSelect skills = new Select(driver.findElement(By.id(\"Skills\")));\n\t\t\tskills.selectByVisibleText(xlsSkills);\n\t\t\t//skills.getOptions().size(); //returns the number of items in the list\n\t\t\t\n\t\t\tSelect country = new Select(driver.findElement(By.id(\"countries\")));\n\t\t\tcountry.selectByVisibleText(xlsCountry);\n\t\t\t\n\t\t\t// starts DOB logic\n\t\t\ttry {\n\t\t\t\tDate dateOfBirth = new SimpleDateFormat(\"dd/MM/yyyy\").parse(xlsDOB);\n\t\t\t\tLocalDate date = dateOfBirth.toInstant().atZone(ZoneId.systemDefault()).toLocalDate();\n\t\t\t\t\n\t\t\t\tSelect year = new Select(driver.findElement(By.id(\"yearbox\")));\n\t\t\t\tyear.selectByVisibleText(String.valueOf(date.getYear()));\n\t\t\t\t\n\t\t\t\tSelect month = new Select(driver.findElement(By.cssSelector(\"select[ng-model='monthbox']\")));\n\t\t\t\tmonth.selectByIndex(date.getMonthValue()); //index start with zero\n\t\t\t\t\n\t\t\t\tSelect day = new Select(driver.findElement(By.id(\"daybox\")));\n\t\t\t\tday.selectByValue(String.valueOf(date.getDayOfMonth()));\n\t\t\t} catch (ParseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\t// ends DOB logic\n\t\t\t\n\t\t\t//smart drop down with search box\n\t\t\tdriver.findElement(By.cssSelector(\"*[class='select2-selection select2-selection--single']\")).click();\n\t\t\tdriver.findElement(By.cssSelector(\"*[class='select2-search__field']\")).sendKeys(xlsCountry);\n\t\t\tdriver.findElement(By.xpath(\"//li[text()='\"+ xlsCountry + \"']\")).click();\n\t\t\t\n\t\t\t//password fields\n\t\t\tdriver.findElement(By.id(\"firstpassword\")).sendKeys(xlsPassword);\n\t\t\tdriver.findElement(By.id(\"secondpassword\")).sendKeys(xlsPassword);\n\t\t\t\n\t\t\t// refresh form\n\t\t\tdriver.findElement(By.id(\"Button1\")).click();\n\t\t\t\n\t\t}\n\t\t\n\t\tworkbook.close();\n\t\tdriver.close();\n\n\t}", "@Test(dataProviderClass = DataProviderUtils.class, dataProvider = \"excelDataReader\", groups = {\"Sprint25\", \"UI\"}, \r\n\t\t\tdescription = \"General settings 'Server Information'\")\r\n\tpublic void SprintTest25_10_1B(HashMap<String,String> dataValues, String driverType) throws Exception {\r\n\r\n\t\tdriver = null; \r\n\t\tConcurrentHashMap <String, String> dataPool = null;\r\n\r\n\t\ttry {\r\n\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\t\t\tdataPool = new ConcurrentHashMap <String, String>(dataValues);\r\n\r\n\t\t\t//1. Login to Configuration\r\n\t\t\t//--------------------------\r\n\t\t\tdriver.get(configURL);\r\n\r\n\t\t\tLoginPage loginPage = new LoginPage(driver);\r\n\t\t\tConfigurationPage configurationPage = loginPage.loginToConfigurationUI(userName, password);\r\n\r\n\t\t\tLog.message(\"1. Logged in to Configuiration\");\r\n\r\n\t\t\t//2. Click the 'General' link \r\n\t\t\t//----------------------------\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(\"General\");\r\n\r\n\r\n\t\t\tLog.message(\"2. Clicked the 'General' link.\");\r\n\r\n\t\t\t//Verification: To verify the 'Server Information' title\r\n\t\t\t//--------------------------------------------------------\r\n\t\t\tWebElement configTitle = driver.findElement(By.cssSelector(\"div[id='configgeneral']>table>tbody>tr>td[class='listSubTitle']\"));\r\n\r\n\t\t\tif(configTitle.isDisplayed() && configTitle.getText().contains(dataPool.get(\"ConfigurationTitle\")))\r\n\t\t\t\tLog.pass(\"Test Case Passed. The 'Server Information' text was not displayed.\");\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test Case Failed. The 'Server Information' text was not displayed.\", driver);\r\n\r\n\t\t}\r\n\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tLog.exception(e, driver);\r\n\t\t}\r\n\r\n\t\tfinally {\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t}\r\n\r\n\t}", "@Test(dataProviderClass = DataProviderUtils.class, dataProvider = \"excelDataReader\",testName=\"Test_42213\",description=\"Check if automatic login credentials field is enabled/disabled while enable and disabled the Automatic login checkbox\")\r\n\tpublic void Test_42213(HashMap<String,String> dataValues,String currentDriver,ITestContext context) throws Exception {\r\n\r\n\t\t//Variable Declaration\r\n\t\tWebDriver driver= null;\r\n\t\t\r\n\t\tConcurrentHashMap <String, String> testData=new ConcurrentHashMap <String, String>(dataValues);\r\n\t\tLoginPage loginPage=null;\r\n\t\tConfigurationPage configPage = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\t//Step-1: Launch configuration page\r\n\t\t\t//---------------------------------\r\n\t\t\tdriver = WebDriverUtils.getDriver(currentDriver,2);\r\n\t\t\tdriver.get(configSite);\r\n\t\t\tloginPage=new LoginPage(driver);//Instantiate Login page\r\n\t\t\tloginPage.loginToConfigurationUI(userName,password);//login with admin credentials\r\n\r\n\t\t\tLog.message(\"1. Logged in to the Configuration page with admin credentials.\", driver);\r\n\r\n\t\t\t//Verify if Login failed\r\n\t\t\tif (!loginPage.getErrorMessage().isEmpty())//Verify if error message is displayed\r\n\t\t\t\tthrow new Exception(\"Unable to login to Configuration Page, with Error :\"+loginPage.getErrorMessage());\r\n\r\n\t\t\t//Step-2: Navigated to the General page in Web Access Configuration.\r\n\t\t\t//-------------------------------------------------------------------\r\n\t\t\tconfigPage = new ConfigurationPage(driver);\r\n\t\t\tconfigPage.clickTreeViewItem(testData.get(\"GeneralSettings\")); //Selects General in the tree view of configuration page\r\n\r\n\t\t\tLog.message(\"2. Navigated to the General settings in Web Access Configuration.\", driver);\r\n\r\n\t\t\t//Step-3 : Set the automatic login credentials\r\n\t\t\t//--------------------------------------------\r\n\t\t\tconfigPage.configurationPanel.setDefaultAuthType(testData.get(\"AuthenticationType\")+\" user\");//Sets the default authentication type as Windows/M-Files user\r\n\r\n\t\t\tconfigPage.configurationPanel.setAutoLogin(true);//Select the auto login in configuration page\r\n\r\n\t\t\tLog.message(\"3. Automatic login is enabled for \"+testData.get(\"AuthenticationType\")+\" authentication type in the configuration page.\", driver);\r\n\r\n\t\t\t//Verification: Check corresponding fields are enabled or not based on the Authentication type\r\n\t\t\t//--------------------------------------------------------------------------------------------\r\n\t\t\tString result = \"\";\r\n\r\n\t\t\tif (testData.get(\"AuthenticationType\").contains(\"Windows\"))\r\n\t\t\t{\r\n\r\n\t\t\t\tif (!configPage.configurationPanel.isAutoLoginUserNameEnabled())\r\n\t\t\t\t\tresult = \" User name field is not enabled for windows user automatic login;\";\r\n\r\n\t\t\t\tif (!configPage.configurationPanel.isAutoLoginPasswordEnabled())\r\n\t\t\t\t\tresult += \" Password field is not enabled for windows user automatic login;\";\r\n\r\n\t\t\t\tif (!configPage.configurationPanel.isAutoLoginDomainEnabled())\r\n\t\t\t\t\tresult += \" Domain name field is not enabled for windows user automatic login;\";\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tif (!configPage.configurationPanel.isAutoLoginUserNameEnabled())\r\n\t\t\t\t\tresult = \" User name field is not enabled for M-Files user automatic login;\";\r\n\r\n\t\t\t\tif (!configPage.configurationPanel.isAutoLoginPasswordEnabled())\r\n\t\t\t\t\tresult += \" Password field is not enabled for M-Files user automatic login;\";\r\n\r\n\t\t\t\tif (configPage.configurationPanel.isAutoLoginDomainEnabled())\r\n\t\t\t\t\tresult += \" Domain name field is enabled for M-Files user automatic login;\";\r\n\t\t\t}\r\n\r\n\t\t\tif(result.equals(\"\"))\r\n\t\t\t\tLog.pass(\"Test case passed. While enable Automatic login for \"+testData.get(\"AuthenticationType\")+\" user, UserName/DomainName/Password fields are enabled as expected\", driver);\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test case failed. While enable Automatic login for \"+testData.get(\"AuthenticationType\")+\" user, UserName/DomainName/Password fields are not enabled as expected. [Additional Info.: \"+ result +\"]\", driver);\r\n\r\n\r\n\t\t}//End try\r\n\t\tcatch (Exception e) {\r\n\t\t\tLog.exception(e, driver);\r\n\t\t} //End catch\r\n\t\tfinally {\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t} //End Finally\r\n\t}", "@BeforeClass (alwaysRun=true)\r\n\tpublic void init() throws Exception {\r\n\r\n\t\ttry {\r\n\r\n\t\t\tXmlTest xmlParameters = Reporter.getCurrentTestResult().getTestContext().getCurrentXmlTest();\r\n\t\t\txlTestDataWorkBook = xmlParameters.getParameter(\"TestData\");\r\n\t\t\tloginURL = xmlParameters.getParameter(\"webSite\");\r\n\t\t\tuserName = xmlParameters.getParameter(\"UserName\");\r\n\t\t\tpassword = xmlParameters.getParameter(\"Password\");\r\n\t\t\ttestVault = xmlParameters.getParameter(\"VaultName\");\t\r\n\t\t\tconfigURL = xmlParameters.getParameter(\"ConfigurationURL\");\r\n\t\t\tdriverType = xmlParameters.getParameter(\"driverType\");\r\n\r\n\t\t\tclassName = this.getClass().getSimpleName().toString().trim();\r\n\t\t\tif (driverType.equalsIgnoreCase(\"IE\"))\r\n\t\t\t\tproductVersion = \"M-Files \" + xmlParameters.getParameter(\"productVersion\").trim() + \" - \" + driverType.toUpperCase().trim() + xmlParameters.getParameter(\"driverVersion\").trim();\r\n\t\t\telse\r\n\t\t\t\tproductVersion = \"M-Files \" + xmlParameters.getParameter(\"productVersion\").trim() + \" - \" + driverType.toUpperCase().trim();\r\n\r\n\t\t\tUtility.restoreTestVault();\r\n\t\t\tUtility.configureUsers(xlTestDataWorkBook);\r\n\r\n\t\t} //End try\r\n\r\n\t\tcatch(Exception e) {\r\n\t\t\tif (e instanceof SkipException) \r\n\t\t\t\tthrow new SkipException(e.getMessage());\r\n\t\t\telse if (e.getClass().toString().contains(\"NullPointerException\")) \r\n\t\t\t\tthrow new Exception (\"Test data sheet does not exists.\");\r\n\t\t\telse\r\n\t\t\t\tthrow e;\r\n\t\t} //End catch\r\n\r\n\t}", "public static void testISPIssuesPlan(){\r\n\t\ttry {\r\n\t\t\tLogFunctions.generateLogsDirectory();\t\r\n\t\t\tGlobalVariables.steps = 0;\r\n\t\t\tGlobalVariables.testCaseId = \"REST004_ISPIssuesPlan\";\r\n\t\t\t\r\n\t\t\t// Create Log Files\r\n\t\t\tGlobalVariables.testResultLogFile = LogFunctions.generateLogFile(GlobalVariables.logFile + \"_\"+ GlobalVariables.testCaseId + \".log\");\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Test Case : REST004_ISPIssuesPlan Execution Started\");\r\n\t\t\tSystem.out.println(\"testISPPlanPlanner Method\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") REST004_ISPIssuesPlan Execution Started\");\r\n\t\t\t\r\n\t\t\t// For managing SSL connections\r\n\t\t\tConfigurations.validateTrustManager();\t\t\t\r\n\t\t\t// Reading input data from CSV File\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tConfigurations.getTestData(\"REST004_ISPIssues.csv\");\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Reading Data From CSV File\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Reading Data From CSV File\");\r\n\r\n\t\t\t// Send Request\r\n\t\t\tString data =GlobalVariables.testData.get(\"api\")+\"/version/\"+GlobalVariables.testData.get(\"versionNumber\")+\"/issues\";\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tConfigurations.sendRequest(data);\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Sending Request\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Request Sent\");\r\n\t\t\t// Receive Response in XML File (response.xml)\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tConfigurations.getResponse();\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Getting Response\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Response Received\");\r\n\t\t\t\r\n\t\t\t// Assertion: verify that PlanSummary\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tboolean planAgentResult;\r\n\t\t\t//Verify planIdentifier release\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"planIdentifier\",\"release\",GlobalVariables.testData.get(\"release\"));\r\n\t\t\tAssert.assertEquals(\"planIdentifier release is\",true,planAgentResult);\t\t\t\r\n\t\t\t//Verify user name \r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"user\",\"username\",GlobalVariables.testData.get(\"username\"));\r\n\t\t\tAssert.assertEquals(\"user name is\",true,planAgentResult);\t\t\t\r\n\t\t\t// Verify user full Name\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"user\",\"fullName\",GlobalVariables.testData.get(\"fullName\"));\t\r\n\t\t\tAssert.assertEquals(\"Full Name is\",true,planAgentResult);\r\n\t\t\t// Verify user email\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"user\",\"email\",GlobalVariables.testData.get(\"email\"));\r\n\t\t\tAssert.assertEquals(\"Email is\",true,planAgentResult);\r\n\t\t\t// Verify Agent ID\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"agent\",\"id\",GlobalVariables.testData.get(\"agentId\"));\t\r\n\t\t\tAssert.assertEquals(\"Agent is\",true,planAgentResult);\r\n\t\t\t// Verify Agent Name\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"agent\",\"name\",GlobalVariables.testData.get(\"agentName\"));\t\r\n\t\t\tAssert.assertEquals(\"Agent Name is\",true,planAgentResult);\r\n\t\t\t// Verify Agent Unique Identity\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"agent\",\"hasUniqueIdentity\",GlobalVariables.testData.get(\"hasUniqueIdentity\"));\t\r\n\t\t\tAssert.assertEquals(\"Agent Unique Identity is\",true,planAgentResult);\r\n\t\t\t// Verify Agent Anonymous\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"agent\",\"isAnonymous\",GlobalVariables.testData.get(\"isAnonymous\"));\t\r\n\t\t\tAssert.assertEquals(\"Is Agent Anonymous\",true,planAgentResult);\r\n\t\t\t// Verify Agent Kind\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"agent\",\"kind\",GlobalVariables.testData.get(\"kind\"));\t\r\n\t\t\tAssert.assertEquals(\"Agent Kind is\",true,planAgentResult);\t\t\t\r\n\t\t\t// Verify Agent Kind\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"availability\",\"always\",GlobalVariables.testData.get(\"always\"));\t\r\n\t\t\tAssert.assertEquals(\"Availability always is\",true,planAgentResult);\t\t\t\r\n\t\t\t// Verify documents type\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"documents\",\"type\",GlobalVariables.testData.get(\"documentsType\"));\r\n\t\t\tAssert.assertEquals(\"Documents type is\",true,planAgentResult);\t\t\t\r\n\t\t\t//Verify documents url\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"documents\",\"url\",GlobalVariables.testData.get(\"documentsUrl\"));\r\n\t\t\tAssert.assertEquals(\"Documents url is\",true,planAgentResult);\t\t\t\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Plan Summary Assertion Pass\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Assertion Pass\");\r\n\t\t\t\r\n\t\t\t// Execution Completed\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Test Case : REST004_ISPIssuesPlan Execution Completed\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps+ \") Test Case : REST004_ISPIssuesPlan Execution Completed\");\r\n\t\t\t\r\n\t\t}catch (AssertionError ar) {\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\")Assertion Failed : \");\r\n\t\t\tar.printStackTrace();\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Assertion Failed\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogFunctions.logException(e.getMessage());\r\n\t\t}\r\n\t}", "public static void xmlclassgeneration_parallel_web(Integer noOfBrowsers, String executionType) {\n\t\tSystem.out.println(noOfBrowsers);\r\n\t\tSystem.out.println(executionType);\r\n\r\n\t\t/**\r\n\t\t * Add Listener Classes\r\n\t\t */\r\n\t\t// Thread count need to be provided for running scripts sequential\r\n\t\tif (listner_count < count) {\r\n\t\t\t// add pdf listener\r\n\t\t\tsuite.addListener(\"com.vil.web.reports.MyExtentListners\");\r\n\t\t\t// suite.addListener(\"com.utteshappend.pdfngreport.PDFReportListener\");\r\n\t\t\tlistner_count = listner_count + 1;\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Add Parameters for suite level\r\n\t\t */\r\n\r\n\t\tHashMap<String, String> testParameters1 = new HashMap<String, String>();\r\n\t\ttestParameters1.put(\"pdfngreport-properties\", \"pdfngreport.properties\");\r\n\t\tsuite.setParameters(testParameters1);\r\n\t\tsuite.setGroupByInstances(false);\r\n\t\tsuite.setThreadCount(noOfBrowsers);\r\n\t\tsuite.setParallel(\"tests\");\r\n\r\n\t\t// find total module count from ModuleExecutionControl\r\n\t\t// sheet config.xlsx file\r\n\t\tArrayList<String> moduleNames = new ArrayList<String>();\r\n\t\tint totalModuleRowCount = ExcelLibrary.getExcelRowCount(\"./config/config.xlsx\", \"ModuleExecutionControl\");\r\n\t\tfor (int i = 1; i <= totalModuleRowCount; i++) {\r\n\t\t\tif (ExcelLibrary\r\n\t\t\t\t\t.getExcelData(\"./config/config.xlsx\", \"ModuleExecutionControl\", i, GenericLib\r\n\t\t\t\t\t\t\t.getHeaderColumnIndex(\"./config/config.xlsx\", \"ModuleExecutionControl\", \"Execution_Status\"))\r\n\t\t\t\t\t.trim().equals(\"Yes\")) {\r\n\t\t\t\tmoduleNames\r\n\t\t\t\t\t\t.add(ExcelLibrary.getExcelData(\"./config/config.xlsx\", \"ModuleExecutionControl\", i, GenericLib\r\n\t\t\t\t\t\t\t\t.getHeaderColumnIndex(\"./config/config.xlsx\", \"ModuleExecutionControl\", \"ModuleName\")));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Iterate loop based number of browsers to parameters to <test> in <suite>\r\n\t\tArrayList<String> browserNames = new ArrayList<String>();\r\n\t\tfor (int i = 1; i <= noOfBrowsers; i++) {\r\n\t\t\tbrowserNames.add(ExcelLibrary.getExcelData(\"./config/config.xlsx\", \"config\", i,\r\n\t\t\t\t\tGenericLib.getHeaderColumnIndex(\"./config/config.xlsx\", \"config\", \"Browser Name\")));\r\n\t\t}\r\n\r\n\t\tif (noOfBrowsers > 1) {\r\n\t\t\tif (moduleNames.size() != 0) {\r\n\r\n\t\t\t\tfor (int i = 1; i <= noOfBrowsers; i++) {\r\n\t\t\t\t\tXmlTest test = new XmlTest(suite);\r\n\t\t\t\t\tHashMap<String, String> testCases = new HashMap<String, String>();\r\n\r\n\t\t\t\t\tfor (int l = 0; l < moduleNames.size(); l++) {\r\n\t\t\t\t\t\tString modulenames[] = GenericLib.testConfigutration(\"./config/config.xlsx\",\r\n\t\t\t\t\t\t\t\tmoduleNames.get(l));\r\n\t\t\t\t\t\ttestCases.put(moduleNames.get(l),\r\n\t\t\t\t\t\t\t\tArrays.toString(modulenames).replace(\"[\", \"\").replace(\"]\", \"\"));\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tSystem.out.println(\"loop\" + i);\r\n\t\t\t\t\tSystem.out.println(testCases.size());\r\n\t\t\t\t\tSet<String> keys = testCases.keySet();\r\n\t\t\t\t\tArrayList<String> testNames = new ArrayList<String>();\r\n\t\t\t\t\tfor (String key : keys) {\r\n\t\t\t\t\t\ttestNames.add(key);\r\n\t\t\t\t\t\tSystem.out.println(key);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tHashMap<String, String> testParameters = new HashMap<String, String>();\r\n\r\n\t\t\t\t\ttestParameters.put(\r\n\t\t\t\t\t\t\tExcelLibrary.getExcelData(\"./config/config.xlsx\", \"config\", 0,\r\n\t\t\t\t\t\t\t\t\tGenericLib.getHeaderColumnIndex(\"./config/config.xlsx\", \"config\", \"Browser Name\")),\r\n\t\t\t\t\t\t\tExcelLibrary.getExcelData(\"./config/config.xlsx\", \"config\", i,\r\n\t\t\t\t\t\t\t\t\tGenericLib.getHeaderColumnIndex(\"./config/config.xlsx\", \"config\", \"Browser Name\")));\r\n\t\t\t\t\tfor (Map.Entry entry : testParameters.entrySet()) {\r\n\t\t\t\t\t\tSystem.out.println(entry.getKey() + \" : \" + entry.getValue());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString testname = Arrays.toString(testNames.toArray());\r\n\t\t\t\t\t// System.out.println(testname);\r\n\r\n\t\t\t\t\ttest.setName(\"Regression_Test_\" + browserNames.get(i - 1) + \"_\" + i);\r\n\t\t\t\t\t// test.setPreserveOrder(\"true\");\r\n\t\t\t\t\ttest.setPreserveOrder(true);\r\n\t\t\t\t\ttest.setParameters(testParameters);\r\n\t\t\t\t\t// testParameters.clear();\r\n\t\t\t\t\ttest.setThreadCount(noOfBrowsers);\r\n\t\t\t\t\tArrayList<XmlClass> classes = new ArrayList<XmlClass>();\r\n\t\t\t\t\tIterator it = testCases.entrySet().iterator();\r\n\t\t\t\t\twhile (it.hasNext()) {\r\n\t\t\t\t\t\tSystem.out.println(\"inside\");\r\n\t\t\t\t\t\tMap.Entry pair = (Map.Entry) it.next();\r\n\t\t\t\t\t\tSystem.out.println(pair.getKey() + \" = \" + pair.getValue());\r\n\t\t\t\t\t\tString[] testcases = pair.getValue().toString().replace(\",\", \"\").split(\" \");\r\n\t\t\t\t\t\tSystem.out.println(\"Test cases length \" + testcases.length);\r\n\r\n\t\t\t\t\t\t// Add all test cases in before creating xml file\r\n\t\t\t\t\t\tfor (int k = 0; k < testcases.length; k++) {\r\n\t\t\t\t\t\t\tString className = \"com.vil.web.tests.\" + pair.getKey() + \".\"\r\n\t\t\t\t\t\t\t\t\t+ testcases[k].replace(\"]\", \"\");\r\n\t\t\t\t\t\t\tSystem.out.println(className);\r\n\t\t\t\t\t\t\tclasses.add(new XmlClass(className));\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\ttest.setXmlClasses(classes);\r\n\t\t\t\t\t\tit.remove();\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t} else if (moduleNames.size() == 0) {\r\n\t\t\tSystem.out.println(\r\n\t\t\t\t\t\"Please select modules which you wan execute in under config_execution --> Test Execution Control\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Please configure > 1 browser in config.xlsx--> config for Parallel execution\");\r\n\t\t}\r\n\r\n\t\tsuites.add(suite);\r\n\t\tsuite.setName(\"Suite\");\r\n\t\ttry {\r\n\t\t\tFileWriter writer = new FileWriter(\"testng_\" + \"web_parallel\" + \".xml\");\r\n\t\t\twriter.write(suite.toXml());\r\n\t\t\twriter.flush();\r\n\t\t\twriter.close();\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tThread.sleep(2000);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Test(dataProviderClass = DataProviderUtils.class, dataProvider = \"excelDataReader\",testName=\"Test1_6_3\",description=\"Test1_6_3 : State transition prompt \")\r\n\tpublic void Test1_6_3(HashMap<String,String> dataValues,String currentDriver,ITestContext context) throws Exception {\r\n\r\n\t\t//Variable Declaration\r\n\t\tdriver = WebDriverUtils.getDriver();\r\n\t\t\r\n\r\n\t\tConcurrentHashMap <String, String> testData = new ConcurrentHashMap <String, String>(dataValues);\r\n\t\tLoginPage loginPage=null;\r\n\r\n\t\tConfigurationPage configPage=null;\r\n\t\tHomePage homepage=null;\r\n\t\ttry {\r\n\r\n\t\t\t//Step-1: Login to Configuration Page\r\n\t\t\tloginPage=new LoginPage(driver);\r\n\t\t\tloginPage.navigateToApplication(configSite,userName,password,\"\");\t\r\n\t\t\tLog.message(\"1. Logged in to Configuration Page\", driver);\r\n\r\n\t\t\t//Step-2: Click Vault from left panel of Configuration Page\r\n\t\t\tconfigPage=new ConfigurationPage(driver);\r\n\t\t\tconfigPage.clickVaultFolder(testData.get(\"VaultName\"));\r\n\t\t\tLog.message(\"2. Clicked 'Sample vault' from left panel of Configuration Page\", driver);\r\n\r\n\r\n\t\t\t//Step-3 : Set value for Maximum number of search results\r\n\r\n\t\t\tif (!configPage.configurationPanel.getVaultAccess()) {\r\n\t\t\t\tconfigPage.configurationPanel.setVaultAccess(true); //Allows access to this vault\r\n\t\t\t}\r\n\r\n\t\t\tconfigPage.expandVaultFolder(documentVault);\r\n\t\t\tLog.message(\"3. Clicked '\"+documentVault+\"' from left panel of Configuration Page\", driver);\r\n\r\n\t\t\t//Step-4 : Set the control values\r\n\r\n\t\t\tconfigPage.clickSettingsFolder(\"Controls\");\r\n\t\t\tif (configPage.configurationPanel.getVaultCommands(testData.get(\"Control\")).equalsIgnoreCase(\"Hide\")) {\r\n\t\t\t\tconfigPage.chooseConfigurationVaultSettings(driver, testData.get(\"Control\"),\"controls\",\"Show\");\r\n\t\t\t\tconfigPage.clickSaveButton();\r\n\r\n\t\t\t\t// Check any warning dialog displayed\r\n\t\t\t\tif(configPage.isWarningDialogDisplayed())\r\n\t\t\t\t{\r\n\t\t\t\t\tconfigPage.clickResetButton();\r\n\t\t\t\t\tconfigPage.chooseConfigurationVaultSettings(driver, testData.get(\"Control\"),\"controls\",\"Show\");\r\n\t\t\t\t\tconfigPage.clickSaveButton();\r\n\t\t\t\t\tconfigPage.clickOKBtnOnSaveDialog(); \r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\tconfigPage.clickOKBtnOnSaveDialog();\r\n\t\t\t}\r\n\t\t\tLog.message(\"4. Show \" + testData.get(\"Control\") + \" is enabled and settings are saved.\", driver);\r\n\t\t\t//Step-3 : Login to the vault\r\n\t\t\tconfigPage.clickLogOut(); //Logs out from the Configuration page\r\n\t\t\tLog.message(\"5. LoggedOut from configuration page.\", driver);\r\n\r\n\t\t\t//Step-5: Login to Web Access Vault\r\n\t\t\tloginPage.navigateToApplication(webSite,userName,password,testData.get(\"VaultName\"));\r\n\t\t\tUtils.waitForPageLoad(driver);\r\n\t\t\thomepage=new HomePage(driver);\r\n\r\n\t\t\tif (!homepage.isLoggedIn(userName))\r\n\t\t\t\tthrow new Exception(\"Some Error encountered while logging..check testdata..\");\r\n\t\t\tLog.message(\"6. Logged in to the vault (\" + testData.get(\"VaultName\") + \").\", driver);\r\n\r\n\t\t\t//Step-6 : To perform all object search\r\n\t\t\t//---------------------------------------\r\n\t\t\tSearchPanel searchpanel = new SearchPanel(driver);\r\n\t\t\tsearchpanel.clickSearchBtn(driver);\r\n\r\n\t\t\tLog.message(\"7. Perform all object search.\", driver); \r\n\r\n\t\t\t//Step-7 : Select any existing object\r\n\t\t\t//-------------------------------------\r\n\t\t\thomepage.listView.clickItemByIndex(0);\r\n\t\t\tUtils.fluentWait(driver);\r\n\t\t\tString selecteddocument = homepage.listView.getItemNameByItemIndex(0);\r\n\t\t\tUtils.fluentWait(driver);\r\n\t\t\tLog.message(\"8. Select any existing object.\" + selecteddocument, driver);\r\n\r\n\t\t\t//Step-8 : Click workflow option from operation menu\r\n\t\t\t//------------------------------------------\r\n\t\t\thomepage.menuBar.ClickOperationsMenu(\"Workflow\");\r\n\t\t\tUtils.fluentWait(driver);\r\n\t\t\tLog.message(\"9 : Click Workflow option from operation menu.\", driver);\r\n\r\n\t\t\t//Step-9: Verify number of objects displayed in listing view\r\n\t\t\tif (homepage.isWorkflowdialogDisplayed())\r\n\t\t\t\tLog.pass(\"Test Passed. Workflow dialog is Displayed in MFWA.\");\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test Failed. Workflow dialog is not Displayed in MFWA.\", driver);\r\n\r\n\t\t} //End try\r\n\r\n\t\tcatch (Exception e) {\r\n\t\t\tLog.exception(e, driver);\r\n\t\t} //End catch\r\n\r\n\t\tfinally {\r\n\r\n\t\t\tdriver.quit();\t\r\n\t\t} //End finally\r\n\t}", "@Test(dataProviderClass = DataProviderUtils.class, dataProvider = \"excelDataReader\",testName=\"Test1_6_2\",description=\"Test1_6_2 : Search in right pane \")\r\n\tpublic void Test1_6_2(HashMap<String,String> dataValues,String currentDriver,ITestContext context) throws Exception {\r\n\r\n\t\t//Variable Declaration\r\n\t\tdriver = WebDriverUtils.getDriver();\r\n\t\t\r\n\r\n\t\tConcurrentHashMap <String, String> testData = new ConcurrentHashMap <String, String>(dataValues);\r\n\t\tLoginPage loginPage=null;\r\n\r\n\t\tConfigurationPage configPage=null;\r\n\t\tHomePage homepage=null;\r\n\t\ttry {\r\n\r\n\t\t\t//Step-1: Login to Configuration Page\r\n\t\t\tloginPage=new LoginPage(driver);\r\n\t\t\tloginPage.navigateToApplication(configSite,userName,password,\"\");\t\r\n\t\t\tLog.message(\"1. Logged in to Configuration Page\", driver);\r\n\r\n\t\t\t//Step-2: Click Vault from left panel of Configuration Page\r\n\t\t\tconfigPage=new ConfigurationPage(driver);\r\n\t\t\tconfigPage.clickVaultFolder(testData.get(\"VaultName\"));\r\n\t\t\tLog.message(\"2. Clicked 'Sample vault' from left panel of Configuration Page\", driver);\r\n\r\n\r\n\t\t\t//Step-3 : Set value for Maximum number of search results\r\n\r\n\t\t\tif (!configPage.configurationPanel.getVaultAccess()) {\r\n\t\t\t\tconfigPage.configurationPanel.setVaultAccess(true); //Allows access to this vault\r\n\t\t\t}\r\n\r\n\t\t\tconfigPage.expandVaultFolder(documentVault);\r\n\t\t\tLog.message(\"3. Clicked '\"+documentVault+\"' from left panel of Configuration Page\", driver);\r\n\r\n\t\t\t//Step-4 : Set the control values\r\n\r\n\t\t\tconfigPage.clickSettingsFolder(\"Controls\");\r\n\t\t\tif (configPage.configurationPanel.getVaultCommands(testData.get(\"Control\")).equalsIgnoreCase(\"Hide\")) {\r\n\t\t\t\tconfigPage.chooseConfigurationVaultSettings(driver, testData.get(\"Control\"),\"controls\",\"Show\");\r\n\t\t\t\tconfigPage.clickSaveButton();\r\n\r\n\t\t\t\t// Check any warning dialog displayed\r\n\t\t\t\tif(configPage.isWarningDialogDisplayed())\r\n\t\t\t\t{\r\n\t\t\t\t\tconfigPage.clickResetButton();\r\n\t\t\t\t\tconfigPage.chooseConfigurationVaultSettings(driver, testData.get(\"Control\"),\"controls\",\"Show\");\r\n\t\t\t\t\tconfigPage.clickSaveButton();\r\n\t\t\t\t\tconfigPage.clickOKBtnOnSaveDialog(); \r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\tconfigPage.clickOKBtnOnSaveDialog();\r\n\r\n\t\t\t}\r\n\t\t\tLog.message(\"4. Show \" + testData.get(\"Control\") + \" is enabled and settings are saved.\", driver);\r\n\t\t\t//Step-3 : Login to the vault\r\n\t\t\tconfigPage.clickLogOut(); //Logs out from the Configuration page\r\n\t\t\tLog.message(\"5. LoggedOut from configuration page.\", driver);\r\n\r\n\t\t\t//Step-5: Login to Web Access Vault\r\n\t\t\tloginPage.navigateToApplication(webSite,userName,password,testData.get(\"VaultName\"));\r\n\t\t\tUtils.waitForPageLoad(driver);\r\n\t\t\thomepage=new HomePage(driver);\r\n\r\n\t\t\tif (!homepage.isLoggedIn(userName))\r\n\t\t\t\tthrow new Exception(\"Some Error encountered while logging..check testdata..\");\r\n\t\t\tLog.message(\"6. Logged in to the vault (\" + testData.get(\"VaultName\") + \").\", driver);\r\n\r\n\t\t\t//Step-7: Verify if search tab is displayed in right pane\r\n\t\t\tif (homepage.previewPane.isTabExists(\"Search\"))\r\n\t\t\t\tLog.pass(\"Test Passed. Search is displayed in right pane .\");\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test Failed. Search is not displayed in right pane.\", driver);\r\n\r\n\t\t} //End try\r\n\r\n\t\tcatch (Exception e) {\r\n\t\t\tLog.exception(e, driver);\r\n\t\t} //End catch\r\n\r\n\t\tfinally {\r\n\t\t\ttry {\r\n\t\t\t\tloginPage=new LoginPage(driver);\r\n\t\t\t\tdriver.get(configSite);\r\n\t\t\t\tconfigPage=new ConfigurationPage(driver);\r\n\t\t\t\tconfigPage.clickVaultFolder(testData.get(\"VaultName\"));\t\t\r\n\t\t\t\tconfigPage.expandVaultFolder(documentVault);\r\n\t\t\t\tconfigPage.clickSettingsFolder(\"Controls\");\r\n\t\t\t\tif (configPage.configurationPanel.getVaultCommands(testData.get(\"Control\")).equalsIgnoreCase(\"Show\")) {\r\n\t\t\t\t\tconfigPage.chooseConfigurationVaultSettings(driver, testData.get(\"Control\"),\"controls\",\"Hide\");\r\n\t\t\t\t\tconfigPage.clickSaveButton();\r\n\t\t\t\t\tconfigPage.clickOKBtnOnSaveDialog();\r\n\t\t\t\t}}\r\n\r\n\t\t\tcatch (Exception e) {\r\n\t\t\t\tLog.exception(e, driver);\r\n\t\t\t} //End catch\r\n\r\n\t\t\tfinally {\r\n\r\n\t\t\t\tdriver.quit();\t\r\n\t\t\t} //End finally\r\n\t\t} //End finally\r\n\t}", "@Test\n\tpublic void registerCandidate() throws Exception{\n\n\t\tString data[]= new String[3];\n\t\tString [][] userData= utilityExcel.readDataFromExcel(accessCodeInputFilePath, \"accessCodes\");\n\t\tArrayList columnHeader = new ArrayList() {{\n\t\t\tadd(\"User Type\");\n\t\t\tadd(\"User Name\");\n\t\t\tadd(\"Password\");\n\t\t\tadd(\"Access Code\");\n\t\t\tadd(\"Email Id\");\n\t\t\tadd(\"First Name\");\n\t\t\tadd(\"Last Name\");\n\t\t\tadd(\"Institution\");\n\t\t\tadd(\"Result\");\n\t\t}}; \n\t\tutilityExcel.addSheet(accessCodeInputFilePath, \"UserNames\", columnHeader);\n\t\tArrayList userInfo= new ArrayList();\n\t\t//userInfo.set(0, \"\");\n\t\ttry{\n\t\tfor(int i=1;i<userData.length;i++){\n\t\t\tString userName=userData[i][0].trim();\n\t\t\tString accessCode=userData[i][1].trim();\n\t\t\t//ArrayList userInfo= new ArrayList();\n\t\t\tenterAccessCodeAndClickNext(accessCode,driver );\n\t\t\tRumbaRegistrationCommon.clickNext(driver);\n\t\t\t//UtilityCommon.pause();\n\t\t\tclickCreateAccountButton(accessCode, driver);\n\t\t\tString userName1=userName+new SimpleDateFormat(\"yyyyMMddhhmmss\").format(new Date());\n\t\t\t//String firstName1= firstName+new SimpleDateFormat(\"yyyyMMddhhmmss\").format(new Date());\n\t\t\tString emailID=userName+\"@abc.com\";\n\t\t\tfillInAccountDetailsAndClickNext(emailID, userName1,\"\", userName, \"PEARSON\",userName1 , \"Password123\", driver);\t\t\n\t\t\tclickOkIfInstituteExists(driver);\n\t\t\tuserInfo.add(userName);\n\t\t\tuserInfo.add(userName1);\n\t\t\tuserInfo.add(\"Password123\");\n\t\t\tuserInfo.add(accessCode);\n\t\t\tuserInfo.add(emailID);\n\t\t\tuserInfo.add(userName1);\n\t\t\tuserInfo.add(userName);\n\t\t\tuserInfo.add(\"PEARSON\");\n\t\t\tclickContinueRegistrationIfEmailExists(driver);\n\t\t\tfinishRegistration(driver);\n\t\t\tUtilityCommon.pause();\n\t\t\tUtilityCommon.waitForElementVisible(RumbaPage.GOTOYOURPRODUCT_BTN.byLocator(), driver);\n\t\t\tThread.sleep(5000);\n\t\t\tUtilityCommon.clickAndWait(RumbaPage.GOTOYOURPRODUCT_BTN.byLocator(), driver);\n\t\t\tThread.sleep(5000);\n\t\t\tString navigateURL=driver.getCurrentUrl();\n\t\t\tif(navigateURL.contains(\"myenglishlab.pearson-intl.com\")){\n\t\t\t\tReporter.log(\"User is avigated to correct url.Test passed.\");\n\t\t\t\tuserInfo.add(\"Test passed.Navigated URL is \"+driver.getCurrentUrl());\n\t\t\t}else{\n\t\t\t\tReporter.log(\"User is navigated to: \"+driver.getCurrentUrl()+\"Test failed.\");\n\t\t\t\tuserInfo.add(\"Test failed.Navigated URL is \"+driver.getCurrentUrl());\n\t\t\t}\t\t\t\t\n\t\t\tFile srcShot=((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n\t\t FileUtils.copyFile(srcShot, new File(accessCodeOutputFilePath+\"/ScreenShots/\"+userName1+\".png\"));\n\t\t utilityExcel.updateExcelSingleRow(accessCodeInputFilePath, \"UserNames\", userInfo);\n\t\t\tdriver.navigate().to(rumbaURL);\n\t\t\t\n\t\t\tuserInfo.clear();\n\t\t}\n\t\t}catch(Exception e){\n\t\t\tuserInfo.add(e.getMessage());\n\t\t}\n\n\t}", "@Parameters({ \"Test\", \"env\", \"Parallel\" })\n\t@Test\n\tpublic void createXMLfile(String Test, String env, @Optional(\"false\") Boolean parallel) throws IOException {\n\n\t\tExcel_Handling excel = new Excel_Handling();\n\t\tTimestamp timestamp = new Timestamp(System.currentTimeMillis());\n Instant instant = timestamp.toInstant();\n \n String timeStampString = instant.toString();\n\t\tClassLoader classLoader = getClass().getClassLoader();\n\t\t//SimpleDateFormat formatter = new SimpleDateFormat(\"ddMMyyyyHHmm\"); \n\t\t//Date date = new Date(); \n\t\tFile dataSheet = null;\n\t\tFile dataSheetResult = null;\n\t\tString nameReport = null;\n\t\t\n\t\tnameReport = env+Test+\".html\";\n\t\t//nameReport = env+Test+formatter.format(date)+\".html\";\n\t\t\t\t\n\t\tif (Test.equalsIgnoreCase(\"RegressionIBM\")) {\n\t\t\tdataSheet = new File(classLoader.getResource(\"Datasheet_Regression_IBM.xlsx\").getFile());\n\t\t\tdataSheetResult = new File(classLoader.getResource(\"Datasheet_RegressionIBM_Result.xlsx\").getFile());\n\t\t}\n\t\tif (Test.equalsIgnoreCase(\"RegressionBP\")) {\n\t\t\tdataSheet = new File(classLoader.getResource(\"Datasheet_Regression_BP.xlsx\").getFile());\n\t\t\tdataSheetResult = new File(classLoader.getResource(\"Datasheet_Regression_BP_Result.xlsx\").getFile());\n\t\t}\n\t\tif (Test.equalsIgnoreCase(\"SanityBP\")) {\n\t\t\tSystem.out.println(\"SanityBP reader done!\");\n\t\t\tdataSheet = new File(classLoader.getResource(\"Datasheet_SanityBP.xlsx\").getFile());\n\t\t\tdataSheetResult = new File(classLoader.getResource(\"Datasheet_Sanity_ResultBP.xlsx\").getFile());\n\t\t\tnameReport = \"SanityBPParallel.html\";\n\t\t}\n\t\tif (Test.equalsIgnoreCase(\"SanityIBM\")) {\n\t\t\tSystem.out.println(\"SanityIBM reader done!\");\n\t\t\tdataSheet = new File(classLoader.getResource(\"Datasheet_SanityIBM.xlsx\").getFile());\n\t\t\tdataSheetResult = new File(classLoader.getResource(\"Datasheet_Sanity_ResultIBM.xlsx\").getFile());\n\t\t\tnameReport = \"SanityIBMParallel.html\";\n\t\t}\n\t\tif (Test.equalsIgnoreCase(\"Legal_IBM\"))\n\t\t{\n\t\t\t dataSheet = new File(classLoader.getResource(\"Datasheet_Legal_IBM.xlsx\").getFile());\n\t\t\t dataSheetResult = new File(classLoader.getResource(\"Datasheet_Legal_IBM_Result.xlsx\").getFile());\n\t\t}\n\t\tif (Test.equalsIgnoreCase(\"Legal_BP\"))\n\t\t{\n\t\t\t dataSheet = new File(classLoader.getResource(\"Datasheet_Legal_BP.xlsx\").getFile());\n\t\t\t dataSheetResult = new File(classLoader.getResource(\"Datasheet_Legal_BP_Result.xlsx\").getFile());\n\t\t}\n\t\tif (Test.equalsIgnoreCase(\"Legal_Min\"))\n\t\t{\n\t\t\t dataSheet = new File(classLoader.getResource(\"Datasheet_Legal_Min.xlsx\").getFile());\n\t\t\t dataSheetResult = new File(classLoader.getResource(\"Datasheet_Legal_Min_Result.xlsx\").getFile());\n\t\t}\n\t\ttry {\n\t\t\texcel.ExcelReader(dataSheet.getAbsolutePath(), \"Data\", dataSheetResult.getAbsolutePath(), \"Data\");\n\t\t\texcel.getExcelDataAll(\"Data\", \"Execute\", \"Y\", \"TC_ID\");\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tSystem.out.println(\"excel reader done!\");\n\t\tSystem.out.println(\"test env is \" + env);\n\n\t\tMap<String, HashMap<String, String>> map = Excel_Handling.TestData;\n\t\t// creation of the testng xml based on parameters/data\n\t\tTestNG testNG = new TestNG();\n\t\tReport_Setup.getInstance();\n\t\tReport_Setup.setReportName(nameReport);\n\t\t\n\t\tXmlSuite suite = new XmlSuite();\n\t\tif (parallel) {\n\t\t\tsuite.setParallel(ParallelMode.TESTS);\n\t\t}\n\t\tfor (String key : map.keySet()) {\n\t\t\tFile configFile = new File(classLoader.getResource(\"Config.xml\").getFile());\n\t\t\tSystem.out.println(\"configFile:: \" + configFile.getAbsolutePath());\n\t\t\tfinal Common_Functions commonFunctions = new Common_Functions();\n\t\t\tsuite.setName(commonFunctions.GetXMLTagValue(configFile.getAbsolutePath(), \"Regression_Suite_Name\"));\n\t\t\tXmlTest test = new XmlTest(suite);\n\t\t\ttest.setName(key);\n\t\t\ttest.setPreserveOrder(\"true\");\n\t\t\ttest.addParameter(\"browserType\", Excel_Handling.Get_Data(key, \"Browser_Type\"));\n\t\t\ttest.addParameter(\"tcID\", key);\n\t\t\ttest.addParameter(\"ENV\", env);\n\t\t\ttest.addParameter(\"appURL\", commonFunctions.GetXMLTagValue(configFile.getAbsolutePath(), \"AppUrl\"));\n\t\t\ttest.addParameter(\"IBMURL\", commonFunctions.GetXMLTagValue(configFile.getAbsolutePath(), env + \"IBM\"));\n\t\t\ttest.addParameter(\"PCSURL\",commonFunctions.GetXMLTagValue(configFile.getAbsolutePath(), env + \"BPDirectPCS\"));\n\t\t\ttest.addParameter(\"MySAURL\", commonFunctions.GetXMLTagValue(configFile.getAbsolutePath(), env + \"MySA\"));\n\t\t\ttest.addParameter(\"Timestamp\", timeStampString);\n\t\t\tXmlClass testClass = new XmlClass();\n\n\t\t\tif (Test.equalsIgnoreCase(\"RegressionIBM\")) {\n\t\t\t\ttestClass.setName(\"com.ibm.stax.Tests.RegressionIBM.\" + Excel_Handling.Get_Data(key, \"Class_Name\"));\n\t\t\t}\n\t\t\tif (Test.equalsIgnoreCase(\"RegressionBP\")) {\n\t\t\t\ttestClass.setName(\"com.ibm.stax.Tests.RegressionBP.\" + Excel_Handling.Get_Data(key, \"Class_Name\"));\n\t\t\t}\n\t\t\tif (Test.equalsIgnoreCase(\"SanityBP\")) {\n\t\t\t\ttestClass.setName(\"com.ibm.stax.Tests.Sanity.\" + Excel_Handling.Get_Data(key, \"Class_Name\"));\n\t\t\t}\n\t\t\tif (Test.equalsIgnoreCase(\"SanityIBM\")) {\n\t\t\t\ttestClass.setName(\"com.ibm.stax.Tests.Sanity.\" + Excel_Handling.Get_Data(key, \"Class_Name\"));\n\t\t\t}\n\t\t\tif (Test.equalsIgnoreCase(\"Legal_IBM\"))\t{\n\t\t\t\ttestClass.setName(\"com.ibm.stax.Tests.Legal.\" + Excel_Handling.Get_Data(key, \"Class_Name\"));\n\t\t\t}\n\t\t\tif (Test.equalsIgnoreCase(\"Legal_BP\")) { \n\t\t\t\ttestClass.setName(\"com.ibm.stax.Tests.Legal.\" + Excel_Handling.Get_Data(key, \"Class_Name\"));\n\t\t\t}\n\t\t\tif (Test.equalsIgnoreCase(\"Legal_Min\")) {\n\t\t\t\ttestClass.setName(\"com.ibm.stax.Tests.Legal.\" + Excel_Handling.Get_Data(key, \"Class_Name\"));\n\t\t\t}\n\t\t\ttest.setXmlClasses(Arrays.asList(new XmlClass[] { testClass }));\n\t\t}\n\t\tList<String> suites = new ArrayList<String>();\n\t\tfinal File f1 = new File(Create_TestNGXML.class.getProtectionDomain().getCodeSource().getLocation().getPath());\n\t\tSystem.out.println(\"f1:: \" + f1.getAbsolutePath());\n\t\tFile f = new File(\".\\\\testNG.xml\");\n\t\tf.createNewFile();\n\t\tFileWriter fw = new FileWriter(f.getAbsoluteFile());\n\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\tbw.write(suite.toXml());\n\t\tbw.close();\n\t\tsuites.add(f.getPath());\n\t\ttestNG.setTestSuites(suites);\n\t\ttestNG.run();\n\t\tf.delete();\n\t\tReport_Setup.flush();\n\n\t}", "@Test(dataProviderClass = DataProviderUtils.class, dataProvider = \"excelDataReader\",testName=\"Test1_1_1\",description=\" Open /configuration.aspx page instead of /login.aspx\")\r\n\tpublic void Test1_1_1(HashMap<String,String> dataValues,String currentDriver,ITestContext context) throws Exception {\r\n\r\n\t\tdriver = WebDriverUtils.getDriver();\r\n\t\t\r\n\r\n\t\ttry {\r\n\r\n\t\t\t//Step-1: Launch configuration page with URL '/Configuration.aspx'\r\n\t\t\tdriver.get(configSite);\r\n\t\t\tLog.message(\"1. Launched configuration page with URL '/Configuration.aspx'.\", driver);\r\n\r\n\t\t\tif (driver.getCurrentUrl().toUpperCase().trim().contains(\"/LOGIN.ASPX?\"))\r\n\t\t\t\tLog.pass(\"Test Passed. Launching Configuration.aspx page launched login page.\");\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test Failed. Launching Configuration.aspx page does not launched login page..\", driver);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tLog.exception(e, driver);\r\n\t\t} //End catch\r\n\r\n\t\tfinally {\r\n\t\t\tdriver.quit();\r\n\t\t} //End finally\r\n\r\n\t}", "public void detailReport() {\r\n\t\tint testStepId = 1;\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td><table class=\\\"width100\\\"><tr><td><div class=\\\"headertext1 bold\\\">Test Execution Detail Report</div></td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td><div class=\\\"headertext1 bold\\\">Execution Browser Name: \"+ GlobalVariables.getBrowserName() + \"</div></td></tr>\");\r\n\t\tstrBufferReportAppend.append(\r\n\t\t\t\t\"<tr><td><div class=\\\"headertext1 bold\\\">Test Case Name: \"+ GlobalVariables.getTestCaseName() + \"</div></td></tr>\");\r\n\t\t\r\n\t\t\r\n\t\tstrBufferReportAppend.append(\"<tr><td>\");\r\n\t\tstrBufferReportAppend\r\n\t\t\t\t.append(\"<table colspan=3 border=0 cellpadding=3 cellspacing=1 class=\\\"reporttable width100\\\">\");\r\n\t\tstrBufferReportAppend.append(\"<tr><th class=\\\"auto-style1\\\">Test Step No</th>\" + \"<th class=\\\"auto-style2\\\">Action</th>\"\r\n\t\t\t\t+ \"<th class=\\\"auto-style3\\\">Actual Result</th>\" + \"<th class=\\\"auto-style4\\\">Status</th></tr>\");\r\n\t\tfor (ReportBean reportValue : GlobalVariables.getReportList()) {\r\n\r\n\t\t\tif (reportValue.getStatus().equalsIgnoreCase(\"Passed\")) {\r\n\r\n\t\t\t\tstrBufferReportAppend.append(\"<tr>\" + \"<td class=\\\"auto-style1 blue\\\">\" + testStepId++ + \"</td>\"// teststepid\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style2 blue\\\">\" + reportValue.getStrAction() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style3 blue\\\">\" + reportValue.getResult() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style4 green\\\">\" + reportValue.getStatus() + \"</td></tr>\");\r\n\t\t\t} else if (reportValue.getStatus().equalsIgnoreCase(\"Failed\")) {\r\n\t\t\t\tstrBufferReportAppend.append(\"<tr>\" + \"<td class=\\\"auto-style1 blue\\\">\" + testStepId++ + \"</td>\"// teststepid\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style2 blue\\\">\" + reportValue.getStrAction() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style3 blue\\\">\" + reportValue.getResult() + \"</td>\"\r\n\t\t\t\t\t\t+ \"<td class=\\\"auto-style4 red\\\">\" + reportValue.getStatus() + \"</td></tr>\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tstrBufferReportAppend.append(\"</table>\");\r\n\t\tstrBufferReportAppend.append(\"</td></tr>\");\r\n\t\tstrBufferReportAppend.append(\"</table></td></tr></table></body></html>\");\r\n\t}", "@Test \n\t public static void Execute_Sessions() throws Exception\n\t {\n\t\t int MYTHREADS = 30; \n\t\t // ExecutorService pool = Executors.newFixedThreadPool(MYTHREADS); \n\t\t //CountDownLatch latch = new CountDownLatch(totalNumberOfTasks);\n\t\t ExecutorService executor = Executors.newFixedThreadPool(MYTHREADS);\n\t\t \n\t\t// CountDownLatch latch = new CountDownLatch(15);\n\t\t //ExecutorService executor = Executors.newFixedThreadPool(13);\n\t\t// ExecutorService pool = Executors.newFixedThreadPool(MYTHREADS); \n\t\t \n\t\t int NumberofTestScripts = 0;\n\t\t\tExcelApiTest3 eat = new ExcelApiTest3();\n\t\t\tNumberofTestScripts=eat.getRowCount(\"E://Batch2Source//Regression1.xls\",\"Sheet1\");\n\t\t\tSystem.out.println(\"Numberof TestScripts Count Regression1.xls :\"+NumberofTestScripts);\n\t\t\t\n\t\t\t\t\t\n\t\t\tfor (int iRow1=1;iRow1<NumberofTestScripts;iRow1++) // Number of Test Cases in Regression Sheet\n\t\t\t{\n\t\t\t\tRunnable worker = new DriverTest124(iRow1);\n\t\t\t\tThread.sleep(3000);\n\t\t\t\t\n\t \t\texecutor.execute(worker);\n\t \t\t\n\n\t\t\t\t//executor.awaitTermination(5, TimeUnit.HOURS);\n\t \t\t//Runnable worker = new WorkerThread(\"\" + iRow1);\n\t // executor.execute(worker);\n\t\t\t\t//Future f = executor.submit(new DriverTest124(iRow1));\n\t\t\t\t//f.get(60,TimeUnit.SECONDS);\n\t\t\t\t//Thread.sleep(9000);\n\t \t\n\t\n\t\t\t\t/*\n\t \t\tSystem.out.println(\"First Thread ID:\"+Thread.currentThread().getId());\n\t\t\t\tSystem.out.println(\"First Thread status:\"+Thread.currentThread().getState());\n\t\t\t\tSystem.out.println(\"First Thread Name:\"+Thread.currentThread().getName());\n\t\t\t\t\n\t\t\n\t\t\t\t String str=\"Row Iteration in for loop- \" + String.valueOf(iRow1);\n\t\t\t\t System.out.println(\"Row Iteration in for loop- \"+str);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Thread ID:\"+Thread.currentThread().getId());\n\t\t\t\tSystem.out.println(\"Thread status:\"+Thread.currentThread().getState());\n\t\t\t\tSystem.out.println(\"Thread Name:\"+Thread.currentThread().getName());*/\n\t\t\t\t\n\t\t\t\t/*if(Thread.currentThread().isInterrupted())\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Thread status:\"+Thread.currentThread().getId());\n\t\t\t\t\tSystem.out.println(\"Thread status:\"+Thread.currentThread().getState());\n\t\t\t\t}*/\n\t\t\t\t\n\t \t\n\t\t\t\t//f.wait();\n\t\t\t\t//System.out.println(\"Task Status - :\"+f.isCancelled());\n\t\t\t\t\n\t\t\t\t\t//f.isDone();\n\t \t\t\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\n\t\t\t/*try {\n\t\t\t latch.await();\n\t\t\t} catch (InterruptedException E) {\n\t\t\t\t\n\t\t\t}\n\t\t\t*/\n\t\t\t\n\t\t\tSystem.out.println(\"Finish tasks\");\n\t\t\t\n\t\t\t//awaitTerminationAfterShutdown\n\t\t\t\t\t\n\t\t\n\t\t\texecutor.shutdown();\n\t\t\texecutor.awaitTermination(5, TimeUnit.HOURS);\n\t\t\t\n\t\t\t// Wait until all threads are finish\n\t\t//\twhile (!executor.isTerminated()) {\n\t \n\t\t//\t}\n\t\t\tSystem.out.println(\"\\nFinished all threads\");\n\t\t\t\n\t\t\t\n\t\t}", "private XmlSuite executeSubTest(String[] testClasses) throws IOException {\r\n\t\tXmlSuite suite = new XmlSuite();\r\n\t\tsuite.setName(\"TmpSuite\");\r\n\t\tsuite.setFileName(\"/home/test/seleniumRobot/data/core/testng/testLoggging.xml\");\r\n\t\tList<XmlSuite> suites = new ArrayList<XmlSuite>();\r\n\t\tsuites.add(suite);\r\n\t\t\r\n\t\tfor (String testClass: testClasses) {\r\n\t\t\tXmlTest test = new XmlTest(suite);\r\n\t\t\ttest.setName(testClass.substring(testClass.lastIndexOf(\".\") + 1));\r\n\t\t\tList<XmlClass> classes = new ArrayList<XmlClass>();\r\n\t\t\tclasses.add(new XmlClass(testClass));\r\n\t\t\ttest.setXmlClasses(classes) ;\r\n\t\t}\t\t\r\n\t\t\r\n\t\tTestNG tng = new TestNG(false);\r\n\t\ttng.setXmlSuites(suites);\r\n\t\ttng.addListener((IReporter)reporter);\r\n\t\ttng.addListener((IReporter)reporter2);\r\n\t\ttng.addListener((ITestListener)testListener);\r\n\t\ttng.addListener((IInvokedMethodListener)testListener);\r\n\t\ttng.addListener(retry);\r\n\t\ttng.setOutputDirectory(SeleniumTestsContextManager.getGlobalContext().getOutputDirectory());\r\n\t\ttng.run(); \r\n\t\tSeleniumRobotLogger.parseLogFile();\r\n\t\t\r\n\t\treturn suite;\r\n\t}", "@Test(dataProviderClass = DataProviderUtils.class, dataProvider = \"excelDataReader\",testName=\"Test_42213_2\",description=\"Check if login page is displayed while launch the default.aspx for the invalid crednetials saved\")\r\n\tpublic void Test_42213_2(HashMap<String,String> dataValues,String currentDriver,ITestContext context) throws Exception {\r\n\r\n\t\t//Variable Declaration\r\n\t\tWebDriver driver= null;\r\n\t\t\r\n\t\tConcurrentHashMap <String, String> testData=new ConcurrentHashMap <String, String>(dataValues);\r\n\t\tLoginPage loginPage=null;\r\n\t\tConfigurationPage configPage = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\t//Step-1: Launch configuration page\r\n\t\t\t//---------------------------------\r\n\t\t\tdriver = WebDriverUtils.getDriver(currentDriver,2);\r\n\t\t\tdriver.get(configSite);\r\n\t\t\tloginPage=new LoginPage(driver);//Instantiate Login page\r\n\t\t\tloginPage.loginToConfigurationUI(userName,password);//login with admin credentials\r\n\r\n\t\t\tLog.message(\"1. Logged in to the Configuration page with admin credentials.\", driver);\r\n\r\n\t\t\t//Verify if Login failed\r\n\t\t\tif (!loginPage.getErrorMessage().isEmpty())//Verify if error message is displayed\r\n\t\t\t\tthrow new Exception(\"Unable to login to Configuration Page, with Error :\"+loginPage.getErrorMessage());\r\n\r\n\t\t\t//Step-2: Navigated to the General page in Web Access Configuration.\r\n\t\t\t//-------------------------------------------------------------------\r\n\t\t\tconfigPage = new ConfigurationPage(driver);\r\n\t\t\tconfigPage.clickTreeViewItem(testData.get(\"GeneralSettings\")); //Selects General in the tree view of configuration page\r\n\r\n\t\t\tLog.message(\"2. Navigated to the General settings in Web Access Configuration.\", driver);\r\n\r\n\t\t\t//Step-3 : Set the automatic login credentials\r\n\t\t\t//--------------------------------------------\r\n\t\t\tconfigPage.configurationPanel.setDefaultAuthType(testData.get(\"AuthenticationType\")+\" user\");//Sets the default authentication type as Windows/M-Files user\r\n\r\n\t\t\tconfigPage.configurationPanel.setAutoLogin(true);//Select the auto login in configuration page\r\n\r\n\t\t\tLog.message(\"3. Automatic login is enabled for \"+testData.get(\"AuthenticationType\")+\" authentication type in the configuration page.\", driver);\r\n\r\n\t\t\t//Step-4: Sets the Invalid credentials and selects the vault\r\n\t\t\t//----------------------------------------------------------\r\n\t\t\tif (testData.get(\"AuthenticationType\").contains(\"Windows\"))\r\n\t\t\t{\r\n\t\t\t\tconfigPage.configurationPanel.setDefaultAuthType(testData.get(\"AuthenticationType\")+\" user\");//Sets the default authentication type as Windows user\r\n\t\t\t\tconfigPage.configurationPanel.setAutoLoginUserName(windowsUserName+\" Test\");//Sets the Windows user name\r\n\t\t\t\tconfigPage.configurationPanel.setAutoLoginPassword(windowsPassword);//Sets the Windows user password\r\n\t\t\t\tconfigPage.configurationPanel.setAutoLoginDomain(windowsUserDomain);//Sets the Windows user domain\r\n\t\t\t\tconfigPage.configurationPanel.setAutoLoginVault(\"\");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tconfigPage.configurationPanel.setDefaultAuthType(testData.get(\"AuthenticationType\")+\" user\");//Sets the default authentication type as M-Files user\r\n\t\t\t\tconfigPage.configurationPanel.setAutoLoginUserName(userName+\" Test\");//Sets the M-Files user name\r\n\t\t\t\tconfigPage.configurationPanel.setAutoLoginPassword(password);//Sets the M-Files user password\r\n\t\t\t\tconfigPage.configurationPanel.setAutoLoginVault(\"\");\r\n\t\t\t}\r\n\r\n\t\t\tLog.message(\"4. Invalid credentials are set in the configuration webpage.\", driver);\r\n\r\n\t\t\t//Step-5: Save the changes\r\n\t\t\t//-------------------------\r\n\t\t\tconfigPage.saveSettings();//Clicks the save the button\r\n\r\n\t\t\tif (!MFilesDialog.exists(driver))//Checks if MFiles dialog is displayed or not\r\n\t\t\t\tthrow new Exception(\"Warning dialog is not displayed while saving invalid credentials.\");\r\n\r\n\t\t\tLog.message(\"5. Saved the changes.\", driver);\r\n\r\n\t\t\t//Step-6: Logout from Web Access\r\n\t\t\t//-------------------------------\r\n\t\t\tMFilesDialog.closeMFilesDialog(driver);//Closes the MFiles Dialog\r\n\r\n\t\t\tconfigPage.logOut();//Logs out from Configuration webpage\r\n\r\n\t\t\tLog.message(\"6. Logged out from Configuration Webpage.\", driver);\r\n\r\n\t\t\t//Verification IF login page is displayed for invalid credentials\r\n\t\t\t//---------------------------------------------------------------\r\n\t\t\tdriver.get(defaultSite);\r\n\t\t\tloginPage=new LoginPage(driver);//Instantiate Login page\r\n\r\n\t\t\tif(loginPage.isUserNameFieldDisplayed())\r\n\t\t\t\tLog.pass(\"Test case passed. Login page is displayed while launching the default url with invalid credentials saved for auto login in the configuration webpage.\", driver);\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test case failed. Login page is not displayed while launching the default url with invalid credentials saved for auto login in the configuration webpage.\", driver);\r\n\r\n\t\t}//End try\r\n\t\tcatch (Exception e) {\r\n\t\t\tLog.exception(e, driver);\r\n\t\t} //End catch\r\n\t\tfinally {\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t} //End Finally\r\n\t}", "@Test\n public void testGetInfo_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n\n String result = fixture.getInfo();\n\n assertEquals(\"Logic Step: \", result);\n }", "private String generateJUnitMainClass(List<TestCaseList> allTestCases, ProductMaster product, String testExecutionEngine, String packageName, String destinationDirectory, int nameSource) {\n\t\tJCodeModel codeModel = new JCodeModel();\r\n\t\tString message = null;\r\n\t\ttry {\r\n\t\t\tif (testExecutionEngine == null)\r\n\t\t\t\ttestExecutionEngine = TAFConstants.TESTENGINE_SEETEST;\r\n\t\t\tlog.info(\"Test Execution Engine : \" + testExecutionEngine);\r\n\t\t\t\t\r\n\t\t\t// JUnit References\r\n\t\t\tJClass runWithReference = null;\r\n\t\t\tJClass suiteReference = null;\r\n\t\t\tJClass suiteClassesReference = null;\r\n\t\t\trunWithReference = codeModel.ref(\"org.junit.runner.RunWith\");\r\n\t\t\tsuiteReference = codeModel.ref(\"org.junit.runners.Suite\");\t\t\t\r\n\t\t\tsuiteClassesReference = codeModel.ref(\"org.junit.runners.Suite.SuiteClasses\");\r\n\t\t\t// 1. Create the class for the main class\r\n\t\t\tJDefinedClass mainClass = codeModel._class(packageName + \".\" + \"Main\");\r\n\t\t\tJDocComment classComment = mainClass.javadoc();\r\n\t\t\tString javadocCommentClass = \"Main driver class for integration of scripts with TAF\"\r\n\t\t\t\t\t\t+ \"\\n\" + \"Product : \" + product.getProductDescription()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Script Type \t\t: \" + TAFConstants.TESTSCRIPT_TYPE_JUNIT\r\n\t\t\t\t\t\t+ \"\\n\" + \"Test Execution Engine \t: \" + testExecutionEngine\r\n\t\t\t\t\t\t+ \"\\n\" + \"Code generated by TAF on \t: \" + new Date(System.currentTimeMillis());\r\n\t\t\tclassComment.append(javadocCommentClass);\r\n\t\t\t// 2. Add the required import statements and the class variables\r\n\t\t\t// 2.a TAF Lib references for import\r\n\t\t\tmainClass = addClassVariablesForMainClass(codeModel, mainClass, testExecutionEngine);\r\n\t\t\t//Annotate for the Suite execution\r\n\t\t\tmainClass.annotate(runWithReference).param(\"value\", suiteReference);\r\n\t\t\t\r\n\r\n\t\t\t\r\n\t\t\tStringBuffer defaultSuiteClassesSB = new StringBuffer();\t\t\r\n\t\t\tdefaultSuiteClassesSB.append(\"{SetUp.class, \");\r\n\t\t\tfor (TestCaseList testCase : allTestCases) {\r\n\t\t\t\tdefaultSuiteClassesSB.append(ScriptGeneratorUtilities.getTestCaseClassName(testCase.getTestCaseName(), testCase.getTestCaseId(), testCase.getTestCaseCode(), nameSource).concat(\".class\"));\r\n\t\t\t\tdefaultSuiteClassesSB.append(\", \");\r\n\t\t\t}\r\n\t\t\tdefaultSuiteClassesSB.append(\"TearDown.class}\");\t\t\t\r\n\t\t\tmainClass.annotate(suiteClassesReference).param(\"value\", defaultSuiteClassesSB.toString());\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tStringBuffer importClassStatements = new StringBuffer();\r\n\r\n\t\t\tStringBuffer suiteClassesSB = new StringBuffer();\r\n\t\t\tsuiteClassesSB.append(\"@SuiteClasses(\");\r\n\t\t\tsuiteClassesSB.append(\"{SetUp.class, \");\r\n\t\t\tfor (TestCaseList testCase : allTestCases) {\r\n\t\t\t\t\r\n\t\t\t\tString classPackageName;\r\n\t\t\t\r\n\t\t\t\tif (testCase.getTestCaseScriptQualifiedName() == null || testCase.getTestCaseScriptQualifiedName().trim().isEmpty()) {\r\n\t\t\t\t\tclassPackageName = packageName;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tclassPackageName = testCase.getTestCaseScriptQualifiedName();\r\n\t\t\t\t}\r\n\r\n\t\t\t\timportClassStatements.append(\"import \" + classPackageName.trim() + \".\"+ ScriptGeneratorUtilities.getTestCaseClassName(testCase.getTestCaseName(), testCase.getTestCaseId(), testCase.getTestCaseCode(), nameSource) + \";\\n\");\r\n\t\t\t\tsuiteClassesSB.append(ScriptGeneratorUtilities.getTestCaseClassName(testCase.getTestCaseName(), testCase.getTestCaseId(), testCase.getTestCaseCode(), nameSource).concat(\".class\"));\r\n\t\t\t\tsuiteClassesSB.append(\", \");\r\n\t\t\t}\r\n\t\t\tsuiteClassesSB.append(\"TearDown.class})\");\t\t\t\r\n\t\t\tlog.info(importClassStatements.toString());\r\n\t\t\tlog.info(suiteClassesSB.toString());\r\n\r\n\t\t\t// Add the setup method\r\n\t\t\tJMethod setUpMethod = mainClass.method(JMod.PUBLIC, void.class, \"setUp\");\r\n\t\t\tJDocComment methodComment1 = setUpMethod.javadoc();\r\n\t\t\tString commentString = \"Setup method for the TestSuite/TestRun\";\r\n\t\t\tmethodComment1.append(commentString);\r\n\t\t\tsetUpMethod = constructSetUpMethodForMain(setUpMethod, testExecutionEngine);\r\n\r\n\t\t\t//Add seetest initialization method\r\n\t\t\tif (testExecutionEngine.equals(TAFConstants.TESTENGINE_SEETEST)) {\r\n\t\t\t\tJMethod initSeeTestClientMethod = mainClass.method(JMod.PUBLIC, codeModel.ref(com.experitest.client.Client.class), \"initSeeTestClient\");\r\n\t\t\t\tinitSeeTestClientMethod = constructSeeTestInitMethodForMain(initSeeTestClientMethod, testExecutionEngine, product);\r\n\t\t\t}\r\n\r\n\t\t\t//Add tear down method\r\n\t\t\tJMethod tearDownMethod = mainClass.method(JMod.PUBLIC, void.class, \"tearDown\");\r\n\t\t\tJDocComment methodComment2 = tearDownMethod.javadoc();\r\n\t\t\tcommentString = \"Teardown method for the TestSuite/TestRun\";\r\n\t\t\tmethodComment2.append(commentString);\r\n\t\t\ttearDownMethod = constructTearDownMethodForMain(tearDownMethod, testExecutionEngine, product);\r\n\t\t\t\r\n\t\t\tJMethod mainMethod = mainClass.method(JMod.PUBLIC | JMod.STATIC, mainClass, \"getMain\");\r\n\t\t\tmainMethod.body().directStatement(\" if(main==null)main=new Main(); \");\r\n\t\t\tmainMethod.body().directStatement(\"\t\treturn main;\");\r\n\t\t\t\r\n\t\t\t// Add accessor methods\t\t\t\r\n\t\t\tmainClass = constructAccessorMethodsForMain(codeModel, mainClass, testExecutionEngine, product);\r\n\t\t\t\r\n\t\t\tFile sourceFile = new File(destinationDirectory);\r\n\t\t\tif (!sourceFile.exists()) {\r\n\t\t\t\tlog.info(\"Created Directory for source code generation : \" + destinationDirectory);\r\n\t\t\t\tsourceFile.mkdirs();\r\n\t\t\t}\r\n\t\t\tcodeModel.build(sourceFile);\r\n\t\t\tmessage = sourceFile.getAbsolutePath() + MAIN_PACKAGE_NAME_FOLDER + File.separator +\"Main.java\";\r\n\t\t\tScriptGeneratorUtilities.insertTestCaseImportsForJavaScripts(message, importClassStatements.toString(), suiteClassesSB.toString(),\"\");\r\n\r\n\t\t} catch (JClassAlreadyExistsException e) {\r\n\t\t\tlog.error(\"Unable to generate testcase ref source code class\", e);\r\n\t\t\treturn \"Failed : Unable to generate testcase ref source code class\";\r\n\t\t} catch (IOException io) {\r\n\t\t\tlog.error(\"Unable to create file in file system\", io);\r\n\t\t\treturn \"Failed : Unable to create file in file system\";\r\n\t\t}\r\n\t\tlog.debug(\"Success : Generated Testcases source code framework.\" );\r\n\t\treturn message;\r\n\t}", "@Test(dataProviderClass = DataProviderUtils.class, dataProvider = \"excelDataReader\",testName=\"Test_42213_1\",description=\"Check if proper warning message is displayed while giving invalid credentials in the Credentials field and selecting the vault\")\r\n\tpublic void Test_42213_1(HashMap<String,String> dataValues,String currentDriver,ITestContext context) throws Exception {\r\n\r\n\t\t//Variable Declaration\r\n\t\tWebDriver driver= null;\r\n\t\t\r\n\t\tConcurrentHashMap <String, String> testData=new ConcurrentHashMap <String, String>(dataValues);\r\n\t\tLoginPage loginPage=null;\r\n\t\tConfigurationPage configPage = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\t//Step-1: Launch configuration page\r\n\t\t\t//---------------------------------\r\n\t\t\tdriver = WebDriverUtils.getDriver(currentDriver,2);\r\n\t\t\tdriver.get(configSite);\r\n\t\t\tloginPage=new LoginPage(driver);//Instantiate Login page\r\n\t\t\tloginPage.loginToConfigurationUI(userName,password);//login with admin credentials\r\n\r\n\t\t\tLog.message(\"1. Logged in to the Configuration page with admin credentials.\", driver);\r\n\r\n\t\t\t//Verify if Login failed\r\n\t\t\tif (!loginPage.getErrorMessage().isEmpty())//Verify if error message is displayed\r\n\t\t\t\tthrow new Exception(\"Unable to login to Configuration Page, with Error :\"+loginPage.getErrorMessage());\r\n\r\n\t\t\t//Step-2: Navigated to the General page in Web Access Configuration.\r\n\t\t\t//-------------------------------------------------------------------\r\n\t\t\tconfigPage = new ConfigurationPage(driver);\r\n\t\t\tconfigPage.clickTreeViewItem(testData.get(\"GeneralSettings\")); //Selects General in the tree view of configuration page\r\n\r\n\t\t\tLog.message(\"2. Navigated to the General settings in Web Access Configuration.\", driver);\r\n\r\n\t\t\t//Step-3 : Set the automatic login credentials\r\n\t\t\t//--------------------------------------------\r\n\t\t\tconfigPage.configurationPanel.setDefaultAuthType(testData.get(\"AuthenticationType\")+\" user\");//Sets the default authentication type as Windows/M-Files user\r\n\r\n\t\t\tconfigPage.configurationPanel.setAutoLogin(true);//Select the auto login in configuration page\r\n\r\n\t\t\tLog.message(\"3. Automatic login is enabled for \"+testData.get(\"AuthenticationType\")+\" authentication type in the configuration page.\", driver);\r\n\r\n\t\t\t//Step-4: Sets the Invalid credentials and selects the vault\r\n\t\t\t//----------------------------------------------------------\r\n\t\t\tif (testData.get(\"AuthenticationType\").contains(\"Windows\"))\r\n\t\t\t{\r\n\t\t\t\tconfigPage.configurationPanel.setDefaultAuthType(testData.get(\"AuthenticationType\")+\" user\");//Sets the default authentication type as Windows user\r\n\t\t\t\tconfigPage.configurationPanel.setAutoLoginUserName(windowsUserName+\" Test\");//Sets the Windows user name\r\n\t\t\t\tconfigPage.configurationPanel.setAutoLoginPassword(windowsPassword);//Sets the Windows user password\r\n\t\t\t\tconfigPage.configurationPanel.setAutoLoginDomain(windowsUserDomain);//Sets the Windows user domain\r\n\t\t\t\tconfigPage.configurationPanel.setAutoLoginVault(documentVault);//Selects the vault\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tconfigPage.configurationPanel.setDefaultAuthType(testData.get(\"AuthenticationType\")+\" user\");//Sets the default authentication type as M-Files user\r\n\t\t\t\tconfigPage.configurationPanel.setAutoLoginUserName(userName+\" Test\");//Sets the M-Files user name\r\n\t\t\t\tconfigPage.configurationPanel.setAutoLoginPassword(password);//Sets the M-Files user password\r\n\t\t\t\tconfigPage.configurationPanel.setAutoLoginVault(documentVault);//Selects the vault\r\n\t\t\t}\r\n\r\n\t\t\tLog.message(\"4. Invalid credentials are set and vault is selected in the configuration webpage.\", driver);\r\n\r\n\t\t\t//Verification if warning dialog is displayed for invalid credentials\r\n\t\t\t//-------------------------------------------------------------------\r\n\t\t\tconfigPage.saveSettings();//Clicks the save the button\r\n\r\n\t\t\tif (!MFilesDialog.exists(driver))//Checks if MFiles dialog is displayed or not\r\n\t\t\t\tthrow new Exception(\"Warning dialog is not displayed while saving invalid credentials.\");\r\n\r\n\t\t\tMFilesDialog mfDialog = new MFilesDialog(driver);//Instantiates the MFiles Dialog\r\n\r\n\t\t\tif(mfDialog.getMessage().equals(testData.get(\"ExpectedMsg\")))\r\n\t\t\t\tLog.pass(\"Test case passed. Warning dialog is displayed as expected with the warning message(\"+testData.get(\"ExpectedMsg\")+\") while saving invalid credentials with vault selection in the configuration webpage.\", driver);\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test case failed. Warning dialog is not displayed as expected with the warning message(\"+testData.get(\"ExpectedMsg\")+\") while saving invalid credentials with vault selection in the configuration webpage.\", driver);\r\n\r\n\t\t\tmfDialog.close();//Closes the MFiles dialog in the view\r\n\r\n\t\t}//End try\r\n\t\tcatch (Exception e) {\r\n\t\t\tLog.exception(e, driver);\r\n\t\t} //End catch\r\n\t\tfinally {\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t} //End Finally\r\n\t}", "@Test(dataProviderClass = DataProviderUtils.class, dataProvider = \"excelDataReader\", groups = {\"Sprint25\", \"UI\"}, \r\n\t\t\tdescription = \"General settings 'Automatic login'\")\r\n\tpublic void SprintTest25_10_1E(HashMap<String,String> dataValues, String driverType) throws Exception {\r\n\r\n\t\tdriver = null; \r\n\t\tConcurrentHashMap <String, String> dataPool = null;\r\n\r\n\r\n\t\ttry {\r\n\r\n\t\t\t//1. Login to Configuration\r\n\t\t\t//--------------------------\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\t\t\tdataPool = new ConcurrentHashMap <String, String>(dataValues);\r\n\r\n\t\t\tdriver.get(configURL);\r\n\r\n\t\t\tLoginPage loginPage = new LoginPage(driver);\r\n\t\t\tConfigurationPage configurationPage = loginPage.loginToConfigurationUI(userName, password);\r\n\r\n\t\t\tLog.message(\"1. Logged in to Configuiration\");\r\n\r\n\t\t\t//2. Click the 'General' link \r\n\t\t\t//----------------------------\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(\"General\");\r\n\r\n\t\t\tLog.message(\"2. Clicked the 'General' link.\");\r\n\r\n\t\t\t//Verification: To verify the 'Automatic login' label\r\n\t\t\t//-----------------------------------------------------\r\n\t\t\tList<WebElement> label = driver.findElements(By.className(\"listelement\"));\r\n\r\n\t\t\tint count =0;\r\n\t\t\tfor(count =0; count < label.size(); count++) {\r\n\t\t\t\tif(label.get(count).getText().trim().equals(dataPool.get(\"Caption\")))\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tif(count != label.size() && label.get(count).isDisplayed())\r\n\t\t\t\tLog.pass(\"Test Case Passed. The 'Automatic login' label was displayed.\");\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test Case Failed. The 'Automatic login' label was not displayed.\", driver);\r\n\r\n\t\t}\r\n\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tLog.exception(e, driver);\r\n\t\t}\r\n\r\n\t\tfinally {\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t}\r\n\r\n\t}", "public static void skippedTestCase() throws Exception\n\t{\n\t\tint currentSuiteID;\n\t\tint currentTestCaseID;\n\t\tString currentTestSuite;\n\t\tXls_Reader currentTestSuiteXLS;\n\t\tXls_Reader Wb = new Xls_Reader(\"src/config/Controller.xlsx\");\n\t\tfor (currentSuiteID = 2; currentSuiteID <= Wb.getRowCount(ObjectRepository.TEST_SUITE_SHEET); currentSuiteID++)\n\t \t{\n\t\t\tcurrentTestSuite = Wb.getCellData(ObjectRepository.TEST_SUITE_SHEET, ObjectRepository.Test_Suite_ID, currentSuiteID);\n\t\t\tif (Wb.getCellData(ObjectRepository.TEST_SUITE_SHEET, ObjectRepository.RUNMODE, currentSuiteID).equals(ObjectRepository.RUNMODE_YES))\n\t\t\t{\n\t\t\t\tcurrentTestSuiteXLS = new Xls_Reader(\"src/config/\" + currentTestSuite + \".xlsx\");\n\t\t\t\tfor (currentTestCaseID = 2; currentTestCaseID <= currentTestSuiteXLS.getRowCount(ObjectRepository.TEST_CASES_SHEET); currentTestCaseID++) \n\t\t\t\t{\n\t\t\t\t\tString currentTestCaseName = currentTestSuiteXLS.getCellData(ObjectRepository.TEST_CASES_SHEET, ObjectRepository.Test_Case_ID, currentTestCaseID);\n\t\t\t\t\tString desc = currentTestSuiteXLS.getCellData(ObjectRepository.TEST_CASES_SHEET, \"Description\",\tcurrentTestCaseID);\n\t\t\t\t\tString subModule = currentTestSuiteXLS.getCellData(ObjectRepository.TEST_CASES_SHEET, \"Sub Module\", currentTestCaseID);\n\t\t\t\t\tif (currentTestSuiteXLS.getCellData(ObjectRepository.TEST_CASES_SHEET, ObjectRepository.RUNMODE, currentTestCaseID).equals(ObjectRepository.RUNMODE_NO)) \n\t\t\t\t\t{\n\t\t\t\t\t\tLog.test = Log.extent.startTest(currentTestCaseName, desc).assignCategory(currentTestSuite + \" Module\", subModule + \" Sub-Module\");\n\t\t\t\t\t\tLog.test.log(LogStatus.SKIP, \"Test script execution skipped.\");\n\t\t\t\t\t\tif (config.getProperty(\"Environment\").equals(\"Production\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (subModule.equals(\"Checkout\"))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tLog.test.log(LogStatus.SKIP, \"This scenario cannot be executed on Production as it contains checkout process.\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (currentTestSuite.equals(\"CMS\")|| currentTestSuite.equals(\"Bottom_Navigation\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (config.getProperty(\"Environment\").equals(\"Staging\"))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (subModule.contains(\"- Links\"))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tLog.test.log(LogStatus.SKIP, \"This scenario cannot be executed on staging as blog articles are not identical as in Production.\");\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\tLog.extent.endTest(Log.test);\n\t\t\t\t\t}\n\t\t\t\t\telse if (currentTestSuiteXLS.getCellData(ObjectRepository.TEST_CASES_SHEET, ObjectRepository.RUNMODE, currentTestCaseID).equals(ObjectRepository.RUNMODE_YES))\n\t\t\t\t\t{\n\t\t\t\t\t\tfor (int num = 0; num < SetupEnvironment.resultSetcheckout.size(); num++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (SetupEnvironment.resultSetcheckout.get(num).contains(currentTestCaseName))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tLog.test = Log.extent.startTest(currentTestCaseName, desc).assignCategory(currentTestSuite + \" Module\", subModule + \" Sub-Module\");\n\t\t\t\t\t\t\t\tLog.test.log(LogStatus.SKIP, \"Test script execution skipped.\");\n\t\t\t\t\t\t\t\tLog.test.log(LogStatus.SKIP, \"This scenario cannot be executed on Production as it contains checkout process.\");\n\t\t\t\t\t\t\t\tLog.extent.endTest(Log.test);\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\tfor (int num = 0; num < SetupEnvironment.resultSetBlog.size(); num++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (SetupEnvironment.resultSetBlog.get(num).contains(currentTestCaseName))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tLog.test = Log.extent.startTest(currentTestCaseName, desc).assignCategory(currentTestSuite + \" Module\", subModule + \" Sub-Module\");\n\t\t\t\t\t\t\t\tLog.test.log(LogStatus.SKIP, \"Test script execution skipped.\");\n\t\t\t\t\t\t\t\tLog.test.log(LogStatus.SKIP, \"This scenario cannot be executed on staging as blog articles are not identical as in Production.\");\n\t\t\t\t\t\t\t\tLog.extent.endTest(Log.test);\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}\n\t}", "@Test(dataProviderClass = DataProviderUtils.class, dataProvider = \"excelDataReader\", groups = {\"Sprint25\", \"UI\"}, \r\n\t\t\tdescription = \"General settings 'General - General Settings'\")\r\n\tpublic void SprintTest25_10_1A(HashMap<String,String> dataValues, String driverType) throws Exception {\r\n\r\n\t\tdriver = null; \r\n\t\tConcurrentHashMap <String, String> dataPool = new ConcurrentHashMap <String, String>(dataValues);\r\n\r\n\t\ttry {\r\n\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\t\t\tdataPool = new ConcurrentHashMap <String, String>(dataValues);\r\n\r\n\t\t\t//1. Login to Configuration\r\n\t\t\t//--------------------------\r\n\t\t\tdriver.get(configURL);\r\n\r\n\t\t\tLoginPage loginPage = new LoginPage(driver);\r\n\t\t\tConfigurationPage configurationPage = loginPage.loginToConfigurationUI(userName, password);\r\n\r\n\t\t\tLog.message(\"1. Logged in to Configuiration\");\r\n\r\n\t\t\t//2. Click the 'General' link \r\n\t\t\t//----------------------------\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(\"General\");\r\n\r\n\r\n\t\t\tLog.message(\"2. Clicked the 'General' link.\");\r\n\r\n\t\t\t//Verification: To verify the configuration title\r\n\t\t\t//------------------------------------------------\r\n\t\t\tWebElement configTitle = driver.findElement(By.id(\"configurationTitle\"));\r\n\r\n\t\t\tif(configTitle.isDisplayed() && configTitle.getText().equals(dataPool.get(\"ConfigurationTitle\")))\r\n\t\t\t\tLog.pass(\"Test Case Passed. The configuration title has the expected text.\");\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test Case Failed. The configuration title did not display the expected text.\", driver);\r\n\r\n\t\t}\r\n\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tLog.exception(e, driver);\r\n\t\t}\r\n\r\n\t\tfinally {\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t}\r\n\r\n\t}", "@Test(dataProviderClass = DataProviderUtils.class, dataProvider = \"excelDataReader\", groups = {\"Sprint25\", \"UI\"}, \r\n\t\t\tdescription = \"General settings 'Save'\")\r\n\tpublic void SprintTest25_10_1H(HashMap<String,String> dataValues, String driverType) throws Exception {\r\n\r\n\t\tdriver = null; \r\n\t\tConcurrentHashMap <String, String> dataPool = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\t//1. Login to Configuration\r\n\t\t\t//--------------------------\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\t\t\tdataPool = new ConcurrentHashMap <String, String>(dataValues);\r\n\r\n\t\t\tdriver.get(configURL);\r\n\r\n\t\t\tLoginPage loginPage = new LoginPage(driver);\r\n\t\t\tConfigurationPage configurationPage = loginPage.loginToConfigurationUI(userName, password);\r\n\r\n\t\t\tLog.message(\"1. Logged in to Configuiration\");\r\n\r\n\t\t\t//2. Click the 'General' link \r\n\t\t\t//----------------------------\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(\"General\");\r\n\r\n\r\n\t\t\tLog.message(\"2. Clicked the 'General' link.\");\r\n\r\n\t\t\t//Verification: To verify the 'Save' button\r\n\t\t\t//-----------------------------------------\r\n\t\t\tWebElement configTitle = driver.findElement(By.id(\"saveSettings\"));\r\n\r\n\t\t\tif(!configTitle.isDisplayed())\r\n\t\t\t{\r\n\t\t\t\tJavascriptExecutor jse = (JavascriptExecutor) driver;\r\n\t\t\t\tjse.executeScript(\"arguments[0].scrollIntoView();\", configTitle);\r\n\t\t\t}\r\n\r\n\t\t\tif(configTitle.isDisplayed() && configTitle.getAttribute(\"value\").contains(dataPool.get(\"Caption\")))\r\n\t\t\t\tLog.pass(\"Test Case Passed. The 'Save' button was displayed.\");\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test Case Failed. The 'Save' button was not displayed.\", driver);\r\n\r\n\t\t}\r\n\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tLog.exception(e, driver);\r\n\t\t}\r\n\r\n\t\tfinally {\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t}\r\n\r\n\t}", "@Test(dataProviderClass = DataProviderUtils.class, dataProvider = \"excelDataReader\", groups = {\"Sprint25\", \"UI\"}, \r\n\t\t\tdescription = \"General settings 'Page Title'\")\r\n\tpublic void SprintTest25_10_1C(HashMap<String,String> dataValues, String driverType) throws Exception {\r\n\r\n\t\tdriver = null; \r\n\t\tConcurrentHashMap <String, String> dataPool = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\t//1. Login to Configuration\r\n\t\t\t//--------------------------\r\n\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\t\t\tdataPool = new ConcurrentHashMap <String, String>(dataValues);\r\n\r\n\t\t\tdriver.get(configURL);\r\n\r\n\t\t\tLoginPage loginPage = new LoginPage(driver);\r\n\t\t\tConfigurationPage configurationPage = loginPage.loginToConfigurationUI(userName, password);\r\n\r\n\t\t\tLog.message(\"1. Logged in to Configuiration\");\r\n\r\n\t\t\t//2. Click the 'General' link \r\n\t\t\t//----------------------------\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(\"General\");\r\n\r\n\r\n\t\t\tLog.message(\"2. Clicked the 'General' link.\");\r\n\r\n\t\t\t//Verification: To verify the 'Page title' label\r\n\t\t\t//------------------------------------------------\r\n\t\t\tWebElement configTitle = driver.findElement(By.xpath(\"//td[contains(text(), '\" + dataPool.get(\"Caption\") + \"')]\"));\r\n\r\n\t\t\tif(configTitle.isDisplayed())\r\n\t\t\t\tLog.pass(\"Test Case Passed. The 'Page title' label was displayed.\");\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test Case Failed. The 'Page title' label was not displayed.\", driver);\r\n\r\n\t\t}\r\n\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tLog.exception(e, driver);\r\n\t\t}\r\n\r\n\t\tfinally {\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t}\r\n\r\n\t}", "private String generateJUnitTestCasesSkeletonCode(List<TestCaseList> testCases, ProductMaster product, String packageName, String refClassName, String destinationDirectory, int nameSource, String testExecutionEngine, String testStepOption) {\n\t\tJCodeModel codeModel = new JCodeModel();\r\n\t\tString message = null;\r\n\t\ttry {\r\n\t\t\tif (testExecutionEngine == null)\r\n\t\t\t\ttestExecutionEngine = TAFConstants.TESTENGINE_SEETEST;\r\n\t\t\tlog.info(\"Test Execution Engine : \" + testExecutionEngine);\r\n\t\t\t\t\r\n\t\t\tJClass junitAfterReference = null;\r\n\t\t\tJClass junitBeforeReference = null;\r\n\t\t\tJClass junitTestReference = null;\r\n\t\t\tJClass junitFixMethodOrderReference = null;\r\n\t\t\tJClass junitMethodSortersReference = null;\r\n\t\t\tjunitAfterReference = codeModel.ref(\"org.junit.After\");\r\n\t\t\tjunitBeforeReference = codeModel.ref(\"org.junit.Before\");\r\n\t\t\tjunitTestReference = codeModel.ref(\"org.junit.Test\");\r\n\t\t\tjunitFixMethodOrderReference = codeModel.ref(\"org.junit.FixMethodOrder\");\r\n\t\t\tjunitMethodSortersReference = codeModel.ref(\"org.junit.runners.MethodSorters\");\r\n\r\n\t\t\tfor (TestCaseList testCase : testCases) {\r\n\r\n\t\t\t\t// 1. Create the class for the test case\r\n\t\t\t\tString testCaseName = null;\r\n\t\t\t\tString classPackageName = null;\r\n\t\t\t\tif (testCase.getTestCaseScriptFileName() == null || testCase.getTestCaseScriptFileName().trim().isEmpty()) {\r\n\t\t\t\t\ttestCaseName = ScriptGeneratorUtilities.getTestCaseClassName(testCase.getTestCaseName(), testCase.getTestCaseId(), testCase.getTestCaseCode(), nameSource);\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttestCaseName = testCase.getTestCaseScriptFileName();\r\n\t\t\t\t\tif(testCaseName.contains(\".java\")){\r\n\t\t\t\t\t\ttestCaseName = testCaseName.replace(testCaseName.substring(testCaseName.lastIndexOf(\".\")),\"\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (testCase.getTestCaseScriptQualifiedName() == null || testCase.getTestCaseScriptQualifiedName().trim().isEmpty()) {\r\n\t\t\t\t\tclassPackageName = packageName;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tclassPackageName = testCase.getTestCaseScriptQualifiedName();\r\n\t\t\t\t}\r\n\t\t\t\tJDefinedClass testCaseClass = codeModel._class(classPackageName + \".\" + testCaseName);\r\n\t\t\t\tJDocComment classComment = testCaseClass.javadoc();\r\n\t\t\t\tString javadocCommentClass = \"Automation Script for Testcase : \" + testCase.getTestCaseName()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Product \t\t\t: \" + product.getProductDescription()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Testcase ID\t\t: \" + testCase.getTestCaseId()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Testcase Code \t: \" + testCase.getTestCaseCode()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Description \t\t: \" + testCase.getTestCaseDescription()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Test case type \t: \" + testCase.getTestCaseType()\r\n\t\t\t\t\t\t+ \"\\n\" + \"Script Type \t\t: \" + TAFConstants.TESTSCRIPT_TYPE_JUNIT\r\n\t\t\t\t\t\t+ \"\\n\" + \"Test Execution Engine \t: \" + testExecutionEngine\r\n\t\t\t\t\t\t+ \"\\n\" + \"Code generated by TAF on \t: \" + new Date(System.currentTimeMillis());\r\n\t\t\t\tclassComment.append(javadocCommentClass);\r\n\t\t\t\ttestCaseClass.annotate(junitFixMethodOrderReference).param(\"value\", MethodSorters.NAME_ASCENDING);\r\n\r\n\t\t\t\ttestCaseClass = addClassVariablesForTestCaseClass(codeModel, testCaseClass, testExecutionEngine);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif (testStepOption == null)\r\n\t\t\t\t\ttestStepOption = \"SINGLE_METHOD\";\r\n\t\t\t\t// 4. Add methods for the test steps of the test case\r\n\t\t\t\t// 4.a Add the setup and tear down methods\r\n\t\t\t\tJMethod setUpMethod = testCaseClass.method(JMod.PUBLIC, void.class, \"setUp\");\r\n\t\t\t\tJDocComment methodComment1 = setUpMethod.javadoc();\r\n\t\t\t\tString commentString = \"Setup method for testcase\";\r\n\t\t\t\tmethodComment1.append(commentString);\r\n\t\t\t\tsetUpMethod = constructSetUpMethodForTestCase(setUpMethod, testExecutionEngine, refClassName, testCaseName);\r\n\t\t\t\tsetUpMethod.annotate(junitBeforeReference);\r\n\t\t\t\t\r\n\t\t\t\tJMethod tearDownMethod = testCaseClass.method(JMod.PUBLIC, void.class, \"tearDown\");\r\n\t\t\t\tJDocComment methodComment2 = tearDownMethod.javadoc();\r\n\t\t\t\tcommentString = \"Teardown method for the testcase\";\r\n\t\t\t\tmethodComment2.append(commentString);\r\n\t\t\t\ttearDownMethod = constructTearDownMethodForTestCase(tearDownMethod, testExecutionEngine);\r\n\t\t\t\ttearDownMethod.annotate(junitAfterReference);\r\n\t\t\t\t\r\n\t\t\t\tList<TestCaseStepsList> testSteps = testCaseService.listTestCaseSteps(testCase.getTestCaseId());\r\n\t\t\t\tif (testSteps == null || testSteps.isEmpty()) {\r\n\t\t\t\t\tlog.debug(\"No steps in the testcase : \" + testCaseName);\r\n\t\t\t\t\tJMethod testCaseMethod = testCaseClass.method(JMod.PUBLIC, void.class, testCaseName + \"_Test\");\r\n\t\t\t\t\ttestCaseMethod.annotate(junitTestReference);\r\n\t\t\t\t\ttestCaseMethod = constructDefaultTestCaseMethodForTestCase(testCaseMethod, testExecutionEngine, testCase);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif(testStepOption.contains(\"SEPARATE_METHOD\")) {\r\n\t\t\t\t\t\tJMethod mainTestStepMethod = testCaseClass.method(JMod.PUBLIC, void.class, \"mainTest\");\r\n\t\t\t\t\t\tmainTestStepMethod.annotate(junitTestReference);\r\n\t\t\t\t\t\tString stepMethod = \"\";\r\n\t\t\t\t\t\tfor (TestCaseStepsList testStep : testSteps) {\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tString testStepName = ScriptGeneratorUtilities.getTestStepMethodName(testCaseName, testStep.getTestStepName(), testStep.getTestStepId(), testStep.getTestStepCode(), 1 );\r\n\t\t\t\t\t\t\tJMethod testStepMethod = testCaseClass.method(JMod.PUBLIC, void.class, testStepName);\r\n\t\t\t\t\t\t\ttestStepMethod = constructTestStepMethodForTestCase(testStepMethod, testExecutionEngine, refClassName, testCaseName, testStepName, testStep);\r\n\t\t\t\t\t\t\tstepMethod = testStepName+\"();\";\r\n\t\t\t\t\t\t\tmainTestStepMethod.body().directStatement(stepMethod);\r\n\t\t\t\t\t\t\tstepMethod = \"\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tJMethod singleTestStepMethod = testCaseClass.method(JMod.PUBLIC, void.class, testCaseName + \"_Test\");\r\n\t\t\t\t\t\tsingleTestStepMethod.annotate(junitTestReference);\r\n\t\t\t\t\t\tfor (TestCaseStepsList testStep : testSteps) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tString testStepName = ScriptGeneratorUtilities.getTestStepMethodName(testCaseName, testStep.getTestStepName(), testStep.getTestStepId(), testStep.getTestStepCode(), 1 );\r\n\t\t\t\t\t\t\tsingleTestStepMethod = addTestStepForSingleTestStepMethodForTestCase(singleTestStepMethod, testExecutionEngine, refClassName, testCaseName, testStepName, testStep);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\tFile sourceFile = new File(destinationDirectory);\r\n\t\t\t\tif (!sourceFile.exists()) {\r\n\t\t\t\t\tlog.info(\"Created Directory for source code generation : \" + destinationDirectory);\r\n\t\t\t\t\tsourceFile.mkdirs();\r\n\t\t\t\t}\r\n\t\t\t\tcodeModel.build(sourceFile);\r\n\t\t\t\tString CLASS_PACKAGE_NAME_FOLDER = classPackageName.replace(\".\", File.separator);\r\n\t\t\t\tlog.info(\"CLASS_PACKAGE_NAME_FOLDER : \" + CLASS_PACKAGE_NAME_FOLDER);\r\n\t\t\t\tmessage = sourceFile.getAbsolutePath() + File.separator + CLASS_PACKAGE_NAME_FOLDER + File.separator + testCaseName + \".java\";\r\n\t\t\t}\r\n\t\t} catch (JClassAlreadyExistsException e) {\r\n\t\t\tlog.error(\"Unable to generate testcase ref source code class\", e);\r\n\t\t\tmessage = \"Failed : Unable to generate testcase ref source code class\";\r\n\t\t} catch (IOException io) {\r\n\t\t\tlog.error(\"Unable to create file in file system\", io);\r\n\t\t\tmessage = \"Failed : Unable to create file in file system\";\r\n\t\t}\r\n\t\t\r\n\t\tlog.debug(\"Success : Generated Testcases source code framework.\" );\r\n\t\treturn message;\r\n\r\n\t}", "public List<String> executableTestCase(XSSFWorkbook workbook){\r\n\t\tXSSFSheet worksheet = workbook.getSheetAt(0);\r\n\t\tint testcasecount = worksheet.getLastRowNum();\t\t\t// Test case count from scenario sheet\r\n System.out.println(\"Total number of testcase: \"+testcasecount);\r\n\t\t//\t\tint testCaseYCnt = 0;\r\n//\t\tList<String> testcasename = new ArrayList<String>() ;\t// List of all the executable test cases (Flag 'Y') from scenario sheet\r\n//\t\tList<String> featurefilelist ;\r\n//\t\tList<List<String>> featurefilelistOFlist = new ArrayList<List<String>>() ; //Contains all feature files and each entry contains feature file list for a TC \r\n\t\tRow row;\r\n\t\tCell cell;\r\n\t\tfor(int i=1;i<=testcasecount;++i){\r\n\t\t\trow = worksheet.getRow(i);\r\n\t\t\tfeaturefilelist = new ArrayList<String>() ;\r\n\t\t\tcell = row.getCell(0);\r\n\t\t\tif(cell==null)break;\r\n\t\t\tif((cell.toString()).equalsIgnoreCase(\"Y\")){\r\n\t\t\t\tint featurefilecount;\r\n\t\t\t\ttestcasename.add(row.getCell(1).toString()); \t\t\t\t\t\t\r\n\t\t\t\tfeaturefilecount = worksheet.getRow(testCaseYCnt+1).getLastCellNum(); // Feature file count in each row of scenario sheet\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"the number of feature file : \"+featurefilecount);\r\n\t\t\t\t\r\n\t\t\t\tfor( int k=1 ; k<=featurefilecount-2;++k){\r\n\t\t\t\t\tfeaturefilename = worksheet.getRow(i).getCell(k+1).toString();\r\n\t\t\t\t\tif(featurefilename.equals(\"\")){\r\n\t\t\t\t\t\tbreak; \t\t\t\t\t\t// If cells have been written over once they will add to the count of feature files\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfeaturefilelist.add(featurefilename);\r\n\t\t\t\t}\r\n\t\t\t\tfeaturefilelistOFlist.add(featurefilelist); // List of list of feature file with all TC having flag as Y\r\n\t\t\t\t++testCaseYCnt; \r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Total Executable Cases : \" + testCaseYCnt);\r\n\t\treturn testcasename;\r\n\t}", "@Test(dataProviderClass = DataProviderUtils.class, dataProvider = \"excelDataReader\", groups = {\"Sprint25\", \"UI\"}, \r\n\t\t\tdescription = \"Task area 'New commands'\")\r\n\tpublic void SprintTest25_10_5A(HashMap<String,String> dataValues, String driverType) throws Exception {\r\n\r\n\t\tdriver = null; \r\n\t\tConcurrentHashMap <String, String> dataPool = null;\r\n\r\n\t\ttry {\r\n\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\t\t\tdataPool = new ConcurrentHashMap <String, String>(dataValues);\r\n\r\n\t\t\t//1. Login to Configuration\r\n\t\t\t//--------------------------\r\n\t\t\tdriver.get(configURL);\r\n\r\n\t\t\tLoginPage loginPage = new LoginPage(driver);\r\n\t\t\tConfigurationPage configurationPage = loginPage.loginToConfigurationUI(userName, password);\r\n\r\n\t\t\tLog.message(\"1. Logged in to Configuiration\");\r\n\r\n\t\t\t//2. Click the Task area link \r\n\t\t\t//----------------------------\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(Caption.ConfigSettings.VaultSpecificSettings.Value + \">>\" + testVault + \">>\" + Caption.ConfigSettings.Config_TaskArea.Value);\r\n\r\n\t\t\tLog.message(\"2. Clicked the Task area link.\");\r\n\r\n\t\t\t//Verification: To verify the 'New commands' label\r\n\t\t\t//-------------------------------------------------\r\n\t\t\tWebElement label = driver.findElement(By.xpath(\"//td[contains(text(), '\" + dataPool.get(\"Label\") + \"')]\"));\r\n\t\t\tif(label.isDisplayed())\r\n\t\t\t\tLog.pass(\"Test Case Passed. The Option was changed to \"+dataPool.get(\"Label\"));\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test Case Failed. The option \" + dataPool.get(\"Label\") + \" was not found.\", driver);\r\n\r\n\t\t}\r\n\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tLog.exception(e, driver);\r\n\t\t}\r\n\r\n\t\tfinally {\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t}\r\n\r\n\t}", "@BeforeClass\n\tpublic static void classInformation() {\n\t\tSystem.out.println(\"***\\t \" + InvitationsPostTest.class.getSimpleName()\n\t\t\t\t+ \" ***\");\n\t}", "@Override\n\tpublic void onTestSuccess(ITestResult result) {\n\t\tSystem.out.println(\"THE TEST CASE HAS PASSED SUCCESSFULLY\");\n\t\ttest.log(Status.PASS, \"test passed\");\nWebDriver driver=null;\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tdriver=(WebDriver)result.getTestClass().getRealClass().getDeclaredField(\"driver\").get(result.getInstance());\n\t\t\t\n\t\t} catch (IllegalArgumentException | IllegalAccessException | NoSuchFieldException | SecurityException e1) {\n\t\t\t\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\tString testMethodName=result.getMethod().getMethodName();\n\t\t\n\t\tcaptureScreenshot(driver,testMethodName);\n\t\ttry {\n\t\t\ttest.addScreenCaptureFromPath(System.getProperty(\"user.dir\")+\"\\\\Output\\\\Screenshots\\\\\"+testMethodName+\".png\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Test\n\tpublic void details() throws IOException {\n\t\tSystem.out.println(\"Executing globally by providing details in property file. Not Hardcoding\");\n\t\t// Initially we need to provide where the property file is located\n\t\t// for that we have to invoke the Object of Properties class from java.util package as Below\n\t\tProperties property = new Properties();\n\t\t// now we need to mention where the Property file is Located using FileInputStream.\n\t\tFileInputStream input = new FileInputStream(\n\t\t\t\t\"G:\\\\SeleniumWorkspace_Neon\\\\UdemyProject\\\\projectKeyDetails.properties\");\n\t\t// Here we can provide the path of Property file.\n\t\tproperty.load(input);\n\t\t// We Can do our Stuff\n \n\t\tif(property.getProperty(\"browser\").equals(\"firefox\")){\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"G:\\\\Selenium Drivers\\\\geckodrivers\\\\geckodriver.exe\");\n\t\tdriver = new FirefoxDriver();\n\t\t}else if(property.getProperty(\"browser\").equals(\"chrome\")){\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"G:\\\\Selenium Drivers\\\\ChromeDriver\\\\chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\t}\n\t\telse{\n\t\t\t System.setProperty(\"webdriver.ie.driver\", \"G:\\\\Selenium Drivers\\\\InternetExplorerDrivers\\\\IEDriverServer_Win32_3.6.0\\\\IEDriverServer.exe\");\n\t\tdriver = new InternetExplorerDriver();\n\t\t}\n\t\t//Till Now The Browser and the property file is invoked globally\n\t\t//You can work on any web Applications providing the URL and selenium script details.\n\t\tdriver.get(property.getProperty(\"url\"));\n\t}", "public static void main(String[] args) {\n\t\tTestNG testNG = new TestNG();\n\t\tTestListenerAdapter adapter = new TestListenerAdapter();\n\t\tList<String> suites = new ArrayList<>();\n\t\ttestNG.addListener((ITestNGListener) adapter);\n\t\tsuites.add(\"./src/test/java/com/testautomation/testng/main_testng.xml\");\n\t\tsuites.add(\"./src/test/java/com/testautomation/testng/testng1.xml\");\n\t\tsuites.add(\"./src/test/java/com/testautomation/testng/testng2.xml\");\n\t\tsuites.add(\"./src/test/java/com/testautomation/testng/testng3.xml\");\n\t\tsuites.add(\"./src/test/java/com/testautomation/testng/testng4.xml\");\n\t\ttestNG.setTestSuites(suites);\n\t\ttestNG.setParallel(XmlSuite.ParallelMode.METHODS);\n\t\ttestNG.setPreserveOrder(true);\n\t\ttestNG.setSuiteThreadPoolSize(5);\n\t\ttestNG.setVerbose(0);\n\t\ttestNG.setOutputDirectory(\"test-output\");\n\t\ttestNG.run();\n\t}", "@Test\n\t@Description(\"Principal test to run the workflow\")\n\tpublic void Principal_testcase() throws Exception {\n\t\tKeywordsOperations perform = new KeywordsOperations();\n\t\tReadFromFile readFile = new ReadFromFile();\n\t\t\n\t\t//Getting the data from the file\n\t\tXSSFSheet sheetData = readFile.ReadData(\"TestData.xlsx\", \"Sheet1\");\n\t\t\n\t\t//Getting the data times for waits\n\t\tXSSFSheet sheetDataTimes = readFile.ReadData(\"TestData.xlsx\", \"Sheet2\");\n\t\t\n\t\tArrayList<ArrayList<String>> OUT = new ArrayList<ArrayList<String>>();\n\t\t// Get iterator to all the rows in current sheet \n Iterator<Row> rowIterator = sheetDataTimes.iterator(); \n\n while (rowIterator.hasNext()) { \n Row row = rowIterator.next();\n ArrayList<String> InnerArray = new ArrayList<String>() ;\n // For each row, iterate through each columns \n Iterator<Cell> cellIterator = row.cellIterator(); \n\n while (cellIterator.hasNext()) {\n\n Cell cell = cellIterator.next(); \n\n switch (cell.getCellType().toString()) { \n \tcase \"STRING\": \n \t\tString c = cell.getStringCellValue();\n \t\tInnerArray.add(c);\n \t\tbreak; \n \tcase \"NUMERIC\": \n \t\tint n = (int) cell.getNumericCellValue();\n \t\tInnerArray.add(String.valueOf(n));\n \t\tbreak; \n \tdefault :\n \t\tbreak;\n } \n }\n \tOUT.add(InnerArray); \n }\n\t\t\n\t\t\n\t\t//Counting the rows with the important data for the test\n\t\tint rowCountData = sheetData.getLastRowNum() - sheetData.getFirstRowNum();\n\n\t\t\n\t\tfor(int i = 1; i < rowCountData + 1; i++) {\n\t\t\tRow row = sheetData.getRow(i);\n\t\t\t\n\t\t\tif(row != null) {\n\t\t\t\tif(row.getCell(0) == null || row.getCell(0).toString().length() == 0) {\n\t\t\t\t\tSystem.out.println(\"Step: \" + row.getRowNum());\n\t\t\t\t\tSystem.out.println(row.getCell(1) + \" ------ \" +\n\t\t\t\t\t\t\trow.getCell(2) + \" ------ \" +\n\t\t\t\t\t\t\trow.getCell(3) + \" ------ \" +\n\t\t\t\t\t\t\trow.getCell(4) + \" ------ \" +\n\t\t\t\t\t\t\trow.getCell(5) + \" ------ \" +\n\t\t\t\t\t\t\trow.getCell(6) + \" ------ \" +\n\t\t\t\t\t\t\trow.getCell(7) + \" ------ \" +\n\t\t\t\t\t\t\trow.getCell(8) + \" ------ \" +\n\t\t\t\t\t\t\trow.getCell(9) + \" ------ \" +\n\t\t\t\t\t\t\trow.getCell(10) + \" ------ \" +\n\t\t\t\t\t\t\trow.getCell(11) + \" ------ \" +\n\t\t\t\t\t\t\trow.getCell(12) + \" ------ \" +\n\t\t\t\t\t\t\trow.getCell(13) + \" ------ \" +\n\t\t\t\t\t\t\trow.getCell(14) + \" ------ \" +\n\t\t\t\t\t\t\trow.getCell(15));\n\t\t\t\t\t\n\t\t\t\t\t//Sending the cells with the data that the program will need\n\t\t\t\t\tperform.Perform(row.getCell(3), row.getCell(4), row.getCell(5), \n\t\t\t\t\t\t\trow.getCell(6), row.getCell(7), row.getCell(8), row.getCell(9), \n\t\t\t\t\t\t\trow.getCell(10), row.getCell(11), row.getCell(12), row.getCell(13), \n\t\t\t\t\t\t\trow.getCell(14), row.getCell(15), OUT);\n\t\t\t\t} else {\n\t\t\t\t\ttest = extentReport.createTest(row.getCell(0).toString());\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"Step: \" + row.getRowNum());\n\t\t\t\t\tSystem.out.println(\"New test case: \" + row.getCell(0) + \" ------ \" +\n\t\t\t\t\t\t\trow.getCell(1) + \" ------ \" +\n\t\t\t\t\t\t\trow.getCell(2) + \" ------ \" +\n\t\t\t\t\t\t\trow.getCell(3) + \" ------ \" +\n\t\t\t\t\t\t\trow.getCell(4) + \" ------ \" +\n\t\t\t\t\t\t\trow.getCell(5) + \" ------ \" +\n\t\t\t\t\t\t\trow.getCell(6) + \" ------ \" +\n\t\t\t\t\t\t\trow.getCell(7) + \" ------ \" +\n\t\t\t\t\t\t\trow.getCell(8) + \" ------ \" +\n\t\t\t\t\t\t\trow.getCell(9) + \" ------ \" +\n\t\t\t\t\t\t\trow.getCell(10) + \" ------ \" +\n\t\t\t\t\t\t\trow.getCell(11) + \" ------ \" +\n\t\t\t\t\t\t\trow.getCell(12) + \" ------ \" +\n\t\t\t\t\t\t\trow.getCell(13) + \" ------ \" +\n\t\t\t\t\t\t\trow.getCell(14) + \" ------ \" +\n\t\t\t\t\t\t\trow.getCell(15));\n\t\t\t\t\t\n\t\t\t\t\t//Sending the cells with the data that the program will need\n\t\t\t\t\tperform.Perform(row.getCell(3), row.getCell(4), row.getCell(5), \n\t\t\t\t\t\t\trow.getCell(6), row.getCell(7), row.getCell(8), row.getCell(9), \n\t\t\t\t\t\t\trow.getCell(10), row.getCell(11), row.getCell(12), row.getCell(13), \n\t\t\t\t\t\t\trow.getCell(14), row.getCell(15), OUT);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@BeforeMethod\n\n\t// for parallel testing\n\t@Parameters(\"browser\")\n\t// public void init(String Browservalue) throws IOException {\n\n\tpublic void init() throws IOException {\n\t\tString Userpath = System.getProperty(\"user.dir\");\n\n\t\t// Read data from excel\n\t\texceldata = new Excelconfig(Userpath + \"\\\\Data\\\\Testdata.xlsx\");\n\n\t\tconfig = new Properties();\n\t\tobjectrepo = new Properties();\n\n\t\tfis = new FileInputStream(Userpath + \"\\\\src\\\\config\\\\config.properties\");\n\t\tLocator = new FileInputStream(Userpath + \"\\\\src\\\\objectrepo\\\\Locators.properties\");\n\n\t\tconfig.load(fis);\n\t\tobjectrepo.load(Locator);\n\n\t\t// Extent Reporting\n\t\tExtentHtmlReporter extent = new ExtentHtmlReporter(\n\t\t\t\tUserpath + \"\\\\Reports\\\\Login\" + Helper.getCurrentDateTime() + \".html\");\n\t\treport = new ExtentReports();\n\t\treport.attachReporter(extent);\n\n\t\t// Read from config.properties file\n\t\tString Browservalue = config.getProperty(\"Browser\");\n\n\t\tif (Browservalue.equalsIgnoreCase(\"chrome\")) {\n\t\t\tWebDriverManager.chromedriver().setup();\n\t\t\tdriver = new ChromeDriver();\n\t\t\t/*\n\t\t\t * System.setProperty(\"webdriver.chrome.driver\", Userpath +\n\t\t\t * \"\\\\Driver\\\\chromedriver.exe\"); driver = new ChromeDriver();\n\t\t\t */\n\n\t\t} else if (Browservalue.equalsIgnoreCase(\"firefox\")) {\n\t\t\tWebDriverManager.firefoxdriver().setup();\n\t\t\tdriver = new FirefoxDriver();\n\t\t\t/*\n\t\t\t * System.setProperty(\"webdriver.gecko.driver\", Userpath +\n\t\t\t * \"\\\\Driver\\\\geckodriver.exe\"); driver = new FirefoxDriver();\n\t\t\t */\n\n\t\t} else if (Browservalue.equalsIgnoreCase(\"ie\")) {\n\t\t\tWebDriverManager.iedriver().setup();\n\t\t\tdriver = new InternetExplorerDriver();\n\t\t\t/*\n\t\t\t * System.setProperty(\"webdriver.ie.driver\", Userpath +\n\t\t\t * \"\\\\Driver\\\\IEDriverServer.exe\"); driver = new InternetExplorerDriver();\n\t\t\t */\n\n\t\t} else if (Browservalue.equalsIgnoreCase(\"edge\")) {\n\t\t\tWebDriverManager.edgedriver().setup();\n\t\t\tdriver = new EdgeDriver();\n\n\t\t\t/*\n\t\t\t * System.setProperty(\"webdriver.edge.driver\", Userpath +\n\t\t\t * \"\\\\Driver\\\\msedgedriver.exe\"); driver = new EdgeDriver();\n\t\t\t */\n\t\t}\n\n\t\tString URL = config.getProperty(\"url\");\n\t\tdriver.manage().window().maximize();\n\n\t\tdriver.get(URL);\n\n\t}", "@Test(priority = 3, retryAnalyzer = Retry.class)\n\tpublic void VPORT_11_ImportStudentsOption1()\n\t{\n\t\tString districtUser = dependentData.getProperty(\"VPORT_002_DistrictUserName\");\n\t\tString school = dependentData.getProperty(\"VPORT_002_SchoolName\");\n\t\tvportloginpage.enterLoginCredentials(districtUser, vportData.distUserPassword);\n\t\tdistrictAdminHomepage = (DistrictAdminHomepage) vportloginpage.clickSignInButton(ReturnPage.MYDISTRICPAGE);\n\t\t//\t\t 2. Navigate to My district/school - Import students page\n\t\tdistrictAdminMyDistrictPage = districtAdminHomepage.clickOnMyDistrictLink();\n\t\tdistrictAdminMyDistrictPage.clickOnImportStudents();\n\t\t//\t\t 3. find that page is enbaled with two options to import the students \n\t\tdistrictAdminMyDistrictPage.verifyImportOptions();\n\t\t//\t\t 4. Now download template in the first option \n\t\t//\t\t \"\"Option 1: Roster students into classes\"\"\n\t\t//\t\t 5. click on the \"\"Download template\"\" button & download the template for the import \n\t\tdistrictAdminMyDistrictPage.clickOnOption1DownloadTemplateButton();\n\t\t//\t\t 6. Open the file downloaded & add thye users details(student ID, first name, last name, student birth date, Grade) need to be added to the vport to a particular class\n\t\tString downloadedFilepath=districtAdminMyDistrictPage.verifyTemplateIsDownloaded(vportData.RosterStudentDownloadedTemplateFilePath);\n\t\tString currentTime=UtilityMethods.get4DRandomNumber();\n\t\tString StudentNew = vportData.studentID+currentTime;\n\t\tString[] cellData={StudentNew,vportData.studentLastName,vportData.studentFirstName,vportData.studentDOB,vportData.studentGradeLevel};\n\t\tString[] colNamesofExcelsheet={\"StudentID\",\"StudentLastName\",\"StudentFirstName\",\"StudentBirthDate\",\"StudentGrade\"};\n\t\t//Enter Student details into the down loaded excel sheet template \n\t\tdistrictAdminMyDistrictPage.enterStudentDetailsIntoDownloadedExcel(downloadedFilepath,\"Sheet1\",cellData,llData.RowNumbertoEnterData,colNamesofExcelsheet);\n\t\t//\t\t 7. Now select the file using browse button & click on submit button \n\t\tdistrictAdminMyDistrictPage.uploadExcelSheetWithStudentDetialsOption1(downloadedFilepath);\n\t\t//\t\t 8. Find that file is being submitted & respective success message is shown \n\t\t//\t\t 9. respective error message will be shown if the data provided in file is not correct \n\t\tdistrictAdminMyDistrictPage.verifyExcelSheetUploadedCorrectly();\n\t\t//\t\t 10. Click \"\"proceed to import\"\" button to complete the importing students \n\t\tdistrictAdminMyDistrictPage.clickProceddwithImportButton();\n\t\tdistrictAdminMyDistrictPage.verifyExcelSheetImportedCorrectly();\n\t\t//\t\t 11. navigate to the respective school & class to check whether the user is added to the roster or not\n\t\tdistrictAdminMyDistrictPage.selectSchoolFromAllSchools(school);\n\t\tdistrictAdminMyDistrictPage.selectClassFromAllClassesDefault(\"TL Level A\");\n\t\t//\t\t 12. Verify whether student is rostered into the class wihtout assigning licenses \"\n\t\tdistrictAdminMyDistrictPage.clickOnRosterTab();\n\t\tdistrictAdminMyDistrictPage.verifyRosterTabLoaded();\n\t\tdistrictAdminMyDistrictPage.verifyAddedStudentInTheClass(StudentNew);\n\t\t//Log out from Teacher user Login\n\t\tvportloginpage=districtAdminHomepage.clickLogoutLink();\n\t\tvportloginpage.verifyLoginPage();\n\n\t}", "@Test(dataProviderClass = DataProviderUtils.class, dataProvider = \"excelDataReader\", groups = {\"Sprint25\", \"Password\"}, \r\n\t\t\tdescription = \"No Applet and task area view\")\r\n\tpublic void SprintTest25_9_4(HashMap<String,String> dataValues, String driverType) throws Exception {\r\n\r\n\t\tdriver = null; \r\n\r\n\t\tConcurrentHashMap <String, String> dataPool = new ConcurrentHashMap <String, String>(dataValues);\r\n\r\n\t\ttry {\r\n\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\t\t\tdataPool = new ConcurrentHashMap <String, String>(dataValues);\r\n\r\n\t\t\t//1. Login to Configuration\r\n\t\t\t//--------------------------\r\n\t\t\tdriver.get(configURL);\r\n\r\n\t\t\tLoginPage loginPage = new LoginPage(driver);\r\n\t\t\tConfigurationPage configurationPage = loginPage.loginToConfigurationUI(userName, password);\r\n\r\n\t\t\tLog.message(\"1. Logged in to Configuiration\");\r\n\r\n\t\t\t//2. Set the required settings\r\n\t\t\t//----------------------------\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(\"Vault-specific settings>>\" + testVault);\r\n\r\n\t\t\tConfigurationPanel configSettingsPanel = new ConfigurationPanel(driver);\r\n\t\t\tconfigSettingsPanel.setLayout(dataPool.get(\"Layout\"));\r\n\r\n\t\t\tif (configSettingsPanel.isJavaAppletEnabled())\r\n\t\t\t\tconfigSettingsPanel.setJavaApplet(Caption.ConfigSettings.Config_Disable.Value);\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.saveSettings())\r\n\t\t\t\tthrow new Exception(\"Configuration settings are not saved.\");\r\n\r\n\t\t\tconfigurationPage.logOut();\r\n\r\n\t\t\tLog.message(\"2. Set the required settings\");\r\n\r\n\t\t\t//3. Login to the Test vault\r\n\t\t\t//---------------------------\r\n\t\t\tdriver.get(loginURL);\r\n\t\t\tHomePage homePage = loginPage.loginToWebApplication(userName, password, testVault);\r\n\r\n\t\t\tLog.message(\"3. Login to the Test Vault.\");\r\n\r\n\t\t\t//Verification: To verify if the Java applet is not loaded\r\n\t\t\t//---------------------------------------------------------\r\n\t\t\tif(!homePage.taskPanel.isAppletEnabled() && !homePage.isTaskPaneDisplayed())\r\n\t\t\t\tLog.pass(\"Test Case Passed. The task pane was not displayed and Java applet was not enabled as expected.\");\r\n\t\t\telse if(!homePage.taskPanel.isAppletEnabled() && homePage.isTaskPaneDisplayed())\r\n\t\t\t\tLog.fail(\"Test Case Failed. Java applet was disabled but task pane was visible.\", driver);\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test Case Failed. The Java applet was enabled and the task pane was displayed.\", driver);\r\n\r\n\t\t\tdriver.get(configURL);\r\n\r\n\t\t\tconfigurationPage = new ConfigurationPage(driver);\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(\"Vault-specific settings>>\" + testVault);\r\n\r\n\t\t\tconfigSettingsPanel.setLayout(Caption.ConfigSettings.Config_Default.Value);\r\n\t\t\tconfigSettingsPanel.setJavaApplet(Caption.ConfigSettings.Config_Disable.Value);\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.saveSettings())\r\n\t\t\t\tthrow new Exception(\"Configuration settings are not saved.\");\r\n\r\n\t\t}\r\n\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tLog.exception(e, driver);\r\n\t\t}\r\n\r\n\t\tfinally {\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t}\r\n\r\n\t}", "@Test(groups = \"regression\")\n\t public void product()throws Throwable{\n\t ExcelUtility eLib = new ExcelUtility();\n\t String Pname1 = eLib.getExcelData(\"Product\", 8, 2);\n\t String Pname2 = eLib.getExcelData(\"Product\", 8, 3)+ JavaUtility.getRanDomNum();\n\t String Unit = eLib.getExcelData(\"Product\", 8, 4);\n\t String Qtys = eLib.getExcelData(\"Product\", 8, 5);\n\t String Qtyu = eLib.getExcelData(\"Product\", 8, 6);\n\t String Reorder = eLib.getExcelData(\"Product\", 8, 7);\n\t String Group = eLib.getExcelData(\"Product\", 8, 8);\n\t String Qtyd = eLib.getExcelData(\"Product\", 8, 9);\n\t\n\t /*step 3 : navigate to Products Page*/\n\n\t driver.findElement(By.xpath(\"//a[text()='Products']\")).click();\n\t /*step 4 : navigate to create Product Page*/\n\t List <WebElement> noofrows = driver.findElements(By.xpath(\"//table[@class=\\\"lvt small\\\"]/tbody/tr\")); \n\t //selecting existing product from the table. \n\t int rownum = noofrows.size();\t \n\t List <WebElement> element = driver.findElements(By.xpath(\"//a[@title=\\\"Products\\\"]\")); \n\t for (int i = 0; i<element.size();i++) \n\t {\n\t\t if(element.get(i).getText().equalsIgnoreCase(Pname1)) \n\t\t {\n\t\t\t element.get(i).click();\n\n\t\t\t break;\n\t\t }\n\n\t }\n\t //clickicg on edit option.\n\t driver.findElement(By.xpath(\"//input[@name=\\\"Edit\\\"]\")).click();\n\n\t //clearing old name and entering new name.\n\t driver.findElement(By.xpath(\"//input[@name='productname']\")).clear();\n\t driver.findElement(By.xpath(\"//input[@name='productname']\")).sendKeys(Pname2);\n\t //selecting unit to be used.\n\t WebElement dd = driver.findElement(By.xpath(\"//select[@name=\\\"usageunit\\\"]\"));\n\t wLib.select(dd,Unit);\n\t //\t\t\t\n\t //clearing texboxes and entering new data.\n\t driver.findElement(By.xpath(\"//input[@id=\\\"qtyinstock\\\"]\")).clear();\n\t driver.findElement(By.xpath(\"//input[@id=\\\"qtyinstock\\\"]\")).sendKeys(Qtys); \n\t driver.findElement(By.xpath(\"//input[@id=\\\"qty_per_unit\\\"]\")).clear();\n\t driver.findElement(By.xpath(\"//input[@id=\\\"qty_per_unit\\\"]\")).sendKeys(Qtyu);\n\t driver.findElement(By.xpath(\"//input[@id=\\\"reorderlevel\\\"]\")).clear();\n\t driver.findElement(By.xpath(\"//input[@id=\\\"reorderlevel\\\"]\")).sendKeys(Reorder);\n\t //selecting group from dropdown\n\t driver.findElement(By.xpath(\"//input[@value=\\\"T\\\"]\")).click();\n\t WebElement dd1 = driver.findElement(By.xpath(\"//select[@name=\\\"assigned_group_id\\\"]\"));\n\t wLib.select(dd1, Group);\n\n\t //updating quantity in demand.\n\t driver.findElement(By.xpath(\"//input[@id=\\\"qtyindemand\\\"]\")).clear();\n\t driver.findElement(By.xpath(\"//input[@id=\\\"qtyindemand\\\"]\")).sendKeys(Qtyd);\n\t //saving the changes by clicking save button.\n\t driver.findElement(By.xpath(\"//input[@title=\\\"Save [Alt+S]\\\"]\")).click();\n\n\t /*step 5: verify*/\n\t String actSuccessFullMsg = driver.findElement(By.xpath(\"//span[@class='lvtHeaderText']\")).getText();\n\t if(actSuccessFullMsg.contains(Pname2)) {\n\t\t System.out.println(Pname2 + \"==>Product editd successfully==>PASS\");\n\t }else {\n\t\t System.out.println(Pname2 + \"==>Product not Edited ==>Fail\");\n\n\t } \n }", "public static void main(String[] args) {\n\t\tTestListener listener=new TestListener();\r\n\t\tXmlSuite suite=new XmlSuite();\r\n\t\tsuite.setName(\"Test Results\");\r\n\t\tsuite.setParallel(ParallelMode.METHODS);\r\n\t\tsuite.setThreadCount(Integer.parseInt(TestProperties.THREAD_COUNT.toString()));\r\n\t\tList<XmlSuite> suits=new ArrayList<XmlSuite>();\r\n\t\tsuits.add(suite);\r\n\r\n\r\n\t\tList<XmlPackage> xpackage=new ArrayList<XmlPackage>();\r\n\t\txpackage.add(new XmlPackage(TestProperties.TESTNG_PACKAGE.toString()));\r\n\r\n\t\t\r\n\t\tXmlTest test=new XmlTest(suite);\r\n\t\ttest.setPackages(xpackage);\r\n\t\tString groups=TestProperties.TESTNG_GROUP.toString();\r\n\t\tString groupArray[]=groups.split(\",\");\r\n\t\tList<String> includedGroups=new ArrayList<String>();\r\n\t\tincludedGroups.addAll(Arrays.asList(groupArray));\r\n\t\ttest.setIncludedGroups(includedGroups);\r\n\t\r\n\t\t\r\n\t\tTestNG tng=new TestNG();\r\n\t\ttng.setOutputDirectory(System.getProperty(\"user.dir\")+\"\\\\test-output\\\\\");\r\n\t\ttng.setXmlSuites(suits);\r\n\t\ttng.addListener((ITestNGListener) listener);\r\n\t\ttng.run();\r\n\t\tSystem.exit(0);\r\n\t}", "@Test(dataProviderClass = DataProviderUtils.class, dataProvider = \"excelDataReader\", groups = {\"Sprint25\", \"Password\"}, \r\n\t\t\tdescription = \"Task area with GOTO items only\")\r\n\tpublic void SprintTest25_9_5(HashMap<String,String> dataValues, String driverType) throws Exception {\r\n\r\n\t\tdriver = null; \r\n\t\tConcurrentHashMap <String, String> dataPool = new ConcurrentHashMap <String, String>(dataValues);\r\n\r\n\t\ttry {\r\n\r\n\t\t\t//1. Login to Configuration\r\n\t\t\t//--------------------------\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\t\t\tdriver.get(configURL);\r\n\r\n\t\t\tLoginPage loginPage = new LoginPage(driver);\r\n\t\t\tConfigurationPage configurationPage = loginPage.loginToConfigurationUI(userName, password);\r\n\r\n\t\t\tLog.message(\"1. Logged in to Configuiration\");\r\n\r\n\t\t\t//2. Set the required settings\r\n\t\t\t//----------------------------\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(\"Vault-specific settings>>\" + testVault);\r\n\r\n\t\t\tConfigurationPanel configSettingsPanel = new ConfigurationPanel(driver);\r\n\t\t\tconfigSettingsPanel.setLayout(dataPool.get(\"Layout\"));\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.saveSettings())\r\n\t\t\t\tthrow new Exception(\"Configuration settings are not saved.\");\r\n\r\n\t\t\tconfigurationPage.logOut();\r\n\r\n\t\t\tLog.message(\"2. Set the required settings\");\r\n\r\n\t\t\t//3. Login to the Test vault\r\n\t\t\t//---------------------------\r\n\t\t\tdriver.get(loginURL);\r\n\t\t\tHomePage homePage = loginPage.loginToWebApplication(userName, password, testVault);\r\n\r\n\r\n\t\t\tLog.message(\"3. Login to the Test Vault.\");\r\n\r\n\t\t\t//Verification: To verify if the Java applet is not loaded\r\n\t\t\t//---------------------------------------------------------\r\n\t\t\tboolean flag = false;\r\n\t\t\ttry {\r\n\t\t\t\tWebElement GoToBar = driver.findElement(By.cssSelector(\"body[class='ui-widget ui-layout-container']>div[class='ui-layout-west ui-layout-pane ui-layout-pane-west']\"));\r\n\t\t\t\tif(GoToBar.isDisplayed() && GoToBar.isEnabled())\r\n\t\t\t\t\tflag = true;\r\n\t\t\t}\r\n\r\n\t\t\tcatch (Exception e) {\r\n\t\t\t\tif (e.getClass().toString().contains(\"NoSuchElementException\")) \r\n\t\t\t\t\tflag = false;\r\n\t\t\t} //End catch\r\n\r\n\t\t\tif(!flag)\r\n\t\t\t\tLog.fail(\"Tets Case Failed. The GoTo pane was not visible.\", driver);\r\n\t\t\telse if(!homePage.isTaskPaneDisplayed())\r\n\t\t\t\tLog.pass(\"Test Case Passed. The task pane was not displayed, Java applet was not enabled as expected.\");\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test Case Failed. The task pane was displayed.\", driver);\r\n\r\n\t\t\tdriver.get(configURL);\r\n\r\n\t\t\tconfigurationPage = new ConfigurationPage(driver);\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(\"Vault-specific settings>>\" + testVault);\r\n\r\n\t\t\tconfigSettingsPanel.setLayout(Caption.ConfigSettings.Config_Default.Value);\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.saveSettings())\r\n\t\t\t\tthrow new Exception(\"Configuration settings are not saved.\");\r\n\r\n\t\t}\r\n\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tLog.exception(e, driver);\r\n\t\t}\r\n\r\n\t\tfinally {\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t}\r\n\r\n\t}", "private void invokeConfigurationMethod(Object[] instances,\n ITestNGMethod tm,\n Object[] params,\n boolean isClass,\n ITestResult testResult)\n throws InvocationTargetException, IllegalAccessException \n {\n // Mark this method with the current thread id\n tm.setId(ThreadUtil.currentThreadInfo());\n\n for(Object targetInstance : instances) {\n InvokedMethod im= new InvokedMethod(targetInstance,\n tm,\n params,\n false, /* isTest */\n isClass, /* ??? */\n System.currentTimeMillis());\n\n runInvokedMethodListeners(true /* before */, im, testResult);\n m_notifier.addInvokedMethod(im);\n\n try {\n Reporter.setCurrentTestResult(testResult);\n MethodHelper.invokeMethod(tm.getMethod(), targetInstance, params);\n } \n finally {\n Reporter.setCurrentTestResult(testResult);\n runInvokedMethodListeners(false /* after */, im, testResult);\n } \n }\n }", "@Test\n\tpublic void data() throws IOException {\n\t\tString expectedtitle = \"Administrator - Home - vtiger CRM 5 - Commercial Open Source CRM\";\n\t\tString actualTitle = driver.getTitle();\n\t\tAssert.assertEquals(actualTitle, expectedtitle);\n\t\t/**\n\t\t * step2:create object of home page\n\t\t */\n\n\t\thp.ClickOnleadModule();\n\t\t/**\n\t\t * step3: create an object of Lead page\n\t\t */\n\n\t\tlp.createlead();\n\t\t/**\n\t\t * step4: select the option of lead page\n\t\t */\n\t\tWebElement selection = lp.getSalutation();\n\t\tlib.select(selection, 1);\n\n\t\t/**\n\t\t * step5:taking the data from excel and put in lead page\n\t\t */\n\t\tString firstname = flib.getExcelData(\"sheet2\", 1, 0) + lib.getRanDomNum();\n\t\tString lastname = flib.getExcelData(\"sheet2\", 1, 1) + lib.getRanDomNum();\n\t\tString company = flib.getExcelData(\"sheet2\", 1, 2) + lib.getRanDomNum();\n\n\t\t/**\n\t\t * step6:putting the data into lead page\n\t\t */\n\n\t\tlp.leadinformation(firstname, lastname, company);\n\t\tlp.savebtn();\n\n\t\t// ld.getClickOnFirstName();\n\t\t// ld.getClickOnLastName();\n\t\t// ld.getClickOnCompany();\n\t}", "@Test\n\n public void verifyRegistrationPageSLT() throws InterruptedException {\n ReadFromPropFile readFromPropFileObj = new ReadFromPropFile(\"RegiProfile.properties\");\n RegisterHealthcareProfPO registerHealthcareProfPOObj = new RegisterHealthcareProfPO(driver);\n\n //**********************Registration Screen************************************//\n\n //1. Click \"Sign in\" button\n Assert.assertTrue(registerHealthcareProfPOObj.clickOnLinkBtn(registerHealthcareProfPOObj.SignIN_xpath),\"Unable to click on SignIn link \");\n ExtentTestManager.getTest().log(LogStatus.PASS, \"Click on SignIn link \", \"User should able to click on sign in link\");\n\n //3. Click on \"Click Here\" button for healthcare office.\n Assert.assertTrue(registerHealthcareProfPOObj.clickOnLinkBtn(registerHealthcareProfPOObj.HireReg_xpath),\"Unable to 'Click Here' button\");\n ExtentTestManager.getTest().log(LogStatus.PASS, \"Click on 'Click Here' button \", \"User should able to Click on 'Click Here' button \");\n\n //4.Enter \"Facility\" name\n Assert.assertTrue(registerHealthcareProfPOObj.enterTextInInputBtn(registerHealthcareProfPOObj.FacilityName_xpath,readFromPropFileObj.getFacilityName()),\"Unable to enter facilityName\");\n ExtentTestManager.getTest().log(LogStatus.PASS, \"Enter facility name \", \"User should able to enter on facility name \");\n\n //5.Enter \"First name\"\n Assert.assertTrue(registerHealthcareProfPOObj.enterTextInInputBtn(registerHealthcareProfPOObj.FName_xpath, readFromPropFileObj.getFirstName()),\"Unable to enter First Name\");\n ExtentTestManager.getTest().log(LogStatus.PASS, \"Enter first name \", \"User should able to enter first name \");\n\n //5A.Enter \"last name\"\n Assert.assertTrue(registerHealthcareProfPOObj.enterTextInInputBtn(registerHealthcareProfPOObj.LName_xpath, readFromPropFileObj.getLastName()),\"Unable to get LastName\");\n ExtentTestManager.getTest().log(LogStatus.PASS, \"Enter last name \", \"User should able to enter on last name \");\n\n //6.Enter EmailID\n Assert.assertTrue(registerHealthcareProfPOObj.enterTextInInputBtn(registerHealthcareProfPOObj.Email_xpath, readFromPropFileObj.getEmail1()),\"Unable to enter emailID\");\n ExtentTestManager.getTest().log(LogStatus.PASS, \"Enter EmailID \", \"User should able to enter EmailID\");\n\n //7.Enter phone number\n Assert.assertTrue(registerHealthcareProfPOObj.enterTextInInputBtn(registerHealthcareProfPOObj.Phone_xpath, readFromPropFileObj.getphone()),\"Unable to enter ph\");\n ExtentTestManager.getTest().log(LogStatus.PASS, \"Enter phone number \", \"User should able to enter phone number\");\n\n //8.Enter department\n Assert.assertTrue(registerHealthcareProfPOObj.enterTextInInputBtn(registerHealthcareProfPOObj.Dept_xath, readFromPropFileObj.getDept()),\"Unable to enter Dept\");\n ExtentTestManager.getTest().log(LogStatus.PASS, \"Enter department \", \"User should able to enter department\");\n\n //9.Enter address\n Assert.assertTrue(registerHealthcareProfPOObj.enterTextInInputBtn(registerHealthcareProfPOObj.Address_xpath, readFromPropFileObj.getAddress()),\"Unable to enter addrees\");\n ExtentTestManager.getTest().log(LogStatus.PASS, \"Enter address \", \"User should able to enter address\");\n\n //10.Enter city\n Assert.assertTrue(registerHealthcareProfPOObj.enterTextInInputBtn(registerHealthcareProfPOObj.City_xpath, readFromPropFileObj.getCity()),\"Unable to enter city\");\n ExtentTestManager.getTest().log(LogStatus.PASS, \"Enter department \", \"User should able to enter department\");\n\n ((JavascriptExecutor) driver).executeScript(\"window.scrollBy(0,3000)\");\n\n //11.Select State\n Assert.assertTrue(registerHealthcareProfPOObj.selectFromDropDownBtn(registerHealthcareProfPOObj.State_xpath, registerHealthcareProfPOObj.State1_xpath),\"Unable to select state\");\n ExtentTestManager.getTest().log(LogStatus.PASS, \"Select state \", \"User should able to select state\");\n\n //12.Enter zip code\n Assert.assertTrue(registerHealthcareProfPOObj.enterTextInInputBtn(registerHealthcareProfPOObj.Zip_xpath, readFromPropFileObj.getZip()),\"Unable to enter zip\");\n ExtentTestManager.getTest().log(LogStatus.PASS, \"Enter zip code \", \"User should able to enter zip code\");\n\n //13.Click \"Registor Now\" button\n Assert.assertTrue(registerHealthcareProfPOObj.clickOnLinkBtn(registerHealthcareProfPOObj.RegisterNow_xpath),\"Unable to click on register now\");\n ExtentTestManager.getTest().log(LogStatus.PASS, \"Click on 'Register Now'\", \"User should able to Click on 'Register Now' \");\n\n //14.User registered successfully and message should display - \"check inbox to verify your account\".\n String expectedMessage = \"Check inbox to verify your account.\";\n Assert.assertEquals(registerHealthcareProfPOObj.findText(registerHealthcareProfPOObj.VerifyAcct_xpath),expectedMessage);\n ExtentTestManager.getTest().log(LogStatus.PASS, \"User should see toast message 'Check inbox to verify your account'\", \"User able to see the toast message\");\n\n }", "@Override\n public int countTestCases()\n {\n return 1;//_testCaseCount;\n }", "@Test(dataProviderClass = DataProviderUtils.class, dataProvider = \"excelDataReader\",groups = {\"Sprint41\"}, description = \"Enabling Automatic Login checkbox should enable user name, password, domain and document vault fields based on the default authentication type\")\r\n\tpublic void SprintTest41_8_1A(HashMap<String,String> dataValues, String driverType) throws Exception {\r\n\r\n\t\tdriver = null; \r\n\r\n\t\ttry {\r\n\r\n\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\t\t\tConcurrentHashMap <String, String> dataPool = new ConcurrentHashMap <String, String>(dataValues);\r\n\r\n\t\t\tConfigurationPage configurationPage = LoginPage.launchDriverAndLoginToConfig(driver, true); //Launched driver and logged in\r\n\r\n\t\t\t//Step-1 : Navigate to General in tree view\r\n\t\t\t//-----------------------------------------\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(Caption.ConfigSettings.GeneralSettings.Value + \">>\" + Caption.ConfigSettings.General.Value);\r\n\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.getPageName().toUpperCase().equalsIgnoreCase(\"GENERAL - GENERAL SETTINGS\"))\r\n\t\t\t\tthrow new Exception(\"General settings page in configuration is not opened.\");\r\n\r\n\t\t\tLog.message(\"1. Navigated to General page.\");\r\n\r\n\t\t\t//Step-2 : Enable Default authentication type \r\n\t\t\t//-------------------------------------------\r\n\r\n\t\t\tconfigurationPage.configurationPanel.setDefaultAuthType(dataPool.get(\"AuthenticationType\")); //Enable automatic login checkbox\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.getDefaultAuthType().equals(dataPool.get(\"AuthenticationType\")))\r\n\t\t\t\tthrow new Exception(\"Default authentication type (\" + dataPool.get(\"AuthenticationType\") + \") check box is not enabled.\");\r\n\r\n\t\t\tLog.message(\"2. Default authentication type (\" + dataPool.get(\"AuthenticationType\") + \") check box is enabled.\");\r\n\r\n\t\t\t//Step-3 : Enable Automatic Login check box\r\n\t\t\t//-----------------------------------------\r\n\t\t\tconfigurationPage.configurationPanel.setAutoLogin(true); //Enable automatic login checkbox\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.getAutoLogin())\r\n\t\t\t\tthrow new Exception(\"Automatic login check box is not enabled.\");\r\n\r\n\t\t\tLog.message(\"3. Automatic login check box is enabled.\");\r\n\r\n\t\t\t//Verification : Verify that User name, password, domain and vault fields are in enabled state based on the authentication type\r\n\t\t\t//-----------------------------------------------------------------------------------------------------------------------------\r\n\t\t\tString addlInfo = \"\";\r\n\t\t\tString passInfo = \"\";\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.isAutoLoginUserNameEnabled()) //Checks if User name enabled\r\n\t\t\t\taddlInfo = \"Auto Login User Name is not enabled;\";\r\n\t\t\telse\r\n\t\t\t\tpassInfo = \"User name,\";\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.isAutoLoginPasswordEnabled()) //Checks if User name enabled\r\n\t\t\t\taddlInfo += \"Auto Login Password is not enabled;\";\r\n\t\t\telse\r\n\t\t\t\tpassInfo += \" Password,\";\r\n\r\n\t\t\tif (configurationPage.configurationPanel.getDefaultAuthType().equalsIgnoreCase(\"Windows user\"))\r\n\t\t\t\tif (!configurationPage.configurationPanel.isAutoLoginDomainEnabled()) //Checks if User name enabled\r\n\t\t\t\t\taddlInfo += \"Auto Login Domain is not enabled;\";\r\n\t\t\t\telse\r\n\t\t\t\t\tpassInfo += \" Domain,\";\r\n\r\n\t\t\tif (!configurationPage.configurationPanel.isAutoLoginVaultEnabled()) //Checks if User name enabled\r\n\t\t\t\taddlInfo += \"Auto Login Vault is not enabled;\";\r\n\t\t\telse\r\n\t\t\t\tpassInfo += \" Select vault\";\r\n\r\n\t\t\tif (addlInfo.equals(\"\")) //Verifies default layout have selected default custom layout\r\n\t\t\t\tLog.pass(\"Test case Passed. Enabling auto login enabled (\" + passInfo + \") for the default authentication type (\" + dataPool.get(\"AuthenticationType\") + \").\");\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test case Failed. Enabling auto login is not as expected. Additional information : \" \r\n\t\t\t\t\t\t+ addlInfo, driver);\r\n\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tLog.exception(e, driver);\r\n\t\t} //End catch\r\n\r\n\t\tfinally {\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t} //End finally\r\n\r\n\t}", "public static void main(String[] args) throws Exception {\n \n ExcelUtils.setExcelFile(Constants.Path_TestData + Constants.File_TestData,\"Sheet1\");\n \t System.out.println(\"Total Number of Rows in the excel is : \"+ExcelUtils.rowCount());\n \t System.out.println(\"Total Number of Columns in the excel is : \"+ExcelUtils.columnCount());\n\n System.setProperty(\"webdriver.gecko.driver\",driverPath);\n driver = new FirefoxDriver();\n \n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n \n driver.get(Constants.URL);\n \n SignIn_Action.Execute(driver);\n \n System.out.println(\"Login Successfully, now it is the time to Log Off buddy.\");\n \n Home_Page.lnk_LogOut(driver).click(); \n \n driver.quit();\n \n //This is to send the PASS value to the Excel sheet in the result column.\n \n ExcelUtils.setCellData(\"Pass\", 1, 3);\n \n }", "private JDefinedClass addClassVariablesForTestCaseClass (JCodeModel codeModel, JDefinedClass testCaseClass, String testExecutionEngine) {\n\t\tJClass testCaseClassReference = codeModel.ref(\"com.hcl.atf.taf.TestCase\");\r\n\t\tJClass testStepClassReference = codeModel.ref(\"com.hcl.atf.taf.TestStep\");\r\n\t\tJClass consoleWriterReference = codeModel.directClass(\"com.hcl.atf.taf.ConsoleWriter\");\r\n\t\tJClass mainClassReference = codeModel.directClass(\"com.hcl.atf.taf.Main\");\r\n\t\tJClass evidenceCaptureReference = null;\r\n\t\tif (testExecutionEngine.equals(TAFConstants.TESTENGINE_SELENIUM)) {\r\n\t\t\tevidenceCaptureReference = codeModel.directClass(\"com.hcl.atf.taf.seleniumUtilities.EvidenceCapture\");\r\n\t\t\tJClass ByReference = codeModel.directClass(\"org.openqa.selenium.By\");\r\n\t\t\tJClass InternetExplorerDriverReference = codeModel.directClass(\"org.openqa.selenium.ie.InternetExplorerDriver\");\r\n\t\t\tJClass FirefoxDriverReference = codeModel.directClass(\"org.openqa.selenium.firefox.FirefoxDriver\");\r\n\t\t} else if (testExecutionEngine.equals(TAFConstants.TESTENGINE_SEETEST)) {\r\n\t\t\tevidenceCaptureReference = codeModel.directClass(\"com.hcl.atf.taf.seeTestUtilities.EvidenceCapture\");\r\n\t\t} \t\r\n\t\t\r\n\t\tJFieldVar testCaseField = testCaseClass.field(JMod.PUBLIC, testCaseClassReference, \"testCase\");\r\n\t\tJFieldVar testStepField = testCaseClass.field(JMod.PUBLIC, testStepClassReference, \"testStep\");\r\n\t\tJFieldVar consoleWriterField = testCaseClass.field(JMod.PUBLIC, consoleWriterReference, \"taf\");\r\n\t\r\n\t\t// 2.c Test execution API references\r\n\t\tif (testExecutionEngine.equals(TAFConstants.TESTENGINE_SEETEST)) {\r\n\t\r\n\t\t\tJClass seeTestClientReference = codeModel.ref(\"com.experitest.client.Client\");\r\n\t\t\tJFieldVar seeTestClient = testCaseClass.field(JMod.PUBLIC, seeTestClientReference, \"client\");\r\n\t\t\tJFieldVar evidenceCaptureVar = testCaseClass.field(JMod.PUBLIC, evidenceCaptureReference, \"evidenceCapture\");\r\n\t\t} else if (testExecutionEngine.equals(TAFConstants.TESTENGINE_SELENIUM)) {\r\n\t\r\n\t\t\tJClass WebDriverReference = codeModel.ref(\"org.openqa.selenium.WebDriver\");\r\n\t\t\tJClass WebElementReference = codeModel.ref(\"org.openqa.selenium.WebElement\");\r\n\t\t\tJClass ActionsReference = codeModel.ref(\"org.openqa.selenium.interactions.Actions\");\r\n\t\t\tJFieldVar driver = testCaseClass.field(JMod.PUBLIC, WebDriverReference, \"driver\");\r\n\t\t\tJFieldVar element = testCaseClass.field(JMod.PUBLIC, WebElementReference, \"element\");\r\n\t\t\tJFieldVar actor = testCaseClass.field(JMod.PUBLIC, ActionsReference, \"actor\");\r\n\t\t\tJFieldVar webURL = testCaseClass.field(JMod.PUBLIC, codeModel.ref(java.lang.String.class), \"webURL\");\r\n\t\t\tJFieldVar evidenceCaptureVar = testCaseClass.field(JMod.PUBLIC, evidenceCaptureReference, \"evidenceCapture\");\r\n\t\t}\r\n\t\t// 2.d Add standard reference variables\r\n\t\tJFieldVar result = testCaseClass.field(JMod.PUBLIC, codeModel.BOOLEAN, \"status\");\r\n\t\tJFieldVar observedOutput = testCaseClass.field(JMod.PUBLIC, codeModel.ref(java.lang.String.class), \"observedOutput\");\r\n\t\tJFieldVar executionRemarks = testCaseClass.field(JMod.PUBLIC, codeModel.ref(java.lang.String.class), \"executionRemarks\");\r\n\t\tJFieldVar failureRemarks = testCaseClass.field(JMod.PUBLIC, codeModel.ref(java.lang.String.class), \"failureRemarks\");\r\n\t\tJFieldVar screenShotPath = testCaseClass.field(JMod.PUBLIC, codeModel.ref(java.lang.String.class), \"screenShotPath\");\r\n\t\tJFieldVar screenShotLabel = testCaseClass.field(JMod.PUBLIC, codeModel.ref(java.lang.String.class), \"screenShotLabel\");\r\n\t\tJFieldVar devicePlatform = testCaseClass.field(JMod.PUBLIC, codeModel.ref(java.lang.String.class), \"devicePlatform\");\r\n\t\tJFieldVar runListId = testCaseClass.field(JMod.PUBLIC, codeModel.ref(java.lang.String.class), \"runListId\");\r\n\t\tJFieldVar testScriptQualifiedName = testCaseClass.field(JMod.PUBLIC, codeModel.ref(java.lang.String.class), \"testScriptQualifiedName\");\r\n\t\ttestScriptQualifiedName.assign(JExpr.lit(\"\"));\r\n\t\tJFieldVar testScriptFileName = testCaseClass.field(JMod.PUBLIC, codeModel.ref(java.lang.String.class), \"testScriptFileName\");\r\n\t\ttestScriptFileName.assign(JExpr.lit(\"\"));\r\n\t\tJFieldVar testPriority = testCaseClass.field(JMod.PUBLIC, codeModel.ref(java.lang.String.class), \"testPriority\");\r\n\t\ttestPriority.assign(JExpr.lit(\"\"));\r\n\t\treturn testCaseClass;\r\n\t}", "private void excelmeth() {\nSystem.out.println(\"my new test method\");\n}", "@Test(dataProviderClass = DataProviderUtils.class, dataProvider = \"excelDataReader\", groups = {\"Sprint25\", \"UI\"}, \r\n\t\t\tdescription = \"General settings 'Default Authentication type'\")\r\n\tpublic void SprintTest25_10_1F(HashMap<String,String> dataValues, String driverType) throws Exception {\r\n\r\n\t\tdriver = null; \r\n\t\tConcurrentHashMap <String, String> dataPool = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\t//1. Login to Configuration\r\n\t\t\t//--------------------------\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\t\t\tdataPool = new ConcurrentHashMap <String, String>(dataValues);\r\n\t\t\tdriver.get(configURL);\r\n\r\n\t\t\tLoginPage loginPage = new LoginPage(driver);\r\n\t\t\tConfigurationPage configurationPage = loginPage.loginToConfigurationUI(userName, password);\r\n\r\n\t\t\tLog.message(\"1. Logged in to Configuiration\");\r\n\r\n\t\t\t//2. Click the 'General' link \r\n\t\t\t//----------------------------\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(\"General\");\r\n\r\n\r\n\t\t\tLog.message(\"2. Clicked the 'General' link.\");\r\n\r\n\t\t\t//Verification: To verify the 'Default Authentication type' label\r\n\t\t\t//----------------------------------------------------------------\r\n\t\t\tWebElement configTitle = driver.findElement(By.xpath(\"//td[contains(text(), '\" + dataPool.get(\"Caption\") + \"')]\"));\r\n\r\n\t\t\tif(configTitle.isDisplayed())\r\n\t\t\t\tLog.pass(\"Test Case Passed. The 'Default Authentication type' label was displayed.\");\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test Case Failed. The 'Default Authentication type' label was not displayed.\", driver);\r\n\r\n\t\t}\r\n\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tLog.exception(e, driver);\r\n\t\t}\r\n\r\n\t\tfinally {\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t}\r\n\r\n\t}", "@Test(dataProviderClass = DataProviderUtils.class, dataProvider = \"excelDataReader\", groups = {\"Sprint25\", \"UI\"}, \r\n\t\t\tdescription = \"Task area 'Go To shortcuts'\")\r\n\tpublic void SprintTest25_10_5E(HashMap<String,String> dataValues, String driverType) throws Exception {\r\n\r\n\t\tdriver = null; \r\n\t\tConcurrentHashMap <String, String> dataPool = null;\r\n\r\n\t\ttry {\r\n\r\n\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\t\t\tdataPool = new ConcurrentHashMap <String, String>(dataValues);\r\n\r\n\t\t\t//1. Login to Configuration\r\n\t\t\t//--------------------------\r\n\t\t\tdriver.get(configURL);\r\n\r\n\t\t\tLoginPage loginPage = new LoginPage(driver);\r\n\t\t\tConfigurationPage configurationPage = loginPage.loginToConfigurationUI(userName, password);\r\n\r\n\t\t\tLog.message(\"1. Logged in to Configuiration\");\r\n\r\n\t\t\t//2. Click the Task area link \r\n\t\t\t//----------------------------\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(Caption.ConfigSettings.VaultSpecificSettings.Value + \">>\" + testVault + \">>\" + Caption.ConfigSettings.Config_TaskArea.Value);\r\n\r\n\r\n\t\t\tLog.message(\"2. Clicked the Task area link.\");\r\n\r\n\t\t\t//Verification: To verify the 'Go To shortcuts' label\r\n\t\t\t//----------------------------------------------------\r\n\t\t\tWebElement label = driver.findElement(By.xpath(\"//td[contains(text(), '\" + dataPool.get(\"Label\") + \"')]\"));\r\n\t\t\tif(label.isDisplayed())\r\n\t\t\t\tLog.pass(\"Test Case Passed. The Option was changed to \"+dataPool.get(\"Label\"));\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test Case Failed. The option \" + dataPool.get(\"Label\") + \" was not found.\", driver);\r\n\r\n\t\t}\r\n\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tLog.exception(e, driver);\r\n\t\t}\r\n\r\n\t\tfinally {\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) throws Exception {\n\t\tFile java = new File(\"BalanceInfo.java\");\n\t\tparseJava(java);\n\t\texportToExcel();\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t \n\t\tResult result1 = JUnitCore.runClasses(TestUnitForCreate.class);\n\t for (Failure failure : result1.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result1.wasSuccessful());\n\n\t Result result2 = JUnitCore.runClasses(TestUnitForReadByCalimNumber.class);\n\t for (Failure failure : result2.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result2.wasSuccessful());\n\t \n\t Result result3 = JUnitCore.runClasses(TestUnitForReadByLossDate.class);\n\t for (Failure failure : result3.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result3.wasSuccessful());\n\t \n\t\tResult result4 = JUnitCore.runClasses(TestUnitForUpdate.class);\n\t\tfor (Failure failure : result4.getFailures()) {\n\t\t\tSystem.out.println(failure.toString());\n\t\t}\n\t\tSystem.out.println(result4.wasSuccessful());\n\t \n\t Result result5 = JUnitCore.runClasses(TestUnitForReadVehicle.class);\n\t for (Failure failure : result5.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result5.wasSuccessful());\n \n\t Result result6 = JUnitCore.runClasses(TestUnitForDelete.class);\n\t for (Failure failure : result6.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result6.wasSuccessful());\n\t \n\t}", "public interface ComTestEnvironment {\n\n /**\n * Gets the current test execution info.\n *\n * @return the {@link ComTestExecutionInfo} dispatch\n * @throws ETComException in case of a COM exception\n */\n ComTestExecutionInfo getTestExecutionInfo() throws ETComException;\n\n /**\n * Starts the execution of the specified package file. The package must be already opened with\n * {@link ComApplication#openPackage}. If it is not opened a call of this function will raise an error.\n *\n * @param path the full path name of the package file to execute\n * @param runTraceAnalysis specifies whether the trace analysis should be executed\n * @param runTest specifies whether the test should be executed\n * @param parameters the package parameters to populate as test variables for the test and the trace analysis\n * @return the {@link ComTestExecutionInfo} dispatch\n * @throws ETComException if the package was not opened before or the format of the parameter values is wrong\n */\n ComTestExecutionInfo executePackage(String path, boolean runTraceAnalysis, boolean runTest,\n Map<String, String> parameters) throws ETComException;\n\n /**\n * Starts the execution of the specified project file. The project must be already opened with\n * {@link ComApplication#openProject}. If it is not opened a call of this function will raise an error.\n *\n * @param path the full path name of the project file\n * @param closeProgressDialog determines whether the progress dialog will be closed when finished\n * @param jobExecutionMode specifies whether and how the analysis jobs should be executed:\n * <pre>\n * 0 .. no job execution\n * 1 .. sequential job execution (default)\n * 2 .. parallel job execution\n * 5 .. sequential job execution with separate test report\n * 6 .. parallel job execution with separate test report\n * </pre>\n * @return the {@link ComTestExecutionInfo} dispatch\n * @throws ETComException if the project was not opened before\n */\n ComTestExecutionInfo executeProject(String path, boolean closeProgressDialog, int jobExecutionMode)\n throws ETComException;\n\n /**\n * Generates a handler based test report on the file system.\n *\n * @param dbFile the full path name of the data base file\n * @param reportDir the full path name of output directory\n * @param reportFormat the name of the report format or handler which should be used\n * @param waitUntilFinished defines whether the API call should block until generation is finished\n * @param parameters the configuration parameters\n * @return {@code true} if successful, {@code false} otherwise\n * @throws ETComException in case of a COM exception or invalid parameters\n */\n boolean generateTestReportDocumentFromDB(String dbFile, String reportDir, String reportFormat,\n boolean waitUntilFinished, Map<String, String> parameters)\n throws ETComException;\n\n /**\n * Generates a handler based test report on the file system.\n *\n * @param dbFile the full path name of the data base file\n * @param reportDir the full path name of output directory\n * @param reportConfig the full path to persisted report generator settings file (XML)\n * @param waitUntilFinished defines whether the API call should block until generation is finished\n * @return {@code true} if successful, {@code false} otherwise\n * @throws ETComException in case of a COM exception or invalid parameters\n */\n boolean generateTestReportDocument(String dbFile, String reportDir, String reportConfig, boolean waitUntilFinished)\n throws ETComException;\n}", "public void signupInitialPage(WebDriver driver)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tExcelLib xllib = new ExcelLib();\r\n\t\t\t\r\n\t\t\tint rowCount = xllib.getRowCount(\"SignupDinnerlab\");\r\n\t\t\t//For loop:Fetch data from excel input configuration file(excel sheet)\r\n\t\t\tfor(i=1;i<= rowCount;i++)\r\n\t\t\t{\r\n\t\t\t\tsignupURL = xllib.getExcelData(\"SignupDinnerlab\", i, 0);\r\n\t\t\t\tfirstName = xllib.getExcelData(\"SignupDinnerlab\", i, 1);\r\n\t\t\t\tlastName = xllib.getExcelData(\"SignupDinnerlab\", i, 2);\r\n\t\t\t\temail = xllib.getExcelData(\"SignupDinnerlab\", i, 3);\r\n\t\t\t\tconfirmemail = xllib.getExcelData(\"SignupDinnerlab\", i, 4);\r\n\t\t\t\tpassword = xllib.getExcelData(\"SignupDinnerlab\", i, 5);\r\n\t\t\t\tconfirmpassword = xllib.getExcelData(\"SignupDinnerlab\", i, 6);\r\n\t\t\t\tphone = xllib.getExcelData(\"SignupDinnerlab\",i, 7);\r\n\t\t\t\tcity = xllib.getExcelData(\"SignupDinnerlab\",i, 8);\r\n\t\t\t\tstreet = xllib.getExcelData(\"SignupDinnerlab\",i, 9);\r\n\t\t\t\tbillingcity = xllib.getExcelData(\"SignupDinnerlab\",i, 10);\r\n\t\t\t\tstate = xllib.getExcelData(\"SignupDinnerlab\",i, 11);\r\n\t\t\t\tzipcode = xllib.getExcelData(\"SignupDinnerlab\",i, 12);\r\n\t\t\t\tcardholdersName = xllib.getExcelData(\"SignupDinnerlab\",i, 13);\r\n\t\t\t\tcardNumber = xllib.getExcelData(\"SignupDinnerlab\",i, 14);\r\n\t\t\t\tcardexpirymonth = xllib.getExcelData(\"SignupDinnerlab\",i, 15);\r\n\t\t\t\tcardexpiryyear = xllib.getExcelData(\"SignupDinnerlab\",i, 16);\r\n\t\t\t\tcvv = xllib.getExcelData(\"SignupDinnerlab\",i, 17);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tsignupstatus=signupActionPage(driver,signupURL,firstName,lastName,email,confirmemail,password,confirmpassword,phone,city);\r\n\t\t\t\tSystem.out.println(\"Status is :\"+signupstatus);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif(signupstatus)\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tlog.info(\"Signup page was successfull...\");\r\n\t\t\t\t\tSystem.out.println(\"Signup page was successfull\");\r\n\t\t\t\t\tlog.info(\"--------------------------------------\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tpaymentstatus=paymentActionPage(driver,street,billingcity,state,zipcode,cardholdersName,cardNumber,cardexpirymonth,cardexpiryyear,cvv);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(paymentstatus)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tisTestPassed=\"PASS\";\r\n\t\t\t\t\t\txllib.writeToExcel(\"SignupDinnerlab\", i, 18, isTestPassed);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(!paymentstatus)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tisTestPassed = \"FAIL\";\r\n\t\t\t\t\t\txllib.writeToExcel(\"SignupDinnerlab\", i, 18, isTestPassed);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if(!signupstatus)\r\n\t\t\t\t{\r\n\t\t\t\t\tlog.info(\"Signup page was Unsuccessfull...\");\r\n\t\t\t\t\tSystem.out.println(\"Signup page was Unsuccessfull\");\r\n\t\t\t\t\tlog.info(\"--------------------------------------\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}//end of for loop\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "private void generate_test_code()\n {\n int I;\n DataType[] ParamTypes = m_Problem.getParamTypes();\n DataType ReturnType = m_Problem.getReturnType();\n TestCase[] Cases = m_Problem.getTestCases();\n StringBuffer Code = new StringBuffer();\n\n Code.append(\"private:\\n\");\n\n // Generate the vector output function\n Code.append(\"\\ttemplate <typename T> string print_array(const vector<T> &V) { ostringstream os; os << \\\"{ \\\"; for (typename vector<T>::const_iterator iter = V.begin(); iter != V.end(); ++iter) os << \\'\\\\\\\"\\' << *iter << \\\"\\\\\\\",\\\"; os << \\\" }\\\"; return os.str(); }\\n\\n\");\n\n // Generate the verification function\n generate_verification_code(Code, ReturnType);\n\n // Generate the individual test cases\n Code.append(\"\\n\");\n\n /*\n * Generate the test wrapper function that can call\n * either all or individual test cases. (-1 for all)\n */\n Code.append(\"public:\\n\");\n Code.append(\"\\tvoid run_test(int Case) { \\n\");\n Code.append(\"\\t\\tint n = 0;\\n\\n\");\n for (I = 0; I < Cases.length; ++I)\n generate_test_case(I, Code, ParamTypes, ReturnType, Cases[I]);\n // next\n Code.append(\"\\t}\\n\");\n\n // Insert the cut tags\n Code.insert(0, k_BEGINCUT);\n Code.append(k_ENDCUT);\n\n m_Tags.put(k_TESTCODE, Code.toString());\n }", "public void giftOverviewInitialPage(WebDriver driver) throws InvalidFormatException, InterruptedException\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tExcelLib xllib = new ExcelLib();\r\n\t\t\t\r\n\t\t\trowCount= xllib.getRowCount(\"GiftOverview\");\r\n\t\t\tlog.info(\"*********************Gift Overview Logger Initialized***********************************************************************************************************************************************************************\");\r\n\t\t\tlog.info(\"Purchaser Email ||\"+\" Amount ||\" + \" Reason ||\" + \" Add Credits || \" + \" Subtract Credits || \" + \" Credit Status ||\" + \" First Name || \" + \" Last Name || \" + \" Credit Type || \" + \" Amount(Credited/Redeem) || \" + \" Sub Category || \" + \" Credit Time ||\" + \" Source\");\r\n\t \t\tlog.info(\"********************************************************************************************************************************************************************************************************************************\");\r\n\t\t\tfor (i = 1; i <= rowCount; i++) \r\n\t\t\t{\t\t\t\t\r\n\t\t\t\t//Reading View Edit Tickets values\r\n\t\t\t\tpurchaserEmail = xllib.getExcelData(\"GiftOverview\", i, 0);\r\n\t\t \t\tcode = xllib.getExcelData(\"GiftOverview\", i, 1);\r\n\t\t \t\t\r\n\t\t \t\t//Search criteria\r\n\t\t\t\tsearchCriteria(driver);\r\n\t\t\t\t\r\n\t\t \t\t//Calling gift Overview Actions method\r\n\t\t\t\trefundGiftActions(driver);\r\n\t\t \t\t\r\n\t\t\t\t//Calling clicking on go back link method\r\n\t\t\t\t//clickingOnGoBackLink(driver);\r\n\t\t\t\t\r\n\t\t \t\tif(verifyRefundStatus)\r\n\t\t\t\t{\r\n\t\t\t\t\tisTestPassed=\"PASS\";\r\n\t\t\t\t\txllib.writeToExcel(\"GiftOverview\", i, 2, isTestPassed);\r\n\t\t\t\t\txllib.writeToExcel(\"GiftOverview\", i, 3, membershipRefundID);\r\n\t\t\t\t\txllib.writeToExcel(\"GiftOverview\", i, 4, chargeID);\r\n\t\t\t\t\txllib.writeToExcel(\"GiftOverview\", i, 5, totalCashToRefund);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(verifyCreditsRefundID)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\txllib.writeToExcel(\"GiftOverview\", i, 6, creditsRefundID);\r\n\t\t\t\t\t}\r\n\t\t\t\t}else\r\n\t\t\t\t{\r\n\t\t\t\t\tisTestPassed=\"FAIL\";\r\n\t\t\t\t\txllib.writeToExcel(\"GiftOverview\", i, 2, isTestPassed);\r\n\t\t\t\t\txllib.writeToExcel(\"GiftOverview\", i, 3, isTestPassed);\r\n\t\t\t\t\txllib.writeToExcel(\"GiftOverview\", i, 4, isTestPassed);\r\n\t\t\t\t\txllib.writeToExcel(\"GiftOverview\", i, 5, isTestPassed);\r\n\t\t\t\t\txllib.writeToExcel(\"GiftOverview\", i, 6, isTestPassed);\r\n\t\t\t\t}\r\n\t\t\t }//End of FOR LOOP\r\n\t\t }catch(NullPointerException e)\r\n\t\t {\r\n\t\t\t e.printStackTrace();\r\n\t\t }\r\n\t}", "@Test\r\n\tpublic void registerUser () throws EncryptedDocumentException, InvalidFormatException, IOException\r\n\t{\r\n\t\t\r\n\t\t// Create an object of Home Page in order to click \"Register\" link\r\n\t\tHomePage homepage = new HomePage (driver);\r\n\t\thomepage.clickRegisterLink();\r\n\t\t\r\n\t\t\r\n\t\t/*Get the test data from Excel sheet, by invoking the Method written in ReadDataFromExcelSheet class and\r\n\t\t Set the Path of Test Data Sheet, and set the SheetName into String variable named - Path and SheetName respectively*/\r\n\t\t\r\n\t\tString path = \"./TestData/TestData.xlsx\";\r\n\t\tString Sheetname = \"RegisterData\";\r\n\t\t\r\n\t\tString firstname = ReadTestDataFromExcelSheet.readDataFromExcel(path, Sheetname, 1, 0);\r\n\t\tString lastname = ReadTestDataFromExcelSheet.readDataFromExcel(path, Sheetname, 1, 1);\r\n\t\tString email = ReadTestDataFromExcelSheet.readDataFromExcel(path, Sheetname, 1, 2);\r\n\t\tString address = ReadTestDataFromExcelSheet.readDataFromExcel(path, Sheetname, 1, 3);\r\n\t\tString city = ReadTestDataFromExcelSheet.readDataFromExcel(path, Sheetname, 1, 4);\r\n\t\tString state = ReadTestDataFromExcelSheet.readDataFromExcel(path, Sheetname, 1, 5);\r\n\t\tString postcode = ReadTestDataFromExcelSheet.readDataFromExcel(path, Sheetname, 1, 6);\r\n\t\tString username = ReadTestDataFromExcelSheet.readDataFromExcel(path, Sheetname, 1, 7);\r\n\t\tString password = ReadTestDataFromExcelSheet.readDataFromExcel(path, Sheetname, 1, 8);\r\n\t\tString cpassword = ReadTestDataFromExcelSheet.readDataFromExcel(path, Sheetname, 1, 8);\r\n\t\t\r\n\t\t// Pass the username and password data, which has been captured from Excel Sheet\r\n\t\t\r\n\t\tRegistrationPage register = new RegistrationPage(driver);\r\n\t\tregister.registerUser(firstname, lastname, \"9877876765\", email, address, city, state, postcode, username, password, cpassword);\t\r\n\t\t\r\n\t\t\r\n\t\tWebElement we = driver.findElement(By.xpath(\"//img[@src='/images/masts/mast_register.gif']\"));\r\n\t\tif (we.isDisplayed())\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Registration !! change\");\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}", "@Test(dataProviderClass = DataProviderUtils.class, dataProvider = \"excelDataReader\", groups = {\"Sprint25\", \"UI\"}, \r\n\t\t\tdescription = \"Task area 'View and Modify'\")\r\n\tpublic void SprintTest25_10_5C(HashMap<String,String> dataValues, String driverType) throws Exception {\r\n\r\n\t\tdriver = null; \r\n\t\tConcurrentHashMap <String, String> dataPool = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\t//1. Login to Configuration\r\n\t\t\t//--------------------------\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\t\t\tdataPool = new ConcurrentHashMap <String, String>(dataValues);\r\n\r\n\t\t\tdriver.get(configURL);\r\n\r\n\t\t\tLoginPage loginPage = new LoginPage(driver);\r\n\t\t\tConfigurationPage configurationPage = loginPage.loginToConfigurationUI(userName, password);\r\n\r\n\t\t\tLog.message(\"1. Logged in to Configuiration\");\r\n\r\n\t\t\t//2. Click the Task area link \r\n\t\t\t//----------------------------\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(Caption.ConfigSettings.VaultSpecificSettings.Value + \">>\" + testVault + \">>\" + Caption.ConfigSettings.Config_TaskArea.Value);\r\n\r\n\t\t\tLog.message(\"2. Clicked the Task area link.\");\r\n\r\n\t\t\t//Verification: To verify the 'View and Modify' label\r\n\t\t\t//-------------------------------------------------------------\r\n\t\t\tWebElement label = driver.findElement(By.xpath(\"//td[contains(text(), '\" + dataPool.get(\"Label\") + \"')]\"));\r\n\t\t\tif(label.isDisplayed())\r\n\t\t\t\tLog.pass(\"Test Case Passed. The Option was changed to \"+dataPool.get(\"Label\"));\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test Case Failed. The option \" + dataPool.get(\"Label\") + \" was not found.\", driver);\r\n\r\n\t\t}\r\n\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tLog.exception(e, driver);\r\n\t\t}\r\n\r\n\t\tfinally {\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t}\r\n\r\n\t}", "@Test\n public void baseCommandTests_part2() throws Exception {\n ExecutionSummary executionSummary = testViaExcel(\"unitTest_base_part2.xlsx\");\n assertPassFail(executionSummary, \"crypto\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"macro-test\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"repeat-test\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"expression-test\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"multi-scenario2\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"flow_controls\", new TestOutcomeStats(2, 14));\n }", "public void convertFile(String xlsFileName, String xmlFileName) throws IOException\n\t{\n\t try \n\t {\n\t Document newDoc = domBuilder.newDocument();\n\t Element rootElement = newDoc.createElement(\"suite\");\n\t rootElement.setAttribute(\"name\", \"Regression suite\");\n\t rootElement.setAttribute(\"verbose\", \"1\");\n\t \n\t \n\t \tnewDoc.appendChild(rootElement);\n\n\t \n\t Element rootElement2 = newDoc.createElement(\"listeners\");\n\t rootElement.appendChild(rootElement2);\n\n\t \n\t Element rootElement6 = newDoc.createElement(\"listener\");\n\t rootElement6.setAttribute(\"class-name\", \"com.dista.listeners.RetryListener\");\n\t rootElement2.appendChild(rootElement6);\n\t \n/*\t Element rootElement7 = newDoc.createElement(\"listener\");\n\t rootElement7.setAttribute(\"class-name\", \"com.dista.listeners.ExtentListener\");\n\t rootElement2.appendChild(rootElement7);*/\n\n/*\t Element rootElement8 = newDoc.createElement(\"listener\");\n\t rootElement8.setAttribute(\"class-name\", \"com.dista.listeners.CustomMethods\");\n\t rootElement2.appendChild(rootElement8);*/\n\t \n\t Element rootElement9 = newDoc.createElement(\"listener\");\n\t rootElement9.setAttribute(\"class-name\", \"com.dista.listeners.TestListener\");\n\t rootElement2.appendChild(rootElement9);\n\t \n\t \n\t FileInputStream ExcelFile;\n\t\t\tExcelFile = new FileInputStream(xlsFileName);\t\t//files stored at specified path contains URLs\n\t\t\tXSSFWorkbook ExcelWBook = new XSSFWorkbook(ExcelFile);\n\t\t\tXSSFSheet ExcelWSheet = ExcelWBook.getSheet(\"XML Data\");\n\t\t\tIterator <Row> ri = ExcelWSheet.iterator(); \n\t\t\tRow r = ri.next();\n\t\t\t\n\t\t\tboolean loop_condition2 = true, loop_condition3=true;\n\t\n\t\t\tdo\n\t\t\t{\n\t\t\t\t\n\t\t\t\tboolean loop_condition = true;\n\t\t\t\t\n\t\t\t\t//System.out.println(\"Text\"+r.getCell(0).getStringCellValue());\n\t\t\t\t\n\t\t\t\tElement rowElement = newDoc.createElement(\"test\");\n\t\t\t\trowElement.setAttribute(\"name\", r.getCell(0).getStringCellValue());\n\t\t\t\trootElement.appendChild(rowElement);\n\t\t\t\t\n\t\t\t\tElement curElement = newDoc.createElement(\"classes\");\n\t\t\t\trowElement.appendChild(curElement);\n\t\t\t\t\n\t\t\t\tElement curElement2 = newDoc.createElement(\"class\");\n\t curElement2.setAttribute(\"name\", \"com.dista.test.automation.\"+r.getCell(0).getStringCellValue());\n\t curElement.appendChild(curElement2); \n\t \n\t Element curElement3 = newDoc.createElement(\"methods\");\n\t curElement2.appendChild(curElement3);\n\t \n\t r= ri.next();\n\t \n\t while(loop_condition )\n\t {\n\t \t//System.out.println(r.getCell(1).getStringCellValue());\n\t \n\t \tString option=null;\n\t\n\t try\n\t {\n\t \tswitch (r.getCell(2).getStringCellValue())\n\t \t{\n\t \t\tcase \"Y\":\n\t \t\t\toption = \"include\";\n\t \t\t\tbreak;\n\t \t\t\t\n\t \t\tcase \"N\":\n\t \t\t\toption = \"exclude\";\n\t break;\n\t \n\t default:\n\t System.out.println(\"Invalid Data\");\n\t break;\n\t \t} \t\t\t\n\t }\n\t catch(NullPointerException npe)\n\t {\n\t \toption= \"exclude\";\n\t }\n\t \n\t //System.out.println(option);\n\t \t\tElement curElement4 = newDoc.createElement(option);\n\t \t\tcurElement4.setAttribute(\"name\", r.getCell(1).getStringCellValue());\n\t curElement3.appendChild(curElement4);\n\t \n\t\t if (ri.hasNext())\n\t\t {\n\t\t \tr= ri.next();\n\t\t \t\t\n\t\t try\n\t\t { \t\n\t\t \tif(!r.getCell(1).getStringCellValue().isEmpty())\n\t\t \t\tloop_condition= true;\n\t\t \telse\n\t\t \t\tloop_condition=false;\n\t\t \t}\n\t\t catch(NullPointerException npe)\n\t\t {\n\t\t \tloop_condition=false;\n\t\t }\n\t\t }\n\t\t else\n\t\t {\n\t\t \tloop_condition=false;\n\t\t \tloop_condition3= false;\n\t\t }\n\t }\n\t \n\t if(loop_condition3)\n\t {\n\t\t try\n\t\t { \t\n\t\t \tif(!r.getCell(0).getStringCellValue().isEmpty())\n\t\t \t\tloop_condition2= true;\n\t\t \telse\n\t\t \t\tloop_condition2=false;\n\t\t }\n\t\t catch(NullPointerException npe)\n\t\t {\n\t\t \tloop_condition2=false;\n\t\t }\n\t }\n\t else\n\t \tloop_condition2=false;\n\t\t\t}\n\t\t\twhile(loop_condition2);\n\t\n\t\t\t\n\t\t\tbaos = new ByteArrayOutputStream();\n\t\t\tosw = new OutputStreamWriter(baos);\n\t\n\t\t\tTransformerFactory tranFactory = TransformerFactory.newInstance();\n\t\t\tTransformer aTransformer = tranFactory.newTransformer();\n\t\t\taTransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\t\t\taTransformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\n\t\t\taTransformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"no\");\n\t DOMImplementation domImpl = newDoc.getImplementation();\n\t // <!DOCTYPE suite PUBLIC \"-//Oberon//YOUR PUBLIC DOCTYPE//EN\" \"YOURDTD.dtd\">\n\t //<!DOCTYPE suite SYSTEM \"http://testng.org/testng-1.0.dtd\">\n\n\t // <!DOCTYPE suite SYSTEM \"http://testng.org/testng-1.0.dtd\" >\n\t\t DocumentType doctype = domImpl.createDocumentType(\"doctype\",\n\t\t \t\t\"\", \"http://testng.org/testng-1.0.dtd\");\n\t\t aTransformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, doctype.getSystemId());\n\t \n\t Source src = new DOMSource(newDoc);\n\t Result result = new StreamResult(new File(xmlFileName));\n\t aTransformer.transform(src, result);\n\t\n\t osw.flush();\n\t System.out.println(new String(baos.toByteArray()));\n\t \n\t ExcelWBook.close();\n\t\n\t\t}\n\t catch (Exception exp) \n\t {\n\t \texp.printStackTrace();\n\t } \n\t \n\t osw.close();\n\t baos.close();\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\thtmlReporter = new ExtentHtmlReporter(\"C:\\\\Users\\\\Suresh Mylam\\\\eclipse-workspace\\\\TestNG_Listners\\\\Reports\\\\TestReport.html\");\r\n\t\textent = new ExtentReports();\r\n\t\textent.attachReporter(htmlReporter);\r\n\t\ttest= extent.createTest(\"TEst123\");\r\n\t\ttest.pass(\"pass\");\r\n\t\ttest.fail(\"fail\");\r\n\t\ttest.info(\"info\");\r\n\t\textent.flush();\r\n\t\tSystem.out.println(\"Done\");\r\n\r\n\t}", "@Test(dataProviderClass = DataProviderUtils.class, dataProvider = \"excelDataReader\", groups = {\"Sprint25\", \"UI\"}, \r\n\t\t\tdescription = \"General settings 'Force M-files user login'\")\r\n\tpublic void SprintTest25_10_1D(HashMap<String,String> dataValues, String driverType) throws Exception {\r\n\r\n\t\tdriver = null; \r\n\t\tConcurrentHashMap <String, String> dataPool = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\t//1. Login to Configuration\r\n\t\t\t//--------------------------\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\t\t\tdataPool = new ConcurrentHashMap <String, String>(dataValues);\r\n\r\n\t\t\tint count =0;\r\n\t\t\tdriver.get(configURL);\r\n\r\n\t\t\tLoginPage loginPage = new LoginPage(driver);\r\n\t\t\tConfigurationPage configurationPage = loginPage.loginToConfigurationUI(userName, password);\r\n\r\n\t\t\tLog.message(\"1. Logged in to Configuiration\");\r\n\r\n\t\t\t//2. Click the 'General' link \r\n\t\t\t//----------------------------\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(\"General\");\r\n\r\n\r\n\t\t\tLog.message(\"2. Clicked the 'General' link.\");\r\n\r\n\t\t\t//Verification: To verify the 'Force M-files user login' label\r\n\t\t\t//-------------------------------------------------------------\r\n\t\t\tList<WebElement> label = driver.findElements(By.className(\"listelement\"));\r\n\r\n\t\t\tfor(count =0; count < label.size(); count++) {\r\n\t\t\t\tif(label.get(count).getText().trim().equals(dataPool.get(\"Caption\")))\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tif(count != label.size() && label.get(count).isDisplayed())\r\n\t\t\t\tLog.pass(\"Test Case Passed. The 'Force M-files user login' label was displayed.\");\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test Case Failed. The 'Force M-files user login' label was not displayed.\", driver);\r\n\r\n\t\t}\r\n\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tLog.exception(e, driver);\r\n\t\t}\r\n\r\n\t\tfinally {\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t}\r\n\r\n\t}", "@BeforeSuite\n\tpublic void numofTestCases() throws ClassNotFoundException {\n\t\tappiumService.TOTAL_NUM_OF_TESTCASES=GetMethods.TotalTestcase(\"_Stability_\", this.getClass());\n\n\n\n\t}", "@Override\r\n public void runTests() {\r\n getTemperature();\r\n }", "@Test(dataProviderClass = DataProviderUtils.class, dataProvider = \"excelDataReader\", groups = {\"PageTitle\"}, \r\n\t\t\tdescription = \"Verify the page title field for Blank value\")\r\n\tpublic void TC_38635(HashMap<String,String> dataValues, String driverType) throws Exception {\r\n\r\n\t\tdriver = null; ConfigurationPage configPage = null; ConcurrentHashMap <String, String> dataPool = null;\r\n\r\n\t\ttry {\r\n\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\t\t\t//Step-1 : Login to MFiles Configuration Webpage\r\n\t\t\t//----------------------------------------------\r\n\t\t\tdataPool = new ConcurrentHashMap <String, String>(dataValues);\r\n\t\t\tconfigPage = LoginPage.launchDriverAndLoginToConfig(driver, true);//Launch the Configruation page\r\n\r\n\t\t\tLog.message(\"1. Logged into the configuration webpage\", driver);\r\n\r\n\t\t\t//Step-2 : Navigate to the General settings\r\n\t\t\t//-----------------------------------------\r\n\t\t\tconfigPage.treeView.clickTreeViewItem(\"General\");//Clicks the General settings in the configuration web page\r\n\r\n\t\t\tLog.message(\"2. Navigated to the General settings in the configuration webpage\", driver);\r\n\r\n\t\t\t//Step-3: Set the Page title in the configuration web page\r\n\t\t\t//--------------------------------------------------------\r\n\t\t\tconfigPage.configurationPanel.setPageTitle(dataPool.get(\"PageTitle\").replace(\"\\\"\", \"\"));//Enters the page title value in the configuration webpage\r\n\r\n\t\t\tLog.message(\"3. '\"+ dataPool.get(\"PageTitle\").replace(\"\\\"\", \"\") +\"' is set in the page title field in the configuration webpage.\", driver);\r\n\r\n\t\t\t//Verification: IF warning dialog is displayed while saving blank value in Page title field\r\n\t\t\t//------------------------------------------------------------------------------------------\r\n\t\t\tconfigPage.configurationPanel.setAutoLogin(false);//Sets the auto login off in the configuration webpage\r\n\t\t\tconfigPage.saveSettings();//Clicks the save button in the configuration webpage\r\n\r\n\t\t\tif (!MFilesDialog.exists(driver))//Checks if MFiles dialog is displayed or not\r\n\t\t\t\tthrow new Exception(\"Warning dialog is not displayed while saving blank value in the Page title field\");\r\n\r\n\t\t\tMFilesDialog mfDialog = new MFilesDialog(driver);//Instantiates the MFiles Dialog\r\n\r\n\t\t\tString actualMsg = mfDialog.getMessage();//Gets the message from MFiles Dialog\r\n\r\n\t\t\tif (actualMsg.equalsIgnoreCase(dataPool.get(\"ExpectedMsg\")))\r\n\t\t\t\tLog.pass(\"Test case passed. Expected warning dialog is displayed while saving invalid value(\"+dataPool.get(\"PageTitle\").replace(\"\\\"\", \"\")+\") in the page title field in the configuration webpage.\", driver);\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test case failed. Expected warning dialog is not displayed while saving invalid value(\"+dataPool.get(\"PageTitle\").replace(\"\\\"\", \"\")+\") in the page title field in the configuration webpage.\", driver);\r\n\r\n\t\t\tmfDialog.close();//Closes the MFiles dialog in the view\r\n\r\n\t\t}//End try\r\n\t\tcatch (Exception e) {\r\n\t\t\tLog.exception(e, driver);\r\n\t\t}//End catch\r\n\t\tfinally {\r\n\t\t\tif (driver != null)\r\n\t\t\t{\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tconfigPage.treeView.clickTreeViewItem(\"General\");//Clicks the General settings in the configuration web page\r\n\t\t\t\t\tconfigPage.configurationPanel.setPageTitle(dataPool.get(\"DefaultPageTitle\").replace(\"\\\"\", \"\"));//Enters the page title value in the configuration webpage\r\n\t\t\t\t\tconfigPage.saveSettings();//Clicks the save button in the configuration webpage\r\n\t\t\t\t\tMFilesDialog.closeMFilesDialog(driver);//Closes the MFiles confirmation dialog\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e0)\r\n\t\t\t\t{\r\n\t\t\t\t\tLog.exception(e0, driver);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t}//End finally\r\n\r\n\t}", "@AfterClass\n\t/* Executa a leitura das configuracoes do extends report */\n\tpublic static void writeExtentReport() {\n\t\tReporter.loadXMLConfig(new File(\"src/test/resources/configs/extension-config.xml\"));\n\t\t\n\t\t/* Informa qual o sistema foi utilizado para efetuar os testes */\n\t\tReporter.setSystemInfo(\"OS\", \"Windows10\");\n\t\t\n\t\t/* Informa o nome do analista no relatorio */\n\t\tReporter.setSystemInfo(\"Tester Name\", \"Wilker\");\n\t\t\n\t}", "public static void main(String[] args) throws IOException, ParseException{\n\t\tGetBrowser browser=new GetBrowser();\n\t\tWebDriver driver = browser.getDriver(\"FireFox\");\n\t\t\n\t\tHashMap<String, String> test = new CommonUtilities(driver).getTestCases();\n\t\tfor(Map.Entry m:test.entrySet()){ \n\t\t\t System.out.println(m.getKey()+\" \"+m.getValue()); \n\t\t\t } \n\t}", "public static void main(String[] args) throws Exception {\n\n insureExcelType(\"F:/AAA/QP2-04 附录 A 产品申请表 10.xlsx\");\n// String cellValueAt = getCellValueAt(15,8);\n// String cellValueAt1 = getCellValueAt(29,10);\n// String cellValueAt2 = getCellValueAt(30,10);\n// System.out.println(cellValueAt);\n// System.out.println(cellValueAt1);\n// System.out.println(cellValueAt2);\n\n// setCellValueAt(16, 10, new Date());\n// fileOutPut(\"F:/\",\"yyy.xlsx\");\n\n\n String path = \"F:\\\\壁纸\\\\timg (3).jpg\";\n setImg(path, 30, 34, 0, 4);\n\n// String cellValueAt = getCellValueAt(1, 27, 5);\n// System.out.println(cellValueAt);\n// setCellValueAt(1, 28, 5, new Date());\n fileOutPut(\"F:/\",\"yyy.xlsx\");\n\n }" ]
[ "0.66087574", "0.64632934", "0.62950444", "0.62946534", "0.60439295", "0.6000439", "0.59471744", "0.58886313", "0.57912964", "0.578283", "0.57688093", "0.5699535", "0.5665456", "0.5655089", "0.56278586", "0.5623686", "0.5614885", "0.56016004", "0.5579845", "0.5578108", "0.5576462", "0.55650836", "0.556034", "0.5557536", "0.5553427", "0.5545295", "0.55347914", "0.5532181", "0.55307597", "0.55214685", "0.549378", "0.5482973", "0.547096", "0.5460551", "0.5459006", "0.5457107", "0.54493475", "0.5447051", "0.54426533", "0.54329264", "0.5417867", "0.54152626", "0.54149956", "0.5412138", "0.5405715", "0.5398685", "0.5392152", "0.53840935", "0.53781486", "0.53605837", "0.5352756", "0.5351891", "0.53509444", "0.53359526", "0.5335597", "0.5331559", "0.53255844", "0.53200513", "0.5317378", "0.5308673", "0.5301732", "0.52931106", "0.5287796", "0.5281924", "0.52803963", "0.52534384", "0.5251508", "0.5248907", "0.52479315", "0.5239293", "0.52336204", "0.52315855", "0.52289945", "0.5228234", "0.52134335", "0.52102464", "0.52054334", "0.5192294", "0.518945", "0.51874787", "0.5184127", "0.51836574", "0.5172403", "0.5171397", "0.51706946", "0.5167707", "0.51649606", "0.5163179", "0.5158847", "0.5157902", "0.5157279", "0.5151881", "0.51494414", "0.5149087", "0.5144136", "0.51433456", "0.5138703", "0.5137601", "0.5137117", "0.51352996" ]
0.7011062
0
Iterates through the test cases and sets parameters for them
private void SetParameters(XmlTest test){ for (Map.Entry<String,String> entry : TestsParamList.get(test.getName()).entrySet()){ test.addParameter(entry.getKey(), entry.getValue()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setupParameters() {\n \n \n\n }", "private void getConfigParameters(String[] parameters, Map<String, String> params,\n String testName) {\n for (int i = 0; i < parameters.length; i++) {\n params.put(parameters[i], null);\n }\n Log.v(TAG, \"[\" + testName + \"] \" + \"params.size() = \" + params.size());\n File f = new File(CONFIG_FILE);\n assertTrue(testName + \" test file not exists: \" + CONFIG_FILE, f.exists());\n // test suite\n XmlParser parser = new XmlParser(CONFIG_FILE);\n Node testSuiteNode = parser.getRootNode();\n String testSuiteName = parser.getAttrValue(testSuiteNode, \"name\");\n Log.v(TAG, \"[\" + testName + \"] \" + \"testSuiteName = \" + testSuiteName);\n // test case\n Node testCaseNode = null;\n String testCaseName = null;\n NodeList nodeListTestCase = parser.getNodeList(testSuiteNode, \"TestCase\");\n for (int i = 0; i < nodeListTestCase.getLength(); i++) {\n testCaseNode = nodeListTestCase.item(i);\n String tempTestCaseName = parser.getAttrValue(testCaseNode, \"name\");\n Log.v(TAG, \"[\" + testName + \"] \" + \"testCaseName = \" + tempTestCaseName);\n if (0 == tempTestCaseName.compareTo(TAG)) {\n testCaseName = tempTestCaseName;\n break;\n }\n }\n // test\n NodeList nodeList = parser.getNodeList(testCaseNode, \"Test\");\n for (int i = 0; i < nodeList.getLength(); i++) {\n Node testNode = nodeList.item(i);\n String tempTestName = parser.getAttrValue(testNode, \"name\");\n Log.v(TAG, \"[\" + testName + \"] \" + \"testName = \" + tempTestName);\n if (0 == tempTestName.compareTo(testName)) {\n for (int j = 0; j < params.size(); j++) {\n String attrValue = parser.getAttrValue(parser.getNodeByName(testNode,\n parameters[j]), \"value\");\n params.put(parameters[j], attrValue);\n Log.v(TAG, \"[\" + testName + \"] \" + \"param = \" + parameters[j] + \" value = \"\n + params.get(parameters[j]));\n }\n break;\n }\n }\n }", "public void setupTest(JavaSamplerContext context)\n {\n getLogger().debug(whoAmI() + \"\\tsetupTest()\");\n listParameters(context);\n\n sleepTime = context.getLongParameter(\"SleepTime\", DEFAULT_SLEEP_TIME);\n sleepMask = context.getLongParameter(\"SleepMask\", DEFAULT_SLEEP_MASK);\n }", "@Before\n public void setUp() throws Exception {\n env = Environment.getInstance();\n parameterTypes = new Class[1];\n parameterTypes[0] = za.co.multichoice.environment.Tile.class;\n m = env.getClass().getDeclaredMethod(METHOD_NAME, parameterTypes);\n m.setAccessible(true);\n parameters = new Object[1];\n }", "void setParameters() {\n\t\t\n\t}", "@Before\n public void setUp()\n {\n summary = \"\";\n allPassed = true;\n firstFailExpected = null;\n firstFailRun = null;\n captureSummary = \"\";\n captureRun = null;\n }", "public void prepare(TestCase testCase) {\n }", "public static void runAllTheTests() {\n\t\ttestConstructorAndGetters();\n\t}", "public static void runAllTheTests() {\n\t\ttestConstructorAndGetters();\n\t}", "private void fillParameters(Pconfig report) {\r\n\t\tList<? extends Parameter<?>> parameters = report.getParameters();\r\n\t\tfor (Parameter<?> param : parameters) {\r\n\t\t\tif (param instanceof StringParameter){\r\n\t\t\t\t((StringParameter) param).setValue(\"test string\");\r\n\t\t\t} else if (param instanceof IntegerParameter){\r\n\t\t\t\t((IntegerParameter) param).setValue(13);\r\n\t\t\t} else if (param instanceof DateParameter){\r\n\t\t\t\t((DateParameter) param).setValue(new Date());\r\n\t\t\t} else if (param instanceof BooleanParameter){\r\n\t\t\t\t((BooleanParameter) param).setValue(true);\r\n\t\t\t} else if (param instanceof EntityParameter){\r\n\t\t\t\tEntityParameter eparam = (EntityParameter) param;\r\n\t\t\t\tString type = eparam.getValueType();\r\n\t\t\t\tif (Integer.class.getSimpleName().equals(type)){\r\n\t\t\t\t\teparam.setValue(\"21\");\r\n\t\t\t\t} else if (Long.class.getSimpleName().equals(type)){\r\n\t\t\t\t\teparam.setValue(\"42\");\r\n\t\t\t\t}if (Double.class.getSimpleName().equals(type)){\r\n\t\t\t\t\teparam.setValue(\"9.4\");\r\n\t\t\t\t}if (Boolean.class.getSimpleName().equals(type)){\r\n\t\t\t\t\teparam.setValue(\"false\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void setUpTestdata() {\n\t\tsetDefaultUserName(Config.getProperty(\"defaultUserName\"));\r\n\t\tsetDefaultPassword(Config.getProperty(\"defaultPassword\"));\r\n\t\tsetTestsiteurl(Config.getProperty(\"testsiteurl\"));\r\n\t\tsetChromeDriverPath(Config.getProperty(\"chromeDriverPath\"));\r\n\t\tsetGeckoDriverPath(Config.getProperty(\"geckoDriverPath\"));\r\n\t\tsetIeDriverPath(Config.getProperty(\"ieDriverPath\"));\r\n\t}", "public void ExecuteTests() throws IOException{\r\n\t\t\r\n\t\tAutomationSuiteRunnerImpl testcaseinfo = new AutomationSuiteRunnerImpl();\r\n\t\ttestcaseinfo.GetTestCaseInformation();\r\n\t\tTestsBrowserList = testcaseinfo.getTestsBrowserList();\r\n\t\tTestsClassesList = testcaseinfo.getTestsClassesList();\r\n\t\tClassesMethodList = testcaseinfo.getClassesMethodList();\r\n\t\tTestsParamList = testcaseinfo.getTestsParamList();\r\n\t\tTestNGConfig = testcaseinfo.getTestNGConfig();\r\n\t\tList<XmlSuite> suites = new ArrayList<XmlSuite>();\r\n\t\t\r\n\t\tlogger.info(\"Generating TestNG.xml file\");\r\n\t\t\r\n\t\t/**\r\n\t\t * The below code creates testNG xmlSuite and sets the configuration\r\n\t\t */\r\n\t\tXmlSuite suite = new XmlSuite();\r\n\t\tsuite.setName(TestNGConfig.get(\"AutomationSuiteName\"));\r\n\t\t\r\n\t\tif(TestNGConfig.get(\"ParallelMode\").toString().equalsIgnoreCase(\"True\")) {\r\n\t\t\tsuite.setParallel(XmlSuite.ParallelMode.TESTS);\r\n\t\t\tsuite.setThreadCount(Integer.parseInt(TestNGConfig.get(\"ThreadCount\")));\r\n\t\t}\r\n\t\telse {\r\n\r\n\t\t\tsuite.setParallel(XmlSuite.ParallelMode.NONE);\r\n\t\t}\r\n\t\t\r\n\t\tsuite.setVerbose(Integer.parseInt(TestNGConfig.get(\"Verbose\")));\r\n\t\tif(TestNGConfig.get(\"PreserveOrder\").toString().equalsIgnoreCase(\"True\"))\r\n\t\t\tsuite.setPreserveOrder(Boolean.TRUE);\r\n\t\telse \r\n\t\t\tsuite.setPreserveOrder(Boolean.FALSE);\r\n\t\t\r\n\t\t\r\n\t\t//suite.addListener(\"frameworkcore.ReportingClass.ListenersImpl\");\r\n\t\t\r\n\t\t/**\r\n\t\t * The below code assigns the Test classes/mathods/parameters to the TestNG Suite\r\n\t\t */\r\n\t\tfor (String key : TestsBrowserList.keySet()){\r\n\t\t\tArrayList<XmlClass> classes = new ArrayList<XmlClass>();\r\n\t\t\tXmlTest test = new XmlTest(suite);\r\n\t\t\ttest.setName(key.toString());\r\n\t\t\tHashMap<String,String> browserinfo = new HashMap<String,String>();\r\n\t\t\tbrowserinfo.put(\"BrowserName\", TestsBrowserList.get(key).toString());\r\n\t\t\ttest.setParameters(browserinfo);\r\n\t\t\tSetParameters(test);\r\n\t\t\tCollection<String> classvalues = TestsClassesList.get(key);\r\n\t\t\tfor(String testclass : classvalues){\r\n\t\t\t\tXmlClass testClass = new XmlClass();\r\n\t\t testClass.setName(testclass);\r\n\t\t Collection<String> methodvalues = ClassesMethodList.get(testclass);\r\n\t\t ArrayList<XmlInclude> methodsToRun = new ArrayList<XmlInclude>();\r\n\t\t for(String method: methodvalues){\r\n\t\t \tif(method.toLowerCase().contains(\"tag\")||method.toLowerCase().contains(\"ignore\"))\r\n\t\t \t\tlogger.info(\"Method \" + method + \" will not run\" );\r\n\t\t \telse\r\n\t\t \t\tmethodsToRun.add(new XmlInclude(method));\r\n\t\t }\r\n\t\t testClass.setIncludedMethods(methodsToRun);\r\n\t\t \r\n\t\t classes.add(testClass);\r\n\t\t\t}\r\n\t\t\ttest.setXmlClasses(classes);\r\n\t\t}\r\n\t\t\r\n\t\tsuites.add(suite);\r\n\t\t\r\n\t\t/**\r\n\t\t * Writing the TestNG.xml information to a file\r\n\t\t */\r\n\t\t FileWriter writer;\r\n\t\t File TestNGFile = new File(\"TestNG.xml\");\r\n\t\t if(TestNGFile.exists())\t\t\t\t\t\t// Delete TestNG if exists\r\n\t\t\t TestNGFile.delete();\r\n\t\t \r\n\t\t\twriter = new FileWriter(TestNGFile);\r\n\t\t\t writer.write(suite.toXml());\r\n\t\t writer.flush();\r\n\t\t writer.close();\r\n\t\t logger.info(\"TestNG file Generated Successfully\");\r\n\t\t\r\n\t\tTestNG tng = new TestNG();\r\n\t\ttng.setXmlSuites(suites);\r\n\t\ttng.run(); \r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\n\n for (int i = 0; i < 3; i++) {\n System.out.println(\"\\n********* TEST \" + (i+1) + \" *********\");\n experimentOne(false);\n experimentOne(true);\n\n experimentTwo(false);\n experimentTwo(true);\n\n experimentThree(false);\n experimentThree(true);\n }\n }", "protected void runTest() {\n\t\trunTest(getIterations());\n\t}", "public void test(int testcase) {\n\t\tswitch (testcase) {\n\t\tcase 1: insertCase(); break;\n\t\tcase 2: selectCase(); break;\n\t\tcase 3: resetDB(); break;\n\t\tcase 4: externalTestcase(); break;\n\t\tcase 6: bulkLoad(); break;\n\t\tcase 7: addIndex(); break;\n\t\t}\n\t}", "protected AbstractTest(int iterations) {\n\t\tthis.iterations = iterations;\n\t}", "public void testGet() {\n\t//int i = 5;\n\ttitle();\n\tfor (int i = 1; i <= TestEnv.parallelism; i++) {\n\t this.parallelism = i;\n\t super.testGet();\n\t}\n }", "public static void startTestCase(String testCase) throws Exception\n\t{\n\t\tint currentSuiteID;\n\t\tint currentTestCaseID;\n\t\tString currentTestSuite;\n\t\tString currentTestCaseName;\n\t\tXls_Reader currentTestSuiteXLS;\n\t\tXls_Reader Wb = new Xls_Reader(System.getProperty(\"user.dir\")+\"\\\\src\\\\main\\\\java\\\\com\\\\test\\\\automation\\\\uIAutomation\\\\data\\\\Controller.xlsx\");\n\t\tString TestURL = VerifyLoginWithValidCredentials.CONFIG.getProperty(\"TestURL\");\n\t\tfor (currentSuiteID = 2; currentSuiteID <= Wb.getRowCount(ObjectRepository.TEST_SUITE_SHEET); currentSuiteID++)\n\t\t{\n\t\t\tcurrentTestSuite = Wb.getCellData(ObjectRepository.TEST_SUITE_SHEET, ObjectRepository.Test_Suite_ID, currentSuiteID);\n\t if(Wb.getCellData(ObjectRepository.TEST_SUITE_SHEET, ObjectRepository.RUNMODE, currentSuiteID).equals(ObjectRepository.RUNMODE_YES))\n\t \t\t{\n\t\t\t\tcurrentTestSuiteXLS = new Xls_Reader(\"src/config/\" + currentTestSuite + \".xlsx\");\n\t\t\t\tfor (currentTestCaseID = 2; currentTestCaseID <= currentTestSuiteXLS.getRowCount(ObjectRepository.TEST_CASES_SHEET); currentTestCaseID++) \n\t\t\t\t{\n\t\t\t\t\tcurrentTestCaseName = currentTestSuiteXLS.getCellData(ObjectRepository.TEST_CASES_SHEET, ObjectRepository.Test_Case_ID, currentTestCaseID);\n\t\t\t\t\tif (currentTestCaseName.equals(testCase))\n\t {\n\t\t\t\t\t\tString desc = currentTestSuiteXLS.getCellData(ObjectRepository.TEST_CASES_SHEET, \"Description\", currentTestCaseID);\n\t\t\t\t\t\tString subModule = currentTestSuiteXLS.getCellData(ObjectRepository.TEST_CASES_SHEET, \"Sub Module\", currentTestCaseID);\n\t\t\t\t\t\tLog.test = Log.extent.startTest(currentTestCaseName, desc).assignCategory(currentTestSuite + \" Module\", subModule + \" Sub-Module\");\n\t\t\t\t\t\tLog.test.log(LogStatus.INFO, \"Testing on URL : \" + TestURL);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@BeforeClass\n @Parameters({\"browser\", \"url\"})\n // Step 2: create a method with appropriate params\n void setup(String mBrowser, String mUrl){\n // Step 3: make use of the parameters\n if(mBrowser.equalsIgnoreCase(\"chrome\")){\n System.setProperty(\"webdriver.chrome.driver\",\"C:/chromedriver_win32/chromedriver.exe\");\n driver = new ChromeDriver();\n }else if(mBrowser.equalsIgnoreCase(\"firefox\")){\n System.setProperty(\"webdriver.chrome.driver\",\"C:/firefox_win32/firefoxdriver.exe\");\n driver = new FirefoxDriver();\n }\n // Step 3: make use of the parameters\n driver.get(mUrl);\n }", "protected void resetParams() {\n\t\treport.report(\"Resetting Test Parameters\");\n\t\t// numberOfRecoverys = 0;\n\t\tstreams = new ArrayList<StreamParams>();\n\t\tlistOfStreamList = new ArrayList<ArrayList<StreamParams>>();\n\t}", "@Before\n\tpublic void setUp() throws Exception {\n\t\truntimeConfig = ConfigLoader.load(\n\t\t\t\tnew File(resourcesDir,\n\t\t\t\t\t\t\"benchmark_config_with_ls_specific_settings.conf\").getAbsolutePath());\n\t\t\n\t\tscenario = new Scenario(\"animals\", \"mammal\");\n\t\t\n\t\ttmpDir = Files.createTempDir();\n\t\ttmpDir.mkdirs();\n\t\t\n\t\tfileFinder = new FileFinder(new File(\".\").getAbsolutePath(), scenario);\n\t\t// arbitrarily set to tmpDir\n\t\tfileFinder = fileFinder.updateWorkDir(tmpDir);\n\t\t\n\t\texamples = new PosNegExamples();\n\t\texamples.put(Constants.ExType.POS, Sets.newHashSet(\"one\", \"two\", \"three\"));\n\t\texamples.put(Constants.ExType.NEG, Sets.newHashSet(\"four\", \"five\", \"six\", \"seven\"));\n\t\tlog = new BenchmarkLog();\n\t}", "@Before\r\n\tpublic void setUp() throws Exception {\n\t\tunitTestInputs = new ArrayList<TestInput>(50);\r\n\t\t\r\n\t\t// Iterate over all input files\r\n\t\tFile directory = new File(\"Inputs\");\r\n\t\tFile[] inputFiles = directory.listFiles();\r\n\t\tif (inputFiles != null)\r\n\t\t{\r\n\t\t\t// Iterate over each input file\r\n\t\t\tfor (File inputFile : inputFiles)\r\n\t\t\t{\r\n\t\t\t\t// Parse file to create test input objects\t\r\n\t\t\t\tString fileName = inputFile.getName();\r\n\t\t\t\tif (fileName.startsWith(\"INPUT\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tString[] fileNameSplit = fileName.split(\"[_.]\");\r\n\t\t\t\t\tlong numberInversions = Long.parseLong(fileNameSplit[1]);\r\n\t\t\t\t\t\r\n\t\t\t\t\tArrayList<Integer> inputValues = Common.ParseInputFile(inputFile.getPath());\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Add test input\r\n\t\t\t\t\tunitTestInputs.add(new TestInput(inputValues, numberInversions));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public abstract Instances _getTestingFromParams(String params);", "public abstract void setTrainParams(ClassificationMethod method,URL model,Map<String,Object> args) throws ClassificationException;", "public void updateParameters(){\n\t\tp = RunEnvironment.getInstance().getParameters();\n\t\tmaxFlowerNectar = (double)p.getValue(\"maxFlowerNectar\");\n\t\tlowMetabolicRate = (double)p.getValue(\"lowMetabolicRate\");\n\t\thighMetabolicRate = (double)p.getValue(\"highMetabolicRate\");\n\t\tcolonySize = (int)p.getValue(\"colonySize\");\n\t}", "public ParamNameTest(String testName) {\n super(testName);\n }", "@BeforeAll\n public static void oneTimeSetUp() {\n\n frontend.ctrlClear();\n\n String camName1 = \"Vale das Mos\";\n String camName2 = \"Alcobaca\";\n String id1 = \"12DL12\";\n String id2 = \"12AR12\";\n String id3 = \"151212\";\n String id4 = \"1512345\";\n String date1 = \"1999-03-12 12:12:12\";\n String date2 = \"2020-03-12 12:12:12\";\n String date3 = \"2015-09-12 12:12:12\";\n String date4 = \"2010-09-12 12:12:12\";\n\n\n frontend.camJoin(camName1, 13.3, 51.2);\n frontend.camJoin(camName2, 15.3, 53.2);\n\n List<List<String>> observations1 = new ArrayList<>();\n List<List<String>> observations2 = new ArrayList<>();\n List<List<String>> observations3 = new ArrayList<>();\n List<List<String>> observations4 = new ArrayList<>();\n\n\n List<String> observationMessage1 = new ArrayList<>();\n observationMessage1.add(\"CAR\");\n observationMessage1.add(id1);\n observationMessage1.add(date1);\n\n List<String> observationMessage2 = new ArrayList<>();\n observationMessage2.add(\"CAR\");\n observationMessage2.add(id2);\n observationMessage2.add(date2);\n\n List<String> observationMessage3 = new ArrayList<>();\n observationMessage3.add(\"PERSON\");\n observationMessage3.add(id3);\n observationMessage3.add(date3);\n\n List<String> observationMessage4 = new ArrayList<>();\n observationMessage4.add(\"PERSON\");\n observationMessage4.add(id4);\n observationMessage4.add(date4);\n\n\n observations1.add(observationMessage1);\n observations2.add(observationMessage2);\n observations3.add(observationMessage3);\n observations4.add(observationMessage4);\n\n frontend.reportObs(camName1, observations1);\n frontend.reportObs(camName2, observations2);\n frontend.reportObs(camName1, observations3);\n frontend.reportObs(camName2, observations4);\n }", "public void startTests() {\n if(testSettings.accessibleProperties || testSettings.accessibleInterface)\n testProperties();\n if(testSettings.tabTraversal)\n testTraversal();\n }", "private void assignTests(Patient patient, String test) {\n patient.setTestToPass(test);\n }", "@Parameters\n public static Collection<Object[]> testParameters() {\n Collection<Object[]> params = new ArrayList<Object[]>();\n\n for (OPT opt: OPT.values()) {\n Object[] par = new Object[2];\n par[0] = opt;\n par[1] = opt.name();\n\n params.add( par );\n }\n\n return params;\n }", "@BeforeClass\n\tpublic void campaign_user_parameter_setup() throws URISyntaxException, ClientProtocolException, IOException, ParseException{\n\t\tMap<String, Object> confCampaignHierarchy = yamlReader.readCampaignInfo(Constants.GroupHierarchy.AGENCY);\n\t\tcampaign_id = confCampaignHierarchy.get(TestDataYamlConstants.CampaignConstants.CAMPAIGN_ID).toString();\n\t\tcampaign_owner_user_id = confCampaignHierarchy.get(TestDataYamlConstants.CampaignConstants.CAMPAIGN_OWNER_USER_ID).toString();\n\t\tgroup_id = confCampaignHierarchy.get(TestDataYamlConstants.CampaignConstants.GROUP_ID).toString();\n\t\tcampaign_ext_id = confCampaignHierarchy.get(TestDataYamlConstants.CampaignConstants.CAMPAIGN_EXT_ID).toString();\n\t\tcampaign_name = confCampaignHierarchy.get(TestDataYamlConstants.CampaignConstants.CAMPAIGN_NAME).toString();\n\t\tif (confCampaignHierarchy.get(TestDataYamlConstants.CampaignConstants.CAMPAIGN_CREATED) != null)\t\n\t\t campaign_end_date = confCampaignHierarchy.get(TestDataYamlConstants.CampaignConstants.CAMPAIGN_END_DATE).toString();\n\t\tif (confCampaignHierarchy.get(TestDataYamlConstants.CampaignConstants.CAMPAIGN_CREATED) != null)\n\t\t\tcampaign_created = confCampaignHierarchy.get(TestDataYamlConstants.CampaignConstants.CAMPAIGN_CREATED).toString();\n\t\tif (confCampaignHierarchy.get(TestDataYamlConstants.CampaignConstants.CAMPAIGN_START_DATE) != null)\n\t\t\tcamp_start_date = confCampaignHierarchy.get(TestDataYamlConstants.CampaignConstants.CAMPAIGN_START_DATE).toString();\n\t\t\n\t\tMap<String, Object> confUserHierarchy = yamlReader.readUserInfo(Constants.GroupHierarchy.AGENCY);\n\t\tfirst_name = confUserHierarchy.get(TestDataYamlConstants.UserConstants.FIRST_NAME).toString();\n\t\tlast_name = confUserHierarchy.get(TestDataYamlConstants.UserConstants.LAST_NAME).toString();\n\t\temail = confUserHierarchy.get(TestDataYamlConstants.UserConstants.EMAIL).toString();\n\t\tphone_number = confUserHierarchy.get(TestDataYamlConstants.UserConstants.PHONE_NUMBER).toString();\n\t\trole = confUserHierarchy.get(TestDataYamlConstants.UserConstants.ROLE).toString();\n\t\tuser_status = confUserHierarchy.get(TestDataYamlConstants.UserConstants.STATUS).toString();\n\t}", "public void setNumTests(int i){\n if (i <= 0){\n throw new ArithmeticException(\"Number of random GAM tests must be at least 1.\");\n }\n\n numTests = i;\n }", "@Override\r\n\t@BeforeTest\r\n\tpublic void startSetting() {\n\t\tSystem.out.println(\"开始系统设置测试\");\r\n\t}", "public void run() throws Exception {\n for (int i = 0; i < testCases.length; ++i) {\n runCase(testCases[i]);\n }\n }", "@Parameterized.Parameters(name = \"{0}\")\n public static Collection<TestParams> generateTestCases() {\n List<TestParams> result = new ArrayList<>();\n\n result.add(new TestParams(\n new Communicator.Message(Communicator.MESSAGE_CALL_AUDIO_CODEC,\n Communicator.AUDIO_CODEC_EVS),\n new RtpHeaderExtension(CALL_STATE_LOCAL_IDENTIFIER,\n new byte[]{0b00010010})));\n result.add(new TestParams(\n new Communicator.Message(Communicator.MESSAGE_CALL_AUDIO_CODEC,\n Communicator.AUDIO_CODEC_AMR_WB),\n new RtpHeaderExtension(CALL_STATE_LOCAL_IDENTIFIER,\n new byte[]{0b00100010})));\n result.add(new TestParams(\n new Communicator.Message(Communicator.MESSAGE_CALL_AUDIO_CODEC,\n Communicator.AUDIO_CODEC_AMR_NB),\n new RtpHeaderExtension(CALL_STATE_LOCAL_IDENTIFIER,\n new byte[]{0b00110010})));\n result.add(new TestParams(\n new Communicator.Message(Communicator.MESSAGE_CALL_RADIO_ACCESS_TYPE,\n Communicator.RADIO_ACCESS_TYPE_LTE),\n new RtpHeaderExtension(CALL_STATE_LOCAL_IDENTIFIER,\n new byte[]{0b00010001})));\n result.add(new TestParams(\n new Communicator.Message(Communicator.MESSAGE_CALL_RADIO_ACCESS_TYPE,\n Communicator.RADIO_ACCESS_TYPE_IWLAN),\n new RtpHeaderExtension(CALL_STATE_LOCAL_IDENTIFIER,\n new byte[]{0b00100001})));\n result.add(new TestParams(\n new Communicator.Message(Communicator.MESSAGE_CALL_RADIO_ACCESS_TYPE,\n Communicator.RADIO_ACCESS_TYPE_NR),\n new RtpHeaderExtension(CALL_STATE_LOCAL_IDENTIFIER,\n new byte[]{0b00110001})));\n result.add(new TestParams(\n new Communicator.Message(Communicator.MESSAGE_DEVICE_BATTERY_STATE,\n Communicator.BATTERY_STATE_LOW),\n new RtpHeaderExtension(DEVICE_STATE_LOCAL_IDENTIFIER,\n new byte[]{0b00000001})));\n result.add(new TestParams(\n new Communicator.Message(Communicator.MESSAGE_DEVICE_BATTERY_STATE,\n Communicator.BATTERY_STATE_GOOD),\n new RtpHeaderExtension(DEVICE_STATE_LOCAL_IDENTIFIER,\n new byte[]{0b00010001})));\n result.add(new TestParams(\n new Communicator.Message(Communicator.MESSAGE_DEVICE_BATTERY_STATE,\n Communicator.BATTERY_STATE_CHARGING),\n new RtpHeaderExtension(DEVICE_STATE_LOCAL_IDENTIFIER,\n new byte[]{0b00110001})));\n result.add(new TestParams(\n new Communicator.Message(Communicator.MESSAGE_DEVICE_NETWORK_COVERAGE,\n Communicator.COVERAGE_POOR),\n new RtpHeaderExtension(DEVICE_STATE_LOCAL_IDENTIFIER,\n new byte[]{0b00000010})));\n result.add(new TestParams(\n new Communicator.Message(Communicator.MESSAGE_DEVICE_NETWORK_COVERAGE,\n Communicator.COVERAGE_GOOD),\n new RtpHeaderExtension(DEVICE_STATE_LOCAL_IDENTIFIER,\n new byte[]{0b00010010})));\n return result;\n }", "@BeforeTest // which will be executed first before all the test methods\n@Parameters(\"browser\") //@Parameter is used to pass the values(during run time) to the test methods as arguments using .xml file\npublic void setup(String browser) throws Exception{\n \n//Check if parameter passed as 'chrome'\nif (browser.equalsIgnoreCase(\"chrome\")){\n//set path to chromedriver.exe\nSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\\\\\\\\\\\\\Users\\\\\\\\\\\\\\\\mouleeswaranb\\\\\\\\\\\\\\\\eclipse-workspace_Selenium learning_6127\\\\\\\\\\\\\\\\SeleniumProject\\\\\\\\\\\\\\\\drivers\\\\\\\\\\\\\\\\chromedriver.exe\");\ndriver = new ChromeDriver(); \n}\n\nelse{\n//If no browser passed throw exception\nthrow new Exception(\"Browser is not correct\");\n}\ndriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n}", "public void runTests() throws Exception {\n\t\tArrayList<KaidaComposer> als = getCrossOverPermutationTest();\r\n//\t\tArrayList<KaidaComposer> als = getMutationProbabilityTests();\r\n\t\t\r\n\t\tsynchronized (results) {\r\n\t\t\tresults.clear();\r\n\t\t\tfor (KaidaComposer al : als) {\r\n\t\t\t\tresults.add(new TestRunGenerationStatistics(nrOfContests,nrOfGenerations,al.getLabel(),al));\t\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tsetProgress(0f);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tfor (int runs = 0; runs < nrOfContests; runs++) {\r\n\t\t\t//run the test n times\r\n\t\t\t\r\n\t\t\t\tSystem.out.println(\"\\nContest Nr. \" + runs + \" started\");\r\n\t\t\t\tTimer t = new Timer(\"Contest Nr. \" + runs);\r\n\t\t\t\tt.start();\r\n\t\t\t\t\r\n\t\t\t\tfor (KaidaComposer algorithm : als) {\r\n\t\t\t\t\talgorithm.restartOrTakeOver();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tfor (int g = 0; g < nrOfGenerations; g++) {\r\n\t\t\t\t\t//do one evolution step\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (KaidaComposer algorithm : als) {\r\n\t\t\t\t\t\tif (algorithm.isCycleCompleted()) {\r\n\t\t\t\t\t\t\talgorithm.startNextCycle();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\talgorithm.doOneEvolutionCycle();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tt.stopAndPrint();\r\n\t\t\t\tt.start(\"Adding to results\");\r\n\t\t\t\tsynchronized (results) {\r\n\t\t\t\t\tfor (int z=0; z < als.size(); z++) {\r\n\t\t\t\t\t\tresults.get(z).addTestRun(als.get(z).getGenerations().getRange(0,nrOfGenerations));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tt.stopAndPrint();\r\n\t\t\t\tt.start(\"Calculating statistics\");\r\n\t\t\t\tsynchronized (results) {\r\n\t\t\t\t\tfor (int z=0; z < als.size(); z++) {\r\n\t\t\t\t\t\tresults.get(z).calculateStats();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tt.stopAndPrint();\r\n\t\t\t\t\r\n\t\t\t\tsetProgress((double)runs/(double)(nrOfContests-1));\r\n\t\t\t\t\r\n\t\t\t\tif (pause!=0) {\r\n\t\t\t\t\tsleep(pause);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (isPleasePause()) break;\r\n\t\t\t}\r\n\t\t\tsynchronized (results) {\r\n\t\t\t\tfor (int z=0; z < als.size(); z++) { //als.size()\r\n\t\t\t\t\tresults.get(z).calculateStats();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tsetProgress(1.0f);\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t//fail(\"al threw some Exception\");\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\t\r\n\t}", "public void testPut() {\n title();\n for (int i = 1; i <= TestEnv.parallelism; i++) {\n this.parallelism = i;\n super.testPut();\n }\n }", "@BeforeMethod\r\n\tpublic void startTestCase() {\n\t\ttest = extent.createTest(testCaseName, testCaseDescription);\r\n\t\ttest.assignAuthor(author);\r\n\t\ttest.assignCategory(category);\r\n\t}", "public static void main(String[] args) {\n\t\tTestLinkAPIClient testlinkAPIClient = new TestLinkAPIClient(CyborgConstants.DEVKEY,CyborgConstants.URL);\n\t\ttry {\n\t\t\tString ProjectId=null;\n\t\t\tString TestSuiteId=null;\n\t\t\tArrayList<Integer> TestSuitesId = new ArrayList<Integer>();\n\t\t\tTestLinkAPIResults projResult= testlinkAPIClient.getProjects();\n\t\t for (int i = 0; i < projResult.size(); i++) {\n\t\t \tif(projResult.getValueByName(i, \"name\").equals(ProjectName)){\n\t\t \t\t ProjectId= (String) projResult.getValueByName(i, \"id\");\n\t\t \t\t System.out.println(projResult.getValueByName(i, \"name\"));\n\t\t \t\t break;\n\t\t \t\t \n\t\t \t}\n\t\t\t}\n\t\t \n\t\t\t String TestPalns[]= TestPlan.split(\",\");\n\t\t\t for (int k = 0; k < TestPalns.length; k++) {\n\t\t\t\tTestLinkAPIResults testSuiteResults=testlinkAPIClient.getTestSuitesForTestPlan(ProjectName, TestPalns[k]);\n\t\t\t\t//System.out.println(\"TestPalns[k]===\"+TestPalns[k]);\n\t\t\t\tfor (int l = 0; l < testSuiteResults.size(); l++) {\n\t\t\t\t\t//System.out.println(\"TestSuite===\"+TestSuite);\n\t\t\t\t\t//System.out.println(\"Suite Name===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\tString TestSuites[]= TestSuite.split(\",\");\n\t\t\t\t\tfor (int z = 0; z < TestSuites.length; z++){\n\t\t\t\t\t\t\tif(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z])){\n\t\t\t\t\t\t\tSystem.out.println(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z]));\n\t\t\t\t\t\t\t TestSuiteId= (String) testSuiteResults.getValueByName(l, \"id\");\n\t\t\t\t\t\t\t// System.out.println(\"SuiteNamer===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\t\t\tString SuiteName=(String)testSuiteResults.getValueByName(l, \"name\");\n\t\t\t\t\t\t\t getTestCases(testlinkAPIClient, ProjectId, TestSuiteId,SuiteName);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t }\n\t\t\t \n\t\t \n\t\t} catch (TestLinkAPIException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void setTestMethod(JUnitTestCase testCase) {\n\t\tthis.testCase = testCase;\n\t\tthis.testMethod = testCase.getMethodName();\n\t\tthis.outputFilename = new File(getDirectoryFinder().getBuildDirectory(), testType+ \".\" +testMethod +\".out\").getAbsolutePath();\n\t}", "public TcTestRunner(Class<?> klass) throws Throwable {\n super(klass, Collections.<Runner> emptyList());\n List<TestConfig> parametersList = getParametersList(getTestClass());\n for (int i = 0; i < parametersList.size(); i++)\n runners.add(new TestClassRunnerForParameters(getTestClass().getJavaClass(), parametersList, i));\n }", "@BeforeEach\n\tpublic void setUp() throws Exception {\n\t\ttestSubject=new Builder(value, sigFig, totalFig, precision)\n\t\t\t\t\t\t.meaning(meaning)\n\t\t\t\t\t\t.originatorsFlag(originatorsFlag)\n\t\t\t\t\t\t.qualityFlag(qualityFlag)\n\t\t\t\t\t\t.qualityFlagString(qualityFlagString)\n\t\t\t\t\t\t.build();\n\t\t\n\n\n\n\n\n\n\n\t}", "@Before\r\n public void setUp() throws Exception {\r\n PropertyConfigurator.configure(\"test_files/log4j.properties\");\r\n\r\n LogManager.setLogFactory(new Log4jLogFactory());\r\n log = LogManager.getLog(this.getClass().getName());\r\n\r\n paramNames = new String[] {\"p1\", \"p2\"};\r\n paramValues = new Object[] {123, \"abc\"};\r\n\r\n value = new Object[] {\"result\"};\r\n exception = new Exception(\"Exception for testing.\");\r\n }", "@Test\n public void f9EditParametersTest() {\n clickOn(\"#assetTypeMenuBtn\").sleep(1000);\n\n //select 1st asset type\n Node node = lookup(\"#columnName\").nth(1).query();\n clickOn(node).sleep(1000);\n\n //go to model tab\n clickOn(scene.getRoot().lookup(\"#modelTab\")).sleep(1000);\n FlowPane allModels = (FlowPane) scene.getRoot().lookup(\"#modelsThumbPane\");\n Pane selectedModel = (Pane) allModels.getChildren().get(0);\n clickOn(selectedModel).sleep(1000);\n\n //Changing Parameters\n VBox paraBox = (VBox) scene.getRoot().lookup(\"#modelParameters\");\n Pane batchSizePara = (Pane) paraBox.getChildren().get(0);\n TextField batchSizeVal = (TextField) batchSizePara.getChildren().get(1);\n clickOn(batchSizeVal).type(KeyCode.BACK_SPACE).sleep(500).type(KeyCode.BACK_SPACE).sleep(500).write(\"60\").sleep(1500);\n\n Pane qrPara = (Pane) paraBox.getChildren().get(1);\n CheckBox qrVal = (CheckBox) qrPara.getChildren().get(1);\n clickOn(qrVal).sleep(1500);\n\n Pane collinearPara = (Pane) paraBox.getChildren().get(2);\n CheckBox colinearVal = (CheckBox) collinearPara.getChildren().get(1);\n clickOn(colinearVal).sleep(1500);\n\n //Parameter after changing it from the default value should be 160\n assertEquals(\"Batch Size value is a now 160\", \"160\", batchSizeVal.getText());\n\n //reset to default\n clickOn(scene.getRoot().lookup(\"#modelDefaultBtn\")).sleep(1000);\n clickOn(paraBox.getChildren().get(0)).sleep(1500);\n\n //Now go to the last model (Multilayer Perceptron)\n selectedModel = (Pane) allModels.getChildren().get(allModels.getChildren().size() - 1);\n clickOn(scene.getRoot().lookup(\"#modelTab\")).sleep(1000);\n\n moveBy(0, 200).scroll(65, VerticalDirection.UP);\n clickOn(selectedModel).sleep(1000);\n clickOn(scene.getRoot().lookup(\"#modelDefaultBtn\")).sleep(2000);\n\n //Change parameters\n Pane autoBuildPara = (Pane) paraBox.getChildren().get(0);\n CheckBox autoBuildVal = (CheckBox) autoBuildPara.getChildren().get(1);\n clickOn(autoBuildVal).sleep(1500);\n\n Pane showGUIPara = (Pane) paraBox.getChildren().get(2);\n CheckBox showGUIVal = (CheckBox) showGUIPara.getChildren().get(1);\n clickOn(showGUIVal).sleep(1500);\n\n Pane momentumPara = (Pane) paraBox.getChildren().get(3);\n TextField momentumVal = (TextField) momentumPara.getChildren().get(1);\n clickOn(momentumVal).type(KeyCode.BACK_SPACE).sleep(500).write(\"1\").sleep(1500);\n\n //Momentum after changing shouldn't be the default 0.2 value anymore\n assertFalse(\"Momentum is default 0.2\", momentumVal.getText().equals(\"0.2\"));\n\n Pane decayPara = (Pane) paraBox.getChildren().get(9);\n CheckBox decayVal = (CheckBox) decayPara.getChildren().get(1);\n clickOn(decayVal).sleep(1500);\n\n// //Go to RandomForest Model\n selectedModel = (Pane) allModels.getChildren().get(2);\n clickOn(selectedModel).sleep(1000);\n clickOn(scene.getRoot().lookup(\"#modelDefaultBtn\")).sleep(2000);\n\n// //Change parameters\n Pane execPara = (Pane) paraBox.getChildren().get(1);\n TextField execVal = (TextField) execPara.getChildren().get(1);\n clickOn(execVal).sleep(1500);\n//\n Pane calcBagPara = (Pane) paraBox.getChildren().get(3);\n CheckBox calcBagVal = (CheckBox) calcBagPara.getChildren().get(1);\n clickOn(calcBagVal).sleep(1500);\n//\n Pane bagSizePara = (Pane) paraBox.getChildren().get(6);\n TextField bagSizeVal = (TextField) bagSizePara.getChildren().get(1);\n clickOn(bagSizeVal).type(KeyCode.BACK_SPACE).sleep(500).type(KeyCode.BACK_SPACE).sleep(500).write(\"0\").sleep(1500);\n\n //Bag Size after changing shouldn't be the default 100 value anymore\n assertFalse(\"Bag size is default 100\", bagSizeVal.getText().equals(\"100\"));\n //Have parameters VBox\n assertNotNull(\"Parameters box for the model exists\", paraBox);\n\n clickOn(scene.getRoot().lookup(\"#modelDefaultBtn\")).sleep(2000);\n clickOn(paraBox.getChildren().get(0)).sleep(2000);\n }", "@Test\n public final void testSetUp() {\n assertEquals(planets.size(), goods.size(), NUM_PLANETS);\n for (ArrayList<TradeGood> planetsGoods : goods) {\n assertEquals(NUM_GOODS, planetsGoods.size());\n }\n }", "private void setUp() {\r\n\tvariables = new Vector();\r\n\tstatements = new Vector();\r\n\tconstraints = new Vector();\r\n\tvariableGenerator = new SimpleVariableGenerator(\"v_\");\r\n }", "private void initParameters() {\n jobParameters.setSessionSource(getSession(\"source\"));\n jobParameters.setSessionTarget(getSession(\"target\"));\n jobParameters.setAccessDetailsSource(getAccessDetails(\"source\"));\n jobParameters.setAccessDetailsTarget(getAccessDetails(\"target\"));\n jobParameters.setPageSize(Integer.parseInt(MigrationProperties.get(MigrationProperties.PROP_SOURCE_PAGE_SIZE)));\n jobParameters.setQuery(MigrationProperties.get(MigrationProperties.PROP_SOURCE_QUERY));\n jobParameters.setItemList(getFolderStructureItemList());\n jobParameters.setPropertyFilter(getPropertyFilter());\n jobParameters.setReplaceStringInDestinationPath(getReplaceStringArray());\n jobParameters.setNamespacePrefixMap(getNamespacePrefixList());\n jobParameters.setBatchId(getBatchId());\n jobParameters.getStopWatchTotal().start();\n jobParameters.setSuccessAction(MigrationProperties.get(MigrationProperties.PROP_SOURCE_SUCCESS_ACTION));\n jobParameters.setErrorAction(MigrationProperties.get(MigrationProperties.PROP_SOURCE_ERROR_ACTION));\n jobParameters.setSuccessFolder(MigrationProperties.get(MigrationProperties.PROP_SOURCE_SUCCESS_FOLDER) + \"/\" + jobParameters.getBatchId());\n jobParameters.setErrorFolder(MigrationProperties.get(MigrationProperties.PROP_SOURCE_ERROR_FOLDER) + \"/\" + jobParameters.getBatchId());\n jobParameters.setCurrentFolder(getRootFolder());\n jobParameters.setSkipDocuments(Boolean.valueOf(MigrationProperties.get(MigrationProperties.PROP_MIGRATION_COPY_FOLDERS_ONLY)));\n \n }", "@BeforeMethod\n void setTestConfiguration(Method method) {\n logger.info(\"Setting up ServerAutomationTestCase..\");\n\n // Set test configuration\n testConfig = TestConfiguration.TEST_TO_CONFIG_MAP.get(method.getName());\n }", "public void setParameters(Properties props) {\n\n\t}", "public abstract void initializeTestSuite();", "@Override\r\n\t@BeforeMethod\r\n\tpublic void initSetting() {\n\t\tSystem.out.println(\"start\");\r\n\t\toTest.initSetting();\r\n\t}", "public void setTestMethod(JUnitTestCase testCase) {\n\t\tthis.testCase = testCase;\n\t\tthis.testMethod = testCase.getMethodName();\n\t\tthis.outputFilename = new File(\n\t\t\t\tgetDirectoryFinder().getBuildDirectory(), testType + \".\"\n\t\t\t\t\t\t+ testMethod + \".out\").getAbsolutePath();\n\t}", "protected void runBeforeIterations() {}", "public TestDriverProgram(){\n iTestList = new SortableArray(iSize); // tests if parameterized constructor works\n iTestFileList = new SortableArray(); // tests if default constructor works\n runAllTests(); // run all of the tests\n }", "@BeforeSuite\n\t@Parameters({\"bRunInTestMode\", \"bPrintScreen\",\n\t\t\"CHROME_DRIVER_PATH\",\"IE_DRIVER_PATH\",\"OUTPUT_PATH\",\"IMAGES_PATH\",\n\t\t\"iWaitForElement\",\"iWaitForThread\",\"iWaitForThread1\",\"iWaitForThread2\",\"sBaseURL\"})\n\tpublic void setup(ITestContext ctx, Boolean bRunInTestMode, Boolean bPrintScreen,\n\t\t\tString CHROME_DRIVER_PATH, String IE_DRIVER_PATH, String OUTPUT_PATH, String IMAGES_PATH,\n\t\t\tint iWaitForElement, int iWaitForThread, int iWaitForThread1, int iWaitForThread2, String sBaseURL)\n\t{\n\t\tDOMConfigurator.configure(\"log4j.xml\");\n\t\tlog.info(\"Before suite launch...\");\n\t\tTestRunner runner = (TestRunner) ctx;\n\n\t\tOUTPUT_PATH = (new File(runner.getOutputDirectory())).getParent();\n\t\tIMAGES_PATH = new File(runner.getOutputDirectory()).getParent() + \"_Images\\\\\";\n\n\t\t//Globals variables populated here --- START ---\n\t\tCommonClass.bRunInTestMode \t\t= bRunInTestMode;\n\t\tCommonClass.bPrintScreen \t\t= bPrintScreen;\n\t\tCommonClass.CHROME_DRIVER_PATH\t= CHROME_DRIVER_PATH;\n\t\tCommonClass.IE_DRIVER_PATH \t\t= IE_DRIVER_PATH;\n\t\tCommonClass.OUTPUT_PATH \t\t= OUTPUT_PATH;\n\t\tCommonClass.IMAGES_PATH \t\t= IMAGES_PATH;\n\t\tCommonClass.iWaitForElement \t= iWaitForElement;\n\t\tCommonClass.iWaitForThread \t\t= iWaitForThread;\n\t\tCommonClass.iWaitForThread1 \t= iWaitForThread1;\n\t\tCommonClass.iWaitForThread2 \t= iWaitForThread2;\n\t\tCommonClass.sBaseURL\t\t\t= sBaseURL;\n\t\t//Globals variables populated here --- END ---\n\t\t\n\t\t//Globals variables dumped here --- START ---\n\t\tlog.debug(\"CHROME_DRIVER_PATH:\" + CHROME_DRIVER_PATH);\n\t\tlog.debug(\"IE_DRIVER_PATH:\" + IE_DRIVER_PATH);\n\t\tlog.debug(\"Output Folder:\" + OUTPUT_PATH);\n\t\tlog.debug(\"Images Folder:\" + IMAGES_PATH);\n\t\t//Globals variables dumped here --- END ---\n\t}", "@Override\n\tprotected void setup() {\n\t\tObject[] args = getArguments();\n\t\tif (args != null && args.length == 3) {\n\t\t\tnumAttempts = Integer.parseInt((String) args[0]);\n\t\t\tinitLaps = Integer.parseInt((String) args[1]);\n\t\t\tstep = Integer.parseInt((String) args[2]);\n\t\t\tlogger.info(\"Init experiment (a:\" + numAttempts + \", i:\" + initLaps + \", s:\" + step);\n\t\t} else {\n\t\t\tlogger.log(Logger.SEVERE, \"Agent \" + getLocalName() + \" - Incorrect number of arguments\");\n\t\t\tdoDelete();\n\t\t}\n\t\t// Init experiment\n\t\taddBehaviour(new ExperimentBehaviour(numAttempts, initLaps, step));\n\t}", "@Test\r\n \tpublic void testParameters() {\n \t\tParameters params = (Parameters) filter.getParameters();\r\n \t\t\t\t\t\t\r\n \t\tassertEquals(params.unescapeSource, true);\r\n \t\tassertEquals(params.trimLeading, true);\r\n \t\tassertEquals(params.trimTrailing, true);\r\n \t\tassertEquals(params.preserveWS, true);\r\n \t\tassertEquals(params.useCodeFinder, false);\r\n \t\tassertEquals(\t\t\t\t\r\n \t\t\t\t\"#v1\\ncount.i=2\\nrule0=%(([-0+#]?)[-0+#]?)((\\\\d\\\\$)?)(([\\\\d\\\\*]*)(\\\\.[\\\\d\\\\*]*)?)[dioxXucsfeEgGpn]\\n\" +\r\n \t\t\t\t\"rule1=(\\\\\\\\r\\\\\\\\n)|\\\\\\\\a|\\\\\\\\b|\\\\\\\\f|\\\\\\\\n|\\\\\\\\r|\\\\\\\\t|\\\\\\\\v\\nsample=\\nuseAllRulesWhenTesting.b=false\", \r\n \t\t\t\tparams.codeFinderRules);\r\n \t\t\t\t\t\t\t\t\t\r\n \t\t// Check if defaults are set\r\n \t\tparams = new Parameters();\r\n \t\tfilter.setParameters(params);\r\n \t\t\r\n \t\tparams.columnNamesLineNum = 1;\r\n \t\tparams.valuesStartLineNum = 1;\r\n \t\tparams.detectColumnsMode = 1;\r\n \t\tparams.numColumns = 1;\r\n \t\tparams.sendHeaderMode = 1;\r\n \t\tparams.trimMode = 1;\r\n \t\tparams.fieldDelimiter = \"1\";\r\n \t\tparams.textQualifier = \"1\";\r\n \t\tparams.sourceIdColumns = \"1\";\r\n \t\tparams.sourceColumns = \"1\";\r\n \t\tparams.targetColumns = \"1\";\r\n \t\tparams.commentColumns = \"1\";\r\n \t\tparams.preserveWS = true;\r\n \t\tparams.useCodeFinder = true;\r\n \t\t\r\n \t\tparams = getParameters();\r\n \t\t\r\n \t\tassertEquals(params.fieldDelimiter, \"1\");\r\n \t\tassertEquals(params.columnNamesLineNum, 1);\r\n \t\tassertEquals(params.numColumns, 1);\r\n \t\tassertEquals(params.sendHeaderMode, 1);\r\n \t\tassertEquals(params.textQualifier, \"1\");\r\n \t\tassertEquals(params.trimMode, 1);\r\n \t\tassertEquals(params.valuesStartLineNum, 1);\r\n \t\tassertEquals(params.preserveWS, true);\r\n \t\tassertEquals(params.useCodeFinder, true);\r\n \t\t\r\n \t\t// Load filter parameters from a file, check if params have changed\r\n //\t\tURL paramsUrl = TableFilterTest.class.getResource(\"/test_params1.txt\");\r\n //\t\tassertNotNull(paramsUrl); \r\n \t\t\r\n \r\n \t\ttry {\r\n \t\tString st = \"file:\" + getFullFileName(\"test_params1.txt\");\r\n \t\tparams.load(new URI(st), false);\r\n \t} catch (URISyntaxException e) {\r\n \t}\r\n \r\n \t\t\r\n \t\tassertEquals(\"2\", params.fieldDelimiter);\r\n \t\tassertEquals(params.columnNamesLineNum, 2);\r\n \t\tassertEquals(params.numColumns, 2);\r\n \t\tassertEquals(params.sendHeaderMode, 2);\r\n \t\tassertEquals(\"2\", params.textQualifier);\r\n \t\tassertEquals(params.trimMode, 2);\r\n \t\tassertEquals(params.valuesStartLineNum, 2);\r\n \t\tassertEquals(params.preserveWS, false);\r\n \t\tassertEquals(params.useCodeFinder, false);\r\n \t\t\r\n \t\t// Save filter parameters to a file, load and check if params have changed\r\n \t\tURL paramsUrl = TableFilterTest.class.getResource(\"/test_params2.txt\");\r\n \t\tassertNotNull(paramsUrl);\r\n \t\t\r\n \t\tparams.save(paramsUrl.getPath());\r\n \t\t\r\n \t\t// Change params before loading them\r\n \t\tparams = (Parameters) filter.getParameters();\r\n \t\tparams.fieldDelimiter = \"3\";\r\n \t\tparams.columnNamesLineNum = 3;\r\n \t\tparams.numColumns = 3;\r\n \t\tparams.sendHeaderMode = 3;\r\n \t\tparams.textQualifier = \"3\";\r\n \t\tparams.trimMode = 3;\r\n \t\tparams.valuesStartLineNum = 3;\r\n \t\tparams.preserveWS = true;\r\n \t\tparams.useCodeFinder = true;\r\n \t\t\r\n \t\tparams.load(Util.toURI(paramsUrl.getPath()), false);\r\n \t\t\r\n \t\tassertEquals(params.fieldDelimiter, \"2\");\r\n \t\tassertEquals(params.columnNamesLineNum, 2);\r\n \t\tassertEquals(params.numColumns, 2);\r\n \t\tassertEquals(params.sendHeaderMode, 2);\r\n \t\tassertEquals(params.textQualifier, \"2\");\r\n \t\tassertEquals(params.trimMode, 2);\r\n \t\tassertEquals(params.valuesStartLineNum, 2);\r\n \t\tassertEquals(params.preserveWS, false);\r\n \t\tassertEquals(params.useCodeFinder, false);\r\n \t\t\r\n \t\t// Check if parameters type is controlled\r\n \t\t\r\n \t\tfilter.setParameters(new net.sf.okapi.filters.plaintext.base.Parameters());\r\n \t\tInputStream input = TableFilterTest.class.getResourceAsStream(\"/csv_test1.txt\");\r\n \t\ttry {\r\n \t\t\tfilter.open(new RawDocument(input, \"UTF-8\", locEN));\r\n \t\t\tfail(\"OkapiBadFilterParametersException should've been trown\");\r\n \t\t}\r\n \t\tcatch (OkapiBadFilterParametersException e) {\r\n \t\t}\r\n \t\t\r\n \t\tfilter.close();\r\n \t\r\n \t\tfilter.setParameters(new net.sf.okapi.filters.table.csv.Parameters());\r\n \t\tinput = TableFilterTest.class.getResourceAsStream(\"/csv_test1.txt\");\r\n \t\ttry {\r\n \t\t\tfilter.open(new RawDocument(input, \"UTF-8\", locEN));\r\n \t\t}\r\n \t\tcatch (OkapiBadFilterParametersException e) {\r\n \t\t\tfail(\"OkapiBadFilterParametersException should NOT have been trown\");\r\n \t\t}\r\n \t\t\tfilter.close();\r\n \t}", "@Parameters(\"browser\")\n\t \n @BeforeTest\n // Passing Browser parameter from TestNG xml\n \n public void beforeTest(String browser){\n\t if(browser.equalsIgnoreCase(\"firefox\")){\n\t driver = new FirefoxDriver();\n\t \n\t }// If browser is IE, then do this\n\t else if (browser.equalsIgnoreCase(\"ie\")){ \n\t // Here I am setting up the path for my IEDriver\n\t System.setProperty(\"webdriver.ie.driver\", \"E:\\\\IEDriverServer.exe\");\n\t driver = new InternetExplorerDriver();\n\t } \n\t // Doesn't the browser type, lauch the Website\n\t browserHelper.setUp(driver);\n\t }", "@Override\n public void setTestSessionModifyingParam() {\n sessionModifingParams.addParameter(testVT);\n }", "protected void initTestSuiteParameter() throws FileNotFoundException {\n LOGGER.info(\"............................INITIALIZE SAKULI-CONTEXT\");\n executorService = Executors.newCachedThreadPool();\n BeanLoader.CONTEXT_PATH = \"java-dsl-beanRefFactory.xml\";\n SakuliJavaPropertyPlaceholderConfigurer.TEST_SUITE_FOLDER_VALUE = getTestSuiteFolder();\n SakuliJavaPropertyPlaceholderConfigurer.SAKULI_HOME_FOLDER_VALUE = getSakuliHomeFolder();\n SakuliJavaPropertyPlaceholderConfigurer.SAHI_HOME_VALUE = getSahiFolder();\n InitializingServiceHelper.invokeInitializingServcies();\n }", "@Test\n public void testDAM30103001() {\n // settings as done for testDAM30102001 are identical\n testDAM30102001();\n }", "@Before\r\n\tpublic void setup() {\r\n\t\tMockitoAnnotations.initMocks(this);\r\n\t\tcompute(\"12-10-19\",\"[email protected]\", null, 22,20);\r\n\t\tcompute(\"10-09-20\",\"[email protected]\", null, 22,20);\r\n\t\tcompute(\"11-08-20\",\"[email protected]\", null, 22,20);\r\n\t\tcompute(\"03-05-17\",\"[email protected]\", null, 22,20);\r\n\t\tcompute(\"09-03-19\",\"[email protected]\", null, 22,20);\r\n\t\tcompute(\"01-02-17\",\"[email protected]\", null, 22,20);\r\n\t}", "private void SetUp() {\n numbers.add(0);\n numbers.add(1);\n numbers.add(2);\n numbers.add(3);\n numbers.add(4);\n numbers.add(5);\n numbers.add(6);\n numbers.add(7);\n numbers.add(8);\n numbers.add(9);\n\n PuzzleSolve(10, empty, numbers);\n }", "@Test (dataProvider= \"My data provider\")\r\n\tpublic void TestCalcParamitarized(String in1,String Op, String in2,String Expec){ //.... 1- Parameterized test method -Define method input parameters-\r\n\t\tCalc(in1, Op, in2);\r\n\t\tassertResult(Expec);\t\t\r\n\t}", "void setExampleParameters(String strExampleParams);", "public void runIndividualSpreadsheetTests() {\r\n\r\n\t\t// Make a list of files to be analyzed\r\n\t\tString[] inputFiles = new String[] {\r\n//\t\t\t\t\"salesforecast_TC_IBB.xml\",\r\n//\t\t\t\t\"salesforecast_TC_2Faults.xml\",\r\n//\t\t\t\t\t\t\t\"salesforecast_TC_2FaultsHeavy.xml\",\r\n\t\t\t\t\"SemUnitEx1_DJ.xml\",\r\n\t\t\t\t\"SemUnitEx2_1fault.xml\",\r\n\t\t\t\t\"SemUnitEx2_2fault.xml\",\r\n//\t\t\t\t\"VDEPPreserve_1fault.xml\",\r\n//\t\t\t\t\"VDEPPreserve_2fault.xml\",\r\n//\t\t\t\t\t\t\t\"VDEPPreserve_3fault.xml\",\r\n//\t\t\t\t\"AZA4.xml\",\r\n//\t\t\t\t\"Consultant_form.xml\",\r\n//\t\t\t\t\"Hospital_Payment_Calculation.xml\",\r\n//\t\t\t\t\"Hospital_Payment_Calculation_v2.xml\",\r\n//\t\t\t\t\"Hospital_Payment_Calculation_C3.xml\",\r\n//\t\t\t\t\"11_or_12_diagnoses.xml\",\r\n//\t\t\t\t\"choco_loop.xml\",\r\n//\t\t\t\t\"Paper2.xml\",\r\n//\t\t\t\t\"Test_If.xml\",\r\n//\t\t\t\t\"Test_If2.xml\",\r\n\r\n\t\t};\r\n\r\n\t\tscenarios.add(new Scenario(executionMode.singlethreaded, pruningMode.on, PARALLEL_THREADS, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.levelparallel, pruningMode.on, 2, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.fullparallel, pruningMode.on, 1, CHOCO3));\r\n\t\tscenarios.add(new Scenario(executionMode.fullparallel, pruningMode.on, 2, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.fullparallel, pruningMode.on, 4, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.heuristic, pruningMode.on, 1, CHOCO3));\r\n\t\tscenarios.add(new Scenario(executionMode.heuristic, pruningMode.on, 2, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.heuristic, pruningMode.on, 4, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.heuristic, pruningMode.on, PARALLEL_THREADS, true));\r\n//\t\tscenarios.add(new Scenario(executionMode.hybrid, pruningMode.on, 1, CHOCO3));\r\n\t\tscenarios.add(new Scenario(executionMode.hybrid, pruningMode.on, 2, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.hybrid, pruningMode.on, 4, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.levelparallel, pruningMode.on, PARALLEL_THREADS, false));\r\n//\t\tscenarios.add(new Scenario(executionMode.fullparallel, pruningMode.on, PARALLEL_THREADS, false));\r\n//\t\tscenarios.add(new Scenario(executionMode.fullparallel, pruningMode.on, PARALLEL_THREADS, false));\r\n//\t\tscenarios.add(new Scenario(executionMode.heuristic,pruningMode.on,PARALLEL_THREADS*2));\r\n//\t\tscenarios.add(new Scenario(executionMode.heuristic,pruningMode.on,0));\r\n\r\n//\t\tinputFiles = new String[]{\"VDEPPreserve_3fault.xml\"};\r\n\r\n\r\n\t\t// Go through the files and run them in different scenarios\r\n\t\tfor (String inputfilename : inputFiles) {\r\n\t\t\trunScenarios(inputFileDirectory, inputfilename, logFileDirectory, scenarios);\r\n\t\t}\r\n\t}", "@BeforeClass public static void initialiseScenario(){\n SelectionScenario.initialiseScenario();\n }", "public void evaluateParameters() throws SecoreException {\n stack.clear();\n for (Parameter parameter : values()) {\n evaluateParameter(parameter);\n }\n }", "public static void main( String args[] ) {\n\n for ( int j = 0; j < TEST_COUNT; ++j ) {\n testSuite[j].execute();\n }\n }", "private void generate_test_case(int Index, StringBuffer Code, DataType[] ParamTypes, DataType ReturnType, TestCase Case)\n {\n int I;\n String[] Inputs = Case.getInput();\n String Output = Case.getOutput();\n String Desc = ReturnType.getDescription();\n\n /*\n * Generate code for setting up individual test cases\n * and calling the method with these parameters.\n */\n Code.append(\"\\t\\t// test_case_\" + Index + \"\\n\");\n Code.append(\"\\t\\tif ((Case == -1) || (Case == n)){\\n\");\n\n // Generate each input variable separately\n String additional = \"\";\n for (I = 0; I < Inputs.length; ++I)\n additional += generate_parameter(I, Code, ParamTypes[I], Inputs[I]);\n // next\n\n // Generate the output variable as the last variable\n additional += generate_parameter(Inputs.length, Code, ReturnType, Output);\n\n Code.append(\"\\n\" + additional);\n\n Code.append(\"\\t\\t\\tverify_case(n, Arg\" + Inputs.length + \", \" + m_Problem.getMethodName() + \"(\");\n\n // Generate the function call list\n for (I = 0; I < Inputs.length; ++I)\n {\n Code.append(\"Arg\" + I);\n\n if (I < (Inputs.length - 1))\n Code.append(\", \");\n // end if\n }\n // next\n\n Code.append(\"));\\n\\t\\t}\\n\\t\\tn++;\\n\\n\");\n }", "@Before\n public void setUp() {\n Assume.assumeTrue(!IS_CIRCLE_BUILD);\n\n searchField = myDashboard.searchField;\n showAllButton = myDashboard.showAllButton;\n subjectCheckboxes = myDashboard.subjectCheckboxes;\n openPresButton = myDashboard.openPresButton;\n fileChooser = myDashboard.fileChooser;\n menuBar = myDashboard.menuBar;\n calendarNode = myDashboard.calendarNode;\n calendar = myDashboard.calendar;\n\n subjectSortCombo = myDashboard.subjectSortCombo;\n moduleSortCombo = myDashboard.moduleSortCombo;\n presSortCombo = myDashboard.presSortCombo;\n\n subjectPanels = myDashboard.subjectPanels;\n presentationPanels = myDashboard.presentationPanels;\n modulePanels = subjectPanels.get(0).getModulePanels();\n }", "public ResultatTest() {\n\t\tthis.nbTests = 0;\n\t\tthis.echecs = new ArrayList<TestExecute>();\n\t\tthis.erreurs = new ArrayList<TestExecute>();\n\t}", "@Override\r\n\tprotected void setUp() throws Exception {\n\t\ttester = new WicketTester(new MockWicketApplication(ConnectDao.getInstance()));\r\n\t\t\r\n\t\tdao = ConnectDao.getInstance();\r\n\t\t\r\n\t\tdao.insert(\"insert into system.users values ('scott', 'tigerrrr')\");\r\n\t\tdao.insert(\"insert into system.databases values ('00001', 'database1', 'scott', '09-01-01', '09-01-01')\");\r\n\t\tdao.insert(\"insert into system.databases values ('00002', 'database2', 'scott', '09-01-02', '09-01-02')\");\r\n\t\tdao.insert(\"insert into system.tables values ('0000001', 'emp0', '00001')\");\r\n\t\tdao.insert(\"insert into system.tables values ('0000002', 'dept0', '00001')\");\r\n\t\tdao.insert(\"insert into system.tables values ('0000003', 'emp', '00002')\");\r\n\t\tdao.insert(\"insert into system.tables values ('0000004', 'dept', '00002')\");\r\n\t\t\r\n\t\tdao.insert(\"commit\");\r\n\t\t\r\n\t\tpp = new PageParameters();\r\n\t\tString[] strs = new String[]{\"database1\", \"database2\"};\r\n\t\tpp.put(\"databases\", strs);\r\n\t\tpp.put(\"user\", \"ikemotot\");\r\n\r\n\t\t\r\n\t\ttester.startPage(rmp = new ResponseMeasurementPage(pp, new MockCommand()));\r\n\t}", "@Test\n\tpublic static void runAllTheTests() {\n\t\ttestGetters();\n\t}", "@Parameters({\"name\", \"lastName\"})\n @Test\n public void test1(String name, String lastName){\n System.out.println(\"Name is \"+ name);\n System.out.println(\"Last name is \"+ lastName);\n }", "public static void setTestDefaults(Specimen specimen, Test test) { \t\r\n \t\r\n \tSet<String> accessionNumberSet = new HashSet<String>();\r\n \tSet<Date> dateOrderedSet = new HashSet<Date>();\r\n \tSet<Date> dateReceivedSet = new HashSet<Date>();\r\n \tSet<Location> labSet = new HashSet<Location>();\r\n \t\r\n \t// first add the identifier of the sample to the accession number set\r\n \taccessionNumberSet.add(specimen.getIdentifier());\r\n \t\r\n \t// now loop through all the tests for this sample, excluding the test we want to set the defaults for\r\n \tfor (Test t : specimen.getTests()) {\r\n \t\tif (t != test) {\r\n \t\t\taccessionNumberSet.add(t.getAccessionNumber());\r\n \t\t\tdateOrderedSet.add(t.getDateOrdered());\r\n \t\t\tdateReceivedSet.add(t.getDateReceived());\r\n \t\t\tlabSet.add(t.getLab());\r\n \t\t}\r\n \t}\r\n \t\r\n \t// test if any of are sets contain exactly one non-null member\r\n \tif (accessionNumberSet.size() == 1 && !accessionNumberSet.contains(null)) {\r\n \t\ttest.setAccessionNumber(accessionNumberSet.iterator().next());\r\n \t}\r\n \tif (dateOrderedSet.size() == 1 && !dateOrderedSet.contains(null)) {\r\n \t\ttest.setDateOrdered(dateOrderedSet.iterator().next());\r\n \t}\r\n \tif (dateReceivedSet.size() == 1 && !dateReceivedSet.contains(null)) {\r\n \t\ttest.setDateReceived(dateReceivedSet.iterator().next());\r\n \t}\r\n \tif (labSet.size() == 1 && !labSet.contains(null)) {\r\n \t\ttest.setLab(labSet.iterator().next());\r\n \t}\r\n }", "public void run(TestCase testCase) {\n }", "@BeforeTest\r\n\tpublic void setup()throws InterruptedException, MalformedURLException, IOException {\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t// Stream the data from the config properties file and store in the object input\r\n\t\t\tinput = new FileInputStream(\"./config.properties\");\r\n\t\t\tProperties prop = new Properties();\r\n\t\t\t\r\n\t\t\t// Load the data into prop object\r\n\t\t\tprop.load(input);\r\n\t\t\t\r\n\t\t\t//Assign the values into the variables taken from config properties file\r\n\t\t\tstrBrowser = prop.getProperty(\"BROWSER\");\r\n\t\t\tstrBaseUrl = prop.getProperty(\"BASE_URL\");\r\n\t\t\t\r\n\t\t\t//Choose the browser and launch by getting the values from config properties file\r\n\t\t\tif(strBrowser.equalsIgnoreCase(\"chrome\")) {\r\n\t\t\t\t\r\n\t\t\t\t//Sets the property of the chrome driver\r\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./Drivers/chromedriver.exe\");\r\n\t\t\t\t\r\n\t\t\t\tdriver = new ChromeDriver();\r\n\t\t\t\t\r\n\t\t\t\t// Yet to provide the details for both IE and firefox below\r\n\t\t\t} else if(strBrowser.equalsIgnoreCase(\"ie\")) {\r\n\t\t\t\tSystem.setProperty(\"\", \"\");\r\n\t\t\t\tdriver = new InternetExplorerDriver();\r\n\t\t\t} else if(strBrowser.equalsIgnoreCase(\"firefox\")) {\r\n\t\t\t\tSystem.setProperty(\"\", \"\");\r\n\t\t\t\tdriver = new FirefoxDriver();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdriver.get(strBaseUrl);\r\n\t\t\tdriver.manage().window().maximize();\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tSystem.out.println(\"Provide a valid data for driver\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "@Before\n public void setUp() throws Exception {\n HashMap<String, String> prop = PropertyReader.getProperties(ORACLEPROP);\n if (prop.get(\"schema\") != null && !prop.get(\"schema\").isEmpty())\n databaseTester = new JdbcDatabaseTester(prop.get(\"dbClass\"), prop.get(\"dbURL\"), prop.get(\"user\"), prop.get(\"pass\"), prop.get(\"schema\"));\n else\n databaseTester = new JdbcDatabaseTester(prop.get(\"dbClass\"), prop.get(\"dbURL\"), prop.get(\"user\"), prop.get(\"pass\"));\n\n // initialize your dataset here\n IDataSet dataSet = getDataSet();\n\n databaseTester.setDataSet(dataSet);\n // will call default setUpOperation\n databaseTester.onSetup();\n }", "@Before\n\tpublic void setUp() {\n\t\ttest_count++;\n\t\tSystem.out.println(\"Test \"+ test_count);\n\t}", "public static void main(String[] args) {\n final int t = SYS_IN.nextInt(); // total test cases\n SYS_IN.nextLine();\n for (int ti = 0; ti < t; ti++) {\n evaluateCase();\n }\n SYS_IN.close();\n }", "@Test\npublic void testInitRobotGaming() throws Exception {\n try {\n RobotGamingProcess.initRobotGaming(mapFileList, strategyArrayList, gamesValue, gameRoundValue);\n } catch (ExceptionInInitializerError e) {\n //e.printStackTrace();\n }\n Assert.assertTrue(strategyArrayList.get(0).toString().equals(\"Aggressive\"));\n Assert.assertTrue(strategyArrayList.get(1).toString().equals(\"Random\"));\n}", "public void testParameterize() throws Exception {\n Map parameters1 = new HashMap();\n\n Object[] test_values = {\n new Object[]{\"/foo/bar\", parameters1, \"/foo/bar\"},\n };\n\n for (int i = 0; i < test_values.length; i++) {\n Object tests[] = (Object[]) test_values[i];\n String test = (String) tests[0];\n Map parameters = (Map) tests[1];\n String expected = (String) tests[2];\n\n String result = NetUtils.parameterize(test, parameters);\n String message = \"Test \" + \"'\" + test + \"'\";\n assertEquals(message, expected, result);\n }\n\n Map parameters2 = new HashMap();\n parameters2.put(\"a\", \"b\");\n parameters2.put(\"c\", \"d\");\n \n String test = \"bar\";\n String expected1 = \"bar?a=b&c=d\";\n String expected2 = \"bar?c=d&a=b\";\n \n String message = \"Test \" + \"'\" + test + \"'\";\n \n String result = NetUtils.parameterize(test, parameters2); \n\n if (expected1.equals(result)) {\n assertEquals(message, expected1, result); \n } else {\n assertEquals(message, expected2, result); \n }\n }", "@Override\n\tpublic void setTest() {\n\t}", "@BeforeMethod\n public void setUp() throws Exception {\n UserInterface.init();\n\n testUser = UserInterface.getUserInfo();\n testGoals = UserInterface.getGoals();\n Random rnd = new Random();\n\n if(testGoals.size() > 1) {\n randomGoalID = rnd.nextInt(testGoals.size() - 1);\n testGoal = testGoals.get(randomGoalID);\n }\n else {\n UserInterface.addGoal(\"ValidName\", \"ValidDesciption\");\n randomGoalID = 0;\n reloadTestGoal();\n }\n }", "public static void resetParams()\n {\n Debug = false;\n SpecOption = false;\n MyspecOption = false;\n Spec2Option = false;\n Myspec2Option = false;\n SpecFile = \"\";\n WriteASTFlag = false;\n LabelFlag = false;\n ReportLabelsFlag = false;\n LabelRoot = \"Lbl_\";\n FairnessOption = \"\";\n FairAlgorithm = false;\n CheckTermination = false;\n NoOld = false;\n Nocfg = false;\n NoDoneDisjunct = false;\n optionsInFile = false;\n versionOption = null;\n inputVersionNumber = PcalParams.versionWeight;\n PcalTLAGen.wrapColumn = 78;\n PcalTLAGen.ssWrapColumn = 45;\n tlaPcalMapping = null ;\n \n }", "void controlParameters(Tesseract instance) throws Exception {\n File configvarsFilePath = new File(datapath, CONFIG_PATH + CONFIGVARS_FILE);\n if (!configvarsFilePath.exists()) {\n return;\n }\n\n String str = Utils.readTextFile(configvarsFilePath);\n\n for (String line : str.split(\"\\n\")) {\n if (!line.trim().startsWith(\"#\")) {\n try {\n String[] keyValuePair = line.trim().split(\"\\\\s+\");\n instance.setVariable(keyValuePair[0], keyValuePair[1]);\n } catch (Exception e) {\n //ignore and continue on\n }\n }\n }\n }", "public static void testISPIssuesPlan(){\r\n\t\ttry {\r\n\t\t\tLogFunctions.generateLogsDirectory();\t\r\n\t\t\tGlobalVariables.steps = 0;\r\n\t\t\tGlobalVariables.testCaseId = \"REST004_ISPIssuesPlan\";\r\n\t\t\t\r\n\t\t\t// Create Log Files\r\n\t\t\tGlobalVariables.testResultLogFile = LogFunctions.generateLogFile(GlobalVariables.logFile + \"_\"+ GlobalVariables.testCaseId + \".log\");\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Test Case : REST004_ISPIssuesPlan Execution Started\");\r\n\t\t\tSystem.out.println(\"testISPPlanPlanner Method\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") REST004_ISPIssuesPlan Execution Started\");\r\n\t\t\t\r\n\t\t\t// For managing SSL connections\r\n\t\t\tConfigurations.validateTrustManager();\t\t\t\r\n\t\t\t// Reading input data from CSV File\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tConfigurations.getTestData(\"REST004_ISPIssues.csv\");\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Reading Data From CSV File\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Reading Data From CSV File\");\r\n\r\n\t\t\t// Send Request\r\n\t\t\tString data =GlobalVariables.testData.get(\"api\")+\"/version/\"+GlobalVariables.testData.get(\"versionNumber\")+\"/issues\";\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tConfigurations.sendRequest(data);\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Sending Request\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Request Sent\");\r\n\t\t\t// Receive Response in XML File (response.xml)\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tConfigurations.getResponse();\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Getting Response\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Response Received\");\r\n\t\t\t\r\n\t\t\t// Assertion: verify that PlanSummary\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tboolean planAgentResult;\r\n\t\t\t//Verify planIdentifier release\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"planIdentifier\",\"release\",GlobalVariables.testData.get(\"release\"));\r\n\t\t\tAssert.assertEquals(\"planIdentifier release is\",true,planAgentResult);\t\t\t\r\n\t\t\t//Verify user name \r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"user\",\"username\",GlobalVariables.testData.get(\"username\"));\r\n\t\t\tAssert.assertEquals(\"user name is\",true,planAgentResult);\t\t\t\r\n\t\t\t// Verify user full Name\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"user\",\"fullName\",GlobalVariables.testData.get(\"fullName\"));\t\r\n\t\t\tAssert.assertEquals(\"Full Name is\",true,planAgentResult);\r\n\t\t\t// Verify user email\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"user\",\"email\",GlobalVariables.testData.get(\"email\"));\r\n\t\t\tAssert.assertEquals(\"Email is\",true,planAgentResult);\r\n\t\t\t// Verify Agent ID\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"agent\",\"id\",GlobalVariables.testData.get(\"agentId\"));\t\r\n\t\t\tAssert.assertEquals(\"Agent is\",true,planAgentResult);\r\n\t\t\t// Verify Agent Name\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"agent\",\"name\",GlobalVariables.testData.get(\"agentName\"));\t\r\n\t\t\tAssert.assertEquals(\"Agent Name is\",true,planAgentResult);\r\n\t\t\t// Verify Agent Unique Identity\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"agent\",\"hasUniqueIdentity\",GlobalVariables.testData.get(\"hasUniqueIdentity\"));\t\r\n\t\t\tAssert.assertEquals(\"Agent Unique Identity is\",true,planAgentResult);\r\n\t\t\t// Verify Agent Anonymous\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"agent\",\"isAnonymous\",GlobalVariables.testData.get(\"isAnonymous\"));\t\r\n\t\t\tAssert.assertEquals(\"Is Agent Anonymous\",true,planAgentResult);\r\n\t\t\t// Verify Agent Kind\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"agent\",\"kind\",GlobalVariables.testData.get(\"kind\"));\t\r\n\t\t\tAssert.assertEquals(\"Agent Kind is\",true,planAgentResult);\t\t\t\r\n\t\t\t// Verify Agent Kind\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"availability\",\"always\",GlobalVariables.testData.get(\"always\"));\t\r\n\t\t\tAssert.assertEquals(\"Availability always is\",true,planAgentResult);\t\t\t\r\n\t\t\t// Verify documents type\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"documents\",\"type\",GlobalVariables.testData.get(\"documentsType\"));\r\n\t\t\tAssert.assertEquals(\"Documents type is\",true,planAgentResult);\t\t\t\r\n\t\t\t//Verify documents url\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"documents\",\"url\",GlobalVariables.testData.get(\"documentsUrl\"));\r\n\t\t\tAssert.assertEquals(\"Documents url is\",true,planAgentResult);\t\t\t\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Plan Summary Assertion Pass\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Assertion Pass\");\r\n\t\t\t\r\n\t\t\t// Execution Completed\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Test Case : REST004_ISPIssuesPlan Execution Completed\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps+ \") Test Case : REST004_ISPIssuesPlan Execution Completed\");\r\n\t\t\t\r\n\t\t}catch (AssertionError ar) {\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\")Assertion Failed : \");\r\n\t\t\tar.printStackTrace();\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Assertion Failed\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogFunctions.logException(e.getMessage());\r\n\t\t}\r\n\t}", "@BeforeAll\n public static void configInitialization() {\n System.setProperty(\"VSAC_DRC_URL\", \"https://vsac.nlm.nih.gov/vsac\");\n System.setProperty(\"SERVER_TICKET_URL\", \"https://vsac.nlm.nih.gov/vsac/ws/Ticket\");\n System.setProperty(\"SERVER_SINGLE_VALUESET_URL\", \"https://vsac.nlm.nih.gov/vsac/ws/RetrieveValueSet?\");\n System.setProperty(\"SERVER_MULTIPLE_VALUESET_URL_NEW\", \"https://vsac.nlm.nih.gov/vsac/svs/RetrieveMultipleValueSets?\");\n System.setProperty(\"SERVICE_URL\", \"http://umlsks.nlm.nih.gov\");\n System.setProperty(\"PROFILE_SERVICE\", \"https://vsac.nlm.nih.gov/vsac/profiles\");\n System.setProperty(\"VERSION_SERVICE\", \"https://vsac.nlm.nih.gov/vsac/oid/\");\n }", "@Before\n public void setUp() throws Exception {\n String apiKey = System.getenv(\"OST_KIT_API_KEY\");\n if ( null == apiKey ) {\n throw new Exception(\"Environment Variable OST_KIT_API_KEY is not set.\");\n }\n \n // get the ost kit api secret from environment.\n String apiSecret = System.getenv(\"OST_KIT_API_SECRET\");\n if ( null == apiSecret ) {\n throw new Exception(\"Environment Variable OST_KIT_API_SECRET is not set.\");\n }\n \n // get the ost kit api endpoint from environment.\n String v0Endpoint = System.getenv(\"OST_KIT_API_ENDPOINT\");\n if ( null == v0Endpoint ) {\n throw new Exception(\"Environment Variable OST_KIT_API_ENDPOINT is not set.\");\n }\n \n // get the ost kit api endpoint for v1 version from environment.\n String v1Endpoint = System.getenv(\"OST_KIT_API_V1_ENDPOINT\");\n if ( null == v1Endpoint ) {\n throw new Exception(\"Environment Variable OST_KIT_API_V1_ENDPOINT is not set.\");\n }\n\n apiV0Params = new HashMap<String, Object>();\n apiV0Params.put( \"apiKey\", apiKey);\n apiV0Params.put( \"apiSecret\", apiSecret);\n apiV0Params.put( \"apiEndpoint\", v0Endpoint);\n\n apiV1Params = new HashMap<String, Object>();\n apiV1Params.put( \"apiKey\", apiKey);\n apiV1Params.put( \"apiSecret\", apiSecret);\n apiV1Params.put( \"apiEndpoint\", v1Endpoint);\n }", "@Before\n\tpublic void testEachSetup() {\n\t\ttestGrid = new Grid(50,50);\n\t\tundoRedo_TestStack = new UndoRedo();\n\t\tSystem.out.println(\"Setting up test...\");\n\t}", "private void runPerViewSettingsTest(XWalkViewSettingsTestHelper helper0,\n XWalkViewSettingsTestHelper helper1) throws Throwable {\n helper0.ensureSettingHasInitialValue();\n helper1.ensureSettingHasInitialValue();\n\n helper1.setAlteredSettingValue();\n helper0.ensureSettingHasInitialValue();\n helper1.ensureSettingHasAlteredValue();\n\n helper1.setInitialSettingValue();\n helper0.ensureSettingHasInitialValue();\n helper1.ensureSettingHasInitialValue();\n\n helper0.setAlteredSettingValue();\n helper0.ensureSettingHasAlteredValue();\n helper1.ensureSettingHasInitialValue();\n\n helper0.setInitialSettingValue();\n helper0.ensureSettingHasInitialValue();\n helper1.ensureSettingHasInitialValue();\n\n helper0.setAlteredSettingValue();\n helper0.ensureSettingHasAlteredValue();\n helper1.ensureSettingHasInitialValue();\n\n helper1.setAlteredSettingValue();\n helper0.ensureSettingHasAlteredValue();\n helper1.ensureSettingHasAlteredValue();\n\n helper0.setInitialSettingValue();\n helper0.ensureSettingHasInitialValue();\n helper1.ensureSettingHasAlteredValue();\n\n helper1.setInitialSettingValue();\n helper0.ensureSettingHasInitialValue();\n helper1.ensureSettingHasInitialValue();\n }", "@Test\n public void MyTest() {\n System.out.println(\"Parameterized Number is : \" + inputNumber);\n System.out.println(\"Expected Result is : \" + expectedResult);\n }", "TestClassExecutionResult assertTestsExecuted(TestCase... testCases);", "@Override\n\tprotected void setParameterValues() {\n\t}", "@Before\n public void setUp() {\n this.scoreBoard = new ScoreBoard();\n\n\n // Add some record with complexity 3\n DataManager.INSTANCE.setCurrentUserName(\"@u1\");\n DataManager.INSTANCE.setCurrentGameName(\"CM\");\n DataManager.INSTANCE.startNewGame(5);\n DataManager.INSTANCE.setCurrentGameName(\"ST\");\n DataManager.INSTANCE.setBoardManager(new BoardManager(3));\n DataManager.INSTANCE.getBoardManager().addScoreBy(1);\n this.scoreBoard.addNewRecords(new Record());\n\n this.scoreBoard.addNewRecords(new Record(3, 10, \"@u2\", \"ST\"));\n this.scoreBoard.addNewRecords(new Record(3, 25, \"@u3\", \"ST\"));\n this.scoreBoard.addNewRecords(new Record(4, 5, \"@u1\", \"ST\"));\n this.scoreBoard.addNewRecords(new Record(3, 15, \"@u3\", \"ST\"));\n }", "@Before\n public void setUp() {\n for (int index = 0; index < testPartsIndex.length - 1; index++) {\n testPartsIndex[index] = 0;\n }\n }", "public static void testISPIssuesPlanMetrics(){\r\n\t\ttry {\r\n\t\t\tLogFunctions.generateLogsDirectory();\t\r\n\t\t\t\r\n\t\t\tGlobalVariables.steps = 0;\r\n\t\t\tGlobalVariables.testCaseId = \"REST004_ISPIssuesPlanMetrics\";\r\n\t\t\t\r\n\t\t\t// Create Log Files\r\n\t\t\tGlobalVariables.testResultLogFile = LogFunctions.generateLogFile(GlobalVariables.logFile + \"_\"+ GlobalVariables.testCaseId + \".log\");\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Test Case : REST004_ISPIssuesPlanMetrics Execution Started\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") REST004_ISPIssuesPlanMetrics Execution Started\");\r\n\t\t\t\r\n\t\t\t// For managing SSL connections\r\n\t\t\tConfigurations.validateTrustManager();\r\n\t\t\t\r\n\t\t\t// Reading input data from CSV File\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tConfigurations.getTestData(\"REST004_ISPIssues.csv\");\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Reading Data From CSV File\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Reading Data From CSV File\");\r\n\r\n\t\t\t// Send Request\r\n\t\t\tString data =GlobalVariables.testData.get(\"api\")+\"/version/\"+GlobalVariables.testData.get(\"versionNumber\")+\"/issues\";\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tConfigurations.sendRequest(data);\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Sending Request\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Request Sent\");\r\n\t\t\t\r\n\t\t\t// Receive Response in XML File (response.xml)\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tConfigurations.getResponse();\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Getting Response\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Response Received\");\r\n\t\t\t\r\n\t\t\t// Assertion: Verify that Plan Metrics\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tboolean planAgentResult;\r\n\t\t\t// Verify Count Name\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"count\",\"type\",GlobalVariables.testData.get(\"countType\"));\t\r\n\t\t\tAssert.assertEquals(\"Count type is\",true,planAgentResult);\r\n\t\t\t// Verify Count Value\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"count\",\"value\",GlobalVariables.testData.get(\"countValue\"));\t\r\n\t\t\tAssert.assertEquals(\"Count Value is\",true,planAgentResult);\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Plan Summary Assertion Pass\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Assertion Pass\");\r\n\t\t\t\r\n\t\t\t// Execution Completed\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Test Case : REST004_ISPIssuesPlanMetrics Execution Completed\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps+ \") Test Case : REST004_ISPIssuesPlanMetrics Execution Completed\");\r\n\t\t\t\r\n\t\t}catch (AssertionError ar) {\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\")Assertion Failed : \");\r\n\t\t\tar.printStackTrace();\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Assertion Failed\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogFunctions.logException(e.getMessage());\r\n\t\t}\r\n\t}", "@BeforeTest\r\n\t@Parameters(\"browser\")\r\n\tpublic void setup(String browsername) throws Exception{\r\n\t\t//Check if parameter passed from TestNG is 'firefox'\r\n\t\tif(browsername.equalsIgnoreCase(\"firefox\")){\r\n\t\t//create firefox instance\r\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", \".\\\\drivers\\\\geckodriver.exe\");\r\n\t\t\tdriver = new FirefoxDriver();\r\n\t\t}\r\n\t\t//Check if parameter passed as 'chrome'\r\n\t\telse if(browsername.equalsIgnoreCase(\"chrome\")){\r\n\t\t\t//set path to chromedriver.exe\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",\".\\\\drivers\\\\chromedriver.exe\");\r\n\t\t\t//create chrome instance\r\n\t\t\tdriver = new ChromeDriver();\r\n\t\t}\r\n\t\t//Check if parameter passed as 'Edge'\r\n\t\t\t\telse if(browsername.equalsIgnoreCase(\"Edge\")){\r\n\t\t\t\t\t//set path to Edge.exe\r\n\t\t\t\t\tSystem.setProperty(\"webdriver.edge.driver\",\".\\\\drivers\\\\MicrosoftWebDriver.exe\");\r\n\t\t\t\t\t//create Edge instance\r\n\t\t\t\t\tdriver = new EdgeDriver();\r\n\t\t\t\t}\r\n\t\telse{\r\n\t\t\t//If no browser passed throw exception\r\n\t\t\tthrow new Exception(\"Browser is not correct\");\r\n\t\t}\r\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t}" ]
[ "0.65117896", "0.6504845", "0.6259734", "0.6101751", "0.6090006", "0.6050044", "0.5950355", "0.59231925", "0.59231925", "0.583754", "0.58262813", "0.5826187", "0.581411", "0.5802065", "0.5797228", "0.57944435", "0.5785927", "0.57638097", "0.5750672", "0.5721558", "0.57094586", "0.57085955", "0.56999975", "0.568952", "0.56877804", "0.56718403", "0.56680477", "0.5660029", "0.5658736", "0.5652049", "0.56475323", "0.5604519", "0.5600521", "0.5599445", "0.559182", "0.5583401", "0.55825144", "0.55822974", "0.55754685", "0.5570278", "0.5549108", "0.5546894", "0.5535552", "0.5531198", "0.55309063", "0.55179095", "0.551618", "0.551435", "0.5504232", "0.550274", "0.54953855", "0.5489794", "0.5485184", "0.5462025", "0.5461765", "0.5460015", "0.545906", "0.5452382", "0.54432595", "0.5437606", "0.5436029", "0.5422957", "0.541678", "0.54153985", "0.5411655", "0.54101247", "0.54046065", "0.5402792", "0.53997904", "0.5398148", "0.538396", "0.53771454", "0.537377", "0.53667325", "0.536554", "0.53616047", "0.53532356", "0.5353074", "0.53460926", "0.53458005", "0.5333577", "0.5332866", "0.5331737", "0.53293633", "0.53290933", "0.5327158", "0.5325406", "0.53101176", "0.53093576", "0.5308159", "0.530654", "0.530409", "0.5303525", "0.53008807", "0.52955574", "0.5290853", "0.5290775", "0.52883595", "0.5285683", "0.5276162" ]
0.75485426
0
The Factory for the model. It provides a create method for each nonabstract class of the model.
public interface RaspiroverFactory extends EFactory { /** * The singleton instance of the factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ RaspiroverFactory eINSTANCE = rover.raspirover.raspirover.impl.RaspiroverFactoryImpl.init(); /** * Returns a new object of class '<em>Ras Pi Board</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Ras Pi Board</em>'. * @generated */ RasPiBoard createRasPiBoard(); /** * Returns a new object of class '<em>Project</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Project</em>'. * @generated */ Project createProject(); /** * Returns a new object of class '<em>Sketch</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Sketch</em>'. * @generated */ Sketch createSketch(); /** * Returns a new object of class '<em>Block</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Block</em>'. * @generated */ Block createBlock(); /** * Returns a new object of class '<em>Digital Pin</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Digital Pin</em>'. * @generated */ DigitalPin createDigitalPin(); /** * Returns a new object of class '<em>Pin</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Pin</em>'. * @generated */ Pin createPin(); /** * Returns a new object of class '<em>Analog Pin</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Analog Pin</em>'. * @generated */ AnalogPin createAnalogPin(); /** * Returns a new object of class '<em>Rover Program</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Rover Program</em>'. * @generated */ RoverProgram createRoverProgram(); /** * Returns a new object of class '<em>Param</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Param</em>'. * @generated */ Param createParam(); /** * Returns a new object of class '<em>Var Assignment</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Var Assignment</em>'. * @generated */ VarAssignment createVarAssignment(); /** * Returns a new object of class '<em>Conditional</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Conditional</em>'. * @generated */ Conditional createConditional(); /** * Returns a new object of class '<em>Loop</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Loop</em>'. * @generated */ Loop createLoop(); /** * Returns a new object of class '<em>Rcl Block</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Rcl Block</em>'. * @generated */ RclBlock createRclBlock(); /** * Returns a new object of class '<em>Temperature Query</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Temperature Query</em>'. * @generated */ TemperatureQuery createTemperatureQuery(); /** * Returns a new object of class '<em>Humidity Query</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Humidity Query</em>'. * @generated */ HumidityQuery createHumidityQuery(); /** * Returns a new object of class '<em>Message Query</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Message Query</em>'. * @generated */ MessageQuery createMessageQuery(); /** * Returns a new object of class '<em>Obstacle Query</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Obstacle Query</em>'. * @generated */ ObstacleQuery createObstacleQuery(); /** * Returns a new object of class '<em>Numeric Expression</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Numeric Expression</em>'. * @generated */ NumericExpression createNumericExpression(); /** * Returns a new object of class '<em>String Expression</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>String Expression</em>'. * @generated */ StringExpression createStringExpression(); /** * Returns a new object of class '<em>Boolean Expression</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Boolean Expression</em>'. * @generated */ BooleanExpression createBooleanExpression(); /** * Returns a new object of class '<em>Rover Value</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Rover Value</em>'. * @generated */ RoverValue createRoverValue(); /** * Returns a new object of class '<em>Number Value</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Number Value</em>'. * @generated */ NumberValue createNumberValue(); /** * Returns a new object of class '<em>String Value</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>String Value</em>'. * @generated */ StringValue createStringValue(); /** * Returns a new object of class '<em>Boolean Value</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Boolean Value</em>'. * @generated */ BooleanValue createBooleanValue(); /** * Returns a new object of class '<em>Forward Action</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Forward Action</em>'. * @generated */ ForwardAction createForwardAction(); /** * Returns a new object of class '<em>Forward Min Action</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Forward Min Action</em>'. * @generated */ ForwardMinAction createForwardMinAction(); /** * Returns a new object of class '<em>Backward Action</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Backward Action</em>'. * @generated */ BackwardAction createBackwardAction(); /** * Returns a new object of class '<em>Backward Min Action</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Backward Min Action</em>'. * @generated */ BackwardMinAction createBackwardMinAction(); /** * Returns a new object of class '<em>Turn Action</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Turn Action</em>'. * @generated */ TurnAction createTurnAction(); /** * Returns a new object of class '<em>Turn Deg Action</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Turn Deg Action</em>'. * @generated */ TurnDegAction createTurnDegAction(); /** * Returns a new object of class '<em>Stop Action</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Stop Action</em>'. * @generated */ StopAction createStopAction(); /** * Returns a new object of class '<em>Log Action</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Log Action</em>'. * @generated */ LogAction createLogAction(); /** * Returns a new object of class '<em>Send Action</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Send Action</em>'. * @generated */ SendAction createSendAction(); /** * Returns a new object of class '<em>Var Ref</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Var Ref</em>'. * @generated */ VarRef createVarRef(); /** * Returns a new object of class '<em>Centimeter</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Centimeter</em>'. * @generated */ Centimeter createCentimeter(); /** * Returns a new object of class '<em>Millimeter</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Millimeter</em>'. * @generated */ Millimeter createMillimeter(); /** * Returns a new object of class '<em>Meter</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Meter</em>'. * @generated */ Meter createMeter(); /** * Returns a new object of class '<em>Foot</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Foot</em>'. * @generated */ Foot createFoot(); /** * Returns a new object of class '<em>Inch</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Inch</em>'. * @generated */ Inch createInch(); /** * Returns a new object of class '<em>Yard</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Yard</em>'. * @generated */ Yard createYard(); /** * Returns a new object of class '<em>Radian</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Radian</em>'. * @generated */ Radian createRadian(); /** * Returns a new object of class '<em>Degree</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Degree</em>'. * @generated */ Degree createDegree(); /** * Returns a new object of class '<em>Turn</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Turn</em>'. * @generated */ Turn createTurn(); /** * Returns a new object of class '<em>Gradian</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Gradian</em>'. * @generated */ Gradian createGradian(); /** * Returns a new object of class '<em>Quantity</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Quantity</em>'. * @generated */ Quantity createQuantity(); /** * Returns a new object of class '<em>Length</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Length</em>'. * @generated */ Length createLength(); /** * Returns a new object of class '<em>Angle</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Angle</em>'. * @generated */ Angle createAngle(); /** * Returns a new object of class '<em>Length Add</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Length Add</em>'. * @generated */ LengthAdd createLengthAdd(); /** * Returns a new object of class '<em>Length Subtract</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Length Subtract</em>'. * @generated */ LengthSubtract createLengthSubtract(); /** * Returns a new object of class '<em>Length Scalar Multiply</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Length Scalar Multiply</em>'. * @generated */ LengthScalarMultiply createLengthScalarMultiply(); /** * Returns a new object of class '<em>Length Scalar Divide</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Length Scalar Divide</em>'. * @generated */ LengthScalarDivide createLengthScalarDivide(); /** * Returns a new object of class '<em>Length Equals</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Length Equals</em>'. * @generated */ LengthEquals createLengthEquals(); /** * Returns a new object of class '<em>Length Distinct</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Length Distinct</em>'. * @generated */ LengthDistinct createLengthDistinct(); /** * Returns a new object of class '<em>Length Smaller</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Length Smaller</em>'. * @generated */ LengthSmaller createLengthSmaller(); /** * Returns a new object of class '<em>Length Greater</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Length Greater</em>'. * @generated */ LengthGreater createLengthGreater(); /** * Returns a new object of class '<em>Angle Add</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Angle Add</em>'. * @generated */ AngleAdd createAngleAdd(); /** * Returns a new object of class '<em>Angle Subtract</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Angle Subtract</em>'. * @generated */ AngleSubtract createAngleSubtract(); /** * Returns a new object of class '<em>Angle Scalar Multiply</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Angle Scalar Multiply</em>'. * @generated */ AngleScalarMultiply createAngleScalarMultiply(); /** * Returns a new object of class '<em>Angle Scalar Divide</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Angle Scalar Divide</em>'. * @generated */ AngleScalarDivide createAngleScalarDivide(); /** * Returns a new object of class '<em>Angle Equals</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Angle Equals</em>'. * @generated */ AngleEquals createAngleEquals(); /** * Returns a new object of class '<em>Angle Distinct</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Angle Distinct</em>'. * @generated */ AngleDistinct createAngleDistinct(); /** * Returns a new object of class '<em>Angle Smaller</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Angle Smaller</em>'. * @generated */ AngleSmaller createAngleSmaller(); /** * Returns a new object of class '<em>Angle Greater</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Angle Greater</em>'. * @generated */ AngleGreater createAngleGreater(); /** * Returns the package supported by this factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the package supported by this factory. * @generated */ RaspiroverPackage getRaspiroverPackage(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "TestModelFactory getTestModelFactory();", "public UsermodelFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public SqliteModelFactoryImpl()\n {\n super();\n }", "public PetrinetmodelFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "ModelsFactory getModelsFactory();", "public ParsedmodelFactoryImpl() {\n\t\tsuper();\n\t}", "protected abstract IModel<T> createModel(T object);", "public interface ConfigModelFactory\n{\n\t/**\n\t * Create an instance of the <code>ConfigModel</code>\n\t *\n\t * @return an instance of the configuration model\n\t */\n\tConfigModel createInstanceOfConfigModel();\n\n\t/**\n\t * Create an instance of the <code>InstanceModel</code>\n\t *\n\t * @return an instance of the instance model\n\t */\n\tInstanceModel createInstanceOfInstanceModel();\n\n\t/**\n\t * Create an instance of the <code>CsticModel</code>\n\t *\n\t * @return an instance of the characteristic model\n\t */\n\tCsticModel createInstanceOfCsticModel();\n\n\t/**\n\t * Create an instance of the <code>CsticValueModel</code>\n\t *\n\t * @param valueType\n\t * The containing Cstic value type\n\t * @return an instance of the characteristic value model\n\t */\n\tCsticValueModel createInstanceOfCsticValueModel(int valueType);\n\n\t/**\n\t * Create an instance of the <code>CsticGroupModel</code>\n\t *\n\t * @return an instance of the characteristic group model\n\t */\n\tCsticGroupModel createInstanceOfCsticGroupModel();\n\n\n\t/**\n\t * Create an instance of the <code>PriceModel</code>\n\t *\n\t * @return an instance of the price model\n\t */\n\tPriceModel createInstanceOfPriceModel();\n\n\t/**\n\t * Create an instance of the <code>SolvableConflictModel</code>\n\t *\n\t * @return an instance of the Solvable Conflict Model\n\t */\n\tSolvableConflictModel createInstanceOfSolvableConflictModel();\n\n\t/**\n\t * Create an instance of the <code>ConflictingAssumptionModel</code>\n\t *\n\t * @return an instance of the Conflicting Assumption Model\n\t */\n\tConflictingAssumptionModel createInstanceOfConflictingAssumptionModel();\n\n\t/**\n\t * Create an instance of the <code>PriceModel</code>\n\t *\n\t * @return an instance of the price model\n\t */\n\tPriceModel getZeroPriceModel();\n\n\t/**\n\t * Create an instance of the <code>PriceSummaryModel</code>\n\t *\n\t * @return an instance of the price summary model\n\t */\n\tPriceSummaryModel createInstanceOfPriceSummaryModel();\n\n\t/**\n\t * @return a builder to construct {@link ProductConfigMessage} objects\n\t */\n\tdefault ProductConfigMessageBuilder createProductConfigMessageBuilder()\n\t{\n\t\treturn new ProductConfigMessageBuilder();\n\t}\n\n\t/**\n\t * Create an instance of the <code>ProductConfigMessage</code><br>\n\t * uses the <code>DEFAULT</code> ProductConfigMessageSourceSubType\n\t *\n\t * @param message\n\t * localized message\n\t * @param key\n\t * message key, should be unique together with message source\n\t * @param severity\n\t * message severity\n\t * @param source\n\t * message source, should be unique together with message key\n\t * @return a message instance\n\t * @deprecated since 18.08.0 - use {@link ProductConfigMessageBuilder} instead\n\t */\n\t@Deprecated(since = \"1808\", forRemoval=true)\n\tdefault ProductConfigMessage createInstanceOfProductConfigMessage(final String message, final String key,\n\t\t\tfinal ProductConfigMessageSeverity severity, final ProductConfigMessageSource source)\n\t{\n\t\treturn createInstanceOfProductConfigMessage(message, key, severity, source, ProductConfigMessageSourceSubType.DEFAULT);\n\t}\n\n\t/**\n\t * Create an instance of the <code>ProductConfigMessage</code><br>\n\t *\n\t * @param message\n\t * localized message\n\t * @param key\n\t * message key, should be unique together with message source\n\t * @param severity\n\t * message severity\n\t * @param source\n\t * message source, should be unique together with message key\n\t * @param subType\n\t * optional sub type of the message source\n\t * @return a message instance\n\t * @deprecated since 18.08.0 - use {@link ProductConfigMessageBuilder} instead\n\t */\n\t@Deprecated(since = \"1808\", forRemoval=true)\n\tProductConfigMessage createInstanceOfProductConfigMessage(String message, String key, ProductConfigMessageSeverity severity,\n\t\t\tProductConfigMessageSource source, ProductConfigMessageSourceSubType subType);\n\n\n\t/**\n\t * Create an instance of the <code>VariantConditionModel</code>\n\t *\n\t * @return an instance of the variant condition model\n\t */\n\tVariantConditionModel createInstanceOfVariantConditionModel();\n\n\t/**\n\t * @return class name of the {@link PriceSummaryModel} implementation\n\t */\n\tString getTargetClassNamePriceSummaryModel();\n\n\n\t/**\n\t * @return class name of the {@link PriceModel} implementation\n\t */\n\tString getTargetClassNamePriceModel();\n\n\t/**\n\t * @return class name of the {@link CsticGroupModel} implementation\n\t */\n\tString getTargetClassNameCsticGroupModel();\n\n\t/**\n\t * @return class name of the {@link CsticValueModel} implementation\n\t */\n\tString getTargetClassNameCsticValueModel();\n\n\t/**\n\t * @return class name of the {@link CsticModel} implementation\n\t */\n\tString getTargetClassNameCsticModel();\n\n\t/**\n\t * @return class name of the {@link InstanceModel} implementation\n\t */\n\tString getTargetClassNameInstanceModel();\n\n\t/**\n\t * @return class name of the {@link ConfigModel} implementation\n\t */\n\tString getTargetClassNameConfigModel();\n\n\t/**\n\t * @return class name of the {@link SolvableConflictModel} implementation\n\t */\n\tString getTargetClassNameSolvableConflictModel();\n\n\t/**\n\t * @return class name of the {@link ConflictingAssumptionModel} implementation\n\t */\n\tString getTargetClassNameConflictingAssumptionModel();\n\n\t/**\n\t * @return class name of the {@link VariantConditionModel} implementation\n\t */\n\tString getTargetClassNameVariantConditionModel();\n}", "@Override\n\tpublic Model create() {\n\t\treturn null;\n\t}", "public Factory() {\n\t\tsuper();\n\t}", "public interface ModelFactory <ModelObject> {\n public void createElement(ModelObject object);\n}", "EisModel createEisModel();", "BehaviouralModelFactory getBehaviouralModelFactory();", "CsticModel createInstanceOfCsticModel();", "public abstract void create();", "InstanceModel createInstanceOfInstanceModel();", "public M create(P model);", "void create(Model model) throws Exception;", "public void create(){}", "public static MusicModel createModel() {\n return new MusicModelImpl();\n }", "public interface AbstractFactory {\n /**\n * Create cpu cpu.\n *\n * @return the cpu\n */\n Cpu createCpu();\n\n /**\n * Create main board main board.\n *\n * @return the main board\n */\n MainBoard createMainBoard();\n}", "public Model createBaseModel() {\n return ModelFactory.createDefaultModel();\n }", "public interface AbstractFactory<T> {\n /**\n * Create a new Object of type T\n * @return the created object\n */\n T create();\n}", "private ConcreteFactory() {}", "DataModel createDataModel();", "public Factory() {\n\t\tclassMap = new TreeMap<String,Class<T> >();\n\t}", "public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstructors();\n }", "public interface Factory<T> {\n T create();\n}", "T create();", "T create();", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "public static SqliteModelFactory init()\n {\n try\n {\n SqliteModelFactory theSqliteModelFactory = (SqliteModelFactory)EPackage.Registry.INSTANCE.getEFactory(SqliteModelPackage.eNS_URI);\n if (theSqliteModelFactory != null)\n {\n return theSqliteModelFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new SqliteModelFactoryImpl();\n }", "interface Factory {\r\n /**\r\n * Create an instance of an agenda view model with the given saved\r\n * instance state.\r\n *\r\n * @param savedInstanceState previously saved state of the view model\r\n * @return the created agenda view model\r\n */\r\n AgendaViewModel create(Bundle savedInstanceState);\r\n }", "private EntityFactory() {}", "Klassenstufe createKlassenstufe();", "public interface Factory {\n Product create();\n}", "public <T> T createModel(Class<T> clazz) throws CreateModelException {\n return createModel(clazz, true);\n }", "@Override\n\tpublic void create() {\n\n\t}", "public abstract void create(T t);", "For createFor();", "CreateEventViewModelFactory() {\n super(Storage.class, Authenticator.class);\n }", "public static Factory factory() {\n return ext_dbf::new;\n }", "public interface Factory {\r\n}", "PriceModel createInstanceOfPriceModel();", "ZenModel createZenModel();", "public ObjectifyFactory factory() {\n return ofy().factory();\n }", "@Override\n\tpublic void create() {\n\t\t\n\t}", "public interface Creator<T> {\n\t\tpublic T create() throws APIException;\n\n\t\tpublic void destroy(T t);\n\n\t\tpublic boolean isValid(T t);\n\n\t\tpublic void reuse(T t);\n\t}", "public EntityFactoryImpl() {\n\t\tsuper();\n\t}", "DomainModel createDomainModel();", "@Override\n\tpublic void create () {\n\n\t}", "public interface Factory {\n LeiFeng createLeiFeng();\n}", "public void create() {\n\t\t\n\t}", "public static QuinzicalModel createInstance() throws Exception {\n\t\tif (instance == null) {\n\t\t\tinstance = new QuinzicalModel();\n\t\t}\n\t\treturn instance;\n\t}", "@Override\r\n\tpublic void create() {\n\r\n\t}", "@Override\r\n\tpublic T createInstance() {\r\n\t\ttry {\r\n\t\t\treturn getClassType().newInstance();\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogger.getLogger(AbstractCRUDBean.class.getSimpleName()).log(Level.ALL, e.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public static PetrinetmodelFactory init() {\r\n\t\ttry {\r\n\t\t\tPetrinetmodelFactory thePetrinetmodelFactory = (PetrinetmodelFactory)EPackage.Registry.INSTANCE.getEFactory(PetrinetmodelPackage.eNS_URI);\r\n\t\t\tif (thePetrinetmodelFactory != null) {\r\n\t\t\t\treturn thePetrinetmodelFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new PetrinetmodelFactoryImpl();\r\n\t}", "protected abstract ENTITY createEntity();", "public static UsermodelFactory init() {\r\n\t\ttry {\r\n\t\t\tUsermodelFactory theUsermodelFactory = (UsermodelFactory)EPackage.Registry.INSTANCE.getEFactory(UsermodelPackage.eNS_URI);\r\n\t\t\tif (theUsermodelFactory != null) {\r\n\t\t\t\treturn theUsermodelFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new UsermodelFactoryImpl();\r\n\t}", "ConfigModel createInstanceOfConfigModel();", "public abstract T create(T obj);", "public static Factory factory() {\n return ext_h::new;\n }", "public interface DebuggerModelFactory\n\t\textends ExtensionPoint, ConfigurableFactory<DebuggerObjectModel> {\n\n\t/**\n\t * Get the priority for selecting this factory by default for the given program\n\t * \n\t * <p>\n\t * A default factory is selected when the current factory and the last successful factory are\n\t * incompatible with the current program, or if this is the very first time connecting. Of those\n\t * factories compatible with the current program, the one with the highest priority (larger\n\t * numerical value) is selected. If none are compatible, then the current selection is left as\n\t * is.\n\t * \n\t * <p>\n\t * Note that negative priorities imply the factory is not compatible with the given program or\n\t * local system.\n\t * \n\t * @param program the current program, or null\n\t * @return the priority, higher values mean higher priority\n\t */\n\tdefault int getPriority(Program program) {\n\t\treturn 0;\n\t}\n\n\t/**\n\t * Check if this factory is compatible with the local system and given program.\n\t * \n\t * <p>\n\t * <b>WARNING:</b> Implementations should not likely override this method. If one does, it must\n\t * behave in the same manner as given in this default implementation: If\n\t * {@link #getPriority(Program)} would return a non-negative result for the program, then this\n\t * factory is compatible with that program. If negative, this factory is not compatible.\n\t * \n\t * @param program the current program, or null\n\t * @return true if compatible\n\t */\n\tdefault boolean isCompatible(Program program) {\n\t\treturn getPriority(program) >= 0;\n\t}\n}", "public Model doCreateModel() {\n Model m = m_baseModelName == null ? maker.createFreshModel() : maker.createModel( m_baseModelName );\n return new OntModelImpl( this, m );\n }", "public interface IFactory {\n IUser createUser();\n IDepartment createDepartment();\n}", "public static ParsedmodelFactory init() {\n\t\ttry {\n\t\t\tParsedmodelFactory theParsedmodelFactory = (ParsedmodelFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://parsedmetadata/1.0\"); \n\t\t\tif (theParsedmodelFactory != null) {\n\t\t\t\treturn theParsedmodelFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ParsedmodelFactoryImpl();\n\t}", "public interface SerializerFactory<T> {\n\t\n\t/** the method creates a new MessageSerializer.\n\t * \n\t * @return new object that implements the MessageSerializer interface. \n\t */\n MessageSerializer<T> create();\n}", "public PiviFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "Factory<? extends T> buildPersonFactory(String type);", "public PedidoFactoryImpl() {\n\t\tsuper();\n\t}", "public ProyectoFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public interface Creator {\n public abstract Item factoryMethod();\n public abstract Item factoryMethod(String name);\n public abstract Item factoryMethod(String name, List<Flower> flowerList);\n}", "public abstract ProductFactory getFactory();", "public Model() {\n\t}", "public Model() {\n\t}", "public LanterneFactoryImpl() {\n\t\tsuper();\n\t}", "public interface Factory {\n Animal createAnimal();\n}", "public interface AbstractFactory {\n Bmw produceBmw();\n Benz produceBenz();\n}", "public MystFactoryImpl()\r\n {\r\n super();\r\n }", "public PertFactory() {\n for (Object[] o : classTagArray) {\n addStorableClass((String) o[1], (Class) o[0]);\n }\n }", "public interface IFactory<T extends MaterialCastingRecipe> {\n T create(ResourceLocation id, String group, @Nullable Ingredient cast, int itemCost, IMaterialItem result,\n boolean consumed, boolean switchSlots);\n }", "private VegetableFactory() {\n }", "protected MoneyFactory() {\n\t}", "public EnotationFactoryImpl() {\n\t\tsuper();\n\t}", "public Model() {\n this(DSL.name(\"model\"), null);\n }", "public EcoreFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public TypeAdapterFactory() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = TypePackage.eINSTANCE;\n\t\t}\n\t}", "interface Create {}", "public GameDomainFactory() {\r\n\t\t\r\n\t\tCreateGameDomain = new HashMap<String, GameDomainFactory.gameDomainCreator>();\r\n\t\tCreateGameDomain.put(\"TicTacToe\" , new ticTacToeCreator());\r\n\t\tCreateGameDomain.put(\"Reversi\", new CreatorReversi());\r\n\t}", "public abstract <T> T create(Object object, Class<T> clazz);", "public EcoreFactoryImpl() {\n super();\n }", "public static Factory factory() {\n return text::new;\n }", "public FvFactoryImpl() {\n\t\tsuper();\n\t}", "public InternalFloaterFactory() {\n super();\n }" ]
[ "0.71578854", "0.71578854", "0.71578854", "0.71578854", "0.71578854", "0.71578854", "0.71578854", "0.7074172", "0.70526475", "0.6984003", "0.6975082", "0.6965171", "0.69569916", "0.6949672", "0.686028", "0.6813341", "0.6806566", "0.6756512", "0.66958994", "0.6656827", "0.6654931", "0.6640964", "0.6596019", "0.65803796", "0.6573382", "0.65561205", "0.6534865", "0.6482682", "0.64759904", "0.64503586", "0.6445049", "0.6431151", "0.64206964", "0.6402498", "0.6400392", "0.6389999", "0.6389999", "0.6369558", "0.63486964", "0.6347181", "0.6344671", "0.63072455", "0.630189", "0.6294402", "0.6290142", "0.62758076", "0.6264401", "0.6250428", "0.62335646", "0.6228565", "0.62254506", "0.6223362", "0.62184954", "0.62149733", "0.6212775", "0.620324", "0.6192057", "0.6167889", "0.61640954", "0.6155396", "0.6143866", "0.61431575", "0.6140252", "0.6134413", "0.6117779", "0.6079753", "0.6065471", "0.6062347", "0.6060307", "0.60446125", "0.60367805", "0.6027817", "0.6026423", "0.6020851", "0.60194397", "0.60126567", "0.600029", "0.5986747", "0.59809864", "0.5978781", "0.5948239", "0.5948239", "0.5938984", "0.59377414", "0.5935098", "0.5932119", "0.5926141", "0.59221566", "0.5919277", "0.59016764", "0.5900829", "0.58959043", "0.58943975", "0.5892577", "0.5877709", "0.5870937", "0.5864316", "0.5863605", "0.58610684", "0.58605033", "0.58548725" ]
0.0
-1
Returns a new object of class 'Ras Pi Board'.
RasPiBoard createRasPiBoard();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "MainBoard createMainBoard();", "public IntelMainboard createMainboard() {\n\t\treturn new IntelMainboard();\n\t}", "Board() {\r\n init();\r\n }", "Board() {\n this.cardFactory = new CardFactory(this);\n }", "private void getBoard() {\n gameBoard = BoardFactory.makeBoard();\n }", "public void newBoard(LiteBoard board) {\n }", "@Override\r\n\tpublic Board createBoard(long width, long height)\r\n\t{\r\n\t\treturn new Board(width, height);\r\n\t}", "public Board()\r\n\t{\r\n\t\tsuper(8, 8);\r\n\t}", "public PersonalBoard(int width, int height){\n super(width, height);\n this.rand = new Random();\n }", "public abstract void createBoard();", "public Board() {\n initialize(3, null);\n }", "public Board() {\n this.board = new Piece[16];\n }", "public Board<?> makeBoard() throws EscapeException {\n\t\tswitch (bi.getCoordinateId()) {\n\t\t\tcase HEX:\n\t\t\t\treturn makeHexBoard();\n\t\t\tcase ORTHOSQUARE:\n\t\t\t\treturn makeOrthoBoard();\n\t\t\tcase SQUARE:\n\t\t\t\treturn makeSquareBoard();\n\t\t\tdefault:\n\t\t\t\tthrow new EscapeException(\"Board does not exist!\");\n\t\t}\n\t}", "public Board getBoard ();", "private Board() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// A private board constructor to ensure only one is created\n\t\tsuper();\n\t}", "public PersonalBoard(){\n this(0);\n }", "public Board(String boardName) {\n\n /*\n * Created according to the specs online.\n */\n if (boardName.equals(\"default\")) {\n Ball ball1 = new Ball(new Vect(0, 0), new Geometry.DoublePair(1.25,\n 1.25));\n Gadget circle = new CircleBumper(1, 10, new Gadget[] {});\n Gadget triangle = new TriangleBumper(12, 15, 180, new Gadget[] {});\n Gadget square1 = new SquareBumper(0, 17, new Gadget[] {});\n Gadget square2 = new SquareBumper(1, 17, new Gadget[] {});\n Gadget square3 = new SquareBumper(2, 17, new Gadget[] {});\n Gadget circle1 = new CircleBumper(7, 18, new Gadget[] {});\n Gadget circle2 = new CircleBumper(8, 18, new Gadget[] {});\n Gadget circle3 = new CircleBumper(9, 18, new Gadget[] {});\n this.balls = new Ball[] { ball1 };\n this.gadgets = new Gadget[] { circle, triangle, square1, square2,\n square3, circle1, circle2, circle3, top, bottom, left,\n right };\n\n } else if (boardName.equals(\"absorber\")) {\n Ball ball1 = new Ball(new Vect(0, 0), new Geometry.DoublePair(\n 10.25, 15.25));\n Ball ball2 = new Ball(new Vect(0, 0), new Geometry.DoublePair(\n 19.25, 3.25));\n Ball ball3 = new Ball(new Vect(0, 0), new Geometry.DoublePair(1.25,\n 5.25));\n Gadget absorber = new Absorber(0, 18, 20, 2, new Gadget[] {});\n Gadget triangle = new TriangleBumper(19, 0, 90, new Gadget[] {});\n Gadget circle1 = new CircleBumper(1, 10, new Gadget[] { absorber });\n Gadget circle2 = new CircleBumper(2, 10, new Gadget[] { absorber });\n Gadget circle3 = new CircleBumper(3, 10, new Gadget[] { absorber });\n Gadget circle4 = new CircleBumper(4, 10, new Gadget[] { absorber });\n Gadget circle5 = new CircleBumper(5, 10, new Gadget[] { absorber });\n this.balls = new Ball[] { ball1, ball2, ball3 };\n this.gadgets = new Gadget[] { absorber, triangle, circle1, circle2,\n circle3, circle4, circle5, top, left, right, bottom };\n }\n\n else if (boardName.equals(\"flippers\")) {\n Ball ball1 = new Ball(new Vect(0, 0), new Geometry.DoublePair(.25,\n 3.25));\n Ball ball2 = new Ball(new Vect(0, 0), new Geometry.DoublePair(5.25,\n 3.25));\n Ball ball3 = new Ball(new Vect(0, 0), new Geometry.DoublePair(\n 10.25, 3.25));\n Ball ball4 = new Ball(new Vect(0, 0), new Geometry.DoublePair(\n 15.25, 3.25));\n Ball ball5 = new Ball(new Vect(0, 0), new Geometry.DoublePair(\n 19.25, 3.25));\n Gadget left1 = new LeftFlipper(0, 8, 90, new Gadget[] {});\n Gadget left2 = new LeftFlipper(4, 10, 90, new Gadget[] {});\n Gadget left3 = new LeftFlipper(9, 8, 90, new Gadget[] {});\n Gadget left4 = new LeftFlipper(15, 8, 90, new Gadget[] {});\n Gadget circle1 = new CircleBumper(5, 18, new Gadget[] {});\n Gadget circle2 = new CircleBumper(7, 13, new Gadget[] {});\n Gadget circle3 = new CircleBumper(0, 5, new Gadget[] { left1 });\n Gadget circle4 = new CircleBumper(5, 5, new Gadget[] {});\n Gadget circle5 = new CircleBumper(10, 5, new Gadget[] { left3 });\n Gadget circle6 = new CircleBumper(15, 5, new Gadget[] { left4 });\n Gadget triangle1 = new TriangleBumper(19, 0, 90, new Gadget[] {});\n Gadget triangle2 = new TriangleBumper(10, 18, 180, new Gadget[] {});\n Gadget right1 = new RightFlipper(2, 15, 0, new Gadget[] {});\n Gadget right2 = new RightFlipper(17, 15, 0, new Gadget[] {});\n Gadget absorber = new Absorber(0, 19, 20, 1, new Gadget[] { right1,\n right2, new Absorber(0, 19, 20, 1, new Gadget[] {}) });\n this.balls = new Ball[] { ball1, ball2, ball3, ball4, ball5 };\n this.gadgets = new Gadget[] { left1, left2, left3, left4, circle1,\n circle2, circle3, circle4, circle5, circle6, triangle1,\n triangle2, right1, right2, absorber, top, bottom, left,\n right };\n } else {\n this.gadgets = new Gadget[] {};\n this.balls = new Ball[] {};\n }\n\n checkRep();\n }", "public PiButton()\n\t{\n\t\tpasswordLogic = new PINLogic();\n\t\tled = new PiLED(21, 22);\n\t\tbuzzer = new PiBuzzer();\n\t}", "public Board() {\n this.board = new byte[][] { new byte[3], new byte[3], new byte[3] };\n }", "public Board() {\n\t\tboard = new char[9][9];\n\t}", "public Board Board(Board board) {\n return new Board(board.size, board._board);\n }", "public Board() {\n\t\tboard = new int[8][8];\n\t\tbombs = 64 / 3;\n\t\tdifficulty = GlobalModel.BESTSCORE_EASY;\n\t\tfillBoard();\n\t\tsetDefaultScores();\n\t}", "Board() {\n\t\tswitch (Board.boardType) {\n\t\tcase Tiny:\n\t\t\tthis.dimensions = TinyBoard; break;\n\t\tcase Giant:\n\t\t\tthis.dimensions = GiantBoard; break;\n\t\tdefault:\n\t\t\tthis.dimensions = StandardBoard; break;\n\t\t}\n\t\tboard = new Square[dimensions.x][dimensions.y];\n\t\tinit();\n\t}", "public Othello() {\n\t\tmyBoard = new Board(8);\n\t\tplayerBlack = spawnPlayer(Color.BLACK);\n\t\tplayerWhite = spawnPlayer(Color.WHITE);\n\t\tpropertySupport = new PropertyChangeSupport(this);\n\t\tinitialisationBoard();\n\t\tcurrentPlayer = playerBlack;\n\t\tfoeHasPlay = true;\n\t\taiPlay = false;\n\t}", "public Game() {\n board = new FourBoard();\n }", "public Board()\r\n {\r\n board = new Piece[8][8];\r\n xLength = yLength = 8;\r\n }", "public static void makeBoardChess() {\r\n \r\n white = new AllPiece(\"White\");\r\n black = new AllPiece(\"Black\");\r\n \r\n }", "public Board()\r\n\t{\r\n\t\treset();\r\n\t}", "public Board(String gameType) {\n propertyFactory = new TileFactory(gameType);\n createBoard();\n }", "public static Board getInstance(){\n\t\tif (instance == null) \n\t\t{ \n\t\t\tinstance = new Board(); \n\t\t} \n\t\treturn instance; \n\t}", "public BrickControlPi() {\r\n\t}", "public Board() {\n this.x = 0;\n this.o = 0;\n }", "private GameBoard() {}", "public Board() {\n\t\t\n\t\tchar letter = 'A';\n\t\tint letterValue;\n\t\tint tempNum;\n\t\tString position;\n\t\tString number;\n\t\t\n\t\t\n\t\tfor(int i = 0; i < 10; i++) {\n\t\t\tfor(int j = 0; j < 10; j++) {\n\t\t\t\ttempNum = j+1;\n\t\t\t\tnumber = Integer.toString(tempNum);\n\t\t\t\tposition = Character.toString(letter) + number;\n\t\t\t\t//position += Character.toString(number);\n\t\t\t\tradar[i][j] = position;\n\t\t\t}\n\t\t\tletterValue = (int) letter;\n\t\t\tletterValue++;\n\t\t\tletter = (char) letterValue;\n\t\t}\n\t\trefRadar = backup(radar);\n\t}", "private void generateBoard(){\n\t}", "public Board(){\n for(int holeIndex = 0; holeIndex<holes.length; holeIndex++)\n holes[holeIndex] = new Hole(holeIndex);\n for(int kazanIndex = 0; kazanIndex<kazans.length; kazanIndex++)\n kazans[kazanIndex] = new Kazan(kazanIndex);\n nextToPlay = Side.WHITE;\n }", "public BoardInterface(){\n\t\tsetupLayouts();\n\t\tsetPlayerChoice();\n\t}", "public Board() {\n\t\tdimension = 9;\n\t\tpuzzle = new int[dimension][dimension];\n\t}", "public TetrisBoard() {\n super();\n\n myBoard = new Board();\n myHeight = myBoard.getHeight() * BLOCK_SIZE;\n myWidth = myBoard.getWidth() * BLOCK_SIZE;\n myGameMode = CLASSIC_MODE;\n myBoardString = myBoard.toString();\n myGameOver = false;\n myWelcome = true;\n myTimer = new Timer(INITIAL_TIMER_DELAY, new TimerListener());\n\n setupBoard();\n }", "public UIBoard()\r\n\t{\r\n\t\t//Creates a 10x10 \"Board\" object\r\n\t\tsuper(10,10);\r\n\t\tgrid = new int[getLength()][getWidth()];\r\n\t\t\r\n\t\t//Sets all coordinates to the value 0, which corresponds to \"not hit yet\"\r\n\t\tfor(int i=0; i<grid.length; i++)\r\n\t\t\tfor(int j=0; j<grid[i].length; j++)\r\n\t\t\t\tgrid[i][j] = 0;\t\t\r\n\t}", "private Board create4by4Board() {\n Tile[][] tiles;\n Tile t1 = new Tile(0, 4);\n Tile t2 = new Tile(1, 4);\n Tile t3 = new Tile(2, 4);\n Tile t4 = new Tile(3, 4);\n Tile t5 = new Tile(4, 4);\n Tile t6 = new Tile(5, 4);\n Tile t7 = new Tile(6, 4);\n Tile t8 = new Tile(7, 4);\n Tile t9 = new Tile(8, 4);\n Tile t10 = new Tile(9, 4);\n Tile t11 = new Tile(10, 4);\n Tile t12 = new Tile(11, 4);\n Tile t13 = new Tile(12, 4);\n Tile t14 = new Tile(13, 4);\n Tile t15 = new Tile(14, 4);\n Tile t16 = new Tile(15, 4);\n tiles = new Tile[4][4];\n tiles[0][0] = t5;\n tiles[0][1] = t16;\n tiles[0][2] = t1;\n tiles[0][3] = t3;\n tiles[1][0] = t13;\n tiles[1][1] = t15;\n tiles[1][2] = t9;\n tiles[1][3] = t12;\n tiles[2][0] = t2;\n tiles[2][1] = t6;\n tiles[2][2] = t7;\n tiles[2][3] = t14;\n tiles[3][0] = t10;\n tiles[3][1] = t4;\n tiles[3][2] = t8;\n tiles[3][3] = t11;\n return new Board(tiles);\n }", "public Board() {\n this.actionField = new ActionField();\n this.buyField = new BuyField();\n }", "public void Makeboard() {\r\n\r\n Normalboard(new Point2(20, 300));\r\n Normalboard(new Point2(224, 391));\r\n Stingboard(new Point2(156, 209));\r\n Leftlboard(new Point2(88, 482));\r\n Rightboard(new Point2(292, 573));\r\n Regenerateboard(new Point2(360, 118));\r\n\r\n }", "public Board createBoard(Square[][] grid) {Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\");assert grid != null; Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1053\"); Board board = new Board(grid); Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1079\"); int width = board.getWidth(); Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1115\"); int height = board.getHeight(); Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1148\"); for (int x = 0; x < width; x++) {\n\t\t\tfor (int y = 0; y < height; y++) {\n\t\t\t\tSquare square = grid[x][y];\n\t\t\t\tfor (Direction dir : Direction.values()) {\n\t\t\t\t\tint dirX = (width + x + dir.getDeltaX()) % width;\n\t\t\t\t\tint dirY = (height + y + dir.getDeltaY()) % height;\n\t\t\t\t\tSquare neighbour = grid[dirX][dirY];\n\t\t\t\t\tsquare.link(neighbour, dir);\n\t\t\t\t}\n\t\t\t}\n\t\t} Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1183\"); Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1552\");return board ; }", "new LED();", "public Board randomBoard() {\n int[][] board = new int[tileLength][tileLength];\n\n //Random scramble algorithm\n\n //Create solved nxn board\n for (int i = 0; i <tileLength*tileLength ; i++) {\n board[i / tileLength][i % tileLength] = (i + 1) % (tileLength*tileLength);\n }\n\n Board b = new Board(board);\n\n //Perform 50 random moves on the board\n Random r = new Random();\n\n int parity = r.nextInt(2);\n\n for (int i = 0; i < 50 + parity; i++) {\n ArrayList<Board> children = b.getSuccessors();\n children.trimToSize();\n int count = children.size();\n b = children.get(r.nextInt(count));\n\n }\n\n b.setParent(null);\n b.setGScore(0);\n\n return b;\n }", "public JumbleBoard()\n {\n }", "public static Board getInstance() {\n\t\t\n\t\tif(boardObj == null)\n\t\t\tboardObj = new Board();\n\t\t\n\t\treturn boardObj;\n\t}", "public void createBoard() {\n\t\tboard = new Piece[8][8];\n\t\t\n\t\tfor(int i=0; i<8; i++) {\n\t\t\tfor(int j=0; j<8; j++) {\n\t\t\t\tboard[i][j] = null;\n\t\t\t}\n\t\t}\n\t}", "public AIPlayer(Board board) {\n cells = board.squares;\n }", "public BoardSetup() {\n\t\tthis.theBoard = Board.getInstance();\n\t}", "public Board() {\r\n\t\tthis.size = 4;\r\n\t\tthis.gameBoard = createBoard(4);\r\n\t\tthis.openTiles = 16;\r\n\t\tthis.moves = 0;\r\n\t\tthis.xValues = new boolean[4][4];\r\n\t\tthis.yValues = new boolean[4][4];\r\n\t\tthis.complete = false;\r\n\t}", "public Pila () {\n raiz=null; //Instanciar un objeto tipo nodo;\n }", "public static Board create(final Class board) {\n if (board.equals(standard)) {\n return new StandardBoard();\n } else if (board.equals(gothic)) {\n return new Gothic();\n } else if (board.equals(empty)) {\n return new EmptyBoard();\n } else {\n /* Throw exception? */\n return null;\n }\n }", "public ComputerPlayer(Board board) \n {\n this.board = board;\n }", "public static WildBoard getBoard()\n {\n System.out.println(\"*** WildApp.getBoard() called\");\n \n return myBoard;\n }", "protected Board getBoard() { // nao vou deixar public, vou deixar privado\n\t\treturn board;\n\t}", "public static Board getInstance(){\n\t\treturn instance;\n\t}", "Board() {\n this(INITIAL_PIECES, BLACK);\n _countBlack = 12;\n _countWhite = 12;\n _moveHistory = new ArrayList<Move>();\n _movesMade = 0;\n }", "public static Board getBoard(){\n\t\treturn board;\n\t}", "public void run() {\n GameBoard board = new GameBoard(nrows, ncols);\n\n\n }", "Board createLayout();", "public Board() {\n\t\tintializeBoard(_RowCountDefault, _ColumnCountDefault, _CountToWinDefault);\n\t}", "public RailRoad() {}", "public Board() {\n //Create all pieces\n board[0][0] = new Rook(\"black\", 0, 0);\n board[0][1] = new Knight(\"black\", 0, 1);\n board[0][2] = new Bishop(\"black\", 0, 2);\n board[0][3] = new Queen(\"black\", 0, 3);\n board[0][4] = new King(\"black\", 0, 4);\n board[0][5] = new Bishop(\"black\", 0, 5);\n board[0][6] = new Knight(\"black\", 0, 6);\n board[0][7] = new Rook(\"black\", 0, 7);\n\n board[7][0] = new Rook(\"white\", 7, 0);\n board[7][1] = new Knight(\"white\", 7, 1);\n board[7][2] = new Bishop(\"white\", 7, 2);\n board[7][3] = new Queen(\"white\", 7, 3);\n board[7][4] = new King(\"white\", 7, 4);\n board[7][5] = new Bishop(\"white\", 7, 5);\n board[7][6] = new Knight(\"white\", 7, 6);\n board[7][7] = new Rook(\"white\", 7, 7);\n\n for (int j = 0; j < 8; j++) {\n board[1][j] = new Pawn(\"black\", 1, j);\n board[6][j] = new Pawn(\"white\", 6, j);\n }\n\n //Printing everything\n for (Piece[] a : board) {\n for (Piece b : a) {\n System.out.printf(\"%-15s\", \"[\" + b + \"]\");\n }\n System.out.println(\"\");\n }\n }", "public RedPuzzle() {\n }", "public static int[][] createBoard() {\r\n\t\t\r\n\t\tint[][] board = new int [8][8];\r\n\t\t//printing the red solduers\r\n\t\tfor (int line =0,column=0;line<3;line=line+1){\r\n\t\t\tif (line%2==0){column=0;}\r\n\t\t\telse {column=1;}\r\n\t\t\tfor (;column<8;column=column+2){\r\n\t\t\t\tboard [line][column] = 1;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//printing the blu solduers\r\n\t\tfor (int line =5,column=0;line<8;line=line+1){\r\n\t\t\tif (line%2==0){column=0;}\r\n\t\t\telse {column=1;}\r\n\t\t\tfor (;column<8;column=column+2){\r\n\t\t\t\tboard [line][column] = -1;\r\n\t\t\t}\r\n\t\t}\t\t\t\r\n\t\treturn board;\r\n\t}", "protected final Object clone() {\n\t\tBitBoardImpl clone = new BitBoardImpl();\n\t\tfor( int i = 0; i < 5; i++) {\n\t\t clone._boardLayer[i] = _boardLayer[i];\n\t\t}\n\t\treturn clone;\n }", "public Playboard getPlayboard();", "private Board create3by3Board() {\n Tile[][] tiles;\n Tile t1 = new Tile(0, 3);\n Tile t2 = new Tile(1, 3);\n Tile t3 = new Tile(2, 3);\n Tile t4 = new Tile(3, 3);\n Tile t5 = new Tile(4, 3);\n Tile t6 = new Tile(5, 3);\n Tile t7 = new Tile(6, 3);\n Tile t8 = new Tile(7, 3);\n Tile t9 = new Tile(8, 3);\n tiles = new Tile[3][3];\n tiles[0][0] = t7;\n tiles[0][1] = t6;\n tiles[0][2] = t2;\n tiles[1][0] = t5;\n tiles[1][1] = t9;\n tiles[1][2] = t3;\n tiles[2][0] = t1;\n tiles[2][1] = t8;\n tiles[2][2] = t4;\n return new Board(tiles);\n }", "Lab create();", "Board(Board board) {\n copyFrom(board);\n }", "public final static Board getInstance() {\r\n Board result = instance;\r\n if (result == null) { // 1er verif sans verrou\r\n synchronized (Board.class) {\r\n result = instance;\r\n if (result == null) { // 2eme verif, apres acquisition du verrou\r\n result = instance = new Board();\r\n }\r\n }\r\n }\r\n return instance;\r\n }", "public Board() {\n\t\tboardState = new Field[DIMENSION][DIMENSION];\n\t\tfor(int i = 0; i < DIMENSION; i++) {\n\t\t\tfor(int j = 0; j < DIMENSION; j++) {\n\t\t\t\tboardState[i][j] = new Field();\n\t\t\t}\n\t\t}\n\t}", "Strobo createStrobo();", "private void initBoard() {\n initCommands();\n setBackground(Color.BLACK);\n setPreferredSize(new Dimension((int) (W * Application.scale), (int) (H * Application.scale)));\n\n commandClasses.forEach((cmdstr) -> {\n try {\n Object obj = Class.forName(cmdstr).getDeclaredConstructor().newInstance();\n Command cmd = (Command) obj;\n connectCommand(cmd);\n System.out.println(\"Loaded \" + cmdstr);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n });\n\n Particle.heatmap.addColor(0, Color.GREEN);\n Particle.heatmap.addColor(50, Color.YELLOW);\n Particle.heatmap.addColor(100, Color.RED);\n\n Particle.slopemap.addColor(-5, Color.RED);\n Particle.slopemap.addColor(0, Color.WHITE);\n Particle.slopemap.addColor(5, Color.GREEN);\n\n setFocusable(true);\n }", "public Corrida(){\n\n }", "public static Board getInstance() {\n\t\treturn theInstance;\n\t}", "public PentagoGame() {\n // Default size = 3.\n board = new PentagoBoard();\n lastMove = null;\n hasPlacedPiece = false;\n hasRotatedBoard = true;\n }", "public Scania() {\n\n super(2, 600, Color.white, \"Scania\", 13000);\n truckBed = new Ramp();\n }", "Oracion createOracion();", "public Board(Piece[][] bd) {\n\t\tb = new Piece[8][8];\n\t\t\n\t\tfor (byte r = 0; r < b.length; r++) {\n\t\t\tfor (byte c = 0; c < b[r].length; c++) {\n\t\t\t\tif (bd[r][c] instanceof Pawn) {\n\t\t\t\t\tb[r][c] = new Pawn(bd[r][c].getSide(), r, c);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if (bd[r][c] instanceof Knight) {\n\t\t\t\t\tb[r][c] = new Knight(bd[r][c].getSide(), r, c);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if (bd[r][c] instanceof Bishop) {\n\t\t\t\t\tb[r][c] = new Bishop(bd[r][c].getSide(), r, c);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if (bd[r][c] instanceof Rook) {\n\t\t\t\t\tb[r][c] = new Rook(bd[r][c].getSide(), r, c);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if (bd[r][c] instanceof Queen) {\n\t\t\t\t\tb[r][c] = new Queen(bd[r][c].getSide(), r, c);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if (bd[r][c] instanceof King) {\n\t\t\t\t\tb[r][c] = new King(bd[r][c].getSide(), r, c, ((King) bd[r][c]).getCKS(), ((King) bd[r][c]).getCQS());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse {\n\t\t\t\t\tb[r][c] = new Null(r, c);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "protected Board(){\n\t\tpool = 0;\n\t\tsquares = new Square[3][61];\n\t\tcommunityCards = new LinkedList<CommunityCard>();\n\t\tchanceCards = new LinkedList<ChanceCard>();\n\t\tmap = new HashMap<String, Integer>();\n\t\tcompanyArray = new Company[6];\n\t\tcreateBoard();\n\t\tfillHashMap();\t\t\t\n\t\tfillChanceCards();\n\t\tfillCommunityChestCards();\n\t\tfillCompanyArray();\n\t\tshuffleChanceCards();\n\t\tshuffleCommunityCards();\n\t}", "public Board() {\n\t\tthis.myBoard = new BlockFor2048[4][4];\n\t\tint randomInserted = 0;\n\t\tint colInd = 0;\n\t\tint rowInd = 0;\n\t\twhile (randomInserted != 2){\n\t\t\tcolInd = (int)(Math.random() * 4);\n\t\t\trowInd = (int)(Math.random() * 4);\n\t\t\tif (this.myBoard[colInd][rowInd] == null){\n\t\t\t\tthis.myBoard[colInd][rowInd] = new BlockFor2048(2);\n\t\t\t\trandomInserted++;\n\t\t\t}\n\t\t}\t\t\n\t\tthis.ScoreValue = 0;\n\t}", "public Board(Board a)\n {\n mainBoard=false;\n squares = new Square[Chess.ROWS][Chess.COLUMNS];\n setLayout(new GridLayout(Chess.ROWS,Chess.COLUMNS,0,0));\n if (a.firstSelected==null)\n firstSelected=null;\n else\n firstSelected = new Piece(a.firstSelected);\n for (int i = 0; i < Chess.ROWS; i++)\n for (int j = 0; j < Chess.COLUMNS; j++)\n squares[i][j] = new Square(a.squares[i][j]);\n }", "public Game() {\n whitePlayer = new AwfulAIPlayer(Colour.WHITE, board);\n blackPlayer = new HumanPlayer(Colour.BLACK, board);\n\n sharedBoard = new CompositeBitBoard(whitePlayer.getOccupied(), blackPlayer.getOccupied());\n }", "private void initializeBoard() {\n\t\t\n\t}", "public PinboardMaker()\r\n {\r\n pictures = new ArrayList<String>();\r\n pinboardObject = new Pinboard();\r\n }", "public static int[][] createBoard() {\r\n\r\n\t\tint[][] board = new int[9][9];\r\n\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\tfor (int j = 0; j < 9; j++)\r\n\t\t\t\tboard[i][j] = scan.nextInt();\r\n\t\t}\r\n\t\treturn board;\r\n\r\n\t}", "public BitBoardImpl() {\n\tinitialPosition();\n }", "AliciaLab createAliciaLab();", "public ChessBoard() {\n initComponents();\n createChessBoard();\n\n }", "public Board()\r\n\t{\r\n\t\tfor(int x = 0; x < 9; x++)\r\n\t\t\tfor(int y = 0 ; y < 9; y++)\r\n\t\t\t{\r\n\t\t\t\tboard[x][y] = new Cell();\r\n\t\t\t\tboard[x][y].setBoxID( 3*(x/3) + (y)/3+1);\r\n\t\t\t}\r\n\t}", "public PlaysType createPlays(SRRType srr, BPPType bpp) {\n\t\tPlaysType plays = mappingFactory.createPlaysType();\n\t\tplays.setSRRole(srr);\n\t\tplays.setBPPart(bpp);\n\t\treturn plays;\n\t}", "public void PrintBoard(Board b);", "public GoLBoard copyBoard()\n\t{\n\t\t//tempBoard = A GoLBoard object that will become the copy\n\t\t//currCell = the cell that will be examined\n\t\t//compString = the actual class of the GoLCell in String form\n \tGoLBoard tempBoard = new GoLBoard(setSize);\n \tGoLCell currCell;\n \tString compString;\n \t\n \t//currRow = current row\n \t//currCol = current column\n \t//Copy the current GoLCell onto the copy GoLCell\n \t//Determine whether the cell is strong, weak, or normal\n \tfor (int currRow = 1; currRow <= setSize; currRow++)\n \t{\n \tfor (int currCol = 1; currCol <= setSize; currCol++)\n \t{\n \t\tcurrCell = myGoLCell[currRow][currCol];\n \t\tcompString = currCell.getClass().getName();\n \t\t\n \t\tif (compString.contains(\"Strong\"))\n \t\t{\n \t\t\ttempBoard.myGoLCell[currRow][currCol] =\n \t\t\t\t\tnew GoLStrongCell(this.myGoLCell[currRow][currCol].isAlive());\n \t\t\t\t\t\n \t\t}\n \t\telse if (compString.contains(\"Weak\"))\n \t\t{\n \t\t\ttempBoard.myGoLCell[currRow][currCol] =\n \t\t\t\t\tnew GoLWeakCell(this.myGoLCell[currRow][currCol].isAlive());\n \t\t}\n \t\telse\n \t\t{\n \t\t\ttempBoard.myGoLCell[currRow][currCol] =\n \t\t\t\t\tnew GoLCell(this.myGoLCell[currRow][currCol].isAlive());\n \t\t}\n \t}\n \t}\n \t \n \t//return the temporary board that was created\n \treturn tempBoard;\n\t}", "public Board(int i) {\n initBoard(i);\n }", "public static SquareBoard getFullBoard() {\n\n\t\tSquareBoard fullBoard = new SquareBoard(BOARD_SIZE);\n\t\t\n\t\tfor (int ctr = 0; ctr < (BOARD_SIZE * BOARD_SIZE); ctr++) {\n\t\t\tfullBoard.getSpaceByIndex(ctr).setPiece(\n\t\t\t\t\tnew BasicPieceHelper(String.valueOf(ctr), null));\n\t\t}\n\t\t\n\t\treturn fullBoard;\n\t}", "public GameBoard() {\r\n boards = new ArrayList<GameBoard>();\r\n }", "public CGestorGPIO( )\n { \n m_log = Logger.getRootLogger();\n m_Gpio = GpioFactory.getInstance();\n }" ]
[ "0.668153", "0.64728916", "0.6431444", "0.6409319", "0.63772273", "0.62201554", "0.62145793", "0.61559814", "0.6154189", "0.6148407", "0.6122802", "0.6116964", "0.61138874", "0.61027753", "0.6064614", "0.6040054", "0.6027843", "0.6009926", "0.59597313", "0.5933425", "0.59214044", "0.59196377", "0.5913531", "0.591118", "0.58960205", "0.5893459", "0.58878535", "0.58862245", "0.5865064", "0.5864415", "0.58328503", "0.58176464", "0.58175665", "0.5814736", "0.58022285", "0.5794332", "0.57926583", "0.5790798", "0.5781416", "0.5779752", "0.5776743", "0.5770743", "0.5770392", "0.5767872", "0.5751494", "0.57441705", "0.5740891", "0.5740644", "0.5730849", "0.5689891", "0.56815577", "0.5672493", "0.56697786", "0.56578887", "0.56532085", "0.56436527", "0.5607451", "0.5597963", "0.55916256", "0.55801946", "0.55755025", "0.5552013", "0.55504835", "0.55487096", "0.5544135", "0.5535497", "0.5527496", "0.5526576", "0.55014426", "0.54961365", "0.54885423", "0.5485347", "0.54839957", "0.5477643", "0.5457833", "0.54543287", "0.5441532", "0.544088", "0.54328704", "0.5429581", "0.54226166", "0.54199946", "0.5412642", "0.54113936", "0.5411361", "0.54102427", "0.54097635", "0.54072815", "0.5400962", "0.53955895", "0.53922737", "0.5390745", "0.5386606", "0.5384036", "0.53833675", "0.5380074", "0.5374039", "0.5373028", "0.53577566", "0.53541535" ]
0.8899056
0
Returns a new object of class 'Project'.
Project createProject();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createProject(Project newProject);", "public IProject getNewProject() {\r\n\t\treturn newProject;\r\n\t}", "public Project build() {\n return new Project(descriptor.build());\n }", "private IProject createNewProject() {\r\n\t\tif (newProject != null) {\r\n\t\t\treturn newProject;\r\n\t\t}\r\n\r\n\t\t// get a project handle\r\n\t\tfinal IProject newProjectHandle = mainPage.getProjectHandle();\r\n\r\n\t\t// get a project descriptor\r\n\t\tURI location = mainPage.getLocationURI();\r\n\r\n\t\tIWorkspace workspace = ResourcesPlugin.getWorkspace();\r\n\t\tfinal IProjectDescription description = workspace.newProjectDescription(newProjectHandle.getName());\r\n\t\tdescription.setLocationURI(location);\r\n\r\n\t\tlog.info(\"Project name: \" + newProjectHandle.getName());\r\n\t\t//log.info(\"Location: \" + location.toString());\r\n\t\t\r\n\t\t// create the new project operation\r\n\t\tIRunnableWithProgress op = new IRunnableWithProgress() {\r\n\t\t\tpublic void run(IProgressMonitor monitor)\r\n\t\t\t\t\tthrows InvocationTargetException {\r\n\t\t\t\tCreateProjectOperation op = new CreateProjectOperation(description, ResourceMessages.NewProject_windowTitle);\r\n\t\t\t\ttry {\r\n\t\t\t\t\top.execute(monitor, WorkspaceUndoUtil.getUIInfoAdapter(getShell()));\r\n\t\t\t\t} catch (ExecutionException e) {\r\n\t\t\t\t\tthrow new InvocationTargetException(e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\t// run the new project creation operation\r\n\t\ttry {\r\n\t\t\tgetContainer().run(true, true, op);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tlog.error(\"Project creation failed.\");\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t} catch (InvocationTargetException e) {\r\n\t\t\tlog.error(\"Project creation failed.\");\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tnewProject = newProjectHandle;\r\n\r\n\t\treturn newProject;\r\n\t}", "public static Projects createEntity() {\n Projects projects = new Projects();\n projects = new Projects()\n .name(DEFAULT_NAME)\n .startDate(DEFAULT_START_DATE)\n .endDate(DEFAULT_END_DATE)\n .status(DEFAULT_STATUS);\n return projects;\n }", "public static Project creer(String name){\n\t\treturn new Project(name);\n\t}", "private Project(){}", "public static AddProject newInstance() {\n AddProject fragment = new AddProject();\n return fragment;\n }", "public Project() {\n\n }", "public static Project Construct(String id)\n\t{\n\t\treturn new Project(id);\n\t}", "@Test\n @org.junit.Ignore\n public void testProject_1()\n throws Exception {\n\n Project result = new Project();\n\n assertNotNull(result);\n assertEquals(null, result.getName());\n assertEquals(null, result.getWorkloadNames());\n assertEquals(null, result.getProductName());\n assertEquals(null, result.getComments());\n assertEquals(null, result.getCreator());\n assertEquals(0, result.getId());\n assertEquals(null, result.getModified());\n assertEquals(null, result.getCreated());\n }", "public Project() {\n\t}", "public Project() {\n\t}", "public Project() {\n\t\t\n\t}", "private Project compileProject() {\n\t\t\tProject p = null;\n\t\t\t\n\t\t\tif(pType.equals(\"o\")) {\n\t\t\t\ttry {\n\t\t\t\t\tp = new OngoingProject(pCode.getText(), pName.getText(), dateFormat.parse(pSDate.getText()),pClient.getText(), dateFormat.parse(pDeadline.getText()), Double.parseDouble(pBudget.getText()), Integer.parseInt(pCompletion.getText()));\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t} else if(pType.equals(\"f\")) {\n\t\t\t\ttry {\n\t\t\t\t\tp = new FinishedProject(pCode.getText(), pName.getText(), dateFormat.parse(pSDate.getText()),pClient.getText(), dateFormat.parse(pEndDate.getText()), Double.parseDouble(pTotalCost.getText()));\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\n\t\t\treturn p;\n\t\t}", "public Project()\n {\n\n }", "public Project() { }", "public IProject getProject();", "@SuppressWarnings(\"synthetic-access\")\n\t\tpublic GitHubProject build() {\n\t\t\treturn new GitHubProject(this);\n\t\t}", "Project getProject();", "public static Project Create(String id)\n\t{\n\t\t// Need to use an ancestor query to do this inside a transaction.\n\t\t// But the ancestor of project is project.\n\t\t// So we just create a normal key with only the type and id\n\t\tproject = ofy().load().key(Key.create(Project.class, id)).now();\n\n\t\treturn project;\n\t}", "public Project getProjectByName(String name);", "public Project createProjectFromPRJ() {\n\n\t\tSystem.out.println(\"Trying to load prj file with : \" + data_path + \" \" + projectName + \" \" + conceptName + \" \");\n\n\t\tProject project = null;\n\n\t\ttry {\n\n\t\t\tproject = new Project(data_path + projectName);\n\n\t\t\t// Sehr wichtig hier das Warten einzubauen, sonst gibts leere\n\t\t\t// Retrieval Results, weil die Faelle noch nicht geladen sind wenn\n\t\t\t// das\n\t\t\t// Erste Retrieval laueft\n\t\t\twhile (project.isImporting()) {\n\t\t\t\tThread.sleep(1000);\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\"); // console pretty print\n\t\t} catch (Exception ex) {\n\n\t\t\tSystem.out.println(\"Error when loading the project\");\n\t\t}\n\t\treturn project;\n\t}", "public ProjectViewController(){\n InputStream request = appController.httpRequest(\"http://localhost:8080/project/getProject\", \"GET\");\n try {\n String result = IOUtils.toString(request, StandardCharsets.UTF_8);\n Gson gson = new Gson();\n this.projectModel = gson.fromJson(result, ProjectModel.class);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public CreateProject() {\n\t\tsuper();\n\t}", "com.appscode.api.auth.v1beta1.Project getProject();", "@Override\n\tpublic IProject getProject() {\n\t\treturn fProject;\n\t}", "Project getById(Long id);", "LectureProject createLectureProject();", "public static Builder newProject(String name) {\n return new Builder(name);\n }", "public Project getProject()\n {\n \treturn project;\n }", "public Project getProject()\n {\n return project;\n }", "public Project getProject(Long projectId);", "@ApiMethod(\n \t\tname = \"createProject\", \n \t\tpath = \"createProject\", \n \t\thttpMethod = HttpMethod.POST)\n public Project createProject(final ProjectForm projectForm) {\n\n final Key<Project> projectKey = factory().allocateId(Project.class);\n final long projectId = projectKey.getId();\n final Queue queue = QueueFactory.getDefaultQueue();\n \n // Start transactions\n Project project = ofy().transact(new Work<Project>(){\n \t@Override\n \tpublic Project run(){\n \t\tProject project = new Project(projectId, projectForm);\n ofy().save().entities(project).now();\n \n return project;\n \t}\n }); \n return project;\n }", "public Project(String name) {\n this.name = name;\n }", "public Project getProject() {\r\n return project;\r\n }", "public IProject getProject() {\n return mProject;\n }", "@Override\n public Project getProject() {\n return super.getProject();\n }", "public Project getProject() {\n return project;\n }", "public Project getProject() {\n return project;\n }", "public Project() {\n this.name = \"Paper plane\";\n this.description = \" It's made of paper.\";\n }", "public ProjectFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "Project findProjectById(String projectId);", "private static IProject createBaseProject(String projectName, URI location) {\n // it is acceptable to use the ResourcesPlugin class\n IProject newProject = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);\n \n if (!newProject.exists()) {\n URI projectLocation = location;\n IProjectDescription desc = newProject.getWorkspace().newProjectDescription(newProject.getName());\n if (location != null && ResourcesPlugin.getWorkspace().getRoot().getLocationURI().equals(location)) {\n projectLocation = null;\n }\n \n desc.setLocationURI(projectLocation);\n try {\n newProject.create(desc, null);\n if (!newProject.isOpen()) {\n newProject.open(null);\n }\n } catch (CoreException e) {\n e.printStackTrace();\n }\n }\n \n return newProject;\n }", "public Project(String name){\n\t\tthis.pName = name;\n\t}", "public Project(String name, String description){\n this.name = name;\n this.description = description; \n }", "private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}", "public Project(Long projectId) {\n this.id = projectId;\n this.groups = new HashSet<>();\n this.nextGroupId = 0L;\n this.symbols = new HashSet<>();\n this.nextSymbolId = 1L;\n\n this.userId = 0L;\n this.mirrorUrls = \"\";\n }", "public static Project exampleProject() throws ParseException {\n Person willem = new Person(\"Contractor\", \"Willem du Plessis\", \"074 856 4561\", \"[email protected]\",\n \"452 Tugela Avenue\");\n Person rene = new Person(\"Architect\", \"Rene Malan\", \"074 856 4561\", \"rene@malan\", \"452 Tugela Avenue\");\n Person tish = new Person(\"Client\", \"Tish du Plessis\", \"074 856 4561\", \"[email protected]\", \"452 Tugela Avenue\");\n Date deadline = dateformat.parse(\"30/03/2021\");\n Project housePlessis = new Project(789, \"House Plessis\", \"House\", \"102 Jasper Avenue\", \"1025\", 20000, 5000,\n deadline, willem, rene, tish);\n ProjectList.add(housePlessis);\n\n return housePlessis;\n }", "public Project getProject() {\n\t\treturn project;\n\t}", "@Deprecated\n public ProjectBean getProject(Object proj) {\n Project project;\n ProjectBean newProjectBean;\n // System.out.println(proj);\n // System.out.println(this.projectMap);\n\n if (proj instanceof Project) {\n project = (Project) proj;\n newProjectBean = this.createProjectBean(project);\n this.projectMap.put(newProjectBean.getId(), newProjectBean);\n } else {\n if (this.projectMap.get((String) proj) != null) {\n\n newProjectBean = this.projectMap.get(proj);\n } else {\n project = this.getOpenBisClient().getProjectByIdentifier((String) proj);\n newProjectBean = this.createProjectBean(project);\n this.projectMap.put(newProjectBean.getId(), newProjectBean);\n }\n }\n return newProjectBean;\n }", "public static ProjectTeam createSampleProjectTeam() {\n ProjectTeam team = new ProjectTeam();\n team.setProjectName(\"Rule the Galaxy\");\n team.addMember(new ProjectMember(\n \"Emperor Palpatine\", \"lead\", \"[email protected]\"));\n team.addMember(new ProjectMember(\n \"Lord Darth Vader\", \"Jedi-Killer\", \"[email protected]\"));\n team.addMember(new ProjectMember(\n \"Grand Moff Tarkin\", \"Planet-Killer\", \"[email protected]\"));\n team.addMember(new ProjectMember(\n \"Admiral Motti\", \"Death Star operations\", \"[email protected]\"));\n return team;\n }", "public ProjectDto(Project project){\n this.id = project.getId();\n this.name = project.getName();\n this.company = new CompanyDto(project.getCompany());\n this.start_date = project.getStart_date();\n this.status = project.getStatus();\n }", "public IProject getProject() {\n\treturn this.project;\n }", "public Project(String name) {\r\n\t\tsuper(name);\r\n\t\tthis.opened = true;\r\n\t\tthis.projectFile = null;\r\n\t}", "public Project getProject(){\n\t\treturn this.project;\n\t}", "public static ProjectsFragment newInstance() {\n ProjectsFragment fragment = new ProjectsFragment();\n// Bundle args = new Bundle();\n// fragment.setArguments(args);\n return fragment;\n }", "public Project getProject()\n\t{\n\t\treturn this.project;\n\t}", "public FlexoProject getProject() {\n \t\treturn findCurrentProject();\n \t}", "public Project getProjectById(String id) {\n\t\tSQLiteQueryBuilder q = new SQLiteQueryBuilder();\n\t\tq.setTables(Constants.TABLE_PROJECTS);\n\n\t\tCursor cursor = q.query(database, null, Constants.COLUMN_ID + \" = ?\", new String[] { id }, null, null, null);\n\t\tcursor.moveToFirst();\n\n\t\tif (cursor.getCount() > 0)\n\t\t\treturn new Project(cursor);\n\t\telse\n\t\t\treturn null;\n\t}", "public jkt.hrms.masters.business.MstrProject getProject () {\n\t\treturn project;\n\t}", "public static IProject createProject(String projectName, URI location) {\n \n IProject project = createBaseProject(projectName, location);\n try {\n addNature(project);\n String[] paths = {CLASSES_FOLDER};\n addToProjectStructure(project,paths);\n addProjectFiles(project);\n } catch (CoreException e) {\n e.printStackTrace();\n project = null;\n }\n \n return project;\n }", "Project findProjectById(Long projectId);", "public static void newProject() {\n\n //create the arena representation\n //populateBlocks();\n //populateSensors();\n }", "public Project getProject(int projectId) throws EmployeeManagementException;", "public Project findProjectById(String projectId) {\n\t\tProject project = null;\r\n\t\tString query = \"SELECT FROM TA_PROJECTS WHERE PROJECT_ID='\" + projectId + \"'\";\r\n\t\tSqlRowSet srs = jdbcTemplate.queryForRowSet(query);\r\n\t\twhile(srs.next()){\r\n\t\t\tproject = new Project();\r\n\t\t\tproject.setProjectID(srs.getString(1));\r\n\t\t\tproject.setProjectName(srs.getString(2));\r\n\t\t\tproject.setManagerID(srs.getString(3));\r\n\t\t}\r\n\t\treturn project;\r\n\t}", "private boolean createProject() {\r\n ProjectOverviewerApplication app = (ProjectOverviewerApplication)getApplication();\r\n Projects projects = app.getProjects();\r\n String userHome = System.getProperty(\"user.home\");\r\n // master file for projects management\r\n File projectsFile = new File(userHome + \"/.hackystat/projectoverviewer/projects.xml\");\r\n \r\n // create new project and add it to the projects\r\n Project project = new Project();\r\n project.setProjectName(this.projectName);\r\n project.setOwner(this.ownerName);\r\n project.setPassword(this.password);\r\n project.setSvnUrl(this.svnUrl);\r\n for (Project existingProject : projects.getProject()) {\r\n if (existingProject.getProjectName().equalsIgnoreCase(this.projectName)) {\r\n return false;\r\n }\r\n }\r\n projects.getProject().add(project);\r\n \r\n try {\r\n // create the specific tm3 file and xml file for the new project\r\n File tm3File = new File(userHome + \r\n \"/.hackystat/projectoverviewer/\" + this.projectName + \".tm3\");\r\n File xmlFile = new File(userHome + \r\n \"/.hackystat/projectoverviewer/\" + this.projectName + \".xml\");\r\n tm3File.createNewFile();\r\n \r\n // initialize the data for the file\r\n SensorDataCollector collector = new SensorDataCollector(app.getSensorBaseHost(), \r\n this.ownerName, \r\n this.password);\r\n collector.getRepository(this.svnUrl, this.projectName);\r\n collector.write(tm3File, xmlFile);\r\n } \r\n catch (IOException e) {\r\n e.printStackTrace();\r\n return false;\r\n }\r\n // write the projects.xml file with the new project added\r\n String packageName = \"org.hackystat.iw.projectoverviewer.jaxb.projects\";\r\n return XmlConverter.objectToXml(projects, projectsFile, packageName);\r\n }", "public ApiProject() {\n super();\n }", "public PanelNewProject getNewProject(){\n return nuevoProyecto;\n }", "public abstract ProjectBean getSystemProject();", "public static FavoriteProject createEntity(EntityManager em) {\n FavoriteProject favoriteProject = new FavoriteProject()\n .user(DEFAULT_USER)\n .project(DEFAULT_PROJECT);\n return favoriteProject;\n }", "@RequestMapping(value = \"/create/project/{projectId}\", method = RequestMethod.GET)\r\n public ModelAndView create(@PathVariable(\"projectId\") String projectId) {\r\n ModelAndView mav = new ModelAndView(\"creates2\");\r\n int pid = -1;\r\n try {\r\n pid = Integer.parseInt(projectId);\r\n } catch (Exception e) {\r\n LOG.error(e);\r\n }\r\n User loggedIn = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\r\n User user = hibernateTemplate.get(User.class, loggedIn.getUsername());\r\n Project project = hibernateTemplate.get(Project.class, pid);\r\n if (!dataAccessService.isProjectAvailableToUser(project, user)) {\r\n return accessdenied();\r\n }\r\n List<SubProject> subProjects = dataAccessService.getResearcherSubProjectsForUserInProject(user, project);\r\n mav.addObject(\"projectId\", projectId);\r\n mav.addObject(\"methods\", project.getMethods());\r\n mav.addObject(\"subProjects\", subProjects);\r\n return mav;\r\n }", "@Override\n\tpublic Project getProjectByName(String name) {\n\t\treturn projectDao.getProjectByName(name);\n\t}", "public org.eclipse.core.resources.IProject getProject() {\n \t\treturn project;\n \t}", "@Deprecated\n ProjectBean createProjectBean(Project project) {\n\n ProjectBean newProjectBean = new ProjectBean();\n\n List<Experiment> experiments =\n this.getOpenBisClient().getExperimentsOfProjectByIdentifier(project.getIdentifier());\n\n ProgressBar progressBar = new ProgressBar();\n progressBar.setValue(this.getOpenBisClient().computeProjectStatus(project));\n\n Date registrationDate = project.getRegistrationDetails().getRegistrationDate();\n\n newProjectBean.setId(project.getIdentifier());\n newProjectBean.setCode(project.getCode());\n String desc = project.getDescription();\n if (desc == null)\n desc = \"\";\n newProjectBean.setDescription(desc);\n newProjectBean.setRegistrationDate(registrationDate);\n newProjectBean.setProgress(progressBar);\n newProjectBean.setRegistrator(project.getRegistrationDetails().getUserId());\n newProjectBean.setContact(project.getRegistrationDetails().getUserEmail());\n\n BeanItemContainer<ExperimentBean> experimentBeans =\n new BeanItemContainer<ExperimentBean>(ExperimentBean.class);\n\n List<String> experiment_identifiers = new ArrayList<String>();\n\n for (Experiment experiment : experiments) {\n experimentBeans.addBean(this.getExperiment(experiment));\n experiment_identifiers.add(experiment.getIdentifier());\n }\n List<DataSet> datasets = (experiment_identifiers.size() > 0)\n ? getOpenBisClient().getFacade().listDataSetsForExperiments(experiment_identifiers)\n : new ArrayList<DataSet>();\n newProjectBean.setContainsData(datasets.size() != 0);\n\n newProjectBean.setExperiments(experimentBeans);\n newProjectBean.setMembers(this.getOpenBisClient().getSpaceMembers(project.getSpaceCode()));\n\n return newProjectBean;\n }", "@Override\n\tpublic Project getProjectById(int id) {\n\t\treturn null;\n\t}", "public ProjectModel getCurrentProject() {\n if (projects.size() > 0) {\n return projects.get(0);\n }\n else return null;\n }", "public static Project createProject() throws ParseException {\n System.out.println(\"Please enter the project number: \");\n int projNum = input.nextInt();\n input.nextLine();\n\n System.out.println(\"Please enter the project name: \");\n String projName = input.nextLine();\n\n System.out.println(\"Please enter the type of building: \");\n String buildingType = input.nextLine();\n\n System.out.println(\"Please enter the physical address for the project: \");\n String address = input.nextLine();\n\n System.out.println(\"Please enter the ERF number: \");\n String erfNum = input.nextLine();\n\n System.out.println(\"Please enter the total fee for the project: \");\n int totalFee = input.nextInt();\n input.nextLine();\n\n System.out.println(\"Please enter the total amount paid to date: \");\n int amountPaid = input.nextInt();\n input.nextLine();\n\n System.out.println(\"Please enter the deadline for the project (dd/MM/yyyy): \");\n String sdeadline = input.nextLine();\n Date deadline = dateformat.parse(sdeadline);\n\n Person architect = createPerson(\"architect\", input);\n Person contractor = createPerson(\"contractor\", input);\n Person client = createPerson(\"client\", input);\n\n // If the user did not enter a name for the project, then the program will\n // concatenate the building type and the client's surname as the new project\n // name.\n\n if (projName == \"\") {\n String[] clientname = client.name.split(\" \");\n String lastname = clientname[clientname.length - 1];\n projName = buildingType + \" \" + lastname;\n }\n\n return new Project(projNum, projName, buildingType, address, erfNum, totalFee, amountPaid, deadline, contractor,\n architect, client);\n\n }", "public ProjectFile getProject()\r\n {\r\n return m_project;\r\n }", "private Project getProject(ModelInfo<Project> info) {\n return data.get(info);\n }", "public static Project get(String name, Output<String> id, @Nullable ProjectState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {\n return new Project(name, id, state, options);\n }", "ProjectDTO findProjectById(Long id);", "@Override\n\tpublic Project getProjectById(int id) {\n\t\treturn projectDao.getProjectById(id);\n\t}", "HibProject getProject(InternalActionContext ac);", "ProjectRepresentation getWorkingProject();", "public void createProject(String name) {\n Project project = new Project(name);\n Leader leader = new Leader(this, project);\n project.addLeader(leader);\n }", "public ProjectsList getProjects() {\n return projects.clone();\n }", "@ManyToOne(optional = false)\n @JsonIgnore\n public Project getProject() {\n return project;\n }", "public Long createProject(ProjectTo projectTo) {\n\t\tprojectTo = new ProjectTo();\n\t\tprojectTo.setOrg_id(1L);\n\t\tprojectTo.setOrg_name(\"AP\");\n\t\tprojectTo.setName(\"Menlo\");\n\t\tprojectTo.setShort_name(\"Pioneer Towers\");\n\t\tprojectTo.setOwner_username(\"Madhapur\");\n\n\t\ttry {\n\t\t\tWebResource webResource = getJerseyClient(userOptixURL + \"CreateProject\");\n\t\t\tprojectTo = webResource.type(MediaType.APPLICATION_JSON).post(ProjectTo.class, projectTo);\n\t\t\tif(projectTo != null && projectTo.getProject_id() != null) {\n\t\t\t\treturn projectTo.getProject_id() ;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error in getting the response from REST call CreateProject : \"+e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "public Project getProjectWithEmployee(int projectId) throws EmployeeManagementException;", "public TeamProject getProject(\r\n final String projectId, \r\n final Boolean includeCapabilities, \r\n final Boolean includeHistory) {\r\n\r\n final UUID locationId = UUID.fromString(\"603fe2ac-9723-48b9-88ad-09305aa6c6e1\"); //$NON-NLS-1$\r\n final ApiResourceVersion apiVersion = new ApiResourceVersion(\"2.1\"); //$NON-NLS-1$\r\n\r\n final Map<String, Object> routeValues = new HashMap<String, Object>();\r\n routeValues.put(\"projectId\", projectId); //$NON-NLS-1$\r\n\r\n final NameValueCollection queryParameters = new NameValueCollection();\r\n queryParameters.addIfNotNull(\"includeCapabilities\", includeCapabilities); //$NON-NLS-1$\r\n queryParameters.addIfNotNull(\"includeHistory\", includeHistory); //$NON-NLS-1$\r\n\r\n final Object httpRequest = super.createRequest(HttpMethod.GET,\r\n locationId,\r\n routeValues,\r\n apiVersion,\r\n queryParameters,\r\n APPLICATION_JSON_TYPE);\r\n\r\n return super.sendRequest(httpRequest, TeamProject.class);\r\n }", "public ProjectsPage() {\n\t\tthis.driver = DriverManager.getDriver();\n\t\tElementFactory.initElements(driver, this);\n\t\t// sets the name of the project to add, with a random integer ending for slight\n\t\t// ease on multiple test runs\n\t\tnameOfProject = \"testz2018\" + (int) Math.random() * 500;\n\t}", "public Project getTasks(String projectId) {\n try {\n\n String selectProject = \"select * from PROJECTS where PROJECT_ID = ?\";\n connection = ConnectionManager.getConnection();\n PreparedStatement ps = connection.prepareStatement(selectProject);\n ps.setString(1, projectId);\n ResultSet rs = ps.executeQuery();\n if (rs.next()) {\n String startdate = rs.getString(\"STARTDATE\");\n String invoicesent = rs.getString(\"INVOICESENT\");\n String hours = rs.getString(\"HOURS\");\n String client = \"\";\n String duedate = rs.getString(\"DUEDATE\");\n String description = rs.getString(\"DESCRIPTION\");\n Project p = new Project(client, description, projectId,\n duedate, startdate, hours, duedate, duedate,\n invoicesent, invoicesent);\n rs.close();\n ps.close();\n return p;\n } else {\n return null;\n }\n } catch (SQLException sqle) {\n sqle.printStackTrace(); // for debugging\n return null;\n }\n }", "protected Project getProject() {\n return getConfiguration().getProject();\n }", "public void getProject(){\n\t\n\t String getList[] = clientFacade.GetProjects().split(\"\\n\");\n\t DefaultComboBoxModel addPro = new DefaultComboBoxModel();\n\t\tfor(int i=1; i<getList.length; i+=2) \n\t\t\t addPro.addElement(getList[i]);\n\t\t\t \n\t\tcPro.setModel(addPro);\t\n\t}", "Project findProjectByIdAndConvert(String projectId);", "public void setProject(org.eclipse.core.resources.IProject newProject) {\n \t\tproject = newProject;\n \t}", "public Property createProperty() {\n if (newProject == null) {\n reinit();\n }\n Property p = new Property(true, getProject());\n p.setProject(newProject);\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }" ]
[ "0.7584945", "0.7551854", "0.7549684", "0.75401187", "0.74671805", "0.7432529", "0.7270543", "0.71195436", "0.71105796", "0.70749086", "0.70686734", "0.7064501", "0.7064501", "0.7017828", "0.698956", "0.6983459", "0.69682777", "0.6962118", "0.695292", "0.69281733", "0.6908292", "0.6908247", "0.6850521", "0.67775667", "0.675675", "0.6753827", "0.6752735", "0.67388725", "0.6728009", "0.6726459", "0.67241806", "0.6706398", "0.6700271", "0.66827804", "0.66752595", "0.66721916", "0.6651068", "0.663622", "0.6635673", "0.6635673", "0.6576781", "0.6553004", "0.65197885", "0.64909273", "0.64692426", "0.64620686", "0.6413021", "0.64080286", "0.6404347", "0.6389118", "0.6381736", "0.6360625", "0.6359877", "0.6356617", "0.6337588", "0.63240844", "0.6305229", "0.6301587", "0.6297352", "0.6283826", "0.6267107", "0.6265382", "0.6252845", "0.62470335", "0.6244694", "0.6223397", "0.6200594", "0.6194443", "0.61650646", "0.6137253", "0.61224645", "0.61180454", "0.6098953", "0.60920453", "0.6089398", "0.6079728", "0.6072001", "0.6057282", "0.6040572", "0.60331815", "0.6023497", "0.6014232", "0.6012935", "0.6012761", "0.60127026", "0.60041964", "0.59685636", "0.59601736", "0.59476596", "0.59450865", "0.594275", "0.5906629", "0.5893368", "0.5888586", "0.588694", "0.58859295", "0.58804613", "0.58535665" ]
0.79533494
1
Returns a new object of class 'Sketch'.
Sketch createSketch();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Drawing createDrawing() {\n return new StandardDrawing();\n }", "public DrawHouse(){\r\n\t\tcanvas = new SketchPad(1000, 1000);\r\n\t\tpen = new DrawingTool(canvas);\r\n\t}", "public interface ProcessingSketch {\n /**\n * Called when the sketch is initialized to define viewport configuration\n * for the rendering settings\n * @param configuration The configuration that can be changed before starting the actual display\n */\n void onSettings(ProcessingConfiguration configuration);\n\n /**\n * Invoked after the sketch viewport is initialized, this is run only once\n * allowing to draw static things, and also prepare resources\n * @param processingSetup The setup context available to the sketch\n */\n void onSetup(ProcessingSetup processingSetup);\n\n /**\n * Invoked on every frame after setup has been called to redraw the scene.<br>\n * How frequent this method gets called depends on the fps configuration of the sketch and\n * how much each frame takes to render. If it takes too much the fps goal may not be met.\n *\n * @param givenCanvas The processing space that can be drawn on\n */\n void onDraw(ProcessingCanvas givenCanvas);\n\n /**\n * Invoked on a mouse click and release event\n * @param mouseEvent The processing context of the mouse event\n */\n void onMouseClicked(MouseEventContext mouseEvent);\n}", "public Sketch(Editor editor, String path) throws IOException {\n this.editor = editor;\n\n primaryFile = new File(path);\n\n // get the name of the sketch by chopping .pde or .java\n // off of the main file name\n String mainFilename = primaryFile.getName();\n int suffixLength = getDefaultExtension().length() + 1;\n name = mainFilename.substring(0, mainFilename.length() - suffixLength);\n\n // lib/build must exist when the application is started\n // it is added to the CLASSPATH by default, but if it doesn't\n // exist when the application is started, then java will remove\n // the entry from the CLASSPATH, causing Runner to fail.\n //\n /*\n tempBuildFolder = new File(TEMP_BUILD_PATH);\n if (!tempBuildFolder.exists()) {\n tempBuildFolder.mkdirs();\n Base.showError(\"Required folder missing\",\n \"A required folder was missing from \\n\" +\n \"from your installation of Processing.\\n\" +\n \"It has now been replaced, please restart \\n\" +\n \"the application to complete the repair.\", null);\n }\n */\n tempBuildFolder = Base.getBuildFolder();\n //Base.addBuildFolderToClassPath();\n\n folder = new File(new File(path).getParent());\n //System.out.println(\"sketch dir is \" + folder);\n\n load();\n }", "public Sketch(Mouse m) {\r\n\t\tfor (int i = 0; i < 11; i++) {\r\n\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\tthis.s[i][j] = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tthis.s[10][10] = 1;\r\n\t\t\r\n\t\t//mousetraps\r\n\t\tthis.s[0][1] = 2;\r\n\t\tthis.s[0][9] = 2;\r\n\t\tthis.s[2][2] = 2;\r\n\t\tthis.s[2][8] = 2;\r\n\t\tthis.s[3][5] = 2;\r\n\t\tthis.s[3][9] = 2;\r\n\t\tthis.s[4][6] = 2;\r\n\t\tthis.s[5][3] = 2;\r\n\t\tthis.s[5][6] = 2;\r\n\t\tthis.s[5][7] = 2;\r\n\t\tthis.s[6][1] = 2;\r\n\t\tthis.s[7][4] = 2;\r\n\t\tthis.s[7][10] = 2;\r\n\t\tthis.s[8][0] = 2;\r\n\t\tthis.s[9][4] = 2;\r\n\t\tthis.s[9][9] = 2;\r\n\t\tthis.s[10][9] = 2;\r\n\t\t\r\n\t\tdo {\r\n\t\t\tVector v = m.getPos();\r\n\t\t\t//System.out.println(v.toString());\r\n\t\t\tthis.s[v.getX()][v.getY()] = 1;\r\n\t\t\tm.update();\r\n\t\t\t\r\n\t\t} while (!m.atTarget() && m.isAlive());\r\n\t\r\n\t}", "public SVCustom build(){\n if(this.disks < 1) return new SVCustom();\n SVCustom s = new SVCustom(new Point(100, (int)Math.pow(2, this.disks)*104 - 52));\n int left[] = new int[]{0,1};\n int right[] = new int[]{1,2};\n int bottom[] = new int[]{0,2};\n SierpinskiTriangle t = new SierpinskiTriangle(0,this.disks,this.disks-1, left, right, bottom, buildInitial(this.disks));\n s.setAttribute(\"font-family\", \"Arial\");\n s.addContent(t, \"Triangle\");\n return s;\n }", "Sketch apex();", "public Paint() {\n shapes = new ArrayList<>();\n }", "DrawingCanvas() {\n super();\n\n // ArrayList to hold all shape objects\n shapes = new ArrayList<>();\n\n // ArrayList to hold all point objects\n points = new ArrayList<>();\n\n // Initialize colour arrays\n lineColours = new ArrayList<>();\n fillColours = new ArrayList<>();\n\n lineColours.add(Color.black);\n fillColours.add(null);\n\n clickStatus = true;\n activeTool = 1;\n this.addMouseListener(this);\n this.addMouseMotionListener(new MouseMotionAdapter() {\n public void mouseDragged(MouseEvent e) {\n endDrag = new Point(e.getX(), e.getY());\n repaint();\n }\n });\n\n // Initialize the WriteVec object, so it can be written to\n writeFile = new WriteVec();\n\n // Initialize the ShapeCreator object\n newShape = new ShapeCreator();\n\n // Set colours\n currentFillColour = null;\n currentPenColour = Color.BLACK;\n }", "public void createPainter(Painter painter);", "public NewShape() {\r\n\t\tsuper();\r\n\t}", "protected StandardDrawingView createDrawingView() {\n return new StandardDrawingView(this, 410, 370);\n }", "public Paper() {\r\n }", "public Pencil() {\n\n }", "public Skull() {\n\t\tsuper();\n\t\tsuper.setWidth(width);\n\t\tsuper.setheight(height);\n\t\tloadPattern();\n\t\tcurrentPattern = walkPattern;\n\t}", "public Fish create(){\n\t\tMovementStyle style = new NoMovement();\n\t\treturn new Shark(style);\n\t}", "public eSketchView(Context context, AttributeSet attrs) {\n super(context, attrs); // pass context to View's constructor\n\n mPaintScreen = new Paint();\n\n mPaintLine = new Paint();\n mPaintLine.setAntiAlias(true); // anti-alias smooths edges\n // set defaults for color, width, solid, rounded line.\n mPaintLine.setColor(Color.BLACK);\n mPaintLine.setStyle(Paint.Style.STROKE);\n mPaintLine.setStrokeWidth(5);\n mPaintLine.setStrokeCap(Paint.Cap.ROUND);\n }", "public Shape()\n\t{\n\t\tinitShape();\n\t}", "private DrawingObject createDrawingObject(\n Rect rect, String colorResourceThemeId, int stroke) {\n DrawingObject out = new DrawingObject();\n out.mSweepAngle = 0;\n Theme theme = ThemeManager.getCurrentTheme(getContext());\n out.mPaint.setColor(theme.getColor(getContext(), colorResourceThemeId));\n out.mPaint.setStrokeWidth(stroke);\n out.mPaint.setAntiAlias(true);\n out.mPaint.setStrokeCap(Paint.Cap.BUTT);\n out.mPaint.setStyle(Paint.Style.STROKE);\n out.mRectF = new RectF(rect);\n return out;\n }", "private void setupDrawing(){\n brushSize = 1;\n lastBrushSize = brushSize;\n drawPath = new Path();\n drawPaint = new Paint();\n drawPaint.setColor(paintColor);\n drawPaint.setAntiAlias(true);\n drawPaint.setStrokeWidth(brushSize);\n drawPaint.setStyle(Paint.Style.STROKE);\n drawPaint.setStrokeJoin(Paint.Join.ROUND);\n drawPaint.setStrokeCap(Paint.Cap.ROUND);\n canvasPaint = new Paint(Paint.DITHER_FLAG);\n }", "public ShapeMaker(SubstrateMapDrawer drawer) {\r\n this.drawer = drawer;\r\n }", "public Shape() { this(X_DEFAULT, Y_DEFAULT); }", "public Paint(){\n triangles = new ArrayList<>();\n rectangles = new ArrayList<>();\n circles = new ArrayList<>();\n }", "public static void drawHelper(String[] tokens, Sketch sketch) {\n\t\t// get the type of the shape (i.e. \"ellipse,\" \"rectangle,\" etc.)\n\t\tString shapeType = tokens[1];\n\t\t\t\t\t\n\t\t// if ellipse, add ellipse object to editor's sketch map\n\t\tif (shapeType.equals(\"ellipse\")) {\n\t\t\t// get values for ellipse\n\t\t\tint x1 = Integer.parseInt(tokens[2]);\n\t\t\tint y1 = Integer.parseInt(tokens[3]);\n\t\t\tint x2 = Integer.parseInt(tokens[4]);\n\t\t\tint y2 = Integer.parseInt(tokens[5]);\n\t\t\tint color = Integer.parseInt(tokens[6]);\n\t\t\t\n\t\t\t// add ellipse to editor's sketch\n\t\t\tsketch.addToMap(new Ellipse(x1, y1, x2, y2, new Color(color)));\n\t\t}\n\t\t\n\t\t// if rectangle, add rectangle object to editor's sketch map\n\t\telse if (shapeType.equals(\"rectangle\")) {\n\t\t\t\n\t\t\t// get values for rectangle\n\t\t\tint x1 = Integer.parseInt(tokens[2].substring(0,tokens[2].length()-1));\n\t\t\tint y1 = Integer.parseInt(tokens[3].substring(0,tokens[3].length()-1));\n\t\t\tint x2 = Integer.parseInt(tokens[4].substring(0,tokens[4].length()-1));\n\t\t\tint y2 = Integer.parseInt(tokens[5].substring(0,tokens[5].length()-1));\n\t\t\tint color = Integer.parseInt(tokens[6]);\n\t\t\t\n\t\t\t// add rectangle to editor's sketch map\n\t\t\tsketch.addToMap(new Rectangle(x1, y1, x2, y2, new Color(color)));\n\t\t}\n\t\t\n\t\t// if polyline, add polyline object to editor's sketch map\n\t\telse if (shapeType.equals(\"polyline\")) {\n\t\t\t// grab starting information\n\t\t\tString[] startPoint = tokens[2].split(\"\\\\;\");\n\t\t\tColor color = new Color(Integer.parseInt(tokens[tokens.length - 1]));\n\t\t\t\n\t\t\t// construct polyline object\n\t\t\tPolyline p = new Polyline(new Point(Integer.parseInt(startPoint[0]), Integer.parseInt(startPoint[1])), color);\n\t\t\t\n\t\t\t// the string comes with all points that make up the polyline (in format x1;y1 x2;y2 x3;y3, etc.)\n\t\t\t// for all unadded points, add them to p's collection of points in the curve\n\t\t\tfor (int i=4; i<tokens.length-2; i++) {\n\t\t\t\t// split to get x and y values for the point based on semi-colon\n\t\t\t\tString[] sPoint = tokens[i].split(\"\\\\;\");\n\t\t\t\t\n\t\t\t\tp.addPoint(new Point(Integer.parseInt(sPoint[0]), Integer.parseInt(sPoint[1])));\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// add polyline to editor's sketch map\n\t\t\tsketch.addToMap(p);\n\t\t}\n\t\t\n\t\t// if segment, add segment object to editor's sketch map\n\t\telse if (shapeType.equals(\"segment\")) {\n\t\t\t// get values for segment\n\t\t\tint x1 = Integer.parseInt(tokens[2]);\n\t\t\tint y1 = Integer.parseInt(tokens[3]);\n\t\t\tint x2 = Integer.parseInt(tokens[4]);\n\t\t\tint y2 = Integer.parseInt(tokens[5]);\n\t\t\tint color = Integer.parseInt(tokens[6]);\n\t\t\t\n\t\t\t// add segment to editor's sketch then repaint\n\t\t\tsketch.addToMap(new Segment(x1, y1, x2, y2, new Color(color)));\n\t\t}\n\t}", "public ShapeFactory(Dialog dialog) {\n\t}", "void initOffscreen(PApplet sketch);", "public Shape() {\n\t\tthis(DEFAULT_X_POS, DEFAULT_Y_POS, DEFAULT_DELTA_X, DEFAULT_DELTA_Y, DEFAULT_WIDTH, DEFAULT_HEIGHT);\n\t}", "@Override\n public void create() {\n shapeRenderer = new ShapeRenderer();\n }", "public PencilPen() {\n this(10.0);\n }", "public Pen() {\n color = Color.BLACK;\n stroke = new BasicStroke();\n }", "public static IJavaSearchScope createJavaSearchScope(IProgramSketch sketch) {\n\t\t\n\t\t//get the launch type from the filters first\n\t\tString launchType = sketch.getFilterSettings().getLaunchType();\n\t\tif (LaunchConfigurationUtilities.ECLIPSE_LAUNCH_TYPE.equals(launchType)) {\n\t\t\treturn createPluginSearchScope();\n\t\t}\n\t\t\n\t\tIProject[] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects();\n\t\tArrayList<IJavaProject> javaProjects = new ArrayList<IJavaProject>();\n\t\tfor (IProject project : projects) {\n\t\t\ttry {\n\t\t\t\tif (project.isOpen() && project.isAccessible() && project.hasNature(JavaCore.NATURE_ID)) {\n\t\t\t\t\tjavaProjects.add(JavaCore.create(project));\n\t\t\t\t}\n\t\t\t} catch (CoreException e) {\n\t\t\t\t//do nothing, just ignore\n\t\t\t}\n\t\t}\n\t\tif (projects.length > 0) {\n\t\t\treturn SearchEngine.createJavaSearchScope(javaProjects.toArray(new IJavaProject[javaProjects.size()]));\n\t\t}\n\t\treturn null;\n\t}", "protected Shape() {}", "protected Tool createSelectionTool() {\n return new SelectionTool(view());\n }", "public DrawingPane() {\n this.setBorder(new Border(new BorderStroke(Color.BLACK, BorderStrokeStyle.SOLID, CornerRadii.EMPTY, BorderWidths.DEFAULT)));\n this.setStyle(\"-fx-background-color : white\");\n\n color = new ObjectPropertyBase<Color>() {\n @Override\n public Object getBean() {\n return this;\n }\n\n @Override\n public String getName() {\n return \"Color\";\n }\n };\n\n thickness = new ObjectPropertyBase<Integer>() {\n @Override\n public Object getBean() {\n return this;\n }\n\n @Override\n public String getName() {\n return \"Thickness\";\n }\n };\n\n modifiable = new BooleanPropertyBase(true) {\n @Override\n public Object getBean() {\n return this;\n }\n\n @Override\n public String getName() {\n return \"Modifiability\";\n }\n };\n\n lastLine = new ObjectPropertyBase<DrawingInfos>() {\n @Override\n public Object getBean() {\n return this;\n }\n\n @Override\n public String getName() {\n return \"Last Line\";\n }\n };\n\n this.canvas = new Canvas();\n this.context = canvas.getGraphicsContext2D();\n this.drawingInfos = new DrawingInfos();\n this.lastLine.setValue(new DrawingInfos());\n this.lastLineList = new DrawingInfos();\n\n getChildren().add(canvas);\n initialize();\n }", "private void setUp()\n {\n path = new Path();\n drawPaint = new Paint();\n brushSize = getResources().getInteger(R.integer.medium_size);\n lastBrushSize = brushSize;\n //initialize paint color\n drawPaint.setColor(paintColor);\n drawPaint.setAntiAlias(true);\n drawPaint.setStrokeWidth(brushSize);\n drawPaint.setStyle(Paint.Style.STROKE);\n drawPaint.setStrokeJoin(Paint.Join.ROUND);\n drawPaint.setStrokeCap(Paint.Cap.ROUND);\n //initialize canvas background\n canvasPaint = new Paint(Paint.DITHER_FLAG);\n }", "public Canvas canvas() {\n Canvas canvas = new Canvas(getLowerBound(), getUpperBound());\n canvas.add(this);\n return canvas;\n }", "protected void createSelection() {\r\n\t\tsel = new GraphSelection();\r\n\t}", "public XMLElement(PApplet sketch, String filename)\n/* */ {\n/* 174 */ this();\n/* 175 */ this.sketch = sketch;\n/* 176 */ init(sketch.createReader(filename));\n/* */ }", "private void newCanvas() {\n\t\timgCanvas = new ImageCanvas(1000, 563);\n\t\t//canvasJP.add(imgCanvas);\n\t}", "public CanvasEditor(Shape initialShape) { //shape constructor\n\t\t\n\t\tthis.currentShape = initialShape;\n\t\t\n\t\t\n\t}", "public static void main(String [] args)\n{\n //this is something to memorize \n\nDrawingTool pencil;\nSketchPad paper;\n//these two were object declarations \npaper = new SketchPad (300,300); \npencil = new DrawingTool(paper); \n//these two were to create instances of the DrawingTool and SketchPad that are in the library today \n\n//now, directions: memorize the format for the instructions \npencil.forward (100);\npencil.turnRight (90);\npencil.forward (200);\npencil.turnRight (90);\npencil.forward (100);\npencil.turnRight (90);\npencil.forward (200);\npencil.turnRight (90);\npencil.forward (100);\npencil.turnRight (45);\npencil.forward (142);\npencil.turnRight (90); \npencil.forward (142);\npencil.turnRight (45);\npencil.forward (100);\npencil.turnRight (90);\npencil.forward (80);\npencil.turnRight (90);\npencil.forward (40);\npencil.turnLeft (90);\npencil.forward (20);\npencil.turnLeft (90);\npencil.forward (40);\n/*a few questions I have: can I change the color of the pencil, can I lift\n * it or choose where to start\n */\npencil.turnRight(90);\npencil.forward (100);\npencil.turnRight (90);\npencil.forward (160);\npencil.turnRight (90);\npencil.forward (30);\npencil.turnRight (90);\npencil.forward (30);\n\n\n\n \n\n//how can I add a new color in this? I requested access for the video \n//that the logo team made\n \n \n}", "public PencilTool() {\n super();\n myPencil = new Path2D.Double(); \n }", "public ScribbleFactoryImpl()\n {\n\t\tsuper();\n\t}", "public WorldScene makeScene() {\n WorldScene scene = new WorldScene(this.width * GamePiece.GAMEPIECE_SIZE,\n this.height * GamePiece.GAMEPIECE_SIZE);\n WorldImage row = new EmptyImage();\n for (int i = 0; i < this.width; i++) {\n WorldImage column = new EmptyImage();\n for (int j = 0; j < this.height; j++) {\n column = new AboveImage(column, this.board.get(i).get(j)\n .drawPiece(this.board.get(powerRow).get(powerCol), this.radius));\n }\n row = new BesideImage(row, column);\n }\n scene.placeImageXY(row, (this.width * GamePiece.GAMEPIECE_SIZE) / 2,\n (this.height * GamePiece.GAMEPIECE_SIZE) / 2);\n return scene;\n }", "private JPanel createCanvas() {\n return new JPanel() {\n\n @Override\n protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n element.drawMe((Graphics2D) g);\n }\n\n };\n }", "private Parent create() {\n root.setPrefSize(600,600);\r\n\r\n for(int i = 0; i < 3; ++i) {\r\n for(int j = 0; j < 3; ++j) {\r\n Tile tile = new Tile();\r\n tile.setTranslateX(j * 200);\r\n tile.setTranslateY(i * 200);\r\n\r\n root.getChildren().add(tile);\r\n board[j][i] = tile;\r\n }\r\n }\r\n\r\n // horizontal strikes\r\n for(int i = 0; i < 3; ++i) {\r\n comboList.add(new Combination(board[0][i], board[1][i], board[2][i]));\r\n }\r\n\r\n // vertical strikes\r\n for(int j = 0; j < 3; ++j) {\r\n comboList.add(new Combination(board[j][0], board[j][1], board[j][2]));\r\n }\r\n\r\n // diagonal strikes\r\n comboList.add(new Combination(board[0][0], board[1][1], board[2][2]));\r\n comboList.add(new Combination(board[2][0], board[1][1], board[0][2]));\r\n\r\n return root;\r\n }", "@Override\n public Shape getShape() {\n myPencil.moveTo(getStartPoint().getX(), getStartPoint().getY());\n myPencil.lineTo(getEndPoint().getX(), getEndPoint().getY());\n setStartPoint(getEndPoint());\n \n return myPencil;\n }", "Optional<Sketch> component(int i);", "public static SelectiveSearchSegmentation createSelectiveSearchSegmentation()\r\n {\r\n \r\n SelectiveSearchSegmentation retVal = SelectiveSearchSegmentation.__fromPtr__(createSelectiveSearchSegmentation_0());\r\n \r\n return retVal;\r\n }", "public PlotDrawer() {\n\n\t}", "public WorldScene makeScene() {\n // WorldCanvas c = new WorldCanvas(300, 300);\n WorldScene s = new WorldScene(this.width, this.height);\n s.placeImageXY(newImg, this.width / 2, this.height / 2);\n return s;\n }", "public FacePamphletCanvas() {\n\t}", "@Override\n public Piece copy() {\n return new Knight(this.getSide(), this.getCoordinate());\n }", "public Graph() {\n\t\tthis(new PApplet());\n\t}", "public LaserCanvas()\r\n\t{\r\n\t\tsuper();\r\n\t\t\r\n\t\tgame = new LaserTutor();\r\n\t\t\r\n\t\tgame.initialize( );\r\n\t}", "public HwDiagramFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public static SelectiveSearchSegmentationStrategyFill createSelectiveSearchSegmentationStrategyFill()\r\n {\r\n \r\n SelectiveSearchSegmentationStrategyFill retVal = SelectiveSearchSegmentationStrategyFill.__fromPtr__(createSelectiveSearchSegmentationStrategyFill_0());\r\n \r\n return retVal;\r\n }", "Shape1(){\n\t\tSystem.out.println(\"Shape is constructed\");\n\t}", "public Pencil(double x, double y, double width, double height)\n {\n\n\t//outline of the pencil\n GeneralPath body = new GeneralPath();\n\t\n body.moveTo(200,400);\n body.lineTo(150,350);\n\tbody.lineTo(200,300);\n\tbody.lineTo(600,300);\n\tbody.lineTo(600,400);\n\tbody.lineTo(200,400);\n\tbody.closePath();\n\n\t//vertical line that outlines the lead tip of the pencil\n\tGeneralPath leadLine = new GeneralPath();\n\n\tleadLine.moveTo(162, 362);\n\tleadLine.lineTo(162, 338);\n\n\t//vertical line that separates the tip of the pencil from the rest of the body\n\tGeneralPath tipLine = new GeneralPath();\n\ttipLine.moveTo(200, 400);\n\ttipLine.lineTo(200, 300);\n\t\n\t//vertical line that outlines the eraser\n\tShape eraser = ShapeTransforms.translatedCopyOf(tipLine, 350, 0.0);\n \n // now we put the whole thing together ino a single path.\n GeneralPath wholePencil = new GeneralPath ();\n wholePencil.append(body, false);\n\twholePencil.append(leadLine, false);\n wholePencil.append(tipLine, false);\n\twholePencil.append(eraser, false);\n \n // translate to the origin by subtracting the original upper left x and y\n // then translate to (x,y) by adding x and y\n \n Shape s = ShapeTransforms.translatedCopyOf(wholePencil, -ORIG_ULX + x, -ORIG_ULY + y);\n \n\t// scale to correct height and width\n s = ShapeTransforms.scaledCopyOf(s,\n\t\t\t\t\t width/ORIG_WIDTH,\n\t\t\t\t\t height/ORIG_HEIGHT) ;\n\t \n\t// Use the GeneralPath constructor that takes a shape and returns\n\t// it as a general path to set our instance variable cup\n \n\tthis.set(new GeneralPath(s));\n \n }", "public Mouse() {}", "public Shape(){\n\t\t//System.out.println(\"This is abstract class Shape\");\n\t}", "public Painter<?> getPainter() {\n\t\tint width = 100;\n\t\tint height = 100;\n\t\tColor color1 = Colors.White.color(0.5f);\n\t\tColor color2 = Colors.Gray.color(0.5f);\n\n\t\tLinearGradientPaint gradientPaint = new LinearGradientPaint(0.0f, 0.0f,\n\t\t\t\twidth, height, new float[] { 0.0f, 1.0f }, new Color[] {\n\t\t\t\t\t\tcolor1, color2 });\n\t\tMattePainter mattePainter = new MattePainter(gradientPaint);\n\t\treturn mattePainter;\n\t}", "public GUI_KitStand(int x, int y) {\r\n \t\tstands = new GUI_Stand[3];\r\n \t\tcamera = new GUI_InspectionCamera(x, y);\r\n \r\n \t\tfor (int i = 0; i < 3; i++)\r\n \t\t\tstands[i] = new GUI_Stand(x, i*150 + y);\r\n \t\t\r\n \t\tmyDrawing = new Drawing(x, y, \"NOPIC\");\r\n \t}", "Simple createSimple();", "public Sierpinski() {\n super(\"Sierpinski gasket\");\n \n this.resize(area_size, area_size);\n }", "public abstract Shape create(Point2D press, Point2D release);", "public Sandwich getSandwich(){\n return new Sandwich();\n }", "@DISPID(1610940422) //= 0x60050006. The runtime will prefer the VTID if present\n @VTID(28)\n Factory shapeFactory();", "public Shapes draw ( );", "@SuppressLint(\"NewApi\")\n private void init() {\n mPaint = new Paint(Paint.ANTI_ALIAS_FLAG);\n mPaint.setPathEffect(new CornerPathEffect(mPolygonShapeSpec.getCornerRadius()));\n mBorderPaint = new Paint(Paint.ANTI_ALIAS_FLAG);\n mBorderPaint.setStyle(Paint.Style.STROKE);\n mBorderPaint.setPathEffect(new CornerPathEffect(mPolygonShapeSpec.getCornerRadius()));\n\n if(mPolygonShapeSpec.hasBorder()) {\n mBorderPaint.setColor(mPolygonShapeSpec.getBorderColor());\n mBorderPaint.setStrokeWidth(mPolygonShapeSpec.getBorderWidth());\n }\n\n if (mPolygonShapeSpec.hasShadow()) {\n //Shadow on border even if isBordered is false. Better effect and performance that\n //using shadow on main paint\n mBorderPaint.setShadowLayer(mPolygonShapeSpec.getShadowRadius(), mPolygonShapeSpec.getShadowXOffset(),\n mPolygonShapeSpec.getShadowYOffset(), mPolygonShapeSpec.getShadowColor());\n }\n\n //Avoid known shadow problems\n if (Build.VERSION.SDK_INT > 13)\n setLayerType(LAYER_TYPE_SOFTWARE, null);\n\n mPolygonShape = new RegularPolygonShape();\n }", "public QuickHull() {\n allPoints =new ArrayList<>();\n convexHull = new ArrayList<>();\n }", "private Shape createPath(final Geometry geom) {\n return new LiteShape(geom, true, maxDistance);\n }", "protected IFigure createNodeShape() {\r\n\t\treturn primaryShape = new ConnectorFigure();\r\n\t}", "public static TransformDesign valueOf(DrawingDesign design) {\n // Make sure all are selected.\n design.setLinesAndVerticesSelected(true);\n \n // Create the TransformDesign from the DrawingDesign and de-attach all of its layers, lines, etc..\n TransformDesign tDesign = design.getSelectedItems();\n \n // Finished, now select to false and show the design again.\n design.setLinesAndVerticesSelected(false);\n design.setLinesAndVerticesVisible(true);\n \n \n return tDesign;\n }", "public static void main(String arg[]) {\n Shape s ;\n s= new Shape() ;\n s.draw();\n s= new Rectange();\n s.draw();\n}", "private StickFactory() {\n\t}", "public Shape getShape() \n {\n return new EllipseShape(new Extent(3,3), Color.RED,true);\n }", "private Canvas createCanvas(IFramework framework, MouseListener listener) {\r\n\tCanvas canvas = new Canvas(framework);\r\n\tcanvas.setBackground(Color.white);\r\n\tcanvas.addMouseListener(listener);\r\n\treturn canvas;\r\n }", "public SkinnedMeshCanvas(Display d) \r\n {\r\n super(true); // call base class constructor\r\n mDisplay = d; // store display object\r\n }", "public S create() {\n\t\tS style = createDefault();\n\t\tint id = nextID();\n\t\tstyle.setId(id);\n\t\taddStyle(style);\n\t\treturn style;\n\t}", "private void initPaint() {\n paint = new Paint();\n paint.setAntiAlias(true);\n Bitmap bitmap = Bitmap.createBitmap(starSize, starSize, Bitmap.Config.ARGB_8888);\n Canvas canvas = new Canvas(bitmap);\n lightDrawable.setBounds(0,0,starSize,starSize);\n lightDrawable.draw(canvas);\n paint.setShader(new BitmapShader(bitmap, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP));\n }", "public void create()\n/* 342: */ {\n/* 343:422 */ setupPlainVariables_xjal();\n/* 344: */ \n/* 345:424 */ this.presentation = new ShapeTopLevelPresentationGroup(this, true, 0.0D, 0.0D, 0.0D, 0.0D, new Object[0]);\n/* 346:425 */ this.icon = new ShapeGroup(this, true, 0.0D, 0.0D, 0.0D, new Object[0]);\n/* 347: */ \n/* 348: */ \n/* 349:428 */ assignInitialConditions_xjal();\n/* 350:429 */ onCreate();\n/* 351: */ }", "public PencilDrawing() //default constructor\n {\n \n super(\"Pencil Draw\");\n \n Toolkit tk = Toolkit.getDefaultToolkit(); //so that the frame fills the screen\n Dimension dim = tk.getScreenSize();\n setBounds(0,0, dim.width, dim.height);\n points = new PointData();\n \n //place buttons\n buttonPanel = new JPanel();\n eraseButton = new JButton(\"Erase\");\n colorButton = new JButton(\"Color\");\n exitButton = new JButton(\"Exit\");\n buttonPanel.add(eraseButton);\n buttonPanel.add(colorButton);\n buttonPanel.add(exitButton);\n add(buttonPanel, BorderLayout.SOUTH);\n \n //place the drawing panel in the frame\n paper = new JPanel();\n add(paper);\n \n //register the mouse listners\n addMouseListener(new MouseButtonListener());\n addMouseMotionListener(new MoveMouseListener());\n \n //register the button listener\n eraseButton.addActionListener(new ButtonListener());\n colorButton.addActionListener(new ButtonListener());\n exitButton.addActionListener(new ButtonListener());\n setResizable(false);\n setVisible(true);\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n }", "public GraphicsFactory() {\n\t\tsuper();\n\t}", "public Drawing (PApplet parent) {\n\t\tthis.parent = parent;\n\t}", "private void createShape() {\n if (shape == null) {\n float firstItemMargin = noxConfig.getNoxItemMargin();\n float firstItemSize = noxConfig.getNoxItemSize();\n int viewHeight = getMeasuredHeight();\n int viewWidth = getMeasuredWidth();\n int numberOfElements = noxItemCatalog.size();\n ShapeConfig shapeConfig =\n new ShapeConfig(numberOfElements, viewWidth, viewHeight, firstItemSize, firstItemMargin);\n shape = ShapeFactory.getShapeByKey(defaultShapeKey, shapeConfig);\n } else {\n shape.setNumberOfElements(noxItemCatalog.size());\n }\n shape.calculate();\n }", "PiviDiagram createPiviDiagram();", "private void createDrawingView() {\r\n mDrawingView = new DrawingView(mContext);\r\n LinearLayout mDrawingPad = (LinearLayout) findViewById(R.id.drawing_pad);\r\n mDrawingPad.addView(mDrawingView);\r\n }", "public WorldScene makeScene() {\n WorldScene ws = new WorldScene(ForbiddenIslandWorld.ISLAND_SIZE,\n ForbiddenIslandWorld.ISLAND_SIZE);\n for (Cell c : this.board) {\n ws.placeImageXY(c.drawCell(waterHeight), c.x * 10, c.y * 10);\n }\n for (Target t : this.helicopterpieces) {\n ws.placeImageXY(t.drawPiece(), t.x * 10, t.y * 10);\n }\n ws.placeImageXY(this.player.drawPerson(), player.x * 10, player.y * 10);\n ws.placeImageXY(this.player2.drawPerson2(), player2.x * 10, player2.y * 10);\n return ws;\n }", "public static ItemStack getSteveSkull () {\n \n return new ItemStack(Items.SKULL, 1, 3);\n }", "public ObjectifyFactory factory() {\n return ofy().factory();\n }", "OBJECT createOBJECT();", "public CwmDimensionedObject createCwmDimensionedObject();", "public static ScribbleFactory init()\n {\n\t\ttry {\n\t\t\tScribbleFactory theScribbleFactory = (ScribbleFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://www.scribble.org/Scribble\"); \n\t\t\tif (theScribbleFactory != null) {\n\t\t\t\treturn theScribbleFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ScribbleFactoryImpl();\n\t}", "public IDetectionAlgorithm createInstance();", "public StimuliFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "@DISPID(1610940423) //= 0x60050007. The runtime will prefer the VTID if present\n @VTID(29)\n Factory hybridShapeFactory();", "public Triangle() {}", "public Shape createShape(int x, int y) {\n\t\t\n\t\tColor colorMode = this.view.getColorPanel().getColor();\n\t\tint thickness = this.view.getToolPanel().getThickness();\n\t\tBoolean isFill = this.view.getToolPanel().getIsFilled();\n\t\t\n\t\tPolyline poly = new Polyline(colorMode,thickness,isFill);\n\t\t\n\t\tpoly.addPoint(new Point(x,y));\n\n\t\treturn poly;\n\t}", "public Graphics create()\r\n\t{\r\n\t\t// System.out.println(\"create\");\r\n\t\treturn null;\r\n\t}" ]
[ "0.6141494", "0.58406717", "0.5641401", "0.5541839", "0.5512653", "0.5431966", "0.5375829", "0.5373856", "0.53472656", "0.53081965", "0.5240113", "0.521576", "0.51168823", "0.51033276", "0.5084883", "0.5083571", "0.5073515", "0.5042838", "0.5032566", "0.5031387", "0.5017432", "0.5007055", "0.49983406", "0.4992683", "0.4973005", "0.4958004", "0.49507928", "0.49457112", "0.493905", "0.49205562", "0.49109203", "0.49050876", "0.49033898", "0.48968717", "0.48937657", "0.48849708", "0.48435935", "0.48307645", "0.48292553", "0.48288837", "0.48262632", "0.48219362", "0.4818078", "0.48176464", "0.4815585", "0.48013988", "0.4800666", "0.4762637", "0.47617495", "0.47562152", "0.47557068", "0.47555426", "0.4748943", "0.4734453", "0.47299504", "0.47223136", "0.47110596", "0.47102475", "0.47073883", "0.47036198", "0.4702066", "0.46961302", "0.46797267", "0.46705824", "0.46694824", "0.4667266", "0.46620643", "0.4658122", "0.46526834", "0.46493962", "0.46355444", "0.4630731", "0.46259895", "0.46219188", "0.46121722", "0.46106544", "0.4601494", "0.46006745", "0.4599532", "0.45922816", "0.458084", "0.45732734", "0.45660064", "0.45647708", "0.45567203", "0.4555296", "0.45550314", "0.4554099", "0.45508832", "0.4550861", "0.45483303", "0.45438558", "0.45388818", "0.45346966", "0.45329502", "0.45301646", "0.4528458", "0.45272908", "0.45271227", "0.45221245" ]
0.8590619
0
Returns a new object of class 'Block'.
Block createBlock();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Block create(int xpos, int ypos);", "public Block() {\n this((byte) 0, (byte) 0);\n }", "RclBlock createRclBlock();", "private void createBlock() {\n\t\tblock = new Block(mouseX, mouseY, 25, 25);\r\n\t\tblock.addObserver(this);\r\n\t\tblock.start();\r\n\t\t// System.out.println(\"Block created (at Model.createBlock)\");\r\n\t}", "public ItemBlock createItemBlock() {\n\t\treturn new GenericItemBlock(this);\n\t}", "public Block(){\n\t\tthis.type = Code.Type.NULL;\n\t}", "public Block() {\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tthis.point_BlockTopRight = null;\r\n\t\tthis.point_BlockDownleft = null;\r\n\t\tthis.setpoint_BlockTopLeft(null);\r\n\t\tthis.IDBloack = 0;\r\n\t\tthis.type = \"\";\r\n\t}", "public Block( ) {\r\n _offSetRow = 0;\r\n _offSetCol = 0;\r\n _noOfRows = 0;\r\n _noOfCols = 0;\r\n }", "public Block() {\n this.xPos = 0;\n this.yPos = 0;\n this.width = 0;\n this.height = 0;\n this.color = Color.MINTCREAM;\n }", "public Block()\n {\n this.blockType = BlockType.AIR;\n }", "@Deprecated public Block getBlock(){\n return this.block!=null?this.block.build():null;\n }", "BAnyBlock createBAnyBlock();", "public Block(Block bl) {\r\n\t\tthis.type = bl.type;\r\n\t\tthis.point_BlockTopRight = new Point3D(bl.point_BlockTopRight);\r\n\t\tthis.point_BlockDownleft = new Point3D(bl.point_BlockDownleft);\r\n\t\tthis.setpoint_BlockTopLeft(new Point3D(bl.getpoint_BlockTopRight().y(),bl.getpoint_BlockDownleft().x()));\r\n\t\tthis.setPoint_BlockDownRight(new Point3D(bl.getpoint_BlockDownleft().y(),bl.getpoint_BlockTopRight().x()));\r\n\t\tthis.IDBloack = bl.IDBloack;\r\n\r\n\t}", "BlockFor createBlockFor();", "public Block getBlock()\n {\n return block;\n }", "protected Block getBlock() {\r\n return this.block;\r\n }", "public BlockIF newBlock(String label, SourceIF text) {\n\t\tif (text == null)\n\t\t\tthrow new NullPointerException(\"The argument text cannot be null\");\n\t\treturn new Block(label, text);\n\t}", "public Block(){\n\t\tinstns = new ArrayList<Instruction>();\n\t}", "BranchingBlock createBranchingBlock();", "TestBlock createTestBlock();", "StatementBlock createStatementBlock();", "public Block getObj()\n\t{\n\t\treturn block;\n\t}", "Block getBlock(String congName, String blockName, String blockNumber);", "public Block( Block block ) {\r\n _offSetRow = block._offSetRow;\r\n _offSetCol = block._offSetCol;\r\n _noOfRows = block._offSetRow;\r\n _noOfCols = block._noOfCols;\r\n }", "DefineBlock createDefineBlock();", "public Block getBlock() {\n return (Block)getChild(0);\n }", "BlockConstant createBlockConstant();", "@ASTNodeAnnotation.Child(name=\"Block\")\n public Block getBlock() {\n return (Block) getChild(0);\n }", "@NotNull\r\n Block getBlock(int x, int y, int z);", "public Block getBlock()\n\t{\n\t\treturn this.block;\n\t}", "public Block createBlock(Position pos, List<Stmt> stmts) {\n return xnf.Block(pos, stmts);\n }", "public JsonObject raw_block() {\n \tJsonObject block = new JsonObject();\n \tblock.addProperty(\"BlockID\", blockId);\n \tif(!BlockChain.isEmpty())\n \t block.addProperty(\"PrevHash\", Hash.getHashString(getLongestBranch().last_block.toString()));\n \telse {\n \t\tblock.addProperty(\"PrevHash\", \"0000000000000000000000000000000000000000000000000000000000000000\");\n \t}\n \tblock.addProperty(\"Nonce\", \"00000000\");\n block.addProperty(\"MinerID\", \"Server\"+String.format(\"%02d\", minerId));\n \n \tJsonArray newTxPool = new JsonArray();\n \tJsonArray transactions = new JsonArray();\n \tint N = TxPool_new.size();\n \tint i;\n \tfor (i=0; i<N && i<50; i++) {\n \t\ttransactions.add(TxPool_new.get(i));\n \t\t//TxPool_used.add(TxPool_new.get(i));\n \t}\n \tfor (; i<N; i++)\n \t\tnewTxPool.add(TxPool_new.get(i));\n \tblock.add(\"Transactions\", transactions);\n\n \treturn block;\n }", "public Block(){\r\n\t\tthis.altitude = 0;\r\n\t\tthis.river = false;\t\r\n\t\tthis.ocean = false;\r\n\t\tthis.river = false;\r\n\t\tborder = false;\r\n\t}", "@Override\n public Block getBlock() {\n Block b = null;\n while (b == null) {\n boolean noMoreBlocks = blocks.isEmpty();\n if (!noMoreBlocks) {\n b = blocks.poll();\n }\n\n if (noMoreBlocks || b == null) {\n synchronized (BlocksPool.class) { // can be easily changed to lock-free\n if (blocks.isEmpty()) {\n alloc(newAllocBlocks);\n }\n }\n }\n }\n return b;\n }", "public TileBlockBase(BlockBehaviour.Properties properties) {\n super(properties);\n }", "public Block getBlock() {\n\t\treturn this.block;\n\t}", "private void setBlock(Block block) {\r\n this.block = block;\r\n }", "Block (int start, int size)\n {\n this.start = start;\n this.size = size;\n }", "public void setBlock(Block newBlock) {\n\t\tthis.block = newBlock;\n\t}", "public Block instance(int paramInt)\r\n/* 194: */ {\r\n/* 195:225 */ return instance().setData(a, bds.b(paramInt)).setData(b, (paramInt & 0x8) > 0 ? bdu.b : bdu.a);\r\n/* 196: */ }", "Block getBlockByNumber(long number);", "BlockStore getBlockStore();", "public static Geometry assembleBlock(Block block, Vector3f location) {\n Geometry g = createLimb(block.collisionShapeType, block.width, block.height, block.length, location, block.mass, block.rotation, block.rotationForYRP);\n block.applyProperties(g);\n return g;\n }", "public Block getBlock(int i) {\n\t\treturn Block.getBlock(id(i));\n\t}", "@Override\n public CssDeclarationBlockNode getBlock() {\n return (CssDeclarationBlockNode) super.getBlock();\n }", "protected static Block createEmptyBlock(AST ast) {\n\t\treturn ast.newBlock();\n\t}", "public List<Block> blocks() {\n this.blocks = createBlocks();\n return this.blocks;\n }", "Block getHiveBlock();", "protected Block(short id) {\n this(id, (byte) 0);\n }", "public Block getBlockNoTransform() {\n return (Block)getChildNoTransform(0);\n }", "@Override\n public List<Block> blocks() {\n int columns = 15, width = 51, height = 30;\n Color darkGreen = new Color(29, 101, 51);\n List<Block> blocks = new ArrayList<>();\n for (int j = 0; j < columns; j++) {\n blocks.add(new Block(new arkanoid.geometry.Rectangle(new Point(20 + width * j, 110 + height),\n width, height), darkGreen));\n }\n return blocks;\n }", "private BlocksPool() {\n this(DEFAULT_BLOCK_SIZE_BYTES);\n }", "ActionBlock createActionBlock();", "DirectionBlock createDirectionBlock();", "BlockAssignmentType createBlockAssignmentType();", "public static Block getInstance(short id) {\n return getInstance(id, (byte) 0);\n }", "public List<Block> blocks() {\r\n List<Block> list = new ArrayList<Block>();\r\n double width = 50;\r\n for (int i = 0; i < 7; ++i) {\r\n Color c = new Color(0, 0, 0);\r\n switch (i) {\r\n case 0:\r\n c = Color.gray;\r\n break;\r\n case 1:\r\n c = Color.red;\r\n break;\r\n case 2:\r\n c = Color.yellow;\r\n break;\r\n case 3:\r\n c = Color.green;\r\n break;\r\n case 4:\r\n c = Color.white;\r\n break;\r\n case 5:\r\n c = Color.pink;\r\n break;\r\n default:\r\n c = Color.cyan;\r\n break;\r\n }\r\n for (int j = 0; j < 15; ++j) {\r\n Block b = new Block(new Rectangle(new Point(\r\n 25 + j * width, 100 + i * 20), width, 20));\r\n if (i == 0) {\r\n b.setHitPoints(2);\r\n } else {\r\n b.setHitPoints(1);\r\n }\r\n list.add(b);\r\n }\r\n }\r\n return list;\r\n }", "public AEADBlockCipher newInstance()\n {\n final BlockCipher blockCipher = new BlockCipherSpec(algorithm).newInstance();\n AEADBlockCipher aeadBlockCipher;\n if (\"GCM\".equals(mode)) {\n aeadBlockCipher = new GCMBlockCipher(blockCipher);\n } else if (\"CCM\".equals(mode)) {\n aeadBlockCipher = new CCMBlockCipher(blockCipher);\n } else if (\"OCB\".equals(mode)) {\n aeadBlockCipher = new OCBBlockCipher(blockCipher, new BlockCipherSpec(algorithm).newInstance());\n } else if (\"EAX\".equals(mode)) {\n aeadBlockCipher = new EAXBlockCipher(blockCipher);\n } else {\n throw new IllegalStateException(\"Unsupported mode \" + mode);\n }\n return aeadBlockCipher;\n }", "public Block(Vector2 position, float width, float height, int type){\n this.position = position;\n this.type = type;\n\n rectangle = new RectF(position.x, position.y, position.x + width, position.y + height);\n\n paint = new Paint();\n paint.setStyle(Paint.Style.FILL);\n }", "private Block getBlockAt(int x, int y, int z) {\n\t\ttry {\n\t\t\tbyte blockId = blockIDArray[x][y][z];\n\t\t\treturn new Block(x, y, z, BlockType.fromID(blockId), this);\n\t\t} catch(IndexOutOfBoundsException e) { return new Block(x, y, z, BlockType.AIR, this); }\n\t}", "public alluxio.proto.journal.File.NewBlockEntry getNewBlock() {\n return newBlock_;\n }", "List<Block> blocks();", "public phaseI.Hdfs.BlockLocations.Builder getNewBlockBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getNewBlockFieldBuilder().getBuilder();\n }", "public BuildingBlock(int setX, int setY, int size, int blockId) {\n\n this.blockId = blockId;\n revertColor = GameGrid.GAMEGRID_COLOR;\n createRectangle(setX, setY , size, revertColor);\n double circleAdjuster = size / 2.0;\n circle = new Circle(setX + circleAdjuster, setY + circleAdjuster, circleAdjuster);\n circle.setFill(revertColor);\n gridList.put(blockId, this);\n explosionSound = new AudioClip(getClass().getResource(\"explosion.wav\").toExternalForm());\n }", "public EntangledChaliceItem(Block block) {\n super(block);\n }", "protected Lock(Block block) {\r\n this(block, null, null, null);\r\n }", "public phaseI.Hdfs.BlockLocations getNewBlock() {\n return newBlock_ == null ? phaseI.Hdfs.BlockLocations.getDefaultInstance() : newBlock_;\n }", "public BlockChain() {\n this.blockChain = new ArrayList<>();\n this.chainHash = \"\";\n }", "public Block(Point upperLeft, double width, double height, Background background) {\r\n this.rectangle = new Rectangle(upperLeft, width, height);\r\n this.background = background;\r\n this.borderColor = null;\r\n this.hitListeners = new ArrayList<>();\r\n }", "public phaseI.Hdfs.BlockLocations getNewBlock() {\n if (newBlockBuilder_ == null) {\n return newBlock_ == null ? phaseI.Hdfs.BlockLocations.getDefaultInstance() : newBlock_;\n } else {\n return newBlockBuilder_.getMessage();\n }\n }", "private InheritableBuildingBlock() {\r\n super(IInheritableBuildingBlock.TYPE_ID);\r\n }", "public Block getBlockNoTransform() {\n return (Block) getChildNoTransform(0);\n }", "void buildBlock(Tile t);", "public Block( int offSetRow, int offSetCol, int noOfRows, int noOfCols ) {\r\n _offSetRow = offSetRow;\r\n _offSetCol = offSetCol;\r\n _noOfRows = noOfRows;\r\n _noOfCols = noOfCols;\r\n }", "public static BlockCipher createBlockCipher() {\n\t\tBlockCipherFactory factory;\n\n\t\tsynchronized (AES.class) {\n\t\t\tlong now = System.currentTimeMillis();\n\n\t\t\tfactory = AES.factory;\n\t\t\tif ((factory != null) && (now > factoryTimestamp + FACTORY_TIMEOUT))\n\t\t\t\tfactory = null;\n\t\t\tif (factory == null) {\n\t\t\t\ttry {\n\t\t\t\t\tfactory = getBlockCipherFactory();\n\t\t\t\t} catch (Throwable t) {\n\t\t\t\t\tif (t instanceof InterruptedException) {\n\t\t\t\t\t\tThread.currentThread().interrupt();\n\t\t\t\t\t} else if (t instanceof ThreadDeath) {\n\t\t\t\t\t\tthrow (ThreadDeath) t;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlogger.warn(\"Failed to initialize an optimized AES\" + \" implementation: \" + t.getLocalizedMessage());\n\t\t\t\t\t}\n\t\t\t\t} finally {\n\t\t\t\t\tif (factory == null) {\n\t\t\t\t\t\tfactory = AES.factory;\n\t\t\t\t\t\tif (factory == null)\n\t\t\t\t\t\t\tfactory = BOUNCYCASTLE_FACTORY;\n\t\t\t\t\t}\n\n\t\t\t\t\tAES.factory = factory;\n\t\t\t\t\tAES.factoryTimestamp = now;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\ttry {\n\t\t\treturn factory.createBlockCipher();\n\t\t} catch (Exception ex) {\n\t\t\tif (ex instanceof RuntimeException)\n\t\t\t\tthrow (RuntimeException) ex;\n\t\t\telse\n\t\t\t\tthrow new RuntimeException(ex);\n\t\t}\n\t}", "public MutableBlock createMutableBlock(String expression) {\r\n return new MutableBlock(passwordType, expression);\r\n }", "protected Block(int id, String hr_ident){\n super(id,hr_ident);\n\n //set some standards\n this.visible = true;\n this.solid = true;\n }", "public Block createBlock(Position pos, Term... terms) {\n return createBlock(pos, convertToStmtList(terms));\n }", "Tetrisblock()\n {\n newblockparam();\n newmapparam();\n setboundary();\n }", "public Builder clearNewBlock() {\n if (newBlockBuilder_ == null) {\n newBlock_ = null;\n onChanged();\n } else {\n newBlockBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00000002);\n return this;\n }", "public RawBlockContainer copy() {\n final RawBlockContainer container = new RawBlockContainer();\n container.setVersion(ArrayUtil.arrayCopy(getVersion()));\n container.setPreviousBlockHash(ArrayUtil.arrayCopy(getPreviousBlockHash()));\n container.setMerkleRoot(ArrayUtil.arrayCopy(getMerkleRoot()));\n container.setTimestamp(ArrayUtil.arrayCopy(getTimestamp()));\n container.setBits(ArrayUtil.arrayCopy(getBits()));\n container.setNonce(ArrayUtil.arrayCopy(getNonce()));\n return container;\n }", "public MutableBlock createMutableBlock(ExpressionBuilder expression) {\r\n return new MutableBlock(passwordType, expression.toString());\r\n }", "public HTMLBlock parse () throws HTMLParseException {\r\n block = new HTMLBlock (pagepart, length);\r\n nextToken = START;\r\n match (START);\r\n page ();\r\n\r\n return block;\r\n }", "public static BlockExpression block(Class clazz, Expression[] expressions) { throw Extensions.todo(); }", "public BuildingBlock(int blockId, Color color) {\n Image bbGreenImage = new Image(getClass().getResourceAsStream(VisibleObjects.MAKE_LONGER_BONUS.getImage()));\n bbGreen = new ImagePattern(bbGreenImage);\n VisibleObjects.MAKE_LONGER_BONUS.setBlockImage(bbGreen);\n Image bbYellowImage = new Image(getClass().getResourceAsStream(VisibleObjects.MAKE_FASTER_BONUS.getImage()));\n bbYellow = new ImagePattern(bbYellowImage);\n VisibleObjects.MAKE_FASTER_BONUS.setBlockImage(bbYellow);\n Image bbRedImage = new Image(getClass().getResourceAsStream(VisibleObjects.SHOOT_BONUS.getImage()));\n bbRed = new ImagePattern(bbRedImage);\n VisibleObjects.SHOOT_BONUS.setBlockImage(bbRed);\n Image bbGreyImage = new Image(getClass().getResourceAsStream(VisibleObjects.DEATH.getImage()));\n bbGrey = new ImagePattern(bbGreyImage);\n VisibleObjects.DEATH.setBlockImage(bbGrey);\n Image playerOneImageImage = new Image(getClass().getResourceAsStream(VisibleObjects.PLAYER_ONE.getImage()));\n playerOneImage = new ImagePattern(playerOneImageImage);\n VisibleObjects.PLAYER_ONE.setBlockImage(playerOneImage);\n Image playerTwoImageImage = new Image(getClass().getResourceAsStream(VisibleObjects.PLAYER_TWO.getImage()));\n playerTwoImage = new ImagePattern(playerTwoImageImage);\n VisibleObjects.PLAYER_TWO.setBlockImage(playerTwoImage);\n Image playerThreeImageImage = new Image(getClass().getResourceAsStream(VisibleObjects.PLAYER_THREE.getImage()));\n playerThreeImage = new ImagePattern(playerThreeImageImage);\n VisibleObjects.PLAYER_THREE.setBlockImage(playerThreeImage);\n Image playerFourImageImage = new Image(getClass().getResourceAsStream(VisibleObjects.PLAYER_FOUR.getImage()));\n playerFourImage = new ImagePattern(playerFourImageImage);\n VisibleObjects.PLAYER_FOUR.setBlockImage(playerFourImage);\n Image playerOneImageImageRIP = new Image(getClass().getResourceAsStream(PlayerEnum.PLAYER_ONE.getImage()));\n playerOneImageRIP = new ImagePattern(playerOneImageImageRIP);\n PlayerEnum.PLAYER_ONE.setPlayerDeathImage(playerOneImageRIP);\n Image playerTwoImageImageRIP = new Image(getClass().getResourceAsStream(PlayerEnum.PLAYER_TWO.getImage()));\n playerTwoImageRIP = new ImagePattern(playerTwoImageImageRIP);\n PlayerEnum.PLAYER_TWO.setPlayerDeathImage(playerTwoImageRIP);\n Image playerThreeImageImageRIP = new Image(getClass().getResourceAsStream(PlayerEnum.PLAYER_THREE.getImage()));\n playerThreeImageRIP = new ImagePattern(playerThreeImageImageRIP);\n PlayerEnum.PLAYER_THREE.setPlayerDeathImage(playerThreeImageRIP);\n Image playerFourImageImageRIP = new Image(getClass().getResourceAsStream(PlayerEnum.PLAYER_FOUR.getImage()));\n playerFourImageRIP = new ImagePattern(playerFourImageImageRIP);\n PlayerEnum.PLAYER_FOUR.setPlayerDeathImage(playerFourImageRIP);\n Image deathImage = new Image(getClass().getResourceAsStream(\"rip.png\"));\n deathPattern = new ImagePattern(deathImage);\n Image deathPlayerImage = new Image(getClass().getResourceAsStream(VisibleObjects.DEATH_PLAYER.getImage()));\n deathPlayerPattern = new ImagePattern(deathPlayerImage);\n VisibleObjects.DEATH_PLAYER.setBlockImage(deathPlayerPattern);\n \n Image eplosionImage = new Image(getClass().getResourceAsStream(\"explosion.gif\"));\n explosionView = new ImagePattern(eplosionImage);\n \n explosionSound = new AudioClip(getClass().getResource(\"explosion.wav\").toExternalForm());\n \n explosionSound.play(0);\n \n this.blockId = blockId;\n this.revertColor = color;\n rectangle = new Rectangle();\n rectangle.setFill(color);\n occupant = new Death(VisibleObjects.DEATH);\n gridList.put(blockId, this);\n }", "public alluxio.proto.journal.File.NewBlockEntry getNewBlock() {\n if (newBlockBuilder_ == null) {\n return newBlock_;\n } else {\n return newBlockBuilder_.getMessage();\n }\n }", "public MutableBlock createMutableBlock(TimeParameter timeValue) {\r\n return createMutableBlock(timeValue.getTextField());\r\n }", "private Block parseBlock(Tokenizer in) {\n\t\tBlock block = new Block();\n\t\tToken next = in.next();\n\t\twhile (next.type != Token.TokenType.CLOSE_BRACE) {\n\t\t\tin.pushTokens(next);\n\t\t\tblock.statements.add(parseStmt(in));\n\t\t\tnext = in.next();\n\t\t}\n\t\treturn block;\n\t}", "public Builder setNewBlock(phaseI.Hdfs.BlockLocations value) {\n if (newBlockBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n newBlock_ = value;\n onChanged();\n } else {\n newBlockBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000002;\n return this;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder> \n getNewBlockFieldBuilder() {\n if (newBlockBuilder_ == null) {\n newBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder>(\n getNewBlock(),\n getParentForChildren(),\n isClean());\n newBlock_ = null;\n }\n return newBlockBuilder_;\n }", "public BlockType getType()\n {\n return blockType;\n }", "protected Block(short id, byte data) {\n this.id = id;\n this.data = data;\n }", "public Block( int noOfRows, int noOfCols ) {\r\n _offSetRow = 0;\r\n _offSetCol = 0;\r\n _noOfRows = noOfRows;\r\n _noOfCols = noOfCols;\r\n }", "BlockchainFactory getBlockchainFactory();", "public phaseI.Hdfs.BlockLocationsOrBuilder getNewBlockOrBuilder() {\n if (newBlockBuilder_ != null) {\n return newBlockBuilder_.getMessageOrBuilder();\n } else {\n return newBlock_ == null ?\n phaseI.Hdfs.BlockLocations.getDefaultInstance() : newBlock_;\n }\n }", "public alluxio.proto.journal.File.NewBlockEntryOrBuilder getNewBlockOrBuilder() {\n if (newBlockBuilder_ != null) {\n return newBlockBuilder_.getMessageOrBuilder();\n } else {\n return newBlock_;\n }\n }", "@Override\r\n public List<Block> blocks() {\r\n List<Block> blockList = new ArrayList<Block>();\r\n java.awt.Color[] colors = new Color[5];\r\n colors[0] = Color.decode(\"#c1b8b2\");\r\n colors[1] = Color.decode(\"#ef1607\");\r\n colors[2] = Color.decode(\"#ffff1e\");\r\n colors[3] = Color.decode(\"#211ed8\");\r\n colors[4] = Color.decode(\"#fffff6\");\r\n int y = 150;\r\n int[] hitPoints = {2, 1, 1, 1, 1};\r\n for (int i = 0; i < colors.length; i++) {\r\n for (int j = i + 5; j < 15; j++) {\r\n blockList.add(new Block(j * 50 + 25, y, 50, 20, colors[i], hitPoints[i]));\r\n }\r\n y += 20;\r\n }\r\n return blockList;\r\n }", "public BiomeBlock(Location loc, Biome b) {\n this.world = loc.getWorld();\n this.x = loc.getBlockX();\n this.z = loc.getBlockZ();\n this.biome = b;\n this.wmChunk = new WMChunk(this.world, this.x, this.z, true);\n }", "public static DeformableMesh3D createTestBlock(){\n return createTestBlock(2, 2, 2);\n }", "private void testAutoGenBlock(Class<Block> blockClass) {\n try {\n Block instance = blockClass.newInstance();\n\n instance.train(Matrices.randomMatrix(1, 1, 1234), Matrices.randomMatrix(1, 1, 4321), 2);\n instance.evaluateInput(Matrices.randomMatrix(1, 1, 1234));\n\n // No exception when training.\n assertTrue(true);\n\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }" ]
[ "0.78786117", "0.74444324", "0.7440069", "0.7431922", "0.7427614", "0.7422476", "0.7402394", "0.7227763", "0.72180986", "0.7173089", "0.7170796", "0.7160321", "0.71365076", "0.71118903", "0.7097744", "0.707931", "0.70513916", "0.7035166", "0.7034163", "0.70044476", "0.69287664", "0.6902506", "0.68315357", "0.68174374", "0.67938775", "0.6769585", "0.6759698", "0.6713418", "0.66921085", "0.66747373", "0.66439235", "0.66033536", "0.65885395", "0.6581395", "0.65660244", "0.65530306", "0.6551711", "0.65205437", "0.6477282", "0.64615023", "0.64613897", "0.6426157", "0.64191246", "0.63955224", "0.63884765", "0.6384551", "0.6377812", "0.6366364", "0.63620216", "0.63458717", "0.6345426", "0.6338091", "0.6336828", "0.6327391", "0.6323977", "0.63209915", "0.63203526", "0.6301553", "0.6296884", "0.62880147", "0.6273951", "0.6249424", "0.62451696", "0.62442875", "0.62298334", "0.62114084", "0.620944", "0.6209143", "0.6188218", "0.6175562", "0.61746186", "0.6173633", "0.6172556", "0.6172506", "0.6171145", "0.61559033", "0.61551416", "0.6152002", "0.6144916", "0.61429256", "0.61370194", "0.6131441", "0.6127245", "0.6102578", "0.6088207", "0.60871315", "0.60827893", "0.6081324", "0.607353", "0.60712725", "0.6070987", "0.60681844", "0.60668033", "0.6064032", "0.6057497", "0.6053482", "0.6047361", "0.6036277", "0.6030875", "0.602392" ]
0.87243813
0
Returns a new object of class 'Digital Pin'.
DigitalPin createDigitalPin();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DigitalInputPin createDigitalInputPin();", "Pin createPin();", "AnalogPin createAnalogPin();", "public DigitalInput(int pin) {\n\t\tthis.pin = (byte) pin;\n\t}", "public Pin(int pin) {\r\n if (is4Digit(pin))\r\n this.pin = pin;\r\n }", "static Sbpayment newInstance() {\n return new DefaultSbpayment();\n }", "public void pin();", "public void pin();", "public DigitalInkStructure(){\n\t\tthis.boundingBox = new Rectangle2D.Double();\n\t}", "public String getPIN();", "public NewDigitalMediaObject(Name alias) {\n this(alias, NEW_DIGITAL_MEDIA_OBJECT);\n }", "public NewDigitalMediaObject(String alias) {\n this(DSL.name(alias), NEW_DIGITAL_MEDIA_OBJECT);\n }", "public void setPin(int pin);", "public void setPIN (String PIN);", "public LED(int pin)\n {\n // Pin allocation is handled by a GpioController. So first we have to get that from the Factory.\n GpioController gpio = GpioFactory.getInstance();\n \n // Now we need to ask the Controller to allocate (provision) the pin for us as a Digital Output pin. \n // The parameter PinState.LOW means that initially, we want to set this pin to LOW (off).\n ledPin = gpio.provisionDigitalOutputPin(pinMap[pin], PinState.LOW);\n }", "public PassPinDataItem() {\n }", "public CGestorGPIO( )\n { \n m_log = Logger.getRootLogger();\n m_Gpio = GpioFactory.getInstance();\n }", "public NewDigitalMediaObject() {\n this(DSL.name(\"new_digital_media_object\"), null);\n }", "static Sbpayment newInstance(String filePath) {\n return new DefaultSbpayment(filePath);\n }", "@Override\n public int getPinState(){\n return 0;\n }", "public LED()\n {\n this(defaultPin);\n }", "public PiButton()\n\t{\n\t\tpasswordLogic = new PINLogic();\n\t\tled = new PiLED(21, 22);\n\t\tbuzzer = new PiBuzzer();\n\t}", "private static PDP getPDPNewInstance(){\n\n PDPConfig pdpConfig = balana.getPdpConfig();\n return new PDP(pdpConfig);\n }", "RasPiBoard createRasPiBoard();", "int getPinNumber();", "public String getPIN() {\n return PIN;\n }", "@NonNull\n public Padding build() {\n return new Padding(mImpl.build(), mFingerprint);\n }", "public void setPIN(String PIN) {\n this.PIN = PIN;\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.697 -0500\", hash_original_method = \"311A54F6C4195C76C43F2FC2F7A3A3E0\", hash_generated_method = \"CC6CEBA9DCDFB3B56E2148C7707A4E32\")\n \nprivate Phones() {}", "protected DPP createDPP() {\n\t\tDPP dpp = new DPP();\n\t\tdpp.add(null, OP_CREATE, ST_CREATED);\n\t\t// dpp.add(ST_CREATED, ..., ...);\n\t\treturn dpp;\n\t}", "String getPIN() {\n\t\treturn PIN;\n\t}", "protected Widget attachPinWidget(String node, String pin) {\n if (pin.endsWith(PIN_ID_DEFAULT_SUFFIX)) {\n return null;\n }\n EDMPinWidget widget = new EDMPinWidget(this);\n ((EDMNodeWidget) findWidget(node)).attachPinWidget(widget);\n revalidate();\n widget.getActions().addAction(createObjectHoverAction());\n widget.getActions().addAction(createSelectAction());\n\n return widget;\n }", "private NotePad() {\n }", "@Override\n\tpublic Structure createNew() {\n\t\treturn new FloorSwitch();\n\t}", "public DtoIP4MacPair() {}", "new LED();", "DD createDD();", "private StripesPMI() {}", "public PIInfo() {\n }", "@Override\r\n\tpublic int generatePin(int custId, int accNo) {\r\n\t\treturn 0;\r\n\t}", "public @NotNull Bidder newBidder();", "public DigitalBoard(){\t\t\n\t\tSimStatus = Status.STOPPED;\n\t\tComponentList = new ArrayList<List<iComponent>>();\n\t\tWireList = new ArrayList<Wire>();\t\n\t\tID = \"DB\" + String.valueOf(DigitalBoardCounts++);\n\t}", "public Pdu(){\n\n }", "public String getPin() {\n return this.pin;\n }", "public interface Sbpayment {\n\n /**\n * Create Default sbpayment with sbpayment.properties in resource\n */\n static Sbpayment newInstance() {\n return new DefaultSbpayment();\n }\n\n /**\n * Create Default sbpayment with the file path in resource\n *\n * @param filePath properties file path in resource\n */\n static Sbpayment newInstance(String filePath) {\n return new DefaultSbpayment(filePath);\n }\n\n /**\n * Create Default sbpayment with properties object\n *\n * @param properties The {@link Properties}\n */\n static Sbpayment newInstance(Properties properties) {\n return new DefaultSbpayment(SpsConfig.from(properties));\n }\n\n /**\n * Create Default sbpayment with config object\n *\n * @param config The {@link SpsConfig}\n */\n static Sbpayment newInstance(SpsConfig config) {\n return new DefaultSbpayment(config);\n }\n\n /**\n * SPS Information\n */\n SpsConfig.SpsInfo getSpsInfo();\n\n\n /**\n * Gets made getMapper\n *\n * @return SpsMapper\n */\n SpsMapper getMapper();\n\n /**\n * Gets made getClient\n *\n * @return SpsClient\n */\n SpsClient getClient();\n\n /**\n * Gets made getReceiver\n *\n * @return SpsReceiver\n */\n SpsReceiver getReceiver();\n}", "SerialResponse createRecipient(PinRecipientPost pinRecipientPost);", "protected BaseOracleBean getDatabeanInstance() {\n return new RkPaySumOracleBean();\n }", "public PaymentDetails () {\n\t}", "public Pond(){}", "public void pin() {\n this.pin = new Vec(this.pos);\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.514 -0500\", hash_original_method = \"E49204FD271E895B10D86A1AFEA21B04\", hash_generated_method = \"59B3C6A592AE63BEE2BC1CC1723B36DF\")\n \nprivate Settings() {}", "public HwPeripheralFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public PaymentType builder()\n {\n return new PaymentType(this);\n }", "public MbCoordDpto() {\r\n \r\n }", "@Override\n\tpublic AbstractReine createReine() {\n\t\treturn new ReineSN();\n\t}", "@Override\n public String toString() {\n return \"Pin{\" +\n// \"connections=\" + connections +\n \"type=\" + type +\n '}';\n }", "public DozentPublikation(){}", "public BCDToSevenSegDecoder(Pin PinGrid[][], int x, int y) {\n super (x, y, 10, 13 , 3, 1, 4, 11, 7, 7); // x,y,w,h HitBox x,y,w,h,I,O\n IPin[LE] = new InputPin(\"LE\", 1, 2, 2, 0, 0, 0, ComponentPin.PIN_NEGATIVE); // name, x, y, w, h, inv\n IPin[BI] = new InputPin(\"BI\", 1, 4, 2, 0, 0, 0, ComponentPin.PIN_NEGATIVE); // name, x, y, w, h, inv\n IPin[LT] = new InputPin(\"LT\", 1, 6, 2, 0, 0, 0, ComponentPin.PIN_NEGATIVE); // name, x, y, w, h, inv\n IPin[A] = new InputPin(\"A\", 1, 8, 2, 0, 0, 0, ComponentPin.PIN_NORMAL); // name, x, y, w, h, inv\n IPin[B] = new InputPin(\"B\", 1, 9, 2, 0, 0, 0, ComponentPin.PIN_NORMAL); // name, x, y, w, h, inv\n IPin[C] = new InputPin(\"C\", 1, 10, 2, 0, 0, 0, ComponentPin.PIN_NORMAL); // name, x, y, w, h, inv\n IPin[D] = new InputPin(\"D\", 1, 11, 2, 0, 0, 0, ComponentPin.PIN_NORMAL); // name, x, y, w, h, inv\n\n OPin[a] = new OutputPin(\"a\", 9, 3, -2, 0, 0, 0, ComponentPin.PIN_NORMAL); // name, x, y, w, h, inv\n OPin[b] = new OutputPin(\"b\", 9, 4, -2, 0, 0, 0, ComponentPin.PIN_NORMAL); // name, x, y, w, h, inv\n OPin[c] = new OutputPin(\"c\", 9, 5, -2, 0, 0, 0, ComponentPin.PIN_NORMAL); // name, x, y, w, h, inv\n OPin[d] = new OutputPin(\"d\", 9, 6, -2, 0, 0, 0, ComponentPin.PIN_NORMAL); // name, x, y, w, h, inv\n OPin[e] = new OutputPin(\"e\", 9, 7, -2, 0, 0, 0, ComponentPin.PIN_NORMAL); // name, x, y, w, h, inv\n OPin[f] = new OutputPin(\"f\", 9, 8, -2, 0, 0, 0, ComponentPin.PIN_NORMAL); // name, x, y, w, h, inv\n OPin[g] = new OutputPin(\"g\", 9, 9, -2, 0, 0, 0, ComponentPin.PIN_NORMAL); // name, x, y, w, h, inv\n\n ComponentName = \"BCD to 7-segment decoder\";\n ClassName = \"BCDToSevenSegDecoder\";\n RegisterPins (PinGrid, x, y);\n }", "public Domicilio() {\n }", "public PaymentCard() {\n\t}", "public PIDElevator() {\n \tsuper(\"PIDElevator\", Kp, Ki, Kd);\n \tenco = new Encoder(RobotMap.ENCODER_A_CHANNEL, RobotMap.ENCODER_B_CHANNEL, true);\n enco.reset();\n \n //outputOne = new DigitalOutput(RobotMap.ARDUINO_PIN_ONE);\n //outputTwo = new DigitalOutput(RobotMap.ARDUINO_PIN_TWO);\n //outputThree = new DigitalOutput(RobotMap.ARDUINO_PIN_THREE);\n\n \t\n \tsetAbsoluteTolerance(10);\n \tgetPIDController().setContinuous(false);\n // Use these to get going:\n // setSetpoint() - Sets where the PID controller should move the system\n // to\n // enable() - Enables the PID controller.\n \televMotor = new CANTalon(RobotMap.ELEV_TALON);\n \t\n //button = new DigitalInput(0); \n \tbottom_hallEffect = new DigitalInput(RobotMap.HALL_EFFECT_PORT);\n \ttop_limitSwitch = new DigitalInput(RobotMap.TOP_LIMIT_SWITCH);\n \t\n \t//wire = new I2C(Port.kOnboard, 4);\n \t\n \tBrakeEngaged = new Solenoid(1, RobotMap.BRAKE_IN);\n \tBrakeDisengaged = new Solenoid(1, RobotMap.BRAKE_OUT);\n \tenable();\n }", "public PinsFragment() {}", "P createP();", "public String getPin() {\n\t\treturn pin;\n\t}", "public static SPSConfig createSPSConfig() {\n return new SPSConfig();\n }", "protected Brain DNAtoBrain() {\n\t\treturn new Brain(this, this.ID, genes.values(), nodes,\n\t\t\t\tpopulation.sigmoidCoefficient);\n\t}", "private DigitalNetBase2 initNetVar (boolean shiftFlag) {\n DigitalNetBase2 net = new DigitalNetBase2 ();\n if (shiftFlag)\n net.dim = dim + 1;\n else\n net.dim = dim;\n net.numPoints = numPoints;\n net.numCols = numCols;\n net.numRows = numRows;\n net.outDigits = outDigits;\n net.normFactor = normFactor;\n net.factor = new double[outDigits];\n net.genMat = new int[net.dim * numCols];\n net.shiftStream = shiftStream;\n net.capacityShift = capacityShift;\n net.dimShift = dimShift;\n net.digitalShift = copyDigitalShift (digitalShift);\n if (shiftFlag && shiftStream != null) {\n net.addRandomShift (dimShift, dimShift + 1, shiftStream);\n }\n return net;\n }", "public IndirectionsmeasuringpointFactoryImpl() {\n super();\n }", "public GPS newInstace(@Nullable Bundle bundle){\n return new GPS();\n }", "public Pub build() {\n return new Pub(keyId, algo, keyLen, creationDate, expirationDate, flags);\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:41.996 -0500\", hash_original_method = \"CB9D9CAF93B6F7C6AC078700B30D5B3A\", hash_generated_method = \"6EEF3712392D06942F0E7086316BBAB4\")\n \n private void nativeConstructor(){\n }", "public CustomPdp() throws Exception {\r\n\r\n }", "Viewpoint createViewpoint();", "public void setPin(java.lang.String pin) {\r\n this.pin = pin;\r\n }", "@Override\n public Pin createPin(String username, String boardname, String link, String description, String ImageUrl) throws BoardNotFoundException {\n Board board = boardDataGateway.getBoard(username, boardname);\n Pin pin = new Pin(link, description, ImageUrl);\n board.addPin(pin);\n pin.setBoard(board);\n pinDataMapper.add(pin);\n return pin;\n }", "Instance createInstance();", "private void convert(int pinNum) {\n\t\tgpio = GpioFactory.getInstance();\n\t\tif (pins[pinNum] == null) {\n\t\t\tswitch (pinNum) {\n\t\t\t// Pins for pi1\n\t\t\tcase 0:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_00, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_01, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_02, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_03, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_04, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_05, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_06, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_07, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_08, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_09, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_10, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_11, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_12, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_13, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_14, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_15, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_16, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\n\t\t\t// Pins for pi2, will not through exeption for pi1\n\t\t\tcase 17:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_17, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_18, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_19, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 20:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_20, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 21:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_21, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 22:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_22, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 23:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_23, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 24:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_24, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 25:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_25, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 26:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_26, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 27:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_27, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 28:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_28, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\t\t\tcase 29:\n\t\t\t\tpins[pinNum] = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_29, \"MyPin\", PinState.LOW);\n\t\t\t\tpins[pinNum].setShutdownOptions(true, PinState.LOW);\n\t\t\t\tbreak;\n\n\t\t\t// Null if pin dosent exist\n\t\t\tdefault:\n\t\t\t\tpins[pinNum] = null;\n\t\t\t}\n\t\t}\n\t}", "public InternalInformationPortController() {\r\n\t\t\r\n\t}", "Port createPort();", "Port createPort();", "ParameterStructInstance createParameterStructInstance();", "public PaymentmethodRecord() {\n super(Paymentmethod.PAYMENTMETHOD);\n }", "public java.lang.String getPin() {\r\n return pin;\r\n }", "public ecDSAnone() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.ecDSAnone.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.ecDSAnone.<init>():void\");\n }", "@Nonnull\n public static UBL23WriterBuilder <DigitalCapabilityType> digitalCapability ()\n {\n return UBL23WriterBuilder.create (DigitalCapabilityType.class);\n }", "void enableDigital();", "public dc_wallet() {}", "public abstract boolean sjekkPIN(int pin);", "POperand createPOperand();", "public NavalPort createNavalPort(final String callsign) {\n final NavalPortMslContext ctx = new NavalPortMslContext(callsign, ships, ports, officers);\n try {\n return new NavalPort(ctx, console);\n } catch (final MslCryptoException e) {\n throw new MslInternalException(\"Unable to retrieve entity authentication data identity.\", e);\n }\n }", "public static NumberAmount create(){\n NumberAmount NA = new NumberAmount(new AdvancedOperations(Digit.Zero()));\n return NA;\n }", "public BrickControlPi() {\r\n\t}", "public static PacketSource makeDummy() {\n\treturn new DummySource();\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.809 -0500\", hash_original_method = \"AC0A5CAC5D79A50D0A1A1A7D60109A25\", hash_generated_method = \"DDCD510819A32FF7BD9558A5CE176D29\")\n \nprivate ContactMethods() {}", "public ToolBridge createDirectBridge(ITool tool){\n\t\tDirectIOHandler toolBridgeIOHandler = new DirectIOHandler();\n\t\tDirectIOHandler busIOHandler = new DirectIOHandler();\n\t\t\n\t\ttoolBridgeIOHandler.setIOHandler(busIOHandler);\n\t\tbusIOHandler.setIOHandler(toolBridgeIOHandler);\n\n\t\tToolBridge toolBridge = new ToolBridge(tool);\n\t\ttoolBridge.setIOHandler(toolBridgeIOHandler);\n\t\ttoolBridgeIOHandler.setDataHandler(toolBridge);\n\t\t\n\t\tToolInstance toolInstance = new ToolInstance(busIOHandler);\n\t\tbusIOHandler.setDataHandler(toolInstance);\n\n\t\treturn toolBridge;\n\t}", "public PaymentMethod()\n {\n }", "private MApi() {}", "Point createPoint();", "public IDnaStrand getInstance(String source);", "PiviDiagram createPiviDiagram();" ]
[ "0.8044985", "0.7668104", "0.6828266", "0.63786054", "0.6325404", "0.5957316", "0.5795742", "0.5795742", "0.5676772", "0.5652471", "0.5625835", "0.5623824", "0.56086785", "0.5596392", "0.5596242", "0.55093086", "0.5491281", "0.5446135", "0.5444796", "0.5444576", "0.5414404", "0.54103875", "0.5354909", "0.5341207", "0.5295891", "0.5285577", "0.5269973", "0.5247587", "0.5233808", "0.52103317", "0.5183314", "0.5174907", "0.5143985", "0.5133055", "0.51255304", "0.51210636", "0.51198035", "0.5116285", "0.5110056", "0.50877976", "0.5087511", "0.5075242", "0.50710607", "0.5070868", "0.5067575", "0.5062988", "0.50551933", "0.50540376", "0.504749", "0.50445294", "0.50272214", "0.5013346", "0.49981636", "0.49913847", "0.49843338", "0.49549517", "0.49385884", "0.49377015", "0.49373186", "0.4932174", "0.49285367", "0.4925851", "0.49177676", "0.49123707", "0.4903873", "0.48919886", "0.48829478", "0.48821804", "0.48789746", "0.48776737", "0.48719114", "0.48703942", "0.486858", "0.48627913", "0.48603436", "0.48592654", "0.4856639", "0.48539835", "0.4835389", "0.4835389", "0.4831345", "0.48267508", "0.48227447", "0.482194", "0.4817638", "0.48157552", "0.4810494", "0.48101553", "0.4803071", "0.48001263", "0.47964257", "0.47962034", "0.478906", "0.4786051", "0.47814816", "0.47695044", "0.47685835", "0.47653082", "0.47642496", "0.47636575" ]
0.83340794
0
Returns a new object of class 'Pin'.
Pin createPin();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DigitalPin createDigitalPin();", "public Pin(int pin) {\r\n if (is4Digit(pin))\r\n this.pin = pin;\r\n }", "DigitalInputPin createDigitalInputPin();", "public void setPin(int pin);", "public void pin();", "public void pin();", "@Override\n public String toString() {\n return \"Pin{\" +\n// \"connections=\" + connections +\n \"type=\" + type +\n '}';\n }", "AnalogPin createAnalogPin();", "@Override\n\t\tpublic photo createFromParcel(Parcel in) {\n\t\t\t return new photo(in);\n\t\t}", "public String getPin() {\n return this.pin;\n }", "public PinsFragment() {}", "public PinEditFragment() {}", "public PinboardMaker()\r\n {\r\n pictures = new ArrayList<String>();\r\n pinboardObject = new Pinboard();\r\n }", "@Override\n public Pin createPin(String username, String boardname, String link, String description, String ImageUrl) throws BoardNotFoundException {\n Board board = boardDataGateway.getBoard(username, boardname);\n Pin pin = new Pin(link, description, ImageUrl);\n board.addPin(pin);\n pin.setBoard(board);\n pinDataMapper.add(pin);\n return pin;\n }", "@Override\n\t\tpublic Info createFromParcel(Parcel source) {\n\t\t\treturn new Info(source);\n\t\t}", "public void pin() {\n this.pin = new Vec(this.pos);\n }", "@Override\n public int getPinState(){\n return 0;\n }", "public String getPin() {\n\t\treturn pin;\n\t}", "@Override\n\tpublic Structure createNew() {\n\t\treturn new FloorSwitch();\n\t}", "Instance createInstance();", "@Override\n\tpublic Location newInstance() {\n\t\treturn new Location(this.X,this.Y,0);\n\t}", "public PassPinDataItem() {\n }", "protected Widget attachPinWidget(String node, String pin) {\n if (pin.endsWith(PIN_ID_DEFAULT_SUFFIX)) {\n return null;\n }\n EDMPinWidget widget = new EDMPinWidget(this);\n ((EDMNodeWidget) findWidget(node)).attachPinWidget(widget);\n revalidate();\n widget.getActions().addAction(createObjectHoverAction());\n widget.getActions().addAction(createSelectAction());\n\n return widget;\n }", "@Override\n public Pin rePin(int pinID, int boardID) {\n return pinDataMapper.getPin(pinID);\n }", "public void setPin(java.lang.String pin) {\r\n this.pin = pin;\r\n }", "public GPS newInstace(@Nullable Bundle bundle){\n return new GPS();\n }", "@Override\n public NoteInfo createFromParcel(Parcel parcel) {\n\n return new NoteInfo(parcel);\n }", "public SocialIdentity create() {\r\n SocialIdentity res = new SocialIdentity();\r\n return res;\r\n }", "RasPiBoard createRasPiBoard();", "public java.lang.String getPin() {\r\n return pin;\r\n }", "Coordinate createCoordinate();", "@Override\n\t\tpublic NewDoc createFromParcel(Parcel source) {\n\t\t\treturn new NewDoc(source);\n\t\t}", "public void setPIN (String PIN);", "public T newInstance();", "Parcelle createParcelle();", "public LED()\n {\n this(defaultPin);\n }", "@Override\n public Stanza createFromParcel(Parcel source) {\n return new Stanza(source);\n }", "public Ping dup (Ping self)\n {\n if (self == null)\n return null;\n\n Ping copy = new Ping ();\n if (self.getIdentity () != null)\n copy.setAddress (self.getIdentity ());\n copy.digest = new ArrayList <State> (self.digest);\n return copy;\n }", "@Override\n public User createFromParcel(Parcel in) {\n return new User(in);\n }", "public PointOfInterest() {\n }", "public void setPIN(String PIN) {\n this.PIN = PIN;\n }", "int getPinNumber();", "@Override\n\n public newTack createFromParcel(Parcel in) {\n\n return new newTack(in);\n\n }", "@Override\n public MapPoint clone(){\n MapPoint pl = new MapPoint();\n pl.setId(this.pointId);\n pl.setX(this.pointX);\n pl.setY(this.pointY);\n pl.setTags(this.tags);\n return pl;\n }", "public @NotNull Address newAddress();", "@Override\n\tpublic UserPreferences newInstance() {\n\t\treturn new UserPreferences();\n\t}", "public Mapper newInstance() {\n Mapper mapper;\n\n mapper = new Mapper(name, parser.newInstance(), oag.newInstance());\n mapper.setLogging(logParsing, logAttribution);\n return mapper;\n }", "@Override\n\tpublic AbstractReine createReine() {\n\t\treturn new ReineSN();\n\t}", "public MKMapView() {}", "@Override\n public Component addPin(Component component)\n {\n component.addFeature(new AddPinButtonFeature(this, component));\n return component;\n }", "private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }", "@Override\n public SpesaObject createFromParcel(Parcel in) {\n return new SpesaObject(in);\n }", "public IntelMainboard createMainboard() {\n\t\treturn new IntelMainboard();\n\t}", "public static Tile of(final int originalPos) {\n return new Tile(originalPos);\n }", "synchronized ExerciseBuffer pinNew(String filename, PageFormatter fmtr) {\n\t ExerciseBuffer buff = chooseUnpinnedBuffer();\n if (buff == null)\n return null;\n Block blk=buff.assignToNew(filename, fmtr); // return the newly created block\n numAvailable--;\n buff.pin();\n \n if(bufferHashTable.containsValue(buff)){ //if value (buffer) is already exist then remove that key (blk) \n bufferHashTable.remove(blk); \n \n }\n bufferHashTable.put(blk, buff); // adding new key (blk) to HashTable\n \n return buff;\n }", "Reproducible newInstance();", "@Override\n public PrimitiveSegment createFromParcel(Parcel in) {\n in.readInt();\n return new PrimitiveSegment(in);\n }", "P createP();", "public PingOk dup (PingOk self)\n {\n if (self == null)\n return null;\n\n PingOk copy = new PingOk ();\n if (self.getIdentity () != null)\n copy.setAddress (self.getIdentity ());\n copy.request = new ArrayList <State> (self.request);\n copy.response = new ArrayList <State> (self.response);\n return copy;\n }", "public ParkingSpot createSpot() {\n ParkingSpot spot = new ParkingSpot();\n spot.setTime(time);\n spot.setId(id);\n spot.setLongitude(longitude);\n spot.setLatitude(latitude);\n spot.setAccuracy(accuracy);\n return spot;\n }", "private Road()\n\t{\n\t\t\n\t}", "public String getPIN() {\n return PIN;\n }", "@Override\r\n\tpublic Point clone() {\r\n\t\tPoint p = new RotatedPoint(this.geoObjectLabel, this.originalPoint, this.centerOfRotation, this.degAngleMeasure);\r\n\t\t\r\n\t\tif (this.getX() != null)\r\n\t\t\tp.setX((UXVariable) this.getX().clone());\r\n\t\tif (this.getY() != null)\r\n\t\t\tp.setY((UXVariable) this.getY().clone());\r\n\t\tp.setInstanceType(this.instanceType);\r\n\t\tp.setPointState(this.pointState);\r\n\t\tp.setConsProtocol(this.consProtocol);\r\n\t\tp.setIndex(this.index);\r\n\t\t\r\n\t\treturn p;\r\n\t}", "public static QRScanner newInstance() {\n QRScanner fragment = new QRScanner();\n return fragment;\n }", "public String getPIN();", "Point createPoint();", "@Override\n\tpublic Airport createNew()\n\t{\n\t\treturn new Airport();\n\t}", "@SuppressWarnings(\"unchecked\")\n private static TelephonyTimeZoneSuggestion createFromParcel(Parcel in) {\n int slotIndex = in.readInt();\n TelephonyTimeZoneSuggestion suggestion = new Builder(slotIndex)\n .setZoneId(in.readString())\n .setMatchType(in.readInt())\n .setQuality(in.readInt())\n .build();\n List<String> debugInfo =\n in.readArrayList(TelephonyTimeZoneSuggestion.class.getClassLoader(), java.lang.String.class);\n if (debugInfo != null) {\n suggestion.addDebugInfo(debugInfo);\n }\n return suggestion;\n }", "public Address() {}", "public Address() {\n \t\n }", "Address createAddress();", "public\n BioterrainMarker() {\n\t\tmarker = new BioterrainMarkerDb();\n\t\tisNew = true;\n }", "public synchronized Buffer pinNew(String filename, PageFormatter fmtr) {\n //=====================================CS4432-Project1=====================\n //get an empty buffer or buffer that is okay for replacement\n Buffer buff = chooseUnpinnedBuffer();\n //if we returned null, there was no available buffers, so just return null\n if (buff == null)\n return null;\n //add block to that buffer and pin it\n buff.assignToNew(filename, fmtr);\n numAvailable--;\n buff.pin();\n //associate the block with the frame number for easy access\n buffers.put(buff.block(), buff.getFrameNumber());\n return buff;\n }", "Stone create();", "@Override\n\tpublic boolean getPinged() {\n\t\treturn true;\n\t}", "public Object clone() {\n \n\tQuerynotyfyaddressbol obj = new Querynotyfyaddressbol(getObjectsDatastore());\n\n\tobj.iNotifyaddress = iNotifyaddress; \n\n\treturn obj;\n }", "@Override\n public BankPatch createNewPatch() {\n return super.createNewPatch();\n }", "public Object createObject(XMLControl control) {\n return new OffsetOrigin();\n }", "public Idea create() {\n \t\t\tIdea idea = new Idea();\n \n \t\t\treturn idea;\n \t\t}", "static Sbpayment newInstance() {\n return new DefaultSbpayment();\n }", "Individual createIndividual();", "Idiom createIdiom();", "public PiButton()\n\t{\n\t\tpasswordLogic = new PINLogic();\n\t\tled = new PiLED(21, 22);\n\t\tbuzzer = new PiBuzzer();\n\t}", "public Address() {\n\t}", "private NotePad() {\n }", "public TileEntity a_()\n {\n return new TileMarker();\n }", "String getPIN() {\n\t\treturn PIN;\n\t}", "@Override // android.os.Parcelable.Creator\n public final /* synthetic */ lw createFromParcel(Parcel parcel) {\n return new lw(parcel, (byte) 0);\n }", "public static AisPacketStream newStream() {\n return new AisPacketStreamImpl();\n }", "public Object clone() {\n return new PointImpl( this );\n }", "public CMObject newInstance();", "public DigitalInput(int pin) {\n\t\tthis.pin = (byte) pin;\n\t}", "Offset createOffset();", "public LED(int pin)\n {\n // Pin allocation is handled by a GpioController. So first we have to get that from the Factory.\n GpioController gpio = GpioFactory.getInstance();\n \n // Now we need to ask the Controller to allocate (provision) the pin for us as a Digital Output pin. \n // The parameter PinState.LOW means that initially, we want to set this pin to LOW (off).\n ledPin = gpio.provisionDigitalOutputPin(pinMap[pin], PinState.LOW);\n }", "public Trip() {}", "Annotation createAnnotation();", "Annotation createAnnotation();", "Parking createParking();", "public Address() {\n\t\tsuper();\n\n\t}", "@Override\n\t\tpublic Bpartner createFromParcel(Parcel in) {\n\t\t\treturn new Bpartner(in);\n\t\t}" ]
[ "0.6671866", "0.65882427", "0.63663465", "0.58952993", "0.58934397", "0.58934397", "0.5852051", "0.57847744", "0.5675183", "0.5654122", "0.5575618", "0.55433154", "0.55337346", "0.5528429", "0.55257785", "0.5524725", "0.5456661", "0.5444648", "0.53961253", "0.5393971", "0.5380829", "0.53676224", "0.5348745", "0.5312515", "0.5252709", "0.52314043", "0.5229598", "0.5171892", "0.51662886", "0.51662856", "0.5149401", "0.51327556", "0.5128441", "0.5119784", "0.511448", "0.51077753", "0.51014555", "0.5093785", "0.5091924", "0.507568", "0.50690097", "0.5064212", "0.5062969", "0.5051859", "0.5018768", "0.5017079", "0.50044674", "0.5003806", "0.49851647", "0.49771252", "0.49583757", "0.4949537", "0.4943985", "0.4940376", "0.49354833", "0.49300367", "0.4929328", "0.49256197", "0.49190974", "0.48810652", "0.48745322", "0.48705065", "0.4866428", "0.4862241", "0.4861193", "0.48580754", "0.4852779", "0.4840402", "0.48392972", "0.48308313", "0.4829008", "0.4822642", "0.4816223", "0.4805881", "0.47925556", "0.47923538", "0.4787934", "0.47861832", "0.47734547", "0.4772937", "0.4772337", "0.47693276", "0.47689918", "0.47685233", "0.47662202", "0.4764801", "0.47645074", "0.4759717", "0.47563782", "0.4753493", "0.4752136", "0.47501722", "0.4746892", "0.47456363", "0.47434545", "0.4740038", "0.4740038", "0.4736151", "0.47337198", "0.47323346" ]
0.8163774
0
Returns a new object of class 'Analog Pin'.
AnalogPin createAnalogPin();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Pin createPin();", "DigitalInputPin createDigitalInputPin();", "DigitalPin createDigitalPin();", "public AnalogData() {\r\n id = Drone.ANALOG;\r\n vBat = 0.0f;\r\n powerMeterSum = 0;\r\n rssi = 0;\r\n amperage = 0.0f;\r\n }", "public MaxBotixAnalog(DigitalOutput pingChannel, AnalogInput echoChannel)\n {\n this(pingChannel, echoChannel, Unit.kInches);\n }", "public SharpIR(SharpType sensorType, int analogInputPort) {\n\t\tthis(sensorType, new AnalogInput(analogInputPort));\n\t}", "void enableAnalog(double minPressurePSI, double maxPressurePSI);", "public MaxBotixAnalog(final int pingChannel, final int echoChannel,\n Unit units)\n {\n super();\n\n m_pingChannel = new DigitalOutput(pingChannel);\n m_echoChannel = new AnalogInput(echoChannel);\n m_allocatedChannels = true;\n m_units = units;\n initialize();\n }", "@Override\n public abstract V makeAnalog(org.ihtsdo.otf.tcc.api.coordinate.Status status, long time, int authorNid, int moduleNid, int pathNid);", "public Scania() {\n\n super(2, 600, Color.white, \"Scania\", 13000);\n truckBed = new Ramp();\n }", "public MaxBotixAnalog(final int pingChannel, final int echoChannel)\n {\n this(pingChannel, echoChannel, Unit.kInches);\n }", "public static AnalogCrossConnectFixture getAnalogCrossConnectFixture() {\n return new AnalogCrossConnectFixture() {\n @Override\n protected AnalogOutput giveAnalogOutput() {\n return new AnalogOutput(0);\n }\n\n @Override\n protected AnalogInput giveAnalogInput() {\n return new AnalogInput(2);\n }\n };\n }", "public void pin();", "public void pin();", "new LED();", "public FtcAnalogOutTone(String instanceName)\n {\n this(FtcOpMode.getInstance().hardwareMap, instanceName, DEF_WAVEFORM);\n }", "public T caseAnalog(Analog object) {\n\t\treturn null;\n\t}", "public Pin(int pin) {\r\n if (is4Digit(pin))\r\n this.pin = pin;\r\n }", "public MaxBotixAnalog(DigitalOutput pingChannel, AnalogInput echoChannel,\n Unit units)\n {\n super();\n\n if (pingChannel == null || echoChannel == null)\n {\n throw new NullPointerException(\"Null Channel Provided\");\n }\n m_allocatedChannels = false;\n m_pingChannel = pingChannel;\n m_echoChannel = echoChannel;\n m_units = units;\n initialize();\n }", "public AnalogInputSim(AnalogInput analogInput) {\n m_index = analogInput.getChannel();\n }", "public LED()\n {\n this(defaultPin);\n }", "public Arm() {\n initializeLogger();\n initializeCurrentLimiting();\n setBrakeMode();\n encoder.setDistancePerPulse(1.0/256.0);\n lastTimeStep = Timer.getFPGATimestamp();\n }", "public SharpIR(SharpType sensorType, AnalogInput input) {\n\t\tif (sensorType == SharpType.GP2Y0A51SK0F) {\n\t\t\tsetCustomFactors(GP2Y0A51SK0F_mul, GP2Y0A51SK0F_exp);\n\t\t}\n\t\telse if (sensorType == SharpType.GP2Y0A41SK0F) {\n\t\t\tsetCustomFactors(GP2Y0A41SK0F_mul, GP2Y0A41SK0F_exp);\n\t\t}\n\t\telse throw new RuntimeException(\"Unknown SharpType: \" + sensorType.toString());\n\t\tthis.input = input;\n\t\tinput.setAverageBits(10);\n\t}", "AngleAdd createAngleAdd();", "@Override\n public Component addPin(Component component)\n {\n component.addFeature(new AddPinButtonFeature(this, component));\n return component;\n }", "public CGestorGPIO( )\n { \n m_log = Logger.getRootLogger();\n m_Gpio = GpioFactory.getInstance();\n }", "public PiButton()\n\t{\n\t\tpasswordLogic = new PINLogic();\n\t\tled = new PiLED(21, 22);\n\t\tbuzzer = new PiBuzzer();\n\t}", "public OI(){\n driveStick = new Joystick(RobotMap.DRIVE_STICK);\n armStick = new Joystick(RobotMap.ARM_STICK);\n assoc(); \n }", "public TrackdInputDevice() {\n }", "public PinsFragment() {}", "public Pwm(int bus){\n instanceBus = bus;\n if(bus == unusedBus){\n \n }\n else{\n pwmInstance = new Jaguar(bus);\n Debug.output(\"Pwm constructor: created PWM on bus\", new Integer(bus), ConstantManager.deviceDebug);\n }\n }", "RasPiBoard createRasPiBoard();", "public AnalogInputSim(int channel) {\n m_index = channel;\n }", "public Intake() {\n motor_0.setInverted(true);\n }", "public HiTechnicMagneticSensor(AnalogPort port) {\r\n super(port);\r\n init();\r\n }", "public void setPin(int pin);", "public BrickControlPi() {\r\n\t}", "public String getPIN();", "public DigitalInput(int pin) {\n\t\tthis.pin = (byte) pin;\n\t}", "public AnalogMeasurement(AnalogChannel source, int chan, int type)\n\t{\n\t\tmSource=source;\n\t\tmType=type;\n\t\tmChan=chan;\n\t}", "public SharpIR(double mul, double exp, int analogInputPort) {\n\t\tthis(mul, exp, new AnalogInput(analogInputPort));\n\t}", "private NotePad() {\n }", "public Interfaz() {\n initComponents();\n ArduinoConnection();\n }", "public FtcAnalogOutTone(String instanceName, Waveform defWaveform)\n {\n this(FtcOpMode.getInstance().hardwareMap, instanceName, defWaveform);\n }", "@Override\n\tpublic Structure createNew() {\n\t\treturn new FloorSwitch();\n\t}", "protected Widget attachPinWidget(String node, String pin) {\n if (pin.endsWith(PIN_ID_DEFAULT_SUFFIX)) {\n return null;\n }\n EDMPinWidget widget = new EDMPinWidget(this);\n ((EDMNodeWidget) findWidget(node)).attachPinWidget(widget);\n revalidate();\n widget.getActions().addAction(createObjectHoverAction());\n widget.getActions().addAction(createSelectAction());\n\n return widget;\n }", "public interface IGradualPeripheral {\n void setValue(int value);\n int getValue();\n}", "public BitTwiddle() {\r\n\t\t}", "public AngleIF() {\n \t\t//_navx = new navx();\n \t\t//roboAccel = new RoboRioAccelerometers();\n \t}", "@Override\r\n\tpublic int generatePin(int custId, int accNo) {\r\n\t\treturn 0;\r\n\t}", "Angle createAngle();", "@Override\n public String toString() {\n return \"Pin{\" +\n// \"connections=\" + connections +\n \"type=\" + type +\n '}';\n }", "private OI() {\n\t\t\n\t\tJoystickButton intakeIn = new JoystickButton(//gunner, \n\t\t\t\tdriver, JOYSTICK_INTAKE);\n\t\tJoystickButton intakeOut = new JoystickButton(//gunner, \n\t\t\t\tdriver, JOYSTICK_REVERSE_INTAKE);\n\t\tJoystickButton pivotOut = new JoystickButton(//gunner,\t\t\t\tThese create officially each button on the driver remote\n\t\t\t\tdriver, JOYSTICK_PIVOT_OUT);\n\t\tJoystickButton pivotIn = new JoystickButton(//gunner,\t\t\t\tusing the button numbers created above\n\t\t\t\tdriver, JOYSTICK_PIVOT_IN);\n\t\tJoystickButton climbRelease = new JoystickButton(//gunner,\n\t\t\t\tdriver, JOYSTICK_ClIMB_RELEASE);\n\t\tJoystickButton climbUp = new JoystickButton(//gunner,\n\t\t\t\tdriver, JOYSTICK_CLIMB_UP);\n\t\tJoystickButton climbBrake = new JoystickButton(\n\t\t\t\tdriver, JOYSTICK_BRAKE);\n\t\tJoystickButton climbUndoBrake = new JoystickButton(\n\t\t\t\tdriver, JOYSTICK_UNDO_BRAKE);\n\t\t\n\t\t/*\n\t\t * JoystickButton intakeIn = new JoystickButton(//left, \n\t\t\t\tright, JOYSTICK_INTAKE);\n\t\t * JoystickButton intakeOut = new JoystickButton(//left, \n\t\t\t\tright, JOYSTICK_REVERSE_INTAKE);\n\t\t * JoystickButton pivotOut = new JoystickButton(//left,\t\t\t\tThese create officially each button on the driver remote\n\t\t\t\tright, JOYSTICK_PIVOT_OUT);\n\t\t * JoystickButton pivotIn = new JoystickButton(//left,\t\t\t\tusing the button numbers created above\n\t\t\t\tright, JOYSTICK_PIVOT_IN);\n\t\t * JoystickButton climbRelease = new JoystickButton(//left,\n\t\t\t\tright, JOYSTICK_ClIMB_RELEASE);\n\t\t * JoystickButton climbUp = new JoystickButton(//left,\n\t\t\t\tright, JOYSTICK_CLIMB_UP);\n\t\t * JoystickButton climbBrake = new JoystickButton(//left,\n\t\t\t\tright, JOYSTICK_BRAKE);\n\t\t * JoystickButton climbUndoBrake = new JoystickButton(//left,\n\t\t\t\tright, JOYSTICK_UNDO_BRAKE);\n\t\t */\n\t\t\n\t\t\n\t\tintakeIn.whileHeld(new IntakeIn());\t\t\t//Executes intakeIn WHILE the button is pressed\n\t\tintakeIn.whenReleased(new IntakeStop());\t//executes intakestop WHEN the button is let go\n\t\t\n\t\tintakeOut.whileHeld(new IntakeOut());\t\n\t\tintakeOut.whenReleased(new IntakeStop());\n\t\t\n\t\tpivotIn.whileHeld(new PivotIn());\n\t\tpivotIn.whenReleased(new PivotStop());\t\t\t\t\t\t\t//These bind the buttons to a specific command\n\t\t\n\t\tpivotOut.whileHeld(new PivotOut());\n\t\tpivotOut.whenReleased(new PivotStop());\n\t\t\n\t\tclimbRelease.whileHeld(new ClimbRelease());\n\t\tclimbRelease.whenReleased(new ClimbStop());\n\t\t\n\t\tclimbUp.whileHeld(new ClimbUp());\n\t\tclimbUp.whenReleased(new ClimbStop());\n\t\t\n\t\tclimbBrake.whileHeld(new ClimbBrake());\n\t\tclimbBrake.whenReleased(new BrakeStop());\n\t\t\n\t\tclimbUndoBrake.whileHeld(new ClimbBrakeUndo());\n\t\tclimbUndoBrake.whenReleased(new BrakeStop());\n\t}", "public interface IRelay extends ISimulatedCircuit {\n\t/**\n\t * Retrieves a value indicating whether power is flowing from the relay's\n\t * output terminal or not.\n\t *\n\t * @return true indicates that power is flowing from the relay's output\n\t * terminal; false indicates that it is not.\n\t */\n\tpublic abstract boolean getOutput();\n\n\t/**\n\t * Sets a value indicating whether power is flowing into the relay's input\n\t * terminal.\n\t *\n\t * @param value\n\t * true to indicate that power is flowing into the relay's input\n\t * terminal; false to indicate that it is not.\n\t */\n\tpublic abstract void setInput(boolean value);\n}", "public Object ai() {\n try {\n return this.ad.newInstance();\n } catch (IllegalAccessException | InstantiationException e) {\n throw new RuntimeException();\n }\n }", "public FtcAnalogOutTone(HardwareMap hardwareMap, String instanceName, Waveform defWaveform)\n {\n super(instanceName, defWaveform);\n\n if (debugEnabled)\n {\n dbgTrace = new TrcDbgTrace(moduleName + \".\" + instanceName, tracingEnabled, traceLevel, msgLevel);\n }\n\n this.instanceName = instanceName;\n analogOut = hardwareMap.analogOutput.get(instanceName);\n }", "public void initPin(PIN_DIRECTION direction, ARTIK_PINS pin) throws IOException {\n System.out.println(\"init pin:\" + pin);\n assertPinNotExported(pin);\n echoToPath(BASE_PIN_EXPORT_PATH, getPinNumber(pin));\n changePinDirection(pin, direction);\n //setting direction by writing to /sys/class/gpio/PIN_NUMBER/direction {in,out}\n\n }", "private ACARSSoundingTools() {\n\n }", "public BasicSensor() {}", "public ArmJoint() {\n \t\n \tMotor = new CANTalon(RobotMap.Ports.bucketLifter);\n \tMotor.setFeedbackDevice(FeedbackDevice.CtreMagEncoder_Relative);\n \tMotor.clearStickyFaults();\n \tMotor.setSafetyEnabled(false);\n \tMotor.configNominalOutputVoltage(0, 0);\n \tMotor.configPeakOutputVoltage(12, -12);\n \tMotor.setAllowableClosedLoopErr(10);\n \tMotor.setProfile(0);\n \tMotor.setP(RobotMap.Values.armPidP);\n \tMotor.setI(RobotMap.Values.armPidI);\n \tMotor.setD(RobotMap.Values.armPidD);\n \tMotor.setF(0);\n\n \t//Motor.configEncoderCodesPerRev(1);\n \t//Motor.enableLimitSwitch(true, true);\n \t//Motor.enableBrakeMode(false);\n \t//Motor.enable();\n \t//Motor.changeControlMode(TalonControlMode.PercentVbus);\n \tMotor.enableZeroSensorPositionOnReverseLimit(true);\n \tMotor.set(0);\n \t\n \tLiveWindow.addActuator(\"ArmJoint\", 1, (CANTalon) Motor);\n // Use these to get going:\n // setSetpoint() - Sets where the PID controller should move the system\n // to\n // enable() - Enables the PID controller.\n }", "public SpecialLamp() {\r\n\t\t// Initialize input and output ports\r\n\t\tsuper(new IFixedInterface(new IPort[1]), new IFixedInterface(new IPort[0]));\r\n\t}", "public USBAmp() {\r\n super();\r\n }", "Idiom createIdiom();", "@Override\n public int getPinState(){\n return 0;\n }", "ExternalSensor createExternalSensor();", "public ArmorControls()\n {\n super(new KeyBinding[] { armorKey, toggleGoggles, beltSwap, zoomKey }, new boolean[] { false, false, false, false }, getVanillaKeyBindings(), new boolean[] { false, false });\n /*ClientRegistry.registerKeyBinding(armorKey);\n ClientRegistry.registerKeyBinding(refreshCapes);\n ClientRegistry.registerKeyBinding(toggleGoggles);\n ClientRegistry.registerKeyBinding(beltSwap);\n ClientRegistry.registerKeyBinding(zoomKey);*/\n }", "public HwPeripheralFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public LogicGateAND() {\r\n\t\t// Initialize input and output ports\r\n\t\tsuper(Operators.AND, new IDynamicInterface(2), new IFixedInterface(new IPort()));\r\n\t}", "Instance createInstance();", "protected Brain DNAtoBrain() {\n\t\treturn new Brain(this, this.ID, genes.values(), nodes,\n\t\t\t\tpopulation.sigmoidCoefficient);\n\t}", "public ToZeroRampGenerator() { \r\n }", "public NewDigitalMediaObject(Name alias) {\n this(alias, NEW_DIGITAL_MEDIA_OBJECT);\n }", "public Adler32() {\n }", "public Intaker() {\n\t\t//Initialize the intake motor controllers\n\t\tleftIntake = new Victor(0);\n\t\trightIntake = new Victor(1);\n\t\t\n\t\t//initialize the solenoids\n\t\t//IDs need to be updated\n\t\tleftSol = new Solenoid(4);\n\t\trightSol = new Solenoid(5);\n\t\t\n\t}", "public static Arm getInstance() {\n if (instance == null) {\n instance = new Arm();\n }\n return instance;\n }", "public void setPIN (String PIN);", "public Integer getAnalogValue() {\n return analogValueByte & 0xff;\n }", "AngleSmaller createAngleSmaller();", "public JoystickPuck(){\r\n\r\n this.shadow = new Shadow();\r\n this.surface = new Surface();\r\n this.shading = new Shading();\r\n\r\n this.setShadowColor(0xff000000);\r\n this.setSurfaceColor(0xffcccccc);\r\n this.setShadingColor(0xff000000);\r\n }", "public IntakeArm(RobotHardware robotHardware) {\n super(IntakeArmController.of(() -> 0.0));\n\n this.robotHardware = robotHardware;\n }", "public IndirectionsmeasuringpointFactoryImpl() {\n super();\n }", "static Sbpayment newInstance() {\n return new DefaultSbpayment();\n }", "protected JoystickInput() {\n }", "public LightRing(int portNum) {\n this.relay = new Relay(portNum, Relay.Direction.kForward); // only allows you to turn on one side/direction\n }", "public PIDElevator() {\n \tsuper(\"PIDElevator\", Kp, Ki, Kd);\n \tenco = new Encoder(RobotMap.ENCODER_A_CHANNEL, RobotMap.ENCODER_B_CHANNEL, true);\n enco.reset();\n \n //outputOne = new DigitalOutput(RobotMap.ARDUINO_PIN_ONE);\n //outputTwo = new DigitalOutput(RobotMap.ARDUINO_PIN_TWO);\n //outputThree = new DigitalOutput(RobotMap.ARDUINO_PIN_THREE);\n\n \t\n \tsetAbsoluteTolerance(10);\n \tgetPIDController().setContinuous(false);\n // Use these to get going:\n // setSetpoint() - Sets where the PID controller should move the system\n // to\n // enable() - Enables the PID controller.\n \televMotor = new CANTalon(RobotMap.ELEV_TALON);\n \t\n //button = new DigitalInput(0); \n \tbottom_hallEffect = new DigitalInput(RobotMap.HALL_EFFECT_PORT);\n \ttop_limitSwitch = new DigitalInput(RobotMap.TOP_LIMIT_SWITCH);\n \t\n \t//wire = new I2C(Port.kOnboard, 4);\n \t\n \tBrakeEngaged = new Solenoid(1, RobotMap.BRAKE_IN);\n \tBrakeDisengaged = new Solenoid(1, RobotMap.BRAKE_OUT);\n \tenable();\n }", "@Ignore\n public Alarm() {\n mUid = DateTime.now().hashCode();\n mDate = new DateTime();\n mLabel = \"\";\n mEnabled = true;\n }", "public Relay(){}", "public static final Instrument getDummy() {\n return new Instrument();\n }", "public ScanBarcode() {\n initComponents();\n \n \n }", "private static native boolean showAnalogActionOrigins(long pointer, long controllerHandle,\n long analogActionHandle, float scale,\n float xPosition, float yPosition);", "public Scania() {\r\n\t\tinitList();\r\n\t\tmakerName = \"Scania\";\r\n\t\tRandom rand = new Random();\r\n\t\tint chooseBit = rand.nextInt(2); // higher chance of better one ;)\r\n\t\tif (chooseBit == 1) {\r\n\t\t\tmodelName = \"R 2012\";\r\n\t\t} else {\r\n\t\t\tmodelName = \"Streamline\";\r\n\t\t}\r\n\t}", "public Gyro360 (AnalogChannel channel) {\n super(channel);\n }", "public PinboardMaker()\r\n {\r\n pictures = new ArrayList<String>();\r\n pinboardObject = new Pinboard();\r\n }", "public NewDigitalMediaObject(String alias) {\n this(DSL.name(alias), NEW_DIGITAL_MEDIA_OBJECT);\n }", "public HanoiTower(){\n\n }", "public LED(int pin)\n {\n // Pin allocation is handled by a GpioController. So first we have to get that from the Factory.\n GpioController gpio = GpioFactory.getInstance();\n \n // Now we need to ask the Controller to allocate (provision) the pin for us as a Digital Output pin. \n // The parameter PinState.LOW means that initially, we want to set this pin to LOW (off).\n ledPin = gpio.provisionDigitalOutputPin(pinMap[pin], PinState.LOW);\n }", "void enableDigital();", "public ArcadeDriveInput(Joystick stick) {\n this.stick = stick;\n Updater.add(this, Priority.INPUT);\n }", "public interface Pad extends SingleSourceNode {\n}", "AdvSample(int RSSI, long time)\n {\n this.RSSI = RSSI;\n this.time = time;\n }" ]
[ "0.65306985", "0.653028", "0.6339364", "0.6235408", "0.5842684", "0.57312214", "0.56470925", "0.5621348", "0.5583435", "0.55629855", "0.5523089", "0.5476842", "0.5434252", "0.5434252", "0.53685796", "0.5316998", "0.5306823", "0.5301927", "0.5300418", "0.52929056", "0.52875984", "0.5246301", "0.5240638", "0.5205696", "0.5196743", "0.51816666", "0.51578313", "0.5142839", "0.51391244", "0.51373976", "0.5115905", "0.50676936", "0.5052582", "0.50480926", "0.5026867", "0.49886176", "0.4985494", "0.49645588", "0.4959227", "0.49495518", "0.49067688", "0.48975086", "0.48958996", "0.48938143", "0.48861718", "0.4878964", "0.48538524", "0.4843125", "0.48237818", "0.48165607", "0.4809062", "0.47992307", "0.47965524", "0.4793442", "0.4790745", "0.47900745", "0.47878158", "0.47773147", "0.47692552", "0.47579142", "0.47567937", "0.47417662", "0.4736905", "0.4727813", "0.47225645", "0.472064", "0.471828", "0.4713031", "0.47028843", "0.47021663", "0.46947592", "0.46878576", "0.4676395", "0.46731767", "0.46728498", "0.46726885", "0.465195", "0.46493325", "0.46479788", "0.46477163", "0.46471864", "0.46445534", "0.46373406", "0.46265778", "0.46230415", "0.4617837", "0.46154284", "0.46143955", "0.4614169", "0.4609153", "0.46069413", "0.4603354", "0.4582909", "0.4579501", "0.4576633", "0.45737755", "0.4571257", "0.4567132", "0.45523107", "0.4550653" ]
0.87900597
0
Returns a new object of class 'Rover Program'.
RoverProgram createRoverProgram();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Program createProgram();", "Program createProgram();", "Program createProgram();", "public RubyObject createObject() {\n\t\treturn (RubyObject) RGSSProjectHelper.getInterpreter(project).runScriptlet(\"return RPG::Troop::Page.new\");\n\t}", "public static void main(String[] args) throws CloneNotSupportedException {\n\t\tCloneProgram c1=new CloneProgram(1, \"Sagar\");\r\n\t\tCloneProgram c2=(CloneProgram) c1.clone();\r\n\t\tSystem.out.println(c1.id+ \" \"+c1.name);\r\n\t\tSystem.out.println(\"After Cloning\");\r\n\t\t\r\n\t\tSystem.out.println(c2.id+ \" \"+c2.name);\r\n\t\t\r\n\r\n\t}", "RoverValue createRoverValue();", "Reproducible newInstance();", "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 }", "public static void main(String[] args) {\n\n Sport sport1 = new Sport(\"Ice Hockey\");\n //sport1.setName(\"ice hockey\");\n System.out.println(sport1.getName());\n sport1.description();\n\n Running running = new Running(\"Running\");\n// running.setName(\"Running\");\n running.setDistance(10);\n running.description();\n\n\n //more examples about super\n\n\n\n\n //toString()\n\n //abstract class / method example\n\n //interface\n\n //is-a relationship (instanceof)\n\n //final keyword\n\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tRedCar1 rc = new RedCar1();\r\n\t\trc.paint(\"red\");\r\n\r\n\t}", "public static void main(String[] args) {\n // Percolation p = new Percolation(5);\n\n }", "public static void main(String []args ){\n RectangleProgram rectProg = new RectangleProgram();\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tObjectsOOPCar myCar = new ObjectsOOPCar();\n\t\tSystem.out.println(myCar.model);\n\t\tSystem.out.println(myCar.make);\n\t\tSystem.out.println(myCar.color);\n\t\tSystem.out.println(myCar.year);\n\t\t\n\t\tmyCar.drive();\n\n\t}", "public static void main(String[] args) {\n Factory factory = new SuTenCarFactory();\n Car car = factory.create();\n car.drive();\n }", "RentalObject createRentalObject();", "Oracion createOracion();", "public static void main(String[] args) {\n\t\tMethodoverrings obj1= new Methodoverrings();\r\n\t\tMethodoverrings obj2= new Methodoverrings();\r\n\t\tchild obj3= new child (); //child class\r\n\t\tobj1.show();\r\n\t\t//if the Methodoverrings referenceing to child object, show()\r\n\t\t// method is called this is during run time of Polymarphise\r\n\t\tobj2.show();\r\n\t}", "public ProgramWilmaa()\n\t{\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tVehicle myVehicle = new Vehicle(500, 4);\n\t\tmyVehicle.ride();\n\t\tSystem.out.println(myVehicle.toString());\n\t\t\n\t\tCar myCar = new Car(90, 4);\n\t\tmyCar.ride();\n\t\tSystem.out.println(myCar.toString());\n\t\t\n\t\tMotorcycle myMotorcycle = new Motorcycle(88, 2);\n\t\tmyMotorcycle.ride();\n\t\tSystem.out.println(myMotorcycle.toString());\n\n\t}", "public static void main(String[] args) {\n PessoaBuilder builder = new PessoaBuilder();\n builder.comNome(\"Roberto\").comAltura(2.).comCorDosOlhos(\"Azul\").comEtnia(\"Afrodescendente\").comPeso(75.);\n Pessoa pessoa = builder.build();\n System.out.println(pessoa);\n\n //Agora usaremos a classe Director, onde podemos ter perfis pré-definidos\n builder.reset();\n Director director = new Director(builder);\n\n //Primeiro uma pessoa obesa\n director.buildFatPerson();\n Pessoa fatPerson = builder.build();\n System.out.println(fatPerson);\n\n //Agora criaremos o Bruce Wayne (ou será o Batman)1\n director.buildBruceWayne();\n Pessoa batman = builder.build();\n System.out.println(batman);\n }", "public static void main(String[] args) {\n \n RunProject r = new RunProject(); // creates new instance of RunProject class\n r.mainMenu(); //runs main menu method for new instance.(r)\n \n }", "public static void main(String[] args) {\n\n Car Lorry=new Car();\n Car SportCar=new Car();\n\n printInfo();\n\n }", "public static void main(String[] args) {\n Cachorro x = new Cachorro();\n //x.emitirSom();\n \n // Programa Principal\n Cachorro c = new Cachorro();\n \n c.reagir(\"Olá\"); // Abanar e Latir\n System.out.println(\"\");\n c.reagir(\"Vai apanhar\"); // Rosnar\n System.out.println(\"\");\n c.reagir(11, 45); // Abanar\n System.out.println(\"\");\n c.reagir(21, 00); // Ignorar\n System.out.println(\"\");\n c.reagir(true); // Abanar\n System.out.println(\"\");\n c.reagir(false); // Rosnar e Latir (// emitirSom();)\n System.out.println(\"\");\n c.reagir(2, 12.5f); // Latir\n System.out.println(\"\");\n c.reagir(17, 4.5f); // Rosnar\n \n }", "public static void main(String[] args) {\n\r\n\t\tnew Peeler().peel(new Apple());\r\n\t\t\r\n\t\t\r\n\t}", "Run createRun();", "public static void main(String[] args) {\r\n\t\t\r\n//\t\tSystem.out.println(\"Start here\");\r\n//\t\tCars vinCar = new Cars(\"Red\", \"BMW\", \"M5\", 2018, 100,2); // object 1\r\n//\t\tCars ahmadsCar = new Cars(\"Black\",\"Merc\",\"c63 amgs\",2020,150,2); // object 2\r\n\t\tCars newCar = new Cars();\r\n//\t\tnewCar.setBrand(\"Audi\");\r\n////\t\tnewCar.setColour(\"green\");\r\n//////\t\tnewCar.setModel(\"A5\");\r\n//\t\tnewCar.setSpeed(0);\r\n//\t\tnewCar.setYear(2020);\r\n////\t\tnewCar.setNoWheels(0);\r\n\t\tSystem.out.println(newCar.getNoWheels());\r\n//\t\tSystem.out.println(newCar.col);\r\n\t\t//System.out.println(newCar);\r\n\t\t\r\n\t\t//System.out.println(vinCar);\r\n//\t\tSystem.out.println(ahmadsCar);\r\n\t//\tvinCar.setBrand(\"Audi\");\r\n\t\t//System.out.println(vinCar.getBrand());\r\n\t\t//System.out.println(vinCar);\r\n//\t\tSystem.out.println(vinCar.drive(123));\r\n\t\t\r\n\r\n\t}", "public static void main(String[] args) throws Exception {\n\t\tPaint staticpaint = new RedPaint();\r\n\t\tSystem.out.println(\"object created through static way:\"+staticpaint);\r\n\t\t//2. dynamic binding.... To dynamically create objects...\r\n\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Please enter the qualified class name:\");\r\n\t\tString Paintclass=scan.next();\r\n\t\tPaint dynamicPaint=(Paint)Class.forName(Paintclass).newInstance();\r\n\t\tSystem.out.println(\"Object created through dynamic way...:\"+dynamicPaint);\r\n\t\t//3. new way of creating objects dynamically....after jdk9\r\n\t\tSystem.out.println(\"please enter the one more class:\");\r\n\t\tPaintclass=scan.next();\r\n\t\tPaint s=(Paint)Class.forName(Paintclass).getConstructor().newInstance();\r\n\t\tSystem.out.println(\"New dynamic way:\"+s);\r\n\t}", "public static void main(String []args){\n Developer d1 = new Developer(24,\"Zayn\");\n d1.walk();\n }", "public static void main (String args []) {\n\t\t Automovel a = new Automovel ( \"Edurdo\",\"Palio\", \"JWO2125\", \n 2002);\n\t\t //troca de mensagens (chamada ao metodo imprimir())\n\t\t //a.getAno();\n\t\t a.imprimirInfo();\n\t\t System.out.println (\"***Transferencia de Proprietario***\");\n\t\t a.setNomeProprietario(\"Rosa\");\n\t\t a.imprimirInfo();\n\t\t Automovel b = new Automovel (\"Rodrigo\", \"Parati\", \n\t\t \"JSX6481\", 1999);\n\t\t b.imprimirInfo();\n\t\t System.out.println (\"***Mudanca de Placa***\");\n\t\t b.setPlaca(\"SDK2581\");\n\t\t b.imprimirInfo();\n\t\t }", "public static void main(String[] args){\n Rectangle obj = new Rectangle();\n }", "public static void main(String[] args){\n Rectangle obj = new Rectangle();\n }", "public static void main(String[] args) {\n ConstructorIntro obj2 = new ConstructorIntro(10);\n\n }", "public static void main (String [] args) \r\n {\n \tWorker bob = new Worker (\"Bob\", 10000);\r\n \t\r\n \t//Create a programmer object.\r\n \tProgrammer hlavaty = new Programmer (\"Cindy\", 50000, \"Java\");\r\n \t\t\r\n \t//Create a manager object.\r\n \tManager omar = new Manager (\"Omar\", 55000);\r\n \t\r\n \tbob.work();\r\n \thlavaty.work();\r\n \tomar.work();\r\n \t\r\n \tSystem.out.println (hlavaty.getLang());\r\n \t\r\n \tbob.raiseSalary (1000);\r\n \t\r\n \tSystem.out.println (bob.toString());\r\n \t\r\n \tSystem.out.println (hlavaty.progLang);\r\n \t\r\n \thlavaty.raiseSalary (20000);\r\n \t\r\n \tomar.raiseSalary (10);\r\n \t\r\n \tSystem.out.println (hlavaty.toString());\r\n \t\r\n \tSystem.out.println (omar.toString());\r\n }", "public static void main(String[] args) {\n Computer computerOne = new Computer(8, 2, \"AMD\");\n\n // instantiate a new laptop object\n Laptop laptopOne = new Laptop(16,\"intel\", true, 1, 1, \"James\");\n laptopOne.turnOn();\n laptopOne.moveCursor();\n laptopOne.loadProgram(5);\n laptopOne.setComputerName(\"Shiva\");\n System.out.println(laptopOne.getComputerName());\n\n laptopOne.logIn(\"MySecretPassword\");\n\n String source = \"Hello World\";\n\n for (String part : source.split(\" \")) {\n System.out.print(new StringBuilder(part).reverse().toString());\n System.out.print(\" \");\n }\n\n\n // general computer object\n //System.out.println(\"There is \" + computerOne.getMemoryAmount() + \"GB of memory.\"\n\n\n }", "public static void main(String[] args) {\n\n Persona persona1 = new Persona(\"Gaston\", 34);\n persona1.correr();\n\n Persona persona2 = new Persona(\"36587415\");\n persona2.correr(100);\n }", "public static void main(String[] args) {\n PyramidSolitaireModel<?> model;\n model = PyramidSolitaireCreator.create(PyramidSolitaireCreator.GameType.BASIC);\n model = PyramidSolitaireCreator.create(PyramidSolitaireCreator.GameType.RELAXED);\n model = PyramidSolitaireCreator.create(PyramidSolitaireCreator.GameType.MULTIPYRAMID);\n }", "public static void main(String[] args) {\n\t\tVendingMachine machine = new VendingMachine();\n\t}", "public Game getNewInstance() {\n try {\n return classObj.newInstance();\n } catch (Exception e) {\n e.printStackTrace();\n throw new RuntimeException(\"Error generating \" + this + \" game\");\n }\n }", "public static void main(String[] args) {\n car car = new car(8,\"Base Car\");\n System.out.println(car.startEngine());\n System.out.println(car.accelerate());\n System.out.println(car.brake());\n\n //output for the lamborghini car\n lambo gall = new lambo(8,\"Gallardo\");\n System.out.println(gall.startEngine());\n System.out.println(gall.accelerate());\n System.out.println(gall.brake());\n\n //output for the ferrari car\n ferrari ferr = new ferrari(6,\"F30\");\n System.out.println(ferr.startEngine());\n System.out.println(ferr.accelerate());\n System.out.println(ferr.brake());\n\n }", "public CKRProgram(CKRKnowledgeBase inputCKR) {\n\t\tthis.inputCKR = inputCKR;\n\t\tthis.manager = inputCKR.getGlobalOntology().getOWLOntologyManager();\n\t\t\n\t\t//this.outputFilePath = DEFAULT_OUTPUT_FILENAME;\n\t\t//this.dlvPath = DEFAULT_DLV_PATH;\n\t\t\n\t\tthis.globalModelComputationTime = 0;\n\t\tthis.rewritingTime = 0;\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tVehicleFactory factory = new CarFactory();\n\t\tMoveable moveable = factory.Create();\n\t\tmoveable.run();\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "Program program() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tToken progName = match(IDENTIFIER);\r\n\t\tBlock block = block();\r\n\t\treturn new Program (first, progName, block);\r\n\t}", "public static void main(String[] args) {\n\t\tOliveMain myMain = new OliveMain(10);\n\n\t\t// set up class\n\t\tmyMain.setUp();\n\n\t\t// run the program\n\t\tmyMain.runProgram();\n\t}", "public static void main(String[] args) throws CloneNotSupportedException {\n\t\tClassRoom classroom = new ClassRoom();\r\n\t\tclassroom.setClassName(\"Nivel Block\");\r\n\t\tclassroom.loadStudents(); // Hard code data is adding loading into Object\r\n\r\n\t\t// ClassRoom classRoom2=new ClassRoom(); instead of creating another object i\r\n\t\t// need to clone existing object\r\n\t\tClassRoom classRoom2 = classroom.clone(); // cloning of the object.\r\n\t\tclassroom.getStudents().remove(1); // removing some object from list of data.\r\n\t\tclassRoom2.setClassName(\"Hardy Block\");\r\n\t\tSystem.out.println(classroom); // will return original data\r\n\t\tSystem.out.println(classRoom2); // will return Clone data.\r\n\t}", "public static void main(String[] args) {\n\r\n\t\templeado emple = new empleado(\"Jonnhy\", 25, 1800);\r\n\t\tSystem.out.println(emple.toString());\r\n\t\t\r\n\t\tcomercial com = new comercial(\"Joseph\", 23, 1200, 100);\r\n\t\tSystem.out.println(com.toString());\r\n\t\t\r\n\t\trepartidor rep = new repartidor(\"Jonathan\", 45, 43, \"zona2\");\r\n\t\tSystem.out.println(rep.toString());\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n MarsRover positionMars = new MarsRover();\n\n while(true){\n System.out.println(\"Enter command: (m, rl, rr): \");\n\n String command = new Scanner(System.in).nextLine();\n if (command.equals(\"m\"))\n positionMars.move();\n else if (command.equals(\"rl\"))\n positionMars.rotateLeft();\n else if (command.equals(\"rr\"))\n positionMars.rotateRight();\n System.out.println(\"x: \" +positionMars.position().getX()+\n \" y: \"+ positionMars.position().getY()+ \" dir: \"+positionMars.getDirection());\n System.out.println();\n\n }\n }", "public static void main(String args[]) {\n\t\tMaze newMaze = new Maze(2,0);\n\t\n\t}", "public static void main (String[] args){\n \n \n Persona p1 = new Persona (\"Gener\",23);\n p1.mostrar();\n p1.correr();\n \n Persona p2 = new Persona(\"12345123\");\n p2.correr(100);\n }", "public Object clone() {\n SPProgram prog = (SPProgram)super.clone();\n\n if (_piInfo != null) {\n prog._piInfo = (PIInfo)_piInfo.clone();\n }\n\n return prog;\n }", "public static void main(String[] args) {\n\t\tVehicle v = new Car(10,20);\n\t\tObject o = new Vehicle();\n\t\t\n\t\tv.maxSpeed = 100;\n\t\tv.print();\n\t\tv = new Vehicle();\n\t\tv.setColor(\"green\");\n//\t\tCar c = (Car) v; dangerous casting\n//\t\tv.numDoors = 4;\n//\t\tVehicle v3 = new Bicycle(12);\n\n\t\t\n\t\tv.maxSpeed = 80;\n\t\tv.setColor(\"red\");\n\t\tv.print();\n//\t\t\n//\t\tCar c = new Car();\n//\t\tc.color = \"Black\";\n//\t\tc.maxSpeed = 100;\n//\t\tc.numDoors = 4;\n//\t\tc.setColor(\"black\");\n//\t\tc.printMaxspeed();\n//\t\tc.print();\n//\t\tc.printCar();\n\t\t\n//\t\tBicycle b = new Bicycle();\n//\t\tb.print();\n\n\t}", "public static void main(String[] args) throws Exception {\n\t\tPerro p1=new Perro();\r\n\t\tPerro p2 =new Perro(\"Chucho\", \"Pastor Aleman\", 3,true);\r\n\t\tPerroPresa pp1=new PerroPresa();\r\n\t\tPerroPresa pp2=new PerroPresa(\"Dientes\",\"pitbull\",5,true);\r\n\t\tpp1.setNombre(\"ŅamŅam\");\r\n\t\tp1.setEdad(-3);\r\n\t\tSystem.out.println(p1.toString());\r\n\t\tSystem.out.println(p2.toString());\r\n\t\tSystem.out.println(pp1.toString());\r\n\t\tpp1.atacar();\r\n\t\tSystem.out.println(pp2.toString());\r\n\t\tpp2.atacar();\r\n\t}", "RoachPopulation(int initial)\n {\n roaches = initial;\n }", "public static void main(String[] args) {\nCar car=new Car();\r\nSystem.out.println(car.color);\r\nSystem.out.println(Car.name);\r\ncar.run();\r\ncar.play();\r\n\t}", "NewClass1 createNewClass1();", "public static void main(String[] args) {\n\t\tGraph g = new Graph();\r\n\t\tg.travellingSalesman();\r\n\t}", "public static void main(String[] args) {\n Beverage beverageOne = new DarkRoast();\n beverageOne = new SoyMilk(beverageOne);\n beverageOne = new Mocha(beverageOne);\n beverageOne = new Mocha(beverageOne);\n System.out.println(\"Order: \" + beverageOne.getDescription() + \"\\nCost: \" + beverageOne.cost());\n\n System.out.println();\n\n // Creating HouseBlend with Mocha\n Beverage beverageTwo = new HouseBlend();\n beverageTwo = new Mocha(beverageTwo);\n System.out.println(\"Order: \" + beverageTwo.getDescription() + \"\\nCost: \" + beverageTwo.cost());\n }", "public static void main(String[] args) {\n Virus Ebola = new Virus();\n // set member variables on the instance of Virus stored in Herpes\n Ebola.Baltimore = \"V\";\n Ebola.Order = \"Mononegavirales\";\n Ebola.Family = \"Filoviridae\";\n Ebola.Genus = \"Ebolavirus\";\n Ebola.Tropism = \"Anything it can liquefy\";\n Ebola.HumanOnly = false;\n Ebola.Envelope = false;\n Ebola.GenomeSize = 19;\n \n // send our Car instance to a helper method to print its member variables\n displayVirusStats(Ebola);\n // test its methods\n Ebola.startReplication();\n Ebola.notReplicating();\n Ebola.getCurrentSpeed();\n \n}", "public static void main(String[] args) {\n\t\tnew Grimpan();\n\t}", "public void runRoover() throws IOException\n { \n String drivingInstr = rooverSetUp();\n if (drivingInstr == null)\n return;\n \n //check to see if roover's original position has a dirt patch\n if (dirtSet.contains(Integer.toString(currXPos) + Integer.toString(currYPos)))\n {\n dirtSet.remove(Integer.toString(currXPos) + Integer.toString(currYPos));\n numPatchesCleaned++;\n }\n \n //at this point, currline will be the last line in our input, which is driving instructions\n char[] instructions = drivingInstr.toUpperCase().toCharArray();\n for (int i = 0; i < instructions.length; i++)\n {\n switch(instructions[i]) {\n case 'N':\n if (currYPos + 1 < numRows)\n {\n currYPos++;\n }\n break;\n case 'S':\n if (currYPos - 1 >= 0)\n {\n currYPos--;\n }\n break;\n case 'W':\n if (currXPos - 1 >= 0)\n {\n currXPos--;\n }\n break;\n case 'E':\n if (currXPos + 1 < numCols)\n {\n currXPos++;\n }\n break;\n default:\n System.err.println(\"Invalid driving instruction, please enter N, S, W, or E only.\");\n break;\n }\n \n if (dirtSet.contains(Integer.toString(currXPos) + Integer.toString(currYPos)))\n {\n dirtSet.remove(Integer.toString(currXPos) + Integer.toString(currYPos));\n numPatchesCleaned++;\n }\n }\n \n System.out.println(currXPos + \" \" + currYPos);\n System.out.println(numPatchesCleaned);\n }", "public static void main(String[] args) {\n\t\tReverse r=new Reverse();\r\n\t\tr.getInput();\r\n\t\tr.makeReverse();\r\n\t}", "public static void main(String[] args) {\n\t\tCar carUserObj = new Car();\n\t\t//carUserObj.sound();\n\t\tcarUserObj.drive();\n\t\tCar CarObject2= new Car();\n\t\tcarUserObj.changSpeed();\n\t\tSystem.out.println(\"enginType \"+ carUserObj.enginType);\n\t\t//System.out.println(\"modelName \"+ carUserObj.modelName);\n\t}", "public void myProgram();", "public static void main(String[] args) {\n\t\t\n\t\tRobot robot = new Robot();\n\t\trobot.drive();\n\t\trobot.honk();\n\t\trobot.fly();\n\t}", "public Puppy() {\n\t\t//TODO\n\t}", "public static void main(String[] args) {\n Van v = new Van(Colour.WHITE);\n System.out.println(v);\n \n Bicycle mountainbike = new Bicycle(BicycleType.MOUNTAINBIKE, 5);\n Bicycle roadbike = new Bicycle(BicycleType.ROADBIKE, 1);\n System.out.println(mountainbike);\n System.out.println(roadbike);\n \n CruiseShip cruiseship = new CruiseShip(\"QE2\", 1777, \"Southampton\");\n System.out.println(cruiseship);\n }", "public static void main(String[] args){\n Rectangle obj = new Rectangle(5, 3);\n }", "public static void main(String[] args) {\n\t\tP1 obj = new P1();\r\n\t\tobj.run();\r\n\t\tobj.jump();\r\n\t\tobj.walk();\r\n\r\n\t}", "public Shoe makeShoe() {\n\treturn new Shoe();\r\n}", "public Main() {}", "public static void main(String[]arg){\n Person person1 = new Person();\n person1.setName(\"Bright Kingsley\");\n person1.setPhone(\"08133193153\");\n person1.setAddress(\"Umudike\");\n System.out.println(\"The name is :\"+person1.getName());\n System.out.println(\"The Address is :\"+person1.getAddress());\n System.out.println(\"The Phone Number is :\"+person1.getPhone());\n \n Pearson ps1= new Pearson();\n Pearson ps= new Pearson(\"Chris\", \"070412937854\",\"Aba\");\n System.out.println(\"The name is :\"+ps.getName());\n System.out.println(\"The Address is :\"+ps.getAddress());\n System.out.println(\"The Phone Number is :\"+ps.getPhone());\n \n }", "public static void main(String[] args) {\n\t\tVehicle v2=new Vehicle(\"benz\",\"red\");\r\n\t\tv2.run();\r\n\t\t\r\n\t\tCar c1=new Car(2);\r\n\t\tc1.setBrand(\"benz\");\r\n\t\tc1.setColor(\"red\");\r\n\t\tc1.setLoader(2);\r\n\t\tc1.run();\r\n\r\n\t}", "public static void main(String[] args) {\n IDrink iDrink= new Restaurant(new Coffee());\n iDrink.getPrice();\n\n }", "public static void main(String[] args) {\nnew room();\n\n\t}", "public static void main(String[] args) {\n\n Reptiles rep1 = new Reptiles(Mainland.AFRICA, \"Morocco\", \"Nile Crocodile\" );\n Crocodile crocodile1 = new Crocodile(Mainland.AUSTRALIA, \"Australia\", \"Comb crocodile\", \"Male\", 5, 180);\n Crocodile crocodile2 = new Crocodile(Mainland.SOUTH_AMERICA, \"Mexico\", \"Wild crocodile\", \"Female\", 7, 400 );\n\n\n\n System.out.println(rep1. getInfo());\n System.out.println(crocodile1.getInfo());\n System.out.println(crocodile2.getInfo());\n\n rep1.makeVoice(\"Pppp\");\n rep1.makeVoice(4);\n\n\n\n\n\n\n\n\n\n }", "public Application() {\r\n monster1 = new Monster();\r\n treasure1 = new Treasure();\r\n in = new Scanner(System.in);\r\n }", "public static void main(String[] args) {\r\n\t\tPistol m9 = new Pistol(15, \"M9\", \"Black\", 9);\r\n\t\tPistol desertEagle = new Pistol(7, \"Desert Eagle\", \"Black/Silver\", 50);\r\n\t\t// m9 object created from pistol \"class\" object constructor.\r\n\t\tm9.shoot();\r\n\r\n\t\tdesertEagle.shoot();\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tTransmission transmission = new Transmission(false, 6);\r\n\t\tEngine engine = new Engine(2000, 165);\r\n\t\tCar car = new Car(4, \"sjfaniw\", transmission, engine); // transmission i\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// engine tutaj\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// to referencje\r\n\t\tcar.color = Color.RED;\r\n\t\tSystem.out.println(car);\r\n\t}", "public static void main(String[] args) {\n//\t\tcar.changeSize();\r\n//\t\tSystem.out.println(car);\r\n//\t\tcar.bigWheel();\r\n//\t\tSystem.out.println(car);\r\n//\t\tcar.getBody().setMaterial(\"Metall\");\r\n//\t\tSystem.out.println(car);\r\n\t\t\r\n\t\tCar car = new Car(\"Ferrari\", new Body(\"Alu\", \"Color\"), new SteeringWheel(17), new Wheel(17, 4));\r\n\t\tSystem.out.println(car);\r\n\t\tcar.changeSize();\r\n\t\tSystem.out.println(car);\r\n\t\tcar.bigWheel();\r\n\t\tSystem.out.println(car);\r\n\t\tcar.getBody().setMaterial(\"Metall\");\r\n\t\tSystem.out.println(car);\r\n\t}", "public static void main(String[] args) {\n new Program();\n }", "public static void main(String[] args) {\n Duck mallard = new MallardDuck();\n mallard.display();\n mallard.performQuack();\n mallard.performFly();\n\n System.out.println(\"\\n\");\n\n // creating a Rocket Duck\n Duck rocketMan = new RocketDuck();\n rocketMan.display();\n rocketMan.performQuack();\n rocketMan.performFly();\n\n }", "public Main() {\r\n\t\t\t// TODO Auto-generated constructor stub\r\n\t OntModel m = ModelFactory.createOntologyModel( OntModelSpec.OWL_MEM, null );\r\n\r\n\t // we have a local copy of the wine ontology\r\n/*\t m.getDocumentManager().addAltEntry( \"http://www.w3.org/2001/sw/WebOnt/guide-src/wine\",\r\n\t \"file:testing/reasoners/bugs/wine.owl\" );\r\n\t m.getDocumentManager().addAltEntry( \"http://www.w3.org/2001/sw/WebOnt/guide-src/food\",\r\n\t \"file:testing/reasoners/bugs/food.owl\" );*/\r\n\r\n//\t m.read( \"http://www.w3.org/2001/sw/WebOnt/guide-src/wine\" );\r\n\t m = loadOntModelFromOwlFile(\"C:\\\\Documents and Settings\\\\Administrador\\\\Escritorio\\\\Tesis\\\\Ontologias\\\\turismo2.owl\");\r\n\t ClassHierarchy classh = new ClassHierarchy();\r\n\t classh.showHierarchy2( System.out, m );\r\n\t classh.creoInd(m);\r\n\t classh.showHierarchy( System.out, m );\r\n\t\t}", "public static void main(String[] args) {\nScanner s=new Scanner(System.in);\r\nint a=s.nextInt();\r\nCar2 c=new Car2();\r\nc.about();\r\nc.speed(a);\r\n\t}", "public Rook()\n {\n super();\n }", "public static void main(String[] args) {\n\n\n //1.5 Call the above instance method into the Main method and Run the programme.\n\n Program1 obj = new Program1();\n obj.m1();\n\n\n }", "public RailRoad() {}", "public static void main(String[] args) {\n\t\tProgram.withoutFactoryMethod();\n\t\tSystem.out.println();\n\t\tProgram.withFactoryMethod();\n\t}", "public static void main(String[] args) {\n\t\tPerson person=new Person();// 创建一个外部类对象\n\t\tperson.name=\"三\";\n\t\tperson.live=false;\n\t\tHeart heart=person.new Heart();\n\t\theart.jump();\n\t}", "public Main() {\n \n \n }", "Strobo createStrobo();", "public static void main(String [ ] args)\n\t{\n\t\tPantry thePantry = new Pantry();\n\t\tChef theChef = new Chef();\n\t\tRunner theRunner = new Runner();\n\t RestrauntGameBoard theBoard = new RestrauntGameBoard();\n\t \n\t \n\t theBoard.stockPantry(thePantry.allItems);\n\t \n\t \n\t\n\t}", "public Main() {\r\n }", "public Main() {\r\n }", "private void gen_rdp_pc() {\r\n // create prolog: coordinates, name, display options, default properties\r\n // first, set the visual properties for the source code\r\n SourceCodeProperties scProps = new SourceCodeProperties();\r\n scProps.set(AnimationPropertiesKeys.CONTEXTCOLOR_PROPERTY, Color.BLUE);\r\n scProps.set(AnimationPropertiesKeys.FONT_PROPERTY, new Font(\"Monospaced\",\r\n Font.PLAIN, 12));\r\n scProps.set(AnimationPropertiesKeys.HIGHLIGHTCOLOR_PROPERTY, Color.RED);\r\n scProps.set(AnimationPropertiesKeys.COLOR_PROPERTY, Color.BLACK);\r\n\r\n // now, create the prolog entity\r\n SourceCode prolog = lang.newSourceCode(new Coordinates(15, 40), \"prolog\",\r\n null, scProps);\r\n\r\n // add the lines to the prolog object.\r\n // line, name, indentation, display delay\r\n prolog\r\n .addCodeLine(\r\n \"The Ramer-Douglas-Peucker algorithm is an algorithm for reducing the number\",\r\n null, 0, null); // 0\r\n prolog.addCodeLine(\r\n \"of points in a curve that is approximated by a series of points.\",\r\n null, 0, null); // 1\r\n prolog\r\n .addCodeLine(\r\n \"The initial form of the algorithm was independently suggested in 1972\",\r\n null, 0, null); // 2\r\n prolog.addCodeLine(\r\n \"by Urs Ramer and 1973 by David Douglas and Thomas Peucker.\", null, 0,\r\n null); // 3\r\n prolog.addCodeLine(\" \", null, 0, null); // 4\r\n prolog\r\n .addCodeLine(\r\n \"The purpose of the algorithm is, given a curve composed of line segments,\",\r\n null, 0, null); // 5\r\n prolog\r\n .addCodeLine(\r\n \"to find a similar curve with fewer points. The algorithm defines 'dissimilarity'\",\r\n null, 0, null); // 6\r\n prolog\r\n .addCodeLine(\r\n \"based on the maximum distance between the original curve and the simplified curve.\",\r\n null, 0, null); // 6\r\n prolog\r\n .addCodeLine(\r\n \"The simplified curve consists of a subset of the points that defined the original curve.\",\r\n null, 0, null); // 6\r\n prolog.addCodeLine(\" \", null, 0, null); // 6\r\n prolog\r\n .addCodeLine(\r\n \"The Ramer-Douglas-Peucker algorithm finds its application within processing of \",\r\n null, 0, null); // 6\r\n prolog\r\n .addCodeLine(\r\n \"vector graphics and in cartographic generalization. One can find it also in robotics.\",\r\n null, 0, null); // 6\r\n\r\n // create code entity\r\n code = lang\r\n .newSourceCode(new Coordinates(15, 40), \"code\", null, SourceCode);\r\n code.addCodeLine(\"Input: points=\" + p + \"; \" + \"epsilon=\" + e + \"; \", null,\r\n 0, null);\r\n code.addCodeLine(\" \", null, 1, null);\r\n code.addCodeLine(\"ResultList.add(PointList[1], PointList[end]);\", null, 0,\r\n null);\r\n code.addCodeLine(\"pdp(PointList[],1,(PointList[].size()),epsilon);\", null,\r\n 0, null);\r\n code.addCodeLine(\"function rdp(lPointList[], start, end, l_epsilon) {\",\r\n null, 0, null);\r\n code.addCodeLine(\r\n \"dmax = OrthogonalMaxDistance(PointList[start+1...end-1]);\", null, 1,\r\n null);\r\n code.addCodeLine(\"index = OrthogonalMaxDistancePointIndex();\", null, 1,\r\n null);\r\n code.addCodeLine(\"if (dmax >= epsilon){\", null, 1, null);\r\n code.addCodeLine(\r\n \"ResultList.add(lPointList.get(index)); //add a split point\", null, 2,\r\n null);\r\n code.addCodeLine(\r\n \"pdp(lPointList[],start,index,l_epsilon); //go recursively left\", null,\r\n 2, null);\r\n code.addCodeLine(\r\n \"pdp(lPointList[],index,end,l_epsilon); //go recursively right\", null,\r\n 2, null);\r\n code.addCodeLine(\"}else{\", null, 1, null);\r\n code.addCodeLine(\"//dmax < l_epsilon: no new 'dissimilar' points to add\",\r\n null, 2, null);\r\n code.addCodeLine(\"}endif\", null, 1, null);\r\n code.addCodeLine(\"return ResultList[];\", null, 1, null);\r\n code.addCodeLine(\"}\", null, 0, null);\r\n\r\n SourceCodeProperties scPROPERTIES = new SourceCodeProperties();\r\n scPROPERTIES.set(AnimationPropertiesKeys.CONTEXTCOLOR_PROPERTY, Color.BLUE);\r\n scPROPERTIES.set(AnimationPropertiesKeys.FONT_PROPERTY, new Font(\r\n \"Monospaced\", Font.PLAIN, 12));\r\n scPROPERTIES\r\n .set(AnimationPropertiesKeys.HIGHLIGHTCOLOR_PROPERTY, Color.RED);\r\n scPROPERTIES.set(AnimationPropertiesKeys.COLOR_PROPERTY, Color.BLACK);\r\n\r\n SourceCode func_desc = lang.newSourceCode(new Coordinates(15, 245),\r\n \"func_desc\", null, scPROPERTIES);\r\n func_desc.addCodeLine(\"Remarks:\", null, 0, null);\r\n func_desc.addCodeLine(\r\n \"The algorithm makes use of the following functions:\", null, 0, null);\r\n func_desc\r\n .addCodeLine(\r\n \"OrthogonalMaxDistance() - computes orthogonal distance from a point to a line segment;\",\r\n null, 0, null);\r\n func_desc\r\n .addCodeLine(\r\n \"OrthogonalMaxDistancePointIndex() - retrieves the index and coordinates of the furtherst point.\",\r\n null, 0, null);\r\n func_desc.addCodeLine(\"\", null, 0, null);\r\n func_desc\r\n .addCodeLine(\r\n \"There are different approaches how to compute orthogonal distances: e.g. least squares or least circles for 2D.\",\r\n null, 0, null);\r\n func_desc.addCodeLine(\"\", null, 0, null);\r\n func_desc\r\n .addCodeLine(\r\n \"Practically it might be effective to combine both functions or even to embedd OrthogonalMaxDistancePointIndex()\",\r\n null, 0, null);\r\n func_desc\r\n .addCodeLine(\r\n \"directly within OrthogonalMaxDistance(), where OrthogonalMaxDistance() is executed against the current set\",\r\n null, 0, null);\r\n func_desc\r\n .addCodeLine(\r\n \"of points, and goes through every point in the set located within the given line segment computing their\",\r\n null, 0, null);\r\n func_desc\r\n .addCodeLine(\r\n \"orthogonal distances; here OrthogonalMaxDistancePointIndex() keeps track of the most distant point\",\r\n null, 0, null);\r\n func_desc.addCodeLine(\"and retrieves its index and coordinates.\", null, 0,\r\n null);\r\n\r\n func_desc.highlight(0);\r\n code.hide();\r\n lang.nextStep();\r\n\r\n code.show();\r\n func_desc.hide();\r\n prolog.hide();\r\n\r\n lang.nextStep();\r\n }", "public static void main(String[] args){\n Vehicle bike = new Vehicle(\"blue\");\n // Vehicle car = new Vehicle();\n // contruct is being used on this new object\n Vehicle redCar = new Vehicle(\"red\");\n System.out.println(redCar.getColor());\n\n // set bike color and wheels\n // bike.setColor(\"Blue\");\n bike.setNumberOfWheels(2);\n\n // get bike color and wheels\n System.out.println(\" Bike object - color\" + bike.getColor());\n System.out.println(\" Bike object - Wheels\" + bike.getNumberOfWheels());\n // set car color and wheels\n // car.setColor(\"Green\");\n // car.setNumberOfWheels(4);\n\n // get car color and wheels\n // System.out.println(\" Car object - color\" + car.getColor());\n // System.out.println(\" Car object - Wheels\" + car.getNumberOfWheels());\n\n\n }", "public Main() {\n }", "public Main() {\n }", "public Main() {\n }", "public static void main(String[] args) {\r\n\r\n\t\tCar obj = new Car();\r\n\t\tobj.applyBrake();\r\n\r\n\t\t/*\r\n\t\t * obj.applyBrake(); obj.soundHorn();\r\n\t\t */\r\n\t\t// obj.driveCar();\r\n\r\n\t}", "public Main() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tLion l = new Lion();\r\n\t\tSystem.out.println(l);\r\n\t}" ]
[ "0.64300084", "0.64300084", "0.64300084", "0.5631515", "0.5538715", "0.54806894", "0.54785305", "0.5458714", "0.54214543", "0.53843886", "0.538159", "0.53586537", "0.5352706", "0.53382224", "0.5330065", "0.5322794", "0.52720934", "0.52663654", "0.52642936", "0.5258836", "0.5251091", "0.52317286", "0.522792", "0.5205106", "0.51999366", "0.51912147", "0.5162347", "0.51568836", "0.5156278", "0.51534367", "0.51534367", "0.51464945", "0.51439667", "0.5142169", "0.5141074", "0.5137815", "0.5137636", "0.5131844", "0.5125404", "0.5123689", "0.5117971", "0.5117198", "0.5111781", "0.51074785", "0.5106816", "0.50955236", "0.50934625", "0.5088475", "0.5085182", "0.508505", "0.5080944", "0.5079678", "0.5076199", "0.5075565", "0.5073942", "0.5068587", "0.50662774", "0.50633985", "0.50608313", "0.5059573", "0.5050608", "0.5050123", "0.5045923", "0.50444543", "0.50429165", "0.50404435", "0.5032065", "0.5028727", "0.5028534", "0.50277144", "0.5026011", "0.50244755", "0.50196403", "0.5018377", "0.50154364", "0.50147283", "0.5012299", "0.500687", "0.5006624", "0.500542", "0.5003219", "0.50012445", "0.50011384", "0.49979812", "0.49970168", "0.49941492", "0.49931923", "0.4993081", "0.49929085", "0.49914", "0.49873522", "0.49873522", "0.49818417", "0.49816796", "0.4981526", "0.4974811", "0.4974811", "0.49745744", "0.4971624", "0.49715534" ]
0.85696584
0
Returns a new object of class 'Param'.
Param createParam();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Parameter createParameter();", "PARAM createPARAM();", "ParameterStructInstance createParameterStructInstance();", "protected static ParameterDef createParameter(final String param) {\n return new ParameterDef(new Variable(param), ParameterType.READ_ONLY);\n }", "default HxParameter createParameter(final Class<?> cls) {\n return createParameter(cls.getName());\n }", "ParamMap createParamMap();", "ComponentParameterInstance createComponentParameterInstance();", "public com.guidewire.datamodel.ParamDocument.Param addNewParam()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.guidewire.datamodel.ParamDocument.Param target = null;\r\n target = (com.guidewire.datamodel.ParamDocument.Param)get_store().add_element_user(PARAM$14);\r\n return target;\r\n }\r\n }", "HxParameter createParameter(final String className);", "public Object getParam() {\n return param;\n }", "private ConfigurationObject createParam(int num, String type, String value) throws Exception {\r\n ConfigurationObject param = new DefaultConfigurationObject(\"param\" + num);\r\n param.setPropertyValue(PROPERTY_TYPE, type);\r\n param.setPropertyValue(PROPERTY_VALUE, value);\r\n\r\n return param;\r\n }", "public ParamJson() {\n\t\n\t}", "public static Parameter parameter(String name) {\n\t\treturn Parameter.create(name);\n\t}", "JRParameter createJRParameter();", "public BaseParameters(){\r\n\t}", "private Params()\n {\n }", "public LightParameter()\r\n\t{\r\n\t}", "ParamConfig getWrappedParam(String name);", "public Parameters() {\n\t}", "ParamValueRelation createParamValueRelation();", "public JParameterRecord() {\n super(JParameter.PARAMETER);\n }", "NamedParameter createNamedParameter();", "ParameterIdentification createParameterIdentification();", "private IParameter getInstance(Class klass,boolean debug){\n // get the constructor\n Constructor construct=null;\n try{\n construct=klass.getConstructor(new Class[]{String.class,Object.class});\n }catch(NoSuchMethodException e){\n if(debug) System.out.println(\"(NoSuchMethodException) NO\");\n return null;\n }\n\n // get the instance\n IParameter param=null;\n Object[] objArray={null,null};\n try{\n param=(IParameter)construct.newInstance(objArray);\n }catch(InvocationTargetException e){\n if(debug) System.out.println(\"(InvocationTargetException) NO\");\n return null;\n }catch(ClassCastException e){\n if(debug) System.out.println(\"(ClassCastException) NO\");\n return null;\n }catch(InstantiationError e){\n if(debug) System.out.println(\"(InstantiationError) NO\");\n return null;\n }catch(InstantiationException e){\n if(debug) System.out.println(\"(InstantiationException) NO\");\n return null;\n }catch(IllegalAccessException e){\n if(debug) System.out.println(\"(IllegalAccessException) NO\");\n return null;\n }\n\n return param;\n }", "public Setparam() {\r\n super();\r\n }", "public LnwRestrictionFunction addParam( Object param ) {\n\t\tvalues.add( LnwSqlParameter.adaptData(param) );\n\t\treturn this;\n\t}", "public Parameter(Parameter template){\n\t\tthis(template.getName(),template.isRequired(),\n\t\t\t template.getType(),(T) template.getDefaultValue());\n\t}", "ParameterBinding createParameterBinding();", "ParameterRefinement createParameterRefinement();", "ParamMapEntry createParamMapEntry();", "private ConfigurationObject createParamReference(int num, String name) throws Exception {\r\n ConfigurationObject param = new DefaultConfigurationObject(\"param\" + num);\r\n param.setPropertyValue(PROPERTY_NAME, name);\r\n\r\n return param;\r\n }", "public IParameter getInstance(String type){\n if(!initialized)\n throw new IllegalStateException(\"constructor never finished\");\n Class klass=(Class)paramList.get(type);\n if(klass==null)\n return null;\n else\n return getInstance(klass,false);\n }", "protected ModelParameter newParameter(boolean isIn, String name, ModelType type) {\n\t\tModelParameter p = new ModelParameter();\n\t\tp.setName(name);\n\t\tp.setIn(isIn);\n\t\tp.setType(type);\n\t\treturn p;\n\t}", "public GeneralParameters instantiate() {\n return instantiate(null);\n }", "public T getParam() {\n\t\treturn param;\n\t}", "public ListParameter()\r\n\t{\r\n\t}", "default HxParameter createParameter(final HxType parameterType) {\n return createParameter(parameterType.getName());\n }", "public UserParameter() {\n }", "public MetaParameter() {\n m_aParams = new ArrayList();\n }", "private Parameter(int key, String name, String value){\n this.key = key;\n this.name = name;\n this.value = value;\n }", "private Parameter formalParameter()\r\n {\r\n Parameter x = new Parameter();\r\n\r\n x.modify = 0;\r\n if (nextSymbol == Keyword.FINALSY)\r\n {\r\n x.modify = nextSymbol.value;\r\n lookAhead();\r\n }\r\n\r\n x.type = type();\r\n variableDeclaratorId(x);\r\n\r\n return x;\r\n }", "private Parameter(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }", "public Parameter(Parameter p) {\n\t\tnumPts = p.numPts;\n\t\tvelocityScale = p.velocityScale;\n\t\tinitVel = p.initVel;\n\t\tinitMass = p.initMass;\n\t\tinitDensity = p.initDensity;\n\t\tinitPressure = p.initPressure;\n\t\tinitPtSpacing = p.initPtSpacing;\n\t\th = p.h;\n\t\tc = p.c;\n\t\tmachNum = p.machNum;\n\t\tbetaMax = p.betaMax;\n\t\tnu = p.nu;\n\t\tbodyFX = p.bodyFX;\n\t\tbodyFY = p.bodyFY;\n\t\tdensityVariation = p.densityVariation;\n\t\tlengthScale = p.lengthScale;\n\t\tfirstOutput = p.firstOutput;\n\t\toutputEvery = p.outputEvery;\n\t\tnumSteps = p.numSteps;\n\t\tdeltaT = p.deltaT;\n\t}", "public ModuleParams()\n\t{\n\t}", "MessageParameter createMessageParameter();", "public ModuleParams() {\n }", "String toParameter();", "SystemParamModel createSystemParamModel();", "protected IParameter createParameter(IEvent event, String ident)\n\t\t\tthrows RodinDBException {\n\t\tIParameter parameter = event.createChild(IParameter.ELEMENT_TYPE, null, null);\n\t\tparameter.setIdentifierString(ident, null);\n\t\treturn parameter;\n\t}", "IParameter getParameter();", "public ObjectParamView init(Object obj)\n\t{\n\t\tif((obj instanceof ObjectParam))\n\t\t\tthis.init((ObjectParam) obj);\n\t\treturn this;\n\t}", "public <P extends Parameter> P parameter(Class<P> kind, int index);", "public Parameterized() {\n setParameters(null);\n }", "public TParametrosVOImpl() {\r\n }", "private LocalParameters() {\n\n\t}", "public static ParameterExpression parameter(Class type, String name) { throw Extensions.todo(); }", "public BaseBlParameter (java.lang.Integer id) {\n\t\tthis.setId(id);\n\t\tinitialize();\n\t}", "protected static ParameterDef createRwParameter(final String param) {\n return new ParameterDef(new Variable(param), ParameterType.READ_WRITE);\n }", "public Parameters getParameters() {\n\t\tElement params = getModelXMLElement(\"parameters\");\n\t\tif (params != null) {\n\t\t\tParameters p = new Parameters();\n\t\t\tNodeList nl = params.getElementsByTagName(\"param\");\n\t\t\tdouble[] cur = new double[nl.getLength()];\n\t\t\tfor (int i = 0; i < nl.getLength(); i++) {\n\t\t\t\tNode n = nl.item(i);\n\t\t\t\tString name = getNodeAttributeValue(n, \"name\");\n\t\t\t\t// Set \\mu_i if no name is given.\n\t\t\t\tif (name == null) {\n\t\t\t\t\tname = \"\\u00B5_\" + i;\n\t\t\t\t}\n\t\t\t\t// Add\n\t\t\t\tp.addParam(name, Double.parseDouble(getNodeAttributeValue(n, \"min\")),\n\t\t\t\t\t\tDouble.parseDouble(getNodeAttributeValue(n, \"max\")));\n\t\t\t\t// Extract default values and set as current, take min value if\n\t\t\t\t// no default is set\n\t\t\t\tString def = getNodeAttributeValue(n, \"default\");\n\t\t\t\tcur[i] = def != null ? Double.parseDouble(def) : p.getMinValue(i);\n\t\t\t}\n\t\t\tp.setCurrent(cur);\n\t\t\treturn p;\n\t\t}\n\t\treturn null;\n\t}", "public ParametersBuilder() {\n this(Parameters.DEFAULT);\n }", "public BehaviorPlugin(ParameterWrapper param) \n\t{\t\n\t\tthis.param = param;\n\t\trand = new Random();\n\t\tparam.color = new Color(rand.nextInt(255), rand.nextInt(255), rand.nextInt(255));\n\t\tif(param.speed <= 0.0)\n\t\t\tparam.speed = param.minSpeed;\n\t\n\t}", "P createP();", "public ParameterizedInstantiateFactory() {\r\n super();\r\n }", "public static ParameterExpression parameter(Class type) { throw Extensions.todo(); }", "public CMObject newInstance();", "Parameter getParameter();", "static ParameterLine generateParameterLine(final ParameterInterface pi, final String param,\r\n final ActionListener listener) {\n final String paramName = Mysys.encString(param);\r\n final Object paramValue = pi.getParameter(param);\r\n final List<Class<?>> allowedClasses = pi.getAllowedClass(param);\r\n final ParameterLine retObj = new ParameterLine();\r\n retObj.setOpisByClass(allowedClasses, paramName, listener);\r\n retObj.setComponentByClass(allowedClasses, paramValue);\r\n return retObj;\r\n }", "public Parameter newParameter( String code, String strDescription, ParameterCategory category) {\r\n return new Parameter( code,strDescription,category);\r\n }", "private DBParameter() {\n }", "BParameterTyping createBParameterTyping();", "private ConfigParamSpecification(Name simpleName, TypeName returnType) {\n this.simpleName = simpleName;\n this.returnType = returnType;\n }", "public abstract Object getTypedParams(Object params);", "private Parameter(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Parameter(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "Object getParameter(String name);", "protected static ParameterDef createListParameter(final String param) {\n return new ParameterDef(new Variable(param), ParameterType.LIST);\n }", "public Object setParam(Parameter p, Object value) throws InvalidParameterException{\n\t\tvalue = ParamUtil.checkValue(p,value);\r\n\t\t\r\n\t\t//Store\r\n\t\treturn params.put(p, value);\r\n\t}", "public ParameterId(String pName, String paramType) {\n\t\tthis.pName = pName;\n\t\tthis.paramType = paramType;\n\t}", "public interface Parameter {\n\n\t/**\n\t * Returns the actual parameter value given the inputs provided as arguments.\n\t * If the actual value cannot be retrieved (missing information), throws \n\t * an exception.\n\t * \n\t * @param input the input assignment\n\t * @return the actual parameter value\n\t */\n\tpublic double getParameterValue (Assignment input) ;\n\t\n\t\n\t/**\n\t * Returns the (possibly empty) set of parameter identifiers used in the \n\t * parameter object.\n\t * \n\t * @return the collection of parameter labels \n\t */\n\tpublic Collection<String> getParameterIds();\n\n\t\n\t\n\t/**\n\t * Adds the value of the two parameters and returns the result\n\t * \n\t * @param otherPram the parameter to add\n\t * @return the result of the addition\n\t */\n\tpublic Parameter sumParameter(Parameter otherPram); \n\t\n\t/**\n\t * Multiplies the value of the two parameters and returns the result\n\t * \n\t * @param otherPram the parameter to multiply\n\t * @return the result of the multiplication\n\t */\n\tpublic Parameter multiplyParameter(Parameter otherPram); \n\t\n}", "public StaticScript parameter(String name, Object value) {\n if (parameters == null) {\n parameters = new HashMap<String, Object>();\n }\n parameters.put(name, value);\n return this;\n }", "String getParam( String paraName );", "private Point(int param, double value) {\r\n this(param, value, false);\r\n }", "public void setParameter(String parName, Object parVal) throws HibException ;", "public interface ParamResolverFactory<T> {\n ParamResolver<T> createParamResolver(Parameter parameter);\n}", "public Node parameter()\r\n\t{\r\n\t\tint index = lexer.getPosition();\r\n\t\tif(lexer.getToken()==Lexer.Token.IDENTIFIER)\r\n\t\t{\r\n\t\t\tif(lexer.getString().equals(\"p\"))\r\n\t\t\t{\r\n\t\t\t\tif(lexer.getToken()==Lexer.Token.LEFT_BRACKETS)\r\n\t\t\t\t{\r\n\t\t\t\t\tNode var = variable();\r\n\t\t\t\t\tif(var!=null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tString name = lexer.getString();\r\n\t\t\t\t\t\tif(lexer.getToken()==Lexer.Token.COMMA)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(lexer.getToken()==Lexer.Token.NUM\r\n\t\t\t\t\t\t\t&& !lexer.getString().contains(\".\"))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tint derivative = Integer.parseInt(lexer.getString());\r\n\t\t\t\t\t\t\t\tif(lexer.getToken()==Lexer.Token.COMMA)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tif(lexer.getToken()==Lexer.Token.NUM\r\n\t\t\t\t\t\t\t\t\t&& !lexer.getString().contains(\".\"))\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tint phase = Integer.parseInt(lexer.getString());\r\n\t\t\t\t\t\t\t\t\t\tif(lexer.getToken()==Lexer.Token.RIGHT_BRACKETS)\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tParameter parsed = new Parameter(name,derivative,phase,null);\r\n\t\t\t\t\t\t\t\t\t\t\tfor(Parameter pars : parameters)\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tif(pars.equals(parsed))\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn pars;\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tparameters.add(parsed);\r\n\t\t\t\t\t\t\t\t\t\t\treturn parsed;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tlexer.setPosition(index);\r\n\t\treturn null;\r\n\t}", "@Override\n public ParameterDefinition newInstance(StaplerRequest req, JSONObject formData) throws hudson.model.Descriptor.FormException {\n if (req != null) {\n List<Ancestor> ancestors = req.getAncestors();\n AbstractProject<?, ?> project = null;\n for (Ancestor ancestor : ancestors) {\n Object object = ancestor.getObject();\n if (object instanceof AbstractProject<?, ?>) {\n project = (AbstractProject<?, ?>) object;\n break;\n }\n }\n this.project = project;\n }\n return super.newInstance(req, formData);\n }", "ParameterSource createParameterSource();", "@SuppressWarnings(\"unchecked\")\n static <T> T newRandomArg(Random random, Class<T> paramType) {\n if (!paramType.isPrimitive() && random.nextInt(10) == 0) {\n return null;\n }\n final Function<Random, Object> producer = argProducers.get(paramType);\n assertNotNull(\"No producer for arguments of type \" + paramType.getName() + \" found\", producer);\n return (T) producer.apply(random);\n }", "public interface Params {\n }", "public OBDParamCollection() {\n\t\tparser = new OBDParamFormulaParser();\n\t}", "public MParameterSystem() {\n\t\tsuper();\n\t}", "public Object getParam(String param) {\n\t\treturn applicationParams.get(param);\n\t}", "private Point(int param, double value, boolean measured) {\r\n this.param = param;\r\n this.value = value;\r\n this.measured = measured;\r\n }", "public OAuthParameters createParameters() {\n OAuthParameters result = new OAuthParameters();\n result.consumerKey = this.consumerKey;\n result.signer = this.signer;\n return result;\n }", "@JsonCreator\n public ParameterDefinition(@JsonProperty(value = \"name\", required = true) String name) {\n this.name = name;\n }", "void setParameter(String name, Object value);", "private LesenRPCParameter(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private final void addParam(Object oParam, final int piModule)\n\t{\n\t\tswitch(piModule)\n\t\t{\n\t\t\tcase PREPROCESSING:\n\t\t\t\tthis.oPreprocessingParams.add(oParam);\n\t\t\t\tbreak;\n\n\t\t\tcase FEATURE_EXTRACTION:\n\t\t\t\tthis.oFeatureExtraction.add(oParam);\n\t\t\t\tbreak;\n\n\t\t\tcase CLASSIFICATION:\n\t\t\t\tthis.oClassification.add(oParam);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tMARF.debug(\"ModuleParams.addParam() - Unknown module type: \" + piModule);\n\t\t}\n\t}" ]
[ "0.74869335", "0.71336603", "0.6880125", "0.66832507", "0.64831567", "0.64729106", "0.64239204", "0.6410029", "0.6224486", "0.62041813", "0.61916655", "0.6188823", "0.61844957", "0.6182748", "0.6166019", "0.61643404", "0.61201644", "0.6120102", "0.6111926", "0.61064494", "0.6061505", "0.6050551", "0.60040534", "0.6002707", "0.5933328", "0.5930654", "0.5928307", "0.5919487", "0.58994764", "0.5896399", "0.5888647", "0.5888314", "0.5871058", "0.58060634", "0.5797838", "0.5793801", "0.57905287", "0.5783978", "0.57685655", "0.57684284", "0.5761458", "0.5755439", "0.57465655", "0.5745433", "0.5740803", "0.5730267", "0.571872", "0.5685602", "0.5676407", "0.56757706", "0.5675031", "0.5662303", "0.5658411", "0.563415", "0.5613375", "0.5606311", "0.55988747", "0.5577413", "0.55767655", "0.5558378", "0.55334616", "0.55276716", "0.55224097", "0.5498501", "0.5492211", "0.54867965", "0.54721236", "0.54653555", "0.54639655", "0.54526556", "0.54419863", "0.5436123", "0.5432192", "0.5432192", "0.54259676", "0.54256284", "0.54229957", "0.54188454", "0.54132307", "0.54123974", "0.5411794", "0.5410974", "0.5408805", "0.5404349", "0.5402092", "0.5382785", "0.5379473", "0.5368743", "0.5367269", "0.53554356", "0.53533477", "0.5349559", "0.5348117", "0.53195465", "0.5315199", "0.5311432", "0.5309363", "0.5308142" ]
0.8269285
2
Returns a new object of class 'Var Assignment'.
VarAssignment createVarAssignment();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Variable createVariable();", "Variable createVariable();", "VarReference createVarReference();", "Assignment createAssignment();", "Assignment createAssignment();", "private Stmt varDeclaration() {\n Token name = consume(IDENTIFIER, \"Expect variable name.\");\n Expr initializer = null;\n // Parse the initializer if an '=' is present. This branching allows initialization without declaration.\n if(match(EQUAL)) {\n initializer = expression();\n }\n\n consumeSemi(\"Expect ';' after variable declaration.\");\n return new Stmt.Var(name, initializer);\n }", "public VariableIF createVariable(VariableDecl decl);", "VariableExp createVariableExp();", "public Var(String var) {\r\n this.variable = var;\r\n }", "public Variable(String name) {\r\n\t\tName = name;\r\n\t\tValues = new ArrayList<>();\r\n\t\tParents = new ArrayList<>();\r\n\t\tCPT = new TreeMap<>();\r\n\t}", "public Variable(String name) {\n this.name = name;\n checkRep();\n }", "public Variable(String name){\n this.name = name;\n }", "public Variable(String name) {\r\n\tthis.name = name;\r\n }", "Variable(String _var) {\n this._var = _var;\n }", "public Value( String inName, Variable inVar, int inIndex )\n {\n _var = inVar;\n _name = inName;\n _index = inIndex;\n }", "public Stmt createAssignment(Assign expr) {\n return createEval(expr);\n }", "@Override String opStr() { return \"var\"; }", "public static Variable variable( String name )\n {\n NullArgumentException.validateNotNull( \"Variable name\", name );\n return new Variable( name );\n }", "VarRef createVarRef();", "public Assign createAssign(Position pos, Expr target, Operator op, Expr source) {\n return (Assign) xnf.Assign(pos, target, op, source).type(target.type());\n }", "VariableDeclaration createVariableDeclaration();", "public ExprVar(FEContext context, String name)\n {\n super(context);\n this.name = name;\n }", "@Override\n\tpublic void visit(AssignNode node) {\n\t\tEvaluator.evaluate(node.getChild(0));\n\t\tEvaluator.evaluate(node.getChild(1));\n\n\t\t/**\n\t\t * Verificam fiii si construim perechea Variabila, Valoare pentru a fi\n\t\t * inserata in HahMap-ul din Evaluator\n\t\t */\n\t\tVariable x = null;\n\t\tValue i = null;\n\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\tx = new Variable(node.getChild(1).getName());\n\t\t} else {\n\t\t\ti = new Value(node.getChild(1).getName());\n\t\t}\n\n\t\tif (node.getChild(0) instanceof Variable) {\n\t\t\tx = new Variable(node.getChild(0).getName());\n\t\t} else {\n\t\t\ti = new Value(node.getChild(0).getName());\n\t\t}\n\t\tEvaluator.variables.put(x.getName(), i.getName());\n\t\tnode.setName(i.getName());\n\t}", "Variables createVariables();", "Assign createAssign();", "protected Element initAssuranceToMyVar() {\n\t\tElement an = el(\"bpws:assign\", new Node[]{\n\t\t\t\tinitMyVar(new Node[]{\n\t\t\t\t\tel(\"nswomoxsd:type\", text(\"Assurance\")),\n\t\t\t\t\tel(\"nswomoxsd:leftValue\", text(\"0\")),\n\t\t\t\t\tel(\"nswomoxsd:rightValue\", text(\"0\")),\n\t\t\t\t\tel(\"nswomoxsd:value\", text(\"0\"))\n\t\t\t\t}),\n\t\t\t\tsetProcId()\n\t\t});\n\t\treturn an;\n\t}", "Var getVar();", "AliasVariable createAliasVariable();", "Variable(Object names[]) {\n _vname = makeName(names).intern();\n _names = names;\n \n }", "public JCExpressionStatement makeAssignment(Tag tag, String varname, JCExpression exp1, JCExpression exp2) {\n return treeMaker.Exec(treeMaker.Assign(treeMaker.Ident(getNameFromString(varname)), treeMaker.Binary(tag, exp1, exp2)));\n }", "VariableRef createVariableRef();", "DynamicVariable createDynamicVariable();", "@Override\n public Expression assign(String var, Expression expression) {\n return new Minus(getExpression1().assign(var, expression), getExpression2().assign(var, expression));\n }", "public Expression assign(String var, Expression expression) {\r\n // if this variable is val no meter if is capital or small letter.\r\n if (this.variable.equalsIgnoreCase(var)) {\r\n return expression;\r\n }\r\n return this;\r\n }", "ControlVariable createControlVariable();", "VarsDeclRule createVarsDeclRule();", "@Override\n public void enterVar_assign(FSMParser.Var_assignContext ctx) {\n if (findComp(ctx.var().NAME().getText()) == null) {\n Var temp = new Var(\n ctx.var().NAME().getText(),\n Integer.parseInt(ctx.var().INT().getText()),\n false, false, false);\n this.comps.add(temp);\n\n }\n }", "public final PythonParser.with_var_return with_var() throws RecognitionException {\n PythonParser.with_var_return retval = new PythonParser.with_var_return();\n retval.start = input.LT(1);\n\n PythonTree root_0 = null;\n\n Token set172=null;\n PythonParser.expr_return expr173 = null;\n\n\n PythonTree set172_tree=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:987:5: ( ( AS | NAME ) expr[expr_contextType.Store] )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:987:7: ( AS | NAME ) expr[expr_contextType.Store]\n {\n root_0 = (PythonTree)adaptor.nil();\n\n set172=(Token)input.LT(1);\n if ( input.LA(1)==NAME||input.LA(1)==AS ) {\n input.consume();\n if ( state.backtracking==0 ) adaptor.addChild(root_0, (PythonTree)adaptor.create(set172));\n state.errorRecovery=false;state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n pushFollow(FOLLOW_expr_in_with_var4012);\n expr173=expr(expr_contextType.Store);\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, expr173.getTree());\n if ( state.backtracking==0 ) {\n\n retval.etype = actions.castExpr((expr173!=null?((PythonTree)expr173.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 }\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 }", "@FunctionalInterface\n\tpublic interface Assignment<V> {\n\t\tV set(Program p,V v);\n\t}", "<C, PM> Variable<C, PM> createVariable();", "public Variable(){\n name = \"\";\n initialValue = 0;\n }", "static Pool newVariablePool() {\n return new VariablePool();\n }", "public ActRuVariable(Name alias) {\n this(alias, ACT_RU_VARIABLE);\n }", "public static DecisionOperator<IntVar> assign() {\n return DecisionOperator.int_eq;\n }", "public interface AssignmentNode extends StackOperationNode {\n\n TemporaryVariableName getValueName();\n\n}", "@Override\n public Expression assign(String var, Expression expression) {\n Expression left = super.getLeft();\n Expression right = super.getRight();\n return new Mult(left.assign(var, expression), right.assign(var, expression));\n }", "@Override\n public Expression assign(String var, Expression expression) {\n Expression e1 = getEx2().assign(var, expression);\n Expression e2 = getEx2().assign(var, expression);\n return new Log(e1, e2);\n }", "public Stmt createAssignment(Position pos, Expr target, Operator op, Expr source) {\n return createAssignment(createAssign(pos, target, op, source));\n }", "@Override\n public void visit(VariableAssignNode variableAssignNode) {\n }", "public Element compileVarDec() {\n\t\tElement ele = null;\n\t\tString type;\n\t\tString token, tokenType;\n\n\t\tElement varDecParent = document.createElement(\"varDec\");\n\n\t\t// \"var\"\n\t\ttokenType = jTokenizer.tokenType();\n\t\tele = createXMLnode(tokenType);\n\t\tvarDecParent.appendChild(ele);\n\n\t\t// The type of the var\n\t\tjTokenizer.advance();\n\t\ttokenType = jTokenizer.tokenType();\n\t\ttoken = jTokenizer.returnTokenVal(tokenType);\n\t\ttype = token;\n\t\tele = createXMLnode(tokenType);\n\t\tvarDecParent.appendChild(ele);\n\n\t\t// The variable identifiers themselves until ;\n\n\t\twhile (!token.equals(\";\")) {\n\t\t\tjTokenizer.advance();\n\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\ttoken = jTokenizer.returnTokenVal(tokenType);\n\t\t\tele = createXMLnode(tokenType);\n\t\t\tvarDecParent.appendChild(ele);\n\t\t\tif (!token.equals(\",\") && !token.equals(\";\")) {\n\t\t\t\t// Adding the variables to the symboltable\n\t\t\t\tsymTable.define(token, type, \"local\");\n\t\t\t}\n\t\t}\n\n\t\treturn varDecParent;\n\n\t}", "protected Element assignRecordToMyVar(Record r) {\n\t\tElement an = el(\"bpws:assign\", new Node[]{\n\t\t\t\tinitMyVar(new Node[]{\n\t\t\t\t\tel(\"nswomoxsd:type\", text(r.getType().toString())),\n\t\t\t\t\tel(\"nswomoxsd:value\", text(\"0\"))\n\t\t\t\t}),\n\t\t\t\tsetProcId()\n\t\t});\n\t\tif (r.getType() == RecordType.FORMULAR)\n\t\t\tan.appendChild(setExpr(r.getFormular(), \"nswomoxsd:value\"));\n\t\treturn an;\n\t}", "public Expression assign(String var, Expression expression) {\n Cos p = new Cos(this.getExp().assign(var, expression));\n return p;\n }", "public abstract void createAssignment(int p);", "public VariableNode(String name) {\n\t\tthis.name = name;\n\t}", "public IAspectVariable<V> createNewVariable(PartTarget target);", "public Variable(String name,List<String> Values,List<Variable> Parents) {\r\n\t\tthis(name,Values,Parents,new TreeMap<>());\r\n\t}", "TIAssignment createTIAssignment();", "@Override\n public CodeFragment visitVarDecStat(AlangParser.VarDecStatContext ctx) {\n String name = ctx.ID().getText();\n if (this.variableExists(name)) {\n this.addError(ctx, name, \"Variable already declared\");\n return new CodeFragment(\"\");\n }\n\n String alangvartype = ctx.var_type().getText();\n String llvmvartype = Types.getLLVMDefineVartype(alangvartype);\n\n String reg = this.generateNewRegister(true);\n Variable v = new Variable(reg, alangvartype, llvmvartype);\n\n int arity = ctx.index_to_global_array().size();\n v.setArity(arity);\n if (arity > 0) {\n v.setGlobalArray();\n }\n\n for (int i = 0; i < arity; i++) {\n v.addLevel(Integer.valueOf(ctx.index_to_global_array(i).INT().getText()));\n }\n\n this.globals.put(name, v);\n\n return new CodeFragment(\"\");\n }", "<C, PM> VariableExp<C, PM> createVariableExp();", "public Variable(String name, int initialValue){\n this.name = name;\n this.initialValue = initialValue;\n }", "public static Expression var(String var) {\n if (var.equals(\"e\")) {\n throw new RuntimeException(\"Variable can't be named e.\");\n }\n\n return new Variable(var);\n }", "@Override\n public void enterVar_assigment(FSMParser.Var_assigmentContext ctx) {\n if (ctx.getParent() instanceof FSMParser.Var_assignContext) {\n //find the variable and add it to the assignments map\n FSMParser.Var_assignContext varCont = (FSMParser.Var_assignContext) ctx.getParent();\n Var var = (Var) findComp(varCont.var().NAME().getText());\n this.assignments.put(var, Integer.parseInt(ctx.integer().getText()));\n\n\n }\n }", "public final void rule__Declaration__VarAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBrowser.g:4136:1: ( ( ruleVariable ) )\n // InternalBrowser.g:4137:2: ( ruleVariable )\n {\n // InternalBrowser.g:4137:2: ( ruleVariable )\n // InternalBrowser.g:4138:3: ruleVariable\n {\n before(grammarAccess.getDeclarationAccess().getVarVariableParserRuleCall_1_0()); \n pushFollow(FOLLOW_2);\n ruleVariable();\n\n state._fsp--;\n\n after(grammarAccess.getDeclarationAccess().getVarVariableParserRuleCall_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public Variable(String variableName) {\n super(null);\n this.variableName = variableName;\n }", "@Test\n\tpublic void testAssignment(){\n\t\tVariable x = new Variable(\"x\");\n\t\tOperator plus = new Operator(\"+\");\n\t\tExpression one = f.createNumNode(1);\n\t\tExpression two = f.createNumNode(2);\n\t\tExpression exp = f.createInfixNode(plus, one, two);\n\t\tStatement assign = f.createAssignNode(x,exp);\n\t\tassertEquals(assign.textRepresentation(), \"x = 1 + 2;\");\n\t\n\t\tASTNodeCountVisitor v = new ASTNodeCountVisitor();\n\t\tassign.accept(v);\n\t\tassertEquals(\"assignment test1 fail\", v.numCount, 2);\n\t\tassertEquals(\"assignment test2 fail\", v.infixCount, 1);\n\t\tassertEquals(\"assignment test3 fail\", v.assignCount, 1);\n\t}", "@Override\n public CodeFragment visitAssignmentStat(AlangParser.AssignmentStatContext ctx) {\n String name = ctx.ID().getText();\n if (!variableExists(name)) {\n this.addError(ctx, name, \"Assignment to undeclared variable\");\n return new CodeFragment(\"\");\n }\n\n Variable v = this.globals.get(name);\n v.setValue(ctx.global_expression().getText());\n v.setHasValue();\n\n return new CodeFragment(\"\");\n }", "protected Variable(final CharSequence name, final Term scope) {\n super(); \n setScope(scope, name);\n }", "public Expression assign(String var, Expression expression) {\n return new Cos(super.getExpression().assign(var, expression));\n }", "public final void rule__Declaration__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBrowser.g:1310:1: ( ( ( rule__Declaration__VarAssignment_1 ) ) )\n // InternalBrowser.g:1311:1: ( ( rule__Declaration__VarAssignment_1 ) )\n {\n // InternalBrowser.g:1311:1: ( ( rule__Declaration__VarAssignment_1 ) )\n // InternalBrowser.g:1312:2: ( rule__Declaration__VarAssignment_1 )\n {\n before(grammarAccess.getDeclarationAccess().getVarAssignment_1()); \n // InternalBrowser.g:1313:2: ( rule__Declaration__VarAssignment_1 )\n // InternalBrowser.g:1313:3: rule__Declaration__VarAssignment_1\n {\n pushFollow(FOLLOW_2);\n rule__Declaration__VarAssignment_1();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getDeclarationAccess().getVarAssignment_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@Override\r\n public ASTNode visitVarDef(CoolParser.VarDefContext ctx) {\n if (ctx.init != null) {\r\n return new VarDef(ctx.getStart(), new Id(ctx.name), new Type(ctx.type), (Expression) visit(ctx.init));\r\n }\r\n\r\n return new VarDef(ctx.getStart(), new Id(ctx.name), new Type(ctx.type), null);\r\n }", "@Override\n public CodeFragment visitBlockAsgn(AlangParser.BlockAsgnContext ctx) {\n String name = ctx.ID().getText();\n if (!variableExists(name)) {\n this.addError(ctx, name, \"Assignment to undeclared variable\");\n return new CodeFragment(\"\");\n }\n\n CodeFragment result = new CodeFragment();\n CodeFragment expr = visit(ctx.expression());\n\n result.addCode(expr);\n\n Variable v = this.getVariable(name);\n v.setHasValue();\n\n int arity = ctx.index_to_array().size();\n\n if (v.arity > 0) {\n if (!checkArityAssignment(v, arity)) {\n this.addError(ctx, name, \"Bad assignment to array\");\n return new CodeFragment(\"\");\n }\n }\n\n if (arity == 0) {\n result.addCode(String.format(\"store %s %s, %s* %s\\n\", v.llvmtype, expr.getRegister(), v.llvmtype, v.reg));\n } else {\n /* in case we assign to array */\n int pointers = ctx.index_to_array().size();\n ArrayList<String> registers = new ArrayList<String>();\n for (int i = 0; i < arity; i++) {\n CodeFragment index = visit(ctx.index_to_array(i).expression());\n result.addCode(index);\n registers.add(index.getRegister());\n }\n\n CodeFragment ptr = this.getPointerToArray(v, registers);\n result.addCode(ptr);\n\n ST store = this.group.getInstanceOf(\"store\");\n store.add(\"type\", v.llvmtype);\n store.add(\"reg\", expr.getRegister());\n store.add(\"where\", ptr.getRegister());\n result.addCode(store.render() + \"\\n\");\n }\n\n return result;\n }", "d(a aVar) {\n super(0);\n this.this$0 = aVar;\n }", "@Override\n\tprotected String getVariableClassName() {\n\t\treturn \"variable\";\n\t}", "public VariType visit(AssignmentStatement n, Table argu) {\n\t VariType _ret=null;\n\t n.f0.accept(this, argu);\n\t MethodTable methodtable = (MethodTable)argu;\n\t Vari vari = methodtable.getvari(n.f0.f0.tokenImage);\n\t if(vari == null) {\n\t \t ClassTable classtable = methodtable.classtable;\n\t \t vari = classtable.getvari(n.f0.f0.tokenImage);\n\t \t if(vari == null) {\n\t \t\t PrintError.errorexist = true;\n\t\t \t String emsg = \"undefined variable \\\"\"+n.f0.f0.tokenImage+\"\\\"\";\n\t \t\t PrintError.print(emsg, n.f0.f0.beginLine, n.f0.f0.beginColumn, 1);\n\t \t\t return _ret;\n\t \t }\n\t }\n\t n.f1.accept(this, argu);\n\t VariType t2 = n.f2.accept(this, argu);\n\t if(VariType.isTheSameType(methodtable.toptable, vari.vari_type, t2) == false) {\n\t \t PrintError.errorexist = true;\n\t \t String emsg = \"assignstatement does not have matched types, one has type \"+vari.vari_type.type+\" , the other one has type \"+t2.type;\n\t \t PrintError.print(emsg, n.f1.beginLine, n.f1.beginColumn, 1);\n\t \t return _ret;\n\t }\n\t if(t2.type == \"Array\"){\n\t \t vari.init = true;\n\t \t if(t2.ifintegerliteral == true) {\n\t \t\t vari.alen = t2.integerliteral;\n\t \t }\n\t }\n\t n.f3.accept(this, argu);\n\t return _ret;\n\t }", "public interface TeaVariable extends TeaNamedElement {\n boolean hasInitializer();\n TeaExpression getInitializer();\n void setInitializer(TeaExpression expr) throws IncorrectOperationException;\n TeaType getType();\n// boolean isConst();\n ASTNode findNameIdentifier();\n\n TeaReferenceExpression findNameExpression();\n}", "public ElementVariable(String name) {\r\n\t\tsuper();\r\n\t\tthis.name = name;\r\n\t}", "private JPanel getJPanelVar() {\r\n\t\tif (jPanelVar == null) {\r\n\t\t\tjPanelVar = new JPanel();\r\n\t\t\tjPanelVar.setLayout(null);\r\n\t\t\tjPanelVar.setBounds(new Rectangle(6, 61, 652, 76));\r\n\t\t\tjPanelVar.setBorder(BorderFactory.createTitledBorder(null, \" 可用变量 \"));\r\n\t\t\tjPanelVar.add(getJScrollPaneVar(), null);\r\n\t\t}\r\n\t\treturn jPanelVar;\r\n\t}", "AssignmentRule createAssignmentRule();", "public VariableNode(String attr)\n {\n this.name = attr;\n }", "public interface Scope {\n public Object getVar(String varName);\n\n public Scope defineVar(String varName, Object value);\n\n public Scope defineConst(String varName, Object value);\n\n public Scope setVar(String varName, Object value);\n\n public Scope delVar(String varName);\n}", "public AssignExpr assign_expr() {\n if (lexer.token != Symbol.IDENT) {\n error.signal(\"Expecting identifier at assign expression\");\n }\n \n String type = symbolTable.getVariable(lexer.getStringValue());\n if(type == null){\n error.show(\"Tried to assign a value to a variable (\"+lexer.getStringValue()+\") that hasn't been declared.\");\n } else {\n if(type.equals(\"STRING\")){\n error.show(\"Tried to assign a value to a declared string variable (\"+lexer.getStringValue()+\")\");\n }\n }\n \n Ident id = new Ident(lexer.getStringValue());\n \n lexer.nextToken();\n if (lexer.token != Symbol.ASSIGN) {\n error.signal(\"Expecting assign symbol at assign expression\");\n }\n lexer.nextToken();\n Expr e = expr();\n\n if(type != null && type.toLowerCase().equals(\"int\") && e.getType(symbolTable) != null && e.getType(symbolTable).toLowerCase().equals(\"float\"))\n error.show(\"Trying to assign a \"+e.getType(symbolTable)+\" to a \"+type);\n else if (type != null && e.getType(symbolTable) != null && !type.equals(e.getType(symbolTable)))\n error.warning(\"Trying to assign a \"+e.getType(symbolTable)+\" to a \"+type);\n \n return new AssignExpr(id, e);\n }", "static Obj NewObj (String name,int kind) {\r\n\t\tObj p, obj = new Obj();\r\n obj.name = new String(name); \r\n\t\tobj.type = null; obj.kind = kind;\r\n\t\tobj.level = curLevel;\r\n\t\tp = topScope.locals;\r\n\t\t/*Para buscar si el nb de la variable nueva ya esta!!!*/\r\n\t\twhile (p != null) { \r\n \t \tif (p.name.equals(name)) Parser.SemError(1);\r\n\t\t\tp = p.next;\r\n\t\t}\r\n \t//FILO!!\r\n obj.next = topScope.locals; \r\n\t\ttopScope.locals = obj;\r\n \t//if (kind == vars) {}\r\n \t//obj.adr = topScope.nextAdr; topScope.nextAdr++;\r\n \t//obj.view();\r\n\t\treturn obj;\r\n }", "public final void rule__Output__VarsAssignment_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalWh.g:1372:1: ( ( RULE_VARIABLE ) )\n // InternalWh.g:1373:2: ( RULE_VARIABLE )\n {\n // InternalWh.g:1373:2: ( RULE_VARIABLE )\n // InternalWh.g:1374:3: RULE_VARIABLE\n {\n before(grammarAccess.getOutputAccess().getVarsVARIABLETerminalRuleCall_1_1_0()); \n match(input,RULE_VARIABLE,FOLLOW_2); \n after(grammarAccess.getOutputAccess().getVarsVARIABLETerminalRuleCall_1_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "VarDecl createVarDecl();", "public Variable(String s, String in, String nom, int a, int b) {\n ident=new String(s);\n internal=new String(in);\n if (nom!=null) {name=new String(nom);} else {name=\"(Variable interne)\";}\n lowbound=a;\n highbound=b;\n noccur=0;\n \n \n }", "protected Assign assign(Position pos, Expr e, Assign.Operator asgn, Expr val) throws SemanticException {\n Assign a = (Assign) xnf.Assign(pos, e, asgn, val).type(e.type());\n if (a instanceof FieldAssign) {\n assert (e instanceof Field);\n assert ((Field) e).fieldInstance() != null;\n a = ((FieldAssign) a).fieldInstance(((Field)e).fieldInstance());\n } else if (a instanceof SettableAssign) {\n assert (e instanceof X10Call);\n X10Call call = (X10Call) e;\n List<Expr> args = CollectionUtil.append(Collections.singletonList(val), call.arguments());\n X10Call n = xnf.X10Call(pos, call.target(), nf.Id(pos, SettableAssign.SET), call.typeArguments(), args);\n n = (X10Call) n.del().disambiguate(this).typeCheck(this).checkConstants(this);\n X10MethodInstance smi = n.methodInstance();\n X10MethodInstance ami = call.methodInstance();\n // List<Type> aTypes = new ArrayList<Type>(ami.formalTypes());\n // aTypes.add(0, ami.returnType()); // rhs goes before index\n // MethodInstance smi = xts.findMethod(ami.container(),\n // xts.MethodMatcher(ami.container(), SET, aTypes, context));\n a = ((SettableAssign) a).methodInstance(smi);\n a = ((SettableAssign) a).applyMethodInstance(ami);\n }\n return a;\n }", "public LlvmValue visit(Assign n){\n\t\t\n\t\tSystem.out.format(\"assign********\\n\");\n\t\t\n\t\tLlvmValue rhs = n.exp.accept(this);\n\t\tLlvmRegister returns;\n\t\t//Nesta parte, para retornarmos o tipo certo, tivemos que converter todos os parametros do tipo\n\t\t//[ A x iB] para ponteiros. o Assembly reclamava quando tinha algum store ou algo do genero com tipos\n\t\t// diferentes\n\t\tif(rhs.type.toString().contains(\"x i\")){\n\t\t\t//System.out.format(\"expressao de rhs envolve arrays. fazendo casting...\\n\");\n\t\t\t\n\t\t\t//Fazer bitcast\n\t\t\tif(rhs.type.toString().contains(\" x i32\")){\n\t\t\t\treturns = new LlvmRegister(LlvmPrimitiveType.I32PTR);\n\t\t\t}else if(rhs.type.toString().contains(\" x i8\")){\n\t\t\t\treturns = new LlvmRegister(new LlvmPointer(LlvmPrimitiveType.I8));\n\t\t\t//Esse else eh meio inutil, mas pelo fato de eu querer usar elseif, deixei ele aqui mesmo.\n\t\t\t}else{\n\t\t\t\treturns = new LlvmRegister(rhs.type);\n\t\t\t}\n\t\t\t\n\t\t\tassembler.add(new LlvmBitcast(returns, rhs, returns.type));\n\t\t\tassembler.add(new LlvmStore(returns, n.var.accept(this)));\n\t\t}else{\n\t\t\t//Caso o tipo ja esteja ok, soh damos store com o rhs mesmo.\n\t\t\tassembler.add(new LlvmStore(rhs, n.var.accept(this)));\n\t\t}\n\t\treturn null;\n\t}", "public Variables(String name, VariablesHistory VH) {\n this.name = name;\n this.VH = VH;\n }", "public JCExpressionStatement makeAssignment(JCExpression lhs, JCExpression rhs) {\n return treeMaker.Exec(treeMaker.Assign(lhs, rhs));\n }", "public static Variable in(Object byValue) {\n\t\treturn new Variable(byValue);\n\t}", "@Override\n\t\t\tpublic Ast var(Var ast, Void arg) {\n\t\t\t\treturn super.var(ast, arg);\n\t\t\t}", "public Variable addVar(String n) {\n\t\t//System.out.println(\"SymbolTable addVar \" + n);\n\t\tNameSSA ssa = name.get(n);\n\t\tif (ssa != null) {\n\t\t\tVariable lastRenaming = var.get(ssa.current());\n\t\t\tssa.next();\n\t\t\tVariable v;\n\t\t\tif (lastRenaming instanceof ArrayVariable)\n\t\t\t\tv= new ArrayVariable(ssa.current(), lastRenaming.type, ((ArrayVariable)lastRenaming).length(),lastRenaming.use);\n\t\t\telse\n\t\t\t\tv= new Variable(ssa.current(), lastRenaming.type, lastRenaming.use);\n\t\t\tv.setOld(lastRenaming.oldValue());\n\t\t\tvar.put(ssa.current(), v);\n\t\t\tif (VerboseLevel.DEBUG.mayPrint()) {\n\t\t\t\tSystem.out.println(\"SymbolTable.addVar: \" + v.name());\n\t\t\t}\n\t\t\treturn v;\n\t\t}\n\t\telse {\n\t\t\treturn null;\n\t\t}\t\t\n\t}", "public final void rule__Affect__VarsAssignment_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalWh.g:1466:1: ( ( RULE_VARIABLE ) )\n // InternalWh.g:1467:2: ( RULE_VARIABLE )\n {\n // InternalWh.g:1467:2: ( RULE_VARIABLE )\n // InternalWh.g:1468:3: RULE_VARIABLE\n {\n before(grammarAccess.getAffectAccess().getVarsVARIABLETerminalRuleCall_1_1_0()); \n match(input,RULE_VARIABLE,FOLLOW_2); \n after(grammarAccess.getAffectAccess().getVarsVARIABLETerminalRuleCall_1_1_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public ActRuVariable() {\n this(DSL.name(\"act_ru_variable\"), null);\n }", "private IAssignmentElement createAssignment() throws RodinDBException {\n\t\tfinal IMachineRoot mch = createMachine(\"mch\");\n\t\tfinal IEvent event = createEvent(mch, \"event\");\n\t\treturn event.createChild(IAction.ELEMENT_TYPE, null, null);\n\t}", "private void assignment() {\n\n\t\t\t}", "@Test\n public void testAssignment() {\n try {\n Lexer lexer = new Lexer(new StringReader(\"n = 0;\"));\n Parser parser = new Parser(lexer);\n RootNode node = parser.program();\n AssignNode assignment = (AssignNode) node.get(0);\n assertTrue(assignment.getClass() == AssignNode.class);\n } catch (IOException e) {\n fail(e.getMessage());\n }\n }", "public ActRuVariable(String alias) {\n this(DSL.name(alias), ACT_RU_VARIABLE);\n }", "@Override\n\tpublic Object clone() {\n\t\treturn new MeanVar(n, mean, s);\n\t}", "@Override\n\tpublic IBasicObject getForCreateVar() {\n\t\treturn heldObj.getForCreateVar();\n\t}" ]
[ "0.6800663", "0.6800663", "0.65856224", "0.6520467", "0.6520467", "0.64772034", "0.64616317", "0.6410337", "0.64072937", "0.62896013", "0.6221834", "0.6154628", "0.6112681", "0.6108742", "0.6107517", "0.60947186", "0.60945606", "0.60740244", "0.60577726", "0.6055093", "0.60481805", "0.599402", "0.5989631", "0.5983595", "0.5959785", "0.5912409", "0.59114975", "0.58663964", "0.5851754", "0.5851753", "0.5832979", "0.5830464", "0.5808853", "0.58072597", "0.5798578", "0.57918286", "0.5754154", "0.57520425", "0.5726695", "0.5714341", "0.5710651", "0.57005495", "0.56940126", "0.5646166", "0.56332415", "0.5611487", "0.5609518", "0.56077653", "0.56029385", "0.5600584", "0.55944085", "0.5593129", "0.5592183", "0.55822223", "0.5577019", "0.55498594", "0.5543651", "0.55435514", "0.5518783", "0.55182457", "0.54982334", "0.54930353", "0.54833966", "0.5472894", "0.54718643", "0.5451234", "0.5448353", "0.54400885", "0.5436425", "0.5429225", "0.54272866", "0.5418014", "0.5410889", "0.54056513", "0.5399648", "0.5386242", "0.5365738", "0.5358409", "0.535641", "0.53353316", "0.5319724", "0.53094804", "0.5306352", "0.53059393", "0.5301637", "0.5300537", "0.529368", "0.5287511", "0.5286688", "0.5283785", "0.52828765", "0.5278019", "0.5271847", "0.52646273", "0.52645266", "0.5262962", "0.52565306", "0.5249609", "0.52399457", "0.523865" ]
0.8679791
0
Returns a new object of class 'Conditional'.
Conditional createConditional();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ConditionalExpression createConditionalExpression();", "ConditionalDependency createConditionalDependency();", "public Conditional(){\n\t\tint m,n;\n\t\tLexer.lex();//skip over \"if\"\n\t\tLexer.lex();//skip over '('\n\t\tcpr=new ComparisonExpr();\n\t\tLexer.lex();//skip over ')'\n\t\tswitch(cpr.op){\n\t\tcase '<':\n\t\t\tCode.gen(\"if_icmpge \");\n\t\t\tbreak;\n\t\tcase '>':\n\t\t\tCode.gen(\"if_icmple \");\n\t\t\tbreak;\n\t\tcase '=':\n\t\t\tCode.gen(\"if_icmpne \");\n\t\t\tbreak;\n\t\tcase '!':\n\t\t\tCode.gen(\"if_icmpeq \");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\tn=Code.getPtr();\n\t\tCode.gen(\"\");\n\t\tCode.gen(\"\");\n\t\tstmt=new Statement();\n\t\tif(Lexer.nextToken==Token.KEY_ELSE){//have an else part\n\t\t\tCode.gen(\"goto \");\n\t\t\tm=Code.getPtr();\n\t\t\tCode.gen(\"\");\n\t\t\tCode.gen(\"\");\n\t\t\tCode.backpatch(n, Integer.toString(Code.getPtr()));\n\t\t\tLexer.lex();\n\t\t\tstmtr=new Statement();\n\t\t\tCode.backpatch(m, Integer.toString(Code.getPtr()));\n\t\t}else{\n\t\t\tCode.backpatch(n, Integer.toString(Code.getPtr()));\n\t\t}\n\t\t\n\t}", "Condition createCondition();", "BaseCondition createBaseCondition();", "LogicCondition createLogicCondition();", "ConditionFactory getConditionFactory();", "public Cond newCond() {\n return new Cond();\n }", "public Conditional(String tag, String value) {\r\n super(tag, value);\r\n }", "ConditionalDeclaration(AST ast) {\r\n\t\tsuper(ast);\r\n\t}", "If createIf();", "public IfCondition() {\r\n super();\r\n }", "public Condition newCondition() {\r\n throw new java.lang.UnsupportedOperationException();\r\n }", "@Override\n\tpublic Condition newCondition() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Condition newCondition() {\n\t\treturn null;\n\t}", "public Condition newCondition() {\n throw new java.lang.UnsupportedOperationException();\n }", "public T caseIfDefConditional(IfDefConditional object)\n\t{\n\t\treturn null;\n\t}", "public SimpleCondition() {\n\n\t}", "public ConditionalStatement(IExpression condition, IStatement s0, IStatement s1)\n {\n super(\"Conditional\", null);\n // TODO - anything else you need\n }", "public static Condition makeCondition(TreeNode root) {\n return new Condition(root);\n }", "@Override\r\n\tpublic Object clone() throws CloneNotSupportedException {\r\n\t\tConditionalOp clone = (ConditionalOp) super.clone();\r\n\t\tclone.isFloatType = isFloatType;\r\n\t\treturn clone;\r\n\t}", "public T caseIfConditional(IfConditional object)\n\t{\n\t\treturn null;\n\t}", "public Object getCondition();", "public interface IConditionalExpression {\n}", "public int[] getConditions() { return conditional; }", "VariantConditionModel createInstanceOfVariantConditionModel();", "public Builder<T> If(BooleanSupplier condition) {\n this.ifCond = condition.getAsBoolean();\n return this;\n }", "OclExpression getCondition();", "<C> IfExp<C> createIfExp();", "public RequestCondition<?> getCustomCondition()\n/* */ {\n/* 164 */ return this.customConditionHolder.getCondition();\n/* */ }", "public T caseIfAbstractConditional(IfAbstractConditional object)\n\t{\n\t\treturn null;\n\t}", "@Override\n\tpublic void create(ConditionalCharacteristicSpecification acs) {\n\n\t}", "@Override\n\tpublic Condition convertToCondition() {\n\t\tRelation r = (type == EffectType.DISCARD)? Relation.UNEQUAL : Relation.EQUAL;\n\t\treturn new TemplateCondition(labelTemplate, valueTemplate, r);\n\t}", "public T caseElIfConditional(ElIfConditional object)\n\t{\n\t\treturn null;\n\t}", "IfStatement createIfStatement();", "private Conditional ifStatement()\n\t{\n\t\t// IfStatement --> if ( Expression ) Statement [ else Statement ]\n\t\tConditional c = null;\n\t\t\n\t\t// if\n\t\tmatch(TokenType.If);\n\t\t// (\n\t\tmatch(TokenType.LeftParen);\n\t\t// <<Expression>>\n\t\tExpression e = expression();\n\t\t// )\n\t\tmatch(TokenType.RightParen);\n\t\t// <<Statement>>\n\t\tStatement s = statement();\n\t\t\n\t\t// else가 나오면\n\t\tif (token.type().equals(TokenType.Else))\n\t\t{\n\t\t\t// else\n\t\t\ttoken = lexer.next();\n\t\t\t\n\t\t\t// <<Statement>>\n\t\t\tStatement elseState = statement();\n\t\t\tc = new Conditional(e, s, elseState);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tc = new Conditional(e, s);\n\t\t}\n\t\t\n\t\treturn c; // student exercise\n\t}", "public native ConditionerTemplate getConditioner(int idx);", "public T caseConditionalDirective(ConditionalDirective object)\n\t{\n\t\treturn null;\n\t}", "public Cond cond() {\n Cond c = new Cond();\n c.setExpr1(expr());\n c.setOp(compop());\n c.setExpr2(expr());\n \n String type1 = c.getExpr1().getType(symbolTable);\n String type2 = c.getExpr2().getType(symbolTable);\n \n if(type1 != null && type2 != null){\n if(!type1.equals(type2)){\n error.warning(\"Trying to compare a \"+type1+\" with a \"+type2);\n }\n } else\n error.show(\"Trying to make comparison with a variable(s) that hasn't been declared\");\n \n return c;\n }", "IfExp createIfExp();", "public Condition getCondition(){\n\t\treturn this.cond;\n\t}", "public ConditionerTemplate newConditionerBase(String name, String description, String category)\n\t{\n\t\tConditionerTemplate cb = new ConditionerTemplate(name, description, category);\n\t\treturn cb;\n\t}", "public native boolean loadConditioner(String baseName, String name, ConditionerWrapper cw );", "public IfstatementFactoryImpl() {\n\t\tsuper();\n\t}", "public String getConditionalClause() {\r\n\t\treturn conditionalClause;\r\n\t}", "public ConditionalSelectorImpl(SimpleSelector simpleSelector, Condition condition) {\n this.simpleSelector = simpleSelector;\n this.condition = condition;\n }", "public void setConditionalOperator(ConditionalOperator conditionalOperator) {\n setConditionalOperator(conditionalOperator.toString());\n }", "public void setConditionalOperator(String conditionalOperator) {\n this.conditionalOperator = conditionalOperator;\n }", "public interface ICondition\n{\n\n /**\n * called when we are sure we are done with this condition\n */\n public void dispose();\n\n /**\n * attempt to clone this condition before it will be bound in the\n * instantiation phase. We pass the current bindings so that the condition can\n * do an early rejection if possible.\n * \n * @param model\n * @param variableBindings\n * @return a writable copy of the condition that will be bound\n * @throws CannotMatchException\n * if there is no way this condition can be matched\n */\n public ICondition clone(IModel model, Map<String, Object> variableBindings)\n throws CannotMatchException;\n\n /**\n * Iteratively perform the resolution and binding for this condition. If this\n * condition defines any variables, they are placed into the bindings map for\n * other conditions to exploit. Similarly, it will resolve any bindings that\n * it needs in order to be matched. If at any point the condition determines\n * that it cannot be matched, the exception is to be thrown. Similarly, if\n * isIterative is false, and there are unresolved bindings, the exception\n * should be thrown. <br>\n * Otherwise, the number of unresolved bindings is returned which allows the\n * instantiation calculation determine if another resolution round is\n * required.\n * \n * @return number of unresolved variables\n */\n public int bind(IModel model, Map<String, Object> variableBindings,\n boolean isIterative) throws CannotMatchException;\n}", "public ContextConditionImpl() {\n\t\tsuper();\n\t}", "Conditions getConditions();", "public Reference condition() {\n return getObject(Reference.class, FhirPropertyNames.PROPERTY_CONDITION);\n }", "public Condition getCondition() {\n return condition;\n }", "public T caseIfNotDefConditional(IfNotDefConditional object)\n\t{\n\t\treturn null;\n\t}", "public IdDt addCondition() {\n\t\tIdDt newType = new IdDt();\n\t\tgetCondition().add(newType);\n\t\treturn newType; \n\t}", "IfPrimaryExpr createIfPrimaryExpr();", "public ConditionalExpressionTest(String name) {\n\t\tsuper(name);\n\t}", "public interface Conditioned {\n @Nullable\n ROSCondition getCondition();\n }", "public static TreeNode makeIf(TreeNode condition,\n TreeNode thenNode,\n TreeNode elseNode,\n ArrowType retType) {\n return new IfNode(condition, thenNode, elseNode, retType);\n }", "public final BB iff(Condition test)\n {\n Validate.notNull(test,What.CRITERIA);\n IfAction branch = BAL().newIf();\n branch.setTest(test);\n return autoblock(new BALFinishers.ForIf(branch));\n }", "@Override\n public PaymentP2007_03 where(Condition condition) {\n return new PaymentP2007_03(getQualifiedName(), aliased() ? this : null, condition);\n }", "public String getConditionalOperator() {\n return conditionalOperator;\n }", "public OverallCondition getCondition() {\n return condition;\n }", "@Override\n\tprotected ConditionalExpression getFixture() {\n\t\treturn (ConditionalExpression)fixture;\n\t}", "public Builder conditionalOnTypeReachable(Class<?> conditionalOnTypeReachable) {\n\t\t\tthis.conditionalOnTypeReachable = conditionalOnTypeReachable;\n\t\t\treturn this;\n\t\t}", "@Field(5) \n\tpublic CKSCOSStatusField ConditionalOrderStatus(byte ConditionalOrderStatus) {\n\t\tthis.io.setByteField(this, 5, ConditionalOrderStatus);\n\t\treturn this;\n\t}", "@Override\n public Expression translateSyntacticSugar() {\n return new Condition(this.e1, BooleanConstant.TRUE, this.e2);\n }", "public ExpressionNode getCondition();", "BoolConstant createBoolConstant();", "IfStmtRule createIfStmtRule();", "FilterCondition createFilterCondition(int clueNum);", "public NotCondition() {\r\n\t\tsuper();\r\n\t}", "final public IASTPKGStatement ConditionalStatement() throws ParseException {\r\n IASTPKGStatement node = null;\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case COMMENT_START:\r\n node = CommentStatement();\r\n break;\r\n case OPTIONSLIST_START:\r\n node = OptionsListStatement();\r\n break;\r\n default:\r\n jj_la1[3] = jj_gen;\r\n if (jj_2_2(2147483647)) {\r\n node = EmbeddedSisStatement();\r\n } else {\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case OPEN_CURLY_BRACE:\r\n case STRING:\r\n node = InstallFileStatement();\r\n break;\r\n case PLUS:\r\n node = PropertiesStatement();\r\n break;\r\n case IF:\r\n node = ConditionalBlock();\r\n break;\r\n default:\r\n jj_la1[4] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n }\r\n }\r\n {if (true) return node;}\r\n throw new Error(\"Missing return statement in function\");\r\n }", "@Override\n public void visit(final OpConditional opCondition) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Starting visiting OpConditional\");\n }\n final OpRewriter rewriter = new OpRewriter(securityEvaluator, graphIRI);\n addOp(new OpConditional(rewriteOp2(opCondition, rewriter), rewriter.getResult()));\n }", "Condition(double multiplier) {\r\n this.multiplier = multiplier;\r\n }", "BooleanValue createBooleanValue();", "BooleanValue createBooleanValue();", "BooleanValue createBooleanValue();", "BooleanValue createBooleanValue();", "ICDICondition getCondition() throws CDIException;", "condition getConditionAllocution();", "public Condition() {\n _rawProperties = new HashSet<>();\n _usedLookupIds = new HashSet<>();\n _potentialContextEntries = new HashSet<>();\n }", "public abstract String\n conditional();", "public abstract Builder customCondition(RequestCondition<?> paramRequestCondition);", "public Expression getCondition()\n {\n return this.condition;\n }", "private Term parseConditional(final boolean required) throws ParseException {\n Term t1 = parseLogicalOr(required);\n int tt = _tokenizer.next();\n if (tt == '?') {\n Term t2 = parseTerm(true);\n tt = _tokenizer.next();\n if (tt == ':') {\n if (isTypeChecking() && !t1.isB()) {\n reportError(\"Boolean operand expected before '?' in conditional '?:' term.\");\n }\n Term t3 = parseTerm(true);\n if (t2.isB() && t3.isB()) {\n t1 = new Term.Cond(Term.TYPE_B, t1, t2, t3);\n } else if ((t2.isD() && t3.isN() || t2.isN() && t3.isD())) {\n t1 = new Term.Cond(Term.TYPE_D, t1, t2, t3);\n } else if ((t2.isI() && t3.isI())) {\n t1 = new Term.Cond(Term.TYPE_I, t1, t2, t3);\n } else if (!isTypeChecking()) {\n t1 = new Term.Cond(Term.TYPE_D, t1, t2, t3);\n } else {\n reportError(\"Boolean or numeric operands expected in conditional '?:' term.\");\n }\n } else {\n _tokenizer.pushBack();\n reportError(\"Missing ':' part of conditional '?:' term.\");\n }\n } else {\n _tokenizer.pushBack();\n }\n return t1;\n }", "public Condition(Node n) {\n\t// get the page item properties\n\tsuper(n);\n\ttry {\n\t // assign various attributes\n\t NodeList subnodes = n.getChildNodes();\n\t Node node1 = subnodes.item(1);\n\t Node node2 = subnodes.item(3);\n\t Node node3 = subnodes.item(5);\n\t String node1_name = node1 != null ? node1.getNodeName() : \"\";\n\t String node2_name = node2 != null ? node2.getNodeName() : \"\";\n\t String node3_name = node3 != null ? node3.getNodeName() : \"\";\n\n\t // option 1: if the Condition is a leaf node, first node is a\n\t // \"field\"\n\t if (node1_name.equalsIgnoreCase(\"field\")) {\n\t\t// parse the leaf node\n\t\t// note XML Schema enforces order of: field, operator, (constant\n\t\t// OR field)\n\t\tpre_field = node1.getFirstChild().getNodeValue();\n\t\tjs_expression.append(\"(a['\" + pre_field + \"']\");\n\t\tif (pre_field.equals(\"\"))\n\t\t throw new Exception(\n\t\t\t \"Invalid Precondition: Empty field name before \"\n\t\t\t\t + node2_name);\n\t\t// represent comparison operator as integer, since eval needs\n\t\t// 'switch,' which can't take strings\n\t\tif (node2_name.equalsIgnoreCase(\"gt\")) {\n\t\t operatr_int = 11;\n\t\t js_expression.append(\" > \");\n\t\t} else if (node2_name.equalsIgnoreCase(\"lt\")) {\n\t\t operatr_int = 12;\n\t\t js_expression.append(\" < \");\n\t\t} else if (node2_name.equalsIgnoreCase(\"geq\")) {\n\t\t operatr_int = 13;\n\t\t js_expression.append(\" >= \");\n\t\t} else if (node2_name.equalsIgnoreCase(\"leq\")) {\n\t\t operatr_int = 14;\n\t\t js_expression.append(\" <= \");\n\t\t} else if (node2_name.equalsIgnoreCase(\"eq\")) {\n\t\t operatr_int = 15;\n\t\t js_expression.append(\" = \");\n\t\t} else if (node2_name.equalsIgnoreCase(\"neq\")) {\n\t\t operatr_int = 16;\n\t\t js_expression.append(\" != \");\n\t\t} else\n\t\t throw new Exception(\"Invalid operator in Precondition: \"\n\t\t\t + node2_name);\n\t\t// obtain the value for comparison\n\t\tif (node3_name.equalsIgnoreCase(\"cn\")) {\n\t\t String const_str = node3.getFirstChild().getNodeValue();\n\t\t if (const_str != null) {\n\t\t\tint_constant = new Integer(const_str);\n\t\t\tjs_expression.append(const_str);\n\t\t\tjs_expression.append(\")\");\n\t\t }\n\t\t} else if (node3_name.equalsIgnoreCase(\"field\")) {\n\t\t pre_field_second = node3.getFirstChild().getNodeValue();\n\t\t js_expression.append(pre_field_second);\n\t\t js_expression.append(\")\");\n\t\t if (pre_field_second.equals(\"\"))\n\t\t\tthrow new Exception(\n\t\t\t\t\"Invalid Precondition: Empty field name after \"\n\t\t\t\t\t+ node1_name);\n\t\t} else\n\t\t throw new Exception(\"Invalid comparator in Precondition: \"\n\t\t\t + node3_name);\n\t }\n\t // option 2, syntax: apply, and|or, apply\n\t else if (node1_name.equalsIgnoreCase(\"apply\")) {\n\t\t// recursively parse the nested preconditions\n\t\tcond = new Condition(node1); // the apply node is itself a\n\t\t\t\t\t // predicate\n\t\tjs_expression.append(cond.getJs_expression());\n\t\tif (node2_name.equalsIgnoreCase(\"and\")) {\n\t\t operatr_int = 1;\n\t\t js_expression.append(\" && \");\n\t\t} else if (node2_name.equalsIgnoreCase(\"or\")) {\n\t\t operatr_int = 2;\n\t\t js_expression.append(\" || \");\n\t\t} else\n\t\t throw new Exception(\n\t\t\t \"Invalid boolean operator in Precondition: \"\n\t\t\t\t + node2_name);\n\t\t// recursively parse the 2nd apply node - another nested\n\t\t// precondition\n\t\tif (node3_name.equalsIgnoreCase(\"apply\")) {\n\t\t cond2 = new Condition(node3);\n\t\t js_expression.append(cond2.getJs_expression());\n\t\t}\n\n\t\telse\n\t\t throw new Exception(\n\t\t\t \"Invalid righthand predicate in Precondition: \"\n\t\t\t\t + node3_name);\n\t } else\n\t\tthrow new Exception(\"Invalid Precondition node starting at: \"\n\t\t\t+ node1_name);\n\n\t}// end of try\n\tcatch (Exception e) {\n\t WISE_Application.log_error(\n\t\t \"WISE - CONDITION parse: \" + e.toString(), null);\n\t return;\n\t}\n }", "public Condition loadCondition( ObjectId id_condition ) throws KettleException {\n Condition condition = new Condition();\n\n try {\n RowMetaAndData r = getCondition( id_condition );\n if ( r != null ) {\n condition.setNegated( r.getBoolean( \"NEGATED\", false ) );\n condition.setOperator( Condition.getOperator( r.getString( \"OPERATOR\", null ) ) );\n\n long conditionId = r.getInteger( \"ID_CONDITION\", -1L );\n if ( conditionId > 0 ) {\n condition.setObjectId( new LongObjectId( conditionId ) );\n } else {\n condition.setObjectId( null );\n }\n\n ObjectId[] subids = repository.getSubConditionIDs( condition.getObjectId() );\n if ( subids.length == 0 ) {\n condition.setLeftValuename( r.getString( \"LEFT_NAME\", null ) );\n condition.setFunction( Condition.getFunction( r.getString( \"CONDITION_FUNCTION\", null ) ) );\n condition.setRightValuename( r.getString( \"RIGHT_NAME\", null ) );\n\n long id_value = r.getInteger( \"ID_VALUE_RIGHT\", -1L );\n if ( id_value > 0 ) {\n ValueMetaAndData v = repository.loadValueMetaAndData( new LongObjectId( id_value ) );\n condition.setRightExact( v );\n }\n } else {\n for ( int i = 0; i < subids.length; i++ ) {\n condition.addCondition( loadCondition( subids[i] ) );\n }\n }\n\n return condition;\n } else {\n throw new KettleException( \"Condition with id_condition=\"\n + id_condition + \" could not be found in the repository\" );\n }\n } catch ( KettleException dbe ) {\n throw new KettleException(\n \"Error loading condition from the repository (id_condition=\" + id_condition + \")\", dbe );\n }\n }", "public DynamoDBSaveExpression withConditionalOperator(ConditionalOperator conditionalOperator) {\n return withConditionalOperator(conditionalOperator.toString());\n }", "public interface ConditionFactory {\n\n Condition createNewCondition(List<List<Object>> arguments);\n\n}", "public static Condition createCondition(Patient patient, Encounter encounter, String conditionTypeCode,\n String conditionTypeDisplay, String date){\n // Create a condition object\n Condition condition = new Condition();\n\n // Set Identifier of the condition object\n condition.addIdentifier()\n .setSystem(\"http://www.kh-uzl.de/fhir/condition\")\n .setValue(UUID.randomUUID().toString());\n\n // Set clinical status of the condition\n condition.setClinicalStatus(new CodeableConcept()\n .addCoding(new Coding()\n .setCode(\"active\")\n .setSystem(\"http://terminology.hl7.org/CodeSystem/condition-clinical\")\n .setDisplay(\"Active\")));\n\n // Set verification status of the condition\n condition.setVerificationStatus(new CodeableConcept()\n .addCoding(new Coding()\n .setCode(\"confirmed\")\n .setSystem(\"http://terminology.hl7.org/CodeSystem/condition-ver-status\")\n .setDisplay(\"Confirmed\")));\n\n // Set Identification of the condition, problem or diagnosis\n condition.setCode(new CodeableConcept()\n .addCoding(new Coding()\n .setCode(conditionTypeCode)\n .setSystem(\"http://snomed.info/sct\")\n .setDisplay(conditionTypeDisplay)));\n\n // Set reference to a patient, that the condition belongs to\n condition.setSubject(new Reference()\n .setIdentifier(patient.getIdentifierFirstRep())\n .setReference(patient.fhirType() + \"/\" + patient.getId()));\n\n // Set reference to an encounter, the condition was part of\n condition.setEncounter(new Reference()\n .setIdentifier(encounter.getIdentifierFirstRep())\n .setReference(encounter.fhirType() + \"/\" + encounter.getId()));\n\n // Set date when the condition was first recorded\n condition.setRecordedDateElement(new DateTimeType(date));\n\n return condition;\n }", "private void Conditional(){\n\t\tLogicOR();\n\t\t\n\t\tfor(;;){\n\t\t\tif(eat(\"for\")){\n\t\t\t\tInlineFor();\n\t\t\t}else if(eat(\"if\")){\n\t\t\t\tExpression();\n\t\t\t\tif(eat(\"else\"))\n\t\t\t\t\tConditional();\n\t\t\t}else if(eat(\"defined\") || eat(\"!defined\"));\n\t\t\telse for(;;){\n\t\t\t\tif(eat(\"?\")){\n\t\t\t\t\tExpression();\n\t\t\t\t\tassert_eat(\":\");\n\t\t\t\t\tConditional();\n\t\t\t\t}else return;\n\t\t\t}\n\t\t}\n\t}", "public String getCondition() {\n\treturn condition;\n}", "public DynamoDBSaveExpression withConditionalOperator(String conditionalOperator) {\n setConditionalOperator(conditionalOperator);\n return this;\n }", "public ModuleConditions clone() {\n ModuleConditions data = new ModuleConditions(this.source);\n data.state2conditionMapping.putAll(this.state2conditionMapping);\n data.onsetConditions.putAll(this.onsetConditions);\n return data;\n }", "public final EObject entryRuleConditionalExpression() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleConditionalExpression = null;\n\n\n try {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:137:2: (iv_ruleConditionalExpression= ruleConditionalExpression EOF )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:138:2: iv_ruleConditionalExpression= ruleConditionalExpression EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getConditionalExpressionRule()); \n }\n pushFollow(FOLLOW_ruleConditionalExpression_in_entryRuleConditionalExpression256);\n iv_ruleConditionalExpression=ruleConditionalExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleConditionalExpression; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleConditionalExpression266); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public void visit(BinConditionalExpression x){\n }", "public WeatherCondition getCondition() {\n return condition;\n }", "public OnsetCondition clone() {\n OnsetCondition data = new OnsetCondition(this.name);\n data.timeInfos.addAll(this.timeInfos);\n return data;\n }", "public Filter condition();" ]
[ "0.70619625", "0.6763616", "0.6719", "0.66610193", "0.6499538", "0.64967006", "0.6448861", "0.6433274", "0.6298117", "0.62877893", "0.61971146", "0.606936", "0.6002863", "0.599678", "0.599678", "0.59313244", "0.5931229", "0.59010774", "0.5895269", "0.5820201", "0.5819129", "0.5811944", "0.57586485", "0.57223594", "0.5673563", "0.56355935", "0.5618656", "0.5608781", "0.5608233", "0.55939496", "0.5588566", "0.55885506", "0.55770165", "0.5550434", "0.55250823", "0.5508054", "0.55010587", "0.54967374", "0.54928493", "0.5473136", "0.5472495", "0.54716736", "0.5468185", "0.54633164", "0.5462955", "0.5449522", "0.5417382", "0.5406263", "0.53785515", "0.5374562", "0.53704405", "0.53514683", "0.53292096", "0.531213", "0.5300093", "0.529723", "0.5295918", "0.52362806", "0.52331483", "0.5222602", "0.5219226", "0.5195786", "0.5188843", "0.51832503", "0.51813906", "0.51746744", "0.51715195", "0.5154163", "0.5145694", "0.5128161", "0.50977325", "0.5096397", "0.5089366", "0.50842553", "0.5083018", "0.50822604", "0.50822604", "0.50822604", "0.50822604", "0.50712883", "0.5071216", "0.5069355", "0.50680435", "0.5062206", "0.506034", "0.5059686", "0.50368774", "0.5026227", "0.50237846", "0.50237775", "0.50066626", "0.49970055", "0.49937144", "0.49933088", "0.4989495", "0.4978063", "0.49698257", "0.496683", "0.49618047", "0.49607855" ]
0.8407893
0
Returns a new object of class 'Loop'.
Loop createLoop();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void loop();", "@Override public void loop () {\n }", "public void loop(){\n\t}", "@Override public void loop() {\n }", "@Override\n public void loop()\n {\n }", "public void loop(){\n \n \n }", "public void loop(){\n\t\t\n\t}", "@Override\n public void loop() {\n\n }", "@Override\n public void loop() {\n\n }", "@Override\r\n public void loop() {\r\n //CodeHere\r\n }", "While createWhile();", "public LoopController()\r\n\t{\r\n\t\tregulate = true;\r\n\t\tsmooth = true;\r\n\t\tresolution = 10000;\r\n\t\tfps = 60;\r\n\t\tlastCall = Sys.getTime();\r\n\t\tduration = 0;\r\n\t}", "@Override\n public void init_loop() {}", "WhileStart createWhileStart();", "WhileLoopRule createWhileLoopRule();", "public Loop getLoop(Node nd) {\n\t\t\n\n\t\tint addr = nd.getAddress();\n\t\treturn getLoop(addr);\n\t\t\n\t}", "public static GameLoop getInstance(){\n if( networked ){\n return NetworkGameLoop.getInstance();\n }\n if(uniqueInstance == null){\n uniqueInstance = new GameLoop();\n }\n return uniqueInstance;\n }", "@Override\r\n public void init_loop() {\r\n }", "@Override\r\n public void init_loop() {\r\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "public boolean isLoopMode();", "public void setLoopMode(boolean loopMode);", "void initLoop(){\n Context c = getContext();\n if (c == null){\n if (getLoop() > 0){\n setContext(new Context());\n initContext(getContext());\n }\n }\n else {\n initContext(getContext());\n }\n }", "public void setLoop(boolean loop) {\n this.loop = loop;\n }", "ForLoopRule createForLoopRule();", "public GameLoop(Game game) {\n\t\tthis.game = game;\n\t}", "public void loopExecute(){\n\n }", "public Iterator<T> iterator() {\r\n \r\n return new Iteration();\r\n }", "@Override\n public void visit(LoopControlNode loopControlNode) {\n }", "public static LoopExpression loop(Expression body, LabelTarget breakTarget) { throw Extensions.todo(); }", "public static void main(String args[]){\n NodeLoop A = new NodeLoop(\"A\");\n NodeLoop B = new NodeLoop(\"B\");\n NodeLoop C = new NodeLoop(\"C\");\n NodeLoop D = new NodeLoop(\"D\");\n NodeLoop E = new NodeLoop(\"E\");\n //A->B->C->D->E->C\n A.next = B;\n B.next = C;\n C.next = D;\n D.next = E;\n E.next = C;\n\n LoopDetection go = new LoopDetection();\n go.findLoop(A);\n\n }", "public void setLoop(boolean loop) {\n\t\tthis.loop = loop;\n\t}", "public static LoopExpression loop(Expression body, LabelTarget breakTarget, LabelTarget continueTarget) { throw Extensions.todo(); }", "void toggleLoop();", "@Override public void init_loop() {\n loop_cnt_++;\n }", "public final JCLoopBlock loop() throws RecognitionException {\n JCLoopBlock loop = null;\n\n\n JCBlock bl =null;\n\n\n try {\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:453:33: ( OPEN_LOOP bl= blocks maxiterations CLOSE_LOOP )\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:453:35: OPEN_LOOP bl= blocks maxiterations CLOSE_LOOP\n {\n match(input,OPEN_LOOP,FOLLOW_OPEN_LOOP_in_loop484); \n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: loop: #& \");\n }\n loop = problem.createLoopBlock();\n\n\n pushFollow(FOLLOW_blocks_in_loop491);\n bl=blocks();\n\n state._fsp--;\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: loop: #& bl=blocks\");\n }\n problem.addBlocksToLoop(bl);\n\n\n pushFollow(FOLLOW_maxiterations_in_loop497);\n maxiterations();\n\n state._fsp--;\n\n\n \n if (displayProductions == true)\n {\n System.out.println(\"Production: loop: #& bl=blocks maxiterations\");\n }\n\n\n match(input,CLOSE_LOOP,FOLLOW_CLOSE_LOOP_in_loop502); \n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: loop: #& bl=blocks maxiterations &#\");\n }\n loop = problem.storeLoopBlock();\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 loop;\n }", "private Loop whileStatement()\n\t{\n\t\tmatch(TokenType.While);\n\t\t// (\n\t\tmatch(TokenType.LeftParen);\n\t\t// <<Expression>>\n\t\tExpression e = expression();\n\t\t// )\n\t\tmatch(TokenType.RightParen);\n\t\t// <<Statement>>\n\t\tStatement s = statement();\n\t\t\n\t\treturn new Loop(e, s); // student exercise\n\t}", "public int getLoopInterval()\r\n {\r\n return loopInterval;\r\n }", "public boolean foundLoop();", "public void loop() {\n try {\n if (clip != null) {\n new Thread() {\n public void run() {\n synchronized (clip) {\n clip.stop();\n clip.setFramePosition(0);\n clip.loop(Clip.LOOP_CONTINUOUSLY);\n }\n }\n }.start();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "WhileEnd createWhileEnd();", "public static LoopExpression loop(Expression body) { throw Extensions.todo(); }", "public void setLoopInterval(int loopInterval)\r\n {\r\n this.loopInterval = loopInterval;\r\n }", "public void loop() {\n\t\tloop(1.0f, 1.0f);\n\t}", "public void loop() {\n System.out.println(\"loop\");\n }", "public Generator(){}", "public ListaLoop getListaLoop() {\r\n\t\treturn listaLoop;\r\n\t}", "private void startReadLoop() {\n\t\t\n\t\treadLoop=new Thread() {\n\t\t\tpublic void run() {\n\t\t\t\t/*\n\t\t\t\t * According to the spec, we should be able to read an 8 character string,\n\t\t\t\t * which we turn into a number, and that number is the size of the next data\n\t\t\t\t * block. In all likelihood our buffer will be much bigger, but the whole point\n\t\t\t\t * of using the buffer is we don't have to care about the underlying sync between\n\t\t\t\t * what we have read, what the device has written etc. etc. \n\t\t\t\t */\n\t\t\t\twhile(keepGoing) {\n//\t\t\t\t\tif(pauseForCommand) {\n//\t\t\t\t\t\ttry {\n//\t\t\t\t\t\t\tThread.sleep(50);\t//Give a bit of time for something else...\n//\t\t\t\t\t\t} catch (InterruptedException 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\tSystem.err.println(\"readLoop is paused\");\n//\t\t\t\t\t\tcontinue;\n//\t\t\t\t\t}\n\t\t\t\t\tDocument xmlDoc;\n\t\t\t\t\ttry {\n\t\t\t\t\t\txmlDoc = getNextBlock();\n\t\t\t\t\t\tif(xmlDoc.hasChildNodes()) {\n\t\t\t\t\t\t\tprocessChildren(xmlDoc);\n\t\t\t\t\t\t}\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} catch (SAXException 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\t\n\t\t\t\t}\n\t\t\t\tlog.info(\"Read loop finishing as keepGoing now false\");\n\t\t\t}\n\t\t};\n\t\treadLoop.setName(\"NKV550Reader\");\n\t\treadLoop.setPriority(Thread.MAX_PRIORITY);\n\t\treadLoop.start();\n\t}", "public final EObject ruleLoop() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token otherlv_1=null;\n Token lv_i_2_0=null;\n Token otherlv_3=null;\n\n\n \tenterRule();\n\n try {\n // InternalMLRegression.g:1136:2: ( (otherlv_0= 'loop' otherlv_1= ':' ( (lv_i_2_0= RULE_INT ) ) otherlv_3= ';' ) )\n // InternalMLRegression.g:1137:2: (otherlv_0= 'loop' otherlv_1= ':' ( (lv_i_2_0= RULE_INT ) ) otherlv_3= ';' )\n {\n // InternalMLRegression.g:1137:2: (otherlv_0= 'loop' otherlv_1= ':' ( (lv_i_2_0= RULE_INT ) ) otherlv_3= ';' )\n // InternalMLRegression.g:1138:3: otherlv_0= 'loop' otherlv_1= ':' ( (lv_i_2_0= RULE_INT ) ) otherlv_3= ';'\n {\n otherlv_0=(Token)match(input,33,FOLLOW_4); \n\n \t\t\tnewLeafNode(otherlv_0, grammarAccess.getLoopAccess().getLoopKeyword_0());\n \t\t\n otherlv_1=(Token)match(input,12,FOLLOW_15); \n\n \t\t\tnewLeafNode(otherlv_1, grammarAccess.getLoopAccess().getColonKeyword_1());\n \t\t\n // InternalMLRegression.g:1146:3: ( (lv_i_2_0= RULE_INT ) )\n // InternalMLRegression.g:1147:4: (lv_i_2_0= RULE_INT )\n {\n // InternalMLRegression.g:1147:4: (lv_i_2_0= RULE_INT )\n // InternalMLRegression.g:1148:5: lv_i_2_0= RULE_INT\n {\n lv_i_2_0=(Token)match(input,RULE_INT,FOLLOW_6); \n\n \t\t\t\t\tnewLeafNode(lv_i_2_0, grammarAccess.getLoopAccess().getIINTTerminalRuleCall_2_0());\n \t\t\t\t\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getLoopRule());\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\"i\",\n \t\t\t\t\t\tlv_i_2_0,\n \t\t\t\t\t\t\"org.eclipse.xtext.common.Terminals.INT\");\n \t\t\t\t\n\n }\n\n\n }\n\n otherlv_3=(Token)match(input,13,FOLLOW_2); \n\n \t\t\tnewLeafNode(otherlv_3, grammarAccess.getLoopAccess().getSemicolonKeyword_3());\n \t\t\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 While_Statement_Test()\n {\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tnew Niveau1();\n\t\t\t}", "public JavaLoopDrawingExample() {\n // expression example variables\n inputA = false;\n inputB = false;\n inputC = false;\n inputD = false;\n inputE = 0.0;\n inputF = 0.0;\n outputY = false;\n outputZ = 0.0;\n // GUI components\n initComponents();\n }", "Run createRun();", "public void createWalk() {\n\t\t\n\t\twhile(!isDone()) {\n\t\t\tstep();\n\t\t}\n\n\t}", "void resetLoop () {\n try {\n timer.cancel();\n timer.purge();\n } catch (Exception e) {\n\n }\n timer = new Timer();\n timer.schedule(new LoopTask(), stepDelay, stepDelay);\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tmLc.iterate() ;\n\t\t\t\t}", "public void resetLoop(){\n\t\tloopTime = 0;\n\t}", "public final EObject entryRuleLoop() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleLoop = null;\n\n\n try {\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:1516:2: (iv_ruleLoop= ruleLoop EOF )\n // ../org.xtext.example.browser/src-gen/org/xtext/example/browser/parser/antlr/internal/InternalBrowser.g:1517:2: iv_ruleLoop= ruleLoop EOF\n {\n newCompositeNode(grammarAccess.getLoopRule()); \n pushFollow(FOLLOW_ruleLoop_in_entryRuleLoop2954);\n iv_ruleLoop=ruleLoop();\n\n state._fsp--;\n\n current =iv_ruleLoop; \n match(input,EOF,FOLLOW_EOF_in_entryRuleLoop2964); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "private Loop parseDo(Tokenizer in) {\n\t\tLoop loop = new Loop();\n\t\tloop.body = parseStmt(in);\n\t\tToken expectWhile = in.next();\n\t\tif (expectWhile.type != Token.TokenType.KEYWORD || ((KeywordToken) expectWhile).value != Keyword.WHILE)\n\t\t\tthrow new SyntaxError(\"Expected while got: '\"+expectWhile+\"'\"+expectWhile.generateLineChar());\n\t\tToken expectParen = in.next();\n\t\tif (expectParen.type != Token.TokenType.OPEN_PARENTHESIS)\n\t\t\tthrow new SyntaxError(\"Expected ( got: '\"+expectParen+\"'\"+expectParen.generateLineChar());\n\t\t\n\t\tloop.condition = parseParen(in);\n\t\treturn loop;\n\t}", "public void run() {\n gameLogic = new GameLogic(drawManager.getGameFrame());\n long lastLoopTime = System.nanoTime();\n final int TARGET_FPS = 60;\n final long OPTIMAL_TIME = 1000000000 / TARGET_FPS;\n loop(lastLoopTime, OPTIMAL_TIME);\n }", "public void run(){\n for(;;)\r\n System.out.println(\"Hello\" + name);\r\n }", "@Override\n\tpublic void run() {\n\t\twhile(true){\n\t\t\t\n\t\t}\n\t}", "@Override\r\n\t\tpublic void run() {\n\t\t\twhile(true){\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}", "public int getLoopCount() {\n return this.loopCount;\n }", "public void loop(){\n\t\t\n\t\tclip.loop(Clip.LOOP_CONTINUOUSLY);\n\t\tplay();\n\t}", "public void run() {\n mReaderHelper.runLoopInventroy();\n mLoopHandler.postDelayed(this, 100);\n }", "public final void rule__Loop__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMLRegression.g:2179:1: ( ( 'loop' ) )\n // InternalMLRegression.g:2180:1: ( 'loop' )\n {\n // InternalMLRegression.g:2180:1: ( 'loop' )\n // InternalMLRegression.g:2181:2: 'loop'\n {\n before(grammarAccess.getLoopAccess().getLoopKeyword_0()); \n match(input,33,FOLLOW_2); \n after(grammarAccess.getLoopAccess().getLoopKeyword_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public boolean getLoops() { return getEndAction().startsWith(\"Loop\"); }", "public RunIterator iterator() {\n // Replace the following line with your solution.\n return new RunIterator(runs.getFirst());\n // You'll want to construct a new RunIterator, but first you'll need to\n // write a constructor in the RunIterator class.\n \n \n }", "public void run() {\n load();\n try {\n loop();\n } catch (InterruptedException e) {\n System.err.println(\"An Error occured :\" + e.getMessage());\n }\n quit();\n }", "protected OpenLoopSpeedController()\r\n\t{\r\n\t\t\r\n\t}", "public long getLoopTime();", "public void loop() {\n this.instructionList.restart();\t\n }", "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 void unsetLoop()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(LOOP$16);\n }\n }", "protected abstract void trace_begin_loop();", "public void run()\n {\n\n }", "public void run() {\n\n\t}", "public void run() {\n\n\t}", "public void run()\n {\n }", "public void run()\n {\n }", "public final JCLoopBlock loop2() throws RecognitionException {\n JCLoopBlock loop2 = null;\n\n\n JCBlock bl2 =null;\n\n\n try {\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:804:35: ( OPEN_LOOP bl2= blocks2 maxiterations2 CLOSE_LOOP )\n // C:\\\\Users\\\\Cavicchio\\\\workspace\\\\InterDepAdjStructure\\\\newgrammar\\\\JCB_tree.g:804:37: OPEN_LOOP bl2= blocks2 maxiterations2 CLOSE_LOOP\n {\n match(input,OPEN_LOOP,FOLLOW_OPEN_LOOP_in_loop2918); \n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: loop2: #& \");\n }\n loop2 = problem.accessLoopBlock();\n\n\n pushFollow(FOLLOW_blocks2_in_loop2925);\n bl2=blocks2();\n\n state._fsp--;\n\n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: loop: #& bl2=blocks2\");\n }\n\n\n pushFollow(FOLLOW_maxiterations2_in_loop2931);\n maxiterations2();\n\n state._fsp--;\n\n\n \n if (displayProductions == true)\n {\n System.out.println(\"Production: loop2: #& bl2=blocks2 maxiterations2\");\n }\n\n\n match(input,CLOSE_LOOP,FOLLOW_CLOSE_LOOP_in_loop2936); \n\n\n if (displayProductions == true)\n {\n System.out.println(\"Production: loop2: #& bl2=blocks2 maxiterations2 &#\");\n }\n problem.computeLoopBlockSolution(loop2);\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 loop2;\n }", "public int getLoopCount() {\n\t\treturn loopCount;\n\t}", "public void run()\n\t{\n\t}", "public void run() {\n initRun();\n while (true) {\n this.step();\n }\n }" ]
[ "0.64822114", "0.64296544", "0.6403959", "0.63889873", "0.6377906", "0.6358063", "0.6340867", "0.62935793", "0.62935793", "0.6112797", "0.60972273", "0.60567963", "0.5875264", "0.58539337", "0.5840517", "0.5835401", "0.57839453", "0.5745847", "0.5745847", "0.57351613", "0.57351613", "0.57351613", "0.57351613", "0.57351613", "0.57351613", "0.57351613", "0.57351613", "0.57351613", "0.57351613", "0.57351613", "0.57351613", "0.57351613", "0.57351613", "0.57351613", "0.57351613", "0.57350135", "0.5692741", "0.56754166", "0.5672133", "0.5652529", "0.5643948", "0.56392777", "0.5635049", "0.5633956", "0.5570794", "0.55659294", "0.551657", "0.5497408", "0.5496694", "0.54795414", "0.54177034", "0.5387428", "0.53870046", "0.53833395", "0.5379642", "0.5366951", "0.5360595", "0.5356759", "0.53328973", "0.53194803", "0.5296512", "0.5256729", "0.52478117", "0.5246324", "0.52435267", "0.5235388", "0.5202159", "0.51660526", "0.5139584", "0.513467", "0.5129737", "0.5123868", "0.5108879", "0.5106798", "0.5087648", "0.5085901", "0.50850964", "0.5069157", "0.5067158", "0.5047628", "0.5040534", "0.5030868", "0.50253487", "0.50166446", "0.5014041", "0.5006862", "0.5002556", "0.49986374", "0.49887225", "0.49717292", "0.49624753", "0.49563888", "0.4954199", "0.4954199", "0.49514428", "0.49514428", "0.4942206", "0.49361113", "0.4935712", "0.49289876" ]
0.8066995
0
Returns a new object of class 'Rcl Block'.
RclBlock createRclBlock();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Block createBlock();", "Block create(int xpos, int ypos);", "public Block() {\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tthis.point_BlockTopRight = null;\r\n\t\tthis.point_BlockDownleft = null;\r\n\t\tthis.setpoint_BlockTopLeft(null);\r\n\t\tthis.IDBloack = 0;\r\n\t\tthis.type = \"\";\r\n\t}", "BlockConstant createBlockConstant();", "public Block() {\n this((byte) 0, (byte) 0);\n }", "public Block(Block bl) {\r\n\t\tthis.type = bl.type;\r\n\t\tthis.point_BlockTopRight = new Point3D(bl.point_BlockTopRight);\r\n\t\tthis.point_BlockDownleft = new Point3D(bl.point_BlockDownleft);\r\n\t\tthis.setpoint_BlockTopLeft(new Point3D(bl.getpoint_BlockTopRight().y(),bl.getpoint_BlockDownleft().x()));\r\n\t\tthis.setPoint_BlockDownRight(new Point3D(bl.getpoint_BlockDownleft().y(),bl.getpoint_BlockTopRight().x()));\r\n\t\tthis.IDBloack = bl.IDBloack;\r\n\r\n\t}", "public Block( ) {\r\n _offSetRow = 0;\r\n _offSetCol = 0;\r\n _noOfRows = 0;\r\n _noOfCols = 0;\r\n }", "BranchingBlock createBranchingBlock();", "public Block(){\n\t\tthis.type = Code.Type.NULL;\n\t}", "public Block() {\n this.xPos = 0;\n this.yPos = 0;\n this.width = 0;\n this.height = 0;\n this.color = Color.MINTCREAM;\n }", "@Deprecated public Block getBlock(){\n return this.block!=null?this.block.build():null;\n }", "public Block(){\n\t\tinstns = new ArrayList<Instruction>();\n\t}", "BAnyBlock createBAnyBlock();", "protected Block getBlock() {\r\n return this.block;\r\n }", "public ItemBlock createItemBlock() {\n\t\treturn new GenericItemBlock(this);\n\t}", "DefineBlock createDefineBlock();", "public Block getBlock()\n {\n return block;\n }", "Block getBlock(String congName, String blockName, String blockNumber);", "public BlockIF newBlock(String label, SourceIF text) {\n\t\tif (text == null)\n\t\t\tthrow new NullPointerException(\"The argument text cannot be null\");\n\t\treturn new Block(label, text);\n\t}", "private void createBlock() {\n\t\tblock = new Block(mouseX, mouseY, 25, 25);\r\n\t\tblock.addObserver(this);\r\n\t\tblock.start();\r\n\t\t// System.out.println(\"Block created (at Model.createBlock)\");\r\n\t}", "DirectionBlock createDirectionBlock();", "BlockFor createBlockFor();", "public Block()\n {\n this.blockType = BlockType.AIR;\n }", "public Block getObj()\n\t{\n\t\treturn block;\n\t}", "StatementBlock createStatementBlock();", "protected Block(int id, String hr_ident){\n super(id,hr_ident);\n\n //set some standards\n this.visible = true;\n this.solid = true;\n }", "public Block(){\r\n\t\tthis.altitude = 0;\r\n\t\tthis.river = false;\t\r\n\t\tthis.ocean = false;\r\n\t\tthis.river = false;\r\n\t\tborder = false;\r\n\t}", "public TileBlockBase(BlockBehaviour.Properties properties) {\n super(properties);\n }", "public Block( Block block ) {\r\n _offSetRow = block._offSetRow;\r\n _offSetCol = block._offSetCol;\r\n _noOfRows = block._offSetRow;\r\n _noOfCols = block._noOfCols;\r\n }", "@Override\n public CssDeclarationBlockNode getBlock() {\n return (CssDeclarationBlockNode) super.getBlock();\n }", "public AEADBlockCipher newInstance()\n {\n final BlockCipher blockCipher = new BlockCipherSpec(algorithm).newInstance();\n AEADBlockCipher aeadBlockCipher;\n if (\"GCM\".equals(mode)) {\n aeadBlockCipher = new GCMBlockCipher(blockCipher);\n } else if (\"CCM\".equals(mode)) {\n aeadBlockCipher = new CCMBlockCipher(blockCipher);\n } else if (\"OCB\".equals(mode)) {\n aeadBlockCipher = new OCBBlockCipher(blockCipher, new BlockCipherSpec(algorithm).newInstance());\n } else if (\"EAX\".equals(mode)) {\n aeadBlockCipher = new EAXBlockCipher(blockCipher);\n } else {\n throw new IllegalStateException(\"Unsupported mode \" + mode);\n }\n return aeadBlockCipher;\n }", "public Block instance(int paramInt)\r\n/* 194: */ {\r\n/* 195:225 */ return instance().setData(a, bds.b(paramInt)).setData(b, (paramInt & 0x8) > 0 ? bdu.b : bdu.a);\r\n/* 196: */ }", "public CLIJ2_ResliceRadialTopBlock() {\n super(new ResliceRadialTop());\n }", "public Block getBlock()\n\t{\n\t\treturn this.block;\n\t}", "public Block(Vector2 position, float width, float height, int type){\n this.position = position;\n this.type = type;\n\n rectangle = new RectF(position.x, position.y, position.x + width, position.y + height);\n\n paint = new Paint();\n paint.setStyle(Paint.Style.FILL);\n }", "@ASTNodeAnnotation.Child(name=\"Block\")\n public Block getBlock() {\n return (Block) getChild(0);\n }", "Block (int start, int size)\n {\n this.start = start;\n this.size = size;\n }", "public Block getBlock() {\n return (Block)getChild(0);\n }", "public JsonObject raw_block() {\n \tJsonObject block = new JsonObject();\n \tblock.addProperty(\"BlockID\", blockId);\n \tif(!BlockChain.isEmpty())\n \t block.addProperty(\"PrevHash\", Hash.getHashString(getLongestBranch().last_block.toString()));\n \telse {\n \t\tblock.addProperty(\"PrevHash\", \"0000000000000000000000000000000000000000000000000000000000000000\");\n \t}\n \tblock.addProperty(\"Nonce\", \"00000000\");\n block.addProperty(\"MinerID\", \"Server\"+String.format(\"%02d\", minerId));\n \n \tJsonArray newTxPool = new JsonArray();\n \tJsonArray transactions = new JsonArray();\n \tint N = TxPool_new.size();\n \tint i;\n \tfor (i=0; i<N && i<50; i++) {\n \t\ttransactions.add(TxPool_new.get(i));\n \t\t//TxPool_used.add(TxPool_new.get(i));\n \t}\n \tfor (; i<N; i++)\n \t\tnewTxPool.add(TxPool_new.get(i));\n \tblock.add(\"Transactions\", transactions);\n\n \treturn block;\n }", "public Block createBlock(Position pos, List<Stmt> stmts) {\n return xnf.Block(pos, stmts);\n }", "BlockAssignmentType createBlockAssignmentType();", "public Block getBlock() {\n\t\treturn this.block;\n\t}", "TestBlock createTestBlock();", "@Override\n public Block getBlock() {\n Block b = null;\n while (b == null) {\n boolean noMoreBlocks = blocks.isEmpty();\n if (!noMoreBlocks) {\n b = blocks.poll();\n }\n\n if (noMoreBlocks || b == null) {\n synchronized (BlocksPool.class) { // can be easily changed to lock-free\n if (blocks.isEmpty()) {\n alloc(newAllocBlocks);\n }\n }\n }\n }\n return b;\n }", "JStaticBlock(int line, JBlock body) {\r\n\t\tsuper(line);\r\n\t\tthis.block = body;\r\n\t}", "public phaseI.Hdfs.BlockLocations.Builder getNewBlockBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getNewBlockFieldBuilder().getBuilder();\n }", "public BlockResync() {\n this(\"block_resync\", null);\n }", "@Override\n public List<Block> blocks() {\n int columns = 15, width = 51, height = 30;\n Color darkGreen = new Color(29, 101, 51);\n List<Block> blocks = new ArrayList<>();\n for (int j = 0; j < columns; j++) {\n blocks.add(new Block(new arkanoid.geometry.Rectangle(new Point(20 + width * j, 110 + height),\n width, height), darkGreen));\n }\n return blocks;\n }", "protected Block(short id) {\n this(id, (byte) 0);\n }", "public Block( int noOfRows, int noOfCols ) {\r\n _offSetRow = 0;\r\n _offSetCol = 0;\r\n _noOfRows = noOfRows;\r\n _noOfCols = noOfCols;\r\n }", "private BlocksPool() {\n this(DEFAULT_BLOCK_SIZE_BYTES);\n }", "Tetrisblock2()\n {\n newblockparam();\n newmapparam();\n setboundary();\n }", "public Block( int offSetRow, int offSetCol, int noOfRows, int noOfCols ) {\r\n _offSetRow = offSetRow;\r\n _offSetCol = offSetCol;\r\n _noOfRows = noOfRows;\r\n _noOfCols = noOfCols;\r\n }", "@Override\n\tprotected void buildBlockClass(String uvmBlockClassName, Boolean hasCallback) {\n\t\t// create text name and description if null\n\t\tString id = regSetProperties.getId();\n\t\tString refId = regSetProperties.getBaseName(); // ref used for block structure lookup\n\t\t\n\t\tString textName = regSetProperties.getTextName();\n\t\tif (textName == null) textName = \"Block \" + id;\n\n\t\t// generate register header \n\t\toutputList.add(new OutputLine(indentLvl, \"\"));\t\n\t\toutputList.add(new OutputLine(indentLvl, \"// \" + textName));\n\t\toutputList.add(new OutputLine(indentLvl++, \"class \" + uvmBlockClassName + \"#(type ALTPBLOCK_T = \" + altModelRootType + \", type ALTBLOCK_T = \" + altModelRootType + \") extends uvm_block_translate;\")); \n\n\t\t// create field definitions \n\t\tbuildBlockDefines(refId);\n\t\t\n\t\t// create new function\n\t\t//buildBlockNewDefine(uvmBlockClassName); \n\t\t\n\t\t// create build function \n\t\tbuildBlockBuildFunction(refId);\n\t\t\n\t\t// get_alt_block - return alternate model regset struct corresponding to this block\n\t\tString escRegSetId = escapeReservedString(regSetProperties.getId());\n\t\tSystemVerilogFunction func = new SystemVerilogFunction(\"ALTBLOCK_T\", \"get_alt_block\"); \n\t\tif (regSetProperties.isRootInstance())\n\t\t\t func.addStatement(\"return \" + escRegSetId + \";\");\n\t\telse {\n\t\t\tfunc.addStatement(\"ALTPBLOCK_T alt_parent = m_parent.get_alt_block();\");\n\t\t\tif (regSetProperties.isReplicated())\n\t\t\t func.addStatement(\"return alt_parent.\" + escRegSetId + \"[m_rep];\");\n\t\t\telse \n\t\t\t func.addStatement(\"return alt_parent.\" + escRegSetId + \";\"); \n\t\t}\n\t\toutputList.addAll(func.genOutputLines(indentLvl));\t\n\t\t\n\t\t// close out the class definition\n\t\toutputList.add(new OutputLine(indentLvl, \"\"));\t\n\t\t//outputList.add(new OutputLine(indentLvl, \"`uvm_object_utils(\" + uvmBlockClassName + \")\")); \n\t\toutputList.add(new OutputLine(--indentLvl, \"endclass : \" + uvmBlockClassName));\n\t}", "Tetrisblock()\n {\n newblockparam();\n newmapparam();\n setboundary();\n }", "private InheritableBuildingBlock() {\r\n super(IInheritableBuildingBlock.TYPE_ID);\r\n }", "protected Lock(Block block) {\r\n this(block, null, null, null);\r\n }", "@NotNull\r\n Block getBlock(int x, int y, int z);", "public static Geometry assembleBlock(Block block, Vector3f location) {\n Geometry g = createLimb(block.collisionShapeType, block.width, block.height, block.length, location, block.mass, block.rotation, block.rotationForYRP);\n block.applyProperties(g);\n return g;\n }", "BlockchainFactory getBlockchainFactory();", "public static Block getInstance(short id) {\n return getInstance(id, (byte) 0);\n }", "public LCMultiblockPacket() {\n\t}", "ActionBlock createActionBlock();", "public MutableBlock createMutableBlock(ExpressionBuilder expression) {\r\n return new MutableBlock(passwordType, expression.toString());\r\n }", "public List<Block> blocks() {\r\n List<Block> list = new ArrayList<Block>();\r\n double width = 50;\r\n for (int i = 0; i < 7; ++i) {\r\n Color c = new Color(0, 0, 0);\r\n switch (i) {\r\n case 0:\r\n c = Color.gray;\r\n break;\r\n case 1:\r\n c = Color.red;\r\n break;\r\n case 2:\r\n c = Color.yellow;\r\n break;\r\n case 3:\r\n c = Color.green;\r\n break;\r\n case 4:\r\n c = Color.white;\r\n break;\r\n case 5:\r\n c = Color.pink;\r\n break;\r\n default:\r\n c = Color.cyan;\r\n break;\r\n }\r\n for (int j = 0; j < 15; ++j) {\r\n Block b = new Block(new Rectangle(new Point(\r\n 25 + j * width, 100 + i * 20), width, 20));\r\n if (i == 0) {\r\n b.setHitPoints(2);\r\n } else {\r\n b.setHitPoints(1);\r\n }\r\n list.add(b);\r\n }\r\n }\r\n return list;\r\n }", "public ContextBodyBlock() {\n super();\n\r\n setChild(new List(), 0);\r\n setChild(new List(), 1);\r\n setChild(new List(), 2);\r\n\r\n }", "phaseI.Hdfs.BlockLocations getNewBlock();", "public RawBlockContainer copy() {\n final RawBlockContainer container = new RawBlockContainer();\n container.setVersion(ArrayUtil.arrayCopy(getVersion()));\n container.setPreviousBlockHash(ArrayUtil.arrayCopy(getPreviousBlockHash()));\n container.setMerkleRoot(ArrayUtil.arrayCopy(getMerkleRoot()));\n container.setTimestamp(ArrayUtil.arrayCopy(getTimestamp()));\n container.setBits(ArrayUtil.arrayCopy(getBits()));\n container.setNonce(ArrayUtil.arrayCopy(getNonce()));\n return container;\n }", "public BlockChain() {\n this.blockChain = new ArrayList<>();\n this.chainHash = \"\";\n }", "protected Block(short id, byte data) {\n this.id = id;\n this.data = data;\n }", "public Block getBlock(int i) {\n\t\treturn Block.getBlock(id(i));\n\t}", "public Block(Record[] records, int blockSize) {\n this.records = records;\n this.blockSize = blockSize;\n }", "Block getHiveBlock();", "public Block createBlock(Position pos, Term... terms) {\n return createBlock(pos, convertToStmtList(terms));\n }", "public MutableBlock createMutableBlock(String expression) {\r\n return new MutableBlock(passwordType, expression);\r\n }", "void buildBlock(Tile t);", "public BlockType getType()\n {\n return blockType;\n }", "public Block getBlockNoTransform() {\n return (Block)getChildNoTransform(0);\n }", "List<Block> blocks();", "phaseI.Hdfs.BlockLocationsOrBuilder getNewBlockOrBuilder();", "private Block(Location topLeft, short length, short width) {\n\t\tif (length<=0 || width<=0){\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\telse if (topLeft==null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t\tthis.topLeft = topLeft;\n\t\tthis.length = length;\n\t\tthis.width = width;\n\t}", "public Block(Point upperLeft, double width, double height, Background background) {\r\n this.rectangle = new Rectangle(upperLeft, width, height);\r\n this.background = background;\r\n this.borderColor = null;\r\n this.hitListeners = new ArrayList<>();\r\n }", "MultipleBranchingBlock createMultipleBranchingBlock();", "public alluxio.proto.journal.File.NewBlockEntry getNewBlock() {\n return newBlock_;\n }", "public BuildingBlock(int blockId, Color color) {\n Image bbGreenImage = new Image(getClass().getResourceAsStream(VisibleObjects.MAKE_LONGER_BONUS.getImage()));\n bbGreen = new ImagePattern(bbGreenImage);\n VisibleObjects.MAKE_LONGER_BONUS.setBlockImage(bbGreen);\n Image bbYellowImage = new Image(getClass().getResourceAsStream(VisibleObjects.MAKE_FASTER_BONUS.getImage()));\n bbYellow = new ImagePattern(bbYellowImage);\n VisibleObjects.MAKE_FASTER_BONUS.setBlockImage(bbYellow);\n Image bbRedImage = new Image(getClass().getResourceAsStream(VisibleObjects.SHOOT_BONUS.getImage()));\n bbRed = new ImagePattern(bbRedImage);\n VisibleObjects.SHOOT_BONUS.setBlockImage(bbRed);\n Image bbGreyImage = new Image(getClass().getResourceAsStream(VisibleObjects.DEATH.getImage()));\n bbGrey = new ImagePattern(bbGreyImage);\n VisibleObjects.DEATH.setBlockImage(bbGrey);\n Image playerOneImageImage = new Image(getClass().getResourceAsStream(VisibleObjects.PLAYER_ONE.getImage()));\n playerOneImage = new ImagePattern(playerOneImageImage);\n VisibleObjects.PLAYER_ONE.setBlockImage(playerOneImage);\n Image playerTwoImageImage = new Image(getClass().getResourceAsStream(VisibleObjects.PLAYER_TWO.getImage()));\n playerTwoImage = new ImagePattern(playerTwoImageImage);\n VisibleObjects.PLAYER_TWO.setBlockImage(playerTwoImage);\n Image playerThreeImageImage = new Image(getClass().getResourceAsStream(VisibleObjects.PLAYER_THREE.getImage()));\n playerThreeImage = new ImagePattern(playerThreeImageImage);\n VisibleObjects.PLAYER_THREE.setBlockImage(playerThreeImage);\n Image playerFourImageImage = new Image(getClass().getResourceAsStream(VisibleObjects.PLAYER_FOUR.getImage()));\n playerFourImage = new ImagePattern(playerFourImageImage);\n VisibleObjects.PLAYER_FOUR.setBlockImage(playerFourImage);\n Image playerOneImageImageRIP = new Image(getClass().getResourceAsStream(PlayerEnum.PLAYER_ONE.getImage()));\n playerOneImageRIP = new ImagePattern(playerOneImageImageRIP);\n PlayerEnum.PLAYER_ONE.setPlayerDeathImage(playerOneImageRIP);\n Image playerTwoImageImageRIP = new Image(getClass().getResourceAsStream(PlayerEnum.PLAYER_TWO.getImage()));\n playerTwoImageRIP = new ImagePattern(playerTwoImageImageRIP);\n PlayerEnum.PLAYER_TWO.setPlayerDeathImage(playerTwoImageRIP);\n Image playerThreeImageImageRIP = new Image(getClass().getResourceAsStream(PlayerEnum.PLAYER_THREE.getImage()));\n playerThreeImageRIP = new ImagePattern(playerThreeImageImageRIP);\n PlayerEnum.PLAYER_THREE.setPlayerDeathImage(playerThreeImageRIP);\n Image playerFourImageImageRIP = new Image(getClass().getResourceAsStream(PlayerEnum.PLAYER_FOUR.getImage()));\n playerFourImageRIP = new ImagePattern(playerFourImageImageRIP);\n PlayerEnum.PLAYER_FOUR.setPlayerDeathImage(playerFourImageRIP);\n Image deathImage = new Image(getClass().getResourceAsStream(\"rip.png\"));\n deathPattern = new ImagePattern(deathImage);\n Image deathPlayerImage = new Image(getClass().getResourceAsStream(VisibleObjects.DEATH_PLAYER.getImage()));\n deathPlayerPattern = new ImagePattern(deathPlayerImage);\n VisibleObjects.DEATH_PLAYER.setBlockImage(deathPlayerPattern);\n \n Image eplosionImage = new Image(getClass().getResourceAsStream(\"explosion.gif\"));\n explosionView = new ImagePattern(eplosionImage);\n \n explosionSound = new AudioClip(getClass().getResource(\"explosion.wav\").toExternalForm());\n \n explosionSound.play(0);\n \n this.blockId = blockId;\n this.revertColor = color;\n rectangle = new Rectangle();\n rectangle.setFill(color);\n occupant = new Death(VisibleObjects.DEATH);\n gridList.put(blockId, this);\n }", "BlockStore getBlockStore();", "public static BlockCipher createBlockCipher() {\n\t\tBlockCipherFactory factory;\n\n\t\tsynchronized (AES.class) {\n\t\t\tlong now = System.currentTimeMillis();\n\n\t\t\tfactory = AES.factory;\n\t\t\tif ((factory != null) && (now > factoryTimestamp + FACTORY_TIMEOUT))\n\t\t\t\tfactory = null;\n\t\t\tif (factory == null) {\n\t\t\t\ttry {\n\t\t\t\t\tfactory = getBlockCipherFactory();\n\t\t\t\t} catch (Throwable t) {\n\t\t\t\t\tif (t instanceof InterruptedException) {\n\t\t\t\t\t\tThread.currentThread().interrupt();\n\t\t\t\t\t} else if (t instanceof ThreadDeath) {\n\t\t\t\t\t\tthrow (ThreadDeath) t;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlogger.warn(\"Failed to initialize an optimized AES\" + \" implementation: \" + t.getLocalizedMessage());\n\t\t\t\t\t}\n\t\t\t\t} finally {\n\t\t\t\t\tif (factory == null) {\n\t\t\t\t\t\tfactory = AES.factory;\n\t\t\t\t\t\tif (factory == null)\n\t\t\t\t\t\t\tfactory = BOUNCYCASTLE_FACTORY;\n\t\t\t\t\t}\n\n\t\t\t\t\tAES.factory = factory;\n\t\t\t\t\tAES.factoryTimestamp = now;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\ttry {\n\t\t\treturn factory.createBlockCipher();\n\t\t} catch (Exception ex) {\n\t\t\tif (ex instanceof RuntimeException)\n\t\t\t\tthrow (RuntimeException) ex;\n\t\t\telse\n\t\t\t\tthrow new RuntimeException(ex);\n\t\t}\n\t}", "public Builder clearNewBlock() {\n if (newBlockBuilder_ == null) {\n newBlock_ = null;\n onChanged();\n } else {\n newBlockBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00000002);\n return this;\n }", "Block getBlockByNumber(long number);", "public final CapabilityBlock toCapabilityBlock() {\n byte[] block = CAP_TEMPLATE_BYTES.clone();\n System.arraycopy(data.toByteArray(), 0, block, 2, 2);\n\n return new CapabilityBlock(ByteBlock.wrap(block));\n }", "public BuildingBlock(int setX, int setY, int size, int blockId) {\n\n this.blockId = blockId;\n revertColor = GameGrid.GAMEGRID_COLOR;\n createRectangle(setX, setY , size, revertColor);\n double circleAdjuster = size / 2.0;\n circle = new Circle(setX + circleAdjuster, setY + circleAdjuster, circleAdjuster);\n circle.setFill(revertColor);\n gridList.put(blockId, this);\n explosionSound = new AudioClip(getClass().getResource(\"explosion.wav\").toExternalForm());\n }", "@Override\r\n public List<Block> blocks() {\r\n List<Block> blockList = new ArrayList<Block>();\r\n java.awt.Color[] colors = new Color[5];\r\n colors[0] = Color.decode(\"#c1b8b2\");\r\n colors[1] = Color.decode(\"#ef1607\");\r\n colors[2] = Color.decode(\"#ffff1e\");\r\n colors[3] = Color.decode(\"#211ed8\");\r\n colors[4] = Color.decode(\"#fffff6\");\r\n int y = 150;\r\n int[] hitPoints = {2, 1, 1, 1, 1};\r\n for (int i = 0; i < colors.length; i++) {\r\n for (int j = i + 5; j < 15; j++) {\r\n blockList.add(new Block(j * 50 + 25, y, 50, 20, colors[i], hitPoints[i]));\r\n }\r\n y += 20;\r\n }\r\n return blockList;\r\n }", "public String generateBlock(){\n return null;\n }", "public static Block resource(Block block, Attribute.Source nsrc) {\r\n\t\tif(block == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tBlock nblock = new Block(block.numInputs());\r\n\t\tfor(Entry e : block) {\r\n\t\t\tnblock.append(e.code,nsrc);\r\n\t\t}\r\n\t\treturn nblock;\r\n\t}", "public EntangledChaliceItem(Block block) {\n super(block);\n }", "public SBlock() {\n // todo\n cells = new boolean[rows][columns];\n cells[0][0] = false;\n cells[0][1] = true;\n cells[0][2] = true;\n cells[1][0] = true;\n cells[1][1] = true;\n cells[1][2] = false;\n cells[2][0] = false;\n cells[2][1] = false;\n cells[2][2] = false;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder> \n getNewBlockFieldBuilder() {\n if (newBlockBuilder_ == null) {\n newBlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n phaseI.Hdfs.BlockLocations, phaseI.Hdfs.BlockLocations.Builder, phaseI.Hdfs.BlockLocationsOrBuilder>(\n getNewBlock(),\n getParentForChildren(),\n isClean());\n newBlock_ = null;\n }\n return newBlockBuilder_;\n }", "private void setBlock(Block block) {\r\n this.block = block;\r\n }", "ControlBlockRule createControlBlockRule();", "public CreativeVoltageBlock() {\n\t\tsuper(Material.IRON);\n\t\tsetUnlocalizedName(ModElectricool.MODID + \".creativevoltage\");\n\t\tsetRegistryName(\"creativevoltage\");\n\t\tGameRegistry.register(this);\n\t\tGameRegistry.register(new ItemBlock(this), getRegistryName());\n\t\tGameRegistry.registerTileEntity(VoltageTileEntity.class, ModElectricool.MODID + \"_creativevoltage\");\t\n\t}" ]
[ "0.76345384", "0.6808605", "0.6724014", "0.67054915", "0.6700901", "0.667991", "0.66647774", "0.6652296", "0.65980303", "0.6553757", "0.651347", "0.65064794", "0.6335816", "0.6328527", "0.6295479", "0.6271767", "0.62552947", "0.6223398", "0.6197014", "0.61753905", "0.6163589", "0.6135162", "0.6115541", "0.61086756", "0.60831606", "0.6048613", "0.6029257", "0.60112673", "0.60089135", "0.5991976", "0.59910303", "0.59740555", "0.593898", "0.59056145", "0.58754873", "0.5864208", "0.5858835", "0.58586985", "0.5858549", "0.5839185", "0.58302814", "0.5813769", "0.5809281", "0.5807211", "0.5796597", "0.57853895", "0.57843417", "0.57717496", "0.57716334", "0.57510406", "0.57472116", "0.57351005", "0.5714128", "0.5708246", "0.5701541", "0.5696442", "0.5683506", "0.56777036", "0.5653571", "0.5646994", "0.5618254", "0.5612692", "0.5604763", "0.55732614", "0.55662817", "0.5565392", "0.55633307", "0.55474925", "0.55331284", "0.5531224", "0.55266213", "0.5525166", "0.55239475", "0.5517223", "0.55150115", "0.5502363", "0.5495993", "0.54941577", "0.547796", "0.54680616", "0.54636407", "0.545442", "0.54449767", "0.5439389", "0.54342794", "0.54264486", "0.5422831", "0.5413538", "0.5408812", "0.5408802", "0.5402213", "0.5401921", "0.5397756", "0.53976727", "0.5397064", "0.5392311", "0.53833413", "0.5377639", "0.5369529", "0.5366239" ]
0.8964747
0
Returns a new object of class 'Temperature Query'.
TemperatureQuery createTemperatureQuery();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "HumidityQuery createHumidityQuery();", "public Temperature() {\n\t\tsuper();\n\t}", "public static TemperatureTrackingDto getInstance () {\n return new TemperatureTrackingDto ();\n }", "public TemperatureResponse getTemperatures(TemperatureRequest request) throws Exception{\n TemperatureResponse r = this.db.getTemperatures(request.getNodeId(), request.getStartTime(), request.getEndTime(), MAX_RETURN_LIMIT);\n\n \n System.out.println(\"returning response.\");\n return r;\n }", "@JsonIgnore\n\tpublic DecimalMeasure<Temperature> getTemperatureAsMeasure()\n\t{\n\t\treturn this.temperatureAsMeasure;\n\t}", "public static QueryInterface createQuery() {\n return new XmlQuery();\n }", "public Builder clearTemperature() {\n \n temperature_ = getDefaultInstance().getTemperature();\n onChanged();\n return this;\n }", "public Informer reqInformMeasuredRoomTemperature() {\n\t\t\treqInformProperty(EPC_MEASURED_ROOM_TEMPERATURE);\n\t\t\treturn this;\n\t\t}", "public Query() {\n\n// oriToRwt = new HashMap();\n// oriToRwt.put(); // TODO\n }", "public Float getTemperature () {\n return temperature;\n }", "@RequestMapping(\"/temperature\")\n public TemperatureResponse temperature() {\n LOG.info(\"Reading temperature\");\n TemperatureResponse response = new TemperatureResponse();\n response.setHost(getHostname());\n response.setTemperature(getTemperature());\n return response;\n }", "public double getTemperature() {return temperature;}", "public Getter reqGetMeasuredRoomTemperature() {\n\t\t\treqGetProperty(EPC_MEASURED_ROOM_TEMPERATURE);\n\t\t\treturn this;\n\t\t}", "public Query() {\r\n }", "private static Temperature getNewTemperature() {\n System.out.println(\"Enter an initial temperature reading, which\");\n System.out.print(\"should be a number optionally followed by C or F: \"); \n String response = input.nextLine().trim(); \n if (echo) { System.out.println(response); }\n double initVal = parseOutNum(response);\n char scale = Character.toUpperCase(parseOutScale(response));\n\n if (scale == CEL_SCALE_CODE) { \n System.out.printf(\"Calling Temperature(%f,true)\\n\", initVal);\n return new Temperature(initVal, true);\n }\n else if (scale == FAH_SCALE_CODE) {\n System.out.printf(\"Calling Temperature(%f,false)\\n\", initVal);\n return new Temperature(initVal, false);\n }\n else { // no scale indicated\n System.out.printf(\"Calling Temperature(%f)\\n\", initVal);\n return new Temperature(initVal);\n }\n }", "public Thermometer(Person person){\r\n super(person);\r\n temperature = new MeasureUnit(\"Celsius\",\"º C\", 1);\r\n }", "public Floater createQueryFloater(QueryPanel queryPanel, Point location) {\n Floater floater = new InternalFloater(\"query\", \"Query\", location, true);\n floater.setComponent(queryPanel);\n floater.pack();\n return floater;\n }", "float getTemperature();", "@RequestMapping(value = \"/_search/temperaturas/{query}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Temperatura> searchTemperaturas(@PathVariable String query) {\n log.debug(\"REST request to search Temperaturas for query {}\", query);\n return StreamSupport\n .stream(temperaturaSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n }", "private ASTQuery() {\r\n dataset = Dataset.create();\r\n }", "public String getTemperature() {\n return temperature;\n }", "public WeatherData (Long sunset, Long sunrise, int weatherCode, String cityName, int temperature) {\n sunsetTime = sunset;\n sunriseTime = sunrise;\n weather = weatherCode;\n city = cityName;\n temp = temperature;\n }", "QueryType createQueryType();", "private void getTemperature() {\r\n \t\r\n \t//Get the date from the DateService class\r\n \tDate theDate = theDateService.getDate(); \r\n \t\r\n \t//Increment the number of readings\r\n \tlngNumberOfReadings ++;\r\n \tdouble temp = 0.0;\r\n \tString rep = \"\";\r\n \t\r\n \t//Assume that the TMP36 is connected to AIN4\r\n \trep = this.theTemperatureService.readTemperature(\"4\");\r\n \tpl(rep);\r\n \ttemp = this.theTemperatureService.getTheTemperature();\r\n \t\r\n \t//All details necessary to send this reading are present so create a new TemperatureReading object\r\n \tTemperatureReading theReading = new TemperatureReading(temp, theDate, lngNumberOfReadings);\r\n \tthis.send(theReading);\r\n \t\r\n }", "public Query( String queryString ) {\r\n\tStringTokenizer tok = new StringTokenizer( queryString );\r\n\twhile ( tok.hasMoreTokens() ) {\r\n\t terms.add( tok.nextToken() );\r\n\t weights.add( new Double(1) );\r\n\t} \r\n }", "public Query(){\n this(new MongoQueryFilter.MongoQueryFilterBuilder());\n }", "public Room (Float temperature, Float humidity, Float illumination) {\n this.temperature = temperature;\n this.humidity = humidity;\n this.illumination = illumination;\n }", "protected JPAQuery<T> createQuery() {\n\t\tJPAQuery<T> query = new JPAQuery<>(entityManager);\n\t\tquery.from(getDslRoot());\n\t\treturn query;\n\t}", "private EarthQuake rellenaTerremoto(Cursor cursor) {\n EarthQuake Terremoto = new EarthQuake();\n\n Terremoto.set_id(cursor.getString(indexes.get(Key_Terremoto_id)));\n Terremoto.setPlace(cursor.getString(indexes.get(Key_Terremoto_Place)));\n Terremoto.setUrl(cursor.getString(indexes.get(Key_Terremoto_Url)));\n Terremoto.setMagnitud(Double.parseDouble(cursor.getString(indexes.get(Key_Terremoto_Magnitud))));\n Terremoto.setTime(Long.parseLong(cursor.getString(indexes.get(Key_Terremoto_time))));\n\n Coordinate Coordenadas = new Coordinate(0, 0, 0);\n Coordenadas.setDepth(Double.parseDouble(cursor.getString(indexes.get(Key_Terremoto_Profundidad))));\n Coordenadas.setLng(Double.parseDouble(cursor.getString(indexes.get(Key_Terremoto_Longitud))));\n Coordenadas.setLat(Double.parseDouble(cursor.getString(indexes.get(Key_Terremoto_Latitud))));\n Terremoto.setCoords(Coordenadas);\n\n return Terremoto;\n }", "@GET(\"weather?APPID=bec2ea2f434c848c09196f2de96e3c4c&units=metric\")\n Single<Weather> getWeatherData(@Query(\"q\") String name);", "public String getTemperature() {\r\n\t\treturn temperature;\r\n\t}", "public Query query(String query) throws Exceptions.OsoException {\n return new Query(ffiPolar.newQueryFromStr(query), host.clone());\n }", "public Query getEffectsQuery(\r\n final IRNode flowUnit, final BindingContextAnalysis.Query query) {\r\n return new Query(flowUnit, query);\r\n }", "public QueryRegistry() {\r\n }", "public int getTemperature() {\n return temperature;\n }", "public String getTemperature() {\n\t\treturn temperature;\n\t}", "public void setTemperature(String temperature) {\n this.temperature = temperature;\n }", "@Select(customWhereClause = \"spacecraft_name= :spacecraftName AND journey_id= :journeyId\")\n PagingIterable<SpacecraftTemperatureOverTime> getTemperatureReading(\n String spacecraftName, UUID JourneyId,\n Function<BoundStatementBuilder, BoundStatementBuilder> setAttributes);", "public Builder setTemperature(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n temperature_ = value;\n onChanged();\n return this;\n }", "protected void onGetMeasuredRoomTemperature(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}", "public int getTemperature() {\n return temperature;\n }", "public Pi4jPCF8591TemperatureSensor(String name, Termistor termistor) {\n\t\tthis.name = name;\n\t\tthis.termistor = termistor;\n\t\tthis.duration = Duration.ofSeconds(1);\n\t\tthis.sensorValue = new ReactiveSensorValue<>(new Callable<Double>() {\n\n\t\t\t@Override\n\t\t\tpublic Double call() throws Exception {\n\t\t\t\treturn termistor.getTemperature(TemperatureScale.CELSIUS);\n\t\t\t}\n\t\t}, duration);\n\t\tthis.temperature = new Temperature() {\n\n\t\t\t@Override\n\t\t\tpublic Double getValue() {\n\t\t\t\treturn (double) sensorValue.getValue();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Mono<Double> asMono() {\n\t\t\t\treturn sensorValue.asMono();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Flux<Double> asFlux() {\n\t\t\t\treturn sensorValue.asFlux();\n\t\t\t}\n\t\t};\n\t}", "public AlarmTemperature getTemperature() {\n\t\treturn this.temperature;\n\t}", "private void getTemperatureAndHumidity() {\n // Get Temp and Humid sensors only at PM10 locations, otherwise\n // the connection takes too long to load all\n for (Sensor pm10sensor : this.sensorsPm10) {\n this.sensorsTempHumid.addAll(\n this.getSensors(\n this.readHTML(\n this.buildURLTempHumid(\n pm10sensor.getLatLng()))));\n }\n }", "@Override\n\tpublic <T> TypedQuery<T> createQuery(String qlString, Class<T> resultClass) {\n\t\treturn null;\n\t}", "public QueryCore(String query)\n {\n this.query = query;\n }", "T getQueryInfo();", "public void setTemperature(Float temperature) {\n this.temperature = temperature;\n }", "public double getExternalTemperature() {\r\n return externalTemperature;\r\n }", "public SolrQuery() {\n super(null);\n store = null;\n }", "public Weather() {\n }", "public Results(FilterSpecifier filter) {\r\n this.ctypes = new ArrayList<ColumnType>();\r\n if (filter.getColumnTypes() != null) {\r\n for (ColumnType ctype : filter.getColumnTypes()) {\r\n if (ctype.isPicked()) {\r\n ctypes.add(ctype);\r\n }\r\n }\r\n }\r\n this.listBy = filter.getListBy();\r\n this.geneList = filter.getGeneList();\r\n this.patientList = filter.getPatientList();\r\n this.disease = filter.getDisease();\r\n this.chromRegions = filter.getChromRegions();\r\n this.geneListOptions = filter.getGeneListOptions();\r\n this.patientListOptions = filter.getPatientListOptions();\r\n }", "public QueryLocator() {\n this(new Random().nextInt(1024));\n }", "public ArrayList<String> Temperature(String from, float amount, String[] units) {\n\t\tfrom = findFrom(from);\n\t\tif (from.equals(\"Celcius\")) {\n\t\t\tArrayList<String> kaduvil = new ArrayList<String>();\n\t\t\tkaduvil.add(\"\" + amount + \" \" + units[0] );\n\t\t\tkaduvil.add(\"\" + (((amount*9)/5)+32) + \" \" + units[1] );\n\t\t\tkaduvil.add(\"\" + (amount + 273.15f) + \" \" + units[2] );\n\t\t\treturn kaduvil;\n\t\t} else {\n\t\t\tif (from.equals(\"Kelvin\")) {\n\t\t\t\treturn Temperature(\"Celcius\", (amount-273.15f), units);\n\t\t\t} else {\n\t\t\t\treturn Temperature(\"Celcius\", (((amount-32)*5)/9), units);\n\t\t\t}\n\t\t}\n\t}", "public Query(Class c, String variable, String expression) {\r\n\t\t_product = c;\r\n\t\t_variable = variable;\r\n\t\t_expression = expression;\r\n\r\n\t}", "public Measurement(Double airQualityIndex, Double humidity, Date measurementTime,\n Double pm1, Double pm25, Double pm10, Integer pollutionLevel,\n Double pressure, Double temperature) {\n this.airQualityIndex = airQualityIndex;\n this.humidity = humidity;\n this.measurementTime = measurementTime;\n this.pm1 = pm1;\n this.pm25 = pm25;\n this.pm10 = pm10;\n this.pollutionLevel = pollutionLevel;\n this.pressure = pressure;\n this.temperature = temperature;\n }", "Weather create(WeatherInformation weatherInformation);", "public LongTermForecast(JSONObject j, char tempUnits){\n \n /*Set sub-JSONObjects\n *OpenWeatherMap returns a large JSONObject that contains multiple\n *smaller JSONObjects; we get these during this step\n */\n \ttry{\n this.jCity = j.getJSONObject(\"city\");\n this.jListArray = j.getJSONArray(\"list\");\n this.jTempList = new ArrayList<JSONObject>();\n this.jWeatherList = new ArrayList<JSONObject>();\n int dateOffset = 0; // <--- To exclude the current day, change this to 1\n for (int i = dateOffset; i < 5 + dateOffset; i++) \n {\n JSONObject nextObject = jListArray.getJSONObject(i);\n this.jTempList.add(nextObject.getJSONObject(\"temp\"));\n this.jWeatherList.add(nextObject.getJSONArray(\"weather\").getJSONObject(0));\n }\n this.tempUnits = tempUnits;\n\n \n //Set the variable values based on the JSON data\n this.fullCityName = getFullCityName(jCity);\n this.temperatureList = new ArrayList<String>();\n this.minTempList = new ArrayList<String>();\n this.maxTempList = new ArrayList<String>();\n this.skyConditionList = new ArrayList<String>();\n this.skyIconList = new ArrayList<ImageIcon>();\n this.dateList = new ArrayList<String>();\n for (int i = 0; i < 5; i++)\n {\n JSONObject nextTemp = jTempList.get(i);\n JSONObject nextWeather = jWeatherList.get(i);\n this.temperatureList.add(getTemperature(nextTemp));\n this.minTempList.add(getMinTemp(nextTemp));\n this.maxTempList.add(getMaxTemp(nextTemp));\n this.skyConditionList.add(getSkyCondition(nextWeather));\n try{\n this.skyIconList.add(getSkyIcon(nextWeather));\n }\n catch(IOException e){\n System.out.println(\"Error: Can't obtain sky icon\");\n }\n this.dateList.add(getDate(jListArray, i + dateOffset));\n }\n \t} catch (Exception e){\n\t\t\tthis.temperatureList = new ArrayList<String>();\n\t\t\tthis.skyConditionList = new ArrayList<String>();\n\t\t\tthis.skyIconList = new ArrayList<ImageIcon>();\n\t\t\tthis.minTempList = new ArrayList<String>();\n\t\t\tthis.maxTempList = new ArrayList<String>();\n\t this.dateList = new ArrayList<String>();\n\t\t\tfor (int i = 0; i < 8; i++)\n\t\t\t{\n\t\t\t\tthis.minTempList.add(\"No Data \");\n\t\t\t\tthis.maxTempList.add(\"No Data \");\n\t\t\t\tthis.temperatureList.add(\"No Data \");\n\t\t\t\tthis.dateList.add(\"No Data \");\n\t\t\t\ttry {\n\t\t\t\t\tthis.skyIconList.add(getSkyIcon(new JSONObject(\"{icon:01d}\")));\n\t\t\t\t} catch (JSONException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tthis.skyConditionList.add(\"No Data \");\n\t\t\t} \n\t\t}\n\n }", "public static QueryResult build() {\n return new QueryResult(ImmutableList.of());\n }", "Query query();", "public SensorLog(String id, Date when, Float temperature) {\n this.id = id;\n this.when = when;\n this.temperature = temperature;\n }", "private MetaSparqlRequest createQueryMT3() {\n\t\t\treturn createQueryMT1();\n\t\t}", "public TemperatureUnit(double width, double height, double length, StorageLocation myLoc, int tempLvl)\n {\n super(width, height, length, myLoc);\n setTempLvl(tempLvl);\n }", "FloatResource temperatureCoefficient();", "public LinkedList<Temperature> listSensorTemperature(){\r\n LinkedList<Temperature> aux=new LinkedList<>();\r\n for (Sensor s:sensors){\r\n if(s instanceof Temperature)\r\n aux.add((Temperature)s);\r\n }\r\n return aux;\r\n }", "private Queries() {\n // prevent instantiation\n }", "GeneralWeatherReport queryWeatherReport(String cityId);", "public Query(Class c, String expression) {\r\n\t\t_product = c;\r\n\t\t_variable = \"c\";\r\n\t\t_expression = expression;\r\n\r\n\t}", "public int getTemperature() {\n\t\treturn temperature;\n\t}", "Weather getById(Long id);", "public SensorLog(Date when, Float temperature) {\n this.when = when;\n this.temperature = temperature;\n }", "TemperatureMeasureHitchEvent selectByPrimaryKey(String id);", "public HLAfloat32BE getTemperature() { return this.temperature; }", "public Temperature toCelsius(){\n\t\tif (scale==\"F\"){\n\t\t\tdegrees=(degrees-32)*5/9;\n\t\t\tscale=\"C\";}\n\t\t\treturn this;\n\t}", "@Override\r\n public int getTemperature(){\r\n return 10;\r\n }", "public IntegerProperty getTemp() {\n\t\treturn temperature;\n\t}", "Query createQuery(final String query);", "public Query(String expression) {\r\n\t\t_product = Product.class;\r\n\t\t_variable = \"p\";\r\n\t\t_expression = expression;\r\n\r\n\t}", "@JsonIgnore\n\tpublic void setTemperatureAsMeasure(DecimalMeasure<Temperature> temperature)\n\t{\n\t\tthis.temperatureAsMeasure = temperature;\n\t}", "public Query getQuery()\n {\n return query;\n }", "public Forecasting() {\n }", "public PseudoQuery() {\r\n\t}", "@Override\n public CycList<Object> queryVariables(final CycList<CycVariable> variables,\n final CycList<Object> query,\n final CycObject mt,\n final InferenceParameters queryProperties)\n throws CycConnectionException, com.cyc.base.exception.CycApiException {\n return queryVariablesLow(variables, query, mt, queryProperties, 0);\n }", "private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}", "public Query() {\n initComponents();\n }", "@Override\r\n\tpublic List<Food> queryFoods() {\n\t\tString sql=\"select * from food\";\r\n\t\tList<Food> list=(List<Food>) BaseDao.select(sql, Food.class);\r\n\t\treturn list;\r\n\t}", "public Api getQueryResult(String query) throws Exception {\n\t\tApi api = getQueryResult(getWiki(),query);\n\t\treturn api;\n\t}", "public QueryUtils() {\n }", "public float getTemperature() {\n\t\treturn (float) getRawTemperature() / 100f;\n\t}", "public CurrentTemperature getCurrentTemperatureInFarenheit(String zipCode) {\n WeatherResponse currentWeatherResponse = apixuClient.getCurrentWeatherConditions(zipCode);\n\n CurrentTemperature currentTemperature = new CurrentTemperature();\n currentTemperature.setLocation(currentWeatherResponse.getLocation().getName() + \", \"\n + currentWeatherResponse.getLocation().getRegion());\n currentTemperature.setTemperature(currentWeatherResponse.getCurrent().getTempF()+\"\");\n\n return currentTemperature;\n }", "public Temperature(double tempDegrees, String tempScale) {\n\t\tdegrees = tempDegrees; scale = tempScale;}", "public InfluxDBParameter setQuery(String query) {\n this.query = query;\n return this;\n }", "public QueryGeneral() {\n try {\n connection = ConnectionDB.getInstance().getConnection();\n } catch (SQLException event) {\n log.error(\"Error in: \" + event.getMessage(), event);\n } catch (ClassNotFoundException event) {\n log.error(\"Error in: \" + event.getMessage(), event);\n }\n }", "public Trips() {\n filters = new HashMap<>();\n comparator = Comparator.comparing(Trip::getTravelTime);\n trips = new ArrayList<>();\n modifiedSinceLastResult = true;\n }", "public Getter reqGetMeasuredFloorTemperature() {\n\t\t\treqGetProperty(EPC_MEASURED_FLOOR_TEMPERATURE);\n\t\t\treturn this;\n\t\t}", "public static Object eventModemTemperature() {\n\t\treturn null;\n\t}", "public QueryResult<T> getResult();", "public Getter reqGetTemperatureSetting1() {\n\t\t\treqGetProperty(EPC_TEMPERATURE_SETTING1);\n\t\t\treturn this;\n\t\t}", "public Forecastday() {\n }", "public Query query(Predicate query) throws Exceptions.OsoException {\n Host new_host = host.clone();\n String pred = new_host.toPolarTerm(query).toString();\n return new Query(ffiPolar.newQueryFromTerm(pred), new_host);\n }" ]
[ "0.69529706", "0.6112602", "0.6058479", "0.5974574", "0.5661714", "0.55227005", "0.5510662", "0.5502886", "0.54717636", "0.54542726", "0.54346025", "0.5431166", "0.5409984", "0.5403147", "0.53972393", "0.53417575", "0.53151584", "0.53118604", "0.5268133", "0.52454525", "0.52094537", "0.5209213", "0.5197677", "0.518813", "0.5179272", "0.5175296", "0.516812", "0.5149418", "0.5146551", "0.510664", "0.5078603", "0.5073845", "0.5052889", "0.5043592", "0.5041813", "0.5035108", "0.5015091", "0.5010733", "0.5010603", "0.4998373", "0.4997457", "0.49959892", "0.49952295", "0.49949902", "0.49942958", "0.4981467", "0.49727693", "0.4970101", "0.49623623", "0.49606073", "0.49561185", "0.49557704", "0.49404234", "0.49246106", "0.4919313", "0.4904658", "0.48819086", "0.4874521", "0.48418787", "0.4834224", "0.4829704", "0.48243406", "0.48196602", "0.4816416", "0.4814149", "0.4813291", "0.48125872", "0.48072678", "0.48071203", "0.48002473", "0.47979745", "0.47881466", "0.47875452", "0.47861868", "0.4771048", "0.47695345", "0.47661573", "0.47639892", "0.47613424", "0.4755799", "0.47521532", "0.47466388", "0.47441524", "0.47394955", "0.47297493", "0.4719967", "0.47166204", "0.47135136", "0.47081932", "0.47075114", "0.47005883", "0.4694516", "0.46921757", "0.46902278", "0.46874833", "0.4687114", "0.46794105", "0.46791938", "0.4663034", "0.4659013" ]
0.8585795
0
Returns a new object of class 'Humidity Query'.
HumidityQuery createHumidityQuery();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TemperatureQuery createTemperatureQuery();", "public Query query(String query) throws Exceptions.OsoException {\n return new Query(ffiPolar.newQueryFromStr(query), host.clone());\n }", "public static QueryInterface createQuery() {\n return new XmlQuery();\n }", "public Query() {\r\n }", "public Query() {\n\n// oriToRwt = new HashMap();\n// oriToRwt.put(); // TODO\n }", "public QueryResponse query(PqlQuery query) {\n return query(query, QueryOptions.defaultOptions());\n }", "Query query();", "public Humidity4Builder() {\r\n humidity4 = new Humidity4();\r\n }", "public Query query(Predicate query) throws Exceptions.OsoException {\n Host new_host = host.clone();\n String pred = new_host.toPolarTerm(query).toString();\n return new Query(ffiPolar.newQueryFromTerm(pred), new_host);\n }", "public Api getQueryResult(String query) throws Exception {\n\t\tApi api = getQueryResult(getWiki(),query);\n\t\treturn api;\n\t}", "public Query getEffectsQuery(\r\n final IRNode flowUnit, final BindingContextAnalysis.Query query) {\r\n return new Query(flowUnit, query);\r\n }", "public QueryRegistry() {\r\n }", "public WavefrontMetricQueryResponse queryMetric(String query, long startTimeInEpocMillis, long endTimeInEpochMillis,\n String granulirity) {\n log.info(\" Running the query: \" + query + \" between start time: \" + startTimeInEpocMillis + \" and end time: \"\n + endTimeInEpochMillis);\n WavefrontMetricQueryResponse queryResponse =\n metricProviderHelper.queryMetrics(query, startTimeInEpocMillis, endTimeInEpochMillis, granulirity);\n if (null == queryResponse) {\n log.error(\" Query didn't return any thing. Please check the query. \");\n return null;\n }\n return queryResponse;\n }", "Query createQuery(final String query);", "public static QueryResult build() {\n return new QueryResult(ImmutableList.of());\n }", "private Query(final IRNode flowUnit, final BindingContextAnalysis.Query query) {\r\n this.flowUnit = flowUnit;\r\n this.bcaQuery = query;\r\n }", "public QueryCore(String query)\n {\n this.query = query;\n }", "public Floater createQueryFloater(QueryPanel queryPanel, Point location) {\n Floater floater = new InternalFloater(\"query\", \"Query\", location, true);\n floater.setComponent(queryPanel);\n floater.pack();\n return floater;\n }", "private ASTQuery() {\r\n dataset = Dataset.create();\r\n }", "public HumidModel()\n {\n origHumid = DEFAULT_HUMID;\n humidRate = 1;\n sampleRate = 1;\n externalWeather = 0;\n currentHumid = origHumid;\n humidLower = origHumid;\n humidUpper = origHumid;\n humidStatus = 0;\n envStatus = 0;\n }", "public HumidityChart() {\n this(new XYSeriesCollection());\n }", "private QueryResponse query(Query query) throws ElasticSearchException{\r\n\t\tQueryResponse response = executor.executeQuery(query);\r\n\t\tresponse.setObjectMapper(mapper);\r\n\t\treturn response;\t\t\r\n\t}", "public static RsQueryObject get(ClassDescriptor cld, Query query)\r\n {\r\n return new RsQueryObject(cld, query);\r\n }", "public Query getQuery()\n {\n return query;\n }", "public Builder query(final String query) {\n this.query = query;\n return this;\n }", "public Humidity4 build() {\r\n return humidity4;\r\n }", "public Float getHumidity () {\n return humidity;\n }", "@Override\n\tpublic <T> TypedQuery<T> createQuery(String qlString, Class<T> resultClass) {\n\t\treturn null;\n\t}", "public InfluxDBParameter setQuery(String query) {\n this.query = query;\n return this;\n }", "T getQueryInfo();", "public static Query empty() {\n return new Query();\n }", "public void Query() {\n }", "QueryType createQueryType();", "IQuery getQuery();", "public Query(){\n this(new MongoQueryFilter.MongoQueryFilterBuilder());\n }", "public void setHumidity(Float humidity) {\n this.humidity = humidity;\n }", "public Hub<QueryInfo> getHub() {\n if (hub == null) {\n hub = new Hub<QueryInfo>(QueryInfo.class);\n }\n return hub;\n }", "@Override\n protected QueryStatusMessage createInstance() {\n return new QueryStatusMessage();\n }", "public Query getQuery ()\n {\n\n\treturn this.q;\n\n }", "public QueryBuilder()\n {\n\tlabel = null;\n\tqueryCondition = null;\n\tselectionLimiter = null;\n\tselectionSorter = null;\n\n\tvariablesMap = new HashMap<String, Expression>();\n\tselectionLabelsReferencedByStats = new HashSet<String>();\n }", "private Queries() {\n // prevent instantiation\n }", "public abstract String createQuery();", "public SidhdhiQueryExecutor(String query){\n this.query = query;\n }", "public void query()\n\t{\n\t\tJSONObject queryInfo = new JSONObject();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tqueryInfo.put(\"type\", \"query\");\n\t\t\t\n\t\t\tos.println(queryInfo.toString());\n\t\t\tos.flush();\n\t\t\t\n\t\t\tSystem.out.println(\"send query request : \" + queryInfo.toString());\n\t\t}\n\t\tcatch (JSONException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public QueryBO() {\r\n }", "public House(int HID)\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t \n\t String query = \"SELECT * FROM Housing WHERE h_id = '\"+HID+\"'\"; \n\t ResultSet rs = con.stmt.executeQuery(query); \n\t \n\t while(rs.next())\n\t {\n\t \thid = rs.getInt(\"h_id\"); \n\t \tname = rs.getString(\"name\"); \n\t \taddress = rs.getString(\"address\"); \n\t \tphoneNumber = rs.getString(\"phone_number\"); \n\t \tyearBuilt = rs.getInt(\"year_built\"); \n\t \tprice = rs.getInt(\"price\");\n\t \tuid = rs.getInt(\"housing_uid\"); \n\t \tmaxResidents = rs.getInt(\"max_residents\"); \n\t \tcatagory = rs.getString(\"catagory\"); \n\t \t\n\t \tGetKeywords(); \n\t \tGetAvailableDates();\n\t }\n\t \n\t con.closeConnection();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t}", "public Query() {\n initComponents();\n }", "private Query(String command) {\n\t\tthis.command = command;\n\t}", "public String getQuery(){\n return this.query;\n }", "private DbQuery() {}", "public Room (Float temperature, Float humidity, Float illumination) {\n this.temperature = temperature;\n this.humidity = humidity;\n this.illumination = illumination;\n }", "public String query() {\n return this.query;\n }", "public double getHumidity()\n {\n return humidity;\n }", "@Override\r\n\t@Transactional\r\n\tpublic List<PhieuDatHang> query(String query, Class<PhieuDatHang> entityClass) {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic Query objectQuery(String query) throws Exception {\n\t\treturn null;\n\t}", "public Query( String queryString ) {\r\n\tStringTokenizer tok = new StringTokenizer( queryString );\r\n\twhile ( tok.hasMoreTokens() ) {\r\n\t terms.add( tok.nextToken() );\r\n\t weights.add( new Double(1) );\r\n\t} \r\n }", "private DirectDbQuery() {\n this.query = null;\n this.database = null;\n this.queryLanguage = null;\n this.paramMap = null;\n }", "public void createQuery(String s) throws HibException;", "public SlowQueryReport() {\n super();\n }", "public QueryWiki() {\n }", "public DydraQueryEngine(@NotNull final Repository repository,\n @NotNull final Query query) {\n this(repository.name, query.toString());\n }", "public static Query of(String rawQuery) {\n return new Query(rawQuery);\n }", "public String getQuery() {\n return _query;\n }", "public IsochroneQuery(Config config) {\n this.config = config;\n this.connection = config!= null ? config.getConnection() : null;\n // initConstants();\n }", "@GET(\"weather?APPID=bec2ea2f434c848c09196f2de96e3c4c&units=metric\")\n Single<Weather> getWeatherData(@Query(\"q\") String name);", "public void newQuery(String query){\n\t\tparser = new Parser(query);\n\t\tQueryClass parsedQuery = parser.createQueryClass();\n\t\tqueryList.add(parsedQuery);\n\t\t\n\t\tparsedQuery.matchFpcRegister((TreeRegistry)ps.getRegistry());\n\t\tparsedQuery.matchAggregatorRegister();\n\t\t\n\t\t\n\t}", "public FutureResultWithAnswer queryToServer(Query query) throws IOException, Net4CareException;", "public HealthModel() {\n healthMetrics = new ArrayList<HealthMetric>();\n SimpleDateFormat dateFormatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\n this.fetchHealthMetrics();\n }", "protected JPAQuery<T> createQuery() {\n\t\tJPAQuery<T> query = new JPAQuery<>(entityManager);\n\t\tquery.from(getDslRoot());\n\t\treturn query;\n\t}", "public PseudoQuery() {\r\n\t}", "public void setQuery(String query) {\n this.query = query;\n }", "public void setQuery(Integer query) {\n this.query = query;\n }", "public String getQuery() {\n return this.query;\n }", "public void setQuery(String query) {\n this.query = query;\n }", "public Hub<QueryInfoSearch> getQueryInfoSearchHub() {\n if (hubQueryInfoSearch == null) {\n hubQueryInfoSearch = new Hub<QueryInfoSearch>(QueryInfoSearch.class);\n hubQueryInfoSearch.add(getQueryInfoSearch());\n hubQueryInfoSearch.setPos(0);\n }\n return hubQueryInfoSearch;\n }", "public java.lang.String getQuery()\n {\n return this.query;\n }", "public DatabaseQuery getQuery() {\n return query;\n }", "public Query query(Table table) {\r\n return new Query(this, table);\r\n }", "public QueryOptions build() {\n return new QueryOptions(this.columns, this.excludeColumns, this.excludeAttributes, this.shards);\n }", "ObstacleQuery createObstacleQuery();", "public String getQuery() {\n return query;\n }", "public String getQuery() {\n return query;\n }", "public String getQuery() {\n return query;\n }", "public String getHumidity() {\n\t\treturn humidity;\n\t}", "public String getHumidity() {\n\t\treturn humidity;\n\t}", "MessageQuery createMessageQuery();", "public QueryLocator() {\n this(new Random().nextInt(1024));\n }", "public String getQuery() {\r\n return query;\r\n }", "public boolean Query(Guitar guitar) {\n\treturn guitarDao.Query(guitar);\n}", "<Q, R> CompletableFuture<QueryResponseMessage<R>> query( QueryMessage<Q, R> query );", "public Query createQuery(String hql, Object... params) ;", "public QueryModel getQueryModel()\n {\n return _queryModel;\n }", "public void setQuery(java.lang.String query) {\r\n this.query = query;\r\n }", "@Override\n\tpublic Query createQuery(String qlString) {\n\t\treturn null;\n\t}", "public abstract Query<T> setQuery(String oql);", "public String getQuery() {\n return query;\n }", "public Query(String queryString) {\n parseQuery(queryString);\n }", "public static QueryStub newStub(io.grpc.Channel channel) {\n return new QueryStub(channel);\n }", "public RelativeHumiditySkyCoverChart() {\n this(new HumidityChart());\n }", "public Api getQueryResult(ExampleWiki pWiki,String query) throws Exception {\n\t\tpWiki.wiki.setDebug(debug);\n\t Api api =pWiki.getMediaWikiJapi().getQueryResult(query);\n\t\treturn api;\n\t}" ]
[ "0.66430074", "0.63913053", "0.57374364", "0.57177126", "0.5707679", "0.56702644", "0.562832", "0.5589528", "0.55889684", "0.5552455", "0.5463013", "0.5405929", "0.53851277", "0.5360286", "0.53512067", "0.53385055", "0.530181", "0.5297769", "0.52932405", "0.52916014", "0.5273407", "0.5264827", "0.5263275", "0.5261381", "0.525619", "0.52556056", "0.52207476", "0.521038", "0.521002", "0.52099574", "0.52080643", "0.5187512", "0.5164635", "0.5142972", "0.51256603", "0.512299", "0.50766546", "0.5074882", "0.5062208", "0.5060727", "0.50473917", "0.50306875", "0.5015721", "0.5011218", "0.4986872", "0.49860948", "0.49852014", "0.49792135", "0.4978977", "0.4978599", "0.49688753", "0.4959209", "0.49505293", "0.4936214", "0.492603", "0.49248838", "0.4913766", "0.4909694", "0.49091545", "0.4906294", "0.4875042", "0.48693395", "0.4863264", "0.48585093", "0.4855896", "0.4850898", "0.48494014", "0.48479453", "0.4837684", "0.48314193", "0.48281002", "0.48205078", "0.48200712", "0.4807545", "0.48041686", "0.47994915", "0.47983748", "0.47888047", "0.4774459", "0.47708124", "0.47632673", "0.47632673", "0.47632673", "0.47555965", "0.47555965", "0.47553334", "0.47541374", "0.47539943", "0.4753534", "0.47520047", "0.4751695", "0.4735227", "0.4731136", "0.4722121", "0.47197762", "0.47150883", "0.47119737", "0.4704703", "0.46972996", "0.46970394" ]
0.86512816
0